diff --git a/examples/desktop/electron/release/Casper Webclient 2.0.0.exe b/examples/desktop/electron/release/Casper Webclient 2.0.0.exe index 9d259af7..2a2f5af4 100644 Binary files a/examples/desktop/electron/release/Casper Webclient 2.0.0.exe and b/examples/desktop/electron/release/Casper Webclient 2.0.0.exe differ diff --git a/examples/desktop/electron/release/Casper Webclient-2.0.0.AppImage b/examples/desktop/electron/release/Casper Webclient-2.0.0.AppImage index af9be4ec..fb96afa2 100755 Binary files a/examples/desktop/electron/release/Casper Webclient-2.0.0.AppImage and b/examples/desktop/electron/release/Casper Webclient-2.0.0.AppImage differ diff --git a/examples/desktop/electron/release/builder-debug.yml b/examples/desktop/electron/release/builder-debug.yml index ed856159..33cf4dbc 100644 --- a/examples/desktop/electron/release/builder-debug.yml +++ b/examples/desktop/electron/release/builder-debug.yml @@ -34,4 +34,4 @@ x64: - index.js - favicon.png nsis: - script: "!include \"/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include/StdUtils.nsh\"\n!addincludedir \"/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include\"\n!macro _isUpdated _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"updated\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isUpdated `\"\" isUpdated \"\"`\n\n!macro _isForceRun _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"force-run\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForceRun `\"\" isForceRun \"\"`\n\n!macro _isKeepShortcuts _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"keep-shortcuts\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isKeepShortcuts `\"\" isKeepShortcuts \"\"`\n\n!macro _isNoDesktopShortcut _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"no-desktop-shortcut\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isNoDesktopShortcut `\"\" isNoDesktopShortcut \"\"`\n\n!macro _isDeleteAppData _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"delete-app-data\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isDeleteAppData `\"\" isDeleteAppData \"\"`\n\n!macro _isForAllUsers _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"allusers\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForAllUsers `\"\" isForAllUsers \"\"`\n\n!macro _isForCurrentUser _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"currentuser\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForCurrentUser `\"\" isForCurrentUser \"\"`\n\n!macro addLangs\n !insertmacro MUI_LANGUAGE \"English\"\n !insertmacro MUI_LANGUAGE \"German\"\n !insertmacro MUI_LANGUAGE \"French\"\n !insertmacro MUI_LANGUAGE \"SpanishInternational\"\n !insertmacro MUI_LANGUAGE \"SimpChinese\"\n !insertmacro MUI_LANGUAGE \"TradChinese\"\n !insertmacro MUI_LANGUAGE \"Japanese\"\n !insertmacro MUI_LANGUAGE \"Korean\"\n !insertmacro MUI_LANGUAGE \"Italian\"\n !insertmacro MUI_LANGUAGE \"Dutch\"\n !insertmacro MUI_LANGUAGE \"Danish\"\n !insertmacro MUI_LANGUAGE \"Swedish\"\n !insertmacro MUI_LANGUAGE \"Norwegian\"\n !insertmacro MUI_LANGUAGE \"Finnish\"\n !insertmacro MUI_LANGUAGE \"Russian\"\n !insertmacro MUI_LANGUAGE \"Portuguese\"\n !insertmacro MUI_LANGUAGE \"PortugueseBR\"\n !insertmacro MUI_LANGUAGE \"Polish\"\n !insertmacro MUI_LANGUAGE \"Ukrainian\"\n !insertmacro MUI_LANGUAGE \"Czech\"\n !insertmacro MUI_LANGUAGE \"Slovak\"\n !insertmacro MUI_LANGUAGE \"Hungarian\"\n !insertmacro MUI_LANGUAGE \"Arabic\"\n !insertmacro MUI_LANGUAGE \"Turkish\"\n !insertmacro MUI_LANGUAGE \"Thai\"\n !insertmacro MUI_LANGUAGE \"Vietnamese\"\n!macroend\n\n!addplugindir /x86-unicode \"/home/greg/.cache/electron-builder/nsis/nsis-resources-3.4.1/plugins/x86-unicode\"\n!include \"/tmp/t-fBBwlk/0-messages.nsh\"\n\n!include \"common.nsh\"\n!include \"extractAppPackage.nsh\"\n\n# https://github.com/electron-userland/electron-builder/issues/3972#issuecomment-505171582\nCRCCheck off\nWindowIcon Off\nAutoCloseWindow True\nRequestExecutionLevel ${REQUEST_EXECUTION_LEVEL}\n\nFunction .onInit\n !ifndef SPLASH_IMAGE\n SetSilent silent\n !endif\n\n !insertmacro check64BitAndSetRegView\nFunctionEnd\n\nFunction .onGUIInit\n InitPluginsDir\n\n !ifdef SPLASH_IMAGE\n File /oname=$PLUGINSDIR\\splash.bmp \"${SPLASH_IMAGE}\"\n BgImage::SetBg $PLUGINSDIR\\splash.bmp\n BgImage::Redraw\n !endif\nFunctionEnd\n\nSection\n !ifdef SPLASH_IMAGE\n HideWindow\n !endif\n\n StrCpy $INSTDIR \"$PLUGINSDIR\\app\"\n !ifdef UNPACK_DIR_NAME\n StrCpy $INSTDIR \"$TEMP\\${UNPACK_DIR_NAME}\"\n !endif\n\n RMDir /r $INSTDIR\n SetOutPath $INSTDIR\n\n !ifdef APP_DIR_64\n !ifdef APP_DIR_ARM64\n !ifdef APP_DIR_32\n ${if} ${IsNativeARM64}\n File /r \"${APP_DIR_ARM64}\\*.*\"\n ${elseif} ${RunningX64}\n File /r \"${APP_DIR_64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_32}\\*.*\"\n ${endIf}\n !else\n ${if} ${IsNativeARM64}\n File /r \"${APP_DIR_ARM64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_64}\\*.*\"\n {endIf}\n !endif\n !else\n !ifdef APP_DIR_32\n ${if} ${RunningX64}\n File /r \"${APP_DIR_64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_32}\\*.*\"\n ${endIf}\n !else\n File /r \"${APP_DIR_64}\\*.*\"\n !endif\n !endif\n !else\n !ifdef APP_DIR_32\n File /r \"${APP_DIR_32}\\*.*\"\n !else\n !insertmacro extractEmbeddedAppPackage\n !endif\n !endif\n\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_DIR\", \"$EXEDIR\").r0'\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_FILE\", \"$EXEPATH\").r0'\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_APP_FILENAME\", \"${APP_FILENAME}\").r0'\n ${StdUtils.GetAllParameters} $R0 0\n\n !ifdef SPLASH_IMAGE\n BgImage::Destroy\n !endif\n\n\tExecWait \"$INSTDIR\\${APP_EXECUTABLE_FILENAME} $R0\" $0\n SetErrorLevel $0\n\n SetOutPath $EXEDIR\n\tRMDir /r $INSTDIR\nSectionEnd\n" + script: "!include \"/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include/StdUtils.nsh\"\n!addincludedir \"/opt2/casper/rustSDK/examples/desktop/electron/node_modules/app-builder-lib/templates/nsis/include\"\n!macro _isUpdated _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"updated\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isUpdated `\"\" isUpdated \"\"`\n\n!macro _isForceRun _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"force-run\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForceRun `\"\" isForceRun \"\"`\n\n!macro _isKeepShortcuts _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"keep-shortcuts\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isKeepShortcuts `\"\" isKeepShortcuts \"\"`\n\n!macro _isNoDesktopShortcut _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"no-desktop-shortcut\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isNoDesktopShortcut `\"\" isNoDesktopShortcut \"\"`\n\n!macro _isDeleteAppData _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"delete-app-data\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isDeleteAppData `\"\" isDeleteAppData \"\"`\n\n!macro _isForAllUsers _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"allusers\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForAllUsers `\"\" isForAllUsers \"\"`\n\n!macro _isForCurrentUser _a _b _t _f\n ${StdUtils.TestParameter} $R9 \"currentuser\"\n StrCmp \"$R9\" \"true\" `${_t}` `${_f}`\n!macroend\n!define isForCurrentUser `\"\" isForCurrentUser \"\"`\n\n!macro addLangs\n !insertmacro MUI_LANGUAGE \"English\"\n !insertmacro MUI_LANGUAGE \"German\"\n !insertmacro MUI_LANGUAGE \"French\"\n !insertmacro MUI_LANGUAGE \"SpanishInternational\"\n !insertmacro MUI_LANGUAGE \"SimpChinese\"\n !insertmacro MUI_LANGUAGE \"TradChinese\"\n !insertmacro MUI_LANGUAGE \"Japanese\"\n !insertmacro MUI_LANGUAGE \"Korean\"\n !insertmacro MUI_LANGUAGE \"Italian\"\n !insertmacro MUI_LANGUAGE \"Dutch\"\n !insertmacro MUI_LANGUAGE \"Danish\"\n !insertmacro MUI_LANGUAGE \"Swedish\"\n !insertmacro MUI_LANGUAGE \"Norwegian\"\n !insertmacro MUI_LANGUAGE \"Finnish\"\n !insertmacro MUI_LANGUAGE \"Russian\"\n !insertmacro MUI_LANGUAGE \"Portuguese\"\n !insertmacro MUI_LANGUAGE \"PortugueseBR\"\n !insertmacro MUI_LANGUAGE \"Polish\"\n !insertmacro MUI_LANGUAGE \"Ukrainian\"\n !insertmacro MUI_LANGUAGE \"Czech\"\n !insertmacro MUI_LANGUAGE \"Slovak\"\n !insertmacro MUI_LANGUAGE \"Hungarian\"\n !insertmacro MUI_LANGUAGE \"Arabic\"\n !insertmacro MUI_LANGUAGE \"Turkish\"\n !insertmacro MUI_LANGUAGE \"Thai\"\n !insertmacro MUI_LANGUAGE \"Vietnamese\"\n!macroend\n\n!addplugindir /x86-unicode \"/home/greg/.cache/electron-builder/nsis/nsis-resources-3.4.1/plugins/x86-unicode\"\n!include \"/tmp/t-GFoPuI/0-messages.nsh\"\n\n!include \"common.nsh\"\n!include \"extractAppPackage.nsh\"\n\n# https://github.com/electron-userland/electron-builder/issues/3972#issuecomment-505171582\nCRCCheck off\nWindowIcon Off\nAutoCloseWindow True\nRequestExecutionLevel ${REQUEST_EXECUTION_LEVEL}\n\nFunction .onInit\n !ifndef SPLASH_IMAGE\n SetSilent silent\n !endif\n\n !insertmacro check64BitAndSetRegView\nFunctionEnd\n\nFunction .onGUIInit\n InitPluginsDir\n\n !ifdef SPLASH_IMAGE\n File /oname=$PLUGINSDIR\\splash.bmp \"${SPLASH_IMAGE}\"\n BgImage::SetBg $PLUGINSDIR\\splash.bmp\n BgImage::Redraw\n !endif\nFunctionEnd\n\nSection\n !ifdef SPLASH_IMAGE\n HideWindow\n !endif\n\n StrCpy $INSTDIR \"$PLUGINSDIR\\app\"\n !ifdef UNPACK_DIR_NAME\n StrCpy $INSTDIR \"$TEMP\\${UNPACK_DIR_NAME}\"\n !endif\n\n RMDir /r $INSTDIR\n SetOutPath $INSTDIR\n\n !ifdef APP_DIR_64\n !ifdef APP_DIR_ARM64\n !ifdef APP_DIR_32\n ${if} ${IsNativeARM64}\n File /r \"${APP_DIR_ARM64}\\*.*\"\n ${elseif} ${RunningX64}\n File /r \"${APP_DIR_64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_32}\\*.*\"\n ${endIf}\n !else\n ${if} ${IsNativeARM64}\n File /r \"${APP_DIR_ARM64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_64}\\*.*\"\n {endIf}\n !endif\n !else\n !ifdef APP_DIR_32\n ${if} ${RunningX64}\n File /r \"${APP_DIR_64}\\*.*\"\n ${else}\n File /r \"${APP_DIR_32}\\*.*\"\n ${endIf}\n !else\n File /r \"${APP_DIR_64}\\*.*\"\n !endif\n !endif\n !else\n !ifdef APP_DIR_32\n File /r \"${APP_DIR_32}\\*.*\"\n !else\n !insertmacro extractEmbeddedAppPackage\n !endif\n !endif\n\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_DIR\", \"$EXEDIR\").r0'\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_FILE\", \"$EXEPATH\").r0'\n System::Call 'Kernel32::SetEnvironmentVariable(t, t)i (\"PORTABLE_EXECUTABLE_APP_FILENAME\", \"${APP_FILENAME}\").r0'\n ${StdUtils.GetAllParameters} $R0 0\n\n !ifdef SPLASH_IMAGE\n BgImage::Destroy\n !endif\n\n\tExecWait \"$INSTDIR\\${APP_EXECUTABLE_FILENAME} $R0\" $0\n SetErrorLevel $0\n\n SetOutPath $EXEDIR\n\tRMDir /r $INSTDIR\nSectionEnd\n" diff --git a/examples/desktop/electron/release/casper-webclient_2.0.0_amd64.snap b/examples/desktop/electron/release/casper-webclient_2.0.0_amd64.snap index 5051a548..c3bb92b3 100644 Binary files a/examples/desktop/electron/release/casper-webclient_2.0.0_amd64.snap and b/examples/desktop/electron/release/casper-webclient_2.0.0_amd64.snap differ diff --git a/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm b/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm index e05d64ee..352a3724 100644 Binary files a/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm and b/examples/frontend/angular/dist/casper/assets/casper_rust_wasm_sdk_bg.wasm differ diff --git a/examples/frontend/angular/dist/casper/index.html b/examples/frontend/angular/dist/casper/index.html index 391a6112..58b10bc8 100644 --- a/examples/frontend/angular/dist/casper/index.html +++ b/examples/frontend/angular/dist/casper/index.html @@ -11,5 +11,5 @@ - + diff --git a/examples/frontend/angular/dist/casper/main.127ec35bdae69ccf.js b/examples/frontend/angular/dist/casper/main.22e0510ea227d66a.js similarity index 50% rename from examples/frontend/angular/dist/casper/main.127ec35bdae69ccf.js rename to examples/frontend/angular/dist/casper/main.22e0510ea227d66a.js index c80f3af4..19d30388 100644 --- a/examples/frontend/angular/dist/casper/main.127ec35bdae69ccf.js +++ b/examples/frontend/angular/dist/casper/main.22e0510ea227d66a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkcasper=self.webpackChunkcasper||[]).push([[792],{5168:(as,yc,On)=>{function Jr(n,e,t,r,i,o,s){try{var c=n[o](s),l=c.value}catch(u){return void t(u)}c.done?e(l):Promise.resolve(l).then(r,i)}function S(n){return function(){var e=this,t=arguments;return new Promise(function(r,i){var o=n.apply(e,t);function s(l){Jr(o,r,i,s,c,"next",l)}function c(l){Jr(o,r,i,s,c,"throw",l)}s(void 0)})}}function Bt(n,e){return Object.is(n,e)}let me=null,yn=!1,br=1;const Dt=Symbol("SIGNAL");function K(n){const e=me;return me=n,e}const wc={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Vd(n){if(yn)throw new Error("");if(null===me)return;me.consumerOnSignalRead(n);const e=me.nextProducerIndex++;Ec(me),en.nextProducerIndex;)n.producerNode.pop(),n.producerLastReadVersion.pop(),n.producerIndexOfThis.pop()}}function Bd(n){Ec(n);for(let e=0;e0}function Ec(n){n.producerNode??=[],n.producerIndexOfThis??=[],n.producerLastReadVersion??=[]}function sy(n){n.liveConsumerNode??=[],n.liveConsumerIndexOfThis??=[]}function ay(n){return void 0!==n.producerNode}const Ud=Symbol("UNSET"),zd=Symbol("COMPUTING"),Dc=Symbol("ERRORED"),vA={...wc,value:Ud,dirty:!0,error:null,equal:Bt,producerMustRecompute:n=>n.value===Ud||n.value===zd,producerRecomputeValue(n){if(n.value===zd)throw new Error("Detected cycle in computations.");const e=n.value;n.value=zd;const t=bc(n);let r;try{r=n.computation()}catch(i){r=Dc,n.error=i}finally{jd(n,t)}e!==Ud&&e!==Dc&&r!==Dc&&n.equal(e,r)?n.value=e:(n.value=r,n.version++)}};let cy=function EA(){throw new Error};function ly(){cy()}let Cc=null;function uy(n,e){ry()||ly(),n.equal(n.value,e)||(n.value=e,function TA(n){n.version++,function wA(){br++}(),ny(n),Cc?.()}(n))}const IA={...wc,equal:Bt,value:void 0};function He(n){return"function"==typeof n}function _y(n){const t=n(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const $d=_y(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function qd(n,e){if(n){const t=n.indexOf(e);0<=t&&n.splice(t,1)}}class an{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(He(r))try{r()}catch(o){e=o instanceof $d?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{hy(o)}catch(s){e=e??[],s instanceof $d?e=[...e,...s.errors]:e.push(s)}}if(e)throw new $d(e)}}add(e){var t;if(e&&e!==this)if(this.closed)hy(e);else{if(e instanceof an){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&qd(t,e)}remove(e){const{_finalizers:t}=this;t&&qd(t,e),e instanceof an&&e._removeParent(this)}}an.EMPTY=(()=>{const n=new an;return n.closed=!0,n})();const fy=an.EMPTY;function py(n){return n instanceof an||n&&"closed"in n&&He(n.remove)&&He(n.add)&&He(n.unsubscribe)}function hy(n){He(n)?n():n.unsubscribe()}const Zr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Sc={setTimeout(n,e,...t){const{delegate:r}=Sc;return r?.setTimeout?r.setTimeout(n,e,...t):setTimeout(n,e,...t)},clearTimeout(n){const{delegate:e}=Sc;return(e?.clearTimeout||clearTimeout)(n)},delegate:void 0};function gy(n){Sc.setTimeout(()=>{const{onUnhandledError:e}=Zr;if(!e)throw n;e(n)})}function my(){}const AA=Gd("C",void 0,void 0);function Gd(n,e,t){return{kind:n,value:e,error:t}}let Yr=null;function Ic(n){if(Zr.useDeprecatedSynchronousErrorHandling){const e=!Yr;if(e&&(Yr={errorThrown:!1,error:null}),n(),e){const{errorThrown:t,error:r}=Yr;if(Yr=null,t)throw r}}else n()}class Wd extends an{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,py(e)&&e.add(this)):this.destination=PA}static create(e,t,r){return new Kd(e,t,r)}next(e){this.isStopped?Zd(function kA(n){return Gd("N",n,void 0)}(e),this):this._next(e)}error(e){this.isStopped?Zd(function NA(n){return Gd("E",void 0,n)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Zd(AA,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const RA=Function.prototype.bind;function Jd(n,e){return RA.call(n,e)}class xA{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(r){Tc(r)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(r){Tc(r)}else Tc(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){Tc(t)}}}class Kd extends Wd{constructor(e,t,r){let i;if(super(),He(e)||!e)i={next:e??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&Zr.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Jd(e.next,o),error:e.error&&Jd(e.error,o),complete:e.complete&&Jd(e.complete,o)}):i=e}this.destination=new xA(i)}}function Tc(n){Zr.useDeprecatedSynchronousErrorHandling?function FA(n){Zr.useDeprecatedSynchronousErrorHandling&&Yr&&(Yr.errorThrown=!0,Yr.error=n)}(n):gy(n)}function Zd(n,e){const{onStoppedNotification:t}=Zr;t&&Sc.setTimeout(()=>t(n,e))}const PA={closed:!0,next:my,error:function OA(n){throw n},complete:my},Yd="function"==typeof Symbol&&Symbol.observable||"@@observable";function LA(n){return n}let Ht=(()=>{class n{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new n;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function jA(n){return n&&n instanceof Wd||function VA(n){return n&&He(n.next)&&He(n.error)&&He(n.complete)}(n)&&py(n)}(t)?t:new Kd(t,r,i);return Ic(()=>{const{operator:s,source:c}=this;o.add(s?s.call(o,c):c?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=wy(r))((i,o)=>{const s=new Kd({next:c=>{try{t(c)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Yd](){return this}pipe(...t){return function yy(n){return 0===n.length?LA:1===n.length?n[0]:function(t){return n.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=wy(t))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return n.create=e=>new n(e),n})();function wy(n){var e;return null!==(e=n??Zr.Promise)&&void 0!==e?e:Promise}const BA=_y(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Qr=(()=>{class n extends Ht{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new by(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new BA}next(t){Ic(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Ic(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Ic(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:o}=this;return r||i?fy:(this.currentObservers=null,o.push(t),new an(()=>{this.currentObservers=null,qd(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new Ht;return t.source=this,t}}return n.create=(e,t)=>new by(e,t),n})();class by extends Qr{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)}error(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:fy}}class Qd extends Qr{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:r}=this;if(e)throw t;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}}function Xr(n){return e=>{if(function HA(n){return He(n?.lift)}(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function vr(n,e,t,r,i){return new UA(n,e,t,r,i)}class UA extends Wd{constructor(e,t,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(c){try{t(c)}catch(l){e.error(l)}}:super._next,this._error=i?function(c){try{i(c)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function Er(n,e){return Xr((t,r)=>{let i=0;t.subscribe(vr(r,o=>{r.next(n.call(e,o,i++))}))})}typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const jy="https://g.co/ng/security#xss";class M extends Error{constructor(e,t){super(function Wi(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function nr(n){return{toString:n}.toString()}const Ki="__parameters__";function Yi(n,e,t){return nr(()=>{const r=function s_(n){return function(...t){if(n){const r=n(...t);for(const i in r)this[i]=r[i]}}}(e);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return c.annotation=s,c;function c(l,u,d){const _=l.hasOwnProperty(Ki)?l[Ki]:Object.defineProperty(l,Ki,{value:[]})[Ki];for(;_.length<=d;)_.push(null);return(_[d]=_[d]||[]).push(s),l}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}const Ne=globalThis;function we(n){for(let e in n)if(n[e]===we)return e;throw Error("Could not find renamed property on target object.")}function zN(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function Qe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Qe).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function a_(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const $N=we({__forward_ref__:we});function Se(n){return n.__forward_ref__=Se,n.toString=function(){return Qe(this())},n}function q(n){return Fc(n)?n():n}function Fc(n){return"function"==typeof n&&n.hasOwnProperty($N)&&n.__forward_ref__===Se}function G(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Pn(n){return{providers:n.providers||[],imports:n.imports||[]}}function Rc(n){return zy(n,Oc)||zy(n,$y)}function zy(n,e){return n.hasOwnProperty(e)?n[e]:null}function xc(n){return n&&(n.hasOwnProperty(c_)||n.hasOwnProperty(KN))?n[c_]:null}const Oc=we({\u0275prov:we}),c_=we({\u0275inj:we}),$y=we({ngInjectableDef:we}),KN=we({ngInjectorDef:we});class P{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=G({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function f_(n){return n&&!!n.\u0275providers}const us=we({\u0275cmp:we}),p_=we({\u0275dir:we}),h_=we({\u0275pipe:we}),rr=we({\u0275fac:we}),ds=we({__NG_ELEMENT_ID__:we}),Wy=we({__NG_ENV_ID__:we});function Z(n){return"string"==typeof n?n:null==n?"":String(n)}function g_(n,e){throw new M(-201,!1)}var se=function(n){return n[n.Default=0]="Default",n[n.Host=1]="Host",n[n.Self=2]="Self",n[n.SkipSelf=4]="SkipSelf",n[n.Optional=8]="Optional",n}(se||{});let m_;function Jy(){return m_}function Ut(n){const e=m_;return m_=n,e}function Ky(n,e,t){const r=Rc(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&se.Optional?null:void 0!==e?e:void g_()}const _s={},y_="__NG_DI_FLAG__",Pc="ngTempTokenPath",tk=/\n/gm,Zy="__source";let Qi;function Sr(n){const e=Qi;return Qi=n,e}function ik(n,e=se.Default){if(void 0===Qi)throw new M(-203,!1);return null===Qi?Ky(n,void 0,e):Qi.get(n,e&se.Optional?null:void 0,e)}function H(n,e=se.Default){return(Jy()||ik)(q(n),e)}function L(n,e=se.Default){return H(n,Lc(e))}function Lc(n){return typeof n>"u"||"number"==typeof n?n:(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function w_(n){const e=[];for(let t=0;tArray.isArray(t)?Xi(t,e):e(t))}function Qy(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Vc(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Qt(n,e,t){let r=eo(n,e);return r>=0?n[1|r]=t:(r=~r,function Xy(n,e,t,r){let i=n.length;if(i==e)n.push(t,r);else if(1===i)n.push(r,n[0]),n[0]=t;else{for(i--,n.push(n[i-1],n[i]);i>e;)n[i]=n[i-2],i--;n[e]=t,n[e+1]=r}}(n,r,e,t)),r}function D_(n,e){const t=eo(n,e);if(t>=0)return n[1|t]}function eo(n,e){return function ew(n,e,t){let r=0,i=n.length>>t;for(;i!==r;){const o=r+(i-r>>1),s=n[o<e?i=o:r=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?"":i[d+1].toLowerCase(),2&r&&u!==_){if(bn(r))return!1;s=!0}}}}else{if(!s&&!bn(r)&&!bn(l))return!1;if(s&&bn(l))continue;s=!1,r=l|1&r}}return bn(r)||s}function bn(n){return!(1&n)}function gk(n,e,t,r){if(null===e)return-1;let i=0;if(r||!t){let o=!1;for(;i-1)for(t++;t0?'="'+c+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!bn(s)&&(e+=aw(o,i),i=""),r=s,o=o||!bn(r);t++}return""!==i&&(e+=aw(o,i)),e}function _t(n){return nr(()=>{const e=lw(n),t={...e,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===Hc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||wn.Emulated,styles:n.styles||ce,_:null,schemas:n.schemas||null,tView:null,id:""};uw(t);const r=n.dependencies;return t.directiveDefs=Uc(r,!1),t.pipeDefs=Uc(r,!0),t.id=function Tk(n){let e=0;const t=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery].join("|");for(const i of t)e=Math.imul(31,e)+i.charCodeAt(0)|0;return e+=2147483648,"c"+e}(t),t})}function Ck(n){return re(n)||Xe(n)}function Sk(n){return null!==n}function ir(n){return nr(()=>({type:n.type,bootstrap:n.bootstrap||ce,declarations:n.declarations||ce,imports:n.imports||ce,exports:n.exports||ce,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function cw(n,e){if(null==n)return Ln;const t={};for(const r in n)if(n.hasOwnProperty(r)){const i=n[r];let o,s,c=Ir.None;Array.isArray(i)?(c=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(t[o]=c!==Ir.None?[r,c]:r,e[o]=s):t[o]=r}return t}function X(n){return nr(()=>{const e=lw(n);return uw(e),e})}function re(n){return n[us]||null}function Xe(n){return n[p_]||null}function at(n){return n[h_]||null}function lw(n){const e={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:n.inputs||Ln,exportAs:n.exportAs||null,standalone:!0===n.standalone,signals:!0===n.signals,selectors:n.selectors||ce,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:cw(n.inputs,e),outputs:cw(n.outputs),debugInfo:null}}function uw(n){n.features?.forEach(e=>e(n))}function Uc(n,e){if(!n)return null;const t=e?at:Ck;return()=>("function"==typeof n?n():n).map(r=>t(r)).filter(Sk)}function dw(...n){return{\u0275providers:T_(0,n),\u0275fromNgModule:!0}}function T_(n,...e){const t=[],r=new Set;let i;const o=s=>{t.push(s)};return Xi(e,s=>{const c=s;zc(c,o,[],r)&&(i||=[],i.push(c))}),void 0!==i&&_w(i,o),t}function _w(n,e){for(let t=0;t{e(o,r)})}}function zc(n,e,t,r){if(!(n=q(n)))return!1;let i=null,o=xc(n);const s=!o&&re(n);if(o||s){if(s&&!s.standalone)return!1;i=n}else{const l=n.ngModule;if(o=xc(l),!o)return!1;i=l}const c=r.has(i);if(s){if(c)return!1;if(r.add(i),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)zc(u,e,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!c){let u;r.add(i);try{Xi(o.imports,d=>{zc(d,e,t,r)&&(u||=[],u.push(d))})}finally{}void 0!==u&&_w(u,e)}if(!c){const u=ti(i)||(()=>new i);e({provide:i,useFactory:u,deps:ce},i),e({provide:C_,useValue:i,multi:!0},i),e({provide:Vn,useValue:()=>H(i),multi:!0},i)}const l=o.providers;if(null!=l&&!c){const u=n;M_(l,d=>{e(d,u)})}}}return i!==n&&void 0!==n.providers}function M_(n,e){for(let t of n)f_(t)&&(t=t.\u0275providers),Array.isArray(t)?M_(t,e):e(t)}const Mk=we({provide:String,useValue:we});function A_(n){return null!==n&&"object"==typeof n&&Mk in n}function ri(n){return"function"==typeof n}const N_=new P(""),$c={},Nk={};let k_;function qc(){return void 0===k_&&(k_=new Bc),k_}class cn{}class to extends cn{get destroyed(){return this._destroyed}constructor(e,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,R_(e,s=>this.processProvider(s)),this.records.set(tw,no(void 0,this)),i.has("environment")&&this.records.set(cn,no(void 0,this));const o=this.records.get(N_);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(C_,ce,se.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const e=K(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),K(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();const t=Sr(this),r=Ut(void 0);try{return e()}finally{Sr(t),Ut(r)}}get(e,t=_s,r=se.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Wy))return e[Wy](this);r=Lc(r);const o=Sr(this),s=Ut(void 0);try{if(!(r&se.SkipSelf)){let l=this.records.get(e);if(void 0===l){const u=function Ok(n){return"function"==typeof n||"object"==typeof n&&n instanceof P}(e)&&Rc(e);l=u&&this.injectableDefInScope(u)?no(F_(e),$c):null,this.records.set(e,l)}if(null!=l)return this.hydrate(e,l)}return(r&se.Self?qc():this.parent).get(e,t=r&se.Optional&&t===_s?null:t)}catch(c){if("NullInjectorError"===c.name){if((c[Pc]=c[Pc]||[]).unshift(Qe(e)),o)throw c;return function sk(n,e,t,r){const i=n[Pc];throw e[Zy]&&i.unshift(e[Zy]),n.message=function ak(n,e,t,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let i=Qe(e);if(Array.isArray(e))i=e.map(Qe).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let c=e[s];o.push(s+":"+("string"==typeof c?JSON.stringify(c):Qe(c)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${n.replace(tk,"\n ")}`}("\n"+n.message,i,t,r),n.ngTokenPath=i,n[Pc]=null,n}(c,e,"R3InjectorError",this.source)}throw c}finally{Ut(s),Sr(o)}}resolveInjectorInitializers(){const e=K(null),t=Sr(this),r=Ut(void 0);try{const o=this.get(Vn,ce,se.Self);for(const s of o)s()}finally{Sr(t),Ut(r),K(e)}}toString(){const e=[],t=this.records;for(const r of t.keys())e.push(Qe(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(e){let t=ri(e=q(e))?e:q(e&&e.provide);const r=function Fk(n){return A_(n)?no(void 0,n.useValue):no(hw(n),$c)}(e);if(!ri(e)&&!0===e.multi){let i=this.records.get(t);i||(i=no(void 0,$c,!0),i.factory=()=>w_(i.multi),this.records.set(t,i)),t=e,i.multi.push(e)}this.records.set(t,r)}hydrate(e,t){const r=K(null);try{return t.value===$c&&(t.value=Nk,t.value=t.factory()),"object"==typeof t.value&&t.value&&function xk(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{K(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;const t=q(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){const t=this._onDestroyHooks.indexOf(e);-1!==t&&this._onDestroyHooks.splice(t,1)}}function F_(n){const e=Rc(n),t=null!==e?e.factory:ti(n);if(null!==t)return t;if(n instanceof P)throw new M(204,!1);if(n instanceof Function)return function kk(n){if(n.length>0)throw new M(204,!1);const t=function JN(n){return n&&(n[Oc]||n[$y])||null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new M(204,!1)}function hw(n,e,t){let r;if(ri(n)){const i=q(n);return ti(i)||F_(i)}if(A_(n))r=()=>q(n.useValue);else if(function pw(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...w_(n.deps||[]));else if(function fw(n){return!(!n||!n.useExisting)}(n))r=()=>H(q(n.useExisting));else{const i=q(n&&(n.useClass||n.provide));if(!function Rk(n){return!!n.deps}(n))return ti(i)||F_(i);r=()=>new i(...w_(n.deps))}return r}function no(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function R_(n,e){for(const t of n)Array.isArray(t)?R_(t,e):t&&f_(t)?R_(t.\u0275providers,e):e(t)}const Fe=0,A=1,U=2,We=3,vn=4,ct=5,Ct=6,io=7,Ie=8,Je=9,jn=10,W=11,ms=12,ww=13,oo=14,Re=15,ii=16,so=17,or=18,ao=19,bw=20,Tr=21,Jc=22,ln=23,j=25,O_=1,Bn=7,co=9,Ue=10;var Zc=function(n){return n[n.None=0]="None",n[n.HasTransplantedViews=2]="HasTransplantedViews",n}(Zc||{});function tt(n){return Array.isArray(n)&&"object"==typeof n[O_]}function pt(n){return Array.isArray(n)&&!0===n[O_]}function P_(n){return!!(4&n.flags)}function oi(n){return n.componentOffset>-1}function Yc(n){return!(1&~n.flags)}function En(n){return!!n.template}function ws(n){return!!(512&n[U])}class Jk{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Cw(n,e,t,r){null!==e?e.applyValueToInputSignal(e,r):n[t]=r}function sr(){return Sw}function Sw(n){return n.type.prototype.ngOnChanges&&(n.setInput=Zk),Kk}function Kk(){const n=Tw(this),e=n?.current;if(e){const t=n.previous;if(t===Ln)n.previous=e;else for(let r in e)t[r]=e[r];n.current=null,this.ngOnChanges(e)}}function Zk(n,e,t,r,i){const o=this.declaredInputs[r],s=Tw(n)||function Yk(n,e){return n[Iw]=e}(n,{previous:Ln,current:null}),c=s.current||(s.current={}),l=s.previous,u=l[o];c[o]=new Jk(u&&u.currentValue,t,l===Ln),Cw(n,e,i,t)}sr.ngInherit=!0;const Iw="__ngSimpleChanges__";function Tw(n){return n[Iw]||null}const Hn=function(n,e,t){},Mw="svg";function le(n){for(;Array.isArray(n);)n=n[Fe];return n}function bs(n,e){return le(e[n])}function St(n,e){return le(e[n.index])}function vs(n,e){return n.data[e]}function Xt(n,e){const t=e[n];return tt(t)?t:t[Fe]}function H_(n){return!(128&~n[U])}function un(n,e){return null==e?null:n[e]}function Nw(n){n[so]=0}function kw(n){1024&n[U]||(n[U]|=1024,H_(n)&&Qc(n))}function Es(n){return!!(9216&n[U]||n[ln]?.dirty)}function U_(n){n[jn].changeDetectionScheduler?.notify(7),64&n[U]&&(n[U]|=1024),Es(n)&&Qc(n)}function Qc(n){n[jn].changeDetectionScheduler?.notify(0);let e=ar(n);for(;null!==e&&!(8192&e[U])&&(e[U]|=8192,H_(e));)e=ar(e)}function Xc(n,e){if(!(256&~n[U]))throw new M(911,!1);null===n[Tr]&&(n[Tr]=[]),n[Tr].push(e)}function ar(n){const e=n[We];return pt(e)?e[We]:e}const J={lFrame:$w(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Rw=!1;function xw(){return J.bindingsEnabled}function ai(){return null!==J.skipHydrationRootTNode}function T(){return J.lFrame.lView}function te(){return J.lFrame.tView}function _e(n){return J.lFrame.contextLView=n,n[Ie]}function fe(n){return J.lFrame.contextLView=null,n}function be(){let n=Ow();for(;null!==n&&64===n.type;)n=n.parent;return n}function Ow(){return J.lFrame.currentTNode}function Dn(n,e){const t=J.lFrame;t.currentTNode=n,t.isParent=e}function q_(){return J.lFrame.isParent}function G_(){J.lFrame.isParent=!1}function Vw(){return Rw}function jw(n){Rw=n}function It(){const n=J.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function Cn(){return J.lFrame.bindingIndex++}function lr(n){const e=J.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function dF(n,e){const t=J.lFrame;t.bindingIndex=t.bindingRootIndex=n,W_(e)}function W_(n){J.lFrame.currentDirectiveIndex=n}function K_(){return J.lFrame.currentQueryIndex}function tl(n){J.lFrame.currentQueryIndex=n}function fF(n){const e=n[A];return 2===e.type?e.declTNode:1===e.type?n[ct]:null}function Uw(n,e,t){if(t&se.SkipSelf){let i=e,o=n;for(;!(i=i.parent,null!==i||t&se.Host||(i=fF(o),null===i||(o=o[oo],10&i.type))););if(null===i)return!1;e=i,n=o}const r=J.lFrame=zw();return r.currentTNode=e,r.lView=n,!0}function Z_(n){const e=zw(),t=n[A];J.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function zw(){const n=J.lFrame,e=null===n?null:n.child;return null===e?$w(n):e}function $w(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function qw(){const n=J.lFrame;return J.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Gw=qw;function Y_(){const n=qw();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function lt(){return J.lFrame.selectedIndex}function ci(n){J.lFrame.selectedIndex=n}function Te(){const n=J.lFrame;return vs(n.tView,n.selectedIndex)}function nl(){J.lFrame.currentNamespace=Mw}let Kw=!0;function Cs(){return Kw}function Un(n){Kw=n}function rl(n,e){for(let t=e.directiveStart,r=e.directiveEnd;t=r)break}else e[l]<0&&(n[so]+=65536),(c>14>16&&(3&n[U])===e&&(n[U]+=16384,Yw(c,o)):Yw(c,o)}const lo=-1;class Ss{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}const ef={};class li{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,r){r=Lc(r);const i=this.injector.get(e,ef,r);return i!==ef||t===ef?i:this.parentInjector.get(e,t,r)}}function tf(n){return n!==lo}function Is(n){return 32767&n}function Ts(n,e){let t=function EF(n){return n>>16}(n),r=e;for(;t>0;)r=r[oo],t--;return r}let nf=!0;function sl(n){const e=nf;return nf=n,e}const Xw=255,eb=5;let CF=0;const zn={};function al(n,e){const t=tb(n,e);if(-1!==t)return t;const r=e[A];r.firstCreatePass&&(n.injectorIndex=e.length,rf(r.data,n),rf(e,null),rf(r.blueprint,null));const i=cl(n,e),o=n.injectorIndex;if(tf(i)){const s=Is(i),c=Ts(i,e),l=c[A].data;for(let u=0;u<8;u++)e[o+u]=c[s+u]|l[s+u]}return e[o+8]=i,o}function rf(n,e){n.push(0,0,0,0,0,0,0,0,e)}function tb(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function cl(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,r=null,i=e;for(;null!==i;){if(r=cb(i),null===r)return lo;if(t++,i=i[oo],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return lo}function sf(n,e,t){!function SF(n,e,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(ds)&&(r=t[ds]),null==r&&(r=t[ds]=CF++);const i=r&Xw;e.data[n+(i>>eb)]|=1<=0?e&Xw:AF:e}(t);if("function"==typeof o){if(!Uw(e,n,r))return r&se.Host?nb(i,0,r):rb(e,t,r,i);try{let s;if(s=o(r),null!=s||r&se.Optional)return s;g_()}finally{Gw()}}else if("number"==typeof o){let s=null,c=tb(n,e),l=lo,u=r&se.Host?e[Re][ct]:null;for((-1===c||r&se.SkipSelf)&&(l=-1===c?cl(n,e):e[c+8],l!==lo&&ab(r,!1)?(s=e[A],c=Is(l),e=Ts(l,e)):c=-1);-1!==c;){const d=e[A];if(sb(o,c,d.data)){const _=TF(c,e,t,s,r,u);if(_!==zn)return _}l=e[c+8],l!==lo&&ab(r,e[A].data[c+8]===u)&&sb(o,c,e)?(s=d,c=Is(l),e=Ts(l,e)):c=-1}}return i}function TF(n,e,t,r,i,o){const s=e[A],c=s.data[n+8],d=ll(c,s,t,null==r?oi(c)&&nf:r!=s&&!!(3&c.type),i&se.Host&&o===c);return null!==d?ui(e,s,d,c):zn}function ll(n,e,t,r,i){const o=n.providerIndexes,s=e.data,c=1048575&o,l=n.directiveStart,d=o>>20,f=i?c+d:n.directiveEnd;for(let p=r?c:c+d;p=l&&y.type===t)return p}if(i){const p=s[l];if(p&&En(p)&&p.type===t)return l}return null}function ui(n,e,t,r){let i=n[t];const o=e.data;if(function wF(n){return n instanceof Ss}(i)){const s=i;s.resolving&&function QN(n,e){throw e&&e.join(" > "),new M(-200,n)}(function pe(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Z(n)}(o[t]));const c=sl(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?Ut(s.injectImpl):null;Uw(n,r,se.Default);try{i=n[t]=s.factory(void 0,o,n,r),e.firstCreatePass&&t>=r.directiveStart&&function mF(n,e,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const s=Sw(e);(t.preOrderHooks??=[]).push(n,s),(t.preOrderCheckHooks??=[]).push(n,s)}i&&(t.preOrderHooks??=[]).push(0-n,i),o&&((t.preOrderHooks??=[]).push(n,o),(t.preOrderCheckHooks??=[]).push(n,o))}(t,o[t],e)}finally{null!==u&&Ut(u),sl(c),s.resolving=!1,Gw()}}return i}function sb(n,e,t){return!!(t[e+(n>>eb)]&1<{const e=n.prototype.constructor,t=e[rr]||af(e),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const o=i[rr]||af(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function af(n){return Fc(n)?()=>{const e=af(q(n));return e&&e()}:ti(n)}function cb(n){const e=n[A],t=e.type;return 2===t?e.declTNode:1===t?n[ct]:null}function fb(n,e=null,t=null,r){const i=function pb(n,e=null,t=null,r,i=new Set){const o=[t||ce,dw(n)];return r=r||("object"==typeof n?void 0:Qe(n)),new to(o,e||qc(),r||null,i)}(n,e,t,r);return i.resolveInjectorInitializers(),i}class rt{static{this.THROW_IF_NOT_FOUND=_s}static{this.NULL=new Bc}static create(e,t){if(Array.isArray(e))return fb({name:""},t,e,"");{const r=e.name??"";return fb({name:r},e.parent,e.providers,r)}}static{this.\u0275prov=G({token:rt,providedIn:"any",factory:()=>H(tw)})}static{this.__NG_ELEMENT_ID__=-1}}new P("").__NG_ELEMENT_ID__=n=>{const e=be();if(null===e)throw new M(204,!1);if(2&e.type)return e.value;if(n&se.Optional)return null;throw new M(204,!1)};function lf(n){return n.ngOriginalError}let Ms=(()=>{class n{static{this.__NG_ELEMENT_ID__=BF}static{this.__NG_ENV_ID__=t=>t}}return n})();class jF extends Ms{constructor(e){super(),this._lView=e}onDestroy(e){return Xc(this._lView,e),()=>function z_(n,e){if(null===n[Tr])return;const t=n[Tr].indexOf(e);-1!==t&&n[Tr].splice(t,1)}(this._lView,e)}}function BF(){return new jF(T())}let Mr=(()=>{class n{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Qd(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=G({token:n,providedIn:"root",factory:()=>new n})}}return n})();const ke=class HF extends Qr{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,function mw(){return void 0!==Jy()||null!=function rk(){return Qi}()}()&&(this.destroyRef=L(Ms,{optional:!0})??void 0,this.pendingTasks=L(Mr,{optional:!0})??void 0)}emit(e){const t=K(null);try{super.next(e)}finally{K(t)}}subscribe(e,t,r){let i=e,o=t||(()=>null),s=r;if(e&&"object"==typeof e){const l=e;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));const c=super.subscribe({next:i,error:o,complete:s});return e instanceof an&&e.add(c),c}wrapInTimeout(e){return t=>{const r=this.pendingTasks?.add();setTimeout(()=>{e(t),void 0!==r&&this.pendingTasks?.remove(r)})}}};function _l(...n){}function gb(n){let e,t;function r(){n=_l;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==e&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{n(),r()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{n(),r()})),()=>r()}function mb(n){return queueMicrotask(()=>n()),()=>{n=_l}}class ye{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ke(!1),this.onMicrotaskEmpty=new ke(!1),this.onStable=new ke(!1),this.onError=new ke(!1),typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.callbackScheduled=!1,function $F(n){const e=()=>{!function zF(n){n.isCheckStableRunning||n.callbackScheduled||(n.callbackScheduled=!0,Zone.root.run(()=>{gb(()=>{n.callbackScheduled=!1,df(n),n.isCheckStableRunning=!0,uf(n),n.isCheckStableRunning=!1})}),df(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,o,s,c)=>{if(function qF(n){return bb(n,"__ignore_ng_zone__")}(c))return t.invokeTask(i,o,s,c);try{return yb(n),t.invokeTask(i,o,s,c)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&e(),wb(n)}},onInvoke:(t,r,i,o,s,c,l)=>{try{return yb(n),t.invoke(i,o,s,c,l)}finally{n.shouldCoalesceRunChangeDetection&&!n.callbackScheduled&&!function GF(n){return bb(n,"__scheduler_tick__")}(c)&&e(),wb(n)}},onHasTask:(t,r,i,o)=>{t.hasTask(i,o),r===i&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,df(n),uf(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,r,i,o)=>(t.handleError(i,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ye.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(ye.isInAngularZone())throw new M(909,!1)}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,UF,_l,_l);try{return o.runTask(s,t,r)}finally{o.cancelTask(s)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const UF={};function uf(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function df(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&!0===n.callbackScheduled)}function yb(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function wb(n){n._nesting--,uf(n)}class _f{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ke,this.onMicrotaskEmpty=new ke,this.onStable=new ke,this.onError=new ke}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,i){return e.apply(t,r)}}function bb(n,e){return!(!Array.isArray(n)||1!==n.length)&&!0===n[0]?.data?.[e]}class Sn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&lf(e);for(;t&&lf(t);)t=lf(t);return t||null}}const JF=new P("",{providedIn:"root",factory:()=>{const n=L(ye),e=L(Sn);return t=>n.runOutsideAngular(()=>e.handleError(t))}});function KF(){return fo(be(),T())}function fo(n,e){return new dn(St(n,e))}let dn=(()=>{class n{constructor(t){this.nativeElement=t}static{this.__NG_ELEMENT_ID__=KF}}return n})();function Eb(n){return n instanceof dn?n.nativeElement:n}function ZF(){return this._results[Symbol.iterator]()}class ff{get changes(){return this._changes??=new ke}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=ff.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=ZF)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const r=function zt(n){return n.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function dk(n,e,t){if(n.length!==e.length)return!1;for(let r=0;ryR}),yR="ng",Ub=new P(""),di=new P("",{providedIn:"platform",factory:()=>"unknown"}),zb=new P("",{providedIn:"root",factory:()=>Ar().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let $b=()=>null;function Cf(n,e,t=!1){return $b(n,e,t)}const Qb=new P("",{providedIn:"root",factory:()=>!1});let El,Dl;function mo(n){return function Af(){if(void 0===El&&(El=null,Ne.trustedTypes))try{El=Ne.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return El}()?.createHTML(n)||n}function tv(n){return function Nf(){if(void 0===Dl&&(Dl=null,Ne.trustedTypes))try{Dl=Ne.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Dl}()?.createHTML(n)||n}class iv{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${jy})`}}function Nr(n){return n instanceof iv?n.changingThisBreaksApplicationSecurity:n}class VR{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(mo(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}}class jR{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){const t=this.inertDocument.createElement("template");return t.innerHTML=mo(e),t}}const HR=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ur(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function js(...n){const e={};for(const t of n)for(const r in t)t.hasOwnProperty(r)&&(e[r]=!0);return e}const sv=ur("area,br,col,hr,img,wbr"),av=ur("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),cv=ur("rp,rt"),Ff=js(sv,js(av,ur("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),js(cv,ur("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),js(cv,av)),Rf=ur("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),lv=js(Rf,ur("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ur("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),UR=ur("script,style,template");class zR{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,r=!0,i=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)i.push(t),t=GR(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=qR(t);if(o){t=o;break}t=i.pop()}return this.buf.join("")}startElement(e){const t=uv(e).toLowerCase();if(!Ff.hasOwnProperty(t))return this.sanitizedSomething=!0,!UR.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=e.attributes;for(let i=0;i"),!0}endElement(e){const t=uv(e).toLowerCase();Ff.hasOwnProperty(t)&&!sv.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(_v(e))}}function qR(n){const e=n.nextSibling;if(e&&n!==e.previousSibling)throw dv(e);return e}function GR(n){const e=n.firstChild;if(e&&function $R(n,e){return(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(n,e))throw dv(e);return e}function uv(n){const e=n.nodeName;return"string"==typeof e?e:"FORM"}function dv(n){return new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`)}const WR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,JR=/([^\#-~ |!])/g;function _v(n){return n.replace(/&/g,"&").replace(WR,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(JR,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Cl;function xf(n){return"content"in n&&function ZR(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var yo=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(yo||{});function fv(n){const e=function Bs(){const n=T();return n&&n[jn].sanitizer}();return e?tv(e.sanitize(yo.HTML,n)||""):function Vs(n,e){const t=function LR(n){return n instanceof iv&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see ${jy})`)}return t===e}(n,"HTML")?tv(Nr(n)):function KR(n,e){let t=null;try{Cl=Cl||function ov(n){const e=new jR(n);return function BR(){try{return!!(new window.DOMParser).parseFromString(mo(""),"text/html")}catch{return!1}}()?new VR(e):e}(n);let r=e?String(e):"";t=Cl.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=t.innerHTML,t=Cl.getInertBodyElement(r)}while(r!==o);return mo((new zR).sanitizeChildren(xf(t)||t))}finally{if(t){const r=xf(t)||t;for(;r.firstChild;)r.firstChild.remove()}}}(Ar(),Z(n))}const rx=/^>|^->||--!>|)/g,ox="\u200b$1\u200b";var kr=function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n}(kr||{});let Lf;function Vf(n,e){return Lf(n,e)}function bo(n,e,t,r,i){if(null!=r){let o,s=!1;pt(r)?o=r:tt(r)&&(s=!0,r=r[Fe]);const c=le(r);0===n&&null!==t?null==i?Mv(e,t,c):fi(e,t,c,i||null,!0):1===n&&null!==t?fi(e,t,c,i||null,!0):2===n?function Us(n,e,t){n.removeChild(null,e,t)}(e,c,s):3===n&&e.destroyNode(c),null!=o&&function Sx(n,e,t,r,i){const o=t[Bn];o!==le(t)&&bo(e,n,r,o,i);for(let c=Ue;ce.replace(ix,ox))}(e))}function Tl(n,e,t){return n.createElement(e,t)}function Sv(n,e){e[jn].changeDetectionScheduler?.notify(8),Nl(n,e,e[W],2,null,null)}function Iv(n,e){const t=n[co],r=e[We];(tt(r)||e[Re]!==r[We][Re])&&(n[U]|=Zc.HasTransplantedViews),null===t?n[co]=[e]:t.push(e)}function Hf(n,e){const t=n[co],r=t.indexOf(e);t.splice(r,1)}function Hs(n,e){if(n.length<=Ue)return;const t=Ue+e,r=n[t];if(r){const i=r[ii];null!==i&&i!==n&&Hf(i,r),e>0&&(n[t-1][vn]=r[vn]);const o=Vc(n,Ue+e);!function mx(n,e){Sv(n,e),e[Fe]=null,e[ct]=null}(r[A],r);const s=o[or];null!==s&&s.detachView(o[A]),r[We]=null,r[vn]=null,r[U]&=-129}return r}function Ml(n,e){if(!(256&e[U])){const t=e[W];t.destroyNode&&Nl(n,e,t,3,null,null),function wx(n){let e=n[ms];if(!e)return Uf(n[A],n);for(;e;){let t=null;if(tt(e))t=e[ms];else{const r=e[Ue];r&&(t=r)}if(!t){for(;e&&!e[vn]&&e!==n;)tt(e)&&Uf(e[A],e),e=e[We];null===e&&(e=n),tt(e)&&Uf(e[A],e),t=e&&e[vn]}e=t}}(e)}}function Uf(n,e){if(256&e[U])return;const t=K(null);try{e[U]&=-129,e[U]|=256,e[ln]&&Hd(e[ln]),function Ex(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),o+=2}else t[o].call(r[t[o+1]]);null!==r&&(e[io]=null);const i=e[Tr];if(null!==i){e[Tr]=null;for(let o=0;o-1){const{encapsulation:o}=n.data[r.directiveStart+i];if(o===wn.None||o===wn.Emulated)return null}return St(r,t)}}(n,e.parent,t)}function fi(n,e,t,r,i){n.insertBefore(e,t,r,i)}function Mv(n,e,t){n.appendChild(e,t)}function Av(n,e,t,r,i){null!==r?fi(n,e,t,r,i):Mv(n,e,t)}function $f(n,e){return n.parentNode(e)}function Nv(n,e,t){return Fv(n,e,t)}let qf,Fv=function kv(n,e,t){return 40&n.type?St(n,t):null};function Al(n,e,t,r){const i=zf(n,r,e),o=e[W],c=Nv(r.parent||e[ct],r,e);if(null!=i)if(Array.isArray(t))for(let l=0;lj&&jv(n,e,j,!1),Hn(s?2:0,i),t(r,i)}finally{ci(o),Hn(s?3:1,i)}}function Kf(n,e,t){if(P_(e)){const r=K(null);try{const o=e.directiveEnd;for(let s=e.directiveStart;snull;function $v(n,e,t,r,i){for(let o in e){if(!e.hasOwnProperty(o))continue;const s=e[o];if(void 0===s)continue;r??={};let c,l=Ir.None;Array.isArray(s)?(c=s[0],l=s[1]):c=s;let u=o;if(null!==i){if(!i.hasOwnProperty(o))continue;u=i[o]}0===n?qv(r,t,u,c,l):qv(r,t,u,c)}return r}function qv(n,e,t,r,i){let o;n.hasOwnProperty(t)?(o=n[t]).push(e,r):o=n[t]=[e,r],void 0!==i&&o.push(i)}function Wt(n,e,t,r,i,o,s,c){const l=St(e,t);let d,u=e.inputs;!c&&null!=u&&(d=u[r])?(rp(n,t,d,r,i),oi(e)&&function jx(n,e){const t=Xt(e,n);16&t[U]||(t[U]|=64)}(t,e.index)):3&e.type&&(r=function Vx(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=s?s(i,e.value||"",r):i,o.setProperty(l,r,i))}function Xf(n,e,t,r){if(xw()){const i=null===r?null:{"":-1},o=function qx(n,e){const t=n.directiveRegistry;let r=null,i=null;if(t)for(let o=0;o0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(s)!=c&&s.push(c),s.push(t,r,o)}}(n,e,r,zs(n,t,i.hostVars,Y),i)}function $n(n,e,t,r,i,o){const s=St(n,e);!function tp(n,e,t,r,i,o,s){if(null==o)n.removeAttribute(e,i,t);else{const c=null==s?Z(o):s(o,r||"",i);n.setAttribute(e,i,c,t)}}(e[W],s,o,n.value,t,r,i)}function Yx(n,e,t,r,i,o){const s=o[e];if(null!==s)for(let c=0;c0&&(t[i-1][vn]=e),r{Qc(n.lView)},consumerOnSignalRead(){this.lView[ln]=this}},aO={...wc,consumerIsAlwaysLive:!0,consumerMarkedDirty:n=>{let e=ar(n.lView);for(;e&&!n0(e[A]);)e=ar(e);e&&kw(e)},consumerOnSignalRead(){this.lView[ln]=this}};function n0(n){return 2!==n.type}const cO=100;function xl(n,e=!0,t=0){const r=n[jn],i=r.rendererFactory;i.begin?.();try{!function lO(n,e){const t=Vw();try{jw(!0),sp(n,e);let r=0;for(;Es(n);){if(r===cO)throw new M(103,!1);r++,sp(n,1)}}finally{jw(t)}}(n,t)}catch(s){throw e&&Rl(n,s),s}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function uO(n,e,t,r){const i=e[U];if(!(256&~i))return;e[jn].inlineEffectRunner?.flush(),Z_(e);let c=!0,l=null,u=null;n0(n)?(u=function nO(n){return n[ln]??function rO(n){const e=t0.pop()??Object.create(oO);return e.lView=n,e}(n)}(e),l=bc(u)):null===function Kr(){return me}()?(c=!1,u=function sO(n){const e=n[ln]??Object.create(aO);return e.lView=n,e}(e),l=bc(u)):e[ln]&&(Hd(e[ln]),e[ln]=null);try{Nw(e),function Bw(n){return J.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Hv(n,e,t,2,r);const d=!(3&~i);if(d){const p=n.preOrderCheckHooks;null!==p&&il(e,p,null)}else{const p=n.preOrderHooks;null!==p&&ol(e,p,0,null),Q_(e,0)}if(function dO(n){for(let e=Fb(n);null!==e;e=Rb(e)){if(!(e[U]&Zc.HasTransplantedViews))continue;const t=e[co];for(let r=0;r-1&&(Hs(e,r),Vc(t,r))}this._attachedToViewContainer=!1}Ml(this._lView[A],this._lView)}onDestroy(e){Xc(this._lView,e)}markForCheck(){qs(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[U]&=-129}reattach(){U_(this._lView),this._lView[U]|=128}detectChanges(){this._lView[U]|=1024,xl(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const e=ws(this._lView),t=this._lView[ii];null!==t&&!e&&Hf(t,this._lView),Sv(this._lView[A],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=e;const t=ws(this._lView),r=this._lView[ii];null!==r&&!t&&Iv(r,this._lView),U_(this._lView)}}let _r=(()=>{class n{static{this.__NG_ELEMENT_ID__=hO}}return n})();const fO=_r,pO=class extends fO{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,r){const i=vo(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:r});return new Gs(i)}};function hO(){return Ol(be(),T())}function Ol(n,e){return 4&n.type?new pO(e,n,fo(n,e)):null}let M0=()=>null;function yi(n,e){return M0(n,e)}class Co{}const ea=new P("",{providedIn:"root",factory:()=>!1}),A0=new P("");class aP{}class N0{}class lP{resolveComponentFactory(e){throw function cP(n){const e=Error(`No component factory found for ${Qe(n)}.`);return e.ngComponent=n,e}(e)}}class Hl{static{this.NULL=new lP}}class mp{}let wi=(()=>{class n{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function uP(){const n=T(),t=Xt(be().index,n);return(tt(t)?t:n)[W]}()}}return n})(),dP=(()=>{class n{static{this.\u0275prov=G({token:n,providedIn:"root",factory:()=>null})}}return n})();const F0=new Set;function Tt(n){F0.has(n)||(F0.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}let Ul=(()=>{class n{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const t=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of t)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=G({token:n,providedIn:"root",factory:()=>new n})}}return n})();function $l(n,e,t){let r=t?n.styles:null,i=t?n.classes:null,o=0;if(null!==e)for(let s=0;s0&&Lv(n,t,o.join(" "))}}(p,oe,w,r),void 0!==t&&function IP(n,e,t){const r=n.projection=[];for(let i=0;i{class n{static{this.__NG_ELEMENT_ID__=MP}}return n})();function MP(){return H0(be(),T())}const AP=qn,j0=class extends AP{constructor(e,t,r){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=r}get element(){return fo(this._hostTNode,this._hostLView)}get injector(){return new nt(this._hostTNode,this._hostLView)}get parentInjector(){const e=cl(this._hostTNode,this._hostLView);if(tf(e)){const t=Ts(e,this._hostLView),r=Is(e);return new nt(t[A].data[r+8],t)}return new nt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=B0(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-Ue}createEmbeddedView(e,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=yi(this._lContainer,e.ssrId),c=e.createEmbeddedViewImpl(t||{},o,s);return this.insertImpl(c,i,gi(this._hostTNode,s)),c}createComponent(e,t,r,i,o){const s=e&&!function gs(n){return"function"==typeof n}(e);let c;if(s)c=t;else{const y=t||{};c=y.index,r=y.injector,i=y.projectableNodes,o=y.environmentInjector||y.ngModuleRef}const l=s?e:new ra(re(e)),u=r||this.parentInjector;if(!o&&null==l.ngModule){const w=(s?u:this.parentInjector).get(cn,null);w&&(o=w)}const d=re(l.componentType??{}),_=yi(this._lContainer,d?.id??null),p=l.create(u,i,_?.firstChild??null,o);return this.insertImpl(p.hostView,c,gi(this._hostTNode,_)),p}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,r){const i=e._lView;if(function tF(n){return pt(n[We])}(i)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const l=i[We],u=new j0(l,l[ct],l[We]);u.detach(u.indexOf(e))}}const o=this._adjustIndex(t),s=this._lContainer;return Eo(s,i,o,r),e.attachToViewContainerRef(),Qy(vp(s),o,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=B0(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),r=Hs(this._lContainer,t);r&&(Vc(vp(this._lContainer),t),Ml(r[A],r))}detach(e){const t=this._adjustIndex(e,-1),r=Hs(this._lContainer,t);return r&&null!=Vc(vp(this._lContainer),t)?new Gs(r):null}_adjustIndex(e,t=0){return e??this.length+t}};function B0(n){return n[8]}function vp(n){return n[8]||(n[8]=[])}function H0(n,e){let t;const r=e[n.index];return pt(r)?t=r:(t=Jv(r,e,null,n),e[n.index]=t,Fl(e,t)),U0(t,e,n,r),new j0(t,n,e)}let U0=function $0(n,e,t,r){if(n[Bn])return;let i;i=8&t.type?le(r):function NP(n,e){const t=n[W],r=t.createComment(""),i=St(e,n);return fi(t,$f(t,i),r,function Dx(n,e){return n.nextSibling(e)}(t,i),!1),r}(e,t),n[Bn]=i},Ep=()=>!1;class Dp{constructor(e){this.queryList=e,this.matches=null}clone(){return new Dp(this.queryList)}setDirty(){this.queryList.setDirty()}}class Cp{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const r=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let o=0;oe.trim())}(e):e}}class Sp{constructor(e=[]){this.queries=e}elementStart(e,t){for(let r=0;r0)r.push(s[c/2]);else{const u=o[c+1],d=e[-l];for(let _=Ue;_(Vd(e),e.value);return t[Dt]=e,t}(n),r=t[Dt];return e?.equal&&(r.equal=e.equal),t.set=i=>uy(r,i),t.update=i=>function SA(n,e){ry()||ly(),uy(n,e(n.value))}(r,i),t.asReadonly=X0.bind(t),t}function X0(){const n=this[Dt];if(void 0===n.readonlyFn){const e=()=>this();e[Dt]=n,n.readonlyFn=e}return n.readonlyFn}function ve(n){let e=function dE(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const r=[n];for(;e;){let i;if(En(n))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new M(903,!1);i=e.\u0275dir}if(i){if(t){r.push(i);const s=n;s.inputs=Gl(n.inputs),s.inputTransforms=Gl(n.inputTransforms),s.declaredInputs=Gl(n.declaredInputs),s.outputs=Gl(n.outputs);const c=i.hostBindings;c&&XP(n,c);const l=i.viewQuery,u=i.contentQueries;if(l&&YP(n,l),u&&QP(n,u),KP(n,i),zN(n.outputs,i.outputs),En(i)&&i.data.animation){const d=n.data;d.animation=(d.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s=0;r--){const i=n[r];i.hostVars=e+=i.hostVars,i.hostAttrs=ps(i.hostAttrs,t=ps(t,i.hostAttrs))}}(r)}function KP(n,e){for(const t in e.inputs){if(!e.inputs.hasOwnProperty(t)||n.inputs.hasOwnProperty(t))continue;const r=e.inputs[t];if(void 0!==r&&(n.inputs[t]=r,n.declaredInputs[t]=e.declaredInputs[t],null!==e.inputTransforms)){const i=Array.isArray(r)?r[0]:r;if(!e.inputTransforms.hasOwnProperty(i))continue;n.inputTransforms??={},n.inputTransforms[i]=e.inputTransforms[i]}}}function Gl(n){return n===Ln?{}:n===ce?[]:n}function YP(n,e){const t=n.viewQuery;n.viewQuery=t?(r,i)=>{e(r,i),t(r,i)}:e}function QP(n,e){const t=n.contentQueries;n.contentQueries=t?(r,i,o)=>{e(r,i,o),t(r,i,o)}:e}function XP(n,e){const t=n.hostBindings;n.hostBindings=t?(r,i)=>{e(r,i),t(r,i)}:e}class vi{}class hE extends vi{constructor(e){super(),this.componentFactoryResolver=new L0(this),this.instance=null;const t=new to([...e.providers,{provide:vi,useValue:this},{provide:Hl,useValue:this.componentFactoryResolver}],e.parent||qc(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function Wl(n){return!!function Rp(n){return null!==n&&("function"==typeof n||"object"==typeof n)}(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function Gn(n,e,t){return n[e]=t}function ze(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function Ei(n,e,t,r){const i=ze(n,e,t);return ze(n,e+1,r)||i}function sa(n,e,t,r,i,o,s,c,l,u){const d=t+j,_=e.firstCreatePass?function fL(n,e,t,r,i,o,s,c,l){const u=e.consts,d=hi(e,n,4,s||null,c||null);Xf(e,t,d,un(u,l)),rl(e,d);const _=d.tView=Qf(2,d,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u,null);return null!==e.queries&&(e.queries.template(e,d),_.queries=e.queries.embeddedTView(d)),d}(d,e,n,r,i,o,s,c,l):e.data[d];Dn(_,!1);const f=mE(e,n,_,t);Cs()&&Al(e,n,f,_),gt(f,n);const p=Jv(f,n,f,_);return n[d]=p,Fl(n,p),function z0(n,e,t){return Ep(n,e,t)}(p,_,n),Yc(_)&&Zf(e,n,_),null!=l&&Yf(n,_,u),_}function ie(n,e,t,r,i,o,s,c){const l=T(),u=te();return sa(l,u,n,e,t,r,i,un(u.consts,o),s,c),ie}let mE=function yE(n,e,t,r){return Un(!0),e[W].createComment("")};function At(n,e,t,r){const i=T();return ze(i,Cn(),e)&&(te(),$n(Te(),i,n,e,t,r)),At}function Oo(n,e,t,r){return ze(n,Cn(),t)?e+Z(t)+r:Y}function Po(n,e,t,r,i,o){const c=Ei(n,function cr(){return J.lFrame.bindingIndex}(),t,i);return lr(2),c?e+Z(t)+r+Z(i)+o:Y}function eu(n,e){return n<<17|e<<2}function xr(n){return n>>17&32767}function $p(n){return 2|n}function Ci(n){return(131068&n)>>2}function qp(n,e){return-131069&n|e<<2}function Gp(n){return 1|n}function KE(n,e,t,r){const i=n[t+1],o=null===e;let s=r?xr(i):Ci(i),c=!1;for(;0!==s&&(!1===c||o);){const u=n[s+1];QL(n[s],e)&&(c=!0,n[s+1]=r?Gp(u):$p(u)),s=r?xr(u):Ci(u)}c&&(n[t+1]=r?$p(i):Gp(i))}function QL(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&eo(n,e)>=0}const it={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ZE(n){return n.substring(it.key,it.keyEnd)}function YE(n,e){const t=it.textEnd;return t===e?-1:(e=it.keyEnd=function n2(n,e,t){for(;e32;)e++;return e}(n,it.key=e,t),zo(n,e,t))}function zo(n,e,t){for(;e=0;t=YE(e,t))Qt(n,ZE(e),!0)}function rD(n,e){return e>=n.expandoStartIndex}function iD(n,e,t,r){const i=n.data;if(null===i[t+1]){const o=i[lt()],s=rD(n,t);cD(o,r)&&null===e&&!s&&(e=!1),e=function s2(n,e,t,r){const i=function J_(n){const e=J.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(t=ua(t=Jp(null,n,e,t,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||n[s]!==i)if(t=Jp(i,n,e,t,r),null===o){let l=function a2(n,e,t){const r=t?e.classBindings:e.styleBindings;if(0!==Ci(r))return n[xr(r)]}(n,e,r);void 0!==l&&Array.isArray(l)&&(l=Jp(null,n,e,l[1],r),l=ua(l,e.attrs,r),function c2(n,e,t,r){n[xr(t?e.classBindings:e.styleBindings)]=r}(n,e,r,l))}else o=function l2(n,e,t){let r;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(u=!0)):d=t,i)if(0!==l){const f=xr(n[c+1]);n[r+1]=eu(f,c),0!==f&&(n[f+1]=qp(n[f+1],r)),n[c+1]=function JL(n,e){return 131071&n|e<<17}(n[c+1],r)}else n[r+1]=eu(c,0),0!==c&&(n[c+1]=qp(n[c+1],r)),c=r;else n[r+1]=eu(l,0),0===c?c=r:n[l+1]=qp(n[l+1],r),l=r;u&&(n[r+1]=$p(n[r+1])),KE(n,d,r,!0),KE(n,d,r,!1),function YL(n,e,t,r,i){const o=i?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof e&&eo(o,e)>=0&&(t[r+1]=Gp(t[r+1]))}(e,d,n,r,o),s=eu(c,l),o?e.classBindings=s:e.styleBindings=s}(i,o,e,t,s,r)}}function Jp(n,e,t,r,i){let o=null;const s=t.directiveEnd;let c=t.directiveStylingLast;for(-1===c?c=t.directiveStart:c++;c0;){const l=n[i],u=Array.isArray(l),d=u?l[1]:l,_=null===d;let f=t[i+1];f===Y&&(f=_?ce:void 0);let p=_?D_(f,r):d===r?f:void 0;if(u&&!ru(p)&&(p=D_(l,r)),ru(p)&&(c=p,s))return c;const y=n[i+1];i=s?xr(y):Ci(y)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(c=D_(l,r))}return c}function ru(n){return void 0!==n}function cD(n,e){return!!(n.flags&(e?8:16))}function R(n,e,t,r){const i=T(),o=te(),s=j+n,c=i[W],l=o.firstCreatePass?function P2(n,e,t,r,i,o){const s=e.consts,l=hi(e,n,2,r,un(s,i));return Xf(e,t,l,un(s,o)),null!==l.attrs&&$l(l,l.attrs,!1),null!==l.mergedAttrs&&$l(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(s,o,i,e,t,r):o.data[s],u=_D(o,i,l,c,e,n);i[s]=u;const d=Yc(l);return Dn(l,!0),Vv(c,u,l),!function To(n){return!(32&~n.flags)}(l)&&Cs()&&Al(o,i,u,l),0===function nF(){return J.lFrame.elementDepthCount}()&>(u,i),function rF(){J.lFrame.elementDepthCount++}(),d&&(Zf(o,i,l),Kf(o,l,i)),null!==r&&Yf(i,l),R}function x(){let n=be();q_()?G_():(n=n.parent,Dn(n,!1));const e=n;(function oF(n){return J.skipHydrationRootTNode===n})(e)&&function lF(){J.skipHydrationRootTNode=null}(),function iF(){J.lFrame.elementDepthCount--}();const t=te();return t.firstCreatePass&&(rl(t,n),P_(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function bF(n){return!!(8&n.flags)}(e)&&Wp(t,e,T(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function vF(n){return!!(16&n.flags)}(e)&&Wp(t,e,T(),e.stylesWithoutHost,!1),x}function mt(n,e,t,r){return R(n,e,t,r),x(),mt}let _D=(n,e,t,r,i,o)=>(Un(!0),Tl(r,i,function Jw(){return J.lFrame.currentNamespace}()));function nn(n,e,t){const r=T(),i=te(),o=n+j,s=i.firstCreatePass?function j2(n,e,t,r,i){const o=e.consts,s=un(o,r),c=hi(e,n,8,"ng-container",s);return null!==s&&$l(c,s,!0),Xf(e,t,c,un(o,i)),null!==e.queries&&e.queries.elementStart(e,c),c}(o,i,r,e,t):i.data[o];Dn(s,!0);const c=fD(i,r,s,n);return r[o]=c,Cs()&&Al(i,r,c,s),gt(c,r),Yc(s)&&(Zf(i,r,s),Kf(i,s,r)),null!=t&&Yf(r,s),nn}function rn(){let n=be();const e=te();return q_()?G_():(n=n.parent,Dn(n,!1)),e.firstCreatePass&&(rl(e,n),P_(n)&&e.queries.elementEnd(n)),rn}function Si(n,e,t){return nn(n,e,t),rn(),Si}let fD=(n,e,t,r)=>(Un(!0),Bf(e[W],""));function xe(){return T()}const qo="en-US";let yD=qo;let LD=(n,e,t)=>{};function ee(n,e,t,r){const i=T(),o=te(),s=be();return function eh(n,e,t,r,i,o,s){const c=Yc(r),u=n.firstCreatePass&&Yv(n),d=e[Ie],_=Zv(e);let f=!0;if(3&r.type||s){const w=St(r,e),E=s?s(w):w,C=_.length,D=s?B=>s(le(B[r.index])):r.index;let N=null;if(!s&&c&&(N=function kV(n,e,t,r){const i=n.cleanup;if(null!=i)for(let o=0;ol?c[l]:null}"string"==typeof s&&(o+=2)}return null}(n,e,i,r.index)),null!==N)(N.__ngLastListenerFn__||N).__ngNextListenerFn__=o,N.__ngLastListenerFn__=o,f=!1;else{o=HD(r,e,d,o),LD(w,i,o);const B=t.listen(E,i,o);_.push(o,B),u&&u.push(i,D,C,C+1)}}else o=HD(r,e,d,o);const p=r.outputs;let y;if(f&&null!==p&&(y=p[i])){const w=y.length;if(w)for(let E=0;E-1?Xt(n.index,e):e,5);let c=BD(e,t,r,o),l=i.__ngNextListenerFn__;for(;l;)c=BD(e,t,l,o)&&c,l=l.__ngNextListenerFn__;return c}}function V(n=1){return function pF(n){return(J.lFrame.contextLView=function Fw(n,e){for(;n>0;)e=e[oo],n--;return e}(n,J.lFrame.contextLView))[Ie]}(n)}function FV(n,e){let t=null;const r=function mk(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(!(1&t))return e[t+1]}return null}(n);for(let i=0;i(Un(!0),function jf(n,e){return n.createText(e)}(e[W],r));function Mi(n){return yt("",n,""),Mi}function yt(n,e,t){const r=T(),i=Oo(r,n,e,t);return i!==Y&&dr(r,lt(),i),yt}function ga(n,e,t,r,i){const o=T(),s=Po(o,n,e,t,r,i);return s!==Y&&dr(o,lt(),s),ga}function ih(n,e,t,r,i){if(n=q(n),Array.isArray(n))for(let o=0;o>20;if(ri(n)||!n.multi){const p=new Ss(u,i,I),y=sh(l,e,i?d:d+f,_);-1===y?(sf(al(c,s),o,l),oh(o,n,e.length),e.push(l),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(p),s.push(p)):(t[y]=p,s[y]=p)}else{const p=sh(l,e,d+f,_),y=sh(l,e,d,d+f),E=y>=0&&t[y];if(i&&!E||!i&&!(p>=0&&t[p])){sf(al(c,s),o,l);const C=function tj(n,e,t,r,i){const o=new Ss(n,t,I);return o.multi=[],o.index=e,o.componentProviders=0,wC(o,i,r&&!t),o}(i?ej:XV,t.length,i,r,u);!i&&E&&(t[y].providerFactory=C),oh(o,n,e.length,0),e.push(l),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(C),s.push(C)}else oh(o,n,p>-1?p:y,wC(t[i?y:p],u,!i&&r));!i&&r&&E&&t[y].componentProviders++}}}function oh(n,e,t,r){const i=ri(e),o=function Ak(n){return!!n.useClass}(e);if(i||o){const l=(o?q(e.useClass):e).prototype.ngOnDestroy;if(l){const u=n.destroyHooks||(n.destroyHooks=[]);if(!i&&e.multi){const d=u.indexOf(t);-1===d?u.push(t,[r,l]):u[d+1].push(r,l)}else u.push(t,l)}}}function wC(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function sh(n,e,t,r){for(let i=t;i{t.providersResolver=(r,i)=>function QV(n,e,t){const r=te();if(r.firstCreatePass){const i=En(n);ih(t,r.data,r.blueprint,i,!0),ih(e,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,e)}}let nj=(()=>{class n{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=T_(0,t.type),i=r.length>0?function gE(n,e,t=null){return new hE({providers:n,parent:e,debugName:t,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=G({token:n,providedIn:"environment",factory:()=>new n(H(cn))})}}return n})();function wt(n){Tt("NgStandalone"),n.getStandaloneInjector=e=>e.get(nj).getOrCreateStandaloneInjector(n)}function uu(n,e,t){const r=It()+n,i=T();return i[r]===Y?Gn(i,r,t?e.call(t):e()):function oa(n,e){return n[e]}(i,r)}function Mn(n,e,t,r){return function DC(n,e,t,r,i,o){const s=e+t;return ze(n,s,i)?Gn(n,s+1,o?r.call(o,i):r(i)):ma(n,s+1)}(T(),It(),n,e,t,r)}function Go(n,e,t,r,i){return function CC(n,e,t,r,i,o,s){const c=e+t;return Ei(n,c,i,o)?Gn(n,c+2,s?r.call(s,i,o):r(i,o)):ma(n,c+2)}(T(),It(),n,e,t,r,i)}function EC(n,e,t,r,i,o){return function SC(n,e,t,r,i,o,s,c){const l=e+t;return function Jl(n,e,t,r,i){const o=Ei(n,e,t,r);return ze(n,e+2,i)||o}(n,l,i,o,s)?Gn(n,l+3,c?r.call(c,i,o,s):r(i,o,s)):ma(n,l+3)}(T(),It(),n,e,t,r,i,o)}function ma(n,e){const t=n[e];return t===Y?void 0:t}function Ai(n,e){return Ol(n,e)}const WC=new P("");function hu(n){return!!n&&"function"==typeof n.then}function JC(n){return!!n&&"function"==typeof n.subscribe}const KC=new P("");let gu=(()=>{class n{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=L(KC,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const o=i();if(hu(o))t.push(o);else if(JC(o)){const s=new Promise((c,l)=>{o.subscribe({complete:c,error:l})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const gh=new P("");let Kn=(()=>{class n{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=L(JF),this.afterRenderEffectManager=L(Ul),this.zonelessEnabled=L(ea),this.externalTestViews=new Set,this.beforeRender=new Qr,this.afterTick=new Qr,this.componentTypes=[],this.components=[],this.isStable=L(Mr).hasPendingTasks.pipe(Er(t=>!t)),this._injector=L(cn)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof N0;if(!this._injector.get(gu).done)throw!i&&function ni(n){const e=re(n)||Xe(n)||at(n);return null!==e&&e.standalone}(t),new M(405,!1);let s;s=i?t:this._injector.get(Hl).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const c=function fB(n){return n.isBoundToModule}(s)?void 0:this._injector.get(vi),u=s.create(rt.NULL,[],r||s.selector,c),d=u.location.nativeElement,_=u.injector.get(WC,null);return _?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),mu(this.components,u),_?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(t){if(this._runningTick)throw new M(101,!1);const r=K(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(t)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,K(r),this.afterTick.next()}}detectChangesInAttachedViews(t){let r=null;this._injector.destroyed||(r=this._injector.get(mp,null,{optional:!0}));let i=0;const o=this.afterRenderEffectManager;for(;i<10;){const s=0===i;if(t||!s){this.beforeRender.next(s);for(let{_lView:c,notifyErrorHandler:l}of this._views)hB(c,l,s,this.zonelessEnabled)}else r?.begin?.(),r?.end?.();if(i++,o.executeInternalCallbacks(),!this.allViews.some(({_lView:c})=>Es(c))&&(o.execute(),!this.allViews.some(({_lView:c})=>Es(c))))break}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;mu(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(gh,[]);[...this._bootstrapListeners,...r].forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>mu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new M(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function mu(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function hB(n,e,t,r){(t||Es(n))&&xl(n,e,t&&!r?0:1)}let wB=(()=>{class n{constructor(){this.zone=L(ye),this.changeDetectionScheduler=L(Co),this.applicationRef=L(Kn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function mh({ngZoneFactory:n,ignoreChangesOutsideZone:e}){return n??=()=>new ye(function yh(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}()),[{provide:ye,useFactory:n},{provide:Vn,multi:!0,useFactory:()=>{const t=L(wB,{optional:!0});return()=>t.initialize()}},{provide:Vn,multi:!0,useFactory:()=>{const t=L(vB);return()=>{t.initialize()}}},!0===e?{provide:A0,useValue:!0}:[]]}let vB=(()=>{class n{constructor(){this.subscription=new an,this.initialized=!1,this.zone=L(ye),this.pendingTasks=L(Mr)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ye.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ye.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),va=(()=>{class n{constructor(){this.appRef=L(Kn),this.taskService=L(Mr),this.ngZone=L(ye),this.zonelessEnabled=L(ea),this.disableScheduling=L(A0,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new an,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof _f||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 3:case 2:case 0:case 4:case 5:case 1:this.shouldRefreshViews=!0}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?mb:gb;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&ye.isInAngularZone())}tick(t){if(this.runningTick||this.appRef.destroyed)return;const r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(t)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(r),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,mb(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const fr=new P("",{providedIn:"root",factory:()=>L(fr,se.Optional|se.SkipSelf)||function EB(){return typeof $localize<"u"&&$localize.locale||qo}()}),bh=new P("");let Or=null;let on=(()=>{class n{static{this.__NG_ELEMENT_ID__=MB}}return n})();function MB(n){return function AB(n,e,t){if(oi(n)&&!t){const r=Xt(n.index,e);return new Gs(r,r)}return 175&n.type?new Gs(e[Re],e):null}(be(),T(),!(16&~n))}class d1{constructor(){}supports(e){return Wl(e)}create(e){return new xB(e)}}const RB=(n,e)=>e;class xB{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||RB}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,r=this._removalsHead,i=0,o=null;for(;t||r;){const s=!r||t&&t.currentIndex{s=this._trackByFn(i,c),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,c,s,i)),Object.is(t.item,c)||this._addIdentityChange(t,c)):(t=this._mismatch(t,c,s,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,r,i){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,i)):e=this._addAfter(new OB(t,r),o,i),e}_verifyReinsertion(e,t,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,o=e._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,t,r),this._addToMoves(e,r),e}_moveAfter(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e}_addAfter(e,t,r){return this._insertAfter(e,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,r){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new _1),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _1),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class OB{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class PB{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class _1{constructor(){this.map=new Map}put(e){const t=e.trackById;let r=this.map.get(t);r||(r=new PB,this.map.set(t,r)),r.add(e)}get(e,t){const i=this.map.get(e);return i?i.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function f1(n,e,t){const r=n.previousIndex;if(null===r)return r;let i=0;return t&&r{class n{static{this.\u0275prov=G({token:n,providedIn:"root",factory:h1})}constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||h1()),deps:[[n,new v_,new b_]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new M(901,!1)}}return n})();function tH(n){try{const{rootComponent:e,appProviders:t,platformProviders:r}=n,i=function TB(n=[]){if(Or)return Or;const e=function o1(n=[],e){return rt.create({name:e,providers:[{provide:N_,useValue:"platform"},{provide:bh,useValue:new Set([()=>Or=null])},...n]})}(n);return Or=e,function ZC(){!function DA(n){cy=n}(()=>{throw new M(600,!1)})}(),function s1(n){n.get(Ub,null)?.forEach(t=>t())}(e),e}(r),o=[mh({}),{provide:Co,useExisting:va},...t||[]],c=new hE({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,l=c.get(ye);return l.run(()=>{c.resolveInjectorInitializers();const u=c.get(Sn,null);let d;l.runOutsideAngular(()=>{d=l.onError.subscribe({next:p=>{u.handleError(p)}})});const _=()=>c.destroy(),f=i.get(bh);return f.add(_),c.onDestroy(()=>{d.unsubscribe(),f.delete(_)}),function YC(n,e,t){try{const r=t();return hu(r)?r.catch(i=>{throw e.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>n.handleError(r)),r}}(u,l,()=>{const p=c.get(gu);return p.runInitializers(),p.donePromise.then(()=>{!function wD(n){"string"==typeof n&&(yD=n.toLowerCase().replace(/_/g,"-"))}(c.get(fr,qo)||qo);const w=c.get(Kn);return void 0!==e&&w.bootstrap(e),w})})})}catch(e){return Promise.reject(e)}}const R1=new P("");function Sa(n,e){Tt("NgSignals");const t=function bA(n){const e=Object.create(vA);e.computation=n;const t=()=>{if(ty(e),Vd(e),e.value===Dc)throw e.error;return e.value};return t[Dt]=e,t}(n);return e?.equal&&(t[Dt].equal=e.equal),t}function Zn(n){const e=K(null);try{return n()}finally{K(e)}}function kh(n){return n[n.length-1]}function Pr(n){return this instanceof Pr?(this.v=n,this):new Pr(n)}function G1(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=function Oh(n){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=n[o]&&function(s){return new Promise(function(c,l){!function i(o,s,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},s)}(c,l,(s=n[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const W1=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function J1(n){return He(n?.then)}function K1(n){return He(n[Yd])}function Z1(n){return Symbol.asyncIterator&&He(n?.[Symbol.asyncIterator])}function Y1(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Q1=function r3(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function X1(n){return He(n?.[Q1])}function eS(n){return function q1(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(n,e||[]),o=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",function s(p){return function(y){return Promise.resolve(y).then(p,_)}}),i[Symbol.asyncIterator]=function(){return this},i;function c(p,y){r[p]&&(i[p]=function(w){return new Promise(function(E,C){o.push([p,w,E,C])>1||l(p,w)})},y&&(i[p]=y(i[p])))}function l(p,y){try{!function u(p){p.value instanceof Pr?Promise.resolve(p.value.v).then(d,_):f(o[0][2],p)}(r[p](y))}catch(w){f(o[0][3],w)}}function d(p){l("next",p)}function _(p){l("throw",p)}function f(p,y){p(y),o.shift(),o.length&&l(o[0][0],o[0][1])}}(this,arguments,function*(){const t=n.getReader();try{for(;;){const{value:r,done:i}=yield Pr(t.read());if(i)return yield Pr(void 0);yield yield Pr(r)}}finally{t.releaseLock()}})}function tS(n){return He(n?.getReader)}function ki(n){if(n instanceof Ht)return n;if(null!=n){if(K1(n))return function i3(n){return new Ht(e=>{const t=n[Yd]();if(He(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(W1(n))return function o3(n){return new Ht(e=>{for(let t=0;t{n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,gy)})}(n);if(Z1(n))return nS(n);if(X1(n))return function a3(n){return new Ht(e=>{for(const t of n)if(e.next(t),e.closed)return;e.complete()})}(n);if(tS(n))return function c3(n){return nS(eS(n))}(n)}throw Y1(n)}function nS(n){return new Ht(e=>{(function l3(n,e){var t,r,i,o;return function z1(n,e,t,r){return new(t||(t=Promise))(function(o,s){function c(d){try{u(r.next(d))}catch(_){s(_)}}function l(d){try{u(r.throw(d))}catch(_){s(_)}}function u(d){d.done?o(d.value):function i(o){return o instanceof t?o:new t(function(s){s(o)})}(d.value).then(c,l)}u((r=r.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){try{for(t=G1(n);!(r=yield t.next()).done;)if(e.next(r.value),e.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}e.complete()})})(n,e).catch(t=>e.error(t))})}function Lr(n,e,t,r=0,i=!1){const o=e.schedule(function(){t(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(o),!i)return o}function rS(n,e=0){return Xr((t,r)=>{t.subscribe(vr(r,i=>Lr(r,n,()=>r.next(i),e),()=>Lr(r,n,()=>r.complete(),e),i=>Lr(r,n,()=>r.error(i),e)))})}function iS(n,e=0){return Xr((t,r)=>{r.add(n.schedule(()=>t.subscribe(r),e))})}function oS(n,e){if(!n)throw new Error("Iterable cannot be null");return new Ht(t=>{Lr(t,e,()=>{const r=n[Symbol.asyncIterator]();Lr(t,e,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function Ph(n,e){return e?function h3(n,e){if(null!=n){if(K1(n))return function u3(n,e){return ki(n).pipe(iS(e),rS(e))}(n,e);if(W1(n))return function _3(n,e){return new Ht(t=>{let r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}(n,e);if(J1(n))return function d3(n,e){return ki(n).pipe(iS(e),rS(e))}(n,e);if(Z1(n))return oS(n,e);if(X1(n))return function f3(n,e){return new Ht(t=>{let r;return Lr(t,e,()=>{r=n[Q1](),Lr(t,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void t.error(s)}o?t.complete():t.next(i)},0,!0)}),()=>He(r?.return)&&r.return()})}(n,e);if(tS(n))return function p3(n,e){return oS(eS(n),e)}(n,e)}throw Y1(n)}(n,e):ki(n)}function sS(...n){return Ph(n,function NH(n){return function MH(n){return n&&He(n.schedule)}(kh(n))?n.pop():void 0}(n))}function Lh(n,e,t=1/0){return He(e)?Lh((r,i)=>Er((o,s)=>e(r,o,i,s))(ki(n(r,i))),t):("number"==typeof e&&(t=e),Xr((r,i)=>function g3(n,e,t,r,i,o,s,c){const l=[];let u=0,d=0,_=!1;const f=()=>{_&&!l.length&&!u&&e.complete()},p=w=>u{o&&e.next(w),u++;let E=!1;ki(t(w,d++)).subscribe(vr(e,C=>{i?.(C),o?p(C):e.next(C)},()=>{E=!0},void 0,()=>{if(E)try{for(u--;l.length&&uy(C)):y(C)}f()}catch(C){e.error(C)}}))};return n.subscribe(vr(e,p,()=>{_=!0,f()})),()=>{c?.()}}(r,i,n,t)))}function aS(n){return Xr((e,t)=>{try{e.subscribe(t)}finally{t.add(n)}})}let cS=null;function Ia(){return cS}class v3{}const fn=new P("");function mS(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}const Wh=/\s+/,yS=[];let gr=(()=>{class n{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=yS,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(Wh):yS}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(Wh):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const i=this.stateMap.get(t);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],i=t[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(Wh).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static{this.\u0275fac=function(r){return new(r||n)(I(dn),I(wi))}}static{this.\u0275dir=X({type:n,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return n})();class cU{constructor(e,t,r,i){this.$implicit=e,this.ngForOf=t,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ma=(()=>{class n{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,o,s)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new cU(i.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===o?void 0:o);else if(null!==o){const c=r.get(o);r.move(c,s),bS(c,i)}});for(let i=0,o=r.length;i{bS(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}static{this.\u0275fac=function(r){return new(r||n)(I(qn),I(_r),I(Ih))}}static{this.\u0275dir=X({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return n})();function bS(n,e){n.context.$implicit=e.item}let gn=(()=>{class n{constructor(t,r){this._viewContainer=t,this._context=new lU,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){vS("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){vS("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}static{this.\u0275fac=function(r){return new(r||n)(I(qn),I(_r))}}static{this.\u0275dir=X({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return n})();class lU{constructor(){this.$implicit=null,this.ngIf=null}}function vS(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Qe(e)}'.`)}let DS=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,r,i),get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static{this.\u0275fac=function(r){return new(r||n)(I(qn))}}static{this.\u0275dir=X({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[sr]})}}return n})(),Ye=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({})}}return n})();function IS(n){return"server"===n}class TS{}class Uu{}class zu{}class mn{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?"string"==typeof e?this.lazyInit=()=>{this.headers=new Map,e.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),o=i.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof mn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new mn;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof mn?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const o=e.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(c=>-1===o.indexOf(c)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(e,t){const r=(Array.isArray(t)?t:[t]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class dz{encodeKey(e){return LS(e)}encodeValue(e){return LS(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const fz=/%(\d[a-f0-9])/gi,pz={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function LS(n){return encodeURIComponent(n).replace(fz,(e,t)=>pz[t]??e)}function $u(n){return`${n}`}class Vr{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new dz,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function _z(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,c]=-1==o?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],l=t.get(s)||[];l.push(c),t.set(s,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const r=e.fromObject[t],i=Array.isArray(r)?r.map($u):[$u(r)];this.map.set(t,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(r=>{const i=e[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Vr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push($u(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const i=r.indexOf($u(e.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class hz{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function VS(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function jS(n){return typeof Blob<"u"&&n instanceof Blob}function BS(n){return typeof FormData<"u"&&n instanceof FormData}class ka{constructor(e,t,r,i){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function gz(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new mn,this.context??=new hz,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const c=t.indexOf("?");this.urlWithParams=t+(-1===c?"?":cf.set(p,e.setHeaders[p]),u)),e.setParams&&(d=Object.keys(e.setParams).reduce((f,p)=>f.set(p,e.setParams[p]),d)),new ka(t,r,s,{params:d,headers:u,context:_,reportProgress:l,responseType:i,withCredentials:c,transferCache:o})}}var jr=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(jr||{});class tg{constructor(e,t=200,r="OK"){this.headers=e.headers||new mn,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class qu extends tg{constructor(e={}){super(e),this.type=jr.ResponseHeader}clone(e={}){return new qu({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Fi extends tg{constructor(e={}){super(e),this.type=jr.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Fi({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Yo extends tg{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function ng(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}let bz=(()=>{class n{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof ka)o=t;else{let l,u;l=i.headers instanceof mn?i.headers:new mn(i.headers),i.params&&(u=i.params instanceof Vr?i.params:new Vr({fromObject:i.params})),o=new ka(t,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}const s=sS(o).pipe(function m3(n,e){return He(e)?Lh(n,e,1):Lh(n,1)}(l=>this.handler.handle(l)));if(t instanceof ka||"events"===i.observe)return s;const c=s.pipe(function y3(n,e){return Xr((t,r)=>{let i=0;t.subscribe(vr(r,o=>n.call(e,o,i++)&&r.next(o)))})}(l=>l instanceof Fi));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(Er(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(Er(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(Er(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return c.pipe(Er(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Vr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,ng(i,r))}post(t,r,i={}){return this.request("POST",t,ng(i,r))}put(t,r,i={}){return this.request("PUT",t,ng(i,r))}static{this.\u0275fac=function(r){return new(r||n)(H(Uu))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();const vz=/^\)\]\}',?\n/;function US(n){if(n.url)return n.url;const e="X-Request-URL".toLocaleLowerCase();return n.headers.get(e)}let rg=(()=>{class n{constructor(){this.fetchImpl=L(Dz,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=L(ye)}handle(t){return new Ht(r=>{const i=new AbortController;return this.doRequest(t,i.signal,r).then(ig,o=>r.error(new Yo({error:o}))),()=>i.abort()})}doRequest(t,r,i){var o=this;return S(function*(){const s=o.createRequestInit(t);let c;try{const y=o.ngZone.runOutsideAngular(()=>o.fetchImpl(t.urlWithParams,{signal:r,...s}));(function Cz(n){n.then(ig,ig)})(y),i.next({type:jr.Sent}),c=yield y}catch(y){return void i.error(new Yo({error:y,status:y.status??0,statusText:y.statusText,url:t.urlWithParams,headers:y.headers}))}const l=new mn(c.headers),u=c.statusText,d=US(c)??t.urlWithParams;let _=c.status,f=null;if(t.reportProgress&&i.next(new qu({headers:l,status:_,statusText:u,url:d})),c.body){const y=c.headers.get("content-length"),w=[],E=c.body.getReader();let D,N,C=0;const B=typeof Zone<"u"&&Zone.current;yield o.ngZone.runOutsideAngular(S(function*(){for(;;){const{done:oe,value:Be}=yield E.read();if(oe)break;if(w.push(Be),C+=Be.length,t.reportProgress){N="text"===t.responseType?(N??"")+(D??=new TextDecoder).decode(Be,{stream:!0}):void 0;const jt=()=>i.next({type:jr.DownloadProgress,total:y?+y:void 0,loaded:C,partialText:N});B?B.run(jt):jt()}}}));const Q=o.concatChunks(w,C);try{const oe=c.headers.get("Content-Type")??"";f=o.parseBody(t,Q,oe)}catch(oe){return void i.error(new Yo({error:oe,headers:new mn(c.headers),status:c.status,statusText:c.statusText,url:US(c)??t.urlWithParams}))}}0===_&&(_=f?200:0),_>=200&&_<300?(i.next(new Fi({body:f,headers:l,status:_,statusText:u,url:d})),i.complete()):i.error(new Yo({error:f,headers:l,status:_,statusText:u,url:d}))})()}parseBody(t,r,i){switch(t.responseType){case"json":const o=(new TextDecoder).decode(r).replace(vz,"");return""===o?null:JSON.parse(o);case"text":return(new TextDecoder).decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(t){const r={},i=t.withCredentials?"include":void 0;if(t.headers.forEach((o,s)=>r[o]=s.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){const o=t.detectContentTypeHeader();null!==o&&(r["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:i}}concatChunks(t,r){const i=new Uint8Array(r);let o=0;for(const s of t)i.set(s,o),o+=s.length;return i}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();class Dz{}function ig(){}function zS(n,e){return e(n)}function Sz(n,e){return(t,r)=>e.intercept(t,{handle:i=>n(i,r)})}const Tz=new P(""),Fa=new P(""),$S=new P(""),qS=new P("",{providedIn:"root",factory:()=>!0});function Mz(){let n=null;return(e,t)=>{null===n&&(n=(L(Tz,{optional:!0})??[]).reduceRight(Sz,zS));const r=L(Mr);if(L(qS)){const o=r.add();return n(e,t).pipe(aS(()=>r.remove(o)))}return n(e,t)}}let GS=(()=>{class n extends Uu{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=L(Mr),this.contributeToStability=L(qS)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Fa),...this.injector.get($S,[])]));this.chain=r.reduceRight((i,o)=>function Iz(n,e,t){return(r,i)=>function gw(n,e){n instanceof to&&n.assertNotDestroyed();const r=Sr(n),i=Ut(void 0);try{return e()}finally{Sr(r),Ut(i)}}(t,()=>e(r,o=>n(o,i)))}(i,o,this.injector),zS)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(aS(()=>this.pendingTasks.remove(r)))}return this.chain(t,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||n)(H(zu),H(cn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();const Rz=/^\)\]\}',?\n/;let JS=(()=>{class n{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new M(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Ph(r.\u0275loadImpl()):sS(null)).pipe(function w3(n,e){return Xr((t,r)=>{let i=null,o=0,s=!1;const c=()=>s&&!i&&r.complete();t.subscribe(vr(r,l=>{i?.unsubscribe();let u=0;const d=o++;ki(n(l,d)).subscribe(i=vr(r,_=>r.next(e?e(l,_,d,u++):_),()=>{i=null,c()}))},()=>{s=!0,c()}))})}(()=>new Ht(o=>{const s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((w,E)=>s.setRequestHeader(w,E.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const w=t.detectContentTypeHeader();null!==w&&s.setRequestHeader("Content-Type",w)}if(t.responseType){const w=t.responseType.toLowerCase();s.responseType="json"!==w?w:"text"}const c=t.serializeBody();let l=null;const u=()=>{if(null!==l)return l;const w=s.statusText||"OK",E=new mn(s.getAllResponseHeaders()),C=function xz(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(s)||t.url;return l=new qu({headers:E,status:s.status,statusText:w,url:C}),l},d=()=>{let{headers:w,status:E,statusText:C,url:D}=u(),N=null;204!==E&&(N=typeof s.response>"u"?s.responseText:s.response),0===E&&(E=N?200:0);let B=E>=200&&E<300;if("json"===t.responseType&&"string"==typeof N){const Q=N;N=N.replace(Rz,"");try{N=""!==N?JSON.parse(N):null}catch(oe){N=Q,B&&(B=!1,N={error:oe,text:N})}}B?(o.next(new Fi({body:N,headers:w,status:E,statusText:C,url:D||void 0})),o.complete()):o.error(new Yo({error:N,headers:w,status:E,statusText:C,url:D||void 0}))},_=w=>{const{url:E}=u(),C=new Yo({error:w,status:s.status||0,statusText:s.statusText||"Unknown Error",url:E||void 0});o.error(C)};let f=!1;const p=w=>{f||(o.next(u()),f=!0);let E={type:jr.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(E.total=w.total),"text"===t.responseType&&s.responseText&&(E.partialText=s.responseText),o.next(E)},y=w=>{let E={type:jr.UploadProgress,loaded:w.loaded};w.lengthComputable&&(E.total=w.total),o.next(E)};return s.addEventListener("load",d),s.addEventListener("error",_),s.addEventListener("timeout",_),s.addEventListener("abort",_),t.reportProgress&&(s.addEventListener("progress",p),null!==c&&s.upload&&s.upload.addEventListener("progress",y)),s.send(c),o.next({type:jr.Sent}),()=>{s.removeEventListener("error",_),s.removeEventListener("abort",_),s.removeEventListener("load",d),s.removeEventListener("timeout",_),t.reportProgress&&(s.removeEventListener("progress",p),null!==c&&s.upload&&s.upload.removeEventListener("progress",y)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||n)(H(TS))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();const og=new P(""),KS=new P("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),ZS=new P("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class YS{}let Lz=(()=>{class n{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=mS(t,this.cookieName),this.lastCookieString=t),this.lastToken}static{this.\u0275fac=function(r){return new(r||n)(H(fn),H(di),H(KS))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();function Vz(n,e){const t=n.url.toLowerCase();if(!L(og)||"GET"===n.method||"HEAD"===n.method||t.startsWith("http://")||t.startsWith("https://"))return e(n);const r=L(YS).getToken(),i=L(ZS);return null!=r&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,r)})),e(n)}var Br=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(Br||{});function Ri(n,e){return{\u0275kind:n,\u0275providers:e}}function jz(...n){const e=[bz,JS,GS,{provide:Uu,useExisting:GS},{provide:zu,useFactory:()=>L(rg,{optional:!0})??L(JS)},{provide:Fa,useValue:Vz,multi:!0},{provide:og,useValue:!0},{provide:YS,useClass:Lz}];for(const t of n)e.push(...t.\u0275providers);return function hs(n){return{\u0275providers:n}}(e)}const QS=new P("");let Hz=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({providers:[jz(Ri(Br.LegacyInterceptors,[{provide:QS,useFactory:Mz},{provide:Fa,useExisting:QS,multi:!0}]))]})}}return n})();class Zz extends v3{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class sg extends Zz{static makeCurrent(){!function b3(n){cS??=n}(new sg)}onAndCancel(e,t,r){return e.addEventListener(t,r),()=>{e.removeEventListener(t,r)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.remove()}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function Yz(){return Ra=Ra||document.querySelector("base"),Ra?Ra.getAttribute("href"):null}();return null==t?null:function Qz(n){return new URL(n,document.baseURI).pathname}(t)}resetBaseElement(){Ra=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return mS(document.cookie,e)}}let Ra=null,e$=(()=>{class n{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();const Wu=new P("");let sI=(()=>{class n{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(t,r),r}static{this.\u0275fac=function(r){return new(r||n)(H(Wu),H(ye))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();class ag{constructor(e){this._doc=e}}const cg="ng-app-id";let aI=(()=>{class n{constructor(t,r,i,o={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=IS(o),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(i=>i.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${cg}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(t,r){const i=this.styleRef;if(i.has(t)){const o=i.get(t);return o.usage+=r,o.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===t)return i.delete(r),o.removeAttribute(cg),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(cg,this.appId),t.appendChild(s),s}}addStyleToHost(t,r){const i=this.getStyleElement(t,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||n)(H(fn),H(Fs),H(zb,8),H(di))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();const lg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},ug=/%COMP%/g,i$=new P("",{providedIn:"root",factory:()=>!0});function lI(n,e){return e.map(t=>t.replace(ug,n))}let uI=(()=>{class n{constructor(t,r,i,o,s,c,l,u=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=IS(c),this.defaultRenderer=new dg(t,s,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===wn.ShadowDom&&(r={...r,encapsulation:wn.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof _I?i.applyToHost(t):i instanceof _g&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,_=this.platformIsServer;switch(r.encapsulation){case wn.Emulated:o=new _I(l,u,r,this.appId,d,s,c,_);break;case wn.ShadowDom:return new c$(l,u,t,r,s,c,this.nonce,_);default:o=new _g(l,u,r,d,s,c,_)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||n)(H(sI),H(aI),H(Fs),H(i$),H(fn),H(di),H(ye),H(zb))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();class dg{constructor(e,t,r,i){this.eventManager=e,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,t){return t?this.doc.createElementNS(lg[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(dI(e)?e.content:e).appendChild(t)}insertBefore(e,t,r){e&&(dI(e)?e.content:e).insertBefore(t,r)}removeChild(e,t){t.remove()}selectRootElement(e,t){let r="string"==typeof e?this.doc.querySelector(e):e;if(!r)throw new M(-5104,!1);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,i){if(i){t=i+":"+t;const o=lg[i];o?e.setAttributeNS(o,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const i=lg[r];i?e.removeAttributeNS(i,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,r,i){i&(kr.DashCase|kr.Important)?e.style.setProperty(t,r,i&kr.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&kr.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){null!=e&&(e[t]=r)}setValue(e,t){e.nodeValue=t}listen(e,t,r){if("string"==typeof e&&!(e=Ia().getGlobalEventTarget(this.doc,e)))throw new Error(`Unsupported event target ${e} for event ${t}`);return this.eventManager.addEventListener(e,t,this.decoratePreventDefault(r))}decoratePreventDefault(e){return t=>{if("__ngUnwrap__"===t)return e;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))&&t.preventDefault()}}}function dI(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class c$ extends dg{constructor(e,t,r,i,o,s,c,l){super(e,o,s,l),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=lI(i.id,i.styles);for(const d of u){const _=document.createElement("style");c&&_.setAttribute("nonce",c),_.textContent=d,this.shadowRoot.appendChild(_)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,r){return super.insertBefore(this.nodeOrShadowRoot(e),t,r)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class _g extends dg{constructor(e,t,r,i,o,s,c,l){super(e,o,s,c),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=l?lI(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class _I extends _g{constructor(e,t,r,i,o,s,c,l){const u=i+"-"+r.id;super(e,t,r,o,s,c,l,u),this.contentAttr=function o$(n){return"_ngcontent-%COMP%".replace(ug,n)}(u),this.hostAttr=function s$(n){return"_nghost-%COMP%".replace(ug,n)}(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}let l$=(()=>{class n extends ag{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||n)(H(fn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})(),u$=(()=>{class n extends ag{constructor(t){super(t),this.delegate=L(R1,{optional:!0})}supports(t){return!!this.delegate&&this.delegate.supports(t)}addEventListener(t,r,i){return this.delegate.addEventListener(t,r,i)}removeEventListener(t,r,i){return this.delegate.removeEventListener(t,r,i)}static{this.\u0275fac=function(r){return new(r||n)(H(fn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();const fI=["alt","control","meta","shift"],d$={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},_$={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};function pI(n){return{appProviders:[...b$,...n?.providers??[]],platformProviders:y$}}const y$=[{provide:di,useValue:"browser"},{provide:Ub,useValue:function h$(){sg.makeCurrent()},multi:!0},{provide:fn,useFactory:function m$(){return function mR(n){mf=n}(document),document},deps:[]}],b$=[{provide:N_,useValue:"root"},{provide:Sn,useFactory:function g$(){return new Sn},deps:[]},{provide:Wu,useClass:l$,multi:!0,deps:[fn,ye,di]},{provide:Wu,useClass:(()=>{class n extends ag{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,r,i){const o=n.parseEventName(r),s=n.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ia().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=n._normalizeKey(r.pop());let s="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),s="code."),fI.forEach(u=>{const d=r.indexOf(u);d>-1&&(r.splice(d,1),s+=u+".")}),s+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(t,r){let i=d$[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),fI.forEach(s=>{s!==i&&(0,_$[s])(t)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{n.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static{this.\u0275fac=function(r){return new(r||n)(H(fn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})(),multi:!0,deps:[fn]},{provide:Wu,useClass:u$,multi:!0},uI,aI,sI,{provide:mp,useExisting:uI},{provide:TS,useClass:e$,deps:[]},[]];let a;const mI=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&mI.decode();let xa=null;function Qo(){return(null===xa||0===xa.byteLength)&&(xa=new Uint8Array(a.memory.buffer)),xa}function v(n,e){return n>>>=0,mI.decode(Qo().subarray(n,n+e))}let h=0;const Ku=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},C$="function"==typeof Ku.encodeInto?function(n,e){return Ku.encodeInto(n,e)}:function(n,e){const t=Ku.encode(n);return e.set(t),{read:n.length,written:t.length}};function g(n,e,t){if(void 0===t){const c=Ku.encode(n),l=e(c.length,1)>>>0;return Qo().subarray(l,l+c.length).set(c),h=c.length,l}let r=n.length,i=e(r,1)>>>0;const o=Qo();let s=0;for(;s127)break;o[i+s]=c}if(s!==r){0!==s&&(n=n.slice(s)),i=t(i,r,r=s+3*n.length,1)>>>0;const c=Qo().subarray(i+s,i+r);s+=C$(n,c).written,i=t(i,r,s,1)>>>0}return h=s,i}function m(n){return null==n}let Oi=null;function Hr(){return(null===Oi||!0===Oi.buffer.detached||void 0===Oi.buffer.detached&&Oi.buffer!==a.memory.buffer)&&(Oi=new DataView(a.memory.buffer)),Oi}function fg(n){const e=typeof n;if("number"==e||"boolean"==e||null==n)return`${n}`;if("string"==e)return`"${n}"`;if("symbol"==e){const i=n.description;return null==i?"Symbol":`Symbol(${i})`}if("function"==e){const i=n.name;return"string"==typeof i&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(n)){const i=n.length;let o="[";i>0&&(o+=fg(n[0]));for(let s=1;s1))return toString.call(n);if(r=t[1],"Object"==r)try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}\n${n.stack}`:r}const yI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>{a.__wbindgen_export_3.get(n.dtor)(n.a,n.b)});function wI(n,e,t,r){const i={a:n,b:e,cnt:1,dtor:t},o=(...s)=>{i.cnt++;const c=i.a;i.a=0;try{return r(c,i.b,...s)}finally{0==--i.cnt?(a.__wbindgen_export_3.get(i.dtor)(c,i.b),yI.unregister(i)):i.a=c}};return o.original=i,yI.register(o,i,i),o}function S$(n,e,t){a.closure1010_externref_shim(n,e,t)}function I$(n,e,t){a.closure1024_externref_shim(n,e,t)}function Pt(n,e){const t=e(1*n.length,1)>>>0;return Qo().set(n,t/1),h=n.length,t}function F(n){const e=a.__wbindgen_export_2.get(n);return a.__externref_table_dealloc(n),e}function b(n,e){if(!(n instanceof e))throw new Error(`expected instance of ${e.name}`);return n.ptr}function Pi(n){const e=a.__externref_table_alloc();return a.__wbindgen_export_2.set(e,n),e}function pg(n){return()=>{throw new Error(`${n} is not defined`)}}function ue(n,e){try{return n.apply(this,e)}catch(t){const r=Pi(t);a.__wbindgen_exn_store(r)}}function kn(n,e){const t=a.jsonPrettyPrint(n,m(e)?3:e);if(t[2])throw F(t[1]);return F(t[0])}function Zu(){return a.getTimestamp()}function Yu(n,e){const t=e(4*n.length,4)>>>0,r=Hr();for(let i=0;i"u"||new FinalizationRegistry(n=>a.__wbg_accessrights_free(n>>>0,1));const yg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_accounthash_free(n>>>0,1));class ut{static __wrap(e){e>>>=0;const t=Object.create(ut.prototype);return t.__wbg_ptr=e,yg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,yg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_accounthash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.accounthash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,yg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.accounthash_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return ut.__wrap(i[0])}static fromPublicKey(e){b(e,Ee);var t=e.__destroy_into_raw();const r=a.accounthash_fromPublicKey(t);return ut.__wrap(r)}toFormattedString(){let e,t;try{const r=a.accounthash_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toHexString(){let e,t;try{const r=a.accounthash_toHexString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}static fromUint8Array(e){const t=Pt(e,a.__wbindgen_malloc),i=a.accounthash_fromUint8Array(t,h);return ut.__wrap(i)}toJson(){return a.accounthash_toJson(this.__wbg_ptr)}}const wg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_accountidentifier_free(n>>>0,1));class Li{static __wrap(e){e>>>=0;const t=Object.create(Li.prototype);return t.__wbg_ptr=e,wg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,wg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_accountidentifier_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.accountidentifier_new(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,wg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.accountidentifier_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return Li.__wrap(i[0])}static fromPublicKey(e){b(e,Ee);var t=e.__destroy_into_raw();const r=a.accountidentifier_fromPublicKey(t);return Li.__wrap(r)}static fromAccountHash(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.accountidentifier_fromAccountHash(t);return Li.__wrap(r)}toJson(){return a.accountidentifier_toJson(this.__wbg_ptr)}}const bg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_addressableentityhash_free(n>>>0,1));class Yn{static __wrap(e){e>>>=0;const t=Object.create(Yn.prototype);return t.__wbg_ptr=e,bg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,bg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_addressableentityhash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.addressableentityhash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,bg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.addressableentityhash_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return Yn.__wrap(i[0])}toFormattedString(){let e,t;try{const r=a.addressableentityhash_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}static fromUint8Array(e){const t=Pt(e,a.__wbindgen_malloc),i=a.addressableentityhash_fromUint8Array(t,h);return Yn.__wrap(i)}}const bI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_argssimple_free(n>>>0,1));class Xu{static __wrap(e){e>>>=0;const t=Object.create(Xu.prototype);return t.__wbg_ptr=e,bI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,bI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_argssimple_free(e,0)}}const vg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_blockhash_free(n>>>0,1));class yr{static __wrap(e){e>>>=0;const t=Object.create(yr.prototype);return t.__wbg_ptr=e,vg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,vg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_blockhash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.blockhash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,vg.register(this,this.__wbg_ptr,this),this}static fromDigest(e){b(e,Le);var t=e.__destroy_into_raw();const r=a.blockhash_fromDigest(t);if(r[2])throw F(r[1]);return yr.__wrap(r[0])}toJson(){return a.blockhash_toJson(this.__wbg_ptr)}toString(){let e,t;try{const r=a.blockhash_toString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}}const Eg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_blockidentifier_free(n>>>0,1));class Pe{static __wrap(e){e>>>=0;const t=Object.create(Pe.prototype);return t.__wbg_ptr=e,Eg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Eg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_blockidentifier_free(e,0)}constructor(e){b(e,Pe);var t=e.__destroy_into_raw();const r=a.blockidentifier_new(t);return this.__wbg_ptr=r>>>0,Eg.register(this,this.__wbg_ptr,this),this}static from_hash(e){b(e,yr);var t=e.__destroy_into_raw();const r=a.blockidentifier_from_hash(t);return Pe.__wrap(r)}static fromHeight(e){const t=a.blockidentifier_fromHeight(e);return Pe.__wrap(t)}toJson(){return a.blockidentifier_toJson(this.__wbg_ptr)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_body_free(n>>>0,1));const Dg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_bytes_free(n>>>0,1));class bt{static __wrap(e){e>>>=0;const t=Object.create(bt.prototype);return t.__wbg_ptr=e,Dg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Dg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_bytes_free(e,0)}constructor(){const e=a.bytes_new();return this.__wbg_ptr=e>>>0,Dg.register(this,this.__wbg_ptr,this),this}static fromUint8Array(e){const t=a.bytes_fromUint8Array(e);return bt.__wrap(t)}}const EI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_casperwallet_free(n>>>0,1));class DI{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,EI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_casperwallet_free(e,0)}constructor(){const e=a.casperwallet_new();return this.__wbg_ptr=e>>>0,EI.register(this,this.__wbg_ptr,this),this}signDeploy(e,t){b(e,ae);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.casperwallet_signDeploy(this.__wbg_ptr,r,i,h)}signTransaction(e,t){b(e,de);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.casperwallet_signTransaction(this.__wbg_ptr,r,i,h)}signDeployHash(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.casperwallet_signDeployHash(this.__wbg_ptr,r,i,o,h)}signTransactionHash(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.casperwallet_signTransactionHash(this.__wbg_ptr,r,i,o,h)}signMessage(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.casperwallet_signMessage(this.__wbg_ptr,r,i,o,h)}connect(){return a.casperwallet_connect(this.__wbg_ptr)}disconnect(){return a.casperwallet_disconnect(this.__wbg_ptr)}isConnected(){return a.casperwallet_isConnected(this.__wbg_ptr)}getVersion(){return a.casperwallet_getVersion(this.__wbg_ptr)}getActivePublicKey(){return a.casperwallet_getActivePublicKey(this.__wbg_ptr)}switchAccount(){return a.casperwallet_switchAccount(this.__wbg_ptr)}}const Cg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_contracthash_free(n>>>0,1));class Oa{static __wrap(e){e>>>=0;const t=Object.create(Oa.prototype);return t.__wbg_ptr=e,Cg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Cg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_contracthash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.contracthash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Cg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.contracthash_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return Oa.__wrap(i[0])}toFormattedString(){let e,t;try{const r=a.contracthash_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}static fromUint8Array(e){const t=Pt(e,a.__wbindgen_malloc),i=a.contracthash_fromUint8Array(t,h);return Oa.__wrap(i)}}const Sg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_contractpackagehash_free(n>>>0,1));class Pa{static __wrap(e){e>>>=0;const t=Object.create(Pa.prototype);return t.__wbg_ptr=e,Sg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Sg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_contractpackagehash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.contractpackagehash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Sg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.contractpackagehash_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return Pa.__wrap(i[0])}toFormattedString(){let e,t;try{const r=a.contractpackagehash_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}static fromUint8Array(e){const t=Pt(e,a.__wbindgen_malloc),i=a.contractpackagehash_fromUint8Array(t,h);return Pa.__wrap(i)}}const Ig=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_deploy_free(n>>>0,1));class ae{static __wrap(e){e>>>=0;const t=Object.create(ae.prototype);return t.__wbg_ptr=e,Ig.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ig.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_deploy_free(e,0)}constructor(e){const t=a.deploy_new(e);return this.__wbg_ptr=t>>>0,Ig.register(this,this.__wbg_ptr,this),this}toJson(){return a.deploy_toJson(this.__wbg_ptr)}static withPaymentAndSession(e,t,r){b(e,Kt);var i=e.__destroy_into_raw();b(t,Bi);var o=t.__destroy_into_raw();b(r,er);var s=r.__destroy_into_raw();const c=a.deploy_withPaymentAndSession(i,o,s);if(c[2])throw F(c[1]);return ae.__wrap(c[0])}static withTransfer(e,t,r,i,o){const s=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),u=h;var d=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),_=h;b(i,Kt);var f=i.__destroy_into_raw();b(o,er);var p=o.__destroy_into_raw();const y=a.deploy_withTransfer(s,c,l,u,d,_,f,p);if(y[2])throw F(y[1]);return ae.__wrap(y[0])}withTTL(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.deploy_withTTL(this.__wbg_ptr,r,i,o,h);return ae.__wrap(c)}withTimestamp(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.deploy_withTimestamp(this.__wbg_ptr,r,i,o,h);return ae.__wrap(c)}withChainName(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.deploy_withChainName(this.__wbg_ptr,r,i,o,h);return ae.__wrap(c)}withAccount(e,t){b(e,Ee);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.deploy_withAccount(this.__wbg_ptr,r,i,h);return ae.__wrap(s)}withEntryPointName(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.deploy_withEntryPointName(this.__wbg_ptr,r,i,o,h);return ae.__wrap(c)}withHash(e,t){b(e,Oa);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.deploy_withHash(this.__wbg_ptr,r,i,h);return ae.__wrap(s)}withPackageHash(e,t){b(e,Pa);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.deploy_withPackageHash(this.__wbg_ptr,r,i,h);return ae.__wrap(s)}withModuleBytes(e,t){b(e,bt);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.deploy_withModuleBytes(this.__wbg_ptr,r,i,h);return ae.__wrap(s)}withSecretKey(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const i=a.deploy_withSecretKey(this.__wbg_ptr,t,h);return ae.__wrap(i)}withStandardPayment(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.deploy_withStandardPayment(this.__wbg_ptr,r,i,o,h);return ae.__wrap(c)}withPayment(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const o=a.deploy_withPayment(this.__wbg_ptr,e,r,h);return ae.__wrap(o)}withSession(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const o=a.deploy_withSession(this.__wbg_ptr,e,r,h);return ae.__wrap(o)}validateDeploySize(){return 0!==a.deploy_validateDeploySize(this.__wbg_ptr)}isValid(){return 0!==a.deploy_isValid(this.__wbg_ptr)}get hash(){const e=a.deploy_hash(this.__wbg_ptr);return Ur.__wrap(e)}hasValidHash(){return 0!==a.deploy_hasValidHash(this.__wbg_ptr)}isExpired(){return 0!==a.deploy_isExpired(this.__wbg_ptr)}sign(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.deploy_sign(this.__wbg_ptr,t,h);return ae.__wrap(i)}approvalsHash(){return a.deploy_approvalsHash(this.__wbg_ptr)}approvals(){return a.deploy_approvals(this.__wbg_ptr)}isTransfer(){return 0!==a.deploy_isTransfer(this.__wbg_ptr)}isStandardPayment(e){return 0!==a.deploy_isStandardPayment(this.__wbg_ptr,e)}isStoredContract(){return 0!==a.deploy_isStoredContract(this.__wbg_ptr)}isStoredContractPackage(){return 0!==a.deploy_isStoredContractPackage(this.__wbg_ptr)}isModuleBytes(){return 0!==a.deploy_isModuleBytes(this.__wbg_ptr)}isByName(){return 0!==a.deploy_isByName(this.__wbg_ptr)}byName(){const e=a.deploy_byName(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}entryPointName(){let e,t;try{const r=a.deploy_entryPointName(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}addSignature(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h,o=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=a.deploy_addSignature(this.__wbg_ptr,r,i,o,h);return ae.__wrap(c)}TTL(){let e,t;try{const r=a.deploy_TTL(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}timestamp(){let e,t;try{const r=a.deploy_timestamp(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}chainName(){let e,t;try{const r=a.deploy_chainName(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}account(){let e,t;try{const r=a.deploy_account(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}paymentAmount(e){let t,r;try{const i=a.deploy_paymentAmount(this.__wbg_ptr,e);return t=i[0],r=i[1],v(i[0],i[1])}finally{a.__wbindgen_free(t,r,1)}}args(){return a.deploy_args(this.__wbg_ptr)}addArg(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const o=a.deploy_addArg(this.__wbg_ptr,e,r,h);if(o[2])throw F(o[1]);return ae.__wrap(o[0])}}const Tg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_deployhash_free(n>>>0,1));class Ur{static __wrap(e){e>>>=0;const t=Object.create(Ur.prototype);return t.__wbg_ptr=e,Tg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Tg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_deployhash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.deployhash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Tg.register(this,this.__wbg_ptr,this),this}static fromDigest(e){b(e,Le);var t=e.__destroy_into_raw();const r=a.deployhash_fromDigest(t);if(r[2])throw F(r[1]);return Ur.__wrap(r[0])}toJson(){return a.deployhash_toJson(this.__wbg_ptr)}toString(){let e,t;try{const r=a.deployhash_toString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}}const CI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_deploystrparams_free(n>>>0,1));class Kt{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,CI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_deploystrparams_free(e,0)}constructor(e,t,r,i,o,s){const c=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h,u=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h;var _=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),f=h,p=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),y=h,w=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),E=h,C=m(s)?0:g(s,a.__wbindgen_malloc,a.__wbindgen_realloc);const N=a.deploystrparams_new(c,l,u,d,_,f,p,y,w,E,C,h);return this.__wbg_ptr=N>>>0,CI.register(this,this.__wbg_ptr,this),this}get secret_key(){const e=a.deploystrparams_secret_key(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set secret_key(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.deploystrparams_set_secret_key(this.__wbg_ptr,t,h)}get timestamp(){const e=a.deploystrparams_timestamp(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set timestamp(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.deploystrparams_set_timestamp(this.__wbg_ptr,t,h)}setDefaultTimestamp(){a.deploystrparams_setDefaultTimestamp(this.__wbg_ptr)}get ttl(){const e=a.deploystrparams_ttl(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set ttl(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.deploystrparams_set_ttl(this.__wbg_ptr,t,h)}setDefaultTTL(){a.deploystrparams_setDefaultTTL(this.__wbg_ptr)}get chain_name(){const e=a.deploystrparams_chain_name(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set chain_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.deploystrparams_set_chain_name(this.__wbg_ptr,t,h)}get session_account(){const e=a.deploystrparams_session_account(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_account(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.deploystrparams_set_session_account(this.__wbg_ptr,t,h)}get gas_price_tolerance(){const e=a.deploystrparams_gas_price_tolerance(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set gas_price_tolerance(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.deploystrparams_set_gas_price_tolerance(this.__wbg_ptr,t,h)}}const Mg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_dictionaryaddr_free(n>>>0,1));class td{static __wrap(e){e>>>=0;const t=Object.create(td.prototype);return t.__wbg_ptr=e,Mg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Mg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_dictionaryaddr_free(e,0)}constructor(e){const t=Pt(e,a.__wbindgen_malloc),i=a.dictionaryaddr_new(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Mg.register(this,this.__wbg_ptr,this),this}}const SI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_dictionaryitemidentifier_free(n>>>0,1));class vt{static __wrap(e){e>>>=0;const t=Object.create(vt.prototype);return t.__wbg_ptr=e,SI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,SI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_dictionaryitemidentifier_free(e,0)}static newFromAccountInfo(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),d=a.dictionaryitemidentifier_newFromAccountInfo(i,o,s,c,l,h);if(d[2])throw F(d[1]);return vt.__wrap(d[0])}static newFromContractInfo(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),d=a.dictionaryitemidentifier_newFromContractInfo(i,o,s,c,l,h);if(d[2])throw F(d[1]);return vt.__wrap(d[0])}static newFromEntityInfo(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),d=a.dictionaryitemidentifier_newFromEntityInfo(i,o,s,c,l,h);if(d[2])throw F(d[1]);return vt.__wrap(d[0])}static newFromSeedUref(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h,o=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=a.dictionaryitemidentifier_newFromSeedUref(r,i,o,h);if(c[2])throw F(c[1]);return vt.__wrap(c[0])}static newFromDictionaryKey(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.dictionaryitemidentifier_newFromDictionaryKey(t,h);if(i[2])throw F(i[1]);return vt.__wrap(i[0])}toJson(){return a.dictionaryitemidentifier_toJson(this.__wbg_ptr)}}const Ag=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_dictionaryitemstrparams_free(n>>>0,1));class Vi{static __wrap(e){e>>>=0;const t=Object.create(Vi.prototype);return t.__wbg_ptr=e,Ag.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ag.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_dictionaryitemstrparams_free(e,0)}constructor(){const e=a.dictionaryitemstrparams_new();return this.__wbg_ptr=e>>>0,Ag.register(this,this.__wbg_ptr,this),this}setAccountNamedKey(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);a.dictionaryitemstrparams_setAccountNamedKey(this.__wbg_ptr,i,o,s,c,l,h)}setContractNamedKey(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);a.dictionaryitemstrparams_setContractNamedKey(this.__wbg_ptr,i,o,s,c,l,h)}setEntityNamedKey(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);a.dictionaryitemstrparams_setEntityNamedKey(this.__wbg_ptr,i,o,s,c,l,h)}setUref(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h,o=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);a.dictionaryitemstrparams_setUref(this.__wbg_ptr,r,i,o,h)}setDictionary(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.dictionaryitemstrparams_setDictionary(this.__wbg_ptr,t,h)}toJson(){return a.dictionaryitemstrparams_toJson(this.__wbg_ptr)}}const Ng=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_digest_free(n>>>0,1));class Le{static __wrap(e){e>>>=0;const t=Object.create(Le.prototype);return t.__wbg_ptr=e,Ng.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ng.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_digest_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.digest_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Ng.register(this,this.__wbg_ptr,this),this}static fromString(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.digest_fromString(t,h);if(i[2])throw F(i[1]);return Le.__wrap(i[0])}static fromRaw(e){const t=Pt(e,a.__wbindgen_malloc),i=a.digest_fromRaw(t,h);if(i[2])throw F(i[1]);return Le.__wrap(i[0])}toJson(){return a.digest_toJson(this.__wbg_ptr)}toString(){let e,t;try{const r=a.digest_toString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}}const II=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_entityaddr_free(n>>>0,1));class La{static __wrap(e){e>>>=0;const t=Object.create(La.prototype);return t.__wbg_ptr=e,II.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,II.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_entityaddr_free(e,0)}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.entityaddr_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return La.__wrap(i[0])}toFormattedString(){let e,t;try{const r=a.entityaddr_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toHexString(){let e,t;try{const r=a.entityaddr_toHexString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.entityaddr_toJson(this.__wbg_ptr)}}const kg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_entityidentifier_free(n>>>0,1));class Qn{static __wrap(e){e>>>=0;const t=Object.create(Qn.prototype);return t.__wbg_ptr=e,kg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,kg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_entityidentifier_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.entityidentifier_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,kg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.entityidentifier_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return Qn.__wrap(i[0])}static fromPublicKey(e){b(e,Ee);var t=e.__destroy_into_raw();const r=a.entityidentifier_fromPublicKey(t);return Qn.__wrap(r)}static fromAccountHash(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.entityidentifier_fromAccountHash(t);return Qn.__wrap(r)}static fromEntityAddr(e){b(e,La);var t=e.__destroy_into_raw();const r=a.entityidentifier_fromEntityAddr(t);return Qn.__wrap(r)}toJson(){return a.entityidentifier_toJson(this.__wbg_ptr)}}const TI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_eraid_free(n>>>0,1));class x${__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,TI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_eraid_free(e,0)}constructor(e){const t=a.eraid_new(e);return this.__wbg_ptr=t>>>0,TI.register(this,this.__wbg_ptr,this),this}value(){const e=a.eraid_value(this.__wbg_ptr);return BigInt.asUintN(64,e)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_eventparseresult_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_executionresult_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_failure_free(n>>>0,1));const NI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getaccountresult_free(n>>>0,1));class Fg{static __wrap(e){e>>>=0;const t=Object.create(Fg.prototype);return t.__wbg_ptr=e,NI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,NI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getaccountresult_free(e,0)}get api_version(){return a.getaccountresult_api_version(this.__wbg_ptr)}get account(){return a.getaccountresult_account(this.__wbg_ptr)}get merkle_proof(){let e,t;try{const r=a.getaccountresult_merkle_proof(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.getaccountresult_toJson(this.__wbg_ptr)}}const kI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getaddressableentityresult_free(n>>>0,1));class Rg{static __wrap(e){e>>>=0;const t=Object.create(Rg.prototype);return t.__wbg_ptr=e,kI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,kI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getaddressableentityresult_free(e,0)}get api_version(){return a.getaddressableentityresult_api_version(this.__wbg_ptr)}get entity_result(){return a.getaddressableentityresult_entity_result(this.__wbg_ptr)}get merkle_proof(){let e,t;try{const r=a.getaddressableentityresult_merkle_proof(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.getaddressableentityresult_toJson(this.__wbg_ptr)}}const FI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getauctioninforesult_free(n>>>0,1));class xg{static __wrap(e){e>>>=0;const t=Object.create(xg.prototype);return t.__wbg_ptr=e,FI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,FI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getauctioninforesult_free(e,0)}get api_version(){return a.getauctioninforesult_api_version(this.__wbg_ptr)}get auction_state(){return a.getauctioninforesult_auction_state(this.__wbg_ptr)}toJson(){return a.getauctioninforesult_toJson(this.__wbg_ptr)}}const RI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getbalanceresult_free(n>>>0,1));class Og{static __wrap(e){e>>>=0;const t=Object.create(Og.prototype);return t.__wbg_ptr=e,RI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,RI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getbalanceresult_free(e,0)}get api_version(){return a.getbalanceresult_api_version(this.__wbg_ptr)}get balance_value(){return a.getbalanceresult_balance_value(this.__wbg_ptr)}get merkle_proof(){let e,t;try{const r=a.getbalanceresult_merkle_proof(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.getbalanceresult_toJson(this.__wbg_ptr)}}const xI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getblockresult_free(n>>>0,1));class Pg{static __wrap(e){e>>>=0;const t=Object.create(Pg.prototype);return t.__wbg_ptr=e,xI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,xI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getblockresult_free(e,0)}get api_version(){return a.getblockresult_api_version(this.__wbg_ptr)}get block(){return a.getblockresult_block(this.__wbg_ptr)}toJson(){return a.getblockresult_toJson(this.__wbg_ptr)}}const OI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getblocktransfersresult_free(n>>>0,1));class Lg{static __wrap(e){e>>>=0;const t=Object.create(Lg.prototype);return t.__wbg_ptr=e,OI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,OI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getblocktransfersresult_free(e,0)}get api_version(){return a.getblocktransfersresult_api_version(this.__wbg_ptr)}get block_hash(){const e=a.getblocktransfersresult_block_hash(this.__wbg_ptr);return 0===e?void 0:yr.__wrap(e)}get transfers(){return a.getblocktransfersresult_transfers(this.__wbg_ptr)}toJson(){return a.getblocktransfersresult_toJson(this.__wbg_ptr)}}const PI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getchainspecresult_free(n>>>0,1));class Vg{static __wrap(e){e>>>=0;const t=Object.create(Vg.prototype);return t.__wbg_ptr=e,PI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,PI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getchainspecresult_free(e,0)}get api_version(){return a.getchainspecresult_api_version(this.__wbg_ptr)}get chainspec_bytes(){return a.getchainspecresult_chainspec_bytes(this.__wbg_ptr)}toJson(){return a.getchainspecresult_toJson(this.__wbg_ptr)}}const LI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getdeployresult_free(n>>>0,1));class jg{static __wrap(e){e>>>=0;const t=Object.create(jg.prototype);return t.__wbg_ptr=e,LI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,LI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getdeployresult_free(e,0)}get api_version(){return a.getdeployresult_api_version(this.__wbg_ptr)}get deploy(){const e=a.getdeployresult_deploy(this.__wbg_ptr);return ae.__wrap(e)}get execution_info(){return a.getdeployresult_execution_info(this.__wbg_ptr)}toJson(){return a.getdeployresult_toJson(this.__wbg_ptr)}}const VI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getdictionaryitemresult_free(n>>>0,1));class Bg{static __wrap(e){e>>>=0;const t=Object.create(Bg.prototype);return t.__wbg_ptr=e,VI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,VI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getdictionaryitemresult_free(e,0)}get api_version(){return a.getdictionaryitemresult_api_version(this.__wbg_ptr)}get dictionary_key(){let e,t;try{const r=a.getdictionaryitemresult_dictionary_key(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get stored_value(){return a.getdictionaryitemresult_stored_value(this.__wbg_ptr)}get merkle_proof(){let e,t;try{const r=a.getdictionaryitemresult_merkle_proof(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.getdictionaryitemresult_toJson(this.__wbg_ptr)}}const jI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_geterainforesult_free(n>>>0,1));class Hg{static __wrap(e){e>>>=0;const t=Object.create(Hg.prototype);return t.__wbg_ptr=e,jI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,jI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_geterainforesult_free(e,0)}get api_version(){return a.geterainforesult_api_version(this.__wbg_ptr)}get era_summary(){return a.geterainforesult_era_summary(this.__wbg_ptr)}toJson(){return a.geterainforesult_toJson(this.__wbg_ptr)}}const BI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_geterasummaryresult_free(n>>>0,1));class Ug{static __wrap(e){e>>>=0;const t=Object.create(Ug.prototype);return t.__wbg_ptr=e,BI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,BI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_geterasummaryresult_free(e,0)}get api_version(){return a.geterasummaryresult_api_version(this.__wbg_ptr)}get era_summary(){return a.geterasummaryresult_era_summary(this.__wbg_ptr)}toJson(){return a.geterasummaryresult_toJson(this.__wbg_ptr)}}const HI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getnodestatusresult_free(n>>>0,1));class zg{static __wrap(e){e>>>=0;const t=Object.create(zg.prototype);return t.__wbg_ptr=e,HI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,HI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getnodestatusresult_free(e,0)}get api_version(){return a.getnodestatusresult_api_version(this.__wbg_ptr)}get chainspec_name(){let e,t;try{const r=a.getnodestatusresult_chainspec_name(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get starting_state_root_hash(){const e=a.getnodestatusresult_starting_state_root_hash(this.__wbg_ptr);return Le.__wrap(e)}get peers(){return a.getnodestatusresult_peers(this.__wbg_ptr)}get last_added_block_info(){return a.getnodestatusresult_last_added_block_info(this.__wbg_ptr)}get our_public_signing_key(){const e=a.getnodestatusresult_our_public_signing_key(this.__wbg_ptr);return 0===e?void 0:Ee.__wrap(e)}get round_length(){return a.getnodestatusresult_round_length(this.__wbg_ptr)}get next_upgrade(){return a.getnodestatusresult_next_upgrade(this.__wbg_ptr)}get build_version(){let e,t;try{const r=a.getnodestatusresult_build_version(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get uptime(){return a.getnodestatusresult_uptime(this.__wbg_ptr)}get reactor_state(){return a.getnodestatusresult_reactor_state(this.__wbg_ptr)}get last_progress(){return a.getnodestatusresult_last_progress(this.__wbg_ptr)}get available_block_range(){return a.getnodestatusresult_available_block_range(this.__wbg_ptr)}get block_sync(){return a.getnodestatusresult_block_sync(this.__wbg_ptr)}toJson(){return a.getnodestatusresult_toJson(this.__wbg_ptr)}}const UI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getpeersresult_free(n>>>0,1));class $g{static __wrap(e){e>>>=0;const t=Object.create($g.prototype);return t.__wbg_ptr=e,UI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,UI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getpeersresult_free(e,0)}get api_version(){return a.getpeersresult_api_version(this.__wbg_ptr)}get peers(){return a.getpeersresult_peers(this.__wbg_ptr)}toJson(){return a.getpeersresult_toJson(this.__wbg_ptr)}}const zI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getstateroothashresult_free(n>>>0,1));class qg{static __wrap(e){e>>>=0;const t=Object.create(qg.prototype);return t.__wbg_ptr=e,zI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,zI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getstateroothashresult_free(e,0)}get api_version(){return a.getstateroothashresult_api_version(this.__wbg_ptr)}get state_root_hash(){const e=a.getstateroothashresult_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}get state_root_hash_as_string(){let e,t;try{const r=a.getstateroothashresult_state_root_hash_as_string(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toString(){let e,t;try{const r=a.getstateroothashresult_toString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.getstateroothashresult_toJson(this.__wbg_ptr)}}const $I=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_gettransactionresult_free(n>>>0,1));class Gg{static __wrap(e){e>>>=0;const t=Object.create(Gg.prototype);return t.__wbg_ptr=e,$I.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$I.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_gettransactionresult_free(e,0)}get api_version(){return a.gettransactionresult_api_version(this.__wbg_ptr)}get transaction(){const e=a.gettransactionresult_transaction(this.__wbg_ptr);return de.__wrap(e)}get execution_info(){return a.gettransactionresult_execution_info(this.__wbg_ptr)}toJson(){return a.gettransactionresult_toJson(this.__wbg_ptr)}}const qI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getvalidatorchangesresult_free(n>>>0,1));class Wg{static __wrap(e){e>>>=0;const t=Object.create(Wg.prototype);return t.__wbg_ptr=e,qI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,qI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getvalidatorchangesresult_free(e,0)}get api_version(){return a.getvalidatorchangesresult_api_version(this.__wbg_ptr)}get changes(){return a.getvalidatorchangesresult_changes(this.__wbg_ptr)}toJson(){return a.getvalidatorchangesresult_toJson(this.__wbg_ptr)}}const Jg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_globalstateidentifier_free(n>>>0,1));class Lt{static __wrap(e){e>>>=0;const t=Object.create(Lt.prototype);return t.__wbg_ptr=e,Jg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Jg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_globalstateidentifier_free(e,0)}constructor(e){b(e,Lt);var t=e.__destroy_into_raw();const r=a.globalstateidentifier_new(t);return this.__wbg_ptr=r>>>0,Jg.register(this,this.__wbg_ptr,this),this}static fromBlockHash(e){b(e,yr);var t=e.__destroy_into_raw();const r=a.globalstateidentifier_fromBlockHash(t);return Lt.__wrap(r)}static fromBlockHeight(e){const t=a.globalstateidentifier_fromBlockHeight(e);return Lt.__wrap(t)}static fromStateRootHash(e){b(e,Le);var t=e.__destroy_into_raw();const r=a.globalstateidentifier_fromStateRootHash(t);return Lt.__wrap(r)}toJson(){return a.globalstateidentifier_toJson(this.__wbg_ptr)}}const Kg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_hashaddr_free(n>>>0,1));class id{static __wrap(e){e>>>=0;const t=Object.create(id.prototype);return t.__wbg_ptr=e,Kg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Kg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_hashaddr_free(e,0)}constructor(e){const t=Pt(e,a.__wbindgen_malloc),i=a.hashaddr_new(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Kg.register(this,this.__wbg_ptr,this),this}toBytes(){const e=a.hashaddr_toBytes(this.__wbg_ptr);var t=function hg(n,e){return n>>>=0,Qo().subarray(n/1,n/1+e)}(e[0],e[1]).slice();return a.__wbindgen_free(e[0],1*e[1],1),t}toHexString(){let e,t;try{const r=a.hashaddr_toHexString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_hashstring_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_intounderlyingbytesource_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_intounderlyingsink_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_intounderlyingsource_free(n>>>0,1));const Zg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_key_free(n>>>0,1));class Ve{static __wrap(e){e>>>=0;const t=Object.create(Ve.prototype);return t.__wbg_ptr=e,Zg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Zg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_key_free(e,0)}constructor(e){b(e,Ve);var t=e.__destroy_into_raw();const r=a.key_new(t);if(r[2])throw F(r[1]);return this.__wbg_ptr=r[0]>>>0,Zg.register(this,this.__wbg_ptr,this),this}toJson(){return a.key_toJson(this.__wbg_ptr)}static fromURef(e){b(e,st);var t=e.__destroy_into_raw();const r=a.key_fromURef(t);return Ve.__wrap(r)}static fromDeployInfo(e){b(e,Ur);var t=e.__destroy_into_raw();const r=a.key_fromDeployInfo(t);return Ve.__wrap(r)}static fromAccount(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.key_fromAccount(t);return Ve.__wrap(r)}static fromHash(e){b(e,id);var t=e.__destroy_into_raw();const r=a.key_fromHash(t);return Ve.__wrap(r)}static fromTransfer(e){const t=Pt(e,a.__wbindgen_malloc),i=a.key_fromTransfer(t,h);return pm.__wrap(i)}static fromEraInfo(e){b(e,x$);var t=e.__destroy_into_raw();const r=a.key_fromEraInfo(t);return Ve.__wrap(r)}static fromBalance(e){b(e,ad);var t=e.__destroy_into_raw();const r=a.key_fromBalance(t);return Ve.__wrap(r)}static fromBid(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.key_fromBid(t);return Ve.__wrap(r)}static fromWithdraw(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.key_fromWithdraw(t);return Ve.__wrap(r)}static fromDictionaryAddr(e){b(e,td);var t=e.__destroy_into_raw();const r=a.key_fromDictionaryAddr(t);return Ve.__wrap(r)}asDictionaryAddr(){const e=a.key_asDictionaryAddr(this.__wbg_ptr);return 0===e?void 0:td.__wrap(e)}static fromSystemEntityRegistry(){const e=a.key_fromSystemEntityRegistry();return Ve.__wrap(e)}static fromEraSummary(){const e=a.key_fromEraSummary();return Ve.__wrap(e)}static fromUnbond(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.key_fromUnbond(t);return Ve.__wrap(r)}static fromChainspecRegistry(){const e=a.key_fromChainspecRegistry();return Ve.__wrap(e)}static fromChecksumRegistry(){const e=a.key_fromChecksumRegistry();return Ve.__wrap(e)}toFormattedString(){let e,t;try{const r=a.key_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}static fromFormattedString(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.key_fromFormattedString(t,h);if(i[2])throw F(i[1]);return Ve.__wrap(i[0])}static fromDictionaryKey(e,t){b(e,st);var r=e.__destroy_into_raw();const i=Pt(t,a.__wbindgen_malloc),s=a.key_fromDictionaryKey(r,i,h);return Ve.__wrap(s)}isDictionaryKey(){return 0!==a.key_isDictionaryKey(this.__wbg_ptr)}intoAccount(){const e=this.__destroy_into_raw(),t=a.key_intoAccount(e);return 0===t?void 0:ut.__wrap(t)}intoHash(){const e=this.__destroy_into_raw(),t=a.key_intoHash(e);return 0===t?void 0:id.__wrap(t)}asBalance(){const e=a.key_asBalance(this.__wbg_ptr);return 0===e?void 0:ad.__wrap(e)}intoURef(){const e=this.__destroy_into_raw(),t=a.key_intoURef(e);return 0===t?void 0:st.__wrap(t)}urefToHash(){const e=a.key_urefToHash(this.__wbg_ptr);return 0===e?void 0:Ve.__wrap(e)}withdrawToUnbond(){const e=a.key_withdrawToUnbond(this.__wbg_ptr);return 0===e?void 0:Ve.__wrap(e)}}const WI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_listrpcsresult_free(n>>>0,1));class Yg{static __wrap(e){e>>>=0;const t=Object.create(Yg.prototype);return t.__wbg_ptr=e,WI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,WI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_listrpcsresult_free(e,0)}get api_version(){return a.listrpcsresult_api_version(this.__wbg_ptr)}get name(){let e,t;try{const r=a.listrpcsresult_name(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get schema(){return a.listrpcsresult_schema(this.__wbg_ptr)}toJson(){return a.listrpcsresult_toJson(this.__wbg_ptr)}}const JI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_message_free(n>>>0,1));class sd{static __wrap(e){e>>>=0;const t=Object.create(sd.prototype);return t.__wbg_ptr=e,JI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,JI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_message_free(e,0)}get String(){let e,t;try{const r=a.__wbg_get_message_String(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}set String(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_failure_cost(this.__wbg_ptr,t,h)}}const KI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_messages_free(n>>>0,1));class Va{static __wrap(e){e>>>=0;const t=Object.create(Va.prototype);return t.__wbg_ptr=e,KI.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof Va?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,KI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_messages_free(e,0)}get entity_hash(){let e,t;try{const r=a.__wbg_get_messages_entity_hash(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}set entity_hash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_messages_entity_hash(this.__wbg_ptr,t,h)}get message(){const e=a.__wbg_get_messages_message(this.__wbg_ptr);return sd.__wrap(e)}set message(e){b(e,sd);var t=e.__destroy_into_raw();a.__wbg_set_messages_message(this.__wbg_ptr,t)}get topic_name(){let e,t;try{const r=a.__wbg_get_messages_topic_name(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}set topic_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_messages_topic_name(this.__wbg_ptr,t,h)}get topic_name_hash(){let e,t;try{const r=a.__wbg_get_messages_topic_name_hash(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}set topic_name_hash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_messages_topic_name_hash(this.__wbg_ptr,t,h)}get topic_index(){return a.__wbg_get_messages_topic_index(this.__wbg_ptr)>>>0}set topic_index(e){a.__wbg_set_messages_topic_index(this.__wbg_ptr,e)}get block_index(){const e=a.__wbg_get_messages_block_index(this.__wbg_ptr);return BigInt.asUintN(64,e)}set block_index(e){a.__wbg_set_messages_block_index(this.__wbg_ptr,e)}}const Qg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_packagehash_free(n>>>0,1));class Xn{static __wrap(e){e>>>=0;const t=Object.create(Xn.prototype);return t.__wbg_ptr=e,Qg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Qg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_packagehash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.packagehash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Qg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.packagehash_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return Xn.__wrap(i[0])}toFormattedString(){let e,t;try{const r=a.packagehash_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}static fromUint8Array(e){const t=Pt(e,a.__wbindgen_malloc),i=a.packagehash_fromUint8Array(t,h);return Xn.__wrap(i)}}const Xg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_path_free(n>>>0,1));class ji{static __wrap(e){e>>>=0;const t=Object.create(ji.prototype);return t.__wbg_ptr=e,Xg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Xg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_path_free(e,0)}constructor(e){const t=a.path_new(e);return this.__wbg_ptr=t>>>0,Xg.register(this,this.__wbg_ptr,this),this}static fromArray(e){const t=a.path_fromArray(e);return ji.__wrap(t)}toJson(){return a.path_toJson(this.__wbg_ptr)}toString(){let e,t;try{const r=a.path_toString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}is_empty(){return 0!==a.path_is_empty(this.__wbg_ptr)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_payment_free(n>>>0,1));const ZI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_paymentstrparams_free(n>>>0,1));class er{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ZI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_paymentstrparams_free(e,0)}constructor(e,t,r,i,o,s,c,l,u,d){var _=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),f=h,p=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),y=h,w=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),E=h,C=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),D=h,N=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),B=h,Q=m(s)?0:g(s,a.__wbindgen_malloc,a.__wbindgen_realloc),oe=h,Be=m(l)?0:g(l,a.__wbindgen_malloc,a.__wbindgen_realloc),jt=h,Wr=m(u)?0:g(u,a.__wbindgen_malloc,a.__wbindgen_realloc),Gi=h,hc=m(d)?0:g(d,a.__wbindgen_malloc,a.__wbindgen_realloc),gc=h;const mc=a.paymentstrparams_new(_,f,p,y,w,E,C,D,N,B,Q,oe,m(c)?0:Pi(c),Be,jt,Wr,Gi,hc,gc);return this.__wbg_ptr=mc>>>0,ZI.register(this,this.__wbg_ptr,this),this}get payment_amount(){const e=a.paymentstrparams_payment_amount(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_amount(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_amount(this.__wbg_ptr,t,h)}get payment_hash(){const e=a.paymentstrparams_payment_hash(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_hash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_hash(this.__wbg_ptr,t,h)}get payment_name(){const e=a.paymentstrparams_payment_name(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_name(this.__wbg_ptr,t,h)}get payment_package_hash(){const e=a.paymentstrparams_payment_package_hash(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_package_hash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_package_hash(this.__wbg_ptr,t,h)}get payment_package_name(){const e=a.paymentstrparams_payment_package_name(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_package_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_package_name(this.__wbg_ptr,t,h)}get payment_path(){const e=a.paymentstrparams_payment_path(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_path(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_path(this.__wbg_ptr,t,h)}get payment_args_simple(){return a.paymentstrparams_payment_args_simple(this.__wbg_ptr)}set payment_args_simple(e){a.paymentstrparams_set_payment_args_simple(this.__wbg_ptr,e)}get payment_args_json(){const e=a.paymentstrparams_payment_args_json(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_args_json(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_args_json(this.__wbg_ptr,t,h)}get payment_version(){const e=a.paymentstrparams_payment_version(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_version(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_version(this.__wbg_ptr,t,h)}get payment_entry_point(){const e=a.paymentstrparams_payment_entry_point(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_entry_point(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_entry_point(this.__wbg_ptr,t,h)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_peerentry_free(n>>>0,1));const em=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_publickey_free(n>>>0,1));class Ee{static __wrap(e){e>>>=0;const t=Object.create(Ee.prototype);return t.__wbg_ptr=e,em.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,em.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_publickey_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.publickey_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,em.register(this,this.__wbg_ptr,this),this}static fromUint8Array(e){const t=Pt(e,a.__wbindgen_malloc),i=a.publickey_fromUint8Array(t,h);if(i[2])throw F(i[1]);return Ee.__wrap(i[0])}toAccountHash(){const e=a.publickey_toAccountHash(this.__wbg_ptr);return ut.__wrap(e)}toPurseUref(){const e=a.publickey_toPurseUref(this.__wbg_ptr);return st.__wrap(e)}toJson(){return a.publickey_toJson(this.__wbg_ptr)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_publickeystring_free(n>>>0,1));const tm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_purseidentifier_free(n>>>0,1));class zr{static __wrap(e){e>>>=0;const t=Object.create(zr.prototype);return t.__wbg_ptr=e,tm.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,tm.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_purseidentifier_free(e,0)}constructor(e){b(e,Ee);var t=e.__destroy_into_raw();const r=a.entityidentifier_fromPublicKey(t);return this.__wbg_ptr=r>>>0,tm.register(this,this.__wbg_ptr,this),this}static fromAccountHash(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.entityidentifier_fromAccountHash(t);return zr.__wrap(r)}static fromURef(e){b(e,st);var t=e.__destroy_into_raw();const r=a.purseidentifier_fromURef(t);return zr.__wrap(r)}toJson(){return a.purseidentifier_toJson(this.__wbg_ptr)}}const QI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_putdeployresult_free(n>>>0,1));class nm{static __wrap(e){e>>>=0;const t=Object.create(nm.prototype);return t.__wbg_ptr=e,QI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,QI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_putdeployresult_free(e,0)}get api_version(){return a.putdeployresult_api_version(this.__wbg_ptr)}get deploy_hash(){const e=a.putdeployresult_deploy_hash(this.__wbg_ptr);return Ur.__wrap(e)}toJson(){return a.putdeployresult_toJson(this.__wbg_ptr)}}const XI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_puttransactionresult_free(n>>>0,1));class rm{static __wrap(e){e>>>=0;const t=Object.create(rm.prototype);return t.__wbg_ptr=e,XI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,XI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_puttransactionresult_free(e,0)}get api_version(){return a.puttransactionresult_api_version(this.__wbg_ptr)}get transaction_hash(){const e=a.puttransactionresult_transaction_hash(this.__wbg_ptr);return Hi.__wrap(e)}toJson(){return a.puttransactionresult_toJson(this.__wbg_ptr)}}const eT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_querybalancedetailsresult_free(n>>>0,1));class im{static __wrap(e){e>>>=0;const t=Object.create(im.prototype);return t.__wbg_ptr=e,eT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,eT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_querybalancedetailsresult_free(e,0)}get api_version(){return a.querybalancedetailsresult_api_version(this.__wbg_ptr)}get total_balance(){return a.querybalancedetailsresult_total_balance(this.__wbg_ptr)}get available_balance(){return a.querybalancedetailsresult_available_balance(this.__wbg_ptr)}get total_balance_proof(){return a.querybalancedetailsresult_total_balance_proof(this.__wbg_ptr)}get holds(){return a.querybalancedetailsresult_holds(this.__wbg_ptr)}toJson(){return a.querybalancedetailsresult_toJson(this.__wbg_ptr)}}const tT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_querybalanceresult_free(n>>>0,1));class om{static __wrap(e){e>>>=0;const t=Object.create(om.prototype);return t.__wbg_ptr=e,tT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,tT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_querybalanceresult_free(e,0)}get api_version(){return a.querybalanceresult_api_version(this.__wbg_ptr)}get balance(){return a.querybalanceresult_balance(this.__wbg_ptr)}toJson(){return a.querybalanceresult_toJson(this.__wbg_ptr)}}const nT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_queryglobalstateresult_free(n>>>0,1));class sm{static __wrap(e){e>>>=0;const t=Object.create(sm.prototype);return t.__wbg_ptr=e,nT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,nT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_queryglobalstateresult_free(e,0)}get api_version(){return a.queryglobalstateresult_api_version(this.__wbg_ptr)}get block_header(){return a.queryglobalstateresult_block_header(this.__wbg_ptr)}get stored_value(){return a.queryglobalstateresult_stored_value(this.__wbg_ptr)}get merkle_proof(){let e,t;try{const r=a.queryglobalstateresult_merkle_proof(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.queryglobalstateresult_toJson(this.__wbg_ptr)}}const rT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_sdk_free(n>>>0,1));class H${__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,rT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_sdk_free(e,0)}deploy(e,t,r,i,o){b(e,Kt);var s=e.__destroy_into_raw();b(t,Bi);var c=t.__destroy_into_raw();b(r,er);var l=r.__destroy_into_raw(),u=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h;return a.sdk_deploy(this.__wbg_ptr,s,c,l,m(i)?3:i,u,d)}get_chainspec(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_get_chainspec(this.__wbg_ptr,m(e)?3:e,r,i)}info_get_chainspec(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_info_get_chainspec(this.__wbg_ptr,m(e)?3:e,r,i)}get_dictionary_item_options(e){const t=a.sdk_get_dictionary_item_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ga.__wrap(t[0])}get_dictionary_item(e){let t=0;return m(e)||(b(e,Ga),t=e.__destroy_into_raw()),a.sdk_get_dictionary_item(this.__wbg_ptr,t)}state_get_dictionary_item(e){let t=0;return m(e)||(b(e,Ga),t=e.__destroy_into_raw()),a.sdk_state_get_dictionary_item(this.__wbg_ptr,t)}get_entity_options(e){const t=a.sdk_get_entity_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Wa.__wrap(t[0])}get_entity(e){let t=0;return m(e)||(b(e,Wa),t=e.__destroy_into_raw()),a.sdk_get_entity(this.__wbg_ptr,t)}state_get_entity(e){let t=0;return m(e)||(b(e,Wa),t=e.__destroy_into_raw()),a.sdk_state_get_entity(this.__wbg_ptr,t)}get_peers(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_get_peers(this.__wbg_ptr,m(e)?3:e,r,i)}info_get_peers(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_info_get_peers(this.__wbg_ptr,m(e)?3:e,r,i)}get_validator_changes(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_get_validator_changes(this.__wbg_ptr,m(e)?3:e,r,i)}info_get_validator_change(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_info_get_validator_change(this.__wbg_ptr,m(e)?3:e,r,i)}list_rpcs(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_list_rpcs(this.__wbg_ptr,m(e)?3:e,r,i)}sign_transaction(e,t){b(e,de);var r=e.__destroy_into_raw();const i=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),s=a.sdk_sign_transaction(this.__wbg_ptr,r,i,h);return de.__wrap(s)}query_contract_dict_options(e){const t=a.sdk_query_contract_dict_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return pd.__wrap(t[0])}query_contract_dict(e){let t=0;return m(e)||(b(e,pd),t=e.__destroy_into_raw()),a.sdk_query_contract_dict(this.__wbg_ptr,t)}get_block_options(e){const t=a.sdk_get_block_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return za.__wrap(t[0])}get_block(e){let t=0;return m(e)||(b(e,za),t=e.__destroy_into_raw()),a.sdk_get_block(this.__wbg_ptr,t)}chain_get_block(e){let t=0;return m(e)||(b(e,za),t=e.__destroy_into_raw()),a.sdk_chain_get_block(this.__wbg_ptr,t)}get_block_transfers_options(e){const t=a.sdk_get_block_transfers_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return $a.__wrap(t[0])}get_block_transfers(e){let t=0;return m(e)||(b(e,$a),t=e.__destroy_into_raw()),a.sdk_get_block_transfers(this.__wbg_ptr,t)}chain_get_block_transfers(e){let t=0;return m(e)||(b(e,$a),t=e.__destroy_into_raw()),a.sdk_chain_get_block_transfers(this.__wbg_ptr,t)}get_speculative_exec_deploy_options(e){const t=a.sdk_get_speculative_exec_deploy_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return ud.__wrap(t[0])}speculative_exec_deploy(e){let t=0;return m(e)||(b(e,ud),t=e.__destroy_into_raw()),a.sdk_speculative_exec_deploy(this.__wbg_ptr,t)}transaction(e,t,r,i){b(e,je);var o=e.__destroy_into_raw();b(t,dt);var s=t.__destroy_into_raw(),c=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h;return a.sdk_transaction(this.__wbg_ptr,o,s,m(r)?3:r,c,l)}make_transfer(e,t,r,i,o){const s=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),u=h;var d=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),_=h;b(i,Kt);var f=i.__destroy_into_raw();b(o,er);var p=o.__destroy_into_raw();const y=a.sdk_make_transfer(this.__wbg_ptr,s,c,l,u,d,_,f,p);if(y[2])throw F(y[1]);return ae.__wrap(y[0])}sign_deploy(e,t){b(e,ae);var r=e.__destroy_into_raw();const i=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),s=a.sdk_sign_deploy(this.__wbg_ptr,r,i,h);return ae.__wrap(s)}constructor(e,t){var r=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const o=a.sdk_new(r,h,m(t)?3:t);return this.__wbg_ptr=o>>>0,rT.register(this,this.__wbg_ptr,this),this}getRPCAddress(e){let t,r;try{var i=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.sdk_getRPCAddress(this.__wbg_ptr,i,h);return t=s[0],r=s[1],v(s[0],s[1])}finally{a.__wbindgen_free(t,r,1)}}setRPCAddress(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const i=a.sdk_setRPCAddress(this.__wbg_ptr,t,h);if(i[1])throw F(i[0])}getVerbosity(e){return a.sdk_getVerbosity(this.__wbg_ptr,m(e)?3:e)}setVerbosity(e){const t=a.sdk_setVerbosity(this.__wbg_ptr,m(e)?3:e);if(t[1])throw F(t[0])}get_account_options(e){const t=a.sdk_get_account_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ba.__wrap(t[0])}get_account(e){let t=0;return m(e)||(b(e,Ba),t=e.__destroy_into_raw()),a.sdk_get_account(this.__wbg_ptr,t)}state_get_account_info(e){let t=0;return m(e)||(b(e,Ba),t=e.__destroy_into_raw()),a.sdk_state_get_account_info(this.__wbg_ptr,t)}get_balance_options(e){const t=a.sdk_get_balance_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ua.__wrap(t[0])}get_balance(e){let t=0;return m(e)||(b(e,Ua),t=e.__destroy_into_raw()),a.sdk_get_balance(this.__wbg_ptr,t)}state_get_balance(e){let t=0;return m(e)||(b(e,Ua),t=e.__destroy_into_raw()),a.sdk_state_get_balance(this.__wbg_ptr,t)}get_era_info_options(e){const t=a.sdk_get_era_info_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ja.__wrap(t[0])}get_era_info(e){let t=0;return m(e)||(b(e,Ja),t=e.__destroy_into_raw()),a.sdk_get_era_info(this.__wbg_ptr,t)}chain_get_era_info_by_switch_block(e){let t=0;return m(e)||(b(e,Ja),t=e.__destroy_into_raw()),a.sdk_chain_get_era_info_by_switch_block(this.__wbg_ptr,t)}make_deploy(e,t,r){b(e,Kt);var i=e.__destroy_into_raw();b(t,Bi);var o=t.__destroy_into_raw();b(r,er);var s=r.__destroy_into_raw();const c=a.sdk_make_deploy(this.__wbg_ptr,i,o,s);if(c[2])throw F(c[1]);return ae.__wrap(c[0])}make_transaction(e,t){b(e,je);var r=e.__destroy_into_raw();b(t,dt);var i=t.__destroy_into_raw();const o=a.sdk_make_transaction(this.__wbg_ptr,r,i);if(o[2])throw F(o[1]);return de.__wrap(o[0])}speculative_transfer_transaction(e,t,r,i,o,s,c){let l=0;m(e)||(b(e,st),l=e.__destroy_into_raw());const u=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h,_=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),f=h;b(i,dt);var p=i.__destroy_into_raw(),y=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),w=h,E=m(c)?0:g(c,a.__wbindgen_malloc,a.__wbindgen_realloc),C=h;return a.sdk_speculative_transfer_transaction(this.__wbg_ptr,l,u,d,_,f,p,y,w,m(s)?3:s,E,C)}install_deploy(e,t,r,i){b(e,Kt);var o=e.__destroy_into_raw();b(t,Bi);var s=t.__destroy_into_raw();const c=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h;var u=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.sdk_install_deploy(this.__wbg_ptr,o,s,c,l,u,h)}get_deploy_options(e){const t=a.sdk_get_deploy_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return qa.__wrap(t[0])}get_deploy(e){let t=0;return m(e)||(b(e,qa),t=e.__destroy_into_raw()),a.sdk_get_deploy(this.__wbg_ptr,t)}info_get_deploy(e){let t=0;return m(e)||(b(e,qa),t=e.__destroy_into_raw()),a.sdk_info_get_deploy(this.__wbg_ptr,t)}get_transaction_options(e){const t=a.sdk_get_transaction_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ya.__wrap(t[0])}get_transaction(e){let t=0;return m(e)||(b(e,Ya),t=e.__destroy_into_raw()),a.sdk_get_transaction(this.__wbg_ptr,t)}info_get_transaction(e){let t=0;return m(e)||(b(e,Ya),t=e.__destroy_into_raw()),a.sdk_info_get_transaction(this.__wbg_ptr,t)}put_transaction(e,t,r){b(e,de);var i=e.__destroy_into_raw(),o=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;return a.sdk_put_transaction(this.__wbg_ptr,i,m(t)?3:t,o,s)}account_put_transaction(e,t,r){b(e,de);var i=e.__destroy_into_raw(),o=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;return a.sdk_account_put_transaction(this.__wbg_ptr,i,m(t)?3:t,o,s)}get_speculative_exec_options(e){const t=a.sdk_get_speculative_exec_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return dd.__wrap(t[0])}speculative_exec(e){let t=0;return m(e)||(b(e,dd),t=e.__destroy_into_raw()),a.sdk_speculative_exec(this.__wbg_ptr,t)}speculative_transaction(e,t,r,i){b(e,je);var o=e.__destroy_into_raw();b(t,dt);var s=t.__destroy_into_raw(),c=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h;return a.sdk_speculative_transaction(this.__wbg_ptr,o,s,m(r)?3:r,c,l)}make_transfer_transaction(e,t,r,i,o){let s=0;m(e)||(b(e,st),s=e.__destroy_into_raw());const c=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h,u=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h;b(i,dt);var _=i.__destroy_into_raw(),f=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc);const y=a.sdk_make_transfer_transaction(this.__wbg_ptr,s,c,l,u,d,_,f,h);if(y[2])throw F(y[1]);return de.__wrap(y[0])}install(e,t,r){b(e,dt);var i=e.__destroy_into_raw();b(t,bt);var o=t.__destroy_into_raw(),s=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.sdk_install(this.__wbg_ptr,i,o,s,h)}transfer(e,t,r,i,o,s,c){const l=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),u=h,d=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),_=h;var f=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),p=h;b(i,Kt);var y=i.__destroy_into_raw();b(o,er);var w=o.__destroy_into_raw(),E=m(c)?0:g(c,a.__wbindgen_malloc,a.__wbindgen_realloc),C=h;return a.sdk_transfer(this.__wbg_ptr,l,u,d,_,f,p,y,w,m(s)?3:s,E,C)}get_node_status(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_get_node_status(this.__wbg_ptr,m(e)?3:e,r,i)}info_get_status(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_info_get_status(this.__wbg_ptr,m(e)?3:e,r,i)}put_deploy(e,t,r){b(e,ae);var i=e.__destroy_into_raw(),o=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;return a.sdk_put_deploy(this.__wbg_ptr,i,m(t)?3:t,o,s)}account_put_deploy(e,t,r){b(e,ae);var i=e.__destroy_into_raw(),o=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;return a.sdk_account_put_deploy(this.__wbg_ptr,i,m(t)?3:t,o,s)}query_balance_details_options(e){const t=a.sdk_query_balance_details_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return _d.__wrap(t[0])}query_balance_details(e){let t=0;return m(e)||(b(e,_d),t=e.__destroy_into_raw()),a.sdk_query_balance_details(this.__wbg_ptr,t)}query_global_state_options(e){const t=a.sdk_query_global_state_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return gd.__wrap(t[0])}query_global_state(e){let t=0;return m(e)||(b(e,gd),t=e.__destroy_into_raw()),a.sdk_query_global_state(this.__wbg_ptr,t)}call_entrypoint_deploy(e,t,r,i){b(e,Kt);var o=e.__destroy_into_raw();b(t,Bi);var s=t.__destroy_into_raw();const c=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h;var u=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.sdk_call_entrypoint_deploy(this.__wbg_ptr,o,s,c,l,u,h)}query_contract_key_options(e){const t=a.sdk_query_contract_key_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return hd.__wrap(t[0])}query_contract_key(e){let t=0;return m(e)||(b(e,hd),t=e.__destroy_into_raw()),a.sdk_query_contract_key(this.__wbg_ptr,t)}get_state_root_hash_options(e){const t=a.sdk_get_state_root_hash_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Za.__wrap(t[0])}get_state_root_hash(e){let t=0;return m(e)||(b(e,Za),t=e.__destroy_into_raw()),a.sdk_get_state_root_hash(this.__wbg_ptr,t)}chain_get_state_root_hash(e){let t=0;return m(e)||(b(e,Za),t=e.__destroy_into_raw()),a.sdk_chain_get_state_root_hash(this.__wbg_ptr,t)}transfer_transaction(e,t,r,i,o,s,c){let l=0;m(e)||(b(e,st),l=e.__destroy_into_raw());const u=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h,_=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),f=h;b(i,dt);var p=i.__destroy_into_raw(),y=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),w=h,E=m(c)?0:g(c,a.__wbindgen_malloc,a.__wbindgen_realloc),C=h;return a.sdk_transfer_transaction(this.__wbg_ptr,l,u,d,_,f,p,y,w,m(s)?3:s,E,C)}watchDeploy(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=a.sdk_watchDeploy(this.__wbg_ptr,r,h,!m(t),m(t)?0:t);return ld.__wrap(o)}watchTransaction(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=a.sdk_watchTransaction(this.__wbg_ptr,r,h,!m(t),m(t)?0:t);return ld.__wrap(o)}waitDeploy(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.sdk_waitDeploy(this.__wbg_ptr,i,o,s,h,!m(r),m(r)?0:r)}waitTransaction(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.sdk_waitTransaction(this.__wbg_ptr,i,o,s,h,!m(r),m(r)?0:r)}speculative_deploy(e,t,r,i,o){b(e,Kt);var s=e.__destroy_into_raw();b(t,Bi);var c=t.__destroy_into_raw();b(r,er);var l=r.__destroy_into_raw(),u=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h;return a.sdk_speculative_deploy(this.__wbg_ptr,s,c,l,m(i)?3:i,u,d)}speculative_transfer(e,t,r,i,o,s,c){const l=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),u=h,d=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),_=h;var f=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),p=h;b(i,Kt);var y=i.__destroy_into_raw();b(o,er);var w=o.__destroy_into_raw(),E=m(c)?0:g(c,a.__wbindgen_malloc,a.__wbindgen_realloc),C=h;return a.sdk_speculative_transfer(this.__wbg_ptr,l,u,d,_,f,p,y,w,m(s)?3:s,E,C)}get_auction_info_options(e){const t=a.sdk_get_auction_info_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ha.__wrap(t[0])}get_auction_info(e){let t=0;return m(e)||(b(e,Ha),t=e.__destroy_into_raw()),a.sdk_get_auction_info(this.__wbg_ptr,t)}state_get_auction_info_js_alias(e){let t=0;return m(e)||(b(e,Ha),t=e.__destroy_into_raw()),a.sdk_state_get_auction_info_js_alias(this.__wbg_ptr,t)}get_era_summary_options(e){const t=a.sdk_get_era_summary_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ka.__wrap(t[0])}get_era_summary(e){let t=0;return m(e)||(b(e,Ka),t=e.__destroy_into_raw()),a.sdk_get_era_summary(this.__wbg_ptr,t)}chain_get_era_summary(e){let t=0;return m(e)||(b(e,Ka),t=e.__destroy_into_raw()),a.sdk_chain_get_era_summary(this.__wbg_ptr,t)}query_balance_options(e){const t=a.sdk_query_balance_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return fd.__wrap(t[0])}query_balance(e){let t=0;return m(e)||(b(e,fd),t=e.__destroy_into_raw()),a.sdk_query_balance(this.__wbg_ptr,t)}call_entrypoint(e,t,r){b(e,je);var i=e.__destroy_into_raw();b(t,dt);var o=t.__destroy_into_raw(),s=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.sdk_call_entrypoint(this.__wbg_ptr,i,o,s,h)}}const iT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_sessionstrparams_free(n>>>0,1));class Bi{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,iT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_sessionstrparams_free(e,0)}constructor(e,t,r,i,o,s,c,l,u,d,_){var f=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),p=h,y=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),w=h,E=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),C=h,D=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),N=h,B=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),Q=h;let oe=0;m(s)||(b(s,bt),oe=s.__destroy_into_raw());var Be=m(l)?0:g(l,a.__wbindgen_malloc,a.__wbindgen_realloc),jt=h,Wr=m(u)?0:g(u,a.__wbindgen_malloc,a.__wbindgen_realloc),Gi=h,hc=m(d)?0:g(d,a.__wbindgen_malloc,a.__wbindgen_realloc),gc=h;const mc=a.sessionstrparams_new(f,p,y,w,E,C,D,N,B,Q,oe,m(c)?0:Pi(c),Be,jt,Wr,Gi,hc,gc,m(_)?16777215:_?1:0);return this.__wbg_ptr=mc>>>0,iT.register(this,this.__wbg_ptr,this),this}get session_hash(){const e=a.sessionstrparams_session_hash(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_hash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_hash(this.__wbg_ptr,t,h)}get session_name(){const e=a.sessionstrparams_session_name(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_name(this.__wbg_ptr,t,h)}get session_package_hash(){const e=a.sessionstrparams_session_package_hash(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_package_hash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_package_hash(this.__wbg_ptr,t,h)}get session_package_name(){const e=a.sessionstrparams_session_package_name(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_package_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_package_name(this.__wbg_ptr,t,h)}get session_path(){const e=a.sessionstrparams_session_path(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_path(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_path(this.__wbg_ptr,t,h)}get session_bytes(){const e=a.sessionstrparams_session_bytes(this.__wbg_ptr);return 0===e?void 0:bt.__wrap(e)}set session_bytes(e){b(e,bt);var t=e.__destroy_into_raw();a.sessionstrparams_set_session_bytes(this.__wbg_ptr,t)}get session_args_simple(){const e=a.sessionstrparams_session_args_simple(this.__wbg_ptr);return 0===e?void 0:Xu.__wrap(e)}set session_args_simple(e){a.sessionstrparams_set_session_args_simple(this.__wbg_ptr,e)}get session_args_json(){const e=a.sessionstrparams_session_args_json(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_args_json(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_args_json(this.__wbg_ptr,t,h)}get session_version(){const e=a.sessionstrparams_session_version(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_version(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_version(this.__wbg_ptr,t,h)}get session_entry_point(){const e=a.sessionstrparams_session_entry_point(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_entry_point(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_entry_point(this.__wbg_ptr,t,h)}get is_session_transfer(){const e=a.sessionstrparams_is_session_transfer(this.__wbg_ptr);return 16777215===e?void 0:0!==e}set is_session_transfer(e){a.sessionstrparams_set_is_session_transfer(this.__wbg_ptr,e)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_signatureresponse_free(n>>>0,1));const oT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_speculativeexecresult_free(n>>>0,1));class am{static __wrap(e){e>>>=0;const t=Object.create(am.prototype);return t.__wbg_ptr=e,oT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,oT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_speculativeexecresult_free(e,0)}get api_version(){return a.speculativeexecresult_api_version(this.__wbg_ptr)}get block_hash(){const e=a.speculativeexecresult_block_hash(this.__wbg_ptr);return yr.__wrap(e)}get execution_result(){return a.speculativeexecresult_execution_result(this.__wbg_ptr)}toJson(){return a.speculativeexecresult_toJson(this.__wbg_ptr)}}const sT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_speculativeexectxnresult_free(n>>>0,1));class cm{static __wrap(e){e>>>=0;const t=Object.create(cm.prototype);return t.__wbg_ptr=e,sT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,sT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_speculativeexectxnresult_free(e,0)}get api_version(){return a.speculativeexectxnresult_api_version(this.__wbg_ptr)}get block_hash(){const e=a.speculativeexectxnresult_block_hash(this.__wbg_ptr);return yr.__wrap(e)}get execution_result(){return a.speculativeexectxnresult_execution_result(this.__wbg_ptr)}toJson(){return a.speculativeexectxnresult_toJson(this.__wbg_ptr)}}const aT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_subscription_free(n>>>0,1));class lm{static __unwrap(e){return e instanceof lm?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,aT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_subscription_free(e,0)}get targetHash(){let e,t;try{const r=a.__wbg_get_subscription_targetHash(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}set targetHash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_failure_cost(this.__wbg_ptr,t,h)}get eventHandlerFn(){return a.__wbg_get_subscription_eventHandlerFn(this.__wbg_ptr)}set eventHandlerFn(e){a.__wbg_set_subscription_eventHandlerFn(this.__wbg_ptr,e)}constructor(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=a.subscription_new(r,h,t);return this.__wbg_ptr=o>>>0,aT.register(this,this.__wbg_ptr,this),this}}const um=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_transaction_free(n>>>0,1));class de{static __wrap(e){e>>>=0;const t=Object.create(de.prototype);return t.__wbg_ptr=e,um.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,um.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_transaction_free(e,0)}constructor(e){const t=a.transaction_new(e);return this.__wbg_ptr=t>>>0,um.register(this,this.__wbg_ptr,this),this}toJson(){return a.transaction_toJson(this.__wbg_ptr)}static newSession(e,t){b(e,je);var r=e.__destroy_into_raw();b(t,dt);var i=t.__destroy_into_raw();const o=a.transaction_newSession(r,i);if(o[2])throw F(o[1]);return de.__wrap(o[0])}static newTransfer(e,t,r,i,o){let s=0;m(e)||(b(e,st),s=e.__destroy_into_raw());const c=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h,u=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h;b(i,dt);var _=i.__destroy_into_raw(),f=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc);const y=a.transaction_newTransfer(s,c,l,u,d,_,f,h);if(y[2])throw F(y[1]);return de.__wrap(y[0])}withTTL(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.transaction_withTTL(this.__wbg_ptr,r,i,o,h);return de.__wrap(c)}withTimestamp(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.transaction_withTimestamp(this.__wbg_ptr,r,i,o,h);return de.__wrap(c)}withChainName(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.transaction_withChainName(this.__wbg_ptr,r,i,o,h);return de.__wrap(c)}withPublicKey(e,t){b(e,Ee);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.transaction_withPublicKey(this.__wbg_ptr,r,i,h);return de.__wrap(s)}withAccountHash(e,t){b(e,ut);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.transaction_withAccountHash(this.__wbg_ptr,r,i,h);return de.__wrap(s)}withEntryPoint(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.transaction_withEntryPoint(this.__wbg_ptr,r,i,o,h);return de.__wrap(c)}withEntityHash(e,t){b(e,Yn);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.transaction_withEntityHash(this.__wbg_ptr,r,i,h);return de.__wrap(s)}withPackageHash(e,t){b(e,Xn);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.transaction_withPackageHash(this.__wbg_ptr,r,i,h);return de.__wrap(s)}withTransactionBytes(e,t,r){b(e,bt);var i=e.__destroy_into_raw(),o=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;const c=a.transaction_withTransactionBytes(this.__wbg_ptr,i,m(t)?16777215:t?1:0,o,s);return de.__wrap(c)}withSecretKey(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const i=a.transaction_withSecretKey(this.__wbg_ptr,t,h);return de.__wrap(i)}verify(){return 0!==a.transaction_verify(this.__wbg_ptr)}get hash(){const e=a.transaction_hash(this.__wbg_ptr);return Hi.__wrap(e)}get expired(){return 0!==a.transaction_expired(this.__wbg_ptr)}get expires(){return a.transaction_expires(this.__wbg_ptr)}get signers(){return a.transaction_signers(this.__wbg_ptr)}get authorization_keys(){return a.transaction_authorization_keys(this.__wbg_ptr)}sign(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.transaction_sign(this.__wbg_ptr,t,h);return de.__wrap(i)}approvalsHash(){return a.transaction_approvalsHash(this.__wbg_ptr)}get approvals(){return a.transaction_approvals(this.__wbg_ptr)}get is_native(){return 0!==a.transaction_is_native(this.__wbg_ptr)}get target(){return a.transaction_target(this.__wbg_ptr)}get is_standard_payment(){return 0!==a.transaction_is_standard_payment(this.__wbg_ptr)}session_args(){return a.transaction_session_args(this.__wbg_ptr)}addSignature(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h,o=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=a.transaction_addSignature(this.__wbg_ptr,r,i,o,h);return de.__wrap(c)}get entry_point(){let e,t;try{const r=a.transaction_entry_point(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get ttl(){let e,t;try{const r=a.transaction_ttl(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get timestamp(){let e,t;try{const r=a.transaction_timestamp(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get size_estimate(){return a.transaction_size_estimate(this.__wbg_ptr)>>>0}get chain_name(){let e,t;try{const r=a.transaction_chain_name(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get initiator_addr(){let e,t;try{const r=a.transaction_initiator_addr(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get pricing_mode(){return a.transaction_pricing_mode(this.__wbg_ptr)}get additional_computation_factor(){return a.transaction_additional_computation_factor(this.__wbg_ptr)}get receipt(){const e=a.transaction_receipt(this.__wbg_ptr);return Le.__wrap(e)}get gas_price_tolerance(){return a.transaction_gas_price_tolerance(this.__wbg_ptr)}get account_hash(){const e=a.transaction_account_hash(this.__wbg_ptr);return ut.__wrap(e)}addArg(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const o=a.transaction_addArg(this.__wbg_ptr,e,r,h);if(o[2])throw F(o[1]);return de.__wrap(o[0])}}const cT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_transactionbuilderparams_free(n>>>0,1));class je{static __wrap(e){e>>>=0;const t=Object.create(je.prototype);return t.__wbg_ptr=e,cT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,cT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_transactionbuilderparams_free(e,0)}static newSession(e,t){let r=0;m(e)||(b(e,bt),r=e.__destroy_into_raw());const i=a.transactionbuilderparams_newSession(r,m(t)?16777215:t?1:0);return je.__wrap(i)}static newTransfer(e,t,r,i){let o=0;m(e)||(b(e,st),o=e.__destroy_into_raw()),b(t,ja);var s=t.__destroy_into_raw();const c=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),u=a.transactionbuilderparams_newTransfer(o,s,c,h,!m(i),m(i)?BigInt(0):i);return je.__wrap(u)}static newInvocableEntity(e,t){b(e,Yn);var r=e.__destroy_into_raw();const i=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),s=a.transactionbuilderparams_newInvocableEntity(r,i,h);return je.__wrap(s)}static newInvocableEntityAlias(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h,o=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=a.transactionbuilderparams_newInvocableEntityAlias(r,i,o,h);return je.__wrap(c)}static newPackage(e,t,r){b(e,Xn);var i=e.__destroy_into_raw();const o=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;var c=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);const u=a.transactionbuilderparams_newPackage(i,o,s,c,h);return je.__wrap(u)}static newPackageAlias(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h;var l=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);const d=a.transactionbuilderparams_newPackageAlias(i,o,s,c,l,h);return je.__wrap(d)}static newAddBid(e,t,r,i,o){b(e,Ee);var s=e.__destroy_into_raw();const c=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),u=a.transactionbuilderparams_newAddBid(s,t,c,h,i,o);return je.__wrap(u)}static newDelegate(e,t,r){b(e,Ee);var i=e.__destroy_into_raw();b(t,Ee);var o=t.__destroy_into_raw();const s=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),l=a.transactionbuilderparams_newDelegate(i,o,s,h);return je.__wrap(l)}static newUndelegate(e,t,r){b(e,Ee);var i=e.__destroy_into_raw();b(t,Ee);var o=t.__destroy_into_raw();const s=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),l=a.transactionbuilderparams_newUndelegate(i,o,s,h);return je.__wrap(l)}static newRedelegate(e,t,r,i){b(e,Ee);var o=e.__destroy_into_raw();b(t,Ee);var s=t.__destroy_into_raw();b(r,Ee);var c=r.__destroy_into_raw();const l=g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),d=a.transactionbuilderparams_newRedelegate(o,s,c,l,h);return je.__wrap(d)}static newWithdrawBid(e,t){b(e,Ee);var r=e.__destroy_into_raw();const i=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),s=a.transactionbuilderparams_newWithdrawBid(r,i,h);return je.__wrap(s)}get kind(){return a.transactionbuilderparams_kind(this.__wbg_ptr)}set kind(e){a.transactionbuilderparams_set_kind(this.__wbg_ptr,e)}get transaction_bytes(){const e=a.transactionbuilderparams_transaction_bytes(this.__wbg_ptr);return 0===e?void 0:bt.__wrap(e)}set transaction_bytes(e){b(e,bt);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_transaction_bytes(this.__wbg_ptr,t)}get maybe_source(){const e=a.transactionbuilderparams_maybe_source(this.__wbg_ptr);return 0===e?void 0:st.__wrap(e)}set maybe_source(e){b(e,st);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_maybe_source(this.__wbg_ptr,t)}get target(){const e=a.transactionbuilderparams_target(this.__wbg_ptr);return 0===e?void 0:ja.__wrap(e)}set target(e){b(e,ja);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_target(this.__wbg_ptr,t)}get amount(){const e=a.transactionbuilderparams_amount(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set amount(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionbuilderparams_set_amount(this.__wbg_ptr,t,h)}get maybe_id(){const e=a.transactionbuilderparams_maybe_id(this.__wbg_ptr);return 0===e[0]?void 0:BigInt.asUintN(64,e[1])}set maybe_id(e){a.transactionbuilderparams_set_maybe_id(this.__wbg_ptr,e)}get entity_hash(){const e=a.transactionbuilderparams_entity_hash(this.__wbg_ptr);return 0===e?void 0:Yn.__wrap(e)}set entity_hash(e){b(e,Yn);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_entity_hash(this.__wbg_ptr,t)}get entity_alias(){const e=a.transactionbuilderparams_entity_alias(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set entity_alias(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionbuilderparams_set_entity_alias(this.__wbg_ptr,t,h)}get entry_point(){const e=a.transactionbuilderparams_entry_point(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set entry_point(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionbuilderparams_set_entry_point(this.__wbg_ptr,t,h)}get package_hash(){const e=a.transactionbuilderparams_package_hash(this.__wbg_ptr);return 0===e?void 0:Xn.__wrap(e)}set package_hash(e){b(e,Xn);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_package_hash(this.__wbg_ptr,t)}get package_alias(){const e=a.transactionbuilderparams_package_alias(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set package_alias(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionbuilderparams_set_package_alias(this.__wbg_ptr,t,h)}get public_key(){const e=a.transactionbuilderparams_public_key(this.__wbg_ptr);return 0===e?void 0:Ee.__wrap(e)}set public_key(e){b(e,Ee);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_public_key(this.__wbg_ptr,t)}get delegation_rate(){const e=a.transactionbuilderparams_delegation_rate(this.__wbg_ptr);return 16777215===e?void 0:e}set delegation_rate(e){a.transactionbuilderparams_set_delegation_rate(this.__wbg_ptr,e)}get delegator(){const e=a.transactionbuilderparams_delegator(this.__wbg_ptr);return 0===e?void 0:Ee.__wrap(e)}set delegator(e){b(e,Ee);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_delegator(this.__wbg_ptr,t)}get validator(){const e=a.transactionbuilderparams_validator(this.__wbg_ptr);return 0===e?void 0:Ee.__wrap(e)}set validator(e){b(e,Ee);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_validator(this.__wbg_ptr,t)}get new_validator(){const e=a.transactionbuilderparams_new_validator(this.__wbg_ptr);return 0===e?void 0:Ee.__wrap(e)}set new_validator(e){b(e,Ee);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_new_validator(this.__wbg_ptr,t)}get minimum_delegation_amount(){const e=a.transactionbuilderparams_minimum_delegation_amount(this.__wbg_ptr);return 0===e[0]?void 0:BigInt.asUintN(64,e[1])}set minimum_delegation_amount(e){a.transactionbuilderparams_set_minimum_delegation_amount(this.__wbg_ptr,e)}get maximum_delegation_amount(){const e=a.transactionbuilderparams_maximum_delegation_amount(this.__wbg_ptr);return 0===e[0]?void 0:BigInt.asUintN(64,e[1])}set maximum_delegation_amount(e){a.transactionbuilderparams_set_maximum_delegation_amount(this.__wbg_ptr,e)}get is_install_upgrade(){const e=a.transactionbuilderparams_is_install_upgrade(this.__wbg_ptr);return 16777215===e?void 0:0!==e}set is_install_upgrade(e){a.transactionbuilderparams_set_is_install_upgrade(this.__wbg_ptr,e)}}const dm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_transactionhash_free(n>>>0,1));class Hi{static __wrap(e){e>>>=0;const t=Object.create(Hi.prototype);return t.__wbg_ptr=e,dm.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,dm.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_transactionhash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.transactionhash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,dm.register(this,this.__wbg_ptr,this),this}static fromRaw(e){const t=Pt(e,a.__wbindgen_malloc),i=a.transactionhash_fromRaw(t,h);if(i[2])throw F(i[1]);return Hi.__wrap(i[0])}digest(){const e=a.transactionhash_digest(this.__wbg_ptr);if(e[2])throw F(e[1]);return Le.__wrap(e[0])}toJson(){return a.transactionhash_toJson(this.__wbg_ptr)}toString(){let e,t;try{const r=a.transactionhash_toString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_transactionprocessed_free(n>>>0,1));const _m=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_transactionstrparams_free(n>>>0,1));class dt{static __wrap(e){e>>>=0;const t=Object.create(dt.prototype);return t.__wbg_ptr=e,_m.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,_m.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_transactionstrparams_free(e,0)}constructor(e,t,r,i,o,s,c,l,u,d,_,f,p){const y=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),w=h;var E=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),C=h,D=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),N=h,B=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),Q=h,oe=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),Be=h,jt=m(s)?0:Yu(s,a.__wbindgen_malloc),Wr=h,Gi=m(c)?0:g(c,a.__wbindgen_malloc,a.__wbindgen_realloc),hc=h,gc=m(u)?0:g(u,a.__wbindgen_malloc,a.__wbindgen_realloc),mc=h,aq=m(d)?0:g(d,a.__wbindgen_malloc,a.__wbindgen_realloc),cq=h,lq=m(_)?0:g(_,a.__wbindgen_malloc,a.__wbindgen_realloc),uq=h,dq=m(f)?0:g(f,a.__wbindgen_malloc,a.__wbindgen_realloc),_q=h;const fq=a.transactionstrparams_new(y,w,E,C,D,N,B,Q,oe,Be,jt,Wr,Gi,hc,m(l)?3:l,gc,mc,aq,cq,lq,uq,dq,_q,m(p)?16777215:p?1:0);return this.__wbg_ptr=fq>>>0,_m.register(this,this.__wbg_ptr,this),this}static new_with_defaults(e,t,r,i){const o=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;var c=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h,u=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h,_=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc);const p=a.transactionstrparams_new_with_defaults(o,s,c,l,u,d,_,h);return dt.__wrap(p)}get secret_key(){const e=a.transactionstrparams_secret_key(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set secret_key(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_secret_key(this.__wbg_ptr,t,h)}get timestamp(){const e=a.transactionstrparams_timestamp(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set timestamp(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_timestamp(this.__wbg_ptr,t,h)}setDefaultTimestamp(){a.transactionstrparams_setDefaultTimestamp(this.__wbg_ptr)}get ttl(){const e=a.transactionstrparams_ttl(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set ttl(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_ttl(this.__wbg_ptr,t,h)}setDefaultTTL(){a.transactionstrparams_setDefaultTTL(this.__wbg_ptr)}get chain_name(){const e=a.transactionstrparams_chain_name(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set chain_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_chain_name(this.__wbg_ptr,t,h)}get initiator_addr(){const e=a.transactionstrparams_initiator_addr(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set initiator_addr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_initiator_addr(this.__wbg_ptr,t,h)}get session_args_simple(){const e=a.transactionstrparams_session_args_simple(this.__wbg_ptr);return 0===e?void 0:Xu.__wrap(e)}set session_args_simple(e){const t=Yu(e,a.__wbindgen_malloc);a.transactionstrparams_set_session_args_simple(this.__wbg_ptr,t,h)}get session_args_json(){const e=a.transactionstrparams_session_args_json(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_args_json(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_session_args_json(this.__wbg_ptr,t,h)}get pricing_mode(){const e=a.transactionstrparams_pricing_mode(this.__wbg_ptr);return 3===e?void 0:e}set pricing_mode(e){a.transactionstrparams_set_pricing_mode(this.__wbg_ptr,e)}get additional_computation_factor(){const e=a.transactionstrparams_additional_computation_factor(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set additional_computation_factor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_additional_computation_factor(this.__wbg_ptr,t,h)}get payment_amount(){const e=a.transactionstrparams_payment_amount(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_amount(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_payment_amount(this.__wbg_ptr,t,h)}get gas_price_tolerance(){const e=a.transactionstrparams_gas_price_tolerance(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set gas_price_tolerance(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_gas_price_tolerance(this.__wbg_ptr,t,h)}get receipt(){const e=a.transactionstrparams_receipt(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set receipt(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_receipt(this.__wbg_ptr,t,h)}get standard_payment(){const e=a.transactionstrparams_standard_payment(this.__wbg_ptr);return 16777215===e?void 0:0!==e}set standard_payment(e){a.transactionstrparams_set_standard_payment(this.__wbg_ptr,e)}}const fm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_transferaddr_free(n>>>0,1));class pm{static __wrap(e){e>>>=0;const t=Object.create(pm.prototype);return t.__wbg_ptr=e,fm.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,fm.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_transferaddr_free(e,0)}constructor(e){const t=Pt(e,a.__wbindgen_malloc),i=a.transferaddr_new(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,fm.register(this,this.__wbg_ptr,this),this}}const hm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_transfertarget_free(n>>>0,1));class ja{static __wrap(e){e>>>=0;const t=Object.create(ja.prototype);return t.__wbg_ptr=e,hm.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,hm.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_transfertarget_free(e,0)}constructor(e,t,r,i){let o=0;m(t)||(b(t,Ee),o=t.__destroy_into_raw());let s=0;m(r)||(b(r,ut),s=r.__destroy_into_raw());let c=0;m(i)||(b(i,st),c=i.__destroy_into_raw());const l=a.transfertarget_new(e,o,s,c);return this.__wbg_ptr=l>>>0,hm.register(this,this.__wbg_ptr,this),this}}const gm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_uref_free(n>>>0,1));class st{static __wrap(e){e>>>=0;const t=Object.create(st.prototype);return t.__wbg_ptr=e,gm.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,gm.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_uref_free(e,0)}constructor(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=a.uref_new_js_alias(r,h,t);if(o[2])throw F(o[1]);return this.__wbg_ptr=o[0]>>>0,gm.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.uref_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return st.__wrap(i[0])}static fromUint8Array(e,t){const r=Pt(e,a.__wbindgen_malloc),o=a.uref_fromUint8Array(r,h,t);return st.__wrap(o)}toFormattedString(){let e,t;try{const r=a.uref_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.uref_toJson(this.__wbg_ptr)}}const mm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_urefaddr_free(n>>>0,1));class ad{static __wrap(e){e>>>=0;const t=Object.create(ad.prototype);return t.__wbg_ptr=e,mm.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,mm.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_urefaddr_free(e,0)}constructor(e){const t=Pt(e,a.__wbindgen_malloc),i=a.urefaddr_new(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,mm.register(this,this.__wbg_ptr,this),this}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_version2_free(n>>>0,1));const ym=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_watcher_free(n>>>0,1));class ld{static __wrap(e){e>>>=0;const t=Object.create(ld.prototype);return t.__wbg_ptr=e,ym.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ym.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_watcher_free(e,0)}constructor(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=a.watcher_new(r,h,!m(t),m(t)?BigInt(0):t);return this.__wbg_ptr=o>>>0,ym.register(this,this.__wbg_ptr,this),this}subscribe(e){const t=Yu(e,a.__wbindgen_malloc),i=a.watcher_subscribe(this.__wbg_ptr,t,h);if(i[1])throw F(i[0])}unsubscribe(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.watcher_unsubscribe(this.__wbg_ptr,t,h)}start(){return a.watcher_start(this.__wbg_ptr)}stop(){a.watcher_stop(this.__wbg_ptr)}}const dT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getaccountoptions_free(n>>>0,1));class Ba{static __wrap(e){e>>>=0;const t=Object.create(Ba.prototype);return t.__wbg_ptr=e,dT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,dT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getaccountoptions_free(e,0)}get account_identifier(){const e=a.__wbg_get_getaccountoptions_account_identifier(this.__wbg_ptr);return 0===e?void 0:Li.__wrap(e)}set account_identifier(e){let t=0;m(e)||(b(e,Li),t=e.__destroy_into_raw()),a.__wbg_set_getaccountoptions_account_identifier(this.__wbg_ptr,t)}get account_identifier_as_string(){const e=a.__wbg_get_getaccountoptions_account_identifier_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set account_identifier_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getaccountoptions_account_identifier_as_string(this.__wbg_ptr,t,h)}get maybe_block_id_as_string(){const e=a.__wbg_get_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getaccountoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getaccountoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getaccountoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getaccountoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const _T=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getauctioninfooptions_free(n>>>0,1));class Ha{static __wrap(e){e>>>=0;const t=Object.create(Ha.prototype);return t.__wbg_ptr=e,_T.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,_T.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getauctioninfooptions_free(e,0)}get maybe_block_id_as_string(){const e=a.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getauctioninfooptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const fT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getbalanceoptions_free(n>>>0,1));class Ua{static __wrap(e){e>>>=0;const t=Object.create(Ua.prototype);return t.__wbg_ptr=e,fT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,fT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getbalanceoptions_free(e,0)}get state_root_hash_as_string(){const e=a.__wbg_get_getbalanceoptions_state_root_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set state_root_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getbalanceoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get state_root_hash(){const e=a.__wbg_get_getbalanceoptions_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}set state_root_hash(e){let t=0;m(e)||(b(e,Le),t=e.__destroy_into_raw()),a.__wbg_set_getbalanceoptions_state_root_hash(this.__wbg_ptr,t)}get purse_uref_as_string(){const e=a.__wbg_get_getbalanceoptions_purse_uref_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set purse_uref_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getbalanceoptions_purse_uref_as_string(this.__wbg_ptr,t,h)}get purse_uref(){const e=a.__wbg_get_getbalanceoptions_purse_uref(this.__wbg_ptr);return 0===e?void 0:st.__wrap(e)}set purse_uref(e){let t=0;m(e)||(b(e,st),t=e.__destroy_into_raw()),a.__wbg_set_getbalanceoptions_purse_uref(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getbalanceoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getbalanceoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getbalanceoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getbalanceoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const pT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getblockoptions_free(n>>>0,1));class za{static __wrap(e){e>>>=0;const t=Object.create(za.prototype);return t.__wbg_ptr=e,pT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,pT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getblockoptions_free(e,0)}get maybe_block_id_as_string(){const e=a.__wbg_get_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getblockoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const hT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getblocktransfersoptions_free(n>>>0,1));class $a{static __wrap(e){e>>>=0;const t=Object.create($a.prototype);return t.__wbg_ptr=e,hT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,hT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getblocktransfersoptions_free(e,0)}get maybe_block_id_as_string(){const e=a.__wbg_get_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr,t)}get verbosity(){const e=a.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}get rpc_address(){const e=a.__wbg_get_getblocktransfersoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr,t,h)}}const gT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getdeployoptions_free(n>>>0,1));class qa{static __wrap(e){e>>>=0;const t=Object.create(qa.prototype);return t.__wbg_ptr=e,gT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,gT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getdeployoptions_free(e,0)}get deploy_hash_as_string(){const e=a.__wbg_get_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set deploy_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr,t,h)}get deploy_hash(){const e=a.__wbg_get_getdeployoptions_deploy_hash(this.__wbg_ptr);return 0===e?void 0:Ur.__wrap(e)}set deploy_hash(e){let t=0;m(e)||(b(e,Ur),t=e.__destroy_into_raw()),a.__wbg_set_getdeployoptions_deploy_hash(this.__wbg_ptr,t)}get finalized_approvals(){const e=a.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr);return 16777215===e?void 0:0!==e}set finalized_approvals(e){a.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr,m(e)?16777215:e?1:0)}get rpc_address(){const e=a.__wbg_get_getdeployoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdeployoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const mT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getdictionaryitemoptions_free(n>>>0,1));class Ga{static __wrap(e){e>>>=0;const t=Object.create(Ga.prototype);return t.__wbg_ptr=e,mT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,mT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getdictionaryitemoptions_free(e,0)}get state_root_hash_as_string(){const e=a.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set state_root_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get state_root_hash(){const e=a.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}set state_root_hash(e){let t=0;m(e)||(b(e,Le),t=e.__destroy_into_raw()),a.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,t)}get dictionary_item_params(){const e=a.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===e?void 0:Vi.__wrap(e)}set dictionary_item_params(e){let t=0;m(e)||(b(e,Vi),t=e.__destroy_into_raw()),a.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,t)}get dictionary_item_identifier(){const e=a.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===e?void 0:vt.__wrap(e)}set dictionary_item_identifier(e){let t=0;m(e)||(b(e,vt),t=e.__destroy_into_raw()),a.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getdictionaryitemoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdictionaryitemoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const yT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getentityoptions_free(n>>>0,1));class Wa{static __wrap(e){e>>>=0;const t=Object.create(Wa.prototype);return t.__wbg_ptr=e,yT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,yT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getentityoptions_free(e,0)}get entity_identifier(){const e=a.__wbg_get_getentityoptions_entity_identifier(this.__wbg_ptr);return 0===e?void 0:Qn.__wrap(e)}set entity_identifier(e){let t=0;m(e)||(b(e,Qn),t=e.__destroy_into_raw()),a.__wbg_set_getentityoptions_entity_identifier(this.__wbg_ptr,t)}get entity_identifier_as_string(){const e=a.__wbg_get_getentityoptions_entity_identifier_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set entity_identifier_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getentityoptions_entity_identifier_as_string(this.__wbg_ptr,t,h)}get maybe_block_id_as_string(){const e=a.__wbg_get_getentityoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getentityoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getentityoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getentityoptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getentityoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getentityoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getentityoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getentityoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const wT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_geterainfooptions_free(n>>>0,1));class Ja{static __wrap(e){e>>>=0;const t=Object.create(Ja.prototype);return t.__wbg_ptr=e,wT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,wT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_geterainfooptions_free(e,0)}get maybe_block_id_as_string(){const e=a.__wbg_get_geterainfooptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_geterainfooptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_geterainfooptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_geterainfooptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_geterainfooptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_geterainfooptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const bT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_geterasummaryoptions_free(n>>>0,1));class Ka{static __wrap(e){e>>>=0;const t=Object.create(Ka.prototype);return t.__wbg_ptr=e,bT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,bT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_geterasummaryoptions_free(e,0)}get maybe_block_id_as_string(){const e=a.__wbg_get_geterasummaryoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_geterasummaryoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const vT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getspeculativeexecdeployoptions_free(n>>>0,1));class ud{static __wrap(e){e>>>=0;const t=Object.create(ud.prototype);return t.__wbg_ptr=e,vT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,vT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getspeculativeexecdeployoptions_free(e,0)}get deploy_as_string(){const e=a.__wbg_get_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set deploy_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr,t,h)}get deploy(){const e=a.__wbg_get_getspeculativeexecdeployoptions_deploy(this.__wbg_ptr);return 0===e?void 0:ae.__wrap(e)}set deploy(e){let t=0;m(e)||(b(e,ae),t=e.__destroy_into_raw()),a.__wbg_set_getspeculativeexecdeployoptions_deploy(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const ET=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getspeculativeexectxnoptions_free(n>>>0,1));class dd{static __wrap(e){e>>>=0;const t=Object.create(dd.prototype);return t.__wbg_ptr=e,ET.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ET.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getspeculativeexectxnoptions_free(e,0)}get transaction_as_string(){const e=a.__wbg_get_getspeculativeexectxnoptions_transaction_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set transaction_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getspeculativeexectxnoptions_transaction_as_string(this.__wbg_ptr,t,h)}get transaction(){const e=a.__wbg_get_getspeculativeexectxnoptions_transaction(this.__wbg_ptr);return 0===e?void 0:de.__wrap(e)}set transaction(e){let t=0;m(e)||(b(e,de),t=e.__destroy_into_raw()),a.__wbg_set_getspeculativeexectxnoptions_transaction(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getspeculativeexectxnoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getspeculativeexectxnoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getspeculativeexectxnoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getspeculativeexectxnoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const DT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getstateroothashoptions_free(n>>>0,1));class Za{static __wrap(e){e>>>=0;const t=Object.create(Za.prototype);return t.__wbg_ptr=e,DT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,DT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getstateroothashoptions_free(e,0)}get maybe_block_id_as_string(){const e=a.__wbg_get_getstateroothashoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getstateroothashoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getstateroothashoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getstateroothashoptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getstateroothashoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getstateroothashoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getstateroothashoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getstateroothashoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const CT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_gettransactionoptions_free(n>>>0,1));class Ya{static __wrap(e){e>>>=0;const t=Object.create(Ya.prototype);return t.__wbg_ptr=e,CT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,CT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_gettransactionoptions_free(e,0)}get transaction_hash_as_string(){const e=a.__wbg_get_gettransactionoptions_transaction_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set transaction_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr,t,h)}get transaction_hash(){const e=a.__wbg_get_gettransactionoptions_transaction_hash(this.__wbg_ptr);return 0===e?void 0:Hi.__wrap(e)}set transaction_hash(e){let t=0;m(e)||(b(e,Hi),t=e.__destroy_into_raw()),a.__wbg_set_gettransactionoptions_transaction_hash(this.__wbg_ptr,t)}get finalized_approvals(){const e=a.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr);return 16777215===e?void 0:0!==e}set finalized_approvals(e){a.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr,m(e)?16777215:e?1:0)}get rpc_address(){const e=a.__wbg_get_gettransactionoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdeployoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const ST=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_querybalancedetailsoptions_free(n>>>0,1));class _d{static __wrap(e){e>>>=0;const t=Object.create(_d.prototype);return t.__wbg_ptr=e,ST.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ST.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_querybalancedetailsoptions_free(e,0)}get purse_identifier_as_string(){const e=a.__wbg_get_querybalancedetailsoptions_purse_identifier_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set purse_identifier_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_purse_identifier_as_string(this.__wbg_ptr,t,h)}get purse_identifier(){const e=a.__wbg_get_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr);return 0===e?void 0:zr.__wrap(e)}set purse_identifier(e){let t=0;m(e)||(b(e,zr),t=e.__destroy_into_raw()),a.__wbg_set_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr,t)}get global_state_identifier(){const e=a.__wbg_get_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr);return 0===e?void 0:Lt.__wrap(e)}set global_state_identifier(e){let t=0;m(e)||(b(e,Lt),t=e.__destroy_into_raw()),a.__wbg_set_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr,t)}get state_root_hash_as_string(){const e=a.__wbg_get_querybalancedetailsoptions_state_root_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set state_root_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get state_root_hash(){const e=a.__wbg_get_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}set state_root_hash(e){let t=0;m(e)||(b(e,Le),t=e.__destroy_into_raw()),a.__wbg_set_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr,t)}get maybe_block_id_as_string(){const e=a.__wbg_get_querybalancedetailsoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get rpc_address(){const e=a.__wbg_get_querybalancedetailsoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_querybalancedetailsoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_querybalancedetailsoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const IT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_querybalanceoptions_free(n>>>0,1));class fd{static __wrap(e){e>>>=0;const t=Object.create(fd.prototype);return t.__wbg_ptr=e,IT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,IT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_querybalanceoptions_free(e,0)}get purse_identifier_as_string(){const e=a.__wbg_get_querybalanceoptions_purse_identifier_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set purse_identifier_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalanceoptions_purse_identifier_as_string(this.__wbg_ptr,t,h)}get purse_identifier(){const e=a.__wbg_get_querybalanceoptions_purse_identifier(this.__wbg_ptr);return 0===e?void 0:zr.__wrap(e)}set purse_identifier(e){let t=0;m(e)||(b(e,zr),t=e.__destroy_into_raw()),a.__wbg_set_querybalanceoptions_purse_identifier(this.__wbg_ptr,t)}get global_state_identifier(){const e=a.__wbg_get_querybalanceoptions_global_state_identifier(this.__wbg_ptr);return 0===e?void 0:Lt.__wrap(e)}set global_state_identifier(e){let t=0;m(e)||(b(e,Lt),t=e.__destroy_into_raw()),a.__wbg_set_querybalanceoptions_global_state_identifier(this.__wbg_ptr,t)}get state_root_hash_as_string(){const e=a.__wbg_get_querybalanceoptions_state_root_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set state_root_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalanceoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get state_root_hash(){const e=a.__wbg_get_querybalanceoptions_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}set state_root_hash(e){let t=0;m(e)||(b(e,Le),t=e.__destroy_into_raw()),a.__wbg_set_querybalanceoptions_state_root_hash(this.__wbg_ptr,t)}get maybe_block_id_as_string(){const e=a.__wbg_get_querybalanceoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalanceoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get rpc_address(){const e=a.__wbg_get_querybalanceoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalanceoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_querybalanceoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_querybalanceoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const TT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_querycontractdictoptions_free(n>>>0,1));class pd{static __wrap(e){e>>>=0;const t=Object.create(pd.prototype);return t.__wbg_ptr=e,TT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,TT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_querycontractdictoptions_free(e,0)}get state_root_hash_as_string(){const e=a.__wbg_get_querycontractdictoptions_state_root_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set state_root_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get state_root_hash(){const e=a.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}set state_root_hash(e){let t=0;m(e)||(b(e,Le),t=e.__destroy_into_raw()),a.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,t)}get dictionary_item_params(){const e=a.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===e?void 0:Vi.__wrap(e)}set dictionary_item_params(e){let t=0;m(e)||(b(e,Vi),t=e.__destroy_into_raw()),a.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,t)}get dictionary_item_identifier(){const e=a.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===e?void 0:vt.__wrap(e)}set dictionary_item_identifier(e){let t=0;m(e)||(b(e,vt),t=e.__destroy_into_raw()),a.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_querycontractdictoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdictionaryitemoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const MT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_querycontractkeyoptions_free(n>>>0,1));class hd{static __wrap(e){e>>>=0;const t=Object.create(hd.prototype);return t.__wbg_ptr=e,MT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,MT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_querycontractkeyoptions_free(e,0)}get entity_identifier(){const e=a.__wbg_get_querycontractkeyoptions_entity_identifier(this.__wbg_ptr);return 0===e?void 0:Qn.__wrap(e)}set entity_identifier(e){let t=0;m(e)||(b(e,Qn),t=e.__destroy_into_raw()),a.__wbg_set_querycontractkeyoptions_entity_identifier(this.__wbg_ptr,t)}get entity_identifier_as_string(){const e=a.__wbg_get_querycontractkeyoptions_entity_identifier_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set entity_identifier_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_purse_identifier_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_querycontractkeyoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_querycontractkeyoptions_maybe_block_identifier(this.__wbg_ptr,t)}get maybe_block_id_as_string(){const e=a.__wbg_get_querycontractkeyoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get path_as_string(){const e=a.__wbg_get_querycontractkeyoptions_path_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set path_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get path(){const e=a.__wbg_get_querycontractkeyoptions_path(this.__wbg_ptr);return 0===e?void 0:ji.__wrap(e)}set path(e){let t=0;m(e)||(b(e,ji),t=e.__destroy_into_raw()),a.__wbg_set_querycontractkeyoptions_path(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_querycontractkeyoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querycontractkeyoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_querycontractkeyoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_querycontractkeyoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const AT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_queryglobalstateoptions_free(n>>>0,1));class gd{static __wrap(e){e>>>=0;const t=Object.create(gd.prototype);return t.__wbg_ptr=e,AT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,AT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_queryglobalstateoptions_free(e,0)}get global_state_identifier(){const e=a.__wbg_get_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr);return 0===e?void 0:Lt.__wrap(e)}set global_state_identifier(e){let t=0;m(e)||(b(e,Lt),t=e.__destroy_into_raw()),a.__wbg_set_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr,t)}get state_root_hash_as_string(){const e=a.__wbg_get_queryglobalstateoptions_state_root_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set state_root_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_queryglobalstateoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get state_root_hash(){const e=a.__wbg_get_queryglobalstateoptions_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}set state_root_hash(e){let t=0;m(e)||(b(e,Le),t=e.__destroy_into_raw()),a.__wbg_set_queryglobalstateoptions_state_root_hash(this.__wbg_ptr,t)}get maybe_block_id_as_string(){const e=a.__wbg_get_queryglobalstateoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_queryglobalstateoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get key_as_string(){const e=a.__wbg_get_queryglobalstateoptions_key_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set key_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_queryglobalstateoptions_key_as_string(this.__wbg_ptr,t,h)}get key(){const e=a.__wbg_get_queryglobalstateoptions_key(this.__wbg_ptr);return 0===e?void 0:Ve.__wrap(e)}set key(e){let t=0;m(e)||(b(e,Ve),t=e.__destroy_into_raw()),a.__wbg_set_queryglobalstateoptions_key(this.__wbg_ptr,t)}get path_as_string(){const e=a.__wbg_get_queryglobalstateoptions_path_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set path_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_queryglobalstateoptions_path_as_string(this.__wbg_ptr,t,h)}get path(){const e=a.__wbg_get_queryglobalstateoptions_path(this.__wbg_ptr);return 0===e?void 0:ji.__wrap(e)}set path(e){let t=0;m(e)||(b(e,ji),t=e.__destroy_into_raw()),a.__wbg_set_queryglobalstateoptions_path(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_queryglobalstateoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_queryglobalstateoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_queryglobalstateoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_queryglobalstateoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}function wm(){return(wm=S(function*(n,e){if("function"==typeof Response&&n instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return yield WebAssembly.instantiateStreaming(n,e)}catch(r){if("application/wasm"==n.headers.get("Content-Type"))throw r;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r)}const t=yield n.arrayBuffer();return yield WebAssembly.instantiate(t,e)}{const t=yield WebAssembly.instantiate(n,e);return t instanceof WebAssembly.Instance?{instance:t,module:n}:t}})).apply(this,arguments)}function NT(){const n={wbg:{}};return n.wbg.__wbindgen_string_new=function(e,t){return v(e,t)},n.wbg.__wbg_puttransactionresult_new=function(e){return rm.__wrap(e)},n.wbg.__wbg_geterasummaryresult_new=function(e){return Ug.__wrap(e)},n.wbg.__wbg_getnodestatusresult_new=function(e){return zg.__wrap(e)},n.wbg.__wbg_putdeployresult_new=function(e){return nm.__wrap(e)},n.wbg.__wbg_getVersion_821280958b37ff1f=function(){return ue(function(e){return e.getVersion()},arguments)},n.wbg.__wbindgen_error_new=function(e,t){return new Error(v(e,t))},n.wbg.__wbindgen_string_get=function(e,t){const i="string"==typeof t?t:void 0;var o=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;Hr().setInt32(e+4,s,!0),Hr().setInt32(e+0,o,!0)},n.wbg.__wbg_getaddressableentityresult_new=function(e){return Rg.__wrap(e)},n.wbg.__wbg_getdeployresult_new=function(e){return jg.__wrap(e)},n.wbg.__wbg_speculativeexectxnresult_new=function(e){return cm.__wrap(e)},n.wbg.__wbg_getchainspecresult_new=function(e){return Vg.__wrap(e)},n.wbg.__wbg_speculativeexecresult_new=function(e){return am.__wrap(e)},n.wbg.__wbg_getaccountresult_new=function(e){return Fg.__wrap(e)},n.wbg.__wbg_getvalidatorchangesresult_new=function(e){return Wg.__wrap(e)},n.wbg.__wbg_listrpcsresult_new=function(e){return Yg.__wrap(e)},n.wbg.__wbg_getauctioninforesult_new=function(e){return xg.__wrap(e)},n.wbg.__wbg_geterainforesult_new=function(e){return Hg.__wrap(e)},n.wbg.__wbg_getpeersresult_new=function(e){return $g.__wrap(e)},n.wbg.__wbg_deploy_new=function(e){return ae.__wrap(e)},n.wbg.__wbg_getblockresult_new=function(e){return Pg.__wrap(e)},n.wbg.__wbg_gettransactionresult_new=function(e){return Gg.__wrap(e)},n.wbg.__wbg_isConnected_f84ffbccb9898623=function(){return ue(function(e){return e.isConnected()},arguments)},n.wbg.__wbindgen_boolean_get=function(e){return"boolean"==typeof e?e?1:0:2},n.wbg.__wbg_queryglobalstateresult_new=function(e){return sm.__wrap(e)},n.wbg.__wbg_disconnectFromSite_2d2501f4e00e57c8=function(){return ue(function(e){return e.disconnectFromSite()},arguments)},n.wbg.__wbg_requestSwitchAccount_0e44115ee2041c5e=function(){return ue(function(e){return e.requestSwitchAccount()},arguments)},n.wbg.__wbg_getdictionaryitemresult_new=function(e){return Bg.__wrap(e)},n.wbg.__wbg_getbalanceresult_new=function(e){return Og.__wrap(e)},n.wbg.__wbg_querybalancedetailsresult_new=function(e){return im.__wrap(e)},n.wbg.__wbg_querybalanceresult_new=function(e){return om.__wrap(e)},n.wbg.__wbg_getstateroothashresult_new=function(e){return qg.__wrap(e)},n.wbg.__wbg_getblocktransfersresult_new=function(e){return Lg.__wrap(e)},n.wbg.__wbg_transaction_new=function(e){return de.__wrap(e)},n.wbg.__wbg_signMessage_c2bf40612e99c084=function(){return ue(function(e,t,r,i,o){return e.signMessage(v(t,r),v(i,o))},arguments)},n.wbg.__wbg_requestConnection_df909ec1fae47c86=function(){return ue(function(e){return e.requestConnection()},arguments)},n.wbg.__wbg_getActivePublicKey_7cd2af2b4a2b810f=function(){return ue(function(e){return e.getActivePublicKey()},arguments)},n.wbg.__wbindgen_cb_drop=function(e){const t=e.original;return 1==t.cnt--&&(t.a=0,!0)},n.wbg.__wbg_messages_new=function(e){return Va.__wrap(e)},n.wbg.__wbindgen_is_undefined=function(e){return void 0===e},n.wbg.__wbg_error_d52bf4e1868fa715=function(e,t){console.error(v(e,t))},n.wbg.__wbg_log_5199e4d2d51afa95=function(e,t){console.log(v(e,t))},n.wbg.__wbindgen_jsval_eq=function(e,t){return e===t},n.wbg.__wbg_CasperWalletProvider_e342cf6a96cfbb6c="function"==typeof CasperWalletProvider?CasperWalletProvider:pg("CasperWalletProvider"),n.wbg.__wbg_sign_5740ada8ba2ef8c3=function(){return ue(function(e,t,r,i,o){return e.sign(v(t,r),v(i,o))},arguments)},n.wbg.__wbg_messages_unwrap=function(e){return Va.__unwrap(e)},n.wbg.__wbg_subscription_unwrap=function(e){return lm.__unwrap(e)},n.wbg.__wbindgen_is_null=function(e){return null===e},n.wbg.__wbg_fetch_f8d735ba6fe1b719="function"==typeof fetch?fetch:pg("fetch"),n.wbg.__wbg_getReader_584431a478f1339c=function(){return ue(function(e){return e.getReader()},arguments)},n.wbg.__wbg_done_510de141aaf69a99=function(e){return e.done},n.wbg.__wbg_value_3ef4965e9c7085be=function(e){return e.value},n.wbg.__wbg_queueMicrotask_848aa4969108a57e=function(e){return e.queueMicrotask},n.wbg.__wbindgen_is_function=function(e){return"function"==typeof e},n.wbg.__wbg_queueMicrotask_c5419c06eab41e73="function"==typeof queueMicrotask?queueMicrotask:pg("queueMicrotask"),n.wbg.__wbg_setbody_aa8b691bec428bf4=function(e,t){e.body=t},n.wbg.__wbg_setcredentials_a4e661320cdb9738=function(e,t){e.credentials=F$[t]},n.wbg.__wbg_setheaders_f5205d36e423a544=function(e,t){e.headers=t},n.wbg.__wbg_setmethod_ce2da76000b02f6a=function(e,t,r){e.method=v(t,r)},n.wbg.__wbg_setmode_4919fd636102c586=function(e,t){e.mode=R$[t]},n.wbg.__wbg_setsignal_812ccb8269a7fd90=function(e,t){e.signal=t},n.wbg.__wbg_signal_9acfcec9e7dffc22=function(e){return e.signal},n.wbg.__wbg_new_75169ae5a9683c55=function(){return ue(function(){return new AbortController},arguments)},n.wbg.__wbg_abort_c57daab47a6c1215=function(e){e.abort()},n.wbg.__wbg_fetch_1fdc4448ed9eec00=function(e,t){return e.fetch(t)},n.wbg.__wbg_close_cfd08d9cf9f36856=function(){return ue(function(e){e.close()},arguments)},n.wbg.__wbg_enqueue_e693a6fb4f3261c1=function(){return ue(function(e,t){e.enqueue(t)},arguments)},n.wbg.__wbg_newwithstrandinit_4b92c89af0a8e383=function(){return ue(function(e,t,r){return new Request(v(e,t),r)},arguments)},n.wbg.__wbg_new_a9ae04a5200606a5=function(){return ue(function(){return new Headers},arguments)},n.wbg.__wbg_append_8b3e7f74a47ea7d5=function(){return ue(function(e,t,r,i,o){e.append(v(t,r),v(i,o))},arguments)},n.wbg.__wbg_byobRequest_86ac467c94924d3c=function(e){const t=e.byobRequest;return m(t)?0:Pi(t)},n.wbg.__wbg_close_7cda9dd901230214=function(){return ue(function(e){e.close()},arguments)},n.wbg.__wbg_read_08d62388e7870059=function(e){return e.read()},n.wbg.__wbg_releaseLock_32c310d7be334e1c=function(e){e.releaseLock()},n.wbg.__wbg_cancel_2a3c2f3c115ac7e0=function(e){return e.cancel()},n.wbg.__wbg_instanceof_Response_3c0e210a57ff751d=function(e){let t;try{t=e instanceof Response}catch{t=!1}return t},n.wbg.__wbg_url_58af972663531d16=function(e,t){const i=g(t.url,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h;Hr().setInt32(e+4,o,!0),Hr().setInt32(e+0,i,!0)},n.wbg.__wbg_status_5f4e900d22140a18=function(e){return e.status},n.wbg.__wbg_headers_1b9bf90c73fae600=function(e){return e.headers},n.wbg.__wbg_body_06c4eb578a55c1d4=function(e){const t=e.body;return m(t)?0:Pi(t)},n.wbg.__wbg_arrayBuffer_144729e09879650e=function(){return ue(function(e){return e.arrayBuffer()},arguments)},n.wbg.__wbg_view_de0e81c5c00d2129=function(e){const t=e.view;return m(t)?0:Pi(t)},n.wbg.__wbg_respond_ffb6928cd9b79c32=function(){return ue(function(e,t){e.respond(t>>>0)},arguments)},n.wbg.__wbg_crypto_1d1f22824a6a080c=function(e){return e.crypto},n.wbg.__wbindgen_is_object=function(e){return"object"==typeof e&&null!==e},n.wbg.__wbg_process_4a72847cc503995b=function(e){return e.process},n.wbg.__wbg_versions_f686565e586dd935=function(e){return e.versions},n.wbg.__wbg_node_104a2ff8d6ea03a2=function(e){return e.node},n.wbg.__wbindgen_is_string=function(e){return"string"==typeof e},n.wbg.__wbg_require_cca90b1a94a0255b=function(){return ue(function(){return module.require},arguments)},n.wbg.__wbg_msCrypto_eb05e62b530a1508=function(e){return e.msCrypto},n.wbg.__wbg_randomFillSync_5c9c955aa56b6049=function(){return ue(function(e,t){e.randomFillSync(t)},arguments)},n.wbg.__wbg_getRandomValues_3aa56aa6edec874c=function(){return ue(function(e,t){e.getRandomValues(t)},arguments)},n.wbg.__wbg_get_5419cf6b954aa11d=function(e,t){return e[t>>>0]},n.wbg.__wbg_length_f217bbbf7e8e4df4=function(e){return e.length},n.wbg.__wbg_new_034f913e7636e987=function(){return new Array},n.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43=function(e,t){return new Function(v(e,t))},n.wbg.__wbg_next_13b477da1eaa3897=function(e){return e.next},n.wbg.__wbg_next_b06e115d1b01e10b=function(){return ue(function(e){return e.next()},arguments)},n.wbg.__wbg_done_983b5ffcaec8c583=function(e){return e.done},n.wbg.__wbg_value_2ab8a198c834c26a=function(e){return e.value},n.wbg.__wbg_iterator_695d699a44d6234c=function(){return Symbol.iterator},n.wbg.__wbg_get_ef828680c64da212=function(){return ue(function(e,t){return Reflect.get(e,t)},arguments)},n.wbg.__wbg_call_a9ef466721e824f2=function(){return ue(function(e,t){return e.call(t)},arguments)},n.wbg.__wbg_new_e69b5f66fda8f13c=function(){return new Object},n.wbg.__wbg_self_bf91bf94d9e04084=function(){return ue(function(){return self.self},arguments)},n.wbg.__wbg_window_52dd9f07d03fd5f8=function(){return ue(function(){return window.window},arguments)},n.wbg.__wbg_globalThis_05c129bf37fcf1be=function(){return ue(function(){return globalThis.globalThis},arguments)},n.wbg.__wbg_global_3eca19bb09e9c484=function(){return ue(function(){return global.global},arguments)},n.wbg.__wbg_push_36cf4d81d7da33d1=function(e,t){return e.push(t)},n.wbg.__wbg_new_70a2f23d1565c04c=function(e,t){return new Error(v(e,t))},n.wbg.__wbg_apply_c37b42ff44b0469d=function(){return ue(function(e,t,r){return e.apply(t,r)},arguments)},n.wbg.__wbg_call_3bfa248576352471=function(){return ue(function(e,t,r){return e.call(t,r)},arguments)},n.wbg.__wbg_getTime_41225036a0393d63=function(e){return e.getTime()},n.wbg.__wbg_new0_218ada33b570be35=function(){return new Date},n.wbg.__wbg_instanceof_Object_4bbac482eda9b711=function(e){let t;try{t=e instanceof Object}catch{t=!1}return t},n.wbg.__wbg_new_1073970097e5a420=function(e,t){try{var r={a:e,b:t};return new Promise((s,c)=>{const l=r.a;r.a=0;try{return function k$(n,e,t,r){a.closure1570_externref_shim(n,e,t,r)}(l,r.b,s,c)}finally{r.a=l}})}finally{r.a=r.b=0}},n.wbg.__wbg_resolve_0aad7c1484731c99=function(e){return Promise.resolve(e)},n.wbg.__wbg_catch_8097da4375a5dd1b=function(e,t){return e.catch(t)},n.wbg.__wbg_then_748f75edfb032440=function(e,t){return e.then(t)},n.wbg.__wbg_then_4866a7d9f55d8f3e=function(e,t,r){return e.then(t,r)},n.wbg.__wbg_buffer_ccaed51a635d8a2d=function(e){return e.buffer},n.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730=function(e,t,r){return new Uint8Array(e,t>>>0,r>>>0)},n.wbg.__wbg_new_fec2611eb9180f95=function(e){return new Uint8Array(e)},n.wbg.__wbg_set_ec2fcf81bc573fd9=function(e,t,r){e.set(t,r>>>0)},n.wbg.__wbg_length_9254c4bd3b9f23c4=function(e){return e.length},n.wbg.__wbg_newwithlength_76462a666eca145f=function(e){return new Uint8Array(e>>>0)},n.wbg.__wbg_buffer_95102df5554646dc=function(e){return e.buffer},n.wbg.__wbg_subarray_975a06f9dbd16995=function(e,t,r){return e.subarray(t>>>0,r>>>0)},n.wbg.__wbg_byteLength_5d623ba3d92a3a9c=function(e){return e.byteLength},n.wbg.__wbg_byteOffset_ec0928143c619cd7=function(e){return e.byteOffset},n.wbg.__wbg_getindex_146612fa21bd6845=function(e,t){return e[t>>>0]},n.wbg.__wbg_parse_51ee5409072379d3=function(){return ue(function(e,t){return JSON.parse(v(e,t))},arguments)},n.wbg.__wbg_stringify_eead5648c09faaf8=function(){return ue(function(e){return JSON.stringify(e)},arguments)},n.wbg.__wbg_has_bd717f25f195f23d=function(){return ue(function(e,t){return Reflect.has(e,t)},arguments)},n.wbg.__wbindgen_debug_string=function(e,t){const i=g(fg(t),a.__wbindgen_malloc,a.__wbindgen_realloc),o=h;Hr().setInt32(e+4,o,!0),Hr().setInt32(e+0,i,!0)},n.wbg.__wbindgen_throw=function(e,t){throw new Error(v(e,t))},n.wbg.__wbindgen_memory=function(){return a.memory},n.wbg.__wbindgen_closure_wrapper5641=function(e,t,r){return wI(e,t,1011,S$)},n.wbg.__wbindgen_closure_wrapper5694=function(e,t,r){return wI(e,t,1025,I$)},n.wbg.__wbindgen_init_externref_table=function(){const e=a.__wbindgen_export_2,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},n}function FT(n){return bm.apply(this,arguments)}function bm(){return bm=S(function*(n){if(void 0!==a)return a;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?({module_or_path:n}=n):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof n>"u"&&(n=new URL("casper_rust_wasm_sdk_bg.wasm","file:///opt2/casper/rustSDK/pkg/casper_rust_wasm_sdk.js"));const e=NT();("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n));const{instance:t,module:r}=yield function z$(n,e){return wm.apply(this,arguments)}(yield n,e);return function kT(n,e){return a=n.exports,FT.__wbindgen_wasm_module=e,Oi=null,xa=null,a.__wbindgen_start(),a}(t,r)}),bm.apply(this,arguments)}const $$=FT,Qa=new P("SDK"),RT=new P("wasm_asset_path"),xT=new P("rpc_address"),OT=new P("verbosity"),W$=function G$(n,e){const t={value:void 0};return[{provide:KC,useFactory:(r,i,o)=>S(function*(){return t.value=yield e({wasm_asset_path:r,rpc_address:i,verbosity:o})}),multi:!0,deps:[RT,xT,OT]},{provide:n,useFactory:()=>{if(!L(gu).done)throw new Error(`Cannot inject ${n} until bootstrap is complete.`);return t.value}}]}(Qa,function(){var n=S(function*(e){return(yield $$(e.wasm_asset_path))&&new H$(e.rpc_address,e.verbosity)});return function(t){return n.apply(this,arguments)}}());let J$=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({providers:W$,imports:[Ye]})}}return n})();const wr=new P("EnvironmentConfig"),vm=new P("EnvironmentConfig"),PT=["deploy","transfer","put_deploy","speculative_deploy","speculative_transfer","speculative_exec_deploy","sign_deploy","call_entrypoint_deploy","install"],K$=["make_deploy","make_transfer",...PT],Fn={wasm_asset_path:"assets/casper_rust_wasm_sdk_bg.wasm",default_action:"get_node_status",verbosity:Qu.High,minimum_transfer:"2500000000",TTL:"30m",standard_payment_amount:"100000000",default_pricing_mode:mr.Fixed,default_gas_price_tolerance:"1",default_additional_computation_factor:"0",default_is_install_upgrade:!0,action_needs_secret_key:PT,action_needs_public_key:K$,networks:{"node-launcher":{rpc_address:"http://localhost:7777",stream_address:"http://localhost:9999/events/main",chain_name:"casper-net-1"},ntcl:{rpc_address:"http://localhost:11101",stream_address:"http://localhost:18101/events/main",chain_name:"casper-net-1"},integration:{rpc_address:"https://rpc.integration.casperlabs.io",stream_address:"https://events.integration.casperlabs.io/events/main",chain_name:"integration-test"},testnet:{rpc_address:"https://rpc.testnet.casperlabs.io",stream_address:"https://events.testnet.casperlabs.io/events/main",chain_name:"casper-test"},mainnet:{rpc_address:"https://rpc.mainnet.casperlabs.io",stream_address:"https://events.mainnet.casperlabs.io/events/main",chain_name:"casper"},custom:{rpc_address:"http://3.136.227.9:7777",stream_address:"http://3.136.227.9:9999/events/main",chain_name:"casper-test"},dev:{rpc_address:"http://localhost:4200",stream_address:"http://localhost:4200/events/main",chain_name:"casper-net-1"}},localhost:"localhost",app_port:"4200",default_port:"7777",default_protocol:"http://"},Em={production:!0,default_network:"integration",localhost_to_gateway:!1},{isArray:Z$}=Array,{getPrototypeOf:Y$,prototype:Q$,keys:X$}=Object;const{isArray:n8}=Array;function o8(n,e){return n.reduce((t,r,i)=>(t[r]=e[i],t),{})}function s8(...n){const e=function AH(n){return He(kh(n))?n.pop():void 0}(n),{args:t,keys:r}=function e8(n){if(1===n.length){const e=n[0];if(Z$(e))return{args:e,keys:null};if(function t8(n){return n&&"object"==typeof n&&Y$(n)===Q$}(e)){const t=X$(e);return{args:t.map(r=>e[r]),keys:t}}}return{args:n,keys:null}}(n),i=new Ht(o=>{const{length:s}=t;if(!s)return void o.complete();const c=new Array(s);let l=s,u=s;for(let d=0;d{_||(_=!0,u--),c[d]=f},()=>l--,void 0,()=>{(!l||!_)&&(u||o.next(r?o8(r,c):c),o.complete())}))}});return e?i.pipe(function i8(n){return Er(e=>function r8(n,e){return n8(e)?n(...e):n(e)}(n,e))}(e)):i}let LT=(()=>{class n{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static{this.\u0275fac=function(r){return new(r||n)(I(wi),I(dn))}}static{this.\u0275dir=X({type:n})}}return n})(),Ui=(()=>{class n extends LT{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ht(n)))(i||n)}})()}static{this.\u0275dir=X({type:n,features:[ve]})}}return n})();const tr=new P(""),a8={provide:tr,useExisting:Se(()=>Dm),multi:!0};let Dm=(()=>{class n extends Ui{writeValue(t){this.setProperty("checked",t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ht(n)))(i||n)}})()}static{this.\u0275dir=X({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){1&r&&ee("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},features:[Oe([a8]),ve]})}}return n})();const c8={provide:tr,useExisting:Se(()=>Xa),multi:!0},u8=new P("");let Xa=(()=>{class n extends LT{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function l8(){const n=Ia()?Ia().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static{this.\u0275fac=function(r){return new(r||n)(I(wi),I(dn),I(u8,8))}}static{this.\u0275dir=X({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){1&r&&ee("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Oe([c8]),ve]})}}return n})();function $r(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function VT(n){return null!=n&&"number"==typeof n.length}const Et=new P(""),qr=new P(""),d8=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class _8{static min(e){return function jT(n){return e=>{if($r(e.value)||$r(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t{if($r(e.value)||$r(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}(e)}static required(e){return function HT(n){return $r(n.value)?{required:!0}:null}(e)}static requiredTrue(e){return function UT(n){return!0===n.value?null:{required:!0}}(e)}static email(e){return function zT(n){return $r(n.value)||d8.test(n.value)?null:{email:!0}}(e)}static minLength(e){return function $T(n){return e=>$r(e.value)||!VT(e.value)?null:e.value.lengthVT(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}function GT(n){if(!n)return md;let e,t;return"string"==typeof n?(t="","^"!==n.charAt(0)&&(t+="^"),t+=n,"$"!==n.charAt(n.length-1)&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),r=>{if($r(r.value))return null;const i=r.value;return e.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}function md(n){return null}function WT(n){return null!=n}function JT(n){return hu(n)?Ph(n):n}function KT(n){let e={};return n.forEach(t=>{e=null!=t?{...e,...t}:e}),0===Object.keys(e).length?null:e}function ZT(n,e){return e.map(t=>t(n))}function YT(n){return n.map(e=>function f8(n){return!n.validate}(e)?e:t=>e.validate(t))}function QT(n){if(!n)return null;const e=n.filter(WT);return 0==e.length?null:function(t){return KT(ZT(t,e))}}function Cm(n){return null!=n?QT(YT(n)):null}function XT(n){if(!n)return null;const e=n.filter(WT);return 0==e.length?null:function(t){return s8(ZT(t,e).map(JT)).pipe(Er(KT))}}function Sm(n){return null!=n?XT(YT(n)):null}function eM(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function tM(n){return n._rawValidators}function nM(n){return n._rawAsyncValidators}function Im(n){return n?Array.isArray(n)?n:[n]:[]}function yd(n,e){return Array.isArray(n)?n.includes(e):n===e}function rM(n,e){const t=Im(e);return Im(n).forEach(i=>{yd(t,i)||t.push(i)}),t}function iM(n,e){return Im(e).filter(t=>!yd(n,t))}class oM{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Cm(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Sm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class Vt extends oM{get formDirective(){return null}get path(){return null}}class Gr extends oM{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class sM{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let wd=(()=>{class n extends sM{constructor(t){super(t)}static{this.\u0275fac=function(r){return new(r||n)(I(Gr,2))}}static{this.\u0275dir=X({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&tu("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[ve]})}}return n})(),ec=(()=>{class n extends sM{constructor(t){super(t)}static{this.\u0275fac=function(r){return new(r||n)(I(Vt,10))}}static{this.\u0275dir=X({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&tu("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[ve]})}}return n})();const tc="VALID",vd="INVALID",ts="PENDING",nc="DISABLED";class ns{}class cM extends ns{constructor(e,t){super(),this.value=e,this.source=t}}class Am extends ns{constructor(e,t){super(),this.pristine=e,this.source=t}}class Nm extends ns{constructor(e,t){super(),this.touched=e,this.source=t}}class Ed extends ns{constructor(e,t){super(),this.status=e,this.source=t}}class y8 extends ns{constructor(e){super(),this.source=e}}class w8 extends ns{constructor(e){super(),this.source=e}}function km(n){return(Dd(n)?n.validators:n)||null}function Fm(n,e){return(Dd(e)?e.asyncValidators:n)||null}function Dd(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function lM(n,e,t){const r=n.controls;if(!(e?Object.keys(r):r).length)throw new M(1e3,"");if(!r[t])throw new M(1001,"")}function uM(n,e,t){n._forEachChild((r,i)=>{if(void 0===t[i])throw new M(1002,"")})}class Cd{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Sa(()=>this.statusReactive()),this.statusReactive=So(void 0),this._pristine=Sa(()=>this.pristineReactive()),this.pristineReactive=So(!0),this._touched=Sa(()=>this.touchedReactive()),this.touchedReactive=So(!1),this._events=new Qr,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Zn(this.statusReactive)}set status(e){Zn(()=>this.statusReactive.set(e))}get valid(){return this.status===tc}get invalid(){return this.status===vd}get pending(){return this.status==ts}get disabled(){return this.status===nc}get enabled(){return this.status!==nc}get pristine(){return Zn(this.pristineReactive)}set pristine(e){Zn(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Zn(this.touchedReactive)}set touched(e){Zn(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(rM(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(rM(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(iM(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(iM(e,this._rawAsyncValidators))}hasValidator(e){return yd(this._rawValidators,e)}hasAsyncValidator(e){return yd(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){const t=!1===this.touched;this.touched=!0;const r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched({...e,sourceControl:r}),t&&!1!==e.emitEvent&&this._events.next(new Nm(!0,r))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:r})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r),t&&!1!==e.emitEvent&&this._events.next(new Nm(!1,r))}markAsDirty(e={}){const t=!0===this.pristine;this.pristine=!1;const r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty({...e,sourceControl:r}),t&&!1!==e.emitEvent&&this._events.next(new Am(!1,r))}markAsPristine(e={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),t&&!1!==e.emitEvent&&this._events.next(new Am(!0,r))}markAsPending(e={}){this.status=ts;const t=e.sourceControl??this;!1!==e.emitEvent&&(this._events.next(new Ed(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending({...e,sourceControl:t})}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=nc,this.errors=null,this._forEachChild(i=>{i.disable({...e,onlySelf:!0})}),this._updateValue();const r=e.sourceControl??this;!1!==e.emitEvent&&(this._events.next(new cM(this.value,r)),this._events.next(new Ed(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...e,skipPristineCheck:t},this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=tc,this._forEachChild(r=>{r.enable({...e,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors({...e,skipPristineCheck:t},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===tc||this.status===ts)&&this._runAsyncValidator(r,e.emitEvent)}const t=e.sourceControl??this;!1!==e.emitEvent&&(this._events.next(new cM(this.value,t)),this._events.next(new Ed(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity({...e,sourceControl:t})}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?nc:tc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=ts,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const r=JT(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent,this,t.shouldHaveEmitted)}get(e){let t=e;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(e,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,r){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||r)&&this._events.next(new Ed(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,r)}_initObservables(){this.valueChanges=new ke,this.statusChanges=new ke}_calculateStatus(){return this._allControlsDisabled()?nc:this.errors?vd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ts)?ts:this._anyControlsHaveStatus(vd)?vd:tc}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){const r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),i&&this._events.next(new Am(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new Nm(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Dd(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function b8(n){return Array.isArray(n)?Cm(n):n||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function v8(n){return Array.isArray(n)?Sm(n):n||null}(this._rawAsyncValidators)}}class rc extends Cd{constructor(e,t,r){super(km(t),Fm(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,r={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){uM(this,0,e),Object.keys(e).forEach(r=>{lM(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(r=>{const i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((r,i)=>{r.reset(e?e[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,r)=>(e[r]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&e(r,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&e(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(e,t){let r=e;return this._forEachChild((i,o)=>{r=t(r,i,o)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}class dM extends rc{}const rs=new P("CallSetDisabledState",{providedIn:"root",factory:()=>Sd}),Sd="always";function ic(n,e,t=Sd){Rm(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||"always"===t)&&e.valueAccessor.setDisabledState?.(n.disabled),function D8(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&_M(n,e)})}(n,e),function S8(n,e){const t=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function C8(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&_M(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function E8(n,e){if(e.valueAccessor.setDisabledState){const t=r=>{e.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function Td(n,e,t=!0){const r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),Ad(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Md(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Rm(n,e){const t=tM(n);null!==e.validator?n.setValidators(eM(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const r=nM(n);null!==e.asyncValidator?n.setAsyncValidators(eM(r,e.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();Md(e._rawValidators,i),Md(e._rawAsyncValidators,i)}function Ad(n,e){let t=!1;if(null!==n){if(null!==e.validator){const i=tM(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==e.validator);o.length!==i.length&&(t=!0,n.setValidators(o))}}if(null!==e.asyncValidator){const i=nM(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(t=!0,n.setAsyncValidators(o))}}}const r=()=>{};return Md(e._rawValidators,r),Md(e._rawAsyncValidators,r),t}function _M(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function hM(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function gM(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}Promise.resolve();const is=class extends Cd{constructor(e=null,t,r){super(km(t),Fm(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Dd(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=gM(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){hM(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){hM(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){gM(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};Promise.resolve();let vM=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275dir=X({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return n})();const Vm=new P(""),j8={provide:Vt,useExisting:Se(()=>zi)};let zi=(()=>{class n extends Vt{get submitted(){return Zn(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,i){super(),this.callSetDisabledState=i,this._submitted=Sa(()=>this._submittedReactive()),this._submittedReactive=So(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ke,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ad(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return ic(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Td(t.control||null,t,!1),function A8(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this._submittedReactive.set(!0),function pM(n,e){n._syncPendingControls(),e.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new y8(this.control)),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new w8(this.form))}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(Td(r||null,t),(n=>n instanceof is)(i)&&(ic(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function fM(n,e){Rm(n,e)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function I8(n,e){return Ad(n,e)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Rm(this.form,this),this._oldForm&&Ad(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(r){return new(r||n)(I(Et,10),I(qr,10),I(rs,8))}}static{this.\u0275dir=X({type:n,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&ee("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Oe([j8]),ve,sr]})}}return n})();const U8={provide:Gr,useExisting:Se(()=>sc)};let sc=(()=>{class n extends Gr{set isDisabled(t){}static{this._ngModelWarningSentOnce=!1}constructor(t,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new ke,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=function Pm(n,e){if(!e)return null;let t,r,i;return Array.isArray(e),e.forEach(o=>{o.constructor===Xa?t=o:function M8(n){return Object.getPrototypeOf(n.constructor)===Ui}(o)?r=o:i=o}),i||r||t||null}(0,o)}ngOnChanges(t){this._added||this._setUpControl(),function Om(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function Id(n,e){return[...e.path,n]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(r){return new(r||n)(I(Vt,13),I(Et,10),I(qr,10),I(tr,10),I(Vm,8))}}static{this.\u0275dir=X({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Oe([U8]),ve,sr]})}}return n})();const z8={provide:tr,useExisting:Se(()=>Nd),multi:!0};function TM(n,e){return null==n?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}let Nd=(()=>{class n extends Ui{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const i=TM(this._getOptionId(t),t);this.setProperty("value",i)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function $8(n){return n.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ht(n)))(i||n)}})()}static{this.\u0275dir=X({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,i){1&r&&ee("change",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Oe([z8]),ve]})}}return n})(),MM=(()=>{class n{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(TM(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(r){return new(r||n)(I(dn),I(wi),I(Nd,9))}}static{this.\u0275dir=X({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return n})();const q8={provide:tr,useExisting:Se(()=>Hm),multi:!0};function AM(n,e){return null==n?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}let Hm=(()=>{class n extends Ui{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let r;if(this.value=t,Array.isArray(t)){const i=t.map(o=>this._getOptionId(o));r=(o,s)=>{o._setSelected(i.indexOf(s.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const i=[],o=r.selectedOptions;if(void 0!==o){const s=o;for(let c=0;c{let t;return function(i){return(t||(t=ht(n)))(i||n)}})()}static{this.\u0275dir=X({type:n,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,i){1&r&&ee("change",function(s){return i.onChange(s.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Oe([q8]),ve]})}}return n})(),NM=(()=>{class n{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(AM(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(AM(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(r){return new(r||n)(I(dn),I(wi),I(Hm,9))}}static{this.\u0275dir=X({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return n})();let $i=(()=>{class n{constructor(){this._validator=md}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):md,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275dir=X({type:n,features:[sr]})}}return n})();const X8={provide:Et,useExisting:Se(()=>zm),multi:!0};let zm=(()=>{class n extends $i{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>function kM(n){return"number"==typeof n?n:parseInt(n,10)}(t),this.createValidator=t=>qT(t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ht(n)))(i||n)}})()}static{this.\u0275dir=X({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&At("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Oe([X8]),ve]})}}return n})();const e4={provide:Et,useExisting:Se(()=>$m),multi:!0};let $m=(()=>{class n extends $i{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=t=>t,this.createValidator=t=>GT(t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ht(n)))(i||n)}})()}static{this.\u0275dir=X({type:n,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&At("pattern",i._enabled?i.pattern:null)},inputs:{pattern:"pattern"},features:[Oe([e4]),ve]})}}return n})(),t4=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({})}}return n})();class VM extends Cd{constructor(e,t,r){super(km(t),Fm(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,r={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,t={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){uM(this,0,e),e.forEach((r,i)=>{lM(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,r)=>{e(t,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}}function jM(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let n4=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new n;return t.useNonNullable=!0,t}group(t,r=null){const i=this._reduceControls(t);let o={};return jM(r)?o=r:null!==r&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new rc(i,o)}record(t,r=null){const i=this._reduceControls(t);return new dM(i,r)}control(t,r,i){let o={};return this.useNonNullable?(jM(r)?o=r:(o.validators=r,o.asyncValidators=i),new is(t,{...o,nonNullable:!0})):new is(t,r,i)}array(t,r,i){const o=t.map(s=>this._createControl(s));return new VM(o,r,i)}_reduceControls(t){const r={};return Object.keys(t).forEach(i=>{r[i]=this._createControl(t[i])}),r}_createControl(t){return t instanceof is||t instanceof Cd?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),qi=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:Vm,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:rs,useValue:t.callSetDisabledState??Sd}]}}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({imports:[t4]})}}return n})();const ac={id:"stateRootHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"State Root Hash",name:"state_root_hash",controlName:"stateRootHash",placeholder:"0x",e2e:"stateRootHashElt"},cc={id:"paymentAmountElt",type:"tel",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Payment Amount",name:"payment_amount",controlName:"paymentAmount",placeholder:"",e2e:"paymentAmountElt",change:"motesToCSPR"},os={id:"TTLElt",type:"search",wrap_class:"col-lg-2 mb-2",class:"form-control",label:"TTL",name:"ttl",controlName:"TTL",e2e:"TTLElt",config_name:"TTL"},BM={id:"sessionHashElt",type:"search",wrap_class:"col-xl-6 mb-2",class:"form-control",label:"Smart Contract hash or Package hash",name:"session_hash",controlName:"sessionHash",placeholder:"Contract Hash or Package Hash",e2e:"sessionHashElt",disabled_when:["has_wasm","sessionName.value"]},HM={id:"entityHashElt",type:"search",wrap_class:"col-xl-6 mb-2",class:"form-control",label:"Entity hash or Package hash",name:"entity_hash",controlName:"entityHash",placeholder:"Entity Hash (entity-contract-0x) or Package Hash (package-0x)",e2e:"entityHashElt",disabled_when:["has_wasm","entityAlias.value"]},kd={id:"callPackageElt",type:"checkbox",wrap_class:"col-xl-1 col-lg-2 mb-2",class:"form-check-input mt-0",label:"Call Package",name:"call_package",controlName:"callPackage",placeholder:"",e2e:"callPackageElt",label_class:"form-label",disabled_when:["has_wasm"]},Fd={id:"versionElt",type:"search",wrap_class:"col-xl-3 mb-2",class:"form-control",label:"Version",name:"version",controlName:"version",placeholder:"1, empty last",e2e:"versionElt",disabled_when:["has_wasm"]},lc={id:"gasPriceToleranceElt",type:"search",wrap_class:"col-xl-2 mb-2",class:"form-control",label:"Gas Price Tolerance",name:"gas_price_tolerance",controlName:"gasPriceTolerance",placeholder:"1, empty default",e2e:"gasPriceToleranceElt"},qm={id:"additionalComputationFactorElt",type:"search",wrap_class:"col-xl-2 mb-2",class:"form-control",label:"Computation Factor",name:"additional_computation_factor",controlName:"additionalComputationFactor",placeholder:"0, empty default",e2e:"additionalComputationFactorElt",disabled_when:["fixedPricingMode"]},UM={id:"sessionNameElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Smart Contract name or Package name",name:"session_name",controlName:"sessionName",placeholder:"Counter",e2e:"sessionNameElt",disabled_when:["has_wasm","sessionHash.value"]},zM={id:"entityAliasElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Entity alias or Package alias",name:"entity_alias",controlName:"entityAlias",placeholder:"Counter",e2e:"entityAliasElt",disabled_when:["has_wasm","entityHash.value"]},Rd={id:"entryPointElt",type:"search",wrap_class:"col-lg-5 mb-2",class:"form-control",label:"Entry point",name:"entry_point",controlName:"entryPoint",placeholder:"counter_inc",e2e:"entryPointElt",disabled_when:["has_wasm"]},uc={id:"argsSimpleElt",type:"search",wrap_class:"col-lg-8 mb-2",class:"form-control",label:"Args",name:"args_simple",controlName:"argsSimple",placeholder:"foo:Bool='true', bar:String='value'",e2e:"argsSimpleElt",disabled_when:["argsJson.value"],storage_name:"args_simple"},dc={id:"argsJsonElt",type:"textarea",wrap_class:"col-lg-8 mb-2",class:"form-control",label:"Args Json",name:"args_json",controlName:"argsJson",placeholder:'Args as Json [{ "name": "foo", "type": "U256", "value": 1 }]',e2e:"argsJsonElt",disabled_when:["argsSimple.value"],storage_name:"args_json"},$M={id:"finalizedApprovalsElt",type:"checkbox",wrap_class:"col-lg-3 mt-3 mt-xl-0",class:"form-check-input mt-0",label:"Finalized approvals",name:"finalized_approvals",controlName:"finalizedApprovals",placeholder:"",e2e:"finalizedApprovalsElt",label_class:"form-label"},qM={id:"seedEntityHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Entity Hash",name:"seed_entity_hash",controlName:"seedEntityHash",placeholder:"entity-contract-0x",e2e:"seedEntityHashElt",enabled_when:["newFromEntityInfo"]},GM={id:"seedNameElt",type:"search",wrap_class:"col-lg-6 mb-2",class:"form-control",label:"Dictionary Name",name:"seed_name",controlName:"seedName",placeholder:"events",e2e:"seedNameElt",enabled_when:["newFromContractInfo","newFromAccountInfo","newFromEntityInfo"]},WM={id:"itemKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Item key",name:"item_key",controlName:"itemKey",placeholder:"Item key string",e2e:"itemKeyElt",enabled_when:["newFromContractInfo","newFromAccountInfo","newFromSeedUref","newFromEntityInfo"]},JM={id:"queryKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Key",name:"query_key",controlName:"queryKey",placeholder:"uref-0x || hash-0x || account-hash-0x",e2e:"queryKeyElt"},m4={...JM,label:"Contract Hash",placeholder:"hash-0x"},KM={id:"queryPathElt",type:"search",wrap_class:"col-lg-4 mb-2",class:"form-control",label:"Path",name:"query_path",controlName:"queryPath",placeholder:"counter/count",e2e:"queryPathElt"},Gm={id:"deployJsonElt",type:"textarea",wrap_class:"col-lg-12",class:"form-control",label:"Deploy as Json string",name:"deploy_json",controlName:"deployJson",placeholder:"Deploy as Json string",e2e:"deployJsonElt",state_name:["deploy_json"]},Wm={id:"transactionJsonElt",type:"textarea",wrap_class:"col-lg-12",class:"form-control",label:"Transaction as Json string",name:"transaction_json",controlName:"transactionJson",placeholder:"Transaction as Json string",e2e:"transactionJsonElt",state_name:["transaction_json"]},Jm={id:"selectPricingMode",type:"select",wrap_class:"mt-3 col-xl-3 mb-3",class:"form-select form-control form-control-sm",label:"Pricing mode",label_class:"input-group-text",name:"pricing_mode",controlName:"selectPricingMode",e2e:"selectPricingModeElt",options:[{value:mr.Classic.toString(),label:"Classic",default:Fn.default_pricing_mode===mr.Classic},{value:mr.Fixed.toString(),label:"Fixed",default:Fn.default_pricing_mode===mr.Fixed}]},Km={id:"selectTransactionCategory",type:"select",wrap_class:"mt-3 col-xl-3 mb-3",class:"form-select form-control form-control-sm",label:"Category",label_class:"input-group-text",name:"transaction_category",controlName:"selectTransactionCategory",e2e:"selectTransactionCategoryElt",options:[{value:"true",label:"Install & Upgrade",default:!0===Fn.default_is_install_upgrade},{value:"false",label:"Session",default:!1===Fn.default_is_install_upgrade}],enabled_when:["has_wasm"]},Rn=[[{input:{id:"blockIdentifierHeightElt",type:"search",wrap_class:"col-lg-3 col-xl-2 mb-2",class:"form-control",label:"Block Height",name:"block_identifier_height",controlName:"blockIdentifierHeight",placeholder:"Block Height",e2e:"blockIdentifierHeightElt"}},{input:{id:"blockIdentifierHashElt",type:"search",wrap_class:"col-lg-9 col-xl-8 mb-2",class:"form-control",label:"Block Hash",name:"block_identifier_hash",controlName:"blockIdentifierHash",placeholder:"Block Hash",e2e:"blockIdentifierHashElt"}}]],w4=[...Rn,[{input:{id:"accountIdentifierElt",type:"search",wrap_class:"col-lg-9",class:"form-control",label:"Account identifier",name:"account_identifier",controlName:"accountIdentifier",placeholder:"Public Key, AccountHash",e2e:"accountIdentifierElt",state_name:["account_hash","public_key"]},required:!0}]],b4=[...Rn,[{input:{id:"entityIdentifierElt",type:"search",wrap_class:"col-lg-9",class:"form-control",label:"Entity identifier",name:"entity_identifier",controlName:"entityIdentifier",placeholder:"Public Key, AccountHash, Entity",e2e:"entityIdentifierElt",state_name:["account_hash","public_key","entity"]},required:!0}]],v4=[[{input:ac}],[{input:{id:"purseUrefElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Purse Uref",name:"purse_uref",controlName:"purseUref",placeholder:"uref-0x",e2e:"purseUrefElt",state_name:["main_purse"]},required:!0}]],ZM=[...Rn,[{input:ac}],[{input:{id:"purseIdentifierElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Purse Identifier",name:"purse_identifier",controlName:"purseIdentifier",placeholder:"Public Key, AccountHash, Purse URef",e2e:"purseIdentifierElt",state_name:["main_purse","account_hash","public_key"]},required:!0}]],E4=[...Rn,[{input:ac}],[{input:JM,required:!0}],[{input:KM}]],D4=[[{input:ac}],[{input:qM,required:!0}],[{input:GM,required:!0}],[{input:WM,required:!0}]],C4=[...Rn,[{input:m4,required:!0}],[{input:KM,required:!0}]],S4=[[{input:ac}],[{select:{id:"selectDictIdentifierElt",type:"select",wrap_class:"mt-3 col-lg-5 mb-4",class:"form-select form-control form-control-sm",label:"Dictionary identifier",label_class:"input-group-text",name:"select_dict_identifier",controlName:"selectDictIdentifier",e2e:"selectDictIdentifierElt",state_name:["select_dict_identifier"],options:[{value:"newFromSeedUref",label:"From Dictionary Uref"},{value:"newFromContractInfo",label:"From Contract Info (depr.)"},{value:"newFromEntityInfo",label:"From Entity Info",default:!0},{value:"newFromAccountInfo",label:"From Account Info"},{value:"newFromDictionaryKey",label:"From Dictionary Key"}]}}],[{input:{id:"seedContractHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Contract Hash",name:"seed_contract_hash",controlName:"seedContractHash",placeholder:"hash-0x",e2e:"seedContractHashElt",enabled_when:["newFromContractInfo"]},required:!0}],[{input:qM,required:!0}],[{input:{id:"seedAccountHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Account Hash",name:"seed_account_hash",controlName:"seedAccountHash",placeholder:"account-hash-0x",e2e:"seedAccountHashElt",enabled_when:["newFromAccountInfo"]},required:!0}],[{input:{id:"seedUrefElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Uref",name:"seed_uref",controlName:"seedUref",placeholder:"uref-0x",e2e:"seedUrefElt",enabled_when:["newFromSeedUref"]},required:!0}],[{input:GM,required:!0}],[{input:WM,required:!0}],[{input:{id:"seedKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Key",name:"seed_key",controlName:"seedKey",placeholder:"dictionary-0x",e2e:"seedKeyElt",enabled_when:["newFromDictionaryKey"]},required:!0}]],I4=[[{input:{id:"deployHashElt",type:"search",wrap_class:"col-xl-7",class:"form-control",label:"Deploy Hash",name:"deploy_hash",controlName:"deployHash",placeholder:"0x",e2e:"deployHashElt"},required:!0},{input:$M}]],T4=[[{input:{id:"transactionHashElt",type:"search",wrap_class:"col-xl-7",class:"form-control",label:"Transaction Hash",name:"transaction_hash",controlName:"transactionHash",placeholder:"0x",e2e:"transactionHashElt"},required:!0},{input:$M}]],_c=[[{input:{id:"transferAmountElt",type:"tel",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Transfer Amount",name:"transfer_amount",controlName:"transferAmount",e2e:"transferAmountElt",config_name:"minimum_transfer",maxlength:"28",pattern:"\\d*",change:"motesToCSPR"},required:!0},{input:os}],[{input:{id:"targetAccountElt",type:"search",wrap_class:"col-xl-9",class:"form-control",label:"Target Account",name:"target_account",controlName:"targetAccount",placeholder:"Public Key, AccountHash, Purse URef",e2e:"targetAccountElt"},required:!0}]],YM=[...Rn,..._c],QM=[[{input:cc,required:!0},{input:os},{input:lc},{select:Jm},{input:qm}],[{wasm_button:!0},{select:Km}],[{input:uc}],[{textarea:dc}]],Zm=[[{input:cc,required:!0},{input:os},{input:lc}],[{wasm_button:!0},{select:Km}],[{input:BM,required:!0},{input:kd},{input:Fd}],[{input:UM,required:!0}],[{input:Rd,required:!0}],[{input:uc}],[{textarea:dc}]],Ym=[[{input:cc,required:!0},{input:os},{input:lc},{select:Jm},{input:qm}],[{wasm_button:!0},{select:Km}],[{input:HM,required:!0},{input:kd},{input:Fd}],[{input:zM,required:!0}],[{input:Rd,required:!0}],[{input:uc}],[{textarea:dc}]],M4=[...Zm],A4=[...Ym],xd=new Map([["call_entrypoint",[[{input:cc,required:!0},{input:os},{input:lc},{select:Jm},{input:qm}],[{input:HM},{input:kd},{input:Fd}],[{input:zM}],[{input:Rd}],[{input:uc}],[{textarea:dc}]]],["call_entrypoint_deploy",[[{input:cc,required:!0},{input:os},{input:lc}],[{input:BM},{input:kd},{input:Fd}],[{input:UM}],[{input:Rd}],[{input:uc}],[{textarea:dc}]]],["deploy",Zm],["get_account",w4],["get_balance",v4],["get_block",Rn],["get_block_transfers",Rn],["get_deploy",I4],["get_dictionary_item",S4],["get_era_info",Rn],["get_era_summary",Rn],["get_entity",b4],["get_state_root_hash",Rn],["get_transaction",T4],["install",QM],["install_deploy",QM],["make_deploy",Zm],["make_transaction",Ym],["make_transfer",_c],["make_transfer_transaction",_c],["put_deploy",[[{file_button:!0}],[{textarea:Gm,required:!0}]]],["put_transaction",[[{file_button:!0}],[{textarea:Wm,required:!0}]]],["query_balance",ZM],["query_balance_details",ZM],["query_contract_dict",D4],["query_contract_key",C4],["query_global_state",E4],["sign_deploy",[[{file_button:!0}],[{textarea:Gm,required:!0}]]],["sign_transaction",[[{file_button:!0}],[{textarea:Wm,required:!0}]]],["speculative_deploy",M4],["speculative_exec_deploy",[[{file_button:!0}],[{textarea:Gm,required:!0}]]],["speculative_exec",[[{file_button:!0}],[{textarea:Wm,required:!0}]]],["speculative_transaction",A4],["speculative_transfer",YM],["speculative_transfer_transaction",YM],["transaction",Ym],["transfer",_c],["transfer_transaction",_c]]);let xn=(()=>{class n{constructor(){this.state=new Qd({})}setState(t){const i={...this.state.getValue(),...t};this.state.next(i)}getState(){return this.state.asObservable()}getValue(){return this.state.getValue()}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),fc=(()=>{class n{constructor(t){this.document=t,this.prefix="casper-client",this.window=this.document.defaultView}setState(t){const i={...JSON.parse(this.window?.localStorage.getItem(this.prefix)||"{}"),...t};this.window?.localStorage.setItem(this.prefix,JSON.stringify(i))}get(t){return(JSON.parse(this.window?.localStorage.getItem(this.prefix)||"{}")||{})[t]}static{this.\u0275fac=function(r){return new(r||n)(H(fn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ss=(()=>{class n{constructor(t,r,i,o){this.config=t,this.formBuilder=r,this.stateService=i,this.storageService=o,this.stateService.getState().subscribe(s=>{this.has_wasm=!!s?.has_wasm,s?.select_dict_identifier&&(this.select_dict_identifier=s.select_dict_identifier),s?.action&&this.action!==s.action&&(s.action&&(this.action=s.action),this.initializeForm()),s&&(this.state=s),this.action&&this.updateForm()}),this.form=this.defaultForm}get defaultForm(){const t={};return xd.forEach(r=>{r.forEach(i=>{i.forEach(({input:o,textarea:s,select:c})=>{const l=o?.controlName||s?.controlName||c?.controlName||"";if(l&&(t[l]=new is(this.getDefaultOptionValue(c?.options))),c?.options&&"selectDictIdentifier"===l){const u=c?.options.find(d=>d.default)?.value||"";this.stateService.setState({select_dict_identifier:u})}})})}),this.formBuilder.group(t)}getDefaultOptionValue(t){const r=t&&t.find(i=>i.default);return r?r.value:null}initializeForm(){Object.values(this.form.controls).forEach(r=>{r.clearValidators(),r.markAsPristine(),r.disable()});const t=this.action&&xd.get(this.action);t&&t.forEach(r=>{r.forEach(({input:i,textarea:o,select:s,required:c})=>{if(!i&&!o&&!s)return;const u=this.form.get(i?.controlName||o?.controlName||s?.controlName||"");if(!u)return;const d=i?.state_name||o?.state_name||s?.state_name||[],_=d&&d.find(y=>this.state[y]),f=i?.storage_name||o?.storage_name||s?.storage_name||"";let p=_?this.state[_]:"";if(p=f?this.storageService.get(f):p,p)p&&u.setValue(p);else if(i?.config_name){const y=this.config[i?.config_name]||"";y&&u.setValue(y),y&&(i.placeholder_config_value=y)}u.enable(),c&&(i&&(i.required=!0),o&&(o.required=!0),u.setValidators([_8.required]))})})}updateForm(){console.log("updateForm");const t=this.action&&xd.get(this.action);if(!t)return;const r=[];t.forEach(i=>{i.forEach(({input:o,textarea:s,select:c})=>{const l=o?.controlName||s?.controlName||c?.controlName||"";if(!l)return;const u=this.form.get(l);if(u){if(s){const d=s?.state_name||[],_=d&&d.find(p=>this.state[p]),f=_?this.state[_]:"";if(f&&u.setValue(f),s.disabled_when){const p=u.value&&s.disabled_when?.find(E=>E.includes("value")),y=p&&p.split(".")[0],w=y&&this.form?.get(y);w&&(w.disable(),r.push(y)),r.includes(s.controlName)||u.enable()}}else if(c&&c.enabled_when)this.has_wasm&&c.enabled_when?.includes("has_wasm")?u.enable():u.disable();else if(o){const d=o?.state_name||[],_=d&&d.find(p=>this.state[p]),f=_?this.state[_]:"";if(f&&u.setValue(f),o.enabled_when)"get_dictionary_item"===this.action&&this.select_dict_identifier&&!o.enabled_when?.includes(this.select_dict_identifier)?u.disable():this.select_dict_identifier&&u.enable();else if(o.disabled_when){const p=u.value&&o.disabled_when?.find(C=>C.includes("value")),y=p&&p.split(".")[0],w=y&&this.form?.get(y);w&&(w.disable(),r.push(y)),this.has_wasm&&o?.disabled_when?.includes("has_wasm")?(u.reset(),u.disable()):r.includes(o.controlName)||u.enable();const E=mr[this.state.pricing_mode]===mr.Classic;o?.disabled_when?.includes("fixedPricingMode")&&E&&(u.reset(),u.disable())}}if(o||s){const d=o?.storage_name||s?.storage_name||"";d&&this.storageService.setState({[d]:u.value})}}})})}get formFields(){return xd}static{this.\u0275fac=function(r){return new(r||n)(H(wr),H(n4),H(xn),H(fc))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const V4=["template"],j4=(n,e)=>[n,e],B4=(n,e,t)=>[n,e,t];function H4(n,e){if(1&n&&(R(0,"span",10),ne(1),x()),2&n){let t;const r=V(2),i=r.inputField,o=r.parentForm,s=V();O(),yt("(",s.motesToCSPR(null==(t=o.get(i.controlName))?null:t.value)," CSPR)")}}function U4(n,e){if(1&n){const t=xe();nn(0,3),R(1,"input",11),ee("change",function(){_e(t);const i=V(2).inputField;return fe(V().onChange(i))}),x(),rn()}if(2&n){const t=V(2),r=t.inputField,i=t.parentForm,o=V();k("formGroup",i),O(),k("id",r.id)("type",r.type)("name",r.name)("maxlength",r.maxlength||"")("pattern",r.pattern||"")("formControlName",r.controlName)("placeholder",r.placeholder_config_value?"e.g. "+r.placeholder_config_value:r.placeholder||"")("ngClass",EC(10,B4,r.class||"form-control",o.isInvalid(r.controlName)?"is-invalid":"",o.isRequired(r)?"is-required":"")),At("e2e-id",r.e2e)}}function z4(n,e){if(1&n&&(R(0,"label",12),ne(1),x()),2&n){const t=V(2).inputField;k("for",t.id),O(),yt("e.g. ",t.placeholder,"")}}function $4(n,e){if(1&n&&(R(0,"label",12),ne(1),x()),2&n){const t=V(2).inputField;k("for",t.id),O(),yt("e.g. ",t.placeholder_config_value,"")}}function q4(n,e){if(1&n&&(R(0,"div",4)(1,"label",5),ne(2),ie(3,H4,2,1,"span",6),x(),R(4,"div",7),ie(5,U4,2,14,"ng-container",8)(6,z4,2,2,"label",9)(7,$4,2,2,"label",9),x()()),2&n){let t,r;const i=V(),o=i.inputField,s=i.parentForm,c=Ti(2);k("ngClass",o.wrap_class),O(),k("for",o.id)("ngClass",Go(10,j4,o.label_class||"",null!=(t=s.get(o.controlName))&&t.disabled?"disabled":"")),O(),ga("",o.label,"",o.required?" *":""," "),O(),k("ngIf",(null==o.change?null:o.change.includes("motesToCSPR"))&&(null==(r=s.get(o.controlName))?null:r.value)),O(2),k("ngIf","checkbox"!==o.type)("ngIfElse",c),O(),k("ngIf",o.placeholder),O(),k("ngIf",o.placeholder_config_value)}}function G4(n,e){if(1&n&&mt(0,"input",13),2&n){const t=V().inputField;k("id",t.id)("name",t.name)("formControlName",t.controlName),At("e2e-id",t.e2e)}}function W4(n,e){if(1&n&&ie(0,q4,8,13,"div",2)(1,G4,1,4,"ng-template",3,1,Ai),2&n){let t;const r=e.inputField,i=e.parentForm;k("ngIf",!(V().hidden_when_disabled&&null!=(t=i.get(r.controlName))&&t.disabled)),O(),k("formGroup",i)}}let XM=(()=>{class n{constructor(t){this.formService=t}onChange(t){this.parentForm?.get(t.controlName)&&t.disabled_when?.find(o=>o.includes("value"))&&this.formService.updateForm()}isInvalid(t){const r=this.parentForm?.get(t);return!(!r?.enabled||!r?.dirty||r?.value||r?.valid)}isRequired(t){const r=this.parentForm?.get(t.controlName);return!(!r?.enabled||r?.dirty||r?.value||!t.required)}motesToCSPR(t){if(t)return function M$(n){let e,t;try{const o=g(n,a.__wbindgen_malloc,a.__wbindgen_realloc),c=a.motesToCSPR(o,h);var r=c[0],i=c[1];if(c[3])throw r=0,i=0,F(c[2]);return e=r,t=i,v(r,i)}finally{a.__wbindgen_free(e,t,1)}}(t=this.parse_commas(t))}parse_commas(t){return t.replace(/[,.]/g,"")}static{this.\u0275fac=function(r){return new(r||n)(I(ss))}}static{this.\u0275cmp=_t({type:n,selectors:[["ui-input"]],viewQuery:function(r,i){if(1&r&&kt(V4,7),2&r){let o;Ft(o=Rt())&&(i.template=o.first)}},inputs:{inputField:"inputField",parentForm:"parentForm",hidden_when_disabled:"hidden_when_disabled"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],["checkboxContent",""],[3,"ngClass",4,"ngIf"],[3,"formGroup"],[3,"ngClass"],[3,"for","ngClass"],["class","fw-light small text-nowrap",4,"ngIf"],[1,"form-floating"],[3,"formGroup",4,"ngIf","ngIfElse"],[3,"for",4,"ngIf"],[1,"fw-light","small","text-nowrap"],[3,"change","id","type","name","maxlength","pattern","formControlName","placeholder","ngClass"],[3,"for"],["type","checkbox",3,"id","name","formControlName"]],template:function(r,i){1&r&&ie(0,W4,3,2,"ng-template",null,0,Ai)},dependencies:[Ye,gr,gn,qi,Xa,Dm,wd,ec,zm,$m,zi,sc],styles:["[_nghost-%COMP%]{display:none}label[_ngcontent-%COMP%]{max-width:100%}.form-floating[_ngcontent-%COMP%] > label[_ngcontent-%COMP%], label.disabled[_ngcontent-%COMP%]{color:#d3d3d3}"],changeDetection:0})}}return n})();const J4=["template"],eA=n=>[n];function K4(n,e){if(1&n&&(R(0,"option",7),ne(1),x()),2&n){const t=e.$implicit,r=V(2);th("value",t.value),k("selected",t.default||r.select_dict_identifier===t.value),O(),yt(" ",t.label," ")}}function Z4(n,e){if(1&n){const t=xe();R(0,"div",1)(1,"div",2)(2,"label",3),ne(3),x(),nn(4,4),R(5,"select",5),ee("change",function(i){return _e(t),fe(V().onChange(i))}),ie(6,K4,2,3,"option",6),x(),rn(),x()()}if(2&n){const t=e.inputField,r=e.parentForm;k("ngClass",t.wrap_class),O(2),k("for",t.id)("ngClass",Mn(11,eA,t.label_class||"")),O(),Mi(t.label),O(),k("formGroup",r),O(),k("id",t.id)("name",t.name)("ngClass",Mn(13,eA,t.class||"form-control"))("formControlName",t.controlName),At("e2e-id",t.e2e),O(),k("ngForOf",t.options)}}let tA=(()=>{class n{constructor(t,r,i){this.config=t,this.stateService=r,this.changeDetectorRef=i}ngAfterViewInit(){var t=this;return S(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{setTimeout(()=>{t.select_dict_identifier&&(this.select_dict_identifier=t.select_dict_identifier),this.changeDetectorRef.markForCheck()})})}onChange(t){const r=t.target?.value,i=t.target?.name;"select_dict_identifier"===i&&this.stateService.setState({select_dict_identifier:r}),"pricing_mode"===i&&this.stateService.setState({pricing_mode:mr[r].toString()})}static{this.\u0275fac=function(r){return new(r||n)(I(wr),I(xn),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["ui-select"]],viewQuery:function(r,i){if(1&r&&kt(J4,7),2&r){let o;Ft(o=Rt())&&(i.template=o.first)}},inputs:{inputField:"inputField",parentForm:"parentForm"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],[3,"ngClass"],[1,"input-group"],[3,"for","ngClass"],[3,"formGroup"],[3,"change","id","name","ngClass","formControlName"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(r,i){1&r&&ie(0,Z4,7,15,"ng-template",null,0,Ai)},dependencies:[Ye,gr,Ma,qi,MM,NM,Nd,wd,ec,zi,sc],styles:["[_nghost-%COMP%]{display:none}label[_ngcontent-%COMP%]{max-width:100%}[_ngcontent-%COMP%]:disabled{color:#d3d3d3}"],changeDetection:0})}}return n})();const Y4=["template"],Q4=(n,e)=>[n,e];function X4(n,e){if(1&n&&(R(0,"label",6),ne(1),x()),2&n){const t=V().inputField,r=V();k("for",t.id),O(),Mi(r.currentPlaceholder||t.placeholder)}}function e5(n,e){if(1&n){const t=xe();R(0,"div",1)(1,"div",2),nn(2,3),R(3,"textarea",4),ee("change",function(i){const o=_e(t).inputField;return fe(V().onChange(i,o))})("focus",function(i){return _e(t),fe(V().onFocus(i))})("blur",function(i){return _e(t),fe(V().onBlur(i))}),ne(4," "),x(),ie(5,X4,2,2,"label",5),rn(),x()()}if(2&n){const t=e.inputField,r=e.parentForm,i=V();k("ngClass",t.wrap_class),O(2),k("formGroup",r),O(),k("id",t.id)("name",t.name)("formControlName",t.controlName)("placeholder",i.currentPlaceholder||t.placeholder||"")("ngClass",Go(9,Q4,t.class||"form-control",i.isInvalid(t.controlName)?"is-invalid":"")),At("e2e-id",t.e2e),O(2),k("ngIf",t.placeholder)}}let nA=(()=>{class n{constructor(t){this.formService=t,this.update_deploy_json=new ke,this.update_transaction_json=new ke,this.jsonPattern=/\[\{.*?\}\]/g}ngOnInit(){this.originalPlaceholder=this.inputField.placeholder||""}ngAfterViewInit(){this.initializePlaceholder()}isInvalid(t){const r=this.parentForm?.get(t);return!!this.parentForm?.touched&&!!r?.invalid}onChange(t,r){const i=t.target;i.name.includes("deploy")?this.update_deploy_json.emit(i.value):i.name.includes("transaction")?this.update_transaction_json.emit(i.value):this.updateForm(r)}onFocus(t){this.currentPlaceholder=this.removeJsonParts(t.target.placeholder)}onBlur(t){t.target.value||(this.currentPlaceholder=this.originalPlaceholder)}updateForm(t){this.parentForm?.get(t.controlName)&&t.disabled_when?.find(o=>o.includes("value"))&&this.formService.updateForm()}removeJsonParts(t){return t.replace(this.jsonPattern,"").trim()}initializePlaceholder(){const t=this.parentForm.get(this.inputField.controlName);this.currentPlaceholder=t&&t.value?this.removeJsonParts(this.originalPlaceholder):this.originalPlaceholder}static{this.\u0275fac=function(r){return new(r||n)(I(ss))}}static{this.\u0275cmp=_t({type:n,selectors:[["ui-textarea"]],viewQuery:function(r,i){if(1&r&&kt(Y4,7),2&r){let o;Ft(o=Rt())&&(i.template=o.first)}},inputs:{inputField:"inputField",parentForm:"parentForm"},outputs:{update_deploy_json:"update_deploy_json",update_transaction_json:"update_transaction_json"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],[3,"ngClass"],[1,"form-floating","mt-3"],[3,"formGroup"],[3,"change","focus","blur","id","name","formControlName","placeholder","ngClass"],[3,"for",4,"ngIf"],[3,"for"]],template:function(r,i){1&r&&ie(0,e5,6,12,"ng-template",null,0,Ai)},dependencies:[Ye,gr,gn,qi,Xa,wd,ec,zi,sc],styles:["textarea[_ngcontent-%COMP%]{min-height:350px!important;white-space:pre-wrap}@media (max-width: 767px){textarea[_ngcontent-%COMP%]{min-height:200px!important}}.form-floating[_ngcontent-%COMP%] > label[_ngcontent-%COMP%], label.disabled[_ngcontent-%COMP%]{color:#d3d3d3}"],changeDetection:0})}}return n})();const t5=["wasmElt"],n5=["template"];function r5(n,e){if(1&n){const t=xe();R(0,"button",6),ee("click",function(){return _e(t),fe(V(2).onWasmClick())}),ne(1," Wasm Module Bytes "),x()}}function i5(n,e){if(1&n){const t=xe();R(0,"span",7),ee("click",function(){return _e(t),fe(V(2).resetWasmClick())}),ne(1),nl(),R(2,"svg",8),mt(3,"path",9),x()()}if(2&n){const t=V(2);O(),yt(" ",t.file_name," ")}}function o5(n,e){if(1&n){const t=xe();R(0,"div",2)(1,"input",3,1),ee("change",function(i){return _e(t),fe(V().onWasmSelected(i))}),x(),ie(3,r5,2,0,"button",4)(4,i5,4,1,"span",5),x()}if(2&n){const t=V();O(3),k("ngIf",!t.file_name),O(),k("ngIf",t.file_name)}}let rA=(()=>{class n{constructor(){this.select_wasm=new ke}onWasmSelected(t){var r=this;return S(function*(){r.file_name=r.wasmElt?.nativeElement.value.split("\\").pop();const i=t.target.files?.item(0),o=yield i?.arrayBuffer();r.wasm=o&&new Uint8Array(o),r.wasm?.buffer||r.resetWasmClick(),r.select_wasm.emit(r.wasm)})()}onWasmClick(){this.wasmElt.nativeElement.click()}resetWasmClick(){this.wasmElt.nativeElement.value="",this.wasm=void 0,this.file_name="",this.select_wasm.emit(void 0)}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-submit-wasm"]],viewQuery:function(r,i){if(1&r&&(kt(t5,5),kt(n5,7)),2&r){let o;Ft(o=Rt())&&(i.wasmElt=o.first),Ft(o=Rt())&&(i.template=o.first)}},outputs:{select_wasm:"select_wasm"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],["wasmElt",""],[1,"col-sm-2","mb-3","mt-3"],["name","wasm","type","file","id","wasmElt","accept",".wasm","e2e-id","wasmElt",1,"visually-hidden",3,"change"],["class","btn btn-secondary",3,"click",4,"ngIf"],["class","btn btn-light","e2e-id","wasmName",3,"click",4,"ngIf"],[1,"btn","btn-secondary",3,"click"],["e2e-id","wasmName",1,"btn","btn-light",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-6","h-6","ml-1","cursor-pointer","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"]],template:function(r,i){1&r&&ie(0,o5,5,2,"ng-template",null,0,Ai)},dependencies:[Ye,gn],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0})}}return n})(),pc=(()=>{class n{constructor(){this.error=new Qd("")}setError(t){this.error.getValue()!==t&&this.error.next(t)}getError(){return this.error.asObservable()}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const s5=["template"],a5=["deployFileElt"],c5=["transactionFileElt"];function l5(n,e){if(1&n){const t=xe();R(0,"div",4)(1,"input",5,1),ee("change",function(i){return _e(t),fe(V(2).onDeployFileSelected(i))}),x(),R(3,"button",6),ee("click",function(){return _e(t),fe(V(2).deployFileClick())}),ne(4," Load deploy file "),x()()}}function u5(n,e){if(1&n){const t=xe();R(0,"div",4)(1,"input",7,2),ee("change",function(i){return _e(t),fe(V(2).onTransactionFileSelected(i))}),x(),R(3,"button",6),ee("click",function(){return _e(t),fe(V(2).transactionFileClick())}),ne(4," Load transaction file "),x()()}}function d5(n,e){if(1&n&&ie(0,l5,5,0,"div",3)(1,u5,5,0,"div",3),2&n){const t=V();k("ngIf","deploy"===t.type),O(),k("ngIf","transaction"===t.type)}}let iA=(()=>{class n{constructor(t){this.errorService=t,this.select_deploy=new ke,this.select_transaction=new ke,this.type="deploy"}onDeployFileSelected(t){var r=this;return S(function*(){const i=t.target.files?.item(0);let o;if(r.deploy_json="",i){if(o=yield i.text(),!o.trim())return;o=o.trim();try{const s=JSON.parse(o);r.deploy_json=s}catch{const s="Error parsing deploy";console.error(s),r.errorService.setError(s)}}r.select_deploy.emit(r.deploy_json),r.deployFileElt.nativeElement.value=""})()}onTransactionFileSelected(t){var r=this;return S(function*(){const i=t.target.files?.item(0);let o;if(r.transaction_json="",i){if(o=yield i.text(),!o.trim())return;o=o.trim();try{const s=JSON.parse(o);r.transaction_json=s}catch{const s="Error parsing transaction";console.error(s),r.errorService.setError(s)}}r.select_transaction.emit(r.transaction_json),r.transactionFileElt.nativeElement.value=""})()}deployFileClick(){this.deployFileElt.nativeElement.click()}transactionFileClick(){this.transactionFileElt.nativeElement.click()}static{this.\u0275fac=function(r){return new(r||n)(I(pc))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-submit-file"]],viewQuery:function(r,i){if(1&r&&(kt(s5,7),kt(a5,5),kt(c5,5)),2&r){let o;Ft(o=Rt())&&(i.template=o.first),Ft(o=Rt())&&(i.deployFileElt=o.first),Ft(o=Rt())&&(i.transactionFileElt=o.first)}},inputs:{type:"type"},outputs:{select_deploy:"select_deploy",select_transaction:"select_transaction"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],["deployFileElt",""],["transactionFileElt",""],["class","col-sm-2 mt-2",4,"ngIf"],[1,"col-sm-2","mt-2"],["name","deploy_file","type","file","id","deployFileElt","accept",".json, .txt, .deploy","e2e-id","deployFileElt",1,"visually-hidden",3,"change"],[1,"btn","btn-secondary",3,"click"],["name","transaction_file","type","file","id","transactionFileElt","accept",".json, .txt, .deploy","e2e-id","transactionFileElt",1,"visually-hidden",3,"change"]],template:function(r,i){1&r&&ie(0,d5,2,2,"ng-template",null,0,Ai)},dependencies:[Ye,gn],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0})}}return n})();const Qm=(n,e)=>({parentForm:n,inputField:e});function _5(n,e){1&n&&Si(0)}function f5(n,e){if(1&n&&(nn(0),mt(1,"ui-input",7,0),ie(3,_5,1,0,"ng-container",8),rn()),2&n){const t=Ti(2),r=V().$implicit,i=V(3);O(),k("parentForm",i.form)("inputField",r.input)("hidden_when_disabled","get_dictionary_item"===i.action),O(2),k("ngTemplateOutlet",t.template)("ngTemplateOutletContext",Go(5,Qm,i.form,r.input))}}function p5(n,e){1&n&&Si(0)}function h5(n,e){if(1&n){const t=xe();nn(0),R(1,"ui-textarea",9,0),ee("update_deploy_json",function(i){return _e(t),fe(V(4).updateDeployJson(i))})("update_transaction_json",function(i){return _e(t),fe(V(4).updateTransactionJson(i))}),x(),ie(3,p5,1,0,"ng-container",8),rn()}if(2&n){const t=Ti(2),r=V().$implicit,i=V(3);O(),k("parentForm",i.form)("inputField",r.textarea),O(2),k("ngTemplateOutlet",t.template)("ngTemplateOutletContext",Go(4,Qm,i.form,r.textarea))}}function g5(n,e){1&n&&Si(0)}function m5(n,e){if(1&n&&(nn(0),mt(1,"ui-select",10,0),ie(3,g5,1,0,"ng-container",8),rn()),2&n){const t=Ti(2),r=V().$implicit,i=V(3);O(),k("parentForm",i.form)("inputField",r.select),O(2),k("ngTemplateOutlet",t.template)("ngTemplateOutletContext",Go(4,Qm,i.form,r.select))}}function y5(n,e){1&n&&Si(0)}function w5(n,e){if(1&n){const t=xe();nn(0),R(1,"comp-submit-wasm",11,1),ee("select_wasm",function(i){return _e(t),fe(V(4).onWasmSelected(i))}),x(),ie(3,y5,1,0,"ng-container",12),rn()}if(2&n){const t=Ti(2);O(3),k("ngTemplateOutlet",t.template)}}function b5(n,e){1&n&&Si(0)}function v5(n,e){if(1&n){const t=xe();nn(0),R(1,"comp-submit-file",13,1),ee("select_deploy",function(i){return _e(t),fe(V(4).onDeployFileSelected(i))})("select_transaction",function(i){return _e(t),fe(V(4).onTransactionFileSelected(i))}),x(),ie(3,b5,1,0,"ng-container",12),rn()}if(2&n){const t=Ti(2),r=V(4);O(),k("type",r.action.includes("transaction")?"transaction":"deploy"),O(2),k("ngTemplateOutlet",t.template)}}function E5(n,e){if(1&n&&(nn(0),ie(1,f5,4,8,"ng-container",6)(2,h5,4,7,"ng-container",6)(3,m5,4,7,"ng-container",6)(4,w5,4,1,"ng-container",6)(5,v5,4,2,"ng-container",6),rn()),2&n){const t=e.$implicit;O(),k("ngIf",t.input),O(),k("ngIf",t.textarea),O(),k("ngIf",t.select),O(),k("ngIf",t.wasm_button),O(),k("ngIf",t.file_button)}}function D5(n,e){if(1&n&&(nn(0),R(1,"div",5),ie(2,E5,6,5,"ng-container",4),x(),rn()),2&n){const t=e.$implicit;O(2),k("ngForOf",t)}}function C5(n,e){if(1&n&&(R(0,"form",3),ie(1,D5,3,1,"ng-container",4),x()),2&n){const t=V();k("formGroup",t.form),O(),k("ngForOf",t.formFields.get(t.action))}}let oA=(()=>{class n{constructor(t,r,i,o){this.config=t,this.formService=r,this.stateService=i,this.changeDetectorRef=o,this.formFields=this.formService.formFields,this.wasm_selected=new ke,this.verbosity=this.config.verbosity}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}ngAfterViewInit(){var t=this;return S(function*(){t.setStateSubscription()})()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}onWasmSelected(t){var r=this;return S(function*(){t&&r.wasm_selected.emit(t),r.stateService.setState({has_wasm:!!t})})()}onDeployFileSelected(t){var r=this;return S(function*(){t=t&&kn(new ae(t).toJson(),r.verbosity),r.updateDeployJson(t)})()}onTransactionFileSelected(t){var r=this;return S(function*(){t=t&&kn(new de(t).toJson(),r.verbosity),r.updateTransactionJson(t)})()}updateDeployJson(t){t&&this.stateService.setState({deploy_json:t})}updateTransactionJson(t){t&&this.stateService.setState({transaction_json:t})}static{this.\u0275fac=function(r){return new(r||n)(I(wr),I(ss),I(xn),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-form"]],inputs:{form:"form"},outputs:{wasm_selected:"wasm_selected"},standalone:!0,features:[wt],decls:1,vars:1,consts:[["inputTemplate",""],["submitTemplate",""],["class","mt-3",3,"formGroup",4,"ngIf"],[1,"mt-3",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"row","align-items-end"],[4,"ngIf"],[3,"parentForm","inputField","hidden_when_disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"update_deploy_json","update_transaction_json","parentForm","inputField"],[3,"parentForm","inputField"],[3,"select_wasm"],[4,"ngTemplateOutlet"],[3,"select_deploy","select_transaction","type"]],template:function(r,i){1&r&&ie(0,C5,2,2,"form",2),2&r&&k("ngIf",i.action&&i.formFields&&i.formFields.has(i.action))},dependencies:[Ye,Ma,gn,DS,qi,vM,ec,zi,XM,rA,iA,nA,tA],changeDetection:0})}}return n})();const sA=new P("highlight");var S5=On(7278),I5=On.n(S5);let aA=(()=>{class n{constructor(t){this.highlightWebworkerFactory=t}highlightMessage(t){var r=this;return S(function*(){r.activateWorker();const i=r.hightlightWebworker&&(yield r.hightlightWebworker.postMessage(t).catch(o=>{console.error(o)}));return r.terminateWorker(),i})()}activateWorker(){if(this.webworker)return;const t=this.highlightWebworkerFactory();this.webworker=t[0],this.hightlightWebworker=t[1]}terminateWorker(){this.webworker&&(this.webworker.terminate(),delete this.webworker)}static{this.\u0275fac=function(r){return new(r||n)(H(sA))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const T5={provide:sA,useValue:function(){const n=new Worker(On.tu(new URL(On.p+On.u(755),On.b)),{name:"highlight.worker",type:void 0});return[n,new(I5())(n)]}};let cA=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({providers:[T5,aA],imports:[Ye]})}}return n})(),Od=(()=>{class n{constructor(t,r){this.highlightService=t,this.document=r,this.result=new Qr,this.window=this.document.defaultView}getResult(){return this.result.asObservable()}setResult(t){var r=this;return S(function*(){const i=t,o=yield r.highlightService.highlightMessage(i),s="string"==typeof t;r.result.next({result:s?i:JSON.stringify(i),resultHtml:s?i:o})})()}copyClipboard(t){this.window?.navigator.clipboard.writeText(t).catch(r=>console.error(r))}static{this.\u0275fac=function(r){return new(r||n)(H(aA),H(fn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),M5=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({providers:[Od],imports:[Ye,cA]})}}return n})();const A5=["resultElt"],N5=["codeElt"];function k5(n,e){if(1&n&&(R(0,"div",15,0)(2,"div",16),mt(3,"code",17,1),x()()),2&n){const t=V(2);O(3),k("innerHtml",t.resultHtml,fv)}}function F5(n,e){if(1&n){const t=xe();R(0,"div",4)(1,"div",5)(2,"span"),nl(),R(3,"svg",6),ee("click",function(){_e(t);const i=V();return fe(i.copy(i.result))}),mt(4,"rect",7)(5,"path",8),x()(),function Ww(){!function gF(){J.lFrame.currentNamespace=null}()}(),R(6,"span",9),ee("click",function(){return _e(t),fe(V().reset())}),nl(),R(7,"svg",10),mt(8,"path",11)(9,"path",12)(10,"path",13),x()()(),ie(11,k5,5,1,"div",14),x()}if(2&n){const t=V();O(11),k("ngIf",t.resultHtml)}}let lA=(()=>{class n{constructor(t,r){this.resultService=t,this.changeDetectorRef=r}ngAfterViewInit(){this.getResultSubscription=this.resultService.getResult().subscribe(t=>{this.result=t.result,this.resultHtml=t.resultHtml,this.changeDetectorRef.markForCheck()})}ngOnDestroy(){this.getResultSubscription&&this.getResultSubscription.unsubscribe()}copy(t){this.resultService.copyClipboard(kn(JSON.parse(t),Qu.High))}reset(){this.result="",this.resultHtml="",this.resultService.setResult("")}static{this.\u0275fac=function(r){return new(r||n)(I(Od),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-result"]],viewQuery:function(r,i){if(1&r&&(kt(A5,5),kt(N5,5,dn)),2&r){let o;Ft(o=Rt())&&(i.resultElt=o.first),Ft(o=Rt())&&(i.contentChildren=o.first)}},standalone:!0,features:[wt],decls:2,vars:1,consts:[["resultElt",""],["codeElt",""],[1,"mt-3"],["class","row",4,"ngIf"],[1,"row"],[1,"col-xs-12","d-flex","flex-row","justify-content-between","mb-2"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"shrink-0","ml-2","w-5","min-w-5","text-gray-500","cursor-pointer",3,"click"],["x","9","y","9","width","13","height","13","rx","2","ry","2"],["d","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"],["e2e-id","clear result",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-journal-x","cursor-pointer"],["fill-rule","evenodd","d","M6.146 6.146a.5.5 0 0 1 .708 0L8 7.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 8l1.147 1.146a.5.5 0 0 1-.708.708L8 8.707 6.854 9.854a.5.5 0 0 1-.708-.708L7.293 8 6.146 6.854a.5.5 0 0 1 0-.708z"],["d","M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2z"],["d","M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1z"],["class","col-xs-12",4,"ngIf"],[1,"col-xs-12"],[1,"card"],["e2e-id","result",1,"card-body",3,"innerHtml"]],template:function(r,i){1&r&&(R(0,"section",2),ie(1,F5,12,1,"div",3),x()),2&r&&(O(),k("ngIf",i.result))},dependencies:[Ye,gn,cA],styles:["code[_ngcontent-%COMP%]{white-space:pre-wrap;overflow-x:hidden;word-wrap:break-word;max-width:100%}.card[_ngcontent-%COMP%]{max-height:calc(95vh - 20px);overflow-y:auto;margin-bottom:20px}@media (max-width: 767px){[_nghost-%COMP%] .hljs-string{overflow-wrap:break-word;word-break:break-all;max-width:100%}}[_nghost-%COMP%] .hljs-attr{font-weight:700}@media (max-width: 767px){code[_ngcontent-%COMP%]{font-size:.8em}}"],changeDetection:0})}}return n})();const R5=["selectNetworkElt"],uA=n=>[n];function x5(n,e){if(1&n&&(R(0,"option",18),ne(1),x()),2&n){const t=e.$implicit,r=V();k("value",null==t?null:t.name)("selected",t.rpc_address===r.rpc_address),O(),ga(" ",null==t?null:t.name," (",t.rpc_address,") ")}}function O5(n,e){if(1&n&&(R(0,"option",18),ne(1),x()),2&n){const t=e.$implicit,r=V(2);k("value",r.changePort(t))("selected",r.changePort(t)===r.rpc_address),O(),ga(" ",r.changePort(t)," (",r.chain_name,") ")}}function P5(n,e){if(1&n&&(R(0,"optgroup",19),ie(1,O5,2,4,"option",15),x()),2&n){const t=V();O(),k("ngForOf",t.peers)}}function L5(n,e){if(1&n){const t=xe();R(0,"div",20)(1,"div",21)(2,"label",22)(3,"span",23),ne(4,"Net."),x(),R(5,"span",24),ne(6,"Network"),x()(),R(7,"input",25,1),ee("change",function(i){return _e(t),fe(V().onCustomNetworkChange(i))}),x()(),R(9,"div",26)(10,"label",27)(11,"span",23),ne(12,"Chai."),x(),R(13,"span",24),ne(14,"Chain"),x()(),R(15,"input",28,1),ee("change",function(i){return _e(t),fe(V().onCcustomChainChange(i))}),x()()()}if(2&n){const t=V();O(7),k("value",t.rpc_address||"")("ngClass",Mn(4,uA,t.isCustomNetworkInvalid()?"is-invalid":"")),O(8),k("value",t.chain_name||"")("ngClass",Mn(6,uA,t.iscustomChainInvalid()?"is-invalid":""))}}let dA=(()=>{class n{constructor(t,r,i,o,s,c,l){this.sdk=t,this.config=r,this.env=i,this.document=o,this.stateService=s,this.storageService=c,this.changeDetectorRef=l,this.networks=this.config.networks,this.network=this.config.network,this.chain_name=this.network.chain_name,this.rpc_address=this.network.rpc_address,this.is_production=this.env.production,this.localhost_to_gateway=this.env.localhost_to_gateway,this.window=this.document.defaultView,this.is_electron=this.isElectron()}ngAfterViewInit(){var t=this;return S(function*(){t.storageService.get("chain_name")&&t.storageService.get("rpc_address")&&(t.chain_name=t.storageService.get("chain_name")||t.chain_name,t.rpc_address=t.storageService.get("rpc_address")||t.rpc_address,t.network=t.networks.find(r=>r.rpc_address==t.rpc_address)||t.network),t.stateService.setState({chain_name:t.chain_name,rpc_address:t.rpc_address}),t.setRPCAddress(),t.changeDetectorRef.markForCheck()})()}selectNetwork(t){let r=t.target?.value||this.selectNetworkElt.nativeElement.value;r=r&&this.networks.find(i=>i.name==r),this.network=r,this.chain_name=r.chain_name,this.rpc_address=r.rpc_address,this.setRPCAddress(),this.stateService.setState({chain_name:r.chain_name}),this.storageService.setState({rpc_address:this.rpc_address,chain_name:this.chain_name})}changePort(t){const r=t.address.split(":");return[this.config.default_protocol,r.shift(),":",this.config.default_port].join("")}onCustomNetworkChange(t){this.rpc_address=t.target?.value||this.network.rpc_address;const r=this.networks.find(i=>"custom"===i.name);r&&(r.rpc_address=this.rpc_address,this.sdk.setRPCAddress(this.rpc_address),this.stateService.setState({rpc_address:this.rpc_address}),this.storageService.setState({rpc_address:this.rpc_address}))}isCustomNetworkInvalid(){return!1}onCcustomChainChange(t){this.chain_name=t.target?.value||this.network.chain_name;const r=this.networks.find(i=>"custom"===i.name);r&&(r.chain_name=this.chain_name,this.stateService.setState({chain_name:this.chain_name}),this.storageService.setState({chain_name:this.chain_name}))}iscustomChainInvalid(){return!1}isElectron(){return typeof this.window<"u"&&window.location?.origin?.startsWith("file://")}setRPCAddress(){if(this.is_electron)this.sdk.setRPCAddress(this.rpc_address);else{const t=this.networks.find(r=>r.rpc_address==this.rpc_address);this.is_production&&!this.localhost_to_gateway&&t&&["ntcl","node-launcher"].includes(t?.name)?this.sdk.setRPCAddress(this.rpc_address):t&&this.sdk.setRPCAddress([this.window?.location?.href,t?.name].join(""))}}static{this.\u0275fac=function(r){return new(r||n)(I(Qa),I(wr),I(vm),I(fn),I(xn),I(fc),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-header"]],viewQuery:function(r,i){if(1&r&&kt(R5,5),2&r){let o;Ft(o=Rt())&&(i.selectNetworkElt=o.first)}},inputs:{peers:"peers"},standalone:!0,features:[wt],decls:20,vars:7,consts:[["selectNetworkElt",""],["publicKeyElt",""],[1,"navbar","navbar-light"],[1,"col-5","col-md-2"],[1,"navbar-brand"],["src","assets/logo.png","alt","CasperLabs"],[1,"col-7","col-md-4","col-lg-4","col-xl-5","d-flex","flex-column","flex-xl-row","justify-content-end","px-2","pt-2"],["e2e-id","chain_name",1,"badge","rounded-pill","bg-success","mb-2","ellipsis-container","px-2","me-xl-3",3,"hidden"],["e2e-id","rpc_address",1,"badge","rounded-pill","bg-success","mb-2","ellipsis-container","px-2","me-xl-3",3,"hidden"],[1,"col-12","col-md-6","col-lg-5"],[1,"form-inline"],[1,"input-group"],["for","selectActionElt","for","selectNetworkElt",1,"input-group-text"],["id","selectNetworkElt","e2e-id","selectNetworkElt",1,"form-select","form-control","form-control-sm",3,"change"],["label","default"],[3,"value","selected",4,"ngFor","ngForOf"],["label","fetched",4,"ngIf"],["class","input-group mt-2 justify-content-between",4,"ngIf"],[3,"value","selected"],["label","fetched"],[1,"input-group","mt-2","justify-content-between"],[1,"col-7"],["for","customNetworkElt",1,"input-group-text"],[1,"d-none","d-md-inline","d-lg-none"],[1,"d-md-none","d-lg-inline"],["type","search","name","customNetwork","id","customNetworkElt","e2e-id","customNetworkElt",1,"form-control","form-control-xs",3,"change","value","ngClass"],[1,"col-4"],["for","publicKeyElt",1,"input-group-text"],["type","search","name","customChain","id","customChainElt","e2e-id","customChainElt",1,"form-control","form-control-xs",3,"change","value","ngClass"]],template:function(r,i){if(1&r){const o=xe();R(0,"nav",2)(1,"div",3)(2,"a",4),mt(3,"img",5),x()(),R(4,"div",6)(5,"span",7),ne(6),x(),R(7,"span",8),ne(8),x()(),R(9,"div",9)(10,"form",10)(11,"div",11)(12,"label",12),ne(13,"RPC"),x(),R(14,"select",13,0),ee("change",function(c){return _e(o),fe(i.selectNetwork(c))}),R(16,"optgroup",14),ie(17,x5,2,4,"option",15),x(),ie(18,P5,2,1,"optgroup",16),x()(),ie(19,L5,17,8,"div",17),x()()()}2&r&&(O(5),k("hidden",!i.chain_name),O(),Mi(i.chain_name),O(),k("hidden",!i.rpc_address),O(),Mi(i.rpc_address),O(9),k("ngForOf",i.networks),O(),k("ngIf",i.peers),O(),k("ngIf","custom"===(null==i.network?null:i.network.name)))},dependencies:[Ye,gr,Ma,gn],styles:[".ellipsis-container[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto}"],changeDetection:0})}}return n})();function V5(n,e){if(1&n&&(R(0,"section",1)(1,"pre",2),ne(2),x()()),2&n){const t=V();O(2),Mi(t.error)}}let _A=(()=>{class n{constructor(t,r){this.errorService=t,this.changeDetectorRef=r}ngAfterViewInit(){var t=this;return S(function*(){t.seterrorSubscription()})()}ngOnDestroy(){this.errorSubscription&&this.errorSubscription.unsubscribe()}seterrorSubscription(){var t=this;this.errorSubscription=this.errorService.getError().subscribe(function(){var r=S(function*(i){t.error!==i&&(t.error=i,t.changeDetectorRef.markForCheck())});return function(i){return r.apply(this,arguments)}}())}static{this.\u0275fac=function(r){return new(r||n)(I(pc),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-error"]],standalone:!0,features:[wt],decls:1,vars:1,consts:[["class","mt-3","e2e-id","error",4,"ngIf"],["e2e-id","error",1,"mt-3"],[1,"error","alert","alert-warning","d-flex"]],template:function(r,i){1&r&&ie(0,V5,3,1,"section",0),2&r&&k("ngIf",i.error)},dependencies:[Ye,gn],styles:[".error[_ngcontent-%COMP%]{display:block;font-family:monospace;white-space:pre-wrap;word-break:break-word}"],changeDetection:0})}}return n})();function j5(n,e){if(1&n){const t=xe();R(0,"div",4)(1,"span",5),ne(2),x(),R(3,"button",6),ee("click",function(){return _e(t),fe(V().get_state_root_hash())}),ne(4,"Refresh"),x()()}if(2&n){const t=V();O(2),yt("state root hash is ",t.state_root_hash,"")}}function B5(n,e){if(1&n&&(R(0,"div",7)(1,"span",8),ne(2),x()()),2&n){const t=V();O(2),yt("account hash is ",t.account_hash,"")}}function H5(n,e){if(1&n&&(R(0,"div",7)(1,"span",9),ne(2),x()()),2&n){const t=V();O(2),yt("main purse is ",t.main_purse,"")}}let fA=(()=>{class n{constructor(t,r){this.stateService=t,this.changeDetectorRef=r,this.get_state_root_hash_output=new ke}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.account_hash&&(this.account_hash=t.account_hash),t.main_purse&&(this.main_purse=t.main_purse),t.state_root_hash&&(this.state_root_hash=t.state_root_hash),t&&this.changeDetectorRef.markForCheck()})}ngAfterViewInit(){var t=this;return S(function*(){t.setStateSubscription()})()}get_state_root_hash(){this.get_state_root_hash_output.emit(!0)}static{this.\u0275fac=function(r){return new(r||n)(I(xn),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-status"]],outputs:{get_state_root_hash_output:"get_state_root_hash_output"},standalone:!0,features:[wt],decls:5,vars:3,consts:[[1,"row"],[1,"col-sm-12"],["class","alert alert-success d-flex flex-md-row flex-column justify-content-between align-items-center mb-1 mb-md-3",4,"ngIf"],["class","alert alert-warning d-flex mb-1 mb-md-3",4,"ngIf"],[1,"alert","alert-success","d-flex","flex-md-row","flex-column","justify-content-between","align-items-center","mb-1","mb-md-3"],["e2e-id","state_root_hash",1,"ellipsis-container"],[1,"btn","me-0",3,"click"],[1,"alert","alert-warning","d-flex","mb-1","mb-md-3"],["e2e-id","account_hash",1,"ellipsis-container"],["e2e-id","main_purse",1,"ellipsis-container"]],template:function(r,i){1&r&&(R(0,"div",0)(1,"div",1),ie(2,j5,5,1,"div",2)(3,B5,3,1,"div",3)(4,H5,3,1,"div",3),x()()),2&r&&(O(2),k("ngIf",i.state_root_hash),O(),k("ngIf",i.account_hash),O(),k("ngIf",i.main_purse))},dependencies:[Ye,gn],styles:[".ellipsis-container[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto;font-size:.8em;max-width:260px}@media (min-width: 380px){.ellipsis-container[_ngcontent-%COMP%]{max-width:320px}}@media (min-width: 425px){.ellipsis-container[_ngcontent-%COMP%]{max-width:360px}}@media (min-width: 576px){.ellipsis-container[_ngcontent-%COMP%]{max-width:480px}}@media (min-width: 768px){.ellipsis-container[_ngcontent-%COMP%]{max-width:none;font-size:1em}}.btn[_ngcontent-%COMP%]{white-space:nowrap}@media (max-width: 767px){.btn[_ngcontent-%COMP%]{font-size:.8em;padding-bottom:0}}"],changeDetection:0})}}return n})();const Xm=n=>({deprecated:n});function U5(n,e){if(1&n&&(R(0,"option",11),ne(1),x()),2&n){const t=e.$implicit,r=V();k("value",t)("selected",r.action===t)("ngClass",Mn(4,Xm,r.sdk_deprecated.includes(t))),O(),yt(" ",t," ")}}function z5(n,e){if(1&n&&(R(0,"option",12),ne(1),x()),2&n){const t=e.$implicit,r=V();k("value",t)("selected",r.action===t),O(),yt(" ",t," ")}}function $5(n,e){if(1&n&&(R(0,"option",12),ne(1),x()),2&n){const t=e.$implicit,r=V();k("value",t)("selected",r.action===t),O(),yt(" ",t," ")}}function q5(n,e){if(1&n&&(R(0,"option",11),ne(1),x()),2&n){const t=e.$implicit,r=V();k("value",t)("selected",r.action===t)("ngClass",Mn(4,Xm,r.sdk_deprecated.includes(t))),O(),yt(" ",t," ")}}function G5(n,e){if(1&n&&(R(0,"option",11),ne(1),x()),2&n){const t=e.$implicit,r=V();k("value",t)("selected",r.action===t)("ngClass",Mn(4,Xm,r.sdk_deprecated.includes(t))),O(),yt(" ",t," ")}}let pA=(()=>{class n{constructor(t,r,i){this.sdk=t,this.stateService=r,this.changeDetectorRef=i,this.select_action=new ke}ngAfterViewInit(){var t=this;return S(function*(){t.sdk_methods=Object.getOwnPropertyNames(Object.getPrototypeOf(t.sdk)).filter(r=>"function"==typeof t.sdk[r]).filter(r=>!["free","constructor","__destroy_into_raw","getRPCAddress","setRPCAddress","getVerbosity","setVerbosity","watchDeploy","waitDeploy"].includes(r)).filter(r=>!r.endsWith("_options")).filter(r=>!r.startsWith("chain_")).filter(r=>!r.startsWith("state_")).filter(r=>!r.startsWith("info_")).filter(r=>!r.startsWith("account_")).filter(r=>!r.startsWith("wait")).filter(r=>!r.startsWith("watch")).sort(),t.sdk_deploy_methods=t.sdk_methods.filter(r=>["deploy","speculative_deploy","speculative_transfer","transfer"].includes(r)),t.sdk_deploy_utils_methods=t.sdk_methods.filter(r=>["make_deploy","make_transfer","sign_deploy","put_deploy","call_entrypoint_deploy","install_deploy"].includes(r)),t.sdk_transaction_methods=t.sdk_methods.filter(r=>["transaction","speculative_transaction","speculative_transfer_transaction","transfer_transaction"].includes(r)),t.sdk_transaction_utils_methods=t.sdk_methods.filter(r=>["make_transaction","make_transfer_transaction","sign_transaction","put_transaction","call_entrypoint","install","query_contract_dict","query_contract_key"].includes(r)),t.sdk_deprecated=t.sdk_methods.filter(r=>["get_account","get_deploy","get_era_info","put_deploy","speculative_exec_deploy","sign_deploy","make_deploy","make_transfer","speculative_deploy","speculative_transfer","deploy","transfer","call_entrypoint_deploy","install_deploy","get_balance"].includes(r)),t.sdk_rpc_methods=t.sdk_methods.filter(r=>!t.sdk_deploy_methods.concat(t.sdk_deploy_utils_methods,t.sdk_transaction_utils_methods,t.sdk_transaction_methods,t.sdk_contract_methods).includes(r)),t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}selectAction(t){this.select_action.emit(t.target.value)}static{this.\u0275fac=function(r){return new(r||n)(I(Qa),I(xn),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-action"]],outputs:{select_action:"select_action"},standalone:!0,features:[wt],decls:16,vars:5,consts:[["selectActionElt",""],[1,"input-group"],["for","selectActionElt",1,"input-group-text"],["id","selectActionElt","e2e-id","selectActionElt",1,"form-select","form-control","form-control-sm",3,"change"],["label","rpc"],[3,"value","selected","ngClass",4,"ngFor","ngForOf"],["label","transaction"],[3,"value","selected",4,"ngFor","ngForOf"],["label","utils"],["label","deploy",1,"deprecated"],["label","deploy utils",1,"deprecated"],[3,"value","selected","ngClass"],[3,"value","selected"]],template:function(r,i){if(1&r){const o=xe();R(0,"div",1)(1,"label",2),ne(2,"Action"),x(),R(3,"select",3,0),ee("change",function(c){return _e(o),fe(i.selectAction(c))}),mt(5,"option"),R(6,"optgroup",4),ie(7,U5,2,6,"option",5),x(),R(8,"optgroup",6),ie(9,z5,2,3,"option",7),x(),R(10,"optgroup",8),ie(11,$5,2,3,"option",7),x(),R(12,"optgroup",9),ie(13,q5,2,6,"option",5),x(),R(14,"optgroup",10),ie(15,G5,2,6,"option",5),x()()()}2&r&&(O(7),k("ngForOf",i.sdk_rpc_methods),O(2),k("ngForOf",i.sdk_transaction_methods),O(2),k("ngForOf",i.sdk_transaction_utils_methods),O(2),k("ngForOf",i.sdk_deploy_methods),O(2),k("ngForOf",i.sdk_deploy_utils_methods))},dependencies:[Ye,gr,Ma],styles:["[_nghost-%COMP%] .deprecated[_ngcontent-%COMP%]{font-style:italic;color:#d3d3d3}"],changeDetection:0})}}return n})();const W5=["*"],J5=n=>[n];let hA=(()=>{class n{constructor(t,r){this.stateService=t,this.changeDetectorRef=r,this.submit_action=new ke}ngAfterViewInit(){var t=this;return S(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}submitAction(t){this.submit_action.emit(t)}static{this.\u0275fac=function(r){return new(r||n)(I(xn),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-submit-action"]],inputs:{class:"class",e2e:"e2e"},outputs:{submit_action:"submit_action"},standalone:!0,features:[wt],ngContentSelectors:W5,decls:2,vars:4,consts:[["type","button",1,"btn",3,"click","ngClass"]],template:function(r,i){1&r&&(function UD(n){const e=T()[Re][ct];if(!e.projection){const r=e.projection=function jc(n,e){const t=[];for(let r=0;r{class n{constructor(t,r,i,o,s,c){this.config=t,this.sdk=r,this.resultService=i,this.formService=o,this.errorService=s,this.stateService=c,this.verbosity=Qu.High,this.setStateSubscription()}setStateSubscription(){this.stateService.getState().subscribe(t=>{t.chain_name&&(this.chain_name=t.chain_name),t.public_key&&(this.public_key=t.public_key),t.secret_key&&(this.secret_key=t.secret_key),t.deploy_json&&(this.deploy_json=t.deploy_json),t.verbosity&&(this.verbosity=t.verbosity),t.select_dict_identifier&&(this.select_dict_identifier=t.select_dict_identifier)})}get_account(t){var r=this;return S(function*(){let i;if(i=t||r.getIdentifier("accountIdentifier")?.value?.trim(),!i){const s="account_identifier is missing";return void(s&&r.errorService.setError(s.toString()))}const o=r.sdk.get_account_options({account_identifier_as_string:i});if(o){r.getIdentifieBlock(o);try{const s=yield r.sdk.get_account(o);return t||r.resultService.setResult(s.toJson()),s}catch(s){return r.errorService.setError(s.toString()),s}}else{const s="get_account_options is missing";s&&r.errorService.setError(s.toString())}})()}get_deploy(){var t=this;return S(function*(){const r=t.getIdentifier("finalizedApprovals")?.value,i=t.getIdentifier("deployHash")?.value?.trim();if(!i){const s="deploy_hash is missing";return void(s&&t.errorService.setError(s.toString()))}const o=t.sdk.get_deploy_options({deploy_hash_as_string:i});o.finalized_approvals=r;try{const s=yield t.sdk.get_deploy(o);s&&t.resultService.setResult(s.toJson())}catch(s){s&&t.errorService.setError(s.toString())}})()}get_transaction(){var t=this;return S(function*(){const r=t.getIdentifier("finalizedApprovals")?.value,i=t.getIdentifier("transactionHash")?.value?.trim();if(!i){const s="transaction_hash is missing";return void(s&&t.errorService.setError(s.toString()))}const o=t.sdk.get_transaction_options({transaction_hash_as_string:i});o.finalized_approvals=r;try{const s=yield t.sdk.get_transaction(o);s&&t.resultService.setResult(s.toJson())}catch(s){s&&t.errorService.setError(s.toString())}})()}get_entity(t){var r=this;return S(function*(){let i;if(i=t||r.getIdentifier("entityIdentifier")?.value?.trim(),!i){const s="entity_identifier is missing";return void(s&&r.errorService.setError(s.toString()))}const o=r.sdk.get_entity_options({entity_identifier_as_string:i});if(o){r.getIdentifieBlock(o);try{const s=yield r.sdk.get_entity(o);return t||r.resultService.setResult(s.toJson()),s}catch(s){return r.errorService.setError(s.toString()),s}}else{const s="get_entity_options is missing";s&&r.errorService.setError(s.toString())}})()}get_peers(){var t=this;return S(function*(){let r;try{const i=yield t.sdk.get_peers();i&&t.resultService.setResult(i.toJson()),i&&(r=i.peers)}catch(i){i&&t.errorService.setError(i.toString())}return r})()}get_node_status(){var t=this;return S(function*(){const r=yield t.sdk.get_node_status();return r&&t.resultService.setResult(r.toJson()),r})()}get_state_root_hash(t){var r=this;return S(function*(){let i="";const o=r.sdk.get_state_root_hash_options({});if(!o){const s="get_state_root_hash options are missing";s&&r.errorService.setError(s.toString())}if(t)i=(yield r.sdk.get_state_root_hash(o)).toString();else{r.getIdentifieBlock(o);const s=yield r.sdk.get_state_root_hash(o);s&&r.resultService.setResult(s.toJson())}return i})()}get_auction_info(){var t=this;return S(function*(){try{const r=t.sdk.get_auction_info_options({});t.getIdentifieBlock(r);const i=yield t.sdk.get_auction_info(r);i&&t.resultService.setResult(i.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_balance(){var t=this;return S(function*(){const r=t.getIdentifier("purseUref")?.value?.trim(),i=t.getIdentifier("stateRootHash")?.value?.trim();if(r)try{const o=t.sdk.get_balance_options({state_root_hash_as_string:i||"",purse_uref_as_string:r}),s=yield t.sdk.get_balance(o);s&&t.resultService.setResult(s.toJson())}catch(o){o&&t.errorService.setError(o.toString())}else{const o="purse_uref is missing";o&&t.errorService.setError(o.toString())}})()}get_block(){var t=this;return S(function*(){try{const r=t.sdk.get_block_options({});t.getIdentifieBlock(r);const i=yield t.sdk.get_block(r);i&&t.resultService.setResult(i.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_block_transfers(){var t=this;return S(function*(){try{const r=t.sdk.get_block_transfers_options({});t.getIdentifieBlock(r);const i=yield t.sdk.get_block_transfers(r);i&&t.resultService.setResult(i.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_chainspec(){var t=this;return S(function*(){try{const r=yield t.sdk.get_chainspec(),i=function T$(n){let e,t;try{const r=g(n,a.__wbindgen_malloc,a.__wbindgen_realloc),o=a.hexToString(r,h);return e=o[0],t=o[1],v(o[0],o[1])}finally{a.__wbindgen_free(e,t,1)}}(r?.chainspec_bytes.chainspec_bytes);i&&t.resultService.setResult(i)}catch(r){r&&t.errorService.setError(r.toString())}})()}get_era_info(){var t=this;return S(function*(){const r=t.sdk.get_era_info_options({});t.getIdentifieBlock(r);try{const i=yield t.sdk.get_era_info(r);i&&t.resultService.setResult(i.toJson())}catch(i){i&&t.errorService.setError(i.toString())}})()}get_era_summary(){var t=this;return S(function*(){const r=t.sdk.get_era_summary_options({});t.getIdentifieBlock(r);try{const i=yield t.sdk.get_era_summary(r);i&&t.resultService.setResult(i.toJson())}catch(i){i&&t.errorService.setError(i.toString())}})()}get_validator_changes(){var t=this;return S(function*(){try{const r=yield t.sdk.get_validator_changes();r&&t.resultService.setResult(r.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}list_rpcs(){var t=this;return S(function*(){try{const r=yield t.sdk.list_rpcs();r&&t.resultService.setResult(r.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}query_balance(){var t=this;return S(function*(){const r=t.getIdentifier("purseIdentifier")?.value?.trim();if(!r){const o="deploy_hash is missing";return void(o&&t.errorService.setError(o.toString()))}const i=t.sdk.query_balance_options({purse_identifier_as_string:r});t.getGlobalIdentifier(i);try{const o=yield t.sdk.query_balance(i);o&&t.resultService.setResult(o.balance)}catch(o){o&&t.errorService.setError(o.toString())}})()}query_balance_details(){var t=this;return S(function*(){const r=t.getIdentifier("purseIdentifier")?.value?.trim();if(!r){const o="deploy_hash is missing";return void(o&&t.errorService.setError(o.toString()))}const i=t.sdk.query_balance_details_options({purse_identifier_as_string:r});t.getGlobalIdentifier(i);try{const o=yield t.sdk.query_balance_details(i);o&&t.resultService.setResult(o.toJson())}catch(o){o&&t.errorService.setError(o.toString())}})()}query_global_state(){var t=this;return S(function*(){const r=t.getIdentifier("queryPath")?.value?.trim()||"",i=t.getIdentifier("queryKey")?.value?.trim();if(!i){const s="key is missing";return void(s&&t.errorService.setError(s.toString()))}const o=t.sdk.query_global_state_options({key_as_string:i,path_as_string:r});t.getGlobalIdentifier(o);try{const s=yield t.sdk.query_global_state(o);s&&t.resultService.setResult(s.toJson())}catch(s){s&&t.errorService.setError(s.toString())}})()}deploy(t=!0,r,i){var o=this;return S(function*(){const s=Zu(),c=o.getIdentifier("TTL")?.value?.trim()||"";if(!t&&!o.public_key)return void o.errorService.setError("public_key is missing".toString());if(t&&!o.secret_key)return void o.errorService.setError("secret_key is missing".toString());const l=new Kt(o.chain_name,o.public_key,o.secret_key,s,c),u=new er,d=o.getIdentifier("paymentAmount")?.value?.trim();if(!d){const f="paymentAmount is missing";return void(f&&o.errorService.setError(f.toString()))}u.payment_amount=d;const _=o.get_session_params(i);try{let f;if(f=r?yield o.sdk.speculative_deploy(l,_,u):t?yield o.sdk.deploy(l,_,u):o.sdk.make_deploy(l,_,u),f){const p=f.toJson();o.deploy_json=kn(p,o.verbosity),o.deploy_json&&o.resultService.setResult(p),!t&&o.updateDeployJson(o.deploy_json)}return f}catch(f){return void(f&&o.errorService.setError(f))}})()}transaction(t=!0,r,i){var o=this;return S(function*(){const s=Zu(),c=o.getIdentifier("TTL")?.value?.trim()||"",l=o.getIdentifier("gasPriceTolerance")?.value?.trim()||"",u=o.getIdentifier("selectPricingMode")?.value?.trim()||"",d=o.getIdentifier("additionalComputationFactor")?.value?.trim()||"";if(!t&&!o.public_key){const y="public_key is missing";return void(y&&o.errorService.setError(y.toString()))}if(t&&!o.secret_key){const y="secret_key is missing";return void(y&&o.errorService.setError(y.toString()))}const _=o.get_builder_params(i);let f=new dt(o.chain_name,o.public_key,o.secret_key,s,c);l&&(f.gas_price_tolerance=l),u&&(f.pricing_mode=u),u==mr.Fixed&&(f.additional_computation_factor=d);const p=o.getIdentifier("paymentAmount")?.value?.trim();if(p){f.payment_amount=p,f=o.addTransactionArgs(f);try{let y;if(y=r?yield o.sdk.speculative_transaction(_,f):t?yield o.sdk.transaction(_,f):o.sdk.make_transaction(_,f),y){const w=y.toJson();o.transaction_json=kn(w,o.verbosity),o.transaction_json&&o.resultService.setResult(w),!t&&o.updateTransactionJson(o.transaction_json)}return y}catch(y){return void(y&&o.errorService.setError(y))}}else{const y="paymentAmount is missing";y&&o.errorService.setError(y.toString())}})()}install_deploy(t){var r=this;return S(function*(){const i=r.getIdentifier("paymentAmount")?.value?.trim();if(!i){const l="paymentAmount is missing";return void(l&&r.errorService.setError(l.toString()))}if(!r.secret_key){const l="secret_key is missing";return void(l&&r.errorService.setError(l.toString()))}if(!t?.buffer){const l="wasmBuffer is missing";l&&r.errorService.setError(l.toString())}const s=new Kt(r.chain_name,r.public_key,r.secret_key),c=r.get_session_params(t);try{const l=yield r.sdk.install_deploy(s,c,i);l&&r.resultService.setResult(l.toJson())}catch(l){l&&r.errorService.setError(l.toString())}})()}install(t){var r=this;return S(function*(){const i=r.getIdentifier("paymentAmount")?.value?.trim();if(!i){const c="paymentAmount is missing";return void(c&&r.errorService.setError(c.toString()))}if(!r.secret_key){const c="secret_key is missing";return void(c&&r.errorService.setError(c.toString()))}if(!t?.buffer){const c="wasmBuffer is missing";c&&r.errorService.setError(c.toString())}let s=new dt(r.chain_name,r.public_key,r.secret_key);s.payment_amount=i,s=r.addTransactionArgs(s);try{const c=t&&(yield r.sdk.install(s,bt.fromUint8Array(t)));c&&r.resultService.setResult(c.toJson())}catch(c){c&&r.errorService.setError(c.toString())}})()}transfer(t=!0,r){var i=this;return S(function*(){const o=Zu(),s=i.getIdentifier("TTL")?.value?.trim()||"";if(!t&&!i.public_key)return void i.errorService.setError("public_key is missing".toString());if(t&&!i.secret_key)return void i.errorService.setError("secret_key is missing".toString());const c=new Kt(i.chain_name,i.public_key,i.secret_key,o,s),l=new er;l.payment_amount=i.config.standard_payment_amount.toString();const u=i.getIdentifier("transferAmount")?.value?.trim(),d=i.getIdentifier("targetAccount")?.value?.trim();if(u&&d)try{let _;if(_=r?yield i.sdk.speculative_transfer(u,d,void 0,c,l):t?yield i.sdk.transfer(u,d,void 0,c,l):yield i.sdk.make_transfer(u,d,void 0,c,l),_){const f=_.toJson();i.deploy_json=kn(f,i.verbosity),i.deploy_json&&i.resultService.setResult(f),!t&&i.updateDeployJson(i.deploy_json)}return _}catch(_){return void(_&&i.errorService.setError(_))}else{const _="transfer_amount or target_account is missing";_&&i.errorService.setError(_.toString())}})()}transfer_transaction(t=!0,r){var i=this;return S(function*(){const o=Zu(),s=i.getIdentifier("TTL")?.value?.trim()||"";if(!t&&!i.public_key)return void i.errorService.setError("public_key is missing".toString());if(t&&!i.secret_key)return void i.errorService.setError("secret_key is missing".toString());const c=new dt(i.chain_name,i.public_key,i.secret_key,o,s),l=i.getIdentifier("transferAmount")?.value?.trim(),u=i.getIdentifier("targetAccount")?.value?.trim();if(!l||!u){const _="transfer_amount or target_account is missing";return void(_&&i.errorService.setError(_.toString()))}const d=i.config.standard_payment_amount.toString();c.payment_amount=d;try{let _;if(_=r?yield i.sdk.speculative_transfer_transaction(void 0,u,l,c,void 0):t?yield i.sdk.transfer_transaction(void 0,u,l,c):yield i.sdk.make_transfer_transaction(void 0,u,l,c),_){const f=_.toJson();i.transaction_json=kn(f,i.verbosity),i.transaction_json&&i.resultService.setResult(f),!t&&i.updateTransactionJson(i.transaction_json)}return _}catch(_){return void(_&&i.errorService.setError(_))}})()}put_deploy(){var t=this;return S(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const s="deployJson is missing";return void(s&&t.errorService.setError(s.toString()))}const i=new ae(JSON.parse(r)),o=yield t.sdk.put_deploy(i);return o&&t.resultService.setResult(o.toJson()),o})()}put_transaction(){var t=this;return S(function*(){const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r){const s="deployJson is missing";return void(s&&t.errorService.setError(s.toString()))}const i=new de(JSON.parse(r)),o=yield t.sdk.put_transaction(i);return o&&t.resultService.setResult(o.toJson()),o})()}speculative_exec_deploy(){var t=this;return S(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const c="signed_deploy is missing";return void(c&&t.errorService.setError(c.toString()))}const i=new ae(JSON.parse(r)),o=t.sdk.get_speculative_exec_deploy_options({deploy:i.toJson()}),s=yield t.sdk.speculative_exec_deploy(o);return s&&t.resultService.setResult(s.toJson()),s})()}speculative_exec(){var t=this;return S(function*(){const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r){const c="signed_transaction is missing";return void(c&&t.errorService.setError(c.toString()))}const i=new de(JSON.parse(r)),o=t.sdk.get_speculative_exec_options({transaction:i.toJson()}),s=yield t.sdk.speculative_exec(o);return s&&t.resultService.setResult(s.toJson()),s})()}sign_deploy(){var t=this;return S(function*(){if(!t.secret_key){const o="secret_key is missing";return void(o&&t.errorService.setError(o.toString()))}const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const o="signed_deploy is missing";return void(o&&t.errorService.setError(o.toString()))}let i;try{i=new ae(JSON.parse(r))}catch{const o="Error parsing deploy";return void(o&&t.errorService.setError(o.toString()))}if(i)i=i.sign(t.secret_key),t.deploy_json=kn(i.toJson(),t.verbosity),t.getIdentifier("deployJson")?.setValue(t.deploy_json),t.updateDeployJson(t.deploy_json);else{const o="signed_deploy is missing";o&&t.errorService.setError(o.toString())}})()}sign_transaction(){var t=this;return S(function*(){if(!t.secret_key){const o="secret_key is missing";return void(o&&t.errorService.setError(o.toString()))}const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r){const o="signed_transaction is missing";return void(o&&t.errorService.setError(o.toString()))}let i;try{i=new de(JSON.parse(r))}catch{const o="Error parsing transaction";return void(o&&t.errorService.setError(o.toString()))}if(i)i=i.sign(t.secret_key),t.transaction_json=kn(i.toJson(),t.verbosity),t.getIdentifier("transactionJson")?.setValue(t.transaction_json),t.updateTransactionJson(t.transaction_json);else{const o="signed_transaction is missing";o&&t.errorService.setError(o.toString())}})()}wallet_sign_deploy(){var t=this;return S(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r)return void t.errorService.setError("deploy_to_sign is missing".toString());let i;try{i=new ae(JSON.parse(r))}catch(o){return void(o&&t.errorService.setError(o))}try{i=yield(new DI).signDeploy(i,t.public_key)}catch(o){return void(o&&t.errorService.setError(o))}t.deploy_json=kn(i.toJson(),t.verbosity),t.getIdentifier("deployJson")?.setValue(t.deploy_json),t.updateDeployJson(t.deploy_json)})()}wallet_sign_transaction(){var t=this;return S(function*(){const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r)return void t.errorService.setError("transaction_to_sign is missing".toString());let i;try{i=new de(JSON.parse(r))}catch(o){return void(o&&t.errorService.setError(o))}try{i=yield(new DI).signTransaction(i,t.public_key)}catch(o){return void(o&&t.errorService.setError(o))}t.transaction_json=kn(i.toJson(),t.verbosity),t.getIdentifier("transactionJson")?.setValue(t.transaction_json),t.updateTransactionJson(t.transaction_json)})()}updateDeployJson(t){t&&this.stateService.setState({deploy_json:t})}updateTransactionJson(t){t&&this.stateService.setState({transaction_json:t})}make_deploy(t){var r=this;return S(function*(){yield r.deploy(!1,!1,t)})()}make_transaction(t){var r=this;return S(function*(){yield r.transaction(!1,!1,t)})()}make_transfer(){var t=this;return S(function*(){yield t.transfer(!1)})()}make_transfer_transaction(){var t=this;return S(function*(){yield t.transfer_transaction(!1)})()}speculative_transfer(){var t=this;return S(function*(){yield t.transfer(!1,!0)})()}speculative_transfer_transaction(){var t=this;return S(function*(){yield t.transfer(!1,!0)})()}speculative_deploy(t){var r=this;return S(function*(){yield r.deploy(!1,!0,t)})()}speculative_transaction(t){var r=this;return S(function*(){yield r.transaction(!1,!0,t)})()}call_entrypoint_deploy(){var t=this;return S(function*(){if(!t.secret_key){const s="secret_key is missing";return void(s&&t.errorService.setError(s.toString()))}const r=new Kt(t.chain_name,t.public_key,t.secret_key),i=t.get_session_params(),o=t.getIdentifier("paymentAmount")?.value?.trim();if(o)try{const s=yield t.sdk.call_entrypoint_deploy(r,i,o);s&&t.resultService.setResult(s.toJson())}catch(s){s&&t.errorService.setError(s.toString())}else{const s="paymentAmount is missing";s&&t.errorService.setError(s.toString())}})()}call_entrypoint(){var t=this;return S(function*(){if(!t.secret_key){const s="secret_key is missing";return void(s&&t.errorService.setError(s.toString()))}let r=new dt(t.chain_name,t.public_key,t.secret_key);const i=t.getIdentifier("paymentAmount")?.value?.trim();if(!i){const s="paymentAmount is missing";return void(s&&t.errorService.setError(s.toString()))}r.payment_amount=i,r=t.addTransactionArgs(r);const o=t.get_builder_params();try{const s=yield t.sdk.call_entrypoint(o,r);s&&t.resultService.setResult(s.toJson())}catch(s){s&&t.errorService.setError(s.toString())}})()}query_contract_dict(){var t=this;return S(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),i=t.getIdentifier("itemKey")?.value?.trim();if(!i){const u="itemKey is missing";return void(u&&t.errorService.setError(u.toString()))}const o=t.getIdentifier("seedEntityHash")?.value?.trim()||"",s=t.getIdentifier("seedName")?.value?.trim();if(!s){const u="seedName is missing";return void(u&&t.errorService.setError(u.toString()))}let c;if(o&&(c=new Vi,c.setEntityNamedKey(o,s,i)),!c){const u="dictionary_item_params is missing";return void(u&&t.errorService.setError(u.toString()))}const l=t.sdk.query_contract_dict_options({state_root_hash_as_string:r||""});l.dictionary_item_params=c;try{const u=yield t.sdk.query_contract_dict(l);u&&t.resultService.setResult(u.toJson())}catch(u){u&&t.errorService.setError(u.toString())}})()}query_contract_key(){var t=this;return S(function*(){const r=t.getIdentifier("queryKey")?.value?.trim();if(!r){const s="key is missing";return void(s&&t.errorService.setError(s.toString()))}const i=t.getIdentifier("queryPath")?.value?.toString().trim().replace(/^\/+|\/+$/g,""),o=t.sdk.query_contract_key_options({entity_identifier_as_string:r,path_as_string:i});t.getIdentifieBlock(o);try{const s=yield t.sdk.query_contract_key(o);s&&t.resultService.setResult(s.toJson())}catch(s){s&&t.errorService.setError(s.toString())}})()}get_dictionary_item(){var t=this;return S(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),i=t.getIdentifier("itemKey")?.value?.trim(),o=t.getIdentifier("seedKey")?.value?.trim();if(!i&&!o){const u="seedKey or itemKey is missing";return void(u&&t.errorService.setError(u.toString()))}const s=t.getIdentifier("seedUref")?.value?.trim();let c;if(s&&"newFromSeedUref"===t.select_dict_identifier)c=vt.newFromSeedUref(s,i);else if(o&&"newFromDictionaryKey"===t.select_dict_identifier)c=vt.newFromDictionaryKey(o);else{const u=t.getIdentifier("seedContractHash")?.value?.trim(),d=t.getIdentifier("seedEntityHash")?.value?.trim(),_=t.getIdentifier("seedAccountHash")?.value?.trim(),f=t.getIdentifier("seedName")?.value?.trim();if(!f){const p="seed_name is missing";return void(p&&t.errorService.setError(p.toString()))}u&&"newFromContractInfo"===t.select_dict_identifier&&(c=vt.newFromContractInfo(u,f,i)),d&&"newFromEntityInfo"===t.select_dict_identifier?c=vt.newFromEntityInfo(d,f,i):_&&"newFromAccountInfo"===t.select_dict_identifier&&(c=vt.newFromAccountInfo(_,f,i))}if(!c){const u="dictionary_item_identifier is missing";return void(u&&t.errorService.setError(u.toString()))}const l=t.sdk.get_dictionary_item_options({state_root_hash_as_string:r||""});l.dictionary_item_identifier=c;try{const u=yield t.sdk.state_get_dictionary_item(l);u&&t.resultService.setResult(u.toJson())}catch(u){u&&t.errorService.setError(u.toString())}})()}getIdentifier(t){return this.formService.form.get(t)}getIdentifieBlock(t){const r=this.getIdentifier("blockIdentifierHeight")?.value?.trim(),i=this.getIdentifier("blockIdentifierHash")?.value?.trim();if(i)t.maybe_block_id_as_string=i,t.maybe_block_identifier=void 0;else if(r){const o=Pe.fromHeight(BigInt(r));t.maybe_block_id_as_string=void 0,t.maybe_block_identifier=o}else t.maybe_block_id_as_string=void 0,t.maybe_block_identifier=void 0}getGlobalIdentifier(t){const r=this.getIdentifier("stateRootHash")?.value?.trim();let i;if(r)i=Lt.fromStateRootHash(new Le(r));else{const o=this.getIdentifier("blockIdentifierHeight")?.value?.trim(),s=this.getIdentifier("blockIdentifierHash")?.value?.trim();s?i=Lt.fromBlockHash(new yr(s)):o&&(i=Lt.fromBlockHeight(BigInt(o)))}i&&(t.global_state_identifier=i)}get_session_params(t){const r=new Bi,i=this.getIdentifier("entryPoint")?.value?.trim();i&&(r.session_entry_point=i);const o=this.getIdentifier("argsSimple")?.value?.trim().split(",").map(_=>_.trim()).filter(_=>""!==_),s=this.getIdentifier("argsJson")?.value?.trim();o?.length?r.session_args_simple=o:s&&(r.session_args_json=s);const c=this.getIdentifier("callPackage")?.value,l=this.getIdentifier("sessionHash")?.value?.trim(),u=this.getIdentifier("sessionName")?.value?.trim();c?l?r.session_package_hash=l:u&&(r.session_package_name=u):l?r.session_hash=l:u&&(r.session_name=u),t&&(r.session_bytes=bt.fromUint8Array(t));const d=this.getIdentifier("version")?.value?.trim();return d&&(r.session_version=d),r}get_builder_params(t){let r=new je;const i=this.getIdentifier("entityHash")?.value?.trim(),o=this.getIdentifier("entityAlias")?.value?.trim(),s=this.getIdentifier("entryPoint")?.value?.trim();if(this.getIdentifier("callPackage")?.value){const l=this.getIdentifier("version")?.value?.trim();if(o)r=je.newPackageAlias(o,s,l);else{let u=null;try{u=Xn.fromFormattedStr(i)}catch{try{u=new Xn(i)}catch{return this.errorService.setError("package_hash could not be parsed".toString()),r}}u&&(r=je.newPackage(u,s,l))}}else if(o)r=je.newInvocableEntityAlias(o,s);else if(i){let l=null,u=null;try{l=La.fromFormattedStr(i),u=new Yn(l.toHexString())}catch{try{u=new Yn(i)}catch{return this.errorService.setError("entity_hash could not be parsed".toString()),r}}u&&(r=je.newInvocableEntity(u,s))}if(t){const l="true"===this.getIdentifier("selectTransactionCategory")?.value?.trim();r=je.newSession(bt.fromUint8Array(t),l)}return r}addTransactionArgs(t){const r=this.getIdentifier("argsSimple")?.value?.trim().split(",").map(o=>o.trim()).filter(o=>""!==o),i=this.getIdentifier("argsJson")?.value?.trim();return r?.length?t.session_args_simple=r:i&&(t.session_args_json=i),t}static{this.\u0275fac=function(r){return new(r||n)(H(wr),H(Qa),H(Od),H(ss),H(pc),H(xn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const K5=["publicKeyElt"],Z5=n=>[n];let mA=(()=>{class n{constructor(t,r,i,o,s,c){this.config=t,this.stateService=r,this.clientService=i,this.storageService=o,this.changeDetectorRef=s,this.formService=c}ngAfterViewInit(){var t=this;return S(function*(){t.setStateSubscription(),t.public_key=t.storageService.get("public_key")||t.public_key,t.public_key&&(yield t.updateAccount(),t.stateService.setState({public_key:t.public_key}))})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){var t=this;this.stateSubscription=this.stateService.getState().subscribe(function(){var r=S(function*(i){i.action&&(t.action=i.action),i.public_key&&t.public_key!=i.public_key?(i.public_key&&(t.public_key=i.public_key),i.secret_key&&(t.secret_key=i.secret_key),yield t.updateAccount()):i.public_key&&i.public_key&&(t.public_key=i.public_key),t.changeDetectorRef.markForCheck()});return function(i){return r.apply(this,arguments)}}())}onPublicKeyChange(){var t=this;return S(function*(){const r=t.publicKeyElt&&t.publicKeyElt.nativeElement.value.toString().trim();t.public_key="",t.stateService.setState({public_key:r,secret_key:""}),t.storageService.setState({public_key:r})})()}isInvalid(){return!(this.config.action_needs_public_key&&!this.config.action_needs_public_key?.includes(this.action)||this.publicKeyElt?.nativeElement.value?.trim())}updateAccount(){var t=this;return S(function*(){const r=yield t.clientService.get_entity(t.public_key);if(!r.entity_result)return;const i=r?.entity_result?.AddressableEntity?.entity.entity_kind.Account,o=r?.entity_result?.AddressableEntity?.entity.main_purse;t.stateService.setState({account_hash:i,main_purse:o}),t.storageService.setState({account_hash:i,main_purse:o}),i&&t.formService.updateForm()})()}static{this.\u0275fac=function(r){return new(r||n)(I(wr),I(xn),I(gA),I(fc),I(on),I(ss))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-public-key"]],viewQuery:function(r,i){if(1&r&&kt(K5,5),2&r){let o;Ft(o=Rt())&&(i.publicKeyElt=o.first)}},standalone:!0,features:[wt],decls:7,vars:4,consts:[["publicKeyElt",""],["for","publicKeyElt",1,"input-group-text"],[1,"d-none","d-md-inline","d-lg-none"],[1,"d-md-none","d-lg-inline"],["type","search","name","public_key","placeholder","e.g. 0x","id","publicKeyElt","e2e-id","publicKeyElt",1,"form-control","form-control-xs",3,"input","value","ngClass"]],template:function(r,i){if(1&r){const o=xe();R(0,"label",1)(1,"span",2),ne(2,"Pub. Key"),x(),R(3,"span",3),ne(4,"Public Key"),x()(),R(5,"input",4,0),ee("input",function(){return _e(o),fe(i.onPublicKeyChange())}),x()}2&r&&(O(5),k("value",i.public_key||"")("ngClass",Mn(2,Z5,i.isInvalid()?"is-invalid":"")))},dependencies:[Ye,gr],changeDetection:0})}}return n})();const Y5=["secretKeyElt"],Q5=n=>[n];function X5(n,e){if(1&n){const t=xe();R(0,"button",4),ee("click",function(){return _e(t),fe(V().onSecretKeyClick())}),ne(1," Load Secret Key\n"),x()}if(2&n){const t=V();k("ngClass",Mn(1,Q5,t.isInvalid()?"btn-warning":"btn-secondary"))}}function eq(n,e){if(1&n){const t=xe();R(0,"button",5),ee("click",function(){return _e(t),fe(V().onSecretKeyClick())}),ne(1," Secret Key Loaded\n"),x()}}let yA=(()=>{class n{constructor(t,r,i,o,s){this.config=t,this.stateService=r,this.errorService=i,this.storageService=o,this.changeDetectorRef=s}ngAfterViewInit(){var t=this;return S(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){var t=this;this.stateSubscription=this.stateService.getState().subscribe(function(){var r=S(function*(i){i.action&&(t.action=i.action),t.changeDetectorRef.markForCheck()});return function(i){return r.apply(this,arguments)}}())}onSecretKeyClick(){this.secretKeyElt.nativeElement.click()}onPemSelected(t){var r=this;return S(function*(){const i=t.target.files?.item(0);let o="";if(i){let s=yield i.text();if(!s.trim())return;s=s.trim(),r.errorService.setError("");try{o=function A$(n){const e=g(n,a.__wbindgen_malloc,a.__wbindgen_realloc),r=a.publicKeyFromSecretKey(e,h);if(r[2])throw F(r[1]);return F(r[0])}(s)}catch(c){r.errorService.setError(c)}o&&(r.secret_key=s)}else r.secret_key="";r.stateService.setState({public_key:o,secret_key:r.secret_key}),r.storageService.setState({public_key:o}),r.secretKeyElt.nativeElement.value="",r.changeDetectorRef.markForCheck()})()}isInvalid(){return!(this.config.action_needs_secret_key&&!this.config.action_needs_secret_key?.includes(this.action)||this.secret_key)}static{this.\u0275fac=function(r){return new(r||n)(I(wr),I(xn),I(pc),I(fc),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-secret-key"]],viewQuery:function(r,i){if(1&r&&kt(Y5,5),2&r){let o;Ft(o=Rt())&&(i.secretKeyElt=o.first)}},standalone:!0,features:[wt],decls:4,vars:2,consts:[["secretKeyElt",""],["name","secret_key","type","file","id","secretKeyElt","accept",".pem","e2e-id","secretKeyElt",1,"visually-hidden",3,"change"],["class","btn",3,"ngClass","click",4,"ngIf"],["class","btn btn-light",3,"click",4,"ngIf"],[1,"btn",3,"click","ngClass"],[1,"btn","btn-light",3,"click"]],template:function(r,i){if(1&r){const o=xe();R(0,"input",1,0),ee("change",function(c){return _e(o),fe(i.onPemSelected(c))}),x(),ie(2,X5,2,3,"button",2)(3,eq,2,0,"button",3)}2&r&&(O(2),k("ngIf",!i.secret_key),O(),k("ngIf",i.secret_key))},dependencies:[Ye,gr,gn],changeDetection:0})}}return n})();const tq=["selectDictIdentifierElt"],ey=()=>["sign_deploy","sign_transaction"];function nq(n,e){if(1&n){const t=xe();R(0,"comp-submit-action",12),ee("submit_action",function(i){return _e(t),fe(V().submitAction(i))}),ne(1,"Go"),x()}2&n&&(nu("btn-success ms-1 ms-sm-2 ms-xl-3"),k("e2e","submit"))}function rq(n,e){if(1&n){const t=xe();R(0,"comp-submit-action",12),ee("submit_action",function(i){return _e(t),fe(V().submitAction(i))}),ne(1,"Sign "),x()}2&n&&(nu("btn-warning mt-3"),k("e2e","sign"))}function iq(n,e){if(1&n){const t=xe();R(0,"button",13),ee("click",function(i){_e(t);const o=V();return fe(o.walletSign(i,o.action))}),ne(1," Casper Wallet Sign "),x()}2&n&&(nu("btn-warning mt-3 ms-3"),At("e2e","wallet_sign"))}let oq=(()=>{class n{constructor(t,r,i,o,s,c,l,u,d){this.sdk=t,this.config=r,this.env=i,this.clientService=o,this.resultService=s,this.stateService=c,this.formService=l,this.errorService=u,this.storageService=d,this.form=this.formService.form}ngOnInit(){var t=this;return S(function*(){console.info(t.sdk)})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action)})}ngAfterViewInit(){var t=this;return S(function*(){const i=t.storageService.get("action")||t.config.default_action.toString();try{i==t.config.default_action.toString()&&(yield t.handleAction(i,!0)),yield t.get_state_root_hash(!0)}catch(o){console.error(o),t.errorService.setError(o)}t.stateService.setState({action:i}),t.setStateSubscription()})()}selectAction(t){var r=this;return S(function*(){yield r.cleanResult(),r.stateService.setState({action:t}),yield r.handleAction(t),r.storageService.setState({action:t})})()}submitAction(t){var r=this;return S(function*(){yield r.cleanResult(),(r.form.disabled||r.form.valid)&&(yield r.handleAction(t,!0))})()}walletSign(t,r){var i=this;return S(function*(){i.clientService.wallet_sign_deploy()})()}handleAction(t,r){var i=this;return S(function*(){const o=i[t];if(o&&"function"==typeof o){if(r)try{yield o.bind(i)()}catch(s){i.errorService.setError(s)}}else{const s=`Method ${t} is not defined on the component.`;console.error(s),i.errorService.setError(s)}})()}onWasmSelected(t){var r=this;return S(function*(){t&&(r.wasm=t)})()}cleanResult(){var t=this;return S(function*(){t.errorService.setError(""),yield t.resultService.setResult("")})()}call_entrypoint_deploy(){var t=this;return S(function*(){return yield t.clientService.call_entrypoint_deploy()})()}call_entrypoint(){var t=this;return S(function*(){return yield t.clientService.call_entrypoint()})()}deploy(t=!0,r){var i=this;return S(function*(){return yield i.clientService.deploy(t,r,i.wasm)})()}transaction(t=!0,r){var i=this;return S(function*(){return yield i.clientService.transaction(t,r,i.wasm)})()}get_account(t){var r=this;return S(function*(){return yield r.clientService.get_account(t)})()}get_auction_info(){var t=this;return S(function*(){return yield t.clientService.get_auction_info()})()}get_balance(){var t=this;return S(function*(){return yield t.clientService.get_balance()})()}get_block(){var t=this;return S(function*(){return yield t.clientService.get_block()})()}get_block_transfers(){var t=this;return S(function*(){return yield t.clientService.get_block_transfers()})()}get_chainspec(){var t=this;return S(function*(){return yield t.clientService.get_chainspec()})()}get_deploy(){var t=this;return S(function*(){return yield t.clientService.get_deploy()})()}get_transaction(){var t=this;return S(function*(){return yield t.clientService.get_transaction()})()}get_dictionary_item(){var t=this;return S(function*(){return yield t.clientService.get_dictionary_item()})()}get_entity(t){var r=this;return S(function*(){return yield r.clientService.get_entity(t)})()}get_era_info(){var t=this;return S(function*(){return yield t.clientService.get_era_info()})()}get_era_summary(){var t=this;return S(function*(){return yield t.clientService.get_era_summary()})()}get_node_status(){var t=this;return S(function*(){return yield t.clientService.get_node_status()})()}get_peers(){var t=this;return S(function*(){return t.peers=yield t.clientService.get_peers(),t.peers})()}get_state_root_hash(t){var r=this;return S(function*(){const i=yield r.clientService.get_state_root_hash(t);return r.stateService.setState({state_root_hash:i}),i})()}get_validator_changes(){var t=this;return S(function*(){return yield t.clientService.get_validator_changes()})()}install_deploy(){var t=this;return S(function*(){return yield t.clientService.install_deploy(t.wasm)})()}install(){var t=this;return S(function*(){return yield t.clientService.install(t.wasm)})()}list_rpcs(){var t=this;return S(function*(){return yield t.clientService.list_rpcs()})()}make_deploy(){var t=this;return S(function*(){return yield t.clientService.make_deploy(t.wasm)})()}make_transaction(){var t=this;return S(function*(){return yield t.clientService.make_transaction(t.wasm)})()}make_transfer(){var t=this;return S(function*(){return yield t.clientService.make_transfer()})()}make_transfer_transaction(){var t=this;return S(function*(){return yield t.clientService.make_transfer_transaction()})()}put_deploy(){var t=this;return S(function*(){return yield t.clientService.put_deploy()})()}put_transaction(){var t=this;return S(function*(){return yield t.clientService.put_transaction()})()}query_balance(){var t=this;return S(function*(){return yield t.clientService.query_balance()})()}query_balance_details(){var t=this;return S(function*(){return yield t.clientService.query_balance_details()})()}query_contract_dict(){var t=this;return S(function*(){return yield t.clientService.query_contract_dict()})()}query_contract_key(){var t=this;return S(function*(){return yield t.clientService.query_contract_key()})()}query_global_state(){var t=this;return S(function*(){return yield t.clientService.query_global_state()})()}sign_deploy(){var t=this;return S(function*(){return yield t.clientService.sign_deploy()})()}sign_transaction(){var t=this;return S(function*(){return yield t.clientService.sign_transaction()})()}speculative_deploy(){var t=this;return S(function*(){return yield t.clientService.speculative_deploy(t.wasm)})()}speculative_transaction(){var t=this;return S(function*(){return yield t.clientService.speculative_transaction(t.wasm)})()}speculative_exec_deploy(){var t=this;return S(function*(){return yield t.clientService.speculative_exec_deploy()})()}speculative_exec(){var t=this;return S(function*(){return yield t.clientService.speculative_exec()})()}speculative_transfer(){var t=this;return S(function*(){return yield t.clientService.speculative_transfer()})()}speculative_transfer_transaction(){var t=this;return S(function*(){return yield t.clientService.speculative_transfer_transaction()})()}transfer(t=!0,r){var i=this;return S(function*(){return yield i.clientService.transfer(t,r)})()}transfer_transaction(t=!0,r){var i=this;return S(function*(){return yield i.clientService.transfer_transaction(t,r)})()}static{this.\u0275fac=function(r){return new(r||n)(I(Qa),I(wr),I(vm),I(gA),I(Od),I(xn),I(ss),I(pc),I(fc))}}static{this.\u0275cmp=_t({type:n,selectors:[["app-root"]],viewQuery:function(r,i){if(1&r&&kt(tq,5),2&r){let o;Ft(o=Rt())&&(i.selectDictIdentifierElt=o.first)}},standalone:!0,features:[wt],decls:16,vars:8,consts:[[1,"container"],[3,"peers"],[3,"get_state_root_hash_output"],[1,"row","flex-column-reverse","flex-column-reverse","flex-md-row"],[1,"col-12","col-md-6","col-lg-5","my-1","my-md-0","d-flex","justify-content-between"],[1,"w-100",3,"select_action"],[3,"class","e2e","submit_action",4,"ngIf"],[1,"col-12","col-md-6","col-lg-7","my-1","my-md-0","d-flex","justify-content-end","ps-md-0"],[1,"input-group"],[1,"d-flex","justify-content-end","ms-1","ms-sm-2","ms-xl-3"],[3,"wasm_selected","form"],["type","button","class","btn",3,"class","click",4,"ngIf"],[3,"submit_action","e2e"],["type","button",1,"btn",3,"click"]],template:function(r,i){1&r&&(R(0,"main",0),mt(1,"comp-header",1),R(2,"comp-status",2),ee("get_state_root_hash_output",function(s){return i.get_state_root_hash(s)}),x(),R(3,"div",3)(4,"div",4)(5,"comp-action",5),ee("select_action",function(s){return i.selectAction(s)}),x(),ie(6,nq,2,3,"comp-submit-action",6),x(),R(7,"div",7),mt(8,"comp-public-key",8),R(9,"div",9),mt(10,"comp-secret-key"),x()()(),mt(11,"comp-error"),R(12,"comp-form",10),ee("wasm_selected",function(s){return i.onWasmSelected(s)}),x(),ie(13,rq,2,3,"comp-submit-action",6)(14,iq,2,3,"button",11),mt(15,"comp-result"),x()),2&r&&(O(),k("peers",i.peers),O(5),k("ngIf",!uu(5,ey).includes(i.action)),O(6),k("form",i.form),O(),k("ngIf",uu(6,ey).includes(i.action)),O(),k("ngIf",uu(7,ey).includes(i.action)))},dependencies:[Ye,gn,qi,oA,lA,dA,_A,fA,pA,hA,mA,yA],changeDetection:0})}}return n})(),Pd=Object.entries(Fn.networks).map(([n,e])=>({name:n,...e}));Em.production&&(Pd=Pd.filter(n=>"dev"!==n.name)),Fn.networks=Pd,Fn.network=Pd.find(n=>n.name==Em.default_network.toString()),function p$(n,e){return tH({rootComponent:n,...pI(e)})}(oq,{providers:[{provide:vm,useValue:Em},{provide:wr,useValue:Fn},{provide:RT,useValue:Fn.wasm_asset_path},{provide:xT,useValue:Fn.network?.rpc_address},{provide:OT,useValue:Qu[Fn.verbosity]},dw([Hz,J$,M5])]}).then(()=>{}).catch(()=>{})},7278:as=>{var yc=0;function On(S,Bt){var me=Bt.data;if(Array.isArray(me)&&!(me.length<2)){var yn=me[0],br=me[1],Dt=me[2],K=S._callbacks[yn];K&&(delete S._callbacks[yn],K(br,Dt))}}function Jr(S){var Bt=this;Bt._worker=S,Bt._callbacks={},S.addEventListener("message",function(me){On(Bt,me)})}Jr.prototype.postMessage=function(S){var Bt=this,me=yc++,yn=[me,S];return new Promise(function(br,Dt){if(Bt._callbacks[me]=function(Kr,Ld){if(Kr)return Dt(new Error(Kr.message));br(Ld)},typeof Bt._worker.controller<"u"){var K=new MessageChannel;K.port1.onmessage=function(Kr){On(Bt,Kr)},Bt._worker.controller.postMessage(yn,[K.port2])}else Bt._worker.postMessage(yn)})},as.exports=Jr}},as=>{as(as.s=5168)}]); \ No newline at end of file +"use strict";(self.webpackChunkcasper=self.webpackChunkcasper||[]).push([[792],{5168:(as,yc,On)=>{function Jr(n,e,t,r,i,o,s){try{var c=n[o](s),l=c.value}catch(u){return void t(u)}c.done?e(l):Promise.resolve(l).then(r,i)}function S(n){return function(){var e=this,t=arguments;return new Promise(function(r,i){var o=n.apply(e,t);function s(l){Jr(o,r,i,s,c,"next",l)}function c(l){Jr(o,r,i,s,c,"throw",l)}s(void 0)})}}function Bt(n,e){return Object.is(n,e)}let me=null,yn=!1,br=1;const Dt=Symbol("SIGNAL");function K(n){const e=me;return me=n,e}const wc={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Vd(n){if(yn)throw new Error("");if(null===me)return;me.consumerOnSignalRead(n);const e=me.nextProducerIndex++;Ec(me),en.nextProducerIndex;)n.producerNode.pop(),n.producerLastReadVersion.pop(),n.producerIndexOfThis.pop()}}function Bd(n){Ec(n);for(let e=0;e0}function Ec(n){n.producerNode??=[],n.producerIndexOfThis??=[],n.producerLastReadVersion??=[]}function sy(n){n.liveConsumerNode??=[],n.liveConsumerIndexOfThis??=[]}function ay(n){return void 0!==n.producerNode}const Ud=Symbol("UNSET"),zd=Symbol("COMPUTING"),Dc=Symbol("ERRORED"),vA={...wc,value:Ud,dirty:!0,error:null,equal:Bt,producerMustRecompute:n=>n.value===Ud||n.value===zd,producerRecomputeValue(n){if(n.value===zd)throw new Error("Detected cycle in computations.");const e=n.value;n.value=zd;const t=bc(n);let r;try{r=n.computation()}catch(i){r=Dc,n.error=i}finally{jd(n,t)}e!==Ud&&e!==Dc&&r!==Dc&&n.equal(e,r)?n.value=e:(n.value=r,n.version++)}};let cy=function EA(){throw new Error};function ly(){cy()}let Cc=null;function uy(n,e){ry()||ly(),n.equal(n.value,e)||(n.value=e,function TA(n){n.version++,function wA(){br++}(),ny(n),Cc?.()}(n))}const IA={...wc,equal:Bt,value:void 0};function He(n){return"function"==typeof n}function _y(n){const t=n(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const $d=_y(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function qd(n,e){if(n){const t=n.indexOf(e);0<=t&&n.splice(t,1)}}class an{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(He(r))try{r()}catch(o){e=o instanceof $d?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{hy(o)}catch(s){e=e??[],s instanceof $d?e=[...e,...s.errors]:e.push(s)}}if(e)throw new $d(e)}}add(e){var t;if(e&&e!==this)if(this.closed)hy(e);else{if(e instanceof an){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&qd(t,e)}remove(e){const{_finalizers:t}=this;t&&qd(t,e),e instanceof an&&e._removeParent(this)}}an.EMPTY=(()=>{const n=new an;return n.closed=!0,n})();const fy=an.EMPTY;function py(n){return n instanceof an||n&&"closed"in n&&He(n.remove)&&He(n.add)&&He(n.unsubscribe)}function hy(n){He(n)?n():n.unsubscribe()}const Zr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Sc={setTimeout(n,e,...t){const{delegate:r}=Sc;return r?.setTimeout?r.setTimeout(n,e,...t):setTimeout(n,e,...t)},clearTimeout(n){const{delegate:e}=Sc;return(e?.clearTimeout||clearTimeout)(n)},delegate:void 0};function gy(n){Sc.setTimeout(()=>{const{onUnhandledError:e}=Zr;if(!e)throw n;e(n)})}function my(){}const AA=Gd("C",void 0,void 0);function Gd(n,e,t){return{kind:n,value:e,error:t}}let Yr=null;function Ic(n){if(Zr.useDeprecatedSynchronousErrorHandling){const e=!Yr;if(e&&(Yr={errorThrown:!1,error:null}),n(),e){const{errorThrown:t,error:r}=Yr;if(Yr=null,t)throw r}}else n()}class Wd extends an{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,py(e)&&e.add(this)):this.destination=PA}static create(e,t,r){return new Kd(e,t,r)}next(e){this.isStopped?Zd(function kA(n){return Gd("N",n,void 0)}(e),this):this._next(e)}error(e){this.isStopped?Zd(function NA(n){return Gd("E",void 0,n)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Zd(AA,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const RA=Function.prototype.bind;function Jd(n,e){return RA.call(n,e)}class xA{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(r){Tc(r)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(r){Tc(r)}else Tc(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){Tc(t)}}}class Kd extends Wd{constructor(e,t,r){let i;if(super(),He(e)||!e)i={next:e??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&Zr.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Jd(e.next,o),error:e.error&&Jd(e.error,o),complete:e.complete&&Jd(e.complete,o)}):i=e}this.destination=new xA(i)}}function Tc(n){Zr.useDeprecatedSynchronousErrorHandling?function FA(n){Zr.useDeprecatedSynchronousErrorHandling&&Yr&&(Yr.errorThrown=!0,Yr.error=n)}(n):gy(n)}function Zd(n,e){const{onStoppedNotification:t}=Zr;t&&Sc.setTimeout(()=>t(n,e))}const PA={closed:!0,next:my,error:function OA(n){throw n},complete:my},Yd="function"==typeof Symbol&&Symbol.observable||"@@observable";function LA(n){return n}let Ht=(()=>{class n{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new n;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function jA(n){return n&&n instanceof Wd||function VA(n){return n&&He(n.next)&&He(n.error)&&He(n.complete)}(n)&&py(n)}(t)?t:new Kd(t,r,i);return Ic(()=>{const{operator:s,source:c}=this;o.add(s?s.call(o,c):c?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=wy(r))((i,o)=>{const s=new Kd({next:c=>{try{t(c)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Yd](){return this}pipe(...t){return function yy(n){return 0===n.length?LA:1===n.length?n[0]:function(t){return n.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=wy(t))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return n.create=e=>new n(e),n})();function wy(n){var e;return null!==(e=n??Zr.Promise)&&void 0!==e?e:Promise}const BA=_y(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Qr=(()=>{class n extends Ht{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new by(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new BA}next(t){Ic(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Ic(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Ic(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:o}=this;return r||i?fy:(this.currentObservers=null,o.push(t),new an(()=>{this.currentObservers=null,qd(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new Ht;return t.source=this,t}}return n.create=(e,t)=>new by(e,t),n})();class by extends Qr{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)}error(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:fy}}class Qd extends Qr{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:r}=this;if(e)throw t;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}}function Xr(n){return e=>{if(function HA(n){return He(n?.lift)}(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function vr(n,e,t,r,i){return new UA(n,e,t,r,i)}class UA extends Wd{constructor(e,t,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(c){try{t(c)}catch(l){e.error(l)}}:super._next,this._error=i?function(c){try{i(c)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function Er(n,e){return Xr((t,r)=>{let i=0;t.subscribe(vr(r,o=>{r.next(n.call(e,o,i++))}))})}typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const jy="https://g.co/ng/security#xss";class M extends Error{constructor(e,t){super(function Wi(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function nr(n){return{toString:n}.toString()}const Ki="__parameters__";function Yi(n,e,t){return nr(()=>{const r=function s_(n){return function(...t){if(n){const r=n(...t);for(const i in r)this[i]=r[i]}}}(e);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return c.annotation=s,c;function c(l,u,d){const _=l.hasOwnProperty(Ki)?l[Ki]:Object.defineProperty(l,Ki,{value:[]})[Ki];for(;_.length<=d;)_.push(null);return(_[d]=_[d]||[]).push(s),l}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}const Ne=globalThis;function we(n){for(let e in n)if(n[e]===we)return e;throw Error("Could not find renamed property on target object.")}function zN(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function Qe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Qe).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function a_(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const $N=we({__forward_ref__:we});function Se(n){return n.__forward_ref__=Se,n.toString=function(){return Qe(this())},n}function q(n){return Fc(n)?n():n}function Fc(n){return"function"==typeof n&&n.hasOwnProperty($N)&&n.__forward_ref__===Se}function G(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Pn(n){return{providers:n.providers||[],imports:n.imports||[]}}function Rc(n){return zy(n,Oc)||zy(n,$y)}function zy(n,e){return n.hasOwnProperty(e)?n[e]:null}function xc(n){return n&&(n.hasOwnProperty(c_)||n.hasOwnProperty(KN))?n[c_]:null}const Oc=we({\u0275prov:we}),c_=we({\u0275inj:we}),$y=we({ngInjectableDef:we}),KN=we({ngInjectorDef:we});class P{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=G({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function f_(n){return n&&!!n.\u0275providers}const us=we({\u0275cmp:we}),p_=we({\u0275dir:we}),h_=we({\u0275pipe:we}),rr=we({\u0275fac:we}),ds=we({__NG_ELEMENT_ID__:we}),Wy=we({__NG_ENV_ID__:we});function Z(n){return"string"==typeof n?n:null==n?"":String(n)}function g_(n,e){throw new M(-201,!1)}var se=function(n){return n[n.Default=0]="Default",n[n.Host=1]="Host",n[n.Self=2]="Self",n[n.SkipSelf=4]="SkipSelf",n[n.Optional=8]="Optional",n}(se||{});let m_;function Jy(){return m_}function Ut(n){const e=m_;return m_=n,e}function Ky(n,e,t){const r=Rc(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&se.Optional?null:void 0!==e?e:void g_()}const _s={},y_="__NG_DI_FLAG__",Pc="ngTempTokenPath",tk=/\n/gm,Zy="__source";let Qi;function Sr(n){const e=Qi;return Qi=n,e}function ik(n,e=se.Default){if(void 0===Qi)throw new M(-203,!1);return null===Qi?Ky(n,void 0,e):Qi.get(n,e&se.Optional?null:void 0,e)}function H(n,e=se.Default){return(Jy()||ik)(q(n),e)}function L(n,e=se.Default){return H(n,Lc(e))}function Lc(n){return typeof n>"u"||"number"==typeof n?n:(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function w_(n){const e=[];for(let t=0;tArray.isArray(t)?Xi(t,e):e(t))}function Qy(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Vc(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Qt(n,e,t){let r=eo(n,e);return r>=0?n[1|r]=t:(r=~r,function Xy(n,e,t,r){let i=n.length;if(i==e)n.push(t,r);else if(1===i)n.push(r,n[0]),n[0]=t;else{for(i--,n.push(n[i-1],n[i]);i>e;)n[i]=n[i-2],i--;n[e]=t,n[e+1]=r}}(n,r,e,t)),r}function D_(n,e){const t=eo(n,e);if(t>=0)return n[1|t]}function eo(n,e){return function ew(n,e,t){let r=0,i=n.length>>t;for(;i!==r;){const o=r+(i-r>>1),s=n[o<e?i=o:r=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?"":i[d+1].toLowerCase(),2&r&&u!==_){if(bn(r))return!1;s=!0}}}}else{if(!s&&!bn(r)&&!bn(l))return!1;if(s&&bn(l))continue;s=!1,r=l|1&r}}return bn(r)||s}function bn(n){return!(1&n)}function gk(n,e,t,r){if(null===e)return-1;let i=0;if(r||!t){let o=!1;for(;i-1)for(t++;t0?'="'+c+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!bn(s)&&(e+=aw(o,i),i=""),r=s,o=o||!bn(r);t++}return""!==i&&(e+=aw(o,i)),e}function _t(n){return nr(()=>{const e=lw(n),t={...e,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===Hc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||wn.Emulated,styles:n.styles||ce,_:null,schemas:n.schemas||null,tView:null,id:""};uw(t);const r=n.dependencies;return t.directiveDefs=Uc(r,!1),t.pipeDefs=Uc(r,!0),t.id=function Tk(n){let e=0;const t=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery].join("|");for(const i of t)e=Math.imul(31,e)+i.charCodeAt(0)|0;return e+=2147483648,"c"+e}(t),t})}function Ck(n){return re(n)||Xe(n)}function Sk(n){return null!==n}function ir(n){return nr(()=>({type:n.type,bootstrap:n.bootstrap||ce,declarations:n.declarations||ce,imports:n.imports||ce,exports:n.exports||ce,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function cw(n,e){if(null==n)return Ln;const t={};for(const r in n)if(n.hasOwnProperty(r)){const i=n[r];let o,s,c=Ir.None;Array.isArray(i)?(c=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(t[o]=c!==Ir.None?[r,c]:r,e[o]=s):t[o]=r}return t}function X(n){return nr(()=>{const e=lw(n);return uw(e),e})}function re(n){return n[us]||null}function Xe(n){return n[p_]||null}function at(n){return n[h_]||null}function lw(n){const e={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:n.inputs||Ln,exportAs:n.exportAs||null,standalone:!0===n.standalone,signals:!0===n.signals,selectors:n.selectors||ce,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:cw(n.inputs,e),outputs:cw(n.outputs),debugInfo:null}}function uw(n){n.features?.forEach(e=>e(n))}function Uc(n,e){if(!n)return null;const t=e?at:Ck;return()=>("function"==typeof n?n():n).map(r=>t(r)).filter(Sk)}function dw(...n){return{\u0275providers:T_(0,n),\u0275fromNgModule:!0}}function T_(n,...e){const t=[],r=new Set;let i;const o=s=>{t.push(s)};return Xi(e,s=>{const c=s;zc(c,o,[],r)&&(i||=[],i.push(c))}),void 0!==i&&_w(i,o),t}function _w(n,e){for(let t=0;t{e(o,r)})}}function zc(n,e,t,r){if(!(n=q(n)))return!1;let i=null,o=xc(n);const s=!o&&re(n);if(o||s){if(s&&!s.standalone)return!1;i=n}else{const l=n.ngModule;if(o=xc(l),!o)return!1;i=l}const c=r.has(i);if(s){if(c)return!1;if(r.add(i),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)zc(u,e,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!c){let u;r.add(i);try{Xi(o.imports,d=>{zc(d,e,t,r)&&(u||=[],u.push(d))})}finally{}void 0!==u&&_w(u,e)}if(!c){const u=ti(i)||(()=>new i);e({provide:i,useFactory:u,deps:ce},i),e({provide:C_,useValue:i,multi:!0},i),e({provide:Vn,useValue:()=>H(i),multi:!0},i)}const l=o.providers;if(null!=l&&!c){const u=n;M_(l,d=>{e(d,u)})}}}return i!==n&&void 0!==n.providers}function M_(n,e){for(let t of n)f_(t)&&(t=t.\u0275providers),Array.isArray(t)?M_(t,e):e(t)}const Mk=we({provide:String,useValue:we});function A_(n){return null!==n&&"object"==typeof n&&Mk in n}function ri(n){return"function"==typeof n}const N_=new P(""),$c={},Nk={};let k_;function qc(){return void 0===k_&&(k_=new Bc),k_}class cn{}class to extends cn{get destroyed(){return this._destroyed}constructor(e,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,R_(e,s=>this.processProvider(s)),this.records.set(tw,no(void 0,this)),i.has("environment")&&this.records.set(cn,no(void 0,this));const o=this.records.get(N_);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(C_,ce,se.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const e=K(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),K(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();const t=Sr(this),r=Ut(void 0);try{return e()}finally{Sr(t),Ut(r)}}get(e,t=_s,r=se.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Wy))return e[Wy](this);r=Lc(r);const o=Sr(this),s=Ut(void 0);try{if(!(r&se.SkipSelf)){let l=this.records.get(e);if(void 0===l){const u=function Ok(n){return"function"==typeof n||"object"==typeof n&&n instanceof P}(e)&&Rc(e);l=u&&this.injectableDefInScope(u)?no(F_(e),$c):null,this.records.set(e,l)}if(null!=l)return this.hydrate(e,l)}return(r&se.Self?qc():this.parent).get(e,t=r&se.Optional&&t===_s?null:t)}catch(c){if("NullInjectorError"===c.name){if((c[Pc]=c[Pc]||[]).unshift(Qe(e)),o)throw c;return function sk(n,e,t,r){const i=n[Pc];throw e[Zy]&&i.unshift(e[Zy]),n.message=function ak(n,e,t,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let i=Qe(e);if(Array.isArray(e))i=e.map(Qe).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let c=e[s];o.push(s+":"+("string"==typeof c?JSON.stringify(c):Qe(c)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${n.replace(tk,"\n ")}`}("\n"+n.message,i,t,r),n.ngTokenPath=i,n[Pc]=null,n}(c,e,"R3InjectorError",this.source)}throw c}finally{Ut(s),Sr(o)}}resolveInjectorInitializers(){const e=K(null),t=Sr(this),r=Ut(void 0);try{const o=this.get(Vn,ce,se.Self);for(const s of o)s()}finally{Sr(t),Ut(r),K(e)}}toString(){const e=[],t=this.records;for(const r of t.keys())e.push(Qe(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(e){let t=ri(e=q(e))?e:q(e&&e.provide);const r=function Fk(n){return A_(n)?no(void 0,n.useValue):no(hw(n),$c)}(e);if(!ri(e)&&!0===e.multi){let i=this.records.get(t);i||(i=no(void 0,$c,!0),i.factory=()=>w_(i.multi),this.records.set(t,i)),t=e,i.multi.push(e)}this.records.set(t,r)}hydrate(e,t){const r=K(null);try{return t.value===$c&&(t.value=Nk,t.value=t.factory()),"object"==typeof t.value&&t.value&&function xk(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{K(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;const t=q(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){const t=this._onDestroyHooks.indexOf(e);-1!==t&&this._onDestroyHooks.splice(t,1)}}function F_(n){const e=Rc(n),t=null!==e?e.factory:ti(n);if(null!==t)return t;if(n instanceof P)throw new M(204,!1);if(n instanceof Function)return function kk(n){if(n.length>0)throw new M(204,!1);const t=function JN(n){return n&&(n[Oc]||n[$y])||null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new M(204,!1)}function hw(n,e,t){let r;if(ri(n)){const i=q(n);return ti(i)||F_(i)}if(A_(n))r=()=>q(n.useValue);else if(function pw(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...w_(n.deps||[]));else if(function fw(n){return!(!n||!n.useExisting)}(n))r=()=>H(q(n.useExisting));else{const i=q(n&&(n.useClass||n.provide));if(!function Rk(n){return!!n.deps}(n))return ti(i)||F_(i);r=()=>new i(...w_(n.deps))}return r}function no(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function R_(n,e){for(const t of n)Array.isArray(t)?R_(t,e):t&&f_(t)?R_(t.\u0275providers,e):e(t)}const Fe=0,A=1,U=2,We=3,vn=4,ct=5,Ct=6,io=7,Ie=8,Je=9,jn=10,W=11,ms=12,ww=13,oo=14,Re=15,ii=16,so=17,or=18,ao=19,bw=20,Tr=21,Jc=22,ln=23,j=25,O_=1,Bn=7,co=9,Ue=10;var Zc=function(n){return n[n.None=0]="None",n[n.HasTransplantedViews=2]="HasTransplantedViews",n}(Zc||{});function tt(n){return Array.isArray(n)&&"object"==typeof n[O_]}function pt(n){return Array.isArray(n)&&!0===n[O_]}function P_(n){return!!(4&n.flags)}function oi(n){return n.componentOffset>-1}function Yc(n){return!(1&~n.flags)}function En(n){return!!n.template}function ws(n){return!!(512&n[U])}class Jk{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Cw(n,e,t,r){null!==e?e.applyValueToInputSignal(e,r):n[t]=r}function sr(){return Sw}function Sw(n){return n.type.prototype.ngOnChanges&&(n.setInput=Zk),Kk}function Kk(){const n=Tw(this),e=n?.current;if(e){const t=n.previous;if(t===Ln)n.previous=e;else for(let r in e)t[r]=e[r];n.current=null,this.ngOnChanges(e)}}function Zk(n,e,t,r,i){const o=this.declaredInputs[r],s=Tw(n)||function Yk(n,e){return n[Iw]=e}(n,{previous:Ln,current:null}),c=s.current||(s.current={}),l=s.previous,u=l[o];c[o]=new Jk(u&&u.currentValue,t,l===Ln),Cw(n,e,i,t)}sr.ngInherit=!0;const Iw="__ngSimpleChanges__";function Tw(n){return n[Iw]||null}const Hn=function(n,e,t){},Mw="svg";function le(n){for(;Array.isArray(n);)n=n[Fe];return n}function bs(n,e){return le(e[n])}function St(n,e){return le(e[n.index])}function vs(n,e){return n.data[e]}function Xt(n,e){const t=e[n];return tt(t)?t:t[Fe]}function H_(n){return!(128&~n[U])}function un(n,e){return null==e?null:n[e]}function Nw(n){n[so]=0}function kw(n){1024&n[U]||(n[U]|=1024,H_(n)&&Qc(n))}function Es(n){return!!(9216&n[U]||n[ln]?.dirty)}function U_(n){n[jn].changeDetectionScheduler?.notify(7),64&n[U]&&(n[U]|=1024),Es(n)&&Qc(n)}function Qc(n){n[jn].changeDetectionScheduler?.notify(0);let e=ar(n);for(;null!==e&&!(8192&e[U])&&(e[U]|=8192,H_(e));)e=ar(e)}function Xc(n,e){if(!(256&~n[U]))throw new M(911,!1);null===n[Tr]&&(n[Tr]=[]),n[Tr].push(e)}function ar(n){const e=n[We];return pt(e)?e[We]:e}const J={lFrame:$w(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Rw=!1;function xw(){return J.bindingsEnabled}function ai(){return null!==J.skipHydrationRootTNode}function T(){return J.lFrame.lView}function te(){return J.lFrame.tView}function _e(n){return J.lFrame.contextLView=n,n[Ie]}function fe(n){return J.lFrame.contextLView=null,n}function be(){let n=Ow();for(;null!==n&&64===n.type;)n=n.parent;return n}function Ow(){return J.lFrame.currentTNode}function Dn(n,e){const t=J.lFrame;t.currentTNode=n,t.isParent=e}function q_(){return J.lFrame.isParent}function G_(){J.lFrame.isParent=!1}function Vw(){return Rw}function jw(n){Rw=n}function It(){const n=J.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function Cn(){return J.lFrame.bindingIndex++}function lr(n){const e=J.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function dF(n,e){const t=J.lFrame;t.bindingIndex=t.bindingRootIndex=n,W_(e)}function W_(n){J.lFrame.currentDirectiveIndex=n}function K_(){return J.lFrame.currentQueryIndex}function tl(n){J.lFrame.currentQueryIndex=n}function fF(n){const e=n[A];return 2===e.type?e.declTNode:1===e.type?n[ct]:null}function Uw(n,e,t){if(t&se.SkipSelf){let i=e,o=n;for(;!(i=i.parent,null!==i||t&se.Host||(i=fF(o),null===i||(o=o[oo],10&i.type))););if(null===i)return!1;e=i,n=o}const r=J.lFrame=zw();return r.currentTNode=e,r.lView=n,!0}function Z_(n){const e=zw(),t=n[A];J.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function zw(){const n=J.lFrame,e=null===n?null:n.child;return null===e?$w(n):e}function $w(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function qw(){const n=J.lFrame;return J.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Gw=qw;function Y_(){const n=qw();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function lt(){return J.lFrame.selectedIndex}function ci(n){J.lFrame.selectedIndex=n}function Te(){const n=J.lFrame;return vs(n.tView,n.selectedIndex)}function nl(){J.lFrame.currentNamespace=Mw}let Kw=!0;function Cs(){return Kw}function Un(n){Kw=n}function rl(n,e){for(let t=e.directiveStart,r=e.directiveEnd;t=r)break}else e[l]<0&&(n[so]+=65536),(c>14>16&&(3&n[U])===e&&(n[U]+=16384,Yw(c,o)):Yw(c,o)}const lo=-1;class Ss{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}const ef={};class li{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,r){r=Lc(r);const i=this.injector.get(e,ef,r);return i!==ef||t===ef?i:this.parentInjector.get(e,t,r)}}function tf(n){return n!==lo}function Is(n){return 32767&n}function Ts(n,e){let t=function EF(n){return n>>16}(n),r=e;for(;t>0;)r=r[oo],t--;return r}let nf=!0;function sl(n){const e=nf;return nf=n,e}const Xw=255,eb=5;let CF=0;const zn={};function al(n,e){const t=tb(n,e);if(-1!==t)return t;const r=e[A];r.firstCreatePass&&(n.injectorIndex=e.length,rf(r.data,n),rf(e,null),rf(r.blueprint,null));const i=cl(n,e),o=n.injectorIndex;if(tf(i)){const s=Is(i),c=Ts(i,e),l=c[A].data;for(let u=0;u<8;u++)e[o+u]=c[s+u]|l[s+u]}return e[o+8]=i,o}function rf(n,e){n.push(0,0,0,0,0,0,0,0,e)}function tb(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function cl(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,r=null,i=e;for(;null!==i;){if(r=cb(i),null===r)return lo;if(t++,i=i[oo],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return lo}function sf(n,e,t){!function SF(n,e,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(ds)&&(r=t[ds]),null==r&&(r=t[ds]=CF++);const i=r&Xw;e.data[n+(i>>eb)]|=1<=0?e&Xw:AF:e}(t);if("function"==typeof o){if(!Uw(e,n,r))return r&se.Host?nb(i,0,r):rb(e,t,r,i);try{let s;if(s=o(r),null!=s||r&se.Optional)return s;g_()}finally{Gw()}}else if("number"==typeof o){let s=null,c=tb(n,e),l=lo,u=r&se.Host?e[Re][ct]:null;for((-1===c||r&se.SkipSelf)&&(l=-1===c?cl(n,e):e[c+8],l!==lo&&ab(r,!1)?(s=e[A],c=Is(l),e=Ts(l,e)):c=-1);-1!==c;){const d=e[A];if(sb(o,c,d.data)){const _=TF(c,e,t,s,r,u);if(_!==zn)return _}l=e[c+8],l!==lo&&ab(r,e[A].data[c+8]===u)&&sb(o,c,e)?(s=d,c=Is(l),e=Ts(l,e)):c=-1}}return i}function TF(n,e,t,r,i,o){const s=e[A],c=s.data[n+8],d=ll(c,s,t,null==r?oi(c)&&nf:r!=s&&!!(3&c.type),i&se.Host&&o===c);return null!==d?ui(e,s,d,c):zn}function ll(n,e,t,r,i){const o=n.providerIndexes,s=e.data,c=1048575&o,l=n.directiveStart,d=o>>20,f=i?c+d:n.directiveEnd;for(let p=r?c:c+d;p=l&&y.type===t)return p}if(i){const p=s[l];if(p&&En(p)&&p.type===t)return l}return null}function ui(n,e,t,r){let i=n[t];const o=e.data;if(function wF(n){return n instanceof Ss}(i)){const s=i;s.resolving&&function QN(n,e){throw e&&e.join(" > "),new M(-200,n)}(function pe(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Z(n)}(o[t]));const c=sl(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?Ut(s.injectImpl):null;Uw(n,r,se.Default);try{i=n[t]=s.factory(void 0,o,n,r),e.firstCreatePass&&t>=r.directiveStart&&function mF(n,e,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const s=Sw(e);(t.preOrderHooks??=[]).push(n,s),(t.preOrderCheckHooks??=[]).push(n,s)}i&&(t.preOrderHooks??=[]).push(0-n,i),o&&((t.preOrderHooks??=[]).push(n,o),(t.preOrderCheckHooks??=[]).push(n,o))}(t,o[t],e)}finally{null!==u&&Ut(u),sl(c),s.resolving=!1,Gw()}}return i}function sb(n,e,t){return!!(t[e+(n>>eb)]&1<{const e=n.prototype.constructor,t=e[rr]||af(e),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const o=i[rr]||af(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function af(n){return Fc(n)?()=>{const e=af(q(n));return e&&e()}:ti(n)}function cb(n){const e=n[A],t=e.type;return 2===t?e.declTNode:1===t?n[ct]:null}function fb(n,e=null,t=null,r){const i=function pb(n,e=null,t=null,r,i=new Set){const o=[t||ce,dw(n)];return r=r||("object"==typeof n?void 0:Qe(n)),new to(o,e||qc(),r||null,i)}(n,e,t,r);return i.resolveInjectorInitializers(),i}class rt{static{this.THROW_IF_NOT_FOUND=_s}static{this.NULL=new Bc}static create(e,t){if(Array.isArray(e))return fb({name:""},t,e,"");{const r=e.name??"";return fb({name:r},e.parent,e.providers,r)}}static{this.\u0275prov=G({token:rt,providedIn:"any",factory:()=>H(tw)})}static{this.__NG_ELEMENT_ID__=-1}}new P("").__NG_ELEMENT_ID__=n=>{const e=be();if(null===e)throw new M(204,!1);if(2&e.type)return e.value;if(n&se.Optional)return null;throw new M(204,!1)};function lf(n){return n.ngOriginalError}let Ms=(()=>{class n{static{this.__NG_ELEMENT_ID__=BF}static{this.__NG_ENV_ID__=t=>t}}return n})();class jF extends Ms{constructor(e){super(),this._lView=e}onDestroy(e){return Xc(this._lView,e),()=>function z_(n,e){if(null===n[Tr])return;const t=n[Tr].indexOf(e);-1!==t&&n[Tr].splice(t,1)}(this._lView,e)}}function BF(){return new jF(T())}let Mr=(()=>{class n{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Qd(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=G({token:n,providedIn:"root",factory:()=>new n})}}return n})();const ke=class HF extends Qr{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,function mw(){return void 0!==Jy()||null!=function rk(){return Qi}()}()&&(this.destroyRef=L(Ms,{optional:!0})??void 0,this.pendingTasks=L(Mr,{optional:!0})??void 0)}emit(e){const t=K(null);try{super.next(e)}finally{K(t)}}subscribe(e,t,r){let i=e,o=t||(()=>null),s=r;if(e&&"object"==typeof e){const l=e;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));const c=super.subscribe({next:i,error:o,complete:s});return e instanceof an&&e.add(c),c}wrapInTimeout(e){return t=>{const r=this.pendingTasks?.add();setTimeout(()=>{e(t),void 0!==r&&this.pendingTasks?.remove(r)})}}};function _l(...n){}function gb(n){let e,t;function r(){n=_l;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==e&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{n(),r()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{n(),r()})),()=>r()}function mb(n){return queueMicrotask(()=>n()),()=>{n=_l}}class ye{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ke(!1),this.onMicrotaskEmpty=new ke(!1),this.onStable=new ke(!1),this.onError=new ke(!1),typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.callbackScheduled=!1,function $F(n){const e=()=>{!function zF(n){n.isCheckStableRunning||n.callbackScheduled||(n.callbackScheduled=!0,Zone.root.run(()=>{gb(()=>{n.callbackScheduled=!1,df(n),n.isCheckStableRunning=!0,uf(n),n.isCheckStableRunning=!1})}),df(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,o,s,c)=>{if(function qF(n){return bb(n,"__ignore_ng_zone__")}(c))return t.invokeTask(i,o,s,c);try{return yb(n),t.invokeTask(i,o,s,c)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&e(),wb(n)}},onInvoke:(t,r,i,o,s,c,l)=>{try{return yb(n),t.invoke(i,o,s,c,l)}finally{n.shouldCoalesceRunChangeDetection&&!n.callbackScheduled&&!function GF(n){return bb(n,"__scheduler_tick__")}(c)&&e(),wb(n)}},onHasTask:(t,r,i,o)=>{t.hasTask(i,o),r===i&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,df(n),uf(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,r,i,o)=>(t.handleError(i,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ye.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(ye.isInAngularZone())throw new M(909,!1)}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,UF,_l,_l);try{return o.runTask(s,t,r)}finally{o.cancelTask(s)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const UF={};function uf(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function df(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&!0===n.callbackScheduled)}function yb(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function wb(n){n._nesting--,uf(n)}class _f{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ke,this.onMicrotaskEmpty=new ke,this.onStable=new ke,this.onError=new ke}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,i){return e.apply(t,r)}}function bb(n,e){return!(!Array.isArray(n)||1!==n.length)&&!0===n[0]?.data?.[e]}class Sn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&lf(e);for(;t&&lf(t);)t=lf(t);return t||null}}const JF=new P("",{providedIn:"root",factory:()=>{const n=L(ye),e=L(Sn);return t=>n.runOutsideAngular(()=>e.handleError(t))}});function KF(){return fo(be(),T())}function fo(n,e){return new dn(St(n,e))}let dn=(()=>{class n{constructor(t){this.nativeElement=t}static{this.__NG_ELEMENT_ID__=KF}}return n})();function Eb(n){return n instanceof dn?n.nativeElement:n}function ZF(){return this._results[Symbol.iterator]()}class ff{get changes(){return this._changes??=new ke}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=ff.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=ZF)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const r=function zt(n){return n.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function dk(n,e,t){if(n.length!==e.length)return!1;for(let r=0;ryR}),yR="ng",Ub=new P(""),di=new P("",{providedIn:"platform",factory:()=>"unknown"}),zb=new P("",{providedIn:"root",factory:()=>Ar().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let $b=()=>null;function Cf(n,e,t=!1){return $b(n,e,t)}const Qb=new P("",{providedIn:"root",factory:()=>!1});let El,Dl;function mo(n){return function Af(){if(void 0===El&&(El=null,Ne.trustedTypes))try{El=Ne.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return El}()?.createHTML(n)||n}function tv(n){return function Nf(){if(void 0===Dl&&(Dl=null,Ne.trustedTypes))try{Dl=Ne.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Dl}()?.createHTML(n)||n}class iv{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${jy})`}}function Nr(n){return n instanceof iv?n.changingThisBreaksApplicationSecurity:n}class VR{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(mo(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}}class jR{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){const t=this.inertDocument.createElement("template");return t.innerHTML=mo(e),t}}const HR=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ur(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function js(...n){const e={};for(const t of n)for(const r in t)t.hasOwnProperty(r)&&(e[r]=!0);return e}const sv=ur("area,br,col,hr,img,wbr"),av=ur("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),cv=ur("rp,rt"),Ff=js(sv,js(av,ur("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),js(cv,ur("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),js(cv,av)),Rf=ur("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),lv=js(Rf,ur("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ur("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),UR=ur("script,style,template");class zR{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,r=!0,i=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)i.push(t),t=GR(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=qR(t);if(o){t=o;break}t=i.pop()}return this.buf.join("")}startElement(e){const t=uv(e).toLowerCase();if(!Ff.hasOwnProperty(t))return this.sanitizedSomething=!0,!UR.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=e.attributes;for(let i=0;i"),!0}endElement(e){const t=uv(e).toLowerCase();Ff.hasOwnProperty(t)&&!sv.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(_v(e))}}function qR(n){const e=n.nextSibling;if(e&&n!==e.previousSibling)throw dv(e);return e}function GR(n){const e=n.firstChild;if(e&&function $R(n,e){return(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(n,e))throw dv(e);return e}function uv(n){const e=n.nodeName;return"string"==typeof e?e:"FORM"}function dv(n){return new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`)}const WR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,JR=/([^\#-~ |!])/g;function _v(n){return n.replace(/&/g,"&").replace(WR,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(JR,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Cl;function xf(n){return"content"in n&&function ZR(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var yo=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(yo||{});function fv(n){const e=function Bs(){const n=T();return n&&n[jn].sanitizer}();return e?tv(e.sanitize(yo.HTML,n)||""):function Vs(n,e){const t=function LR(n){return n instanceof iv&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see ${jy})`)}return t===e}(n,"HTML")?tv(Nr(n)):function KR(n,e){let t=null;try{Cl=Cl||function ov(n){const e=new jR(n);return function BR(){try{return!!(new window.DOMParser).parseFromString(mo(""),"text/html")}catch{return!1}}()?new VR(e):e}(n);let r=e?String(e):"";t=Cl.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=t.innerHTML,t=Cl.getInertBodyElement(r)}while(r!==o);return mo((new zR).sanitizeChildren(xf(t)||t))}finally{if(t){const r=xf(t)||t;for(;r.firstChild;)r.firstChild.remove()}}}(Ar(),Z(n))}const rx=/^>|^->||--!>|)/g,ox="\u200b$1\u200b";var kr=function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n}(kr||{});let Lf;function Vf(n,e){return Lf(n,e)}function bo(n,e,t,r,i){if(null!=r){let o,s=!1;pt(r)?o=r:tt(r)&&(s=!0,r=r[Fe]);const c=le(r);0===n&&null!==t?null==i?Mv(e,t,c):fi(e,t,c,i||null,!0):1===n&&null!==t?fi(e,t,c,i||null,!0):2===n?function Us(n,e,t){n.removeChild(null,e,t)}(e,c,s):3===n&&e.destroyNode(c),null!=o&&function Sx(n,e,t,r,i){const o=t[Bn];o!==le(t)&&bo(e,n,r,o,i);for(let c=Ue;ce.replace(ix,ox))}(e))}function Tl(n,e,t){return n.createElement(e,t)}function Sv(n,e){e[jn].changeDetectionScheduler?.notify(8),Nl(n,e,e[W],2,null,null)}function Iv(n,e){const t=n[co],r=e[We];(tt(r)||e[Re]!==r[We][Re])&&(n[U]|=Zc.HasTransplantedViews),null===t?n[co]=[e]:t.push(e)}function Hf(n,e){const t=n[co],r=t.indexOf(e);t.splice(r,1)}function Hs(n,e){if(n.length<=Ue)return;const t=Ue+e,r=n[t];if(r){const i=r[ii];null!==i&&i!==n&&Hf(i,r),e>0&&(n[t-1][vn]=r[vn]);const o=Vc(n,Ue+e);!function mx(n,e){Sv(n,e),e[Fe]=null,e[ct]=null}(r[A],r);const s=o[or];null!==s&&s.detachView(o[A]),r[We]=null,r[vn]=null,r[U]&=-129}return r}function Ml(n,e){if(!(256&e[U])){const t=e[W];t.destroyNode&&Nl(n,e,t,3,null,null),function wx(n){let e=n[ms];if(!e)return Uf(n[A],n);for(;e;){let t=null;if(tt(e))t=e[ms];else{const r=e[Ue];r&&(t=r)}if(!t){for(;e&&!e[vn]&&e!==n;)tt(e)&&Uf(e[A],e),e=e[We];null===e&&(e=n),tt(e)&&Uf(e[A],e),t=e&&e[vn]}e=t}}(e)}}function Uf(n,e){if(256&e[U])return;const t=K(null);try{e[U]&=-129,e[U]|=256,e[ln]&&Hd(e[ln]),function Ex(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),o+=2}else t[o].call(r[t[o+1]]);null!==r&&(e[io]=null);const i=e[Tr];if(null!==i){e[Tr]=null;for(let o=0;o-1){const{encapsulation:o}=n.data[r.directiveStart+i];if(o===wn.None||o===wn.Emulated)return null}return St(r,t)}}(n,e.parent,t)}function fi(n,e,t,r,i){n.insertBefore(e,t,r,i)}function Mv(n,e,t){n.appendChild(e,t)}function Av(n,e,t,r,i){null!==r?fi(n,e,t,r,i):Mv(n,e,t)}function $f(n,e){return n.parentNode(e)}function Nv(n,e,t){return Fv(n,e,t)}let qf,Fv=function kv(n,e,t){return 40&n.type?St(n,t):null};function Al(n,e,t,r){const i=zf(n,r,e),o=e[W],c=Nv(r.parent||e[ct],r,e);if(null!=i)if(Array.isArray(t))for(let l=0;lj&&jv(n,e,j,!1),Hn(s?2:0,i),t(r,i)}finally{ci(o),Hn(s?3:1,i)}}function Kf(n,e,t){if(P_(e)){const r=K(null);try{const o=e.directiveEnd;for(let s=e.directiveStart;snull;function $v(n,e,t,r,i){for(let o in e){if(!e.hasOwnProperty(o))continue;const s=e[o];if(void 0===s)continue;r??={};let c,l=Ir.None;Array.isArray(s)?(c=s[0],l=s[1]):c=s;let u=o;if(null!==i){if(!i.hasOwnProperty(o))continue;u=i[o]}0===n?qv(r,t,u,c,l):qv(r,t,u,c)}return r}function qv(n,e,t,r,i){let o;n.hasOwnProperty(t)?(o=n[t]).push(e,r):o=n[t]=[e,r],void 0!==i&&o.push(i)}function Wt(n,e,t,r,i,o,s,c){const l=St(e,t);let d,u=e.inputs;!c&&null!=u&&(d=u[r])?(rp(n,t,d,r,i),oi(e)&&function jx(n,e){const t=Xt(e,n);16&t[U]||(t[U]|=64)}(t,e.index)):3&e.type&&(r=function Vx(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=s?s(i,e.value||"",r):i,o.setProperty(l,r,i))}function Xf(n,e,t,r){if(xw()){const i=null===r?null:{"":-1},o=function qx(n,e){const t=n.directiveRegistry;let r=null,i=null;if(t)for(let o=0;o0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(s)!=c&&s.push(c),s.push(t,r,o)}}(n,e,r,zs(n,t,i.hostVars,Y),i)}function $n(n,e,t,r,i,o){const s=St(n,e);!function tp(n,e,t,r,i,o,s){if(null==o)n.removeAttribute(e,i,t);else{const c=null==s?Z(o):s(o,r||"",i);n.setAttribute(e,i,c,t)}}(e[W],s,o,n.value,t,r,i)}function Yx(n,e,t,r,i,o){const s=o[e];if(null!==s)for(let c=0;c0&&(t[i-1][vn]=e),r{Qc(n.lView)},consumerOnSignalRead(){this.lView[ln]=this}},aO={...wc,consumerIsAlwaysLive:!0,consumerMarkedDirty:n=>{let e=ar(n.lView);for(;e&&!n0(e[A]);)e=ar(e);e&&kw(e)},consumerOnSignalRead(){this.lView[ln]=this}};function n0(n){return 2!==n.type}const cO=100;function xl(n,e=!0,t=0){const r=n[jn],i=r.rendererFactory;i.begin?.();try{!function lO(n,e){const t=Vw();try{jw(!0),sp(n,e);let r=0;for(;Es(n);){if(r===cO)throw new M(103,!1);r++,sp(n,1)}}finally{jw(t)}}(n,t)}catch(s){throw e&&Rl(n,s),s}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function uO(n,e,t,r){const i=e[U];if(!(256&~i))return;e[jn].inlineEffectRunner?.flush(),Z_(e);let c=!0,l=null,u=null;n0(n)?(u=function nO(n){return n[ln]??function rO(n){const e=t0.pop()??Object.create(oO);return e.lView=n,e}(n)}(e),l=bc(u)):null===function Kr(){return me}()?(c=!1,u=function sO(n){const e=n[ln]??Object.create(aO);return e.lView=n,e}(e),l=bc(u)):e[ln]&&(Hd(e[ln]),e[ln]=null);try{Nw(e),function Bw(n){return J.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Hv(n,e,t,2,r);const d=!(3&~i);if(d){const p=n.preOrderCheckHooks;null!==p&&il(e,p,null)}else{const p=n.preOrderHooks;null!==p&&ol(e,p,0,null),Q_(e,0)}if(function dO(n){for(let e=Fb(n);null!==e;e=Rb(e)){if(!(e[U]&Zc.HasTransplantedViews))continue;const t=e[co];for(let r=0;r-1&&(Hs(e,r),Vc(t,r))}this._attachedToViewContainer=!1}Ml(this._lView[A],this._lView)}onDestroy(e){Xc(this._lView,e)}markForCheck(){qs(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[U]&=-129}reattach(){U_(this._lView),this._lView[U]|=128}detectChanges(){this._lView[U]|=1024,xl(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const e=ws(this._lView),t=this._lView[ii];null!==t&&!e&&Hf(t,this._lView),Sv(this._lView[A],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=e;const t=ws(this._lView),r=this._lView[ii];null!==r&&!t&&Iv(r,this._lView),U_(this._lView)}}let _r=(()=>{class n{static{this.__NG_ELEMENT_ID__=hO}}return n})();const fO=_r,pO=class extends fO{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,r){const i=vo(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:r});return new Gs(i)}};function hO(){return Ol(be(),T())}function Ol(n,e){return 4&n.type?new pO(e,n,fo(n,e)):null}let M0=()=>null;function yi(n,e){return M0(n,e)}class Co{}const ea=new P("",{providedIn:"root",factory:()=>!1}),A0=new P("");class aP{}class N0{}class lP{resolveComponentFactory(e){throw function cP(n){const e=Error(`No component factory found for ${Qe(n)}.`);return e.ngComponent=n,e}(e)}}class Hl{static{this.NULL=new lP}}class mp{}let wi=(()=>{class n{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function uP(){const n=T(),t=Xt(be().index,n);return(tt(t)?t:n)[W]}()}}return n})(),dP=(()=>{class n{static{this.\u0275prov=G({token:n,providedIn:"root",factory:()=>null})}}return n})();const F0=new Set;function Tt(n){F0.has(n)||(F0.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}let Ul=(()=>{class n{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const t=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of t)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=G({token:n,providedIn:"root",factory:()=>new n})}}return n})();function $l(n,e,t){let r=t?n.styles:null,i=t?n.classes:null,o=0;if(null!==e)for(let s=0;s0&&Lv(n,t,o.join(" "))}}(p,oe,w,r),void 0!==t&&function IP(n,e,t){const r=n.projection=[];for(let i=0;i{class n{static{this.__NG_ELEMENT_ID__=MP}}return n})();function MP(){return H0(be(),T())}const AP=qn,j0=class extends AP{constructor(e,t,r){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=r}get element(){return fo(this._hostTNode,this._hostLView)}get injector(){return new nt(this._hostTNode,this._hostLView)}get parentInjector(){const e=cl(this._hostTNode,this._hostLView);if(tf(e)){const t=Ts(e,this._hostLView),r=Is(e);return new nt(t[A].data[r+8],t)}return new nt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=B0(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-Ue}createEmbeddedView(e,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=yi(this._lContainer,e.ssrId),c=e.createEmbeddedViewImpl(t||{},o,s);return this.insertImpl(c,i,gi(this._hostTNode,s)),c}createComponent(e,t,r,i,o){const s=e&&!function gs(n){return"function"==typeof n}(e);let c;if(s)c=t;else{const y=t||{};c=y.index,r=y.injector,i=y.projectableNodes,o=y.environmentInjector||y.ngModuleRef}const l=s?e:new ra(re(e)),u=r||this.parentInjector;if(!o&&null==l.ngModule){const w=(s?u:this.parentInjector).get(cn,null);w&&(o=w)}const d=re(l.componentType??{}),_=yi(this._lContainer,d?.id??null),p=l.create(u,i,_?.firstChild??null,o);return this.insertImpl(p.hostView,c,gi(this._hostTNode,_)),p}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,r){const i=e._lView;if(function tF(n){return pt(n[We])}(i)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const l=i[We],u=new j0(l,l[ct],l[We]);u.detach(u.indexOf(e))}}const o=this._adjustIndex(t),s=this._lContainer;return Eo(s,i,o,r),e.attachToViewContainerRef(),Qy(vp(s),o,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=B0(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),r=Hs(this._lContainer,t);r&&(Vc(vp(this._lContainer),t),Ml(r[A],r))}detach(e){const t=this._adjustIndex(e,-1),r=Hs(this._lContainer,t);return r&&null!=Vc(vp(this._lContainer),t)?new Gs(r):null}_adjustIndex(e,t=0){return e??this.length+t}};function B0(n){return n[8]}function vp(n){return n[8]||(n[8]=[])}function H0(n,e){let t;const r=e[n.index];return pt(r)?t=r:(t=Jv(r,e,null,n),e[n.index]=t,Fl(e,t)),U0(t,e,n,r),new j0(t,n,e)}let U0=function $0(n,e,t,r){if(n[Bn])return;let i;i=8&t.type?le(r):function NP(n,e){const t=n[W],r=t.createComment(""),i=St(e,n);return fi(t,$f(t,i),r,function Dx(n,e){return n.nextSibling(e)}(t,i),!1),r}(e,t),n[Bn]=i},Ep=()=>!1;class Dp{constructor(e){this.queryList=e,this.matches=null}clone(){return new Dp(this.queryList)}setDirty(){this.queryList.setDirty()}}class Cp{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const r=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let o=0;oe.trim())}(e):e}}class Sp{constructor(e=[]){this.queries=e}elementStart(e,t){for(let r=0;r0)r.push(s[c/2]);else{const u=o[c+1],d=e[-l];for(let _=Ue;_(Vd(e),e.value);return t[Dt]=e,t}(n),r=t[Dt];return e?.equal&&(r.equal=e.equal),t.set=i=>uy(r,i),t.update=i=>function SA(n,e){ry()||ly(),uy(n,e(n.value))}(r,i),t.asReadonly=X0.bind(t),t}function X0(){const n=this[Dt];if(void 0===n.readonlyFn){const e=()=>this();e[Dt]=n,n.readonlyFn=e}return n.readonlyFn}function ve(n){let e=function dE(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const r=[n];for(;e;){let i;if(En(n))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new M(903,!1);i=e.\u0275dir}if(i){if(t){r.push(i);const s=n;s.inputs=Gl(n.inputs),s.inputTransforms=Gl(n.inputTransforms),s.declaredInputs=Gl(n.declaredInputs),s.outputs=Gl(n.outputs);const c=i.hostBindings;c&&XP(n,c);const l=i.viewQuery,u=i.contentQueries;if(l&&YP(n,l),u&&QP(n,u),KP(n,i),zN(n.outputs,i.outputs),En(i)&&i.data.animation){const d=n.data;d.animation=(d.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s=0;r--){const i=n[r];i.hostVars=e+=i.hostVars,i.hostAttrs=ps(i.hostAttrs,t=ps(t,i.hostAttrs))}}(r)}function KP(n,e){for(const t in e.inputs){if(!e.inputs.hasOwnProperty(t)||n.inputs.hasOwnProperty(t))continue;const r=e.inputs[t];if(void 0!==r&&(n.inputs[t]=r,n.declaredInputs[t]=e.declaredInputs[t],null!==e.inputTransforms)){const i=Array.isArray(r)?r[0]:r;if(!e.inputTransforms.hasOwnProperty(i))continue;n.inputTransforms??={},n.inputTransforms[i]=e.inputTransforms[i]}}}function Gl(n){return n===Ln?{}:n===ce?[]:n}function YP(n,e){const t=n.viewQuery;n.viewQuery=t?(r,i)=>{e(r,i),t(r,i)}:e}function QP(n,e){const t=n.contentQueries;n.contentQueries=t?(r,i,o)=>{e(r,i,o),t(r,i,o)}:e}function XP(n,e){const t=n.hostBindings;n.hostBindings=t?(r,i)=>{e(r,i),t(r,i)}:e}class vi{}class hE extends vi{constructor(e){super(),this.componentFactoryResolver=new L0(this),this.instance=null;const t=new to([...e.providers,{provide:vi,useValue:this},{provide:Hl,useValue:this.componentFactoryResolver}],e.parent||qc(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function Wl(n){return!!function Rp(n){return null!==n&&("function"==typeof n||"object"==typeof n)}(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function Gn(n,e,t){return n[e]=t}function ze(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function Ei(n,e,t,r){const i=ze(n,e,t);return ze(n,e+1,r)||i}function sa(n,e,t,r,i,o,s,c,l,u){const d=t+j,_=e.firstCreatePass?function fL(n,e,t,r,i,o,s,c,l){const u=e.consts,d=hi(e,n,4,s||null,c||null);Xf(e,t,d,un(u,l)),rl(e,d);const _=d.tView=Qf(2,d,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u,null);return null!==e.queries&&(e.queries.template(e,d),_.queries=e.queries.embeddedTView(d)),d}(d,e,n,r,i,o,s,c,l):e.data[d];Dn(_,!1);const f=mE(e,n,_,t);Cs()&&Al(e,n,f,_),gt(f,n);const p=Jv(f,n,f,_);return n[d]=p,Fl(n,p),function z0(n,e,t){return Ep(n,e,t)}(p,_,n),Yc(_)&&Zf(e,n,_),null!=l&&Yf(n,_,u),_}function ie(n,e,t,r,i,o,s,c){const l=T(),u=te();return sa(l,u,n,e,t,r,i,un(u.consts,o),s,c),ie}let mE=function yE(n,e,t,r){return Un(!0),e[W].createComment("")};function At(n,e,t,r){const i=T();return ze(i,Cn(),e)&&(te(),$n(Te(),i,n,e,t,r)),At}function Oo(n,e,t,r){return ze(n,Cn(),t)?e+Z(t)+r:Y}function Po(n,e,t,r,i,o){const c=Ei(n,function cr(){return J.lFrame.bindingIndex}(),t,i);return lr(2),c?e+Z(t)+r+Z(i)+o:Y}function eu(n,e){return n<<17|e<<2}function xr(n){return n>>17&32767}function $p(n){return 2|n}function Ci(n){return(131068&n)>>2}function qp(n,e){return-131069&n|e<<2}function Gp(n){return 1|n}function KE(n,e,t,r){const i=n[t+1],o=null===e;let s=r?xr(i):Ci(i),c=!1;for(;0!==s&&(!1===c||o);){const u=n[s+1];QL(n[s],e)&&(c=!0,n[s+1]=r?Gp(u):$p(u)),s=r?xr(u):Ci(u)}c&&(n[t+1]=r?$p(i):Gp(i))}function QL(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&eo(n,e)>=0}const it={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ZE(n){return n.substring(it.key,it.keyEnd)}function YE(n,e){const t=it.textEnd;return t===e?-1:(e=it.keyEnd=function n2(n,e,t){for(;e32;)e++;return e}(n,it.key=e,t),zo(n,e,t))}function zo(n,e,t){for(;e=0;t=YE(e,t))Qt(n,ZE(e),!0)}function rD(n,e){return e>=n.expandoStartIndex}function iD(n,e,t,r){const i=n.data;if(null===i[t+1]){const o=i[lt()],s=rD(n,t);cD(o,r)&&null===e&&!s&&(e=!1),e=function s2(n,e,t,r){const i=function J_(n){const e=J.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(t=ua(t=Jp(null,n,e,t,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||n[s]!==i)if(t=Jp(i,n,e,t,r),null===o){let l=function a2(n,e,t){const r=t?e.classBindings:e.styleBindings;if(0!==Ci(r))return n[xr(r)]}(n,e,r);void 0!==l&&Array.isArray(l)&&(l=Jp(null,n,e,l[1],r),l=ua(l,e.attrs,r),function c2(n,e,t,r){n[xr(t?e.classBindings:e.styleBindings)]=r}(n,e,r,l))}else o=function l2(n,e,t){let r;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(u=!0)):d=t,i)if(0!==l){const f=xr(n[c+1]);n[r+1]=eu(f,c),0!==f&&(n[f+1]=qp(n[f+1],r)),n[c+1]=function JL(n,e){return 131071&n|e<<17}(n[c+1],r)}else n[r+1]=eu(c,0),0!==c&&(n[c+1]=qp(n[c+1],r)),c=r;else n[r+1]=eu(l,0),0===c?c=r:n[l+1]=qp(n[l+1],r),l=r;u&&(n[r+1]=$p(n[r+1])),KE(n,d,r,!0),KE(n,d,r,!1),function YL(n,e,t,r,i){const o=i?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof e&&eo(o,e)>=0&&(t[r+1]=Gp(t[r+1]))}(e,d,n,r,o),s=eu(c,l),o?e.classBindings=s:e.styleBindings=s}(i,o,e,t,s,r)}}function Jp(n,e,t,r,i){let o=null;const s=t.directiveEnd;let c=t.directiveStylingLast;for(-1===c?c=t.directiveStart:c++;c0;){const l=n[i],u=Array.isArray(l),d=u?l[1]:l,_=null===d;let f=t[i+1];f===Y&&(f=_?ce:void 0);let p=_?D_(f,r):d===r?f:void 0;if(u&&!ru(p)&&(p=D_(l,r)),ru(p)&&(c=p,s))return c;const y=n[i+1];i=s?xr(y):Ci(y)}if(null!==e){let l=o?e.residualClasses:e.residualStyles;null!=l&&(c=D_(l,r))}return c}function ru(n){return void 0!==n}function cD(n,e){return!!(n.flags&(e?8:16))}function R(n,e,t,r){const i=T(),o=te(),s=j+n,c=i[W],l=o.firstCreatePass?function P2(n,e,t,r,i,o){const s=e.consts,l=hi(e,n,2,r,un(s,i));return Xf(e,t,l,un(s,o)),null!==l.attrs&&$l(l,l.attrs,!1),null!==l.mergedAttrs&&$l(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(s,o,i,e,t,r):o.data[s],u=_D(o,i,l,c,e,n);i[s]=u;const d=Yc(l);return Dn(l,!0),Vv(c,u,l),!function To(n){return!(32&~n.flags)}(l)&&Cs()&&Al(o,i,u,l),0===function nF(){return J.lFrame.elementDepthCount}()&>(u,i),function rF(){J.lFrame.elementDepthCount++}(),d&&(Zf(o,i,l),Kf(o,l,i)),null!==r&&Yf(i,l),R}function x(){let n=be();q_()?G_():(n=n.parent,Dn(n,!1));const e=n;(function oF(n){return J.skipHydrationRootTNode===n})(e)&&function lF(){J.skipHydrationRootTNode=null}(),function iF(){J.lFrame.elementDepthCount--}();const t=te();return t.firstCreatePass&&(rl(t,n),P_(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function bF(n){return!!(8&n.flags)}(e)&&Wp(t,e,T(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function vF(n){return!!(16&n.flags)}(e)&&Wp(t,e,T(),e.stylesWithoutHost,!1),x}function mt(n,e,t,r){return R(n,e,t,r),x(),mt}let _D=(n,e,t,r,i,o)=>(Un(!0),Tl(r,i,function Jw(){return J.lFrame.currentNamespace}()));function nn(n,e,t){const r=T(),i=te(),o=n+j,s=i.firstCreatePass?function j2(n,e,t,r,i){const o=e.consts,s=un(o,r),c=hi(e,n,8,"ng-container",s);return null!==s&&$l(c,s,!0),Xf(e,t,c,un(o,i)),null!==e.queries&&e.queries.elementStart(e,c),c}(o,i,r,e,t):i.data[o];Dn(s,!0);const c=fD(i,r,s,n);return r[o]=c,Cs()&&Al(i,r,c,s),gt(c,r),Yc(s)&&(Zf(i,r,s),Kf(i,s,r)),null!=t&&Yf(r,s),nn}function rn(){let n=be();const e=te();return q_()?G_():(n=n.parent,Dn(n,!1)),e.firstCreatePass&&(rl(e,n),P_(n)&&e.queries.elementEnd(n)),rn}function Si(n,e,t){return nn(n,e,t),rn(),Si}let fD=(n,e,t,r)=>(Un(!0),Bf(e[W],""));function xe(){return T()}const qo="en-US";let yD=qo;let LD=(n,e,t)=>{};function ee(n,e,t,r){const i=T(),o=te(),s=be();return function eh(n,e,t,r,i,o,s){const c=Yc(r),u=n.firstCreatePass&&Yv(n),d=e[Ie],_=Zv(e);let f=!0;if(3&r.type||s){const w=St(r,e),E=s?s(w):w,C=_.length,D=s?B=>s(le(B[r.index])):r.index;let N=null;if(!s&&c&&(N=function kV(n,e,t,r){const i=n.cleanup;if(null!=i)for(let o=0;ol?c[l]:null}"string"==typeof s&&(o+=2)}return null}(n,e,i,r.index)),null!==N)(N.__ngLastListenerFn__||N).__ngNextListenerFn__=o,N.__ngLastListenerFn__=o,f=!1;else{o=HD(r,e,d,o),LD(w,i,o);const B=t.listen(E,i,o);_.push(o,B),u&&u.push(i,D,C,C+1)}}else o=HD(r,e,d,o);const p=r.outputs;let y;if(f&&null!==p&&(y=p[i])){const w=y.length;if(w)for(let E=0;E-1?Xt(n.index,e):e,5);let c=BD(e,t,r,o),l=i.__ngNextListenerFn__;for(;l;)c=BD(e,t,l,o)&&c,l=l.__ngNextListenerFn__;return c}}function V(n=1){return function pF(n){return(J.lFrame.contextLView=function Fw(n,e){for(;n>0;)e=e[oo],n--;return e}(n,J.lFrame.contextLView))[Ie]}(n)}function FV(n,e){let t=null;const r=function mk(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(!(1&t))return e[t+1]}return null}(n);for(let i=0;i(Un(!0),function jf(n,e){return n.createText(e)}(e[W],r));function Mi(n){return yt("",n,""),Mi}function yt(n,e,t){const r=T(),i=Oo(r,n,e,t);return i!==Y&&dr(r,lt(),i),yt}function ga(n,e,t,r,i){const o=T(),s=Po(o,n,e,t,r,i);return s!==Y&&dr(o,lt(),s),ga}function ih(n,e,t,r,i){if(n=q(n),Array.isArray(n))for(let o=0;o>20;if(ri(n)||!n.multi){const p=new Ss(u,i,I),y=sh(l,e,i?d:d+f,_);-1===y?(sf(al(c,s),o,l),oh(o,n,e.length),e.push(l),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(p),s.push(p)):(t[y]=p,s[y]=p)}else{const p=sh(l,e,d+f,_),y=sh(l,e,d,d+f),E=y>=0&&t[y];if(i&&!E||!i&&!(p>=0&&t[p])){sf(al(c,s),o,l);const C=function tj(n,e,t,r,i){const o=new Ss(n,t,I);return o.multi=[],o.index=e,o.componentProviders=0,wC(o,i,r&&!t),o}(i?ej:XV,t.length,i,r,u);!i&&E&&(t[y].providerFactory=C),oh(o,n,e.length,0),e.push(l),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),t.push(C),s.push(C)}else oh(o,n,p>-1?p:y,wC(t[i?y:p],u,!i&&r));!i&&r&&E&&t[y].componentProviders++}}}function oh(n,e,t,r){const i=ri(e),o=function Ak(n){return!!n.useClass}(e);if(i||o){const l=(o?q(e.useClass):e).prototype.ngOnDestroy;if(l){const u=n.destroyHooks||(n.destroyHooks=[]);if(!i&&e.multi){const d=u.indexOf(t);-1===d?u.push(t,[r,l]):u[d+1].push(r,l)}else u.push(t,l)}}}function wC(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function sh(n,e,t,r){for(let i=t;i{t.providersResolver=(r,i)=>function QV(n,e,t){const r=te();if(r.firstCreatePass){const i=En(n);ih(t,r.data,r.blueprint,i,!0),ih(e,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,e)}}let nj=(()=>{class n{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=T_(0,t.type),i=r.length>0?function gE(n,e,t=null){return new hE({providers:n,parent:e,debugName:t,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=G({token:n,providedIn:"environment",factory:()=>new n(H(cn))})}}return n})();function wt(n){Tt("NgStandalone"),n.getStandaloneInjector=e=>e.get(nj).getOrCreateStandaloneInjector(n)}function uu(n,e,t){const r=It()+n,i=T();return i[r]===Y?Gn(i,r,t?e.call(t):e()):function oa(n,e){return n[e]}(i,r)}function Mn(n,e,t,r){return function DC(n,e,t,r,i,o){const s=e+t;return ze(n,s,i)?Gn(n,s+1,o?r.call(o,i):r(i)):ma(n,s+1)}(T(),It(),n,e,t,r)}function Go(n,e,t,r,i){return function CC(n,e,t,r,i,o,s){const c=e+t;return Ei(n,c,i,o)?Gn(n,c+2,s?r.call(s,i,o):r(i,o)):ma(n,c+2)}(T(),It(),n,e,t,r,i)}function EC(n,e,t,r,i,o){return function SC(n,e,t,r,i,o,s,c){const l=e+t;return function Jl(n,e,t,r,i){const o=Ei(n,e,t,r);return ze(n,e+2,i)||o}(n,l,i,o,s)?Gn(n,l+3,c?r.call(c,i,o,s):r(i,o,s)):ma(n,l+3)}(T(),It(),n,e,t,r,i,o)}function ma(n,e){const t=n[e];return t===Y?void 0:t}function Ai(n,e){return Ol(n,e)}const WC=new P("");function hu(n){return!!n&&"function"==typeof n.then}function JC(n){return!!n&&"function"==typeof n.subscribe}const KC=new P("");let gu=(()=>{class n{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=L(KC,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const o=i();if(hu(o))t.push(o);else if(JC(o)){const s=new Promise((c,l)=>{o.subscribe({complete:c,error:l})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const gh=new P("");let Kn=(()=>{class n{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=L(JF),this.afterRenderEffectManager=L(Ul),this.zonelessEnabled=L(ea),this.externalTestViews=new Set,this.beforeRender=new Qr,this.afterTick=new Qr,this.componentTypes=[],this.components=[],this.isStable=L(Mr).hasPendingTasks.pipe(Er(t=>!t)),this._injector=L(cn)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof N0;if(!this._injector.get(gu).done)throw!i&&function ni(n){const e=re(n)||Xe(n)||at(n);return null!==e&&e.standalone}(t),new M(405,!1);let s;s=i?t:this._injector.get(Hl).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const c=function fB(n){return n.isBoundToModule}(s)?void 0:this._injector.get(vi),u=s.create(rt.NULL,[],r||s.selector,c),d=u.location.nativeElement,_=u.injector.get(WC,null);return _?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),mu(this.components,u),_?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(t){if(this._runningTick)throw new M(101,!1);const r=K(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(t)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,K(r),this.afterTick.next()}}detectChangesInAttachedViews(t){let r=null;this._injector.destroyed||(r=this._injector.get(mp,null,{optional:!0}));let i=0;const o=this.afterRenderEffectManager;for(;i<10;){const s=0===i;if(t||!s){this.beforeRender.next(s);for(let{_lView:c,notifyErrorHandler:l}of this._views)hB(c,l,s,this.zonelessEnabled)}else r?.begin?.(),r?.end?.();if(i++,o.executeInternalCallbacks(),!this.allViews.some(({_lView:c})=>Es(c))&&(o.execute(),!this.allViews.some(({_lView:c})=>Es(c))))break}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;mu(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(gh,[]);[...this._bootstrapListeners,...r].forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>mu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new M(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function mu(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function hB(n,e,t,r){(t||Es(n))&&xl(n,e,t&&!r?0:1)}let wB=(()=>{class n{constructor(){this.zone=L(ye),this.changeDetectionScheduler=L(Co),this.applicationRef=L(Kn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function mh({ngZoneFactory:n,ignoreChangesOutsideZone:e}){return n??=()=>new ye(function yh(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}()),[{provide:ye,useFactory:n},{provide:Vn,multi:!0,useFactory:()=>{const t=L(wB,{optional:!0});return()=>t.initialize()}},{provide:Vn,multi:!0,useFactory:()=>{const t=L(vB);return()=>{t.initialize()}}},!0===e?{provide:A0,useValue:!0}:[]]}let vB=(()=>{class n{constructor(){this.subscription=new an,this.initialized=!1,this.zone=L(ye),this.pendingTasks=L(Mr)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ye.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ye.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),va=(()=>{class n{constructor(){this.appRef=L(Kn),this.taskService=L(Mr),this.ngZone=L(ye),this.zonelessEnabled=L(ea),this.disableScheduling=L(A0,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new an,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof _f||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 3:case 2:case 0:case 4:case 5:case 1:this.shouldRefreshViews=!0}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?mb:gb;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&ye.isInAngularZone())}tick(t){if(this.runningTick||this.appRef.destroyed)return;const r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(t)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(r),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,mb(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const fr=new P("",{providedIn:"root",factory:()=>L(fr,se.Optional|se.SkipSelf)||function EB(){return typeof $localize<"u"&&$localize.locale||qo}()}),bh=new P("");let Or=null;let on=(()=>{class n{static{this.__NG_ELEMENT_ID__=MB}}return n})();function MB(n){return function AB(n,e,t){if(oi(n)&&!t){const r=Xt(n.index,e);return new Gs(r,r)}return 175&n.type?new Gs(e[Re],e):null}(be(),T(),!(16&~n))}class d1{constructor(){}supports(e){return Wl(e)}create(e){return new xB(e)}}const RB=(n,e)=>e;class xB{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||RB}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,r=this._removalsHead,i=0,o=null;for(;t||r;){const s=!r||t&&t.currentIndex{s=this._trackByFn(i,c),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,c,s,i)),Object.is(t.item,c)||this._addIdentityChange(t,c)):(t=this._mismatch(t,c,s,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,r,i){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,i)):e=this._addAfter(new OB(t,r),o,i),e}_verifyReinsertion(e,t,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,o=e._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,t,r),this._addToMoves(e,r),e}_moveAfter(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e}_addAfter(e,t,r){return this._insertAfter(e,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,r){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new _1),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _1),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class OB{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class PB{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class _1{constructor(){this.map=new Map}put(e){const t=e.trackById;let r=this.map.get(t);r||(r=new PB,this.map.set(t,r)),r.add(e)}get(e,t){const i=this.map.get(e);return i?i.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function f1(n,e,t){const r=n.previousIndex;if(null===r)return r;let i=0;return t&&r{class n{static{this.\u0275prov=G({token:n,providedIn:"root",factory:h1})}constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||h1()),deps:[[n,new v_,new b_]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new M(901,!1)}}return n})();function tH(n){try{const{rootComponent:e,appProviders:t,platformProviders:r}=n,i=function TB(n=[]){if(Or)return Or;const e=function o1(n=[],e){return rt.create({name:e,providers:[{provide:N_,useValue:"platform"},{provide:bh,useValue:new Set([()=>Or=null])},...n]})}(n);return Or=e,function ZC(){!function DA(n){cy=n}(()=>{throw new M(600,!1)})}(),function s1(n){n.get(Ub,null)?.forEach(t=>t())}(e),e}(r),o=[mh({}),{provide:Co,useExisting:va},...t||[]],c=new hE({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,l=c.get(ye);return l.run(()=>{c.resolveInjectorInitializers();const u=c.get(Sn,null);let d;l.runOutsideAngular(()=>{d=l.onError.subscribe({next:p=>{u.handleError(p)}})});const _=()=>c.destroy(),f=i.get(bh);return f.add(_),c.onDestroy(()=>{d.unsubscribe(),f.delete(_)}),function YC(n,e,t){try{const r=t();return hu(r)?r.catch(i=>{throw e.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>n.handleError(r)),r}}(u,l,()=>{const p=c.get(gu);return p.runInitializers(),p.donePromise.then(()=>{!function wD(n){"string"==typeof n&&(yD=n.toLowerCase().replace(/_/g,"-"))}(c.get(fr,qo)||qo);const w=c.get(Kn);return void 0!==e&&w.bootstrap(e),w})})})}catch(e){return Promise.reject(e)}}const R1=new P("");function Sa(n,e){Tt("NgSignals");const t=function bA(n){const e=Object.create(vA);e.computation=n;const t=()=>{if(ty(e),Vd(e),e.value===Dc)throw e.error;return e.value};return t[Dt]=e,t}(n);return e?.equal&&(t[Dt].equal=e.equal),t}function Zn(n){const e=K(null);try{return n()}finally{K(e)}}function kh(n){return n[n.length-1]}function Pr(n){return this instanceof Pr?(this.v=n,this):new Pr(n)}function G1(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=function Oh(n){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=n[o]&&function(s){return new Promise(function(c,l){!function i(o,s,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},s)}(c,l,(s=n[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const W1=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function J1(n){return He(n?.then)}function K1(n){return He(n[Yd])}function Z1(n){return Symbol.asyncIterator&&He(n?.[Symbol.asyncIterator])}function Y1(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Q1=function r3(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function X1(n){return He(n?.[Q1])}function eS(n){return function q1(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(n,e||[]),o=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",function s(p){return function(y){return Promise.resolve(y).then(p,_)}}),i[Symbol.asyncIterator]=function(){return this},i;function c(p,y){r[p]&&(i[p]=function(w){return new Promise(function(E,C){o.push([p,w,E,C])>1||l(p,w)})},y&&(i[p]=y(i[p])))}function l(p,y){try{!function u(p){p.value instanceof Pr?Promise.resolve(p.value.v).then(d,_):f(o[0][2],p)}(r[p](y))}catch(w){f(o[0][3],w)}}function d(p){l("next",p)}function _(p){l("throw",p)}function f(p,y){p(y),o.shift(),o.length&&l(o[0][0],o[0][1])}}(this,arguments,function*(){const t=n.getReader();try{for(;;){const{value:r,done:i}=yield Pr(t.read());if(i)return yield Pr(void 0);yield yield Pr(r)}}finally{t.releaseLock()}})}function tS(n){return He(n?.getReader)}function ki(n){if(n instanceof Ht)return n;if(null!=n){if(K1(n))return function i3(n){return new Ht(e=>{const t=n[Yd]();if(He(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(W1(n))return function o3(n){return new Ht(e=>{for(let t=0;t{n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,gy)})}(n);if(Z1(n))return nS(n);if(X1(n))return function a3(n){return new Ht(e=>{for(const t of n)if(e.next(t),e.closed)return;e.complete()})}(n);if(tS(n))return function c3(n){return nS(eS(n))}(n)}throw Y1(n)}function nS(n){return new Ht(e=>{(function l3(n,e){var t,r,i,o;return function z1(n,e,t,r){return new(t||(t=Promise))(function(o,s){function c(d){try{u(r.next(d))}catch(_){s(_)}}function l(d){try{u(r.throw(d))}catch(_){s(_)}}function u(d){d.done?o(d.value):function i(o){return o instanceof t?o:new t(function(s){s(o)})}(d.value).then(c,l)}u((r=r.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){try{for(t=G1(n);!(r=yield t.next()).done;)if(e.next(r.value),e.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}e.complete()})})(n,e).catch(t=>e.error(t))})}function Lr(n,e,t,r=0,i=!1){const o=e.schedule(function(){t(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(o),!i)return o}function rS(n,e=0){return Xr((t,r)=>{t.subscribe(vr(r,i=>Lr(r,n,()=>r.next(i),e),()=>Lr(r,n,()=>r.complete(),e),i=>Lr(r,n,()=>r.error(i),e)))})}function iS(n,e=0){return Xr((t,r)=>{r.add(n.schedule(()=>t.subscribe(r),e))})}function oS(n,e){if(!n)throw new Error("Iterable cannot be null");return new Ht(t=>{Lr(t,e,()=>{const r=n[Symbol.asyncIterator]();Lr(t,e,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function Ph(n,e){return e?function h3(n,e){if(null!=n){if(K1(n))return function u3(n,e){return ki(n).pipe(iS(e),rS(e))}(n,e);if(W1(n))return function _3(n,e){return new Ht(t=>{let r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}(n,e);if(J1(n))return function d3(n,e){return ki(n).pipe(iS(e),rS(e))}(n,e);if(Z1(n))return oS(n,e);if(X1(n))return function f3(n,e){return new Ht(t=>{let r;return Lr(t,e,()=>{r=n[Q1](),Lr(t,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void t.error(s)}o?t.complete():t.next(i)},0,!0)}),()=>He(r?.return)&&r.return()})}(n,e);if(tS(n))return function p3(n,e){return oS(eS(n),e)}(n,e)}throw Y1(n)}(n,e):ki(n)}function sS(...n){return Ph(n,function NH(n){return function MH(n){return n&&He(n.schedule)}(kh(n))?n.pop():void 0}(n))}function Lh(n,e,t=1/0){return He(e)?Lh((r,i)=>Er((o,s)=>e(r,o,i,s))(ki(n(r,i))),t):("number"==typeof e&&(t=e),Xr((r,i)=>function g3(n,e,t,r,i,o,s,c){const l=[];let u=0,d=0,_=!1;const f=()=>{_&&!l.length&&!u&&e.complete()},p=w=>u{o&&e.next(w),u++;let E=!1;ki(t(w,d++)).subscribe(vr(e,C=>{i?.(C),o?p(C):e.next(C)},()=>{E=!0},void 0,()=>{if(E)try{for(u--;l.length&&uy(C)):y(C)}f()}catch(C){e.error(C)}}))};return n.subscribe(vr(e,p,()=>{_=!0,f()})),()=>{c?.()}}(r,i,n,t)))}function aS(n){return Xr((e,t)=>{try{e.subscribe(t)}finally{t.add(n)}})}let cS=null;function Ia(){return cS}class v3{}const fn=new P("");function mS(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}const Wh=/\s+/,yS=[];let gr=(()=>{class n{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=yS,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(Wh):yS}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(Wh):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const i=this.stateMap.get(t);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],i=t[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(Wh).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static{this.\u0275fac=function(r){return new(r||n)(I(dn),I(wi))}}static{this.\u0275dir=X({type:n,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return n})();class cU{constructor(e,t,r,i){this.$implicit=e,this.ngForOf=t,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ma=(()=>{class n{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,o,s)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new cU(i.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===o?void 0:o);else if(null!==o){const c=r.get(o);r.move(c,s),bS(c,i)}});for(let i=0,o=r.length;i{bS(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}static{this.\u0275fac=function(r){return new(r||n)(I(qn),I(_r),I(Ih))}}static{this.\u0275dir=X({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return n})();function bS(n,e){n.context.$implicit=e.item}let gn=(()=>{class n{constructor(t,r){this._viewContainer=t,this._context=new lU,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){vS("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){vS("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}static{this.\u0275fac=function(r){return new(r||n)(I(qn),I(_r))}}static{this.\u0275dir=X({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return n})();class lU{constructor(){this.$implicit=null,this.ngIf=null}}function vS(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Qe(e)}'.`)}let DS=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,r,i),get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static{this.\u0275fac=function(r){return new(r||n)(I(qn))}}static{this.\u0275dir=X({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[sr]})}}return n})(),Ye=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({})}}return n})();function IS(n){return"server"===n}class TS{}class Uu{}class zu{}class mn{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?"string"==typeof e?this.lazyInit=()=>{this.headers=new Map,e.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),o=i.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof mn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new mn;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof mn?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const o=e.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(c=>-1===o.indexOf(c)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(e,t){const r=(Array.isArray(t)?t:[t]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class dz{encodeKey(e){return LS(e)}encodeValue(e){return LS(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const fz=/%(\d[a-f0-9])/gi,pz={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function LS(n){return encodeURIComponent(n).replace(fz,(e,t)=>pz[t]??e)}function $u(n){return`${n}`}class Vr{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new dz,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function _z(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,c]=-1==o?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],l=t.get(s)||[];l.push(c),t.set(s,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const r=e.fromObject[t],i=Array.isArray(r)?r.map($u):[$u(r)];this.map.set(t,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(r=>{const i=e[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Vr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push($u(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const i=r.indexOf($u(e.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class hz{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function VS(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function jS(n){return typeof Blob<"u"&&n instanceof Blob}function BS(n){return typeof FormData<"u"&&n instanceof FormData}class ka{constructor(e,t,r,i){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function gz(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new mn,this.context??=new hz,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const c=t.indexOf("?");this.urlWithParams=t+(-1===c?"?":cf.set(p,e.setHeaders[p]),u)),e.setParams&&(d=Object.keys(e.setParams).reduce((f,p)=>f.set(p,e.setParams[p]),d)),new ka(t,r,s,{params:d,headers:u,context:_,reportProgress:l,responseType:i,withCredentials:c,transferCache:o})}}var jr=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(jr||{});class tg{constructor(e,t=200,r="OK"){this.headers=e.headers||new mn,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class qu extends tg{constructor(e={}){super(e),this.type=jr.ResponseHeader}clone(e={}){return new qu({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Fi extends tg{constructor(e={}){super(e),this.type=jr.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Fi({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Yo extends tg{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function ng(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}let bz=(()=>{class n{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof ka)o=t;else{let l,u;l=i.headers instanceof mn?i.headers:new mn(i.headers),i.params&&(u=i.params instanceof Vr?i.params:new Vr({fromObject:i.params})),o=new ka(t,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}const s=sS(o).pipe(function m3(n,e){return He(e)?Lh(n,e,1):Lh(n,1)}(l=>this.handler.handle(l)));if(t instanceof ka||"events"===i.observe)return s;const c=s.pipe(function y3(n,e){return Xr((t,r)=>{let i=0;t.subscribe(vr(r,o=>n.call(e,o,i++)&&r.next(o)))})}(l=>l instanceof Fi));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(Er(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(Er(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(Er(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return c.pipe(Er(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Vr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,ng(i,r))}post(t,r,i={}){return this.request("POST",t,ng(i,r))}put(t,r,i={}){return this.request("PUT",t,ng(i,r))}static{this.\u0275fac=function(r){return new(r||n)(H(Uu))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();const vz=/^\)\]\}',?\n/;function US(n){if(n.url)return n.url;const e="X-Request-URL".toLocaleLowerCase();return n.headers.get(e)}let rg=(()=>{class n{constructor(){this.fetchImpl=L(Dz,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=L(ye)}handle(t){return new Ht(r=>{const i=new AbortController;return this.doRequest(t,i.signal,r).then(ig,o=>r.error(new Yo({error:o}))),()=>i.abort()})}doRequest(t,r,i){var o=this;return S(function*(){const s=o.createRequestInit(t);let c;try{const y=o.ngZone.runOutsideAngular(()=>o.fetchImpl(t.urlWithParams,{signal:r,...s}));(function Cz(n){n.then(ig,ig)})(y),i.next({type:jr.Sent}),c=yield y}catch(y){return void i.error(new Yo({error:y,status:y.status??0,statusText:y.statusText,url:t.urlWithParams,headers:y.headers}))}const l=new mn(c.headers),u=c.statusText,d=US(c)??t.urlWithParams;let _=c.status,f=null;if(t.reportProgress&&i.next(new qu({headers:l,status:_,statusText:u,url:d})),c.body){const y=c.headers.get("content-length"),w=[],E=c.body.getReader();let D,N,C=0;const B=typeof Zone<"u"&&Zone.current;yield o.ngZone.runOutsideAngular(S(function*(){for(;;){const{done:oe,value:Be}=yield E.read();if(oe)break;if(w.push(Be),C+=Be.length,t.reportProgress){N="text"===t.responseType?(N??"")+(D??=new TextDecoder).decode(Be,{stream:!0}):void 0;const jt=()=>i.next({type:jr.DownloadProgress,total:y?+y:void 0,loaded:C,partialText:N});B?B.run(jt):jt()}}}));const Q=o.concatChunks(w,C);try{const oe=c.headers.get("Content-Type")??"";f=o.parseBody(t,Q,oe)}catch(oe){return void i.error(new Yo({error:oe,headers:new mn(c.headers),status:c.status,statusText:c.statusText,url:US(c)??t.urlWithParams}))}}0===_&&(_=f?200:0),_>=200&&_<300?(i.next(new Fi({body:f,headers:l,status:_,statusText:u,url:d})),i.complete()):i.error(new Yo({error:f,headers:l,status:_,statusText:u,url:d}))})()}parseBody(t,r,i){switch(t.responseType){case"json":const o=(new TextDecoder).decode(r).replace(vz,"");return""===o?null:JSON.parse(o);case"text":return(new TextDecoder).decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(t){const r={},i=t.withCredentials?"include":void 0;if(t.headers.forEach((o,s)=>r[o]=s.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){const o=t.detectContentTypeHeader();null!==o&&(r["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:i}}concatChunks(t,r){const i=new Uint8Array(r);let o=0;for(const s of t)i.set(s,o),o+=s.length;return i}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();class Dz{}function ig(){}function zS(n,e){return e(n)}function Sz(n,e){return(t,r)=>e.intercept(t,{handle:i=>n(i,r)})}const Tz=new P(""),Fa=new P(""),$S=new P(""),qS=new P("",{providedIn:"root",factory:()=>!0});function Mz(){let n=null;return(e,t)=>{null===n&&(n=(L(Tz,{optional:!0})??[]).reduceRight(Sz,zS));const r=L(Mr);if(L(qS)){const o=r.add();return n(e,t).pipe(aS(()=>r.remove(o)))}return n(e,t)}}let GS=(()=>{class n extends Uu{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=L(Mr),this.contributeToStability=L(qS)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Fa),...this.injector.get($S,[])]));this.chain=r.reduceRight((i,o)=>function Iz(n,e,t){return(r,i)=>function gw(n,e){n instanceof to&&n.assertNotDestroyed();const r=Sr(n),i=Ut(void 0);try{return e()}finally{Sr(r),Ut(i)}}(t,()=>e(r,o=>n(o,i)))}(i,o,this.injector),zS)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(aS(()=>this.pendingTasks.remove(r)))}return this.chain(t,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||n)(H(zu),H(cn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();const Rz=/^\)\]\}',?\n/;let JS=(()=>{class n{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new M(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Ph(r.\u0275loadImpl()):sS(null)).pipe(function w3(n,e){return Xr((t,r)=>{let i=null,o=0,s=!1;const c=()=>s&&!i&&r.complete();t.subscribe(vr(r,l=>{i?.unsubscribe();let u=0;const d=o++;ki(n(l,d)).subscribe(i=vr(r,_=>r.next(e?e(l,_,d,u++):_),()=>{i=null,c()}))},()=>{s=!0,c()}))})}(()=>new Ht(o=>{const s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((w,E)=>s.setRequestHeader(w,E.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const w=t.detectContentTypeHeader();null!==w&&s.setRequestHeader("Content-Type",w)}if(t.responseType){const w=t.responseType.toLowerCase();s.responseType="json"!==w?w:"text"}const c=t.serializeBody();let l=null;const u=()=>{if(null!==l)return l;const w=s.statusText||"OK",E=new mn(s.getAllResponseHeaders()),C=function xz(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(s)||t.url;return l=new qu({headers:E,status:s.status,statusText:w,url:C}),l},d=()=>{let{headers:w,status:E,statusText:C,url:D}=u(),N=null;204!==E&&(N=typeof s.response>"u"?s.responseText:s.response),0===E&&(E=N?200:0);let B=E>=200&&E<300;if("json"===t.responseType&&"string"==typeof N){const Q=N;N=N.replace(Rz,"");try{N=""!==N?JSON.parse(N):null}catch(oe){N=Q,B&&(B=!1,N={error:oe,text:N})}}B?(o.next(new Fi({body:N,headers:w,status:E,statusText:C,url:D||void 0})),o.complete()):o.error(new Yo({error:N,headers:w,status:E,statusText:C,url:D||void 0}))},_=w=>{const{url:E}=u(),C=new Yo({error:w,status:s.status||0,statusText:s.statusText||"Unknown Error",url:E||void 0});o.error(C)};let f=!1;const p=w=>{f||(o.next(u()),f=!0);let E={type:jr.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(E.total=w.total),"text"===t.responseType&&s.responseText&&(E.partialText=s.responseText),o.next(E)},y=w=>{let E={type:jr.UploadProgress,loaded:w.loaded};w.lengthComputable&&(E.total=w.total),o.next(E)};return s.addEventListener("load",d),s.addEventListener("error",_),s.addEventListener("timeout",_),s.addEventListener("abort",_),t.reportProgress&&(s.addEventListener("progress",p),null!==c&&s.upload&&s.upload.addEventListener("progress",y)),s.send(c),o.next({type:jr.Sent}),()=>{s.removeEventListener("error",_),s.removeEventListener("abort",_),s.removeEventListener("load",d),s.removeEventListener("timeout",_),t.reportProgress&&(s.removeEventListener("progress",p),null!==c&&s.upload&&s.upload.removeEventListener("progress",y)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||n)(H(TS))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();const og=new P(""),KS=new P("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),ZS=new P("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class YS{}let Lz=(()=>{class n{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=mS(t,this.cookieName),this.lastCookieString=t),this.lastToken}static{this.\u0275fac=function(r){return new(r||n)(H(fn),H(di),H(KS))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();function Vz(n,e){const t=n.url.toLowerCase();if(!L(og)||"GET"===n.method||"HEAD"===n.method||t.startsWith("http://")||t.startsWith("https://"))return e(n);const r=L(YS).getToken(),i=L(ZS);return null!=r&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,r)})),e(n)}var Br=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(Br||{});function Ri(n,e){return{\u0275kind:n,\u0275providers:e}}function jz(...n){const e=[bz,JS,GS,{provide:Uu,useExisting:GS},{provide:zu,useFactory:()=>L(rg,{optional:!0})??L(JS)},{provide:Fa,useValue:Vz,multi:!0},{provide:og,useValue:!0},{provide:YS,useClass:Lz}];for(const t of n)e.push(...t.\u0275providers);return function hs(n){return{\u0275providers:n}}(e)}const QS=new P("");let Hz=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({providers:[jz(Ri(Br.LegacyInterceptors,[{provide:QS,useFactory:Mz},{provide:Fa,useExisting:QS,multi:!0}]))]})}}return n})();class Zz extends v3{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class sg extends Zz{static makeCurrent(){!function b3(n){cS??=n}(new sg)}onAndCancel(e,t,r){return e.addEventListener(t,r),()=>{e.removeEventListener(t,r)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.remove()}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function Yz(){return Ra=Ra||document.querySelector("base"),Ra?Ra.getAttribute("href"):null}();return null==t?null:function Qz(n){return new URL(n,document.baseURI).pathname}(t)}resetBaseElement(){Ra=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return mS(document.cookie,e)}}let Ra=null,e$=(()=>{class n{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();const Wu=new P("");let sI=(()=>{class n{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(t,r),r}static{this.\u0275fac=function(r){return new(r||n)(H(Wu),H(ye))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();class ag{constructor(e){this._doc=e}}const cg="ng-app-id";let aI=(()=>{class n{constructor(t,r,i,o={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=IS(o),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(i=>i.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${cg}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(t,r){const i=this.styleRef;if(i.has(t)){const o=i.get(t);return o.usage+=r,o.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===t)return i.delete(r),o.removeAttribute(cg),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(cg,this.appId),t.appendChild(s),s}}addStyleToHost(t,r){const i=this.getStyleElement(t,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||n)(H(fn),H(Fs),H(zb,8),H(di))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();const lg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},ug=/%COMP%/g,i$=new P("",{providedIn:"root",factory:()=>!0});function lI(n,e){return e.map(t=>t.replace(ug,n))}let uI=(()=>{class n{constructor(t,r,i,o,s,c,l,u=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=IS(c),this.defaultRenderer=new dg(t,s,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===wn.ShadowDom&&(r={...r,encapsulation:wn.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof _I?i.applyToHost(t):i instanceof _g&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,_=this.platformIsServer;switch(r.encapsulation){case wn.Emulated:o=new _I(l,u,r,this.appId,d,s,c,_);break;case wn.ShadowDom:return new c$(l,u,t,r,s,c,this.nonce,_);default:o=new _g(l,u,r,d,s,c,_)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||n)(H(sI),H(aI),H(Fs),H(i$),H(fn),H(di),H(ye),H(zb))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();class dg{constructor(e,t,r,i){this.eventManager=e,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,t){return t?this.doc.createElementNS(lg[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(dI(e)?e.content:e).appendChild(t)}insertBefore(e,t,r){e&&(dI(e)?e.content:e).insertBefore(t,r)}removeChild(e,t){t.remove()}selectRootElement(e,t){let r="string"==typeof e?this.doc.querySelector(e):e;if(!r)throw new M(-5104,!1);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,i){if(i){t=i+":"+t;const o=lg[i];o?e.setAttributeNS(o,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const i=lg[r];i?e.removeAttributeNS(i,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,r,i){i&(kr.DashCase|kr.Important)?e.style.setProperty(t,r,i&kr.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&kr.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){null!=e&&(e[t]=r)}setValue(e,t){e.nodeValue=t}listen(e,t,r){if("string"==typeof e&&!(e=Ia().getGlobalEventTarget(this.doc,e)))throw new Error(`Unsupported event target ${e} for event ${t}`);return this.eventManager.addEventListener(e,t,this.decoratePreventDefault(r))}decoratePreventDefault(e){return t=>{if("__ngUnwrap__"===t)return e;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))&&t.preventDefault()}}}function dI(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class c$ extends dg{constructor(e,t,r,i,o,s,c,l){super(e,o,s,l),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=lI(i.id,i.styles);for(const d of u){const _=document.createElement("style");c&&_.setAttribute("nonce",c),_.textContent=d,this.shadowRoot.appendChild(_)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,r){return super.insertBefore(this.nodeOrShadowRoot(e),t,r)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class _g extends dg{constructor(e,t,r,i,o,s,c,l){super(e,o,s,c),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=l?lI(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class _I extends _g{constructor(e,t,r,i,o,s,c,l){const u=i+"-"+r.id;super(e,t,r,o,s,c,l,u),this.contentAttr=function o$(n){return"_ngcontent-%COMP%".replace(ug,n)}(u),this.hostAttr=function s$(n){return"_nghost-%COMP%".replace(ug,n)}(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}let l$=(()=>{class n extends ag{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||n)(H(fn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})(),u$=(()=>{class n extends ag{constructor(t){super(t),this.delegate=L(R1,{optional:!0})}supports(t){return!!this.delegate&&this.delegate.supports(t)}addEventListener(t,r,i){return this.delegate.addEventListener(t,r,i)}removeEventListener(t,r,i){return this.delegate.removeEventListener(t,r,i)}static{this.\u0275fac=function(r){return new(r||n)(H(fn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})();const fI=["alt","control","meta","shift"],d$={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},_$={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};function pI(n){return{appProviders:[...b$,...n?.providers??[]],platformProviders:y$}}const y$=[{provide:di,useValue:"browser"},{provide:Ub,useValue:function h$(){sg.makeCurrent()},multi:!0},{provide:fn,useFactory:function m$(){return function mR(n){mf=n}(document),document},deps:[]}],b$=[{provide:N_,useValue:"root"},{provide:Sn,useFactory:function g$(){return new Sn},deps:[]},{provide:Wu,useClass:l$,multi:!0,deps:[fn,ye,di]},{provide:Wu,useClass:(()=>{class n extends ag{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,r,i){const o=n.parseEventName(r),s=n.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ia().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=n._normalizeKey(r.pop());let s="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),s="code."),fI.forEach(u=>{const d=r.indexOf(u);d>-1&&(r.splice(d,1),s+=u+".")}),s+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(t,r){let i=d$[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),fI.forEach(s=>{s!==i&&(0,_$[s])(t)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{n.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static{this.\u0275fac=function(r){return new(r||n)(H(fn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac})}}return n})(),multi:!0,deps:[fn]},{provide:Wu,useClass:u$,multi:!0},uI,aI,sI,{provide:mp,useExisting:uI},{provide:TS,useClass:e$,deps:[]},[]];let a;const mI=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&mI.decode();let xa=null;function Qo(){return(null===xa||0===xa.byteLength)&&(xa=new Uint8Array(a.memory.buffer)),xa}function v(n,e){return n>>>=0,mI.decode(Qo().subarray(n,n+e))}let h=0;const Ku=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},C$="function"==typeof Ku.encodeInto?function(n,e){return Ku.encodeInto(n,e)}:function(n,e){const t=Ku.encode(n);return e.set(t),{read:n.length,written:t.length}};function g(n,e,t){if(void 0===t){const c=Ku.encode(n),l=e(c.length,1)>>>0;return Qo().subarray(l,l+c.length).set(c),h=c.length,l}let r=n.length,i=e(r,1)>>>0;const o=Qo();let s=0;for(;s127)break;o[i+s]=c}if(s!==r){0!==s&&(n=n.slice(s)),i=t(i,r,r=s+3*n.length,1)>>>0;const c=Qo().subarray(i+s,i+r);s+=C$(n,c).written,i=t(i,r,s,1)>>>0}return h=s,i}function m(n){return null==n}let Oi=null;function Hr(){return(null===Oi||!0===Oi.buffer.detached||void 0===Oi.buffer.detached&&Oi.buffer!==a.memory.buffer)&&(Oi=new DataView(a.memory.buffer)),Oi}function fg(n){const e=typeof n;if("number"==e||"boolean"==e||null==n)return`${n}`;if("string"==e)return`"${n}"`;if("symbol"==e){const i=n.description;return null==i?"Symbol":`Symbol(${i})`}if("function"==e){const i=n.name;return"string"==typeof i&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(n)){const i=n.length;let o="[";i>0&&(o+=fg(n[0]));for(let s=1;s1))return toString.call(n);if(r=t[1],"Object"==r)try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}\n${n.stack}`:r}const yI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>{a.__wbindgen_export_3.get(n.dtor)(n.a,n.b)});function wI(n,e,t,r){const i={a:n,b:e,cnt:1,dtor:t},o=(...s)=>{i.cnt++;const c=i.a;i.a=0;try{return r(c,i.b,...s)}finally{0==--i.cnt?(a.__wbindgen_export_3.get(i.dtor)(c,i.b),yI.unregister(i)):i.a=c}};return o.original=i,yI.register(o,i,i),o}function S$(n,e,t){a.closure1017_externref_shim(n,e,t)}function I$(n,e,t){a.closure1027_externref_shim(n,e,t)}function b(n,e){if(!(n instanceof e))throw new Error(`expected instance of ${e.name}`);return n.ptr}function F(n){const e=a.__wbindgen_export_2.get(n);return a.__externref_table_dealloc(n),e}function Pt(n,e){const t=e(1*n.length,1)>>>0;return Qo().set(n,t/1),h=n.length,t}function Pi(n){const e=a.__externref_table_alloc();return a.__wbindgen_export_2.set(e,n),e}function Zu(n,e){const t=e(4*n.length,4)>>>0,r=Hr();for(let i=0;i{throw new Error(`${n} is not defined`)}}function ue(n,e){try{return n.apply(this,e)}catch(t){const r=Pi(t);a.__wbindgen_exn_store(r)}}function kn(n,e){const t=a.jsonPrettyPrint(n,m(e)?3:e);if(t[2])throw F(t[1]);return F(t[0])}function Yu(){return a.getTimestamp()}const mr=Object.freeze({Fixed:0,0:"Fixed",Classic:1,1:"Classic",Reserved:2,2:"Reserved"}),Qu=(Object.freeze({InvocableEntity:0,0:"InvocableEntity",InvocableEntityAlias:1,1:"InvocableEntityAlias",Package:2,2:"Package",PackageAlias:3,3:"PackageAlias",Session:4,4:"Session",Transfer:5,5:"Transfer",AddBid:6,6:"AddBid",Delegate:7,7:"Delegate",Undelegate:8,8:"Undelegate",Redelegate:9,9:"Redelegate",WithdrawBid:10,10:"WithdrawBid"}),Object.freeze({PublicKey:0,0:"PublicKey",AccountHash:1,1:"AccountHash",URef:2,2:"URef"}),Object.freeze({Low:0,0:"Low",Medium:1,1:"Medium",High:2,2:"High"})),R$=["omit","same-origin","include"],x$=["same-origin","no-cors","cors","navigate"];typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_accessrights_free(n>>>0,1));const yg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_accounthash_free(n>>>0,1));class ut{static __wrap(e){e>>>=0;const t=Object.create(ut.prototype);return t.__wbg_ptr=e,yg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,yg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_accounthash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.accounthash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,yg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.accounthash_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return ut.__wrap(i[0])}static fromPublicKey(e){b(e,Ee);var t=e.__destroy_into_raw();const r=a.accounthash_fromPublicKey(t);return ut.__wrap(r)}toFormattedString(){let e,t;try{const r=a.accounthash_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toHexString(){let e,t;try{const r=a.accounthash_toHexString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}static fromUint8Array(e){const t=Pt(e,a.__wbindgen_malloc),i=a.accounthash_fromUint8Array(t,h);return ut.__wrap(i)}toJson(){return a.accounthash_toJson(this.__wbg_ptr)}}const wg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_accountidentifier_free(n>>>0,1));class Li{static __wrap(e){e>>>=0;const t=Object.create(Li.prototype);return t.__wbg_ptr=e,wg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,wg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_accountidentifier_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.accountidentifier_new(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,wg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.accountidentifier_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return Li.__wrap(i[0])}static fromPublicKey(e){b(e,Ee);var t=e.__destroy_into_raw();const r=a.accountidentifier_fromPublicKey(t);return Li.__wrap(r)}static fromAccountHash(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.accountidentifier_fromAccountHash(t);return Li.__wrap(r)}toJson(){return a.accountidentifier_toJson(this.__wbg_ptr)}}const bg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_addressableentityhash_free(n>>>0,1));class Yn{static __wrap(e){e>>>=0;const t=Object.create(Yn.prototype);return t.__wbg_ptr=e,bg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,bg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_addressableentityhash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.addressableentityhash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,bg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.addressableentityhash_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return Yn.__wrap(i[0])}toFormattedString(){let e,t;try{const r=a.addressableentityhash_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}static fromUint8Array(e){const t=Pt(e,a.__wbindgen_malloc),i=a.addressableentityhash_fromUint8Array(t,h);return Yn.__wrap(i)}}const bI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_argssimple_free(n>>>0,1));class Xu{static __wrap(e){e>>>=0;const t=Object.create(Xu.prototype);return t.__wbg_ptr=e,bI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,bI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_argssimple_free(e,0)}}const vg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_blockhash_free(n>>>0,1));class yr{static __wrap(e){e>>>=0;const t=Object.create(yr.prototype);return t.__wbg_ptr=e,vg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,vg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_blockhash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.blockhash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,vg.register(this,this.__wbg_ptr,this),this}static fromDigest(e){b(e,Le);var t=e.__destroy_into_raw();const r=a.blockhash_fromDigest(t);if(r[2])throw F(r[1]);return yr.__wrap(r[0])}toJson(){return a.blockhash_toJson(this.__wbg_ptr)}toString(){let e,t;try{const r=a.blockhash_toString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}}const Eg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_blockidentifier_free(n>>>0,1));class Pe{static __wrap(e){e>>>=0;const t=Object.create(Pe.prototype);return t.__wbg_ptr=e,Eg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Eg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_blockidentifier_free(e,0)}constructor(e){b(e,Pe);var t=e.__destroy_into_raw();const r=a.blockidentifier_new(t);return this.__wbg_ptr=r>>>0,Eg.register(this,this.__wbg_ptr,this),this}static from_hash(e){b(e,yr);var t=e.__destroy_into_raw();const r=a.blockidentifier_from_hash(t);return Pe.__wrap(r)}static fromHeight(e){const t=a.blockidentifier_fromHeight(e);return Pe.__wrap(t)}toJson(){return a.blockidentifier_toJson(this.__wbg_ptr)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_body_free(n>>>0,1));const Dg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_bytes_free(n>>>0,1));class bt{static __wrap(e){e>>>=0;const t=Object.create(bt.prototype);return t.__wbg_ptr=e,Dg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Dg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_bytes_free(e,0)}constructor(){const e=a.bytes_new();return this.__wbg_ptr=e>>>0,Dg.register(this,this.__wbg_ptr,this),this}static fromUint8Array(e){const t=a.bytes_fromUint8Array(e);return bt.__wrap(t)}}const EI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_casperwallet_free(n>>>0,1));class DI{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,EI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_casperwallet_free(e,0)}constructor(){const e=a.casperwallet_new();return this.__wbg_ptr=e>>>0,EI.register(this,this.__wbg_ptr,this),this}signDeploy(e,t){b(e,ae);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.casperwallet_signDeploy(this.__wbg_ptr,r,i,h)}signTransaction(e,t){b(e,de);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.casperwallet_signTransaction(this.__wbg_ptr,r,i,h)}signDeployHash(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.casperwallet_signDeployHash(this.__wbg_ptr,r,i,o,h)}signTransactionHash(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.casperwallet_signTransactionHash(this.__wbg_ptr,r,i,o,h)}signMessage(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.casperwallet_signMessage(this.__wbg_ptr,r,i,o,h)}connect(){return a.casperwallet_connect(this.__wbg_ptr)}disconnect(){return a.casperwallet_disconnect(this.__wbg_ptr)}isConnected(){return a.casperwallet_isConnected(this.__wbg_ptr)}getVersion(){return a.casperwallet_getVersion(this.__wbg_ptr)}getActivePublicKey(){return a.casperwallet_getActivePublicKey(this.__wbg_ptr)}switchAccount(){return a.casperwallet_switchAccount(this.__wbg_ptr)}}const Cg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_contracthash_free(n>>>0,1));class Oa{static __wrap(e){e>>>=0;const t=Object.create(Oa.prototype);return t.__wbg_ptr=e,Cg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Cg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_contracthash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.contracthash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Cg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.contracthash_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return Oa.__wrap(i[0])}toFormattedString(){let e,t;try{const r=a.contracthash_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}static fromUint8Array(e){const t=Pt(e,a.__wbindgen_malloc),i=a.contracthash_fromUint8Array(t,h);return Oa.__wrap(i)}}const Sg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_contractpackagehash_free(n>>>0,1));class Pa{static __wrap(e){e>>>=0;const t=Object.create(Pa.prototype);return t.__wbg_ptr=e,Sg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Sg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_contractpackagehash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.contractpackagehash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Sg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.contractpackagehash_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return Pa.__wrap(i[0])}toFormattedString(){let e,t;try{const r=a.contractpackagehash_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}static fromUint8Array(e){const t=Pt(e,a.__wbindgen_malloc),i=a.contractpackagehash_fromUint8Array(t,h);return Pa.__wrap(i)}}const Ig=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_deploy_free(n>>>0,1));class ae{static __wrap(e){e>>>=0;const t=Object.create(ae.prototype);return t.__wbg_ptr=e,Ig.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ig.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_deploy_free(e,0)}constructor(e){const t=a.deploy_new(e);return this.__wbg_ptr=t>>>0,Ig.register(this,this.__wbg_ptr,this),this}toJson(){return a.deploy_toJson(this.__wbg_ptr)}static withPaymentAndSession(e,t,r){b(e,Kt);var i=e.__destroy_into_raw();b(t,Bi);var o=t.__destroy_into_raw();b(r,er);var s=r.__destroy_into_raw();const c=a.deploy_withPaymentAndSession(i,o,s);if(c[2])throw F(c[1]);return ae.__wrap(c[0])}static withTransfer(e,t,r,i,o){const s=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),u=h;var d=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),_=h;b(i,Kt);var f=i.__destroy_into_raw();b(o,er);var p=o.__destroy_into_raw();const y=a.deploy_withTransfer(s,c,l,u,d,_,f,p);if(y[2])throw F(y[1]);return ae.__wrap(y[0])}withTTL(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.deploy_withTTL(this.__wbg_ptr,r,i,o,h);return ae.__wrap(c)}withTimestamp(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.deploy_withTimestamp(this.__wbg_ptr,r,i,o,h);return ae.__wrap(c)}withChainName(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.deploy_withChainName(this.__wbg_ptr,r,i,o,h);return ae.__wrap(c)}withAccount(e,t){b(e,Ee);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.deploy_withAccount(this.__wbg_ptr,r,i,h);return ae.__wrap(s)}withEntryPointName(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.deploy_withEntryPointName(this.__wbg_ptr,r,i,o,h);return ae.__wrap(c)}withHash(e,t){b(e,Oa);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.deploy_withHash(this.__wbg_ptr,r,i,h);return ae.__wrap(s)}withPackageHash(e,t){b(e,Pa);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.deploy_withPackageHash(this.__wbg_ptr,r,i,h);return ae.__wrap(s)}withModuleBytes(e,t){b(e,bt);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.deploy_withModuleBytes(this.__wbg_ptr,r,i,h);return ae.__wrap(s)}withSecretKey(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const i=a.deploy_withSecretKey(this.__wbg_ptr,t,h);return ae.__wrap(i)}withStandardPayment(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.deploy_withStandardPayment(this.__wbg_ptr,r,i,o,h);return ae.__wrap(c)}withPayment(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const o=a.deploy_withPayment(this.__wbg_ptr,e,r,h);return ae.__wrap(o)}withSession(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const o=a.deploy_withSession(this.__wbg_ptr,e,r,h);return ae.__wrap(o)}validateDeploySize(){return 0!==a.deploy_validateDeploySize(this.__wbg_ptr)}isValid(){return 0!==a.deploy_isValid(this.__wbg_ptr)}get hash(){const e=a.deploy_hash(this.__wbg_ptr);return Ur.__wrap(e)}hasValidHash(){return 0!==a.deploy_hasValidHash(this.__wbg_ptr)}isExpired(){return 0!==a.deploy_isExpired(this.__wbg_ptr)}sign(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.deploy_sign(this.__wbg_ptr,t,h);return ae.__wrap(i)}approvalsHash(){return a.deploy_approvalsHash(this.__wbg_ptr)}approvals(){return a.deploy_approvals(this.__wbg_ptr)}isTransfer(){return 0!==a.deploy_isTransfer(this.__wbg_ptr)}isStandardPayment(e){return 0!==a.deploy_isStandardPayment(this.__wbg_ptr,e)}isStoredContract(){return 0!==a.deploy_isStoredContract(this.__wbg_ptr)}isStoredContractPackage(){return 0!==a.deploy_isStoredContractPackage(this.__wbg_ptr)}isModuleBytes(){return 0!==a.deploy_isModuleBytes(this.__wbg_ptr)}isByName(){return 0!==a.deploy_isByName(this.__wbg_ptr)}byName(){const e=a.deploy_byName(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}entryPointName(){let e,t;try{const r=a.deploy_entryPointName(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}addSignature(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h,o=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=a.deploy_addSignature(this.__wbg_ptr,r,i,o,h);return ae.__wrap(c)}TTL(){let e,t;try{const r=a.deploy_TTL(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}timestamp(){let e,t;try{const r=a.deploy_timestamp(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}chainName(){let e,t;try{const r=a.deploy_chainName(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}account(){let e,t;try{const r=a.deploy_account(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}paymentAmount(e){let t,r;try{const i=a.deploy_paymentAmount(this.__wbg_ptr,e);return t=i[0],r=i[1],v(i[0],i[1])}finally{a.__wbindgen_free(t,r,1)}}args(){return a.deploy_args(this.__wbg_ptr)}addArg(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const o=a.deploy_addArg(this.__wbg_ptr,e,r,h);if(o[2])throw F(o[1]);return ae.__wrap(o[0])}}const Tg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_deployhash_free(n>>>0,1));class Ur{static __wrap(e){e>>>=0;const t=Object.create(Ur.prototype);return t.__wbg_ptr=e,Tg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Tg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_deployhash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.deployhash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Tg.register(this,this.__wbg_ptr,this),this}static fromDigest(e){b(e,Le);var t=e.__destroy_into_raw();const r=a.deployhash_fromDigest(t);if(r[2])throw F(r[1]);return Ur.__wrap(r[0])}toJson(){return a.deployhash_toJson(this.__wbg_ptr)}toString(){let e,t;try{const r=a.deployhash_toString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}}const CI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_deploystrparams_free(n>>>0,1));class Kt{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,CI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_deploystrparams_free(e,0)}constructor(e,t,r,i,o,s){const c=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h,u=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h;var _=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),f=h,p=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),y=h,w=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),E=h,C=m(s)?0:g(s,a.__wbindgen_malloc,a.__wbindgen_realloc);const N=a.deploystrparams_new(c,l,u,d,_,f,p,y,w,E,C,h);return this.__wbg_ptr=N>>>0,CI.register(this,this.__wbg_ptr,this),this}get secret_key(){const e=a.deploystrparams_secret_key(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set secret_key(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.deploystrparams_set_secret_key(this.__wbg_ptr,t,h)}get timestamp(){const e=a.deploystrparams_timestamp(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set timestamp(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.deploystrparams_set_timestamp(this.__wbg_ptr,t,h)}setDefaultTimestamp(){a.deploystrparams_setDefaultTimestamp(this.__wbg_ptr)}get ttl(){const e=a.deploystrparams_ttl(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set ttl(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.deploystrparams_set_ttl(this.__wbg_ptr,t,h)}setDefaultTTL(){a.deploystrparams_setDefaultTTL(this.__wbg_ptr)}get chain_name(){const e=a.deploystrparams_chain_name(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set chain_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.deploystrparams_set_chain_name(this.__wbg_ptr,t,h)}get session_account(){const e=a.deploystrparams_session_account(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_account(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.deploystrparams_set_session_account(this.__wbg_ptr,t,h)}get gas_price_tolerance(){const e=a.deploystrparams_gas_price_tolerance(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set gas_price_tolerance(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.deploystrparams_set_gas_price_tolerance(this.__wbg_ptr,t,h)}}const Mg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_dictionaryaddr_free(n>>>0,1));class td{static __wrap(e){e>>>=0;const t=Object.create(td.prototype);return t.__wbg_ptr=e,Mg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Mg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_dictionaryaddr_free(e,0)}constructor(e){const t=Pt(e,a.__wbindgen_malloc),i=a.dictionaryaddr_new(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Mg.register(this,this.__wbg_ptr,this),this}}const SI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_dictionaryitemidentifier_free(n>>>0,1));class vt{static __wrap(e){e>>>=0;const t=Object.create(vt.prototype);return t.__wbg_ptr=e,SI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,SI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_dictionaryitemidentifier_free(e,0)}static newFromAccountInfo(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),d=a.dictionaryitemidentifier_newFromAccountInfo(i,o,s,c,l,h);if(d[2])throw F(d[1]);return vt.__wrap(d[0])}static newFromContractInfo(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),d=a.dictionaryitemidentifier_newFromContractInfo(i,o,s,c,l,h);if(d[2])throw F(d[1]);return vt.__wrap(d[0])}static newFromEntityInfo(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),d=a.dictionaryitemidentifier_newFromEntityInfo(i,o,s,c,l,h);if(d[2])throw F(d[1]);return vt.__wrap(d[0])}static newFromSeedUref(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h,o=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=a.dictionaryitemidentifier_newFromSeedUref(r,i,o,h);if(c[2])throw F(c[1]);return vt.__wrap(c[0])}static newFromDictionaryKey(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.dictionaryitemidentifier_newFromDictionaryKey(t,h);if(i[2])throw F(i[1]);return vt.__wrap(i[0])}toJson(){return a.dictionaryitemidentifier_toJson(this.__wbg_ptr)}}const Ag=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_dictionaryitemstrparams_free(n>>>0,1));class Vi{static __wrap(e){e>>>=0;const t=Object.create(Vi.prototype);return t.__wbg_ptr=e,Ag.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ag.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_dictionaryitemstrparams_free(e,0)}constructor(){const e=a.dictionaryitemstrparams_new();return this.__wbg_ptr=e>>>0,Ag.register(this,this.__wbg_ptr,this),this}setAccountNamedKey(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);a.dictionaryitemstrparams_setAccountNamedKey(this.__wbg_ptr,i,o,s,c,l,h)}setContractNamedKey(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);a.dictionaryitemstrparams_setContractNamedKey(this.__wbg_ptr,i,o,s,c,l,h)}setEntityNamedKey(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);a.dictionaryitemstrparams_setEntityNamedKey(this.__wbg_ptr,i,o,s,c,l,h)}setUref(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h,o=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);a.dictionaryitemstrparams_setUref(this.__wbg_ptr,r,i,o,h)}setDictionary(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.dictionaryitemstrparams_setDictionary(this.__wbg_ptr,t,h)}toJson(){return a.dictionaryitemstrparams_toJson(this.__wbg_ptr)}}const Ng=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_digest_free(n>>>0,1));class Le{static __wrap(e){e>>>=0;const t=Object.create(Le.prototype);return t.__wbg_ptr=e,Ng.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ng.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_digest_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.digest_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Ng.register(this,this.__wbg_ptr,this),this}static fromString(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.digest_fromString(t,h);if(i[2])throw F(i[1]);return Le.__wrap(i[0])}static fromRaw(e){const t=Pt(e,a.__wbindgen_malloc),i=a.digest_fromRaw(t,h);if(i[2])throw F(i[1]);return Le.__wrap(i[0])}toJson(){return a.digest_toJson(this.__wbg_ptr)}toString(){let e,t;try{const r=a.digest_toString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}}const II=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_entityaddr_free(n>>>0,1));class La{static __wrap(e){e>>>=0;const t=Object.create(La.prototype);return t.__wbg_ptr=e,II.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,II.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_entityaddr_free(e,0)}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.entityaddr_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return La.__wrap(i[0])}toFormattedString(){let e,t;try{const r=a.entityaddr_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toHexString(){let e,t;try{const r=a.entityaddr_toHexString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.entityaddr_toJson(this.__wbg_ptr)}}const kg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_entityidentifier_free(n>>>0,1));class Qn{static __wrap(e){e>>>=0;const t=Object.create(Qn.prototype);return t.__wbg_ptr=e,kg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,kg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_entityidentifier_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.entityidentifier_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,kg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.entityidentifier_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return Qn.__wrap(i[0])}static fromPublicKey(e){b(e,Ee);var t=e.__destroy_into_raw();const r=a.entityidentifier_fromPublicKey(t);return Qn.__wrap(r)}static fromAccountHash(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.entityidentifier_fromAccountHash(t);return Qn.__wrap(r)}static fromEntityAddr(e){b(e,La);var t=e.__destroy_into_raw();const r=a.entityidentifier_fromEntityAddr(t);return Qn.__wrap(r)}toJson(){return a.entityidentifier_toJson(this.__wbg_ptr)}}const TI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_eraid_free(n>>>0,1));class O${__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,TI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_eraid_free(e,0)}constructor(e){const t=a.eraid_new(e);return this.__wbg_ptr=t>>>0,TI.register(this,this.__wbg_ptr,this),this}value(){const e=a.eraid_value(this.__wbg_ptr);return BigInt.asUintN(64,e)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_eventparseresult_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_executionresult_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_failure_free(n>>>0,1));const NI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getaccountresult_free(n>>>0,1));class Fg{static __wrap(e){e>>>=0;const t=Object.create(Fg.prototype);return t.__wbg_ptr=e,NI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,NI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getaccountresult_free(e,0)}get api_version(){return a.getaccountresult_api_version(this.__wbg_ptr)}get account(){return a.getaccountresult_account(this.__wbg_ptr)}get merkle_proof(){let e,t;try{const r=a.getaccountresult_merkle_proof(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.getaccountresult_toJson(this.__wbg_ptr)}}const kI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getaddressableentityresult_free(n>>>0,1));class Rg{static __wrap(e){e>>>=0;const t=Object.create(Rg.prototype);return t.__wbg_ptr=e,kI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,kI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getaddressableentityresult_free(e,0)}get api_version(){return a.getaddressableentityresult_api_version(this.__wbg_ptr)}get entity_result(){return a.getaddressableentityresult_entity_result(this.__wbg_ptr)}get merkle_proof(){let e,t;try{const r=a.getaddressableentityresult_merkle_proof(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.getaddressableentityresult_toJson(this.__wbg_ptr)}}const FI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getauctioninforesult_free(n>>>0,1));class xg{static __wrap(e){e>>>=0;const t=Object.create(xg.prototype);return t.__wbg_ptr=e,FI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,FI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getauctioninforesult_free(e,0)}get api_version(){return a.getauctioninforesult_api_version(this.__wbg_ptr)}get auction_state(){return a.getauctioninforesult_auction_state(this.__wbg_ptr)}toJson(){return a.getauctioninforesult_toJson(this.__wbg_ptr)}}const RI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getbalanceresult_free(n>>>0,1));class Og{static __wrap(e){e>>>=0;const t=Object.create(Og.prototype);return t.__wbg_ptr=e,RI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,RI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getbalanceresult_free(e,0)}get api_version(){return a.getbalanceresult_api_version(this.__wbg_ptr)}get balance_value(){return a.getbalanceresult_balance_value(this.__wbg_ptr)}get merkle_proof(){let e,t;try{const r=a.getbalanceresult_merkle_proof(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.getbalanceresult_toJson(this.__wbg_ptr)}}const xI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getblockresult_free(n>>>0,1));class Pg{static __wrap(e){e>>>=0;const t=Object.create(Pg.prototype);return t.__wbg_ptr=e,xI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,xI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getblockresult_free(e,0)}get api_version(){return a.getblockresult_api_version(this.__wbg_ptr)}get block(){return a.getblockresult_block(this.__wbg_ptr)}toJson(){return a.getblockresult_toJson(this.__wbg_ptr)}}const OI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getblocktransfersresult_free(n>>>0,1));class Lg{static __wrap(e){e>>>=0;const t=Object.create(Lg.prototype);return t.__wbg_ptr=e,OI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,OI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getblocktransfersresult_free(e,0)}get api_version(){return a.getblocktransfersresult_api_version(this.__wbg_ptr)}get block_hash(){const e=a.getblocktransfersresult_block_hash(this.__wbg_ptr);return 0===e?void 0:yr.__wrap(e)}get transfers(){return a.getblocktransfersresult_transfers(this.__wbg_ptr)}toJson(){return a.getblocktransfersresult_toJson(this.__wbg_ptr)}}const PI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getchainspecresult_free(n>>>0,1));class Vg{static __wrap(e){e>>>=0;const t=Object.create(Vg.prototype);return t.__wbg_ptr=e,PI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,PI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getchainspecresult_free(e,0)}get api_version(){return a.getchainspecresult_api_version(this.__wbg_ptr)}get chainspec_bytes(){return a.getchainspecresult_chainspec_bytes(this.__wbg_ptr)}toJson(){return a.getchainspecresult_toJson(this.__wbg_ptr)}}const LI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getdeployresult_free(n>>>0,1));class jg{static __wrap(e){e>>>=0;const t=Object.create(jg.prototype);return t.__wbg_ptr=e,LI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,LI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getdeployresult_free(e,0)}get api_version(){return a.getdeployresult_api_version(this.__wbg_ptr)}get deploy(){const e=a.getdeployresult_deploy(this.__wbg_ptr);return ae.__wrap(e)}get execution_info(){return a.getdeployresult_execution_info(this.__wbg_ptr)}toJson(){return a.getdeployresult_toJson(this.__wbg_ptr)}}const VI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getdictionaryitemresult_free(n>>>0,1));class Bg{static __wrap(e){e>>>=0;const t=Object.create(Bg.prototype);return t.__wbg_ptr=e,VI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,VI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getdictionaryitemresult_free(e,0)}get api_version(){return a.getdictionaryitemresult_api_version(this.__wbg_ptr)}get dictionary_key(){let e,t;try{const r=a.getdictionaryitemresult_dictionary_key(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get stored_value(){return a.getdictionaryitemresult_stored_value(this.__wbg_ptr)}get merkle_proof(){let e,t;try{const r=a.getdictionaryitemresult_merkle_proof(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.getdictionaryitemresult_toJson(this.__wbg_ptr)}}const jI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_geterainforesult_free(n>>>0,1));class Hg{static __wrap(e){e>>>=0;const t=Object.create(Hg.prototype);return t.__wbg_ptr=e,jI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,jI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_geterainforesult_free(e,0)}get api_version(){return a.geterainforesult_api_version(this.__wbg_ptr)}get era_summary(){return a.geterainforesult_era_summary(this.__wbg_ptr)}toJson(){return a.geterainforesult_toJson(this.__wbg_ptr)}}const BI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_geterasummaryresult_free(n>>>0,1));class Ug{static __wrap(e){e>>>=0;const t=Object.create(Ug.prototype);return t.__wbg_ptr=e,BI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,BI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_geterasummaryresult_free(e,0)}get api_version(){return a.geterasummaryresult_api_version(this.__wbg_ptr)}get era_summary(){return a.geterasummaryresult_era_summary(this.__wbg_ptr)}toJson(){return a.geterasummaryresult_toJson(this.__wbg_ptr)}}const HI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getnodestatusresult_free(n>>>0,1));class zg{static __wrap(e){e>>>=0;const t=Object.create(zg.prototype);return t.__wbg_ptr=e,HI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,HI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getnodestatusresult_free(e,0)}get api_version(){return a.getnodestatusresult_api_version(this.__wbg_ptr)}get chainspec_name(){let e,t;try{const r=a.getnodestatusresult_chainspec_name(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get starting_state_root_hash(){const e=a.getnodestatusresult_starting_state_root_hash(this.__wbg_ptr);return Le.__wrap(e)}get peers(){return a.getnodestatusresult_peers(this.__wbg_ptr)}get last_added_block_info(){return a.getnodestatusresult_last_added_block_info(this.__wbg_ptr)}get our_public_signing_key(){const e=a.getnodestatusresult_our_public_signing_key(this.__wbg_ptr);return 0===e?void 0:Ee.__wrap(e)}get round_length(){return a.getnodestatusresult_round_length(this.__wbg_ptr)}get next_upgrade(){return a.getnodestatusresult_next_upgrade(this.__wbg_ptr)}get build_version(){let e,t;try{const r=a.getnodestatusresult_build_version(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get uptime(){return a.getnodestatusresult_uptime(this.__wbg_ptr)}get reactor_state(){return a.getnodestatusresult_reactor_state(this.__wbg_ptr)}get last_progress(){return a.getnodestatusresult_last_progress(this.__wbg_ptr)}get available_block_range(){return a.getnodestatusresult_available_block_range(this.__wbg_ptr)}get block_sync(){return a.getnodestatusresult_block_sync(this.__wbg_ptr)}toJson(){return a.getnodestatusresult_toJson(this.__wbg_ptr)}}const UI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getpeersresult_free(n>>>0,1));class $g{static __wrap(e){e>>>=0;const t=Object.create($g.prototype);return t.__wbg_ptr=e,UI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,UI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getpeersresult_free(e,0)}get api_version(){return a.getpeersresult_api_version(this.__wbg_ptr)}get peers(){return a.getpeersresult_peers(this.__wbg_ptr)}toJson(){return a.getpeersresult_toJson(this.__wbg_ptr)}}const zI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getstateroothashresult_free(n>>>0,1));class qg{static __wrap(e){e>>>=0;const t=Object.create(qg.prototype);return t.__wbg_ptr=e,zI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,zI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getstateroothashresult_free(e,0)}get api_version(){return a.getstateroothashresult_api_version(this.__wbg_ptr)}get state_root_hash(){const e=a.getstateroothashresult_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}get state_root_hash_as_string(){let e,t;try{const r=a.getstateroothashresult_state_root_hash_as_string(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toString(){let e,t;try{const r=a.getstateroothashresult_toString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.getstateroothashresult_toJson(this.__wbg_ptr)}}const $I=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_gettransactionresult_free(n>>>0,1));class Gg{static __wrap(e){e>>>=0;const t=Object.create(Gg.prototype);return t.__wbg_ptr=e,$I.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$I.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_gettransactionresult_free(e,0)}get api_version(){return a.gettransactionresult_api_version(this.__wbg_ptr)}get transaction(){const e=a.gettransactionresult_transaction(this.__wbg_ptr);return de.__wrap(e)}get execution_info(){return a.gettransactionresult_execution_info(this.__wbg_ptr)}toJson(){return a.gettransactionresult_toJson(this.__wbg_ptr)}}const qI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getvalidatorchangesresult_free(n>>>0,1));class Wg{static __wrap(e){e>>>=0;const t=Object.create(Wg.prototype);return t.__wbg_ptr=e,qI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,qI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getvalidatorchangesresult_free(e,0)}get api_version(){return a.getvalidatorchangesresult_api_version(this.__wbg_ptr)}get changes(){return a.getvalidatorchangesresult_changes(this.__wbg_ptr)}toJson(){return a.getvalidatorchangesresult_toJson(this.__wbg_ptr)}}const Jg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_globalstateidentifier_free(n>>>0,1));class Lt{static __wrap(e){e>>>=0;const t=Object.create(Lt.prototype);return t.__wbg_ptr=e,Jg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Jg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_globalstateidentifier_free(e,0)}constructor(e){b(e,Lt);var t=e.__destroy_into_raw();const r=a.globalstateidentifier_new(t);return this.__wbg_ptr=r>>>0,Jg.register(this,this.__wbg_ptr,this),this}static fromBlockHash(e){b(e,yr);var t=e.__destroy_into_raw();const r=a.globalstateidentifier_fromBlockHash(t);return Lt.__wrap(r)}static fromBlockHeight(e){const t=a.globalstateidentifier_fromBlockHeight(e);return Lt.__wrap(t)}static fromStateRootHash(e){b(e,Le);var t=e.__destroy_into_raw();const r=a.globalstateidentifier_fromStateRootHash(t);return Lt.__wrap(r)}toJson(){return a.globalstateidentifier_toJson(this.__wbg_ptr)}}const Kg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_hashaddr_free(n>>>0,1));class id{static __wrap(e){e>>>=0;const t=Object.create(id.prototype);return t.__wbg_ptr=e,Kg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Kg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_hashaddr_free(e,0)}constructor(e){const t=Pt(e,a.__wbindgen_malloc),i=a.hashaddr_new(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Kg.register(this,this.__wbg_ptr,this),this}toBytes(){const e=a.hashaddr_toBytes(this.__wbg_ptr);var t=function pg(n,e){return n>>>=0,Qo().subarray(n/1,n/1+e)}(e[0],e[1]).slice();return a.__wbindgen_free(e[0],1*e[1],1),t}toHexString(){let e,t;try{const r=a.hashaddr_toHexString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_hashstring_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_intounderlyingbytesource_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_intounderlyingsink_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_intounderlyingsource_free(n>>>0,1));const Zg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_key_free(n>>>0,1));class Ve{static __wrap(e){e>>>=0;const t=Object.create(Ve.prototype);return t.__wbg_ptr=e,Zg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Zg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_key_free(e,0)}constructor(e){b(e,Ve);var t=e.__destroy_into_raw();const r=a.key_new(t);if(r[2])throw F(r[1]);return this.__wbg_ptr=r[0]>>>0,Zg.register(this,this.__wbg_ptr,this),this}toJson(){return a.key_toJson(this.__wbg_ptr)}static fromURef(e){b(e,st);var t=e.__destroy_into_raw();const r=a.key_fromURef(t);return Ve.__wrap(r)}static fromDeployInfo(e){b(e,Ur);var t=e.__destroy_into_raw();const r=a.key_fromDeployInfo(t);return Ve.__wrap(r)}static fromAccount(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.key_fromAccount(t);return Ve.__wrap(r)}static fromHash(e){b(e,id);var t=e.__destroy_into_raw();const r=a.key_fromHash(t);return Ve.__wrap(r)}static fromTransfer(e){const t=Pt(e,a.__wbindgen_malloc),i=a.key_fromTransfer(t,h);return pm.__wrap(i)}static fromEraInfo(e){b(e,O$);var t=e.__destroy_into_raw();const r=a.key_fromEraInfo(t);return Ve.__wrap(r)}static fromBalance(e){b(e,ad);var t=e.__destroy_into_raw();const r=a.key_fromBalance(t);return Ve.__wrap(r)}static fromBid(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.key_fromBid(t);return Ve.__wrap(r)}static fromWithdraw(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.key_fromWithdraw(t);return Ve.__wrap(r)}static fromDictionaryAddr(e){b(e,td);var t=e.__destroy_into_raw();const r=a.key_fromDictionaryAddr(t);return Ve.__wrap(r)}asDictionaryAddr(){const e=a.key_asDictionaryAddr(this.__wbg_ptr);return 0===e?void 0:td.__wrap(e)}static fromSystemEntityRegistry(){const e=a.key_fromSystemEntityRegistry();return Ve.__wrap(e)}static fromEraSummary(){const e=a.key_fromEraSummary();return Ve.__wrap(e)}static fromUnbond(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.key_fromUnbond(t);return Ve.__wrap(r)}static fromChainspecRegistry(){const e=a.key_fromChainspecRegistry();return Ve.__wrap(e)}static fromChecksumRegistry(){const e=a.key_fromChecksumRegistry();return Ve.__wrap(e)}toFormattedString(){let e,t;try{const r=a.key_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}static fromFormattedString(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.key_fromFormattedString(t,h);if(i[2])throw F(i[1]);return Ve.__wrap(i[0])}static fromDictionaryKey(e,t){b(e,st);var r=e.__destroy_into_raw();const i=Pt(t,a.__wbindgen_malloc),s=a.key_fromDictionaryKey(r,i,h);return Ve.__wrap(s)}isDictionaryKey(){return 0!==a.key_isDictionaryKey(this.__wbg_ptr)}intoAccount(){const e=this.__destroy_into_raw(),t=a.key_intoAccount(e);return 0===t?void 0:ut.__wrap(t)}intoHash(){const e=this.__destroy_into_raw(),t=a.key_intoHash(e);return 0===t?void 0:id.__wrap(t)}asBalance(){const e=a.key_asBalance(this.__wbg_ptr);return 0===e?void 0:ad.__wrap(e)}intoURef(){const e=this.__destroy_into_raw(),t=a.key_intoURef(e);return 0===t?void 0:st.__wrap(t)}urefToHash(){const e=a.key_urefToHash(this.__wbg_ptr);return 0===e?void 0:Ve.__wrap(e)}withdrawToUnbond(){const e=a.key_withdrawToUnbond(this.__wbg_ptr);return 0===e?void 0:Ve.__wrap(e)}}const WI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_listrpcsresult_free(n>>>0,1));class Yg{static __wrap(e){e>>>=0;const t=Object.create(Yg.prototype);return t.__wbg_ptr=e,WI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,WI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_listrpcsresult_free(e,0)}get api_version(){return a.listrpcsresult_api_version(this.__wbg_ptr)}get name(){let e,t;try{const r=a.listrpcsresult_name(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get schema(){return a.listrpcsresult_schema(this.__wbg_ptr)}toJson(){return a.listrpcsresult_toJson(this.__wbg_ptr)}}const JI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_message_free(n>>>0,1));class sd{static __wrap(e){e>>>=0;const t=Object.create(sd.prototype);return t.__wbg_ptr=e,JI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,JI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_message_free(e,0)}get String(){let e,t;try{const r=a.__wbg_get_message_String(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}set String(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_failure_cost(this.__wbg_ptr,t,h)}}const KI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_messages_free(n>>>0,1));class Va{static __wrap(e){e>>>=0;const t=Object.create(Va.prototype);return t.__wbg_ptr=e,KI.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof Va?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,KI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_messages_free(e,0)}get entity_hash(){let e,t;try{const r=a.__wbg_get_messages_entity_hash(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}set entity_hash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_messages_entity_hash(this.__wbg_ptr,t,h)}get message(){const e=a.__wbg_get_messages_message(this.__wbg_ptr);return sd.__wrap(e)}set message(e){b(e,sd);var t=e.__destroy_into_raw();a.__wbg_set_messages_message(this.__wbg_ptr,t)}get topic_name(){let e,t;try{const r=a.__wbg_get_messages_topic_name(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}set topic_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_messages_topic_name(this.__wbg_ptr,t,h)}get topic_name_hash(){let e,t;try{const r=a.__wbg_get_messages_topic_name_hash(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}set topic_name_hash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_messages_topic_name_hash(this.__wbg_ptr,t,h)}get topic_index(){return a.__wbg_get_messages_topic_index(this.__wbg_ptr)>>>0}set topic_index(e){a.__wbg_set_messages_topic_index(this.__wbg_ptr,e)}get block_index(){const e=a.__wbg_get_messages_block_index(this.__wbg_ptr);return BigInt.asUintN(64,e)}set block_index(e){a.__wbg_set_messages_block_index(this.__wbg_ptr,e)}}const Qg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_packagehash_free(n>>>0,1));class Xn{static __wrap(e){e>>>=0;const t=Object.create(Xn.prototype);return t.__wbg_ptr=e,Qg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Qg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_packagehash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.packagehash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,Qg.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.packagehash_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return Xn.__wrap(i[0])}toFormattedString(){let e,t;try{const r=a.packagehash_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}static fromUint8Array(e){const t=Pt(e,a.__wbindgen_malloc),i=a.packagehash_fromUint8Array(t,h);return Xn.__wrap(i)}}const Xg=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_path_free(n>>>0,1));class ji{static __wrap(e){e>>>=0;const t=Object.create(ji.prototype);return t.__wbg_ptr=e,Xg.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Xg.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_path_free(e,0)}constructor(e){const t=a.path_new(e);return this.__wbg_ptr=t>>>0,Xg.register(this,this.__wbg_ptr,this),this}static fromArray(e){const t=a.path_fromArray(e);return ji.__wrap(t)}toJson(){return a.path_toJson(this.__wbg_ptr)}toString(){let e,t;try{const r=a.path_toString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}is_empty(){return 0!==a.path_is_empty(this.__wbg_ptr)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_payment_free(n>>>0,1));const ZI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_paymentstrparams_free(n>>>0,1));class er{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ZI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_paymentstrparams_free(e,0)}constructor(e,t,r,i,o,s,c,l,u,d){var _=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),f=h,p=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),y=h,w=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),E=h,C=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),D=h,N=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),B=h,Q=m(s)?0:g(s,a.__wbindgen_malloc,a.__wbindgen_realloc),oe=h,Be=m(l)?0:g(l,a.__wbindgen_malloc,a.__wbindgen_realloc),jt=h,Wr=m(u)?0:g(u,a.__wbindgen_malloc,a.__wbindgen_realloc),Gi=h,hc=m(d)?0:g(d,a.__wbindgen_malloc,a.__wbindgen_realloc),gc=h;const mc=a.paymentstrparams_new(_,f,p,y,w,E,C,D,N,B,Q,oe,m(c)?0:Pi(c),Be,jt,Wr,Gi,hc,gc);return this.__wbg_ptr=mc>>>0,ZI.register(this,this.__wbg_ptr,this),this}get payment_amount(){const e=a.paymentstrparams_payment_amount(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_amount(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_amount(this.__wbg_ptr,t,h)}get payment_hash(){const e=a.paymentstrparams_payment_hash(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_hash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_hash(this.__wbg_ptr,t,h)}get payment_name(){const e=a.paymentstrparams_payment_name(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_name(this.__wbg_ptr,t,h)}get payment_package_hash(){const e=a.paymentstrparams_payment_package_hash(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_package_hash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_package_hash(this.__wbg_ptr,t,h)}get payment_package_name(){const e=a.paymentstrparams_payment_package_name(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_package_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_package_name(this.__wbg_ptr,t,h)}get payment_path(){const e=a.paymentstrparams_payment_path(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_path(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_path(this.__wbg_ptr,t,h)}get payment_args_simple(){return a.paymentstrparams_payment_args_simple(this.__wbg_ptr)}set payment_args_simple(e){a.paymentstrparams_set_payment_args_simple(this.__wbg_ptr,e)}get payment_args_json(){const e=a.paymentstrparams_payment_args_json(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_args_json(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_args_json(this.__wbg_ptr,t,h)}get payment_version(){const e=a.paymentstrparams_payment_version(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_version(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_version(this.__wbg_ptr,t,h)}get payment_entry_point(){const e=a.paymentstrparams_payment_entry_point(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_entry_point(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.paymentstrparams_set_payment_entry_point(this.__wbg_ptr,t,h)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_peerentry_free(n>>>0,1));const em=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_publickey_free(n>>>0,1));class Ee{static __wrap(e){e>>>=0;const t=Object.create(Ee.prototype);return t.__wbg_ptr=e,em.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,em.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_publickey_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.publickey_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,em.register(this,this.__wbg_ptr,this),this}static fromUint8Array(e){const t=Pt(e,a.__wbindgen_malloc),i=a.publickey_fromUint8Array(t,h);if(i[2])throw F(i[1]);return Ee.__wrap(i[0])}toAccountHash(){const e=a.publickey_toAccountHash(this.__wbg_ptr);return ut.__wrap(e)}toPurseUref(){const e=a.publickey_toPurseUref(this.__wbg_ptr);return st.__wrap(e)}toJson(){return a.publickey_toJson(this.__wbg_ptr)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_publickeystring_free(n>>>0,1));const tm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_purseidentifier_free(n>>>0,1));class zr{static __wrap(e){e>>>=0;const t=Object.create(zr.prototype);return t.__wbg_ptr=e,tm.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,tm.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_purseidentifier_free(e,0)}constructor(e){b(e,Ee);var t=e.__destroy_into_raw();const r=a.purseidentifier_fromPublicKey(t);return this.__wbg_ptr=r>>>0,tm.register(this,this.__wbg_ptr,this),this}static fromAccountHash(e){b(e,ut);var t=e.__destroy_into_raw();const r=a.purseidentifier_fromAccountHash(t);return zr.__wrap(r)}static fromURef(e){b(e,st);var t=e.__destroy_into_raw();const r=a.purseidentifier_fromURef(t);return zr.__wrap(r)}toJson(){return a.purseidentifier_toJson(this.__wbg_ptr)}}const QI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_putdeployresult_free(n>>>0,1));class nm{static __wrap(e){e>>>=0;const t=Object.create(nm.prototype);return t.__wbg_ptr=e,QI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,QI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_putdeployresult_free(e,0)}get api_version(){return a.putdeployresult_api_version(this.__wbg_ptr)}get deploy_hash(){const e=a.putdeployresult_deploy_hash(this.__wbg_ptr);return Ur.__wrap(e)}toJson(){return a.putdeployresult_toJson(this.__wbg_ptr)}}const XI=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_puttransactionresult_free(n>>>0,1));class rm{static __wrap(e){e>>>=0;const t=Object.create(rm.prototype);return t.__wbg_ptr=e,XI.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,XI.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_puttransactionresult_free(e,0)}get api_version(){return a.puttransactionresult_api_version(this.__wbg_ptr)}get transaction_hash(){const e=a.puttransactionresult_transaction_hash(this.__wbg_ptr);return Hi.__wrap(e)}toJson(){return a.puttransactionresult_toJson(this.__wbg_ptr)}}const eT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_querybalancedetailsresult_free(n>>>0,1));class im{static __wrap(e){e>>>=0;const t=Object.create(im.prototype);return t.__wbg_ptr=e,eT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,eT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_querybalancedetailsresult_free(e,0)}get api_version(){return a.querybalancedetailsresult_api_version(this.__wbg_ptr)}get total_balance(){return a.querybalancedetailsresult_total_balance(this.__wbg_ptr)}get available_balance(){return a.querybalancedetailsresult_available_balance(this.__wbg_ptr)}get total_balance_proof(){return a.querybalancedetailsresult_total_balance_proof(this.__wbg_ptr)}get holds(){return a.querybalancedetailsresult_holds(this.__wbg_ptr)}toJson(){return a.querybalancedetailsresult_toJson(this.__wbg_ptr)}}const tT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_querybalanceresult_free(n>>>0,1));class om{static __wrap(e){e>>>=0;const t=Object.create(om.prototype);return t.__wbg_ptr=e,tT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,tT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_querybalanceresult_free(e,0)}get api_version(){return a.querybalanceresult_api_version(this.__wbg_ptr)}get balance(){return a.querybalanceresult_balance(this.__wbg_ptr)}toJson(){return a.querybalanceresult_toJson(this.__wbg_ptr)}}const nT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_queryglobalstateresult_free(n>>>0,1));class sm{static __wrap(e){e>>>=0;const t=Object.create(sm.prototype);return t.__wbg_ptr=e,nT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,nT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_queryglobalstateresult_free(e,0)}get api_version(){return a.queryglobalstateresult_api_version(this.__wbg_ptr)}get block_header(){return a.queryglobalstateresult_block_header(this.__wbg_ptr)}get stored_value(){return a.queryglobalstateresult_stored_value(this.__wbg_ptr)}get merkle_proof(){let e,t;try{const r=a.queryglobalstateresult_merkle_proof(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.queryglobalstateresult_toJson(this.__wbg_ptr)}}const rT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_sdk_free(n>>>0,1));class U${__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,rT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_sdk_free(e,0)}get_balance_options(e){const t=a.sdk_get_balance_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ua.__wrap(t[0])}get_balance(e){let t=0;return m(e)||(b(e,Ua),t=e.__destroy_into_raw()),a.sdk_get_balance(this.__wbg_ptr,t)}state_get_balance(e){let t=0;return m(e)||(b(e,Ua),t=e.__destroy_into_raw()),a.sdk_state_get_balance(this.__wbg_ptr,t)}query_balance_details_options(e){const t=a.sdk_query_balance_details_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return _d.__wrap(t[0])}query_balance_details(e){let t=0;return m(e)||(b(e,_d),t=e.__destroy_into_raw()),a.sdk_query_balance_details(this.__wbg_ptr,t)}query_global_state_options(e){const t=a.sdk_query_global_state_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return gd.__wrap(t[0])}query_global_state(e){let t=0;return m(e)||(b(e,gd),t=e.__destroy_into_raw()),a.sdk_query_global_state(this.__wbg_ptr,t)}query_contract_key_options(e){const t=a.sdk_query_contract_key_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return hd.__wrap(t[0])}query_contract_key(e){let t=0;return m(e)||(b(e,hd),t=e.__destroy_into_raw()),a.sdk_query_contract_key(this.__wbg_ptr,t)}get_deploy_options(e){const t=a.sdk_get_deploy_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return qa.__wrap(t[0])}get_deploy(e){let t=0;return m(e)||(b(e,qa),t=e.__destroy_into_raw()),a.sdk_get_deploy(this.__wbg_ptr,t)}info_get_deploy(e){let t=0;return m(e)||(b(e,qa),t=e.__destroy_into_raw()),a.sdk_info_get_deploy(this.__wbg_ptr,t)}get_transaction_options(e){const t=a.sdk_get_transaction_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ya.__wrap(t[0])}get_transaction(e){let t=0;return m(e)||(b(e,Ya),t=e.__destroy_into_raw()),a.sdk_get_transaction(this.__wbg_ptr,t)}info_get_transaction(e){let t=0;return m(e)||(b(e,Ya),t=e.__destroy_into_raw()),a.sdk_info_get_transaction(this.__wbg_ptr,t)}make_transfer_transaction(e,t,r,i,o){let s=0;m(e)||(b(e,st),s=e.__destroy_into_raw());const c=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h,u=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h;b(i,dt);var _=i.__destroy_into_raw(),f=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc);const y=a.sdk_make_transfer_transaction(this.__wbg_ptr,s,c,l,u,d,_,f,h);if(y[2])throw F(y[1]);return de.__wrap(y[0])}get_chainspec(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_get_chainspec(this.__wbg_ptr,m(e)?3:e,r,i)}info_get_chainspec(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_info_get_chainspec(this.__wbg_ptr,m(e)?3:e,r,i)}get_dictionary_item_options(e){const t=a.sdk_get_dictionary_item_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ga.__wrap(t[0])}get_dictionary_item(e){let t=0;return m(e)||(b(e,Ga),t=e.__destroy_into_raw()),a.sdk_get_dictionary_item(this.__wbg_ptr,t)}state_get_dictionary_item(e){let t=0;return m(e)||(b(e,Ga),t=e.__destroy_into_raw()),a.sdk_state_get_dictionary_item(this.__wbg_ptr,t)}get_entity_options(e){const t=a.sdk_get_entity_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Wa.__wrap(t[0])}get_entity(e){let t=0;return m(e)||(b(e,Wa),t=e.__destroy_into_raw()),a.sdk_get_entity(this.__wbg_ptr,t)}state_get_entity(e){let t=0;return m(e)||(b(e,Wa),t=e.__destroy_into_raw()),a.sdk_state_get_entity(this.__wbg_ptr,t)}get_node_status(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_get_node_status(this.__wbg_ptr,m(e)?3:e,r,i)}info_get_status(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_info_get_status(this.__wbg_ptr,m(e)?3:e,r,i)}get_peers(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_get_peers(this.__wbg_ptr,m(e)?3:e,r,i)}info_get_peers(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_info_get_peers(this.__wbg_ptr,m(e)?3:e,r,i)}get_validator_changes(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_get_validator_changes(this.__wbg_ptr,m(e)?3:e,r,i)}info_get_validator_change(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_info_get_validator_change(this.__wbg_ptr,m(e)?3:e,r,i)}list_rpcs(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;return a.sdk_list_rpcs(this.__wbg_ptr,m(e)?3:e,r,i)}sign_deploy(e,t){b(e,ae);var r=e.__destroy_into_raw();const i=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),s=a.sdk_sign_deploy(this.__wbg_ptr,r,i,h);return ae.__wrap(s)}query_contract_dict_options(e){const t=a.sdk_query_contract_dict_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return pd.__wrap(t[0])}query_contract_dict(e){let t=0;return m(e)||(b(e,pd),t=e.__destroy_into_raw()),a.sdk_query_contract_dict(this.__wbg_ptr,t)}deploy(e,t,r,i,o){b(e,Kt);var s=e.__destroy_into_raw();b(t,Bi);var c=t.__destroy_into_raw();b(r,er);var l=r.__destroy_into_raw(),u=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h;return a.sdk_deploy(this.__wbg_ptr,s,c,l,m(i)?3:i,u,d)}get_account_options(e){const t=a.sdk_get_account_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ba.__wrap(t[0])}get_account(e){let t=0;return m(e)||(b(e,Ba),t=e.__destroy_into_raw()),a.sdk_get_account(this.__wbg_ptr,t)}state_get_account_info(e){let t=0;return m(e)||(b(e,Ba),t=e.__destroy_into_raw()),a.sdk_state_get_account_info(this.__wbg_ptr,t)}get_auction_info_options(e){const t=a.sdk_get_auction_info_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ha.__wrap(t[0])}get_auction_info(e){let t=0;return m(e)||(b(e,Ha),t=e.__destroy_into_raw()),a.sdk_get_auction_info(this.__wbg_ptr,t)}state_get_auction_info_js_alias(e){let t=0;return m(e)||(b(e,Ha),t=e.__destroy_into_raw()),a.sdk_state_get_auction_info_js_alias(this.__wbg_ptr,t)}get_era_info_options(e){const t=a.sdk_get_era_info_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ja.__wrap(t[0])}get_era_info(e){let t=0;return m(e)||(b(e,Ja),t=e.__destroy_into_raw()),a.sdk_get_era_info(this.__wbg_ptr,t)}chain_get_era_info_by_switch_block(e){let t=0;return m(e)||(b(e,Ja),t=e.__destroy_into_raw()),a.sdk_chain_get_era_info_by_switch_block(this.__wbg_ptr,t)}make_transaction(e,t){b(e,je);var r=e.__destroy_into_raw();b(t,dt);var i=t.__destroy_into_raw();const o=a.sdk_make_transaction(this.__wbg_ptr,r,i);if(o[2])throw F(o[1]);return de.__wrap(o[0])}transaction(e,t,r,i){b(e,je);var o=e.__destroy_into_raw();b(t,dt);var s=t.__destroy_into_raw(),c=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h;return a.sdk_transaction(this.__wbg_ptr,o,s,m(r)?3:r,c,l)}put_deploy(e,t,r){b(e,ae);var i=e.__destroy_into_raw(),o=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;return a.sdk_put_deploy(this.__wbg_ptr,i,m(t)?3:t,o,s)}account_put_deploy(e,t,r){b(e,ae);var i=e.__destroy_into_raw(),o=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;return a.sdk_account_put_deploy(this.__wbg_ptr,i,m(t)?3:t,o,s)}transfer_transaction(e,t,r,i,o,s,c){let l=0;m(e)||(b(e,st),l=e.__destroy_into_raw());const u=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h,_=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),f=h;b(i,dt);var p=i.__destroy_into_raw(),y=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),w=h,E=m(c)?0:g(c,a.__wbindgen_malloc,a.__wbindgen_realloc),C=h;return a.sdk_transfer_transaction(this.__wbg_ptr,l,u,d,_,f,p,y,w,m(s)?3:s,E,C)}watchDeploy(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=a.sdk_watchDeploy(this.__wbg_ptr,r,h,!m(t),m(t)?0:t);return ld.__wrap(o)}watchTransaction(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=a.sdk_watchTransaction(this.__wbg_ptr,r,h,!m(t),m(t)?0:t);return ld.__wrap(o)}waitDeploy(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.sdk_waitDeploy(this.__wbg_ptr,i,o,s,h,!m(r),m(r)?0:r)}waitTransaction(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.sdk_waitTransaction(this.__wbg_ptr,i,o,s,h,!m(r),m(r)?0:r)}call_entrypoint(e,t,r){b(e,je);var i=e.__destroy_into_raw();b(t,dt);var o=t.__destroy_into_raw(),s=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.sdk_call_entrypoint(this.__wbg_ptr,i,o,s,h)}call_entrypoint_deploy(e,t,r,i){b(e,Kt);var o=e.__destroy_into_raw();b(t,Bi);var s=t.__destroy_into_raw();const c=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h;var u=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.sdk_call_entrypoint_deploy(this.__wbg_ptr,o,s,c,l,u,h)}speculative_deploy(e,t,r,i,o){b(e,Kt);var s=e.__destroy_into_raw();b(t,Bi);var c=t.__destroy_into_raw();b(r,er);var l=r.__destroy_into_raw(),u=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h;return a.sdk_speculative_deploy(this.__wbg_ptr,s,c,l,m(i)?3:i,u,d)}transfer(e,t,r,i,o,s,c){const l=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),u=h,d=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),_=h;var f=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),p=h;b(i,Kt);var y=i.__destroy_into_raw();b(o,er);var w=o.__destroy_into_raw(),E=m(c)?0:g(c,a.__wbindgen_malloc,a.__wbindgen_realloc),C=h;return a.sdk_transfer(this.__wbg_ptr,l,u,d,_,f,p,y,w,m(s)?3:s,E,C)}get_block_transfers_options(e){const t=a.sdk_get_block_transfers_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return $a.__wrap(t[0])}get_block_transfers(e){let t=0;return m(e)||(b(e,$a),t=e.__destroy_into_raw()),a.sdk_get_block_transfers(this.__wbg_ptr,t)}chain_get_block_transfers(e){let t=0;return m(e)||(b(e,$a),t=e.__destroy_into_raw()),a.sdk_chain_get_block_transfers(this.__wbg_ptr,t)}get_era_summary_options(e){const t=a.sdk_get_era_summary_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Ka.__wrap(t[0])}get_era_summary(e){let t=0;return m(e)||(b(e,Ka),t=e.__destroy_into_raw()),a.sdk_get_era_summary(this.__wbg_ptr,t)}chain_get_era_summary(e){let t=0;return m(e)||(b(e,Ka),t=e.__destroy_into_raw()),a.sdk_chain_get_era_summary(this.__wbg_ptr,t)}put_transaction(e,t,r){b(e,de);var i=e.__destroy_into_raw(),o=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;return a.sdk_put_transaction(this.__wbg_ptr,i,m(t)?3:t,o,s)}account_put_transaction(e,t,r){b(e,de);var i=e.__destroy_into_raw(),o=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;return a.sdk_account_put_transaction(this.__wbg_ptr,i,m(t)?3:t,o,s)}speculative_transaction(e,t,r,i){b(e,je);var o=e.__destroy_into_raw();b(t,dt);var s=t.__destroy_into_raw(),c=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h;return a.sdk_speculative_transaction(this.__wbg_ptr,o,s,m(r)?3:r,c,l)}speculative_transfer_transaction(e,t,r,i,o,s,c){let l=0;m(e)||(b(e,st),l=e.__destroy_into_raw());const u=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h,_=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),f=h;b(i,dt);var p=i.__destroy_into_raw(),y=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),w=h,E=m(c)?0:g(c,a.__wbindgen_malloc,a.__wbindgen_realloc),C=h;return a.sdk_speculative_transfer_transaction(this.__wbg_ptr,l,u,d,_,f,p,y,w,m(s)?3:s,E,C)}install(e,t,r){b(e,dt);var i=e.__destroy_into_raw();b(t,bt);var o=t.__destroy_into_raw(),s=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.sdk_install(this.__wbg_ptr,i,o,s,h)}speculative_transfer(e,t,r,i,o,s,c){const l=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),u=h,d=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),_=h;var f=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),p=h;b(i,Kt);var y=i.__destroy_into_raw();b(o,er);var w=o.__destroy_into_raw(),E=m(c)?0:g(c,a.__wbindgen_malloc,a.__wbindgen_realloc),C=h;return a.sdk_speculative_transfer(this.__wbg_ptr,l,u,d,_,f,p,y,w,m(s)?3:s,E,C)}get_block_options(e){const t=a.sdk_get_block_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return za.__wrap(t[0])}get_block(e){let t=0;return m(e)||(b(e,za),t=e.__destroy_into_raw()),a.sdk_get_block(this.__wbg_ptr,t)}chain_get_block(e){let t=0;return m(e)||(b(e,za),t=e.__destroy_into_raw()),a.sdk_chain_get_block(this.__wbg_ptr,t)}get_state_root_hash_options(e){const t=a.sdk_get_state_root_hash_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return Za.__wrap(t[0])}get_state_root_hash(e){let t=0;return m(e)||(b(e,Za),t=e.__destroy_into_raw()),a.sdk_get_state_root_hash(this.__wbg_ptr,t)}chain_get_state_root_hash(e){let t=0;return m(e)||(b(e,Za),t=e.__destroy_into_raw()),a.sdk_chain_get_state_root_hash(this.__wbg_ptr,t)}query_balance_options(e){const t=a.sdk_query_balance_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return fd.__wrap(t[0])}query_balance(e){let t=0;return m(e)||(b(e,fd),t=e.__destroy_into_raw()),a.sdk_query_balance(this.__wbg_ptr,t)}get_speculative_exec_options(e){const t=a.sdk_get_speculative_exec_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return dd.__wrap(t[0])}speculative_exec(e){let t=0;return m(e)||(b(e,dd),t=e.__destroy_into_raw()),a.sdk_speculative_exec(this.__wbg_ptr,t)}get_speculative_exec_deploy_options(e){const t=a.sdk_get_speculative_exec_deploy_options(this.__wbg_ptr,e);if(t[2])throw F(t[1]);return ud.__wrap(t[0])}speculative_exec_deploy(e){let t=0;return m(e)||(b(e,ud),t=e.__destroy_into_raw()),a.sdk_speculative_exec_deploy(this.__wbg_ptr,t)}make_deploy(e,t,r){b(e,Kt);var i=e.__destroy_into_raw();b(t,Bi);var o=t.__destroy_into_raw();b(r,er);var s=r.__destroy_into_raw();const c=a.sdk_make_deploy(this.__wbg_ptr,i,o,s);if(c[2])throw F(c[1]);return ae.__wrap(c[0])}make_transfer(e,t,r,i,o){const s=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h,l=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),u=h;var d=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),_=h;b(i,Kt);var f=i.__destroy_into_raw();b(o,er);var p=o.__destroy_into_raw();const y=a.sdk_make_transfer(this.__wbg_ptr,s,c,l,u,d,_,f,p);if(y[2])throw F(y[1]);return ae.__wrap(y[0])}sign_transaction(e,t){b(e,de);var r=e.__destroy_into_raw();const i=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),s=a.sdk_sign_transaction(this.__wbg_ptr,r,i,h);return de.__wrap(s)}install_deploy(e,t,r,i){b(e,Kt);var o=e.__destroy_into_raw();b(t,Bi);var s=t.__destroy_into_raw();const c=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h;var u=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc);return a.sdk_install_deploy(this.__wbg_ptr,o,s,c,l,u,h)}constructor(e,t){var r=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const o=a.sdk_new(r,h,m(t)?3:t);return this.__wbg_ptr=o>>>0,rT.register(this,this.__wbg_ptr,this),this}getRPCAddress(e){let t,r;try{var i=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.sdk_getRPCAddress(this.__wbg_ptr,i,h);return t=s[0],r=s[1],v(s[0],s[1])}finally{a.__wbindgen_free(t,r,1)}}setRPCAddress(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const i=a.sdk_setRPCAddress(this.__wbg_ptr,t,h);if(i[1])throw F(i[0])}getVerbosity(e){return a.sdk_getVerbosity(this.__wbg_ptr,m(e)?3:e)}setVerbosity(e){const t=a.sdk_setVerbosity(this.__wbg_ptr,m(e)?3:e);if(t[1])throw F(t[0])}}const iT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_sessionstrparams_free(n>>>0,1));class Bi{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,iT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_sessionstrparams_free(e,0)}constructor(e,t,r,i,o,s,c,l,u,d,_){var f=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),p=h,y=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),w=h,E=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),C=h,D=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),N=h,B=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),Q=h;let oe=0;m(s)||(b(s,bt),oe=s.__destroy_into_raw());var Be=m(l)?0:g(l,a.__wbindgen_malloc,a.__wbindgen_realloc),jt=h,Wr=m(u)?0:g(u,a.__wbindgen_malloc,a.__wbindgen_realloc),Gi=h,hc=m(d)?0:g(d,a.__wbindgen_malloc,a.__wbindgen_realloc),gc=h;const mc=a.sessionstrparams_new(f,p,y,w,E,C,D,N,B,Q,oe,m(c)?0:Pi(c),Be,jt,Wr,Gi,hc,gc,m(_)?16777215:_?1:0);return this.__wbg_ptr=mc>>>0,iT.register(this,this.__wbg_ptr,this),this}get session_hash(){const e=a.sessionstrparams_session_hash(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_hash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_hash(this.__wbg_ptr,t,h)}get session_name(){const e=a.sessionstrparams_session_name(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_name(this.__wbg_ptr,t,h)}get session_package_hash(){const e=a.sessionstrparams_session_package_hash(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_package_hash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_package_hash(this.__wbg_ptr,t,h)}get session_package_name(){const e=a.sessionstrparams_session_package_name(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_package_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_package_name(this.__wbg_ptr,t,h)}get session_path(){const e=a.sessionstrparams_session_path(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_path(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_path(this.__wbg_ptr,t,h)}get session_bytes(){const e=a.sessionstrparams_session_bytes(this.__wbg_ptr);return 0===e?void 0:bt.__wrap(e)}set session_bytes(e){b(e,bt);var t=e.__destroy_into_raw();a.sessionstrparams_set_session_bytes(this.__wbg_ptr,t)}get session_args_simple(){const e=a.sessionstrparams_session_args_simple(this.__wbg_ptr);return 0===e?void 0:Xu.__wrap(e)}set session_args_simple(e){a.sessionstrparams_set_session_args_simple(this.__wbg_ptr,e)}get session_args_json(){const e=a.sessionstrparams_session_args_json(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_args_json(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_args_json(this.__wbg_ptr,t,h)}get session_version(){const e=a.sessionstrparams_session_version(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_version(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_version(this.__wbg_ptr,t,h)}get session_entry_point(){const e=a.sessionstrparams_session_entry_point(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_entry_point(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.sessionstrparams_set_session_entry_point(this.__wbg_ptr,t,h)}get is_session_transfer(){const e=a.sessionstrparams_is_session_transfer(this.__wbg_ptr);return 16777215===e?void 0:0!==e}set is_session_transfer(e){a.sessionstrparams_set_is_session_transfer(this.__wbg_ptr,e)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_signatureresponse_free(n>>>0,1));const oT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_speculativeexecresult_free(n>>>0,1));class am{static __wrap(e){e>>>=0;const t=Object.create(am.prototype);return t.__wbg_ptr=e,oT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,oT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_speculativeexecresult_free(e,0)}get api_version(){return a.speculativeexecresult_api_version(this.__wbg_ptr)}get block_hash(){const e=a.speculativeexecresult_block_hash(this.__wbg_ptr);return yr.__wrap(e)}get execution_result(){return a.speculativeexecresult_execution_result(this.__wbg_ptr)}toJson(){return a.speculativeexecresult_toJson(this.__wbg_ptr)}}const sT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_speculativeexectxnresult_free(n>>>0,1));class cm{static __wrap(e){e>>>=0;const t=Object.create(cm.prototype);return t.__wbg_ptr=e,sT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,sT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_speculativeexectxnresult_free(e,0)}get api_version(){return a.speculativeexectxnresult_api_version(this.__wbg_ptr)}get block_hash(){const e=a.speculativeexecresult_block_hash(this.__wbg_ptr);return yr.__wrap(e)}get execution_result(){return a.speculativeexectxnresult_execution_result(this.__wbg_ptr)}toJson(){return a.speculativeexectxnresult_toJson(this.__wbg_ptr)}}const aT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_subscription_free(n>>>0,1));class lm{static __unwrap(e){return e instanceof lm?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,aT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_subscription_free(e,0)}get targetHash(){let e,t;try{const r=a.__wbg_get_subscription_targetHash(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}set targetHash(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_failure_cost(this.__wbg_ptr,t,h)}get eventHandlerFn(){return a.__wbg_get_subscription_eventHandlerFn(this.__wbg_ptr)}set eventHandlerFn(e){a.__wbg_set_subscription_eventHandlerFn(this.__wbg_ptr,e)}constructor(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=a.subscription_new(r,h,t);return this.__wbg_ptr=o>>>0,aT.register(this,this.__wbg_ptr,this),this}}const um=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_transaction_free(n>>>0,1));class de{static __wrap(e){e>>>=0;const t=Object.create(de.prototype);return t.__wbg_ptr=e,um.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,um.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_transaction_free(e,0)}constructor(e){const t=a.transaction_new(e);return this.__wbg_ptr=t>>>0,um.register(this,this.__wbg_ptr,this),this}toJson(){return a.transaction_toJson(this.__wbg_ptr)}static newSession(e,t){b(e,je);var r=e.__destroy_into_raw();b(t,dt);var i=t.__destroy_into_raw();const o=a.transaction_newSession(r,i);if(o[2])throw F(o[1]);return de.__wrap(o[0])}static newTransfer(e,t,r,i,o){let s=0;m(e)||(b(e,st),s=e.__destroy_into_raw());const c=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h,u=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h;b(i,dt);var _=i.__destroy_into_raw(),f=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc);const y=a.transaction_newTransfer(s,c,l,u,d,_,f,h);if(y[2])throw F(y[1]);return de.__wrap(y[0])}withTTL(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.transaction_withTTL(this.__wbg_ptr,r,i,o,h);return de.__wrap(c)}withTimestamp(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.transaction_withTimestamp(this.__wbg_ptr,r,i,o,h);return de.__wrap(c)}withChainName(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.transaction_withChainName(this.__wbg_ptr,r,i,o,h);return de.__wrap(c)}withPublicKey(e,t){b(e,Ee);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.transaction_withPublicKey(this.__wbg_ptr,r,i,h);return de.__wrap(s)}withAccountHash(e,t){b(e,ut);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.transaction_withAccountHash(this.__wbg_ptr,r,i,h);return de.__wrap(s)}withEntryPoint(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h;var o=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const c=a.transaction_withEntryPoint(this.__wbg_ptr,r,i,o,h);return de.__wrap(c)}withEntityHash(e,t){b(e,Yn);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.transaction_withEntityHash(this.__wbg_ptr,r,i,h);return de.__wrap(s)}withPackageHash(e,t){b(e,Xn);var r=e.__destroy_into_raw(),i=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const s=a.transaction_withPackageHash(this.__wbg_ptr,r,i,h);return de.__wrap(s)}withTransactionBytes(e,t,r){b(e,bt);var i=e.__destroy_into_raw(),o=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;const c=a.transaction_withTransactionBytes(this.__wbg_ptr,i,m(t)?16777215:t?1:0,o,s);return de.__wrap(c)}withSecretKey(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);const i=a.transaction_withSecretKey(this.__wbg_ptr,t,h);return de.__wrap(i)}verify(){return 0!==a.transaction_verify(this.__wbg_ptr)}get hash(){const e=a.transaction_hash(this.__wbg_ptr);return Hi.__wrap(e)}get expired(){return 0!==a.transaction_expired(this.__wbg_ptr)}get expires(){return a.transaction_expires(this.__wbg_ptr)}get signers(){return a.transaction_signers(this.__wbg_ptr)}get authorization_keys(){return a.transaction_authorization_keys(this.__wbg_ptr)}sign(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.transaction_sign(this.__wbg_ptr,t,h);return de.__wrap(i)}approvalsHash(){return a.transaction_approvalsHash(this.__wbg_ptr)}get approvals(){return a.transaction_approvals(this.__wbg_ptr)}get is_native(){return 0!==a.transaction_is_native(this.__wbg_ptr)}get target(){return a.transaction_target(this.__wbg_ptr)}get is_standard_payment(){return 0!==a.transaction_is_standard_payment(this.__wbg_ptr)}session_args(){return a.transaction_session_args(this.__wbg_ptr)}addSignature(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h,o=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=a.transaction_addSignature(this.__wbg_ptr,r,i,o,h);return de.__wrap(c)}get entry_point(){let e,t;try{const r=a.transaction_entry_point(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get ttl(){let e,t;try{const r=a.transaction_ttl(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get timestamp(){let e,t;try{const r=a.transaction_timestamp(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get size_estimate(){return a.transaction_size_estimate(this.__wbg_ptr)>>>0}get chain_name(){let e,t;try{const r=a.transaction_chain_name(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get initiator_addr(){let e,t;try{const r=a.transaction_initiator_addr(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}get pricing_mode(){return a.transaction_pricing_mode(this.__wbg_ptr)}get additional_computation_factor(){return a.transaction_additional_computation_factor(this.__wbg_ptr)}get receipt(){const e=a.transaction_receipt(this.__wbg_ptr);return Le.__wrap(e)}get gas_price_tolerance(){return a.transaction_gas_price_tolerance(this.__wbg_ptr)}get account_hash(){const e=a.transaction_account_hash(this.__wbg_ptr);return ut.__wrap(e)}addArg(e,t){var r=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc);const o=a.transaction_addArg(this.__wbg_ptr,e,r,h);if(o[2])throw F(o[1]);return de.__wrap(o[0])}}const cT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_transactionbuilderparams_free(n>>>0,1));class je{static __wrap(e){e>>>=0;const t=Object.create(je.prototype);return t.__wbg_ptr=e,cT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,cT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_transactionbuilderparams_free(e,0)}static newSession(e,t){let r=0;m(e)||(b(e,bt),r=e.__destroy_into_raw());const i=a.transactionbuilderparams_newSession(r,m(t)?16777215:t?1:0);return je.__wrap(i)}static newTransfer(e,t,r,i){let o=0;m(e)||(b(e,st),o=e.__destroy_into_raw()),b(t,ja);var s=t.__destroy_into_raw();const c=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),u=a.transactionbuilderparams_newTransfer(o,s,c,h,!m(i),m(i)?BigInt(0):i);return je.__wrap(u)}static newInvocableEntity(e,t){b(e,Yn);var r=e.__destroy_into_raw();const i=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),s=a.transactionbuilderparams_newInvocableEntity(r,i,h);return je.__wrap(s)}static newInvocableEntityAlias(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=h,o=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=a.transactionbuilderparams_newInvocableEntityAlias(r,i,o,h);return je.__wrap(c)}static newPackage(e,t,r){b(e,Xn);var i=e.__destroy_into_raw();const o=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;var c=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);const u=a.transactionbuilderparams_newPackage(i,o,s,c,h);return je.__wrap(u)}static newPackageAlias(e,t,r){const i=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h,s=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),c=h;var l=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc);const d=a.transactionbuilderparams_newPackageAlias(i,o,s,c,l,h);return je.__wrap(d)}static newAddBid(e,t,r,i,o){b(e,Ee);var s=e.__destroy_into_raw();const c=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),u=a.transactionbuilderparams_newAddBid(s,t,c,h,i,o);return je.__wrap(u)}static newDelegate(e,t,r){b(e,Ee);var i=e.__destroy_into_raw();b(t,Ee);var o=t.__destroy_into_raw();const s=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),l=a.transactionbuilderparams_newDelegate(i,o,s,h);return je.__wrap(l)}static newUndelegate(e,t,r){b(e,Ee);var i=e.__destroy_into_raw();b(t,Ee);var o=t.__destroy_into_raw();const s=g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),l=a.transactionbuilderparams_newUndelegate(i,o,s,h);return je.__wrap(l)}static newRedelegate(e,t,r,i){b(e,Ee);var o=e.__destroy_into_raw();b(t,Ee);var s=t.__destroy_into_raw();b(r,Ee);var c=r.__destroy_into_raw();const l=g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),d=a.transactionbuilderparams_newRedelegate(o,s,c,l,h);return je.__wrap(d)}static newWithdrawBid(e,t){b(e,Ee);var r=e.__destroy_into_raw();const i=g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),s=a.transactionbuilderparams_newWithdrawBid(r,i,h);return je.__wrap(s)}get kind(){return a.transactionbuilderparams_kind(this.__wbg_ptr)}set kind(e){a.transactionbuilderparams_set_kind(this.__wbg_ptr,e)}get transaction_bytes(){const e=a.transactionbuilderparams_transaction_bytes(this.__wbg_ptr);return 0===e?void 0:bt.__wrap(e)}set transaction_bytes(e){b(e,bt);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_transaction_bytes(this.__wbg_ptr,t)}get maybe_source(){const e=a.transactionbuilderparams_maybe_source(this.__wbg_ptr);return 0===e?void 0:st.__wrap(e)}set maybe_source(e){b(e,st);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_maybe_source(this.__wbg_ptr,t)}get target(){const e=a.transactionbuilderparams_target(this.__wbg_ptr);return 0===e?void 0:ja.__wrap(e)}set target(e){b(e,ja);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_target(this.__wbg_ptr,t)}get amount(){const e=a.transactionbuilderparams_amount(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set amount(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionbuilderparams_set_amount(this.__wbg_ptr,t,h)}get maybe_id(){const e=a.transactionbuilderparams_maybe_id(this.__wbg_ptr);return 0===e[0]?void 0:BigInt.asUintN(64,e[1])}set maybe_id(e){a.transactionbuilderparams_set_maybe_id(this.__wbg_ptr,e)}get entity_hash(){const e=a.transactionbuilderparams_entity_hash(this.__wbg_ptr);return 0===e?void 0:Yn.__wrap(e)}set entity_hash(e){b(e,Yn);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_entity_hash(this.__wbg_ptr,t)}get entity_alias(){const e=a.transactionbuilderparams_entity_alias(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set entity_alias(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionbuilderparams_set_entity_alias(this.__wbg_ptr,t,h)}get entry_point(){const e=a.transactionbuilderparams_entry_point(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set entry_point(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionbuilderparams_set_entry_point(this.__wbg_ptr,t,h)}get package_hash(){const e=a.transactionbuilderparams_package_hash(this.__wbg_ptr);return 0===e?void 0:Xn.__wrap(e)}set package_hash(e){b(e,Xn);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_package_hash(this.__wbg_ptr,t)}get package_alias(){const e=a.transactionbuilderparams_package_alias(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set package_alias(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionbuilderparams_set_package_alias(this.__wbg_ptr,t,h)}get public_key(){const e=a.transactionbuilderparams_public_key(this.__wbg_ptr);return 0===e?void 0:Ee.__wrap(e)}set public_key(e){b(e,Ee);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_public_key(this.__wbg_ptr,t)}get delegation_rate(){const e=a.transactionbuilderparams_delegation_rate(this.__wbg_ptr);return 16777215===e?void 0:e}set delegation_rate(e){a.transactionbuilderparams_set_delegation_rate(this.__wbg_ptr,e)}get delegator(){const e=a.transactionbuilderparams_delegator(this.__wbg_ptr);return 0===e?void 0:Ee.__wrap(e)}set delegator(e){b(e,Ee);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_delegator(this.__wbg_ptr,t)}get validator(){const e=a.transactionbuilderparams_validator(this.__wbg_ptr);return 0===e?void 0:Ee.__wrap(e)}set validator(e){b(e,Ee);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_validator(this.__wbg_ptr,t)}get new_validator(){const e=a.transactionbuilderparams_new_validator(this.__wbg_ptr);return 0===e?void 0:Ee.__wrap(e)}set new_validator(e){b(e,Ee);var t=e.__destroy_into_raw();a.transactionbuilderparams_set_new_validator(this.__wbg_ptr,t)}get minimum_delegation_amount(){const e=a.transactionbuilderparams_minimum_delegation_amount(this.__wbg_ptr);return 0===e[0]?void 0:BigInt.asUintN(64,e[1])}set minimum_delegation_amount(e){a.transactionbuilderparams_set_minimum_delegation_amount(this.__wbg_ptr,e)}get maximum_delegation_amount(){const e=a.transactionbuilderparams_maximum_delegation_amount(this.__wbg_ptr);return 0===e[0]?void 0:BigInt.asUintN(64,e[1])}set maximum_delegation_amount(e){a.transactionbuilderparams_set_maximum_delegation_amount(this.__wbg_ptr,e)}get is_install_upgrade(){const e=a.transactionbuilderparams_is_install_upgrade(this.__wbg_ptr);return 16777215===e?void 0:0!==e}set is_install_upgrade(e){a.transactionbuilderparams_set_is_install_upgrade(this.__wbg_ptr,e)}}const dm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_transactionhash_free(n>>>0,1));class Hi{static __wrap(e){e>>>=0;const t=Object.create(Hi.prototype);return t.__wbg_ptr=e,dm.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,dm.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_transactionhash_free(e,0)}constructor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.transactionhash_new_js_alias(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,dm.register(this,this.__wbg_ptr,this),this}static fromRaw(e){const t=Pt(e,a.__wbindgen_malloc),i=a.transactionhash_fromRaw(t,h);if(i[2])throw F(i[1]);return Hi.__wrap(i[0])}digest(){const e=a.transactionhash_digest(this.__wbg_ptr);if(e[2])throw F(e[1]);return Le.__wrap(e[0])}toJson(){return a.transactionhash_toJson(this.__wbg_ptr)}toString(){let e,t;try{const r=a.transactionhash_toString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_transactionprocessed_free(n>>>0,1));const _m=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_transactionstrparams_free(n>>>0,1));class dt{static __wrap(e){e>>>=0;const t=Object.create(dt.prototype);return t.__wbg_ptr=e,_m.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,_m.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_transactionstrparams_free(e,0)}constructor(e,t,r,i,o,s,c,l,u,d,_,f,p){const y=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),w=h;var E=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),C=h,D=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),N=h,B=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),Q=h,oe=m(o)?0:g(o,a.__wbindgen_malloc,a.__wbindgen_realloc),Be=h,jt=m(s)?0:Zu(s,a.__wbindgen_malloc),Wr=h,Gi=m(c)?0:g(c,a.__wbindgen_malloc,a.__wbindgen_realloc),hc=h,gc=m(u)?0:g(u,a.__wbindgen_malloc,a.__wbindgen_realloc),mc=h,cq=m(d)?0:g(d,a.__wbindgen_malloc,a.__wbindgen_realloc),lq=h,uq=m(_)?0:g(_,a.__wbindgen_malloc,a.__wbindgen_realloc),dq=h,_q=m(f)?0:g(f,a.__wbindgen_malloc,a.__wbindgen_realloc),fq=h;const pq=a.transactionstrparams_new(y,w,E,C,D,N,B,Q,oe,Be,jt,Wr,Gi,hc,m(l)?3:l,gc,mc,cq,lq,uq,dq,_q,fq,m(p)?16777215:p?1:0);return this.__wbg_ptr=pq>>>0,_m.register(this,this.__wbg_ptr,this),this}static new_with_defaults(e,t,r,i){const o=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;var c=m(t)?0:g(t,a.__wbindgen_malloc,a.__wbindgen_realloc),l=h,u=m(r)?0:g(r,a.__wbindgen_malloc,a.__wbindgen_realloc),d=h,_=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc);const p=a.transactionstrparams_new_with_defaults(o,s,c,l,u,d,_,h);return dt.__wrap(p)}get secret_key(){const e=a.transactionstrparams_secret_key(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set secret_key(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_secret_key(this.__wbg_ptr,t,h)}get timestamp(){const e=a.transactionstrparams_timestamp(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set timestamp(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_timestamp(this.__wbg_ptr,t,h)}setDefaultTimestamp(){a.transactionstrparams_setDefaultTimestamp(this.__wbg_ptr)}get ttl(){const e=a.transactionstrparams_ttl(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set ttl(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_ttl(this.__wbg_ptr,t,h)}setDefaultTTL(){a.transactionstrparams_setDefaultTTL(this.__wbg_ptr)}get chain_name(){const e=a.transactionstrparams_chain_name(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set chain_name(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_chain_name(this.__wbg_ptr,t,h)}get initiator_addr(){const e=a.transactionstrparams_initiator_addr(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set initiator_addr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_initiator_addr(this.__wbg_ptr,t,h)}get session_args_simple(){const e=a.transactionstrparams_session_args_simple(this.__wbg_ptr);return 0===e?void 0:Xu.__wrap(e)}set session_args_simple(e){const t=Zu(e,a.__wbindgen_malloc);a.transactionstrparams_set_session_args_simple(this.__wbg_ptr,t,h)}get session_args_json(){const e=a.transactionstrparams_session_args_json(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set session_args_json(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_session_args_json(this.__wbg_ptr,t,h)}get pricing_mode(){const e=a.transactionstrparams_pricing_mode(this.__wbg_ptr);return 3===e?void 0:e}set pricing_mode(e){a.transactionstrparams_set_pricing_mode(this.__wbg_ptr,e)}get additional_computation_factor(){const e=a.transactionstrparams_additional_computation_factor(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set additional_computation_factor(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_additional_computation_factor(this.__wbg_ptr,t,h)}get payment_amount(){const e=a.transactionstrparams_payment_amount(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set payment_amount(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_payment_amount(this.__wbg_ptr,t,h)}get gas_price_tolerance(){const e=a.transactionstrparams_gas_price_tolerance(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set gas_price_tolerance(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_gas_price_tolerance(this.__wbg_ptr,t,h)}get receipt(){const e=a.transactionstrparams_receipt(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set receipt(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.transactionstrparams_set_receipt(this.__wbg_ptr,t,h)}get standard_payment(){const e=a.transactionstrparams_standard_payment(this.__wbg_ptr);return 16777215===e?void 0:0!==e}set standard_payment(e){a.transactionstrparams_set_standard_payment(this.__wbg_ptr,e)}}const fm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_transferaddr_free(n>>>0,1));class pm{static __wrap(e){e>>>=0;const t=Object.create(pm.prototype);return t.__wbg_ptr=e,fm.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,fm.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_transferaddr_free(e,0)}constructor(e){const t=Pt(e,a.__wbindgen_malloc),i=a.transferaddr_new(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,fm.register(this,this.__wbg_ptr,this),this}}const hm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_transfertarget_free(n>>>0,1));class ja{static __wrap(e){e>>>=0;const t=Object.create(ja.prototype);return t.__wbg_ptr=e,hm.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,hm.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_transfertarget_free(e,0)}constructor(e,t,r,i){let o=0;m(t)||(b(t,Ee),o=t.__destroy_into_raw());let s=0;m(r)||(b(r,ut),s=r.__destroy_into_raw());let c=0;m(i)||(b(i,st),c=i.__destroy_into_raw());const l=a.transfertarget_new(e,o,s,c);return this.__wbg_ptr=l>>>0,hm.register(this,this.__wbg_ptr,this),this}}const gm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_uref_free(n>>>0,1));class st{static __wrap(e){e>>>=0;const t=Object.create(st.prototype);return t.__wbg_ptr=e,gm.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,gm.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_uref_free(e,0)}constructor(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=a.uref_new_js_alias(r,h,t);if(o[2])throw F(o[1]);return this.__wbg_ptr=o[0]>>>0,gm.register(this,this.__wbg_ptr,this),this}static fromFormattedStr(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),i=a.uref_fromFormattedStr(t,h);if(i[2])throw F(i[1]);return st.__wrap(i[0])}static fromUint8Array(e,t){const r=Pt(e,a.__wbindgen_malloc),o=a.uref_fromUint8Array(r,h,t);return st.__wrap(o)}toFormattedString(){let e,t;try{const r=a.uref_toFormattedString(this.__wbg_ptr);return e=r[0],t=r[1],v(r[0],r[1])}finally{a.__wbindgen_free(e,t,1)}}toJson(){return a.uref_toJson(this.__wbg_ptr)}}const mm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_urefaddr_free(n>>>0,1));class ad{static __wrap(e){e>>>=0;const t=Object.create(ad.prototype);return t.__wbg_ptr=e,mm.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,mm.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_urefaddr_free(e,0)}constructor(e){const t=Pt(e,a.__wbindgen_malloc),i=a.urefaddr_new(t,h);if(i[2])throw F(i[1]);return this.__wbg_ptr=i[0]>>>0,mm.register(this,this.__wbg_ptr,this),this}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>a.__wbg_version2_free(n>>>0,1));const ym=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_watcher_free(n>>>0,1));class ld{static __wrap(e){e>>>=0;const t=Object.create(ld.prototype);return t.__wbg_ptr=e,ym.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ym.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_watcher_free(e,0)}constructor(e,t){const r=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc),o=a.watcher_new(r,h,!m(t),m(t)?BigInt(0):t);return this.__wbg_ptr=o>>>0,ym.register(this,this.__wbg_ptr,this),this}subscribe(e){const t=Zu(e,a.__wbindgen_malloc),i=a.watcher_subscribe(this.__wbg_ptr,t,h);if(i[1])throw F(i[0])}unsubscribe(e){const t=g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.watcher_unsubscribe(this.__wbg_ptr,t,h)}start(){return a.watcher_start(this.__wbg_ptr)}stop(){a.watcher_stop(this.__wbg_ptr)}}const dT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getaccountoptions_free(n>>>0,1));class Ba{static __wrap(e){e>>>=0;const t=Object.create(Ba.prototype);return t.__wbg_ptr=e,dT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,dT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getaccountoptions_free(e,0)}get account_identifier(){const e=a.__wbg_get_getaccountoptions_account_identifier(this.__wbg_ptr);return 0===e?void 0:Li.__wrap(e)}set account_identifier(e){let t=0;m(e)||(b(e,Li),t=e.__destroy_into_raw()),a.__wbg_set_getaccountoptions_account_identifier(this.__wbg_ptr,t)}get account_identifier_as_string(){const e=a.__wbg_get_getaccountoptions_account_identifier_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set account_identifier_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getaccountoptions_account_identifier_as_string(this.__wbg_ptr,t,h)}get maybe_block_id_as_string(){const e=a.__wbg_get_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getaccountoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getaccountoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getaccountoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getaccountoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getaccountoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const _T=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getauctioninfooptions_free(n>>>0,1));class Ha{static __wrap(e){e>>>=0;const t=Object.create(Ha.prototype);return t.__wbg_ptr=e,_T.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,_T.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getauctioninfooptions_free(e,0)}get maybe_block_id_as_string(){const e=a.__wbg_get_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getauctioninfooptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const fT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getbalanceoptions_free(n>>>0,1));class Ua{static __wrap(e){e>>>=0;const t=Object.create(Ua.prototype);return t.__wbg_ptr=e,fT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,fT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getbalanceoptions_free(e,0)}get state_root_hash_as_string(){const e=a.__wbg_get_getbalanceoptions_state_root_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set state_root_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getbalanceoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get state_root_hash(){const e=a.__wbg_get_getbalanceoptions_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}set state_root_hash(e){let t=0;m(e)||(b(e,Le),t=e.__destroy_into_raw()),a.__wbg_set_getbalanceoptions_state_root_hash(this.__wbg_ptr,t)}get purse_uref_as_string(){const e=a.__wbg_get_getbalanceoptions_purse_uref_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set purse_uref_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getbalanceoptions_purse_uref_as_string(this.__wbg_ptr,t,h)}get purse_uref(){const e=a.__wbg_get_getbalanceoptions_purse_uref(this.__wbg_ptr);return 0===e?void 0:st.__wrap(e)}set purse_uref(e){let t=0;m(e)||(b(e,st),t=e.__destroy_into_raw()),a.__wbg_set_getbalanceoptions_purse_uref(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getbalanceoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getbalanceoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getbalanceoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getbalanceoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const pT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getblockoptions_free(n>>>0,1));class za{static __wrap(e){e>>>=0;const t=Object.create(za.prototype);return t.__wbg_ptr=e,pT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,pT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getblockoptions_free(e,0)}get maybe_block_id_as_string(){const e=a.__wbg_get_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getblockoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const hT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getblocktransfersoptions_free(n>>>0,1));class $a{static __wrap(e){e>>>=0;const t=Object.create($a.prototype);return t.__wbg_ptr=e,hT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,hT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getblocktransfersoptions_free(e,0)}get maybe_block_id_as_string(){const e=a.__wbg_get_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr,t)}get verbosity(){const e=a.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}get rpc_address(){const e=a.__wbg_get_getblocktransfersoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr,t,h)}}const gT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getdeployoptions_free(n>>>0,1));class qa{static __wrap(e){e>>>=0;const t=Object.create(qa.prototype);return t.__wbg_ptr=e,gT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,gT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getdeployoptions_free(e,0)}get deploy_hash_as_string(){const e=a.__wbg_get_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set deploy_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr,t,h)}get deploy_hash(){const e=a.__wbg_get_getdeployoptions_deploy_hash(this.__wbg_ptr);return 0===e?void 0:Ur.__wrap(e)}set deploy_hash(e){let t=0;m(e)||(b(e,Ur),t=e.__destroy_into_raw()),a.__wbg_set_getdeployoptions_deploy_hash(this.__wbg_ptr,t)}get finalized_approvals(){const e=a.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr);return 16777215===e?void 0:0!==e}set finalized_approvals(e){a.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr,m(e)?16777215:e?1:0)}get rpc_address(){const e=a.__wbg_get_getdeployoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdeployoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const mT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getdictionaryitemoptions_free(n>>>0,1));class Ga{static __wrap(e){e>>>=0;const t=Object.create(Ga.prototype);return t.__wbg_ptr=e,mT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,mT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getdictionaryitemoptions_free(e,0)}get state_root_hash_as_string(){const e=a.__wbg_get_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set state_root_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get state_root_hash(){const e=a.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}set state_root_hash(e){let t=0;m(e)||(b(e,Le),t=e.__destroy_into_raw()),a.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,t)}get dictionary_item_params(){const e=a.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===e?void 0:Vi.__wrap(e)}set dictionary_item_params(e){let t=0;m(e)||(b(e,Vi),t=e.__destroy_into_raw()),a.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,t)}get dictionary_item_identifier(){const e=a.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===e?void 0:vt.__wrap(e)}set dictionary_item_identifier(e){let t=0;m(e)||(b(e,vt),t=e.__destroy_into_raw()),a.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getdictionaryitemoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdictionaryitemoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const yT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getentityoptions_free(n>>>0,1));class Wa{static __wrap(e){e>>>=0;const t=Object.create(Wa.prototype);return t.__wbg_ptr=e,yT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,yT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getentityoptions_free(e,0)}get entity_identifier(){const e=a.__wbg_get_getentityoptions_entity_identifier(this.__wbg_ptr);return 0===e?void 0:Qn.__wrap(e)}set entity_identifier(e){let t=0;m(e)||(b(e,Qn),t=e.__destroy_into_raw()),a.__wbg_set_getentityoptions_entity_identifier(this.__wbg_ptr,t)}get entity_identifier_as_string(){const e=a.__wbg_get_getentityoptions_entity_identifier_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set entity_identifier_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getentityoptions_entity_identifier_as_string(this.__wbg_ptr,t,h)}get maybe_block_id_as_string(){const e=a.__wbg_get_getentityoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getentityoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getentityoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getentityoptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getentityoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getentityoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getentityoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getentityoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const wT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_geterainfooptions_free(n>>>0,1));class Ja{static __wrap(e){e>>>=0;const t=Object.create(Ja.prototype);return t.__wbg_ptr=e,wT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,wT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_geterainfooptions_free(e,0)}get maybe_block_id_as_string(){const e=a.__wbg_get_geterainfooptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_geterainfooptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const bT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_geterasummaryoptions_free(n>>>0,1));class Ka{static __wrap(e){e>>>=0;const t=Object.create(Ka.prototype);return t.__wbg_ptr=e,bT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,bT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_geterasummaryoptions_free(e,0)}get maybe_block_id_as_string(){const e=a.__wbg_get_geterasummaryoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_geterasummaryoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const vT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getspeculativeexecdeployoptions_free(n>>>0,1));class ud{static __wrap(e){e>>>=0;const t=Object.create(ud.prototype);return t.__wbg_ptr=e,vT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,vT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getspeculativeexecdeployoptions_free(e,0)}get deploy_as_string(){const e=a.__wbg_get_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set deploy_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr,t,h)}get deploy(){const e=a.__wbg_get_getspeculativeexecdeployoptions_deploy(this.__wbg_ptr);return 0===e?void 0:ae.__wrap(e)}set deploy(e){let t=0;m(e)||(b(e,ae),t=e.__destroy_into_raw()),a.__wbg_set_getspeculativeexecdeployoptions_deploy(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const ET=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getspeculativeexectxnoptions_free(n>>>0,1));class dd{static __wrap(e){e>>>=0;const t=Object.create(dd.prototype);return t.__wbg_ptr=e,ET.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ET.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getspeculativeexectxnoptions_free(e,0)}get transaction_as_string(){const e=a.__wbg_get_getspeculativeexectxnoptions_transaction_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set transaction_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr,t,h)}get transaction(){const e=a.__wbg_get_getspeculativeexectxnoptions_transaction(this.__wbg_ptr);return 0===e?void 0:de.__wrap(e)}set transaction(e){let t=0;m(e)||(b(e,de),t=e.__destroy_into_raw()),a.__wbg_set_getspeculativeexectxnoptions_transaction(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getspeculativeexectxnoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const DT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_getstateroothashoptions_free(n>>>0,1));class Za{static __wrap(e){e>>>=0;const t=Object.create(Za.prototype);return t.__wbg_ptr=e,DT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,DT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_getstateroothashoptions_free(e,0)}get maybe_block_id_as_string(){const e=a.__wbg_get_getstateroothashoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_getstateroothashoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const CT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_gettransactionoptions_free(n>>>0,1));class Ya{static __wrap(e){e>>>=0;const t=Object.create(Ya.prototype);return t.__wbg_ptr=e,CT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,CT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_gettransactionoptions_free(e,0)}get transaction_hash_as_string(){const e=a.__wbg_get_gettransactionoptions_transaction_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set transaction_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdeployoptions_deploy_hash_as_string(this.__wbg_ptr,t,h)}get transaction_hash(){const e=a.__wbg_get_gettransactionoptions_transaction_hash(this.__wbg_ptr);return 0===e?void 0:Hi.__wrap(e)}set transaction_hash(e){let t=0;m(e)||(b(e,Hi),t=e.__destroy_into_raw()),a.__wbg_set_gettransactionoptions_transaction_hash(this.__wbg_ptr,t)}get finalized_approvals(){const e=a.__wbg_get_getdeployoptions_finalized_approvals(this.__wbg_ptr);return 16777215===e?void 0:0!==e}set finalized_approvals(e){a.__wbg_set_getdeployoptions_finalized_approvals(this.__wbg_ptr,m(e)?16777215:e?1:0)}get rpc_address(){const e=a.__wbg_get_gettransactionoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdeployoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getdeployoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getdeployoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const ST=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_querybalancedetailsoptions_free(n>>>0,1));class _d{static __wrap(e){e>>>=0;const t=Object.create(_d.prototype);return t.__wbg_ptr=e,ST.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ST.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_querybalancedetailsoptions_free(e,0)}get purse_identifier_as_string(){const e=a.__wbg_get_querybalancedetailsoptions_purse_identifier_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set purse_identifier_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_purse_identifier_as_string(this.__wbg_ptr,t,h)}get purse_identifier(){const e=a.__wbg_get_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr);return 0===e?void 0:zr.__wrap(e)}set purse_identifier(e){let t=0;m(e)||(b(e,zr),t=e.__destroy_into_raw()),a.__wbg_set_querybalancedetailsoptions_purse_identifier(this.__wbg_ptr,t)}get global_state_identifier(){const e=a.__wbg_get_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr);return 0===e?void 0:Lt.__wrap(e)}set global_state_identifier(e){let t=0;m(e)||(b(e,Lt),t=e.__destroy_into_raw()),a.__wbg_set_querybalancedetailsoptions_global_state_identifier(this.__wbg_ptr,t)}get state_root_hash_as_string(){const e=a.__wbg_get_querybalancedetailsoptions_state_root_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set state_root_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get state_root_hash(){const e=a.__wbg_get_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}set state_root_hash(e){let t=0;m(e)||(b(e,Le),t=e.__destroy_into_raw()),a.__wbg_set_querybalancedetailsoptions_state_root_hash(this.__wbg_ptr,t)}get maybe_block_id_as_string(){const e=a.__wbg_get_querybalancedetailsoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get rpc_address(){const e=a.__wbg_get_querybalancedetailsoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_querybalancedetailsoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_querybalancedetailsoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const IT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_querybalanceoptions_free(n>>>0,1));class fd{static __wrap(e){e>>>=0;const t=Object.create(fd.prototype);return t.__wbg_ptr=e,IT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,IT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_querybalanceoptions_free(e,0)}get purse_identifier_as_string(){const e=a.__wbg_get_querybalanceoptions_purse_identifier_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set purse_identifier_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalanceoptions_purse_identifier_as_string(this.__wbg_ptr,t,h)}get purse_identifier(){const e=a.__wbg_get_querybalanceoptions_purse_identifier(this.__wbg_ptr);return 0===e?void 0:zr.__wrap(e)}set purse_identifier(e){let t=0;m(e)||(b(e,zr),t=e.__destroy_into_raw()),a.__wbg_set_querybalanceoptions_purse_identifier(this.__wbg_ptr,t)}get global_state_identifier(){const e=a.__wbg_get_querybalanceoptions_global_state_identifier(this.__wbg_ptr);return 0===e?void 0:Lt.__wrap(e)}set global_state_identifier(e){let t=0;m(e)||(b(e,Lt),t=e.__destroy_into_raw()),a.__wbg_set_querybalanceoptions_global_state_identifier(this.__wbg_ptr,t)}get state_root_hash_as_string(){const e=a.__wbg_get_querybalanceoptions_state_root_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set state_root_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalanceoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get state_root_hash(){const e=a.__wbg_get_querybalanceoptions_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}set state_root_hash(e){let t=0;m(e)||(b(e,Le),t=e.__destroy_into_raw()),a.__wbg_set_querybalanceoptions_state_root_hash(this.__wbg_ptr,t)}get maybe_block_id_as_string(){const e=a.__wbg_get_querybalanceoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalanceoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get rpc_address(){const e=a.__wbg_get_querybalanceoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalanceoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_querybalanceoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_querybalanceoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const TT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_querycontractdictoptions_free(n>>>0,1));class pd{static __wrap(e){e>>>=0;const t=Object.create(pd.prototype);return t.__wbg_ptr=e,TT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,TT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_querycontractdictoptions_free(e,0)}get state_root_hash_as_string(){const e=a.__wbg_get_querycontractdictoptions_state_root_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set state_root_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdictionaryitemoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get state_root_hash(){const e=a.__wbg_get_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}set state_root_hash(e){let t=0;m(e)||(b(e,Le),t=e.__destroy_into_raw()),a.__wbg_set_getdictionaryitemoptions_state_root_hash(this.__wbg_ptr,t)}get dictionary_item_params(){const e=a.__wbg_get_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr);return 0===e?void 0:Vi.__wrap(e)}set dictionary_item_params(e){let t=0;m(e)||(b(e,Vi),t=e.__destroy_into_raw()),a.__wbg_set_getdictionaryitemoptions_dictionary_item_params(this.__wbg_ptr,t)}get dictionary_item_identifier(){const e=a.__wbg_get_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr);return 0===e?void 0:vt.__wrap(e)}set dictionary_item_identifier(e){let t=0;m(e)||(b(e,vt),t=e.__destroy_into_raw()),a.__wbg_set_getdictionaryitemoptions_dictionary_item_identifier(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_querycontractdictoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_getdictionaryitemoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_getdictionaryitemoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_getdictionaryitemoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const MT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_querycontractkeyoptions_free(n>>>0,1));class hd{static __wrap(e){e>>>=0;const t=Object.create(hd.prototype);return t.__wbg_ptr=e,MT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,MT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_querycontractkeyoptions_free(e,0)}get entity_identifier(){const e=a.__wbg_get_querycontractkeyoptions_entity_identifier(this.__wbg_ptr);return 0===e?void 0:Qn.__wrap(e)}set entity_identifier(e){let t=0;m(e)||(b(e,Qn),t=e.__destroy_into_raw()),a.__wbg_set_querycontractkeyoptions_entity_identifier(this.__wbg_ptr,t)}get entity_identifier_as_string(){const e=a.__wbg_get_querycontractkeyoptions_entity_identifier_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set entity_identifier_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_purse_identifier_as_string(this.__wbg_ptr,t,h)}get maybe_block_identifier(){const e=a.__wbg_get_querycontractkeyoptions_maybe_block_identifier(this.__wbg_ptr);return 0===e?void 0:Pe.__wrap(e)}set maybe_block_identifier(e){let t=0;m(e)||(b(e,Pe),t=e.__destroy_into_raw()),a.__wbg_set_querycontractkeyoptions_maybe_block_identifier(this.__wbg_ptr,t)}get maybe_block_id_as_string(){const e=a.__wbg_get_querycontractkeyoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get path_as_string(){const e=a.__wbg_get_querycontractkeyoptions_path_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set path_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querybalancedetailsoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get path(){const e=a.__wbg_get_querycontractkeyoptions_path(this.__wbg_ptr);return 0===e?void 0:ji.__wrap(e)}set path(e){let t=0;m(e)||(b(e,ji),t=e.__destroy_into_raw()),a.__wbg_set_querycontractkeyoptions_path(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_querycontractkeyoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_querycontractkeyoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_querycontractkeyoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_querycontractkeyoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}const AT=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>a.__wbg_queryglobalstateoptions_free(n>>>0,1));class gd{static __wrap(e){e>>>=0;const t=Object.create(gd.prototype);return t.__wbg_ptr=e,AT.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,AT.unregister(this),e}free(){const e=this.__destroy_into_raw();a.__wbg_queryglobalstateoptions_free(e,0)}get global_state_identifier(){const e=a.__wbg_get_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr);return 0===e?void 0:Lt.__wrap(e)}set global_state_identifier(e){let t=0;m(e)||(b(e,Lt),t=e.__destroy_into_raw()),a.__wbg_set_queryglobalstateoptions_global_state_identifier(this.__wbg_ptr,t)}get state_root_hash_as_string(){const e=a.__wbg_get_queryglobalstateoptions_state_root_hash_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set state_root_hash_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_queryglobalstateoptions_state_root_hash_as_string(this.__wbg_ptr,t,h)}get state_root_hash(){const e=a.__wbg_get_queryglobalstateoptions_state_root_hash(this.__wbg_ptr);return 0===e?void 0:Le.__wrap(e)}set state_root_hash(e){let t=0;m(e)||(b(e,Le),t=e.__destroy_into_raw()),a.__wbg_set_queryglobalstateoptions_state_root_hash(this.__wbg_ptr,t)}get maybe_block_id_as_string(){const e=a.__wbg_get_queryglobalstateoptions_maybe_block_id_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set maybe_block_id_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_queryglobalstateoptions_maybe_block_id_as_string(this.__wbg_ptr,t,h)}get key_as_string(){const e=a.__wbg_get_queryglobalstateoptions_key_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set key_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_queryglobalstateoptions_key_as_string(this.__wbg_ptr,t,h)}get key(){const e=a.__wbg_get_queryglobalstateoptions_key(this.__wbg_ptr);return 0===e?void 0:Ve.__wrap(e)}set key(e){let t=0;m(e)||(b(e,Ve),t=e.__destroy_into_raw()),a.__wbg_set_queryglobalstateoptions_key(this.__wbg_ptr,t)}get path_as_string(){const e=a.__wbg_get_queryglobalstateoptions_path_as_string(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set path_as_string(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_queryglobalstateoptions_path_as_string(this.__wbg_ptr,t,h)}get path(){const e=a.__wbg_get_queryglobalstateoptions_path(this.__wbg_ptr);return 0===e?void 0:ji.__wrap(e)}set path(e){let t=0;m(e)||(b(e,ji),t=e.__destroy_into_raw()),a.__wbg_set_queryglobalstateoptions_path(this.__wbg_ptr,t)}get rpc_address(){const e=a.__wbg_get_queryglobalstateoptions_rpc_address(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),a.__wbindgen_free(e[0],1*e[1],1)),t}set rpc_address(e){var t=m(e)?0:g(e,a.__wbindgen_malloc,a.__wbindgen_realloc);a.__wbg_set_queryglobalstateoptions_rpc_address(this.__wbg_ptr,t,h)}get verbosity(){const e=a.__wbg_get_queryglobalstateoptions_verbosity(this.__wbg_ptr);return 3===e?void 0:e}set verbosity(e){a.__wbg_set_queryglobalstateoptions_verbosity(this.__wbg_ptr,m(e)?3:e)}}function wm(){return(wm=S(function*(n,e){if("function"==typeof Response&&n instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return yield WebAssembly.instantiateStreaming(n,e)}catch(r){if("application/wasm"==n.headers.get("Content-Type"))throw r;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r)}const t=yield n.arrayBuffer();return yield WebAssembly.instantiate(t,e)}{const t=yield WebAssembly.instantiate(n,e);return t instanceof WebAssembly.Instance?{instance:t,module:n}:t}})).apply(this,arguments)}function NT(){const n={wbg:{}};return n.wbg.__wbindgen_string_new=function(e,t){return v(e,t)},n.wbg.__wbg_getblocktransfersresult_new=function(e){return Lg.__wrap(e)},n.wbg.__wbindgen_error_new=function(e,t){return new Error(v(e,t))},n.wbg.__wbg_speculativeexectxnresult_new=function(e){return cm.__wrap(e)},n.wbg.__wbg_getnodestatusresult_new=function(e){return zg.__wrap(e)},n.wbg.__wbg_getdeployresult_new=function(e){return jg.__wrap(e)},n.wbg.__wbg_getbalanceresult_new=function(e){return Og.__wrap(e)},n.wbg.__wbg_puttransactionresult_new=function(e){return rm.__wrap(e)},n.wbg.__wbg_getauctioninforesult_new=function(e){return xg.__wrap(e)},n.wbg.__wbg_geterainforesult_new=function(e){return Hg.__wrap(e)},n.wbg.__wbg_geterasummaryresult_new=function(e){return Ug.__wrap(e)},n.wbg.__wbg_getpeersresult_new=function(e){return $g.__wrap(e)},n.wbg.__wbg_getaddressableentityresult_new=function(e){return Rg.__wrap(e)},n.wbg.__wbg_listrpcsresult_new=function(e){return Yg.__wrap(e)},n.wbg.__wbg_putdeployresult_new=function(e){return nm.__wrap(e)},n.wbg.__wbg_queryglobalstateresult_new=function(e){return sm.__wrap(e)},n.wbg.__wbg_disconnectFromSite_2d2501f4e00e57c8=function(){return ue(function(e){return e.disconnectFromSite()},arguments)},n.wbg.__wbindgen_boolean_get=function(e){return"boolean"==typeof e?e?1:0:2},n.wbg.__wbg_speculativeexecresult_new=function(e){return am.__wrap(e)},n.wbg.__wbg_getchainspecresult_new=function(e){return Vg.__wrap(e)},n.wbg.__wbg_getblockresult_new=function(e){return Pg.__wrap(e)},n.wbg.__wbg_getdictionaryitemresult_new=function(e){return Bg.__wrap(e)},n.wbg.__wbg_getaccountresult_new=function(e){return Fg.__wrap(e)},n.wbg.__wbg_getstateroothashresult_new=function(e){return qg.__wrap(e)},n.wbg.__wbg_getvalidatorchangesresult_new=function(e){return Wg.__wrap(e)},n.wbg.__wbg_gettransactionresult_new=function(e){return Gg.__wrap(e)},n.wbg.__wbg_getVersion_821280958b37ff1f=function(){return ue(function(e){return e.getVersion()},arguments)},n.wbg.__wbindgen_string_get=function(e,t){const i="string"==typeof t?t:void 0;var o=m(i)?0:g(i,a.__wbindgen_malloc,a.__wbindgen_realloc),s=h;Hr().setInt32(e+4,s,!0),Hr().setInt32(e+0,o,!0)},n.wbg.__wbg_transaction_new=function(e){return de.__wrap(e)},n.wbg.__wbg_deploy_new=function(e){return ae.__wrap(e)},n.wbg.__wbg_requestSwitchAccount_0e44115ee2041c5e=function(){return ue(function(e){return e.requestSwitchAccount()},arguments)},n.wbg.__wbg_querybalancedetailsresult_new=function(e){return im.__wrap(e)},n.wbg.__wbg_querybalanceresult_new=function(e){return om.__wrap(e)},n.wbg.__wbg_isConnected_f84ffbccb9898623=function(){return ue(function(e){return e.isConnected()},arguments)},n.wbg.__wbg_signMessage_c2bf40612e99c084=function(){return ue(function(e,t,r,i,o){return e.signMessage(v(t,r),v(i,o))},arguments)},n.wbg.__wbg_requestConnection_df909ec1fae47c86=function(){return ue(function(e){return e.requestConnection()},arguments)},n.wbg.__wbg_getActivePublicKey_7cd2af2b4a2b810f=function(){return ue(function(e){return e.getActivePublicKey()},arguments)},n.wbg.__wbg_messages_new=function(e){return Va.__wrap(e)},n.wbg.__wbg_error_d52bf4e1868fa715=function(e,t){console.error(v(e,t))},n.wbg.__wbg_log_5199e4d2d51afa95=function(e,t){console.log(v(e,t))},n.wbg.__wbindgen_cb_drop=function(e){const t=e.original;return 1==t.cnt--&&(t.a=0,!0)},n.wbg.__wbg_subscription_unwrap=function(e){return lm.__unwrap(e)},n.wbg.__wbg_messages_unwrap=function(e){return Va.__unwrap(e)},n.wbg.__wbg_CasperWalletProvider_e342cf6a96cfbb6c="function"==typeof CasperWalletProvider?CasperWalletProvider:hg("CasperWalletProvider"),n.wbg.__wbindgen_is_null=function(e){return null===e},n.wbg.__wbindgen_is_undefined=function(e){return void 0===e},n.wbg.__wbindgen_jsval_eq=function(e,t){return e===t},n.wbg.__wbg_sign_5740ada8ba2ef8c3=function(){return ue(function(e,t,r,i,o){return e.sign(v(t,r),v(i,o))},arguments)},n.wbg.__wbg_fetch_f8d735ba6fe1b719="function"==typeof fetch?fetch:hg("fetch"),n.wbg.__wbg_getReader_7a604d2d7b2f6e3e=function(){return ue(function(e){return e.getReader()},arguments)},n.wbg.__wbg_queueMicrotask_848aa4969108a57e=function(e){return e.queueMicrotask},n.wbg.__wbindgen_is_function=function(e){return"function"==typeof e},n.wbg.__wbg_queueMicrotask_c5419c06eab41e73="function"==typeof queueMicrotask?queueMicrotask:hg("queueMicrotask"),n.wbg.__wbg_setbody_aa8b691bec428bf4=function(e,t){e.body=t},n.wbg.__wbg_setcredentials_a4e661320cdb9738=function(e,t){e.credentials=R$[t]},n.wbg.__wbg_setheaders_f5205d36e423a544=function(e,t){e.headers=t},n.wbg.__wbg_setmethod_ce2da76000b02f6a=function(e,t,r){e.method=v(t,r)},n.wbg.__wbg_setmode_4919fd636102c586=function(e,t){e.mode=x$[t]},n.wbg.__wbg_setsignal_812ccb8269a7fd90=function(e,t){e.signal=t},n.wbg.__wbg_signal_9acfcec9e7dffc22=function(e){return e.signal},n.wbg.__wbg_new_75169ae5a9683c55=function(){return ue(function(){return new AbortController},arguments)},n.wbg.__wbg_abort_c57daab47a6c1215=function(e){e.abort()},n.wbg.__wbg_getdone_38a59a1c17131633=function(e){const t=e.done;return m(t)?16777215:t?1:0},n.wbg.__wbg_getvalue_674bb48c8380247b=function(e){return e.value},n.wbg.__wbg_fetch_1fdc4448ed9eec00=function(e,t){return e.fetch(t)},n.wbg.__wbg_close_cfd08d9cf9f36856=function(){return ue(function(e){e.close()},arguments)},n.wbg.__wbg_enqueue_e693a6fb4f3261c1=function(){return ue(function(e,t){e.enqueue(t)},arguments)},n.wbg.__wbg_newwithstrandinit_4b92c89af0a8e383=function(){return ue(function(e,t,r){return new Request(v(e,t),r)},arguments)},n.wbg.__wbg_new_a9ae04a5200606a5=function(){return ue(function(){return new Headers},arguments)},n.wbg.__wbg_append_8b3e7f74a47ea7d5=function(){return ue(function(e,t,r,i,o){e.append(v(t,r),v(i,o))},arguments)},n.wbg.__wbg_byobRequest_86ac467c94924d3c=function(e){const t=e.byobRequest;return m(t)?0:Pi(t)},n.wbg.__wbg_close_7cda9dd901230214=function(){return ue(function(e){e.close()},arguments)},n.wbg.__wbg_read_08d62388e7870059=function(e){return e.read()},n.wbg.__wbg_releaseLock_32c310d7be334e1c=function(e){e.releaseLock()},n.wbg.__wbg_cancel_2a3c2f3c115ac7e0=function(e){return e.cancel()},n.wbg.__wbg_instanceof_Response_3c0e210a57ff751d=function(e){let t;try{t=e instanceof Response}catch{t=!1}return t},n.wbg.__wbg_url_58af972663531d16=function(e,t){const i=g(t.url,a.__wbindgen_malloc,a.__wbindgen_realloc),o=h;Hr().setInt32(e+4,o,!0),Hr().setInt32(e+0,i,!0)},n.wbg.__wbg_status_5f4e900d22140a18=function(e){return e.status},n.wbg.__wbg_headers_1b9bf90c73fae600=function(e){return e.headers},n.wbg.__wbg_body_06c4eb578a55c1d4=function(e){const t=e.body;return m(t)?0:Pi(t)},n.wbg.__wbg_arrayBuffer_144729e09879650e=function(){return ue(function(e){return e.arrayBuffer()},arguments)},n.wbg.__wbg_view_de0e81c5c00d2129=function(e){const t=e.view;return m(t)?0:Pi(t)},n.wbg.__wbg_respond_ffb6928cd9b79c32=function(){return ue(function(e,t){e.respond(t>>>0)},arguments)},n.wbg.__wbg_crypto_1d1f22824a6a080c=function(e){return e.crypto},n.wbg.__wbindgen_is_object=function(e){return"object"==typeof e&&null!==e},n.wbg.__wbg_process_4a72847cc503995b=function(e){return e.process},n.wbg.__wbg_versions_f686565e586dd935=function(e){return e.versions},n.wbg.__wbg_node_104a2ff8d6ea03a2=function(e){return e.node},n.wbg.__wbindgen_is_string=function(e){return"string"==typeof e},n.wbg.__wbg_require_cca90b1a94a0255b=function(){return ue(function(){return module.require},arguments)},n.wbg.__wbg_msCrypto_eb05e62b530a1508=function(e){return e.msCrypto},n.wbg.__wbg_randomFillSync_5c9c955aa56b6049=function(){return ue(function(e,t){e.randomFillSync(t)},arguments)},n.wbg.__wbg_getRandomValues_3aa56aa6edec874c=function(){return ue(function(e,t){e.getRandomValues(t)},arguments)},n.wbg.__wbg_get_5419cf6b954aa11d=function(e,t){return e[t>>>0]},n.wbg.__wbg_length_f217bbbf7e8e4df4=function(e){return e.length},n.wbg.__wbg_new_034f913e7636e987=function(){return new Array},n.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43=function(e,t){return new Function(v(e,t))},n.wbg.__wbg_next_13b477da1eaa3897=function(e){return e.next},n.wbg.__wbg_next_b06e115d1b01e10b=function(){return ue(function(e){return e.next()},arguments)},n.wbg.__wbg_done_983b5ffcaec8c583=function(e){return e.done},n.wbg.__wbg_value_2ab8a198c834c26a=function(e){return e.value},n.wbg.__wbg_iterator_695d699a44d6234c=function(){return Symbol.iterator},n.wbg.__wbg_get_ef828680c64da212=function(){return ue(function(e,t){return Reflect.get(e,t)},arguments)},n.wbg.__wbg_call_a9ef466721e824f2=function(){return ue(function(e,t){return e.call(t)},arguments)},n.wbg.__wbg_new_e69b5f66fda8f13c=function(){return new Object},n.wbg.__wbg_self_bf91bf94d9e04084=function(){return ue(function(){return self.self},arguments)},n.wbg.__wbg_window_52dd9f07d03fd5f8=function(){return ue(function(){return window.window},arguments)},n.wbg.__wbg_globalThis_05c129bf37fcf1be=function(){return ue(function(){return globalThis.globalThis},arguments)},n.wbg.__wbg_global_3eca19bb09e9c484=function(){return ue(function(){return global.global},arguments)},n.wbg.__wbg_push_36cf4d81d7da33d1=function(e,t){return e.push(t)},n.wbg.__wbg_new_70a2f23d1565c04c=function(e,t){return new Error(v(e,t))},n.wbg.__wbg_apply_c37b42ff44b0469d=function(){return ue(function(e,t,r){return e.apply(t,r)},arguments)},n.wbg.__wbg_call_3bfa248576352471=function(){return ue(function(e,t,r){return e.call(t,r)},arguments)},n.wbg.__wbg_getTime_41225036a0393d63=function(e){return e.getTime()},n.wbg.__wbg_new0_218ada33b570be35=function(){return new Date},n.wbg.__wbg_instanceof_Object_4bbac482eda9b711=function(e){let t;try{t=e instanceof Object}catch{t=!1}return t},n.wbg.__wbg_new_1073970097e5a420=function(e,t){try{var r={a:e,b:t};return new Promise((s,c)=>{const l=r.a;r.a=0;try{return function k$(n,e,t,r){a.closure1586_externref_shim(n,e,t,r)}(l,r.b,s,c)}finally{r.a=l}})}finally{r.a=r.b=0}},n.wbg.__wbg_resolve_0aad7c1484731c99=function(e){return Promise.resolve(e)},n.wbg.__wbg_catch_8097da4375a5dd1b=function(e,t){return e.catch(t)},n.wbg.__wbg_then_748f75edfb032440=function(e,t){return e.then(t)},n.wbg.__wbg_then_4866a7d9f55d8f3e=function(e,t,r){return e.then(t,r)},n.wbg.__wbg_buffer_ccaed51a635d8a2d=function(e){return e.buffer},n.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730=function(e,t,r){return new Uint8Array(e,t>>>0,r>>>0)},n.wbg.__wbg_new_fec2611eb9180f95=function(e){return new Uint8Array(e)},n.wbg.__wbg_set_ec2fcf81bc573fd9=function(e,t,r){e.set(t,r>>>0)},n.wbg.__wbg_length_9254c4bd3b9f23c4=function(e){return e.length},n.wbg.__wbg_newwithlength_76462a666eca145f=function(e){return new Uint8Array(e>>>0)},n.wbg.__wbg_buffer_95102df5554646dc=function(e){return e.buffer},n.wbg.__wbg_subarray_975a06f9dbd16995=function(e,t,r){return e.subarray(t>>>0,r>>>0)},n.wbg.__wbg_byteLength_5d623ba3d92a3a9c=function(e){return e.byteLength},n.wbg.__wbg_byteOffset_ec0928143c619cd7=function(e){return e.byteOffset},n.wbg.__wbg_getindex_146612fa21bd6845=function(e,t){return e[t>>>0]},n.wbg.__wbg_parse_51ee5409072379d3=function(){return ue(function(e,t){return JSON.parse(v(e,t))},arguments)},n.wbg.__wbg_stringify_eead5648c09faaf8=function(){return ue(function(e){return JSON.stringify(e)},arguments)},n.wbg.__wbg_has_bd717f25f195f23d=function(){return ue(function(e,t){return Reflect.has(e,t)},arguments)},n.wbg.__wbindgen_debug_string=function(e,t){const i=g(fg(t),a.__wbindgen_malloc,a.__wbindgen_realloc),o=h;Hr().setInt32(e+4,o,!0),Hr().setInt32(e+0,i,!0)},n.wbg.__wbindgen_throw=function(e,t){throw new Error(v(e,t))},n.wbg.__wbindgen_memory=function(){return a.memory},n.wbg.__wbindgen_closure_wrapper5591=function(e,t,r){return wI(e,t,1018,S$)},n.wbg.__wbindgen_closure_wrapper5628=function(e,t,r){return wI(e,t,1028,I$)},n.wbg.__wbindgen_init_externref_table=function(){const e=a.__wbindgen_export_2,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},n}function FT(n){return bm.apply(this,arguments)}function bm(){return bm=S(function*(n){if(void 0!==a)return a;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?({module_or_path:n}=n):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof n>"u"&&(n=new URL("casper_rust_wasm_sdk_bg.wasm","file:///opt2/casper/rustSDK/pkg/casper_rust_wasm_sdk.js"));const e=NT();("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n));const{instance:t,module:r}=yield function $$(n,e){return wm.apply(this,arguments)}(yield n,e);return function kT(n,e){return a=n.exports,FT.__wbindgen_wasm_module=e,Oi=null,xa=null,a.__wbindgen_start(),a}(t,r)}),bm.apply(this,arguments)}const q$=FT,Qa=new P("SDK"),RT=new P("wasm_asset_path"),xT=new P("rpc_address"),OT=new P("verbosity"),J$=function W$(n,e){const t={value:void 0};return[{provide:KC,useFactory:(r,i,o)=>S(function*(){return t.value=yield e({wasm_asset_path:r,rpc_address:i,verbosity:o})}),multi:!0,deps:[RT,xT,OT]},{provide:n,useFactory:()=>{if(!L(gu).done)throw new Error(`Cannot inject ${n} until bootstrap is complete.`);return t.value}}]}(Qa,function(){var n=S(function*(e){return(yield q$(e.wasm_asset_path))&&new U$(e.rpc_address,e.verbosity)});return function(t){return n.apply(this,arguments)}}());let K$=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({providers:J$,imports:[Ye]})}}return n})();const wr=new P("EnvironmentConfig"),vm=new P("EnvironmentConfig"),PT=["deploy","transfer","put_deploy","speculative_deploy","speculative_transfer","speculative_exec_deploy","sign_deploy","call_entrypoint_deploy","install"],Z$=["make_deploy","make_transfer",...PT],Fn={wasm_asset_path:"assets/casper_rust_wasm_sdk_bg.wasm",default_action:"get_node_status",verbosity:Qu.High,minimum_transfer:"2500000000",TTL:"30m",standard_payment_amount:"100000000",default_pricing_mode:mr.Fixed,default_gas_price_tolerance:"1",default_additional_computation_factor:"0",default_is_install_upgrade:!0,action_needs_secret_key:PT,action_needs_public_key:Z$,networks:{"node-launcher":{rpc_address:"http://localhost:7777",stream_address:"http://localhost:9999/events/main",chain_name:"casper-net-1"},ntcl:{rpc_address:"http://localhost:11101",stream_address:"http://localhost:18101/events/main",chain_name:"casper-net-1"},integration:{rpc_address:"https://rpc.integration.casperlabs.io",stream_address:"https://events.integration.casperlabs.io/events/main",chain_name:"integration-test"},testnet:{rpc_address:"https://rpc.testnet.casperlabs.io",stream_address:"https://events.testnet.casperlabs.io/events/main",chain_name:"casper-test"},mainnet:{rpc_address:"https://rpc.mainnet.casperlabs.io",stream_address:"https://events.mainnet.casperlabs.io/events/main",chain_name:"casper"},custom:{rpc_address:"http://3.136.227.9:7777",stream_address:"http://3.136.227.9:9999/events/main",chain_name:"casper-test"},dev:{rpc_address:"http://localhost:4200",stream_address:"http://localhost:4200/events/main",chain_name:"casper-net-1"}},localhost:"localhost",app_port:"4200",default_port:"7777",default_protocol:"http://"},Em={production:!0,default_network:"integration",localhost_to_gateway:!1},{isArray:Y$}=Array,{getPrototypeOf:Q$,prototype:X$,keys:e8}=Object;const{isArray:r8}=Array;function s8(n,e){return n.reduce((t,r,i)=>(t[r]=e[i],t),{})}function a8(...n){const e=function AH(n){return He(kh(n))?n.pop():void 0}(n),{args:t,keys:r}=function t8(n){if(1===n.length){const e=n[0];if(Y$(e))return{args:e,keys:null};if(function n8(n){return n&&"object"==typeof n&&Q$(n)===X$}(e)){const t=e8(e);return{args:t.map(r=>e[r]),keys:t}}}return{args:n,keys:null}}(n),i=new Ht(o=>{const{length:s}=t;if(!s)return void o.complete();const c=new Array(s);let l=s,u=s;for(let d=0;d{_||(_=!0,u--),c[d]=f},()=>l--,void 0,()=>{(!l||!_)&&(u||o.next(r?s8(r,c):c),o.complete())}))}});return e?i.pipe(function o8(n){return Er(e=>function i8(n,e){return r8(e)?n(...e):n(e)}(n,e))}(e)):i}let LT=(()=>{class n{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static{this.\u0275fac=function(r){return new(r||n)(I(wi),I(dn))}}static{this.\u0275dir=X({type:n})}}return n})(),Ui=(()=>{class n extends LT{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ht(n)))(i||n)}})()}static{this.\u0275dir=X({type:n,features:[ve]})}}return n})();const tr=new P(""),c8={provide:tr,useExisting:Se(()=>Dm),multi:!0};let Dm=(()=>{class n extends Ui{writeValue(t){this.setProperty("checked",t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ht(n)))(i||n)}})()}static{this.\u0275dir=X({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){1&r&&ee("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},features:[Oe([c8]),ve]})}}return n})();const l8={provide:tr,useExisting:Se(()=>Xa),multi:!0},d8=new P("");let Xa=(()=>{class n extends LT{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function u8(){const n=Ia()?Ia().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static{this.\u0275fac=function(r){return new(r||n)(I(wi),I(dn),I(d8,8))}}static{this.\u0275dir=X({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){1&r&&ee("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Oe([l8]),ve]})}}return n})();function $r(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function VT(n){return null!=n&&"number"==typeof n.length}const Et=new P(""),qr=new P(""),_8=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class f8{static min(e){return function jT(n){return e=>{if($r(e.value)||$r(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t{if($r(e.value)||$r(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}(e)}static required(e){return function HT(n){return $r(n.value)?{required:!0}:null}(e)}static requiredTrue(e){return function UT(n){return!0===n.value?null:{required:!0}}(e)}static email(e){return function zT(n){return $r(n.value)||_8.test(n.value)?null:{email:!0}}(e)}static minLength(e){return function $T(n){return e=>$r(e.value)||!VT(e.value)?null:e.value.lengthVT(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}function GT(n){if(!n)return md;let e,t;return"string"==typeof n?(t="","^"!==n.charAt(0)&&(t+="^"),t+=n,"$"!==n.charAt(n.length-1)&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),r=>{if($r(r.value))return null;const i=r.value;return e.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}function md(n){return null}function WT(n){return null!=n}function JT(n){return hu(n)?Ph(n):n}function KT(n){let e={};return n.forEach(t=>{e=null!=t?{...e,...t}:e}),0===Object.keys(e).length?null:e}function ZT(n,e){return e.map(t=>t(n))}function YT(n){return n.map(e=>function p8(n){return!n.validate}(e)?e:t=>e.validate(t))}function QT(n){if(!n)return null;const e=n.filter(WT);return 0==e.length?null:function(t){return KT(ZT(t,e))}}function Cm(n){return null!=n?QT(YT(n)):null}function XT(n){if(!n)return null;const e=n.filter(WT);return 0==e.length?null:function(t){return a8(ZT(t,e).map(JT)).pipe(Er(KT))}}function Sm(n){return null!=n?XT(YT(n)):null}function eM(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function tM(n){return n._rawValidators}function nM(n){return n._rawAsyncValidators}function Im(n){return n?Array.isArray(n)?n:[n]:[]}function yd(n,e){return Array.isArray(n)?n.includes(e):n===e}function rM(n,e){const t=Im(e);return Im(n).forEach(i=>{yd(t,i)||t.push(i)}),t}function iM(n,e){return Im(e).filter(t=>!yd(n,t))}class oM{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Cm(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Sm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class Vt extends oM{get formDirective(){return null}get path(){return null}}class Gr extends oM{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class sM{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let wd=(()=>{class n extends sM{constructor(t){super(t)}static{this.\u0275fac=function(r){return new(r||n)(I(Gr,2))}}static{this.\u0275dir=X({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&tu("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[ve]})}}return n})(),ec=(()=>{class n extends sM{constructor(t){super(t)}static{this.\u0275fac=function(r){return new(r||n)(I(Vt,10))}}static{this.\u0275dir=X({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&tu("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[ve]})}}return n})();const tc="VALID",vd="INVALID",ts="PENDING",nc="DISABLED";class ns{}class cM extends ns{constructor(e,t){super(),this.value=e,this.source=t}}class Am extends ns{constructor(e,t){super(),this.pristine=e,this.source=t}}class Nm extends ns{constructor(e,t){super(),this.touched=e,this.source=t}}class Ed extends ns{constructor(e,t){super(),this.status=e,this.source=t}}class w8 extends ns{constructor(e){super(),this.source=e}}class b8 extends ns{constructor(e){super(),this.source=e}}function km(n){return(Dd(n)?n.validators:n)||null}function Fm(n,e){return(Dd(e)?e.asyncValidators:n)||null}function Dd(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function lM(n,e,t){const r=n.controls;if(!(e?Object.keys(r):r).length)throw new M(1e3,"");if(!r[t])throw new M(1001,"")}function uM(n,e,t){n._forEachChild((r,i)=>{if(void 0===t[i])throw new M(1002,"")})}class Cd{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Sa(()=>this.statusReactive()),this.statusReactive=So(void 0),this._pristine=Sa(()=>this.pristineReactive()),this.pristineReactive=So(!0),this._touched=Sa(()=>this.touchedReactive()),this.touchedReactive=So(!1),this._events=new Qr,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Zn(this.statusReactive)}set status(e){Zn(()=>this.statusReactive.set(e))}get valid(){return this.status===tc}get invalid(){return this.status===vd}get pending(){return this.status==ts}get disabled(){return this.status===nc}get enabled(){return this.status!==nc}get pristine(){return Zn(this.pristineReactive)}set pristine(e){Zn(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Zn(this.touchedReactive)}set touched(e){Zn(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(rM(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(rM(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(iM(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(iM(e,this._rawAsyncValidators))}hasValidator(e){return yd(this._rawValidators,e)}hasAsyncValidator(e){return yd(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){const t=!1===this.touched;this.touched=!0;const r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched({...e,sourceControl:r}),t&&!1!==e.emitEvent&&this._events.next(new Nm(!0,r))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:r})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r),t&&!1!==e.emitEvent&&this._events.next(new Nm(!1,r))}markAsDirty(e={}){const t=!0===this.pristine;this.pristine=!1;const r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty({...e,sourceControl:r}),t&&!1!==e.emitEvent&&this._events.next(new Am(!1,r))}markAsPristine(e={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),t&&!1!==e.emitEvent&&this._events.next(new Am(!0,r))}markAsPending(e={}){this.status=ts;const t=e.sourceControl??this;!1!==e.emitEvent&&(this._events.next(new Ed(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending({...e,sourceControl:t})}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=nc,this.errors=null,this._forEachChild(i=>{i.disable({...e,onlySelf:!0})}),this._updateValue();const r=e.sourceControl??this;!1!==e.emitEvent&&(this._events.next(new cM(this.value,r)),this._events.next(new Ed(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...e,skipPristineCheck:t},this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=tc,this._forEachChild(r=>{r.enable({...e,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors({...e,skipPristineCheck:t},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===tc||this.status===ts)&&this._runAsyncValidator(r,e.emitEvent)}const t=e.sourceControl??this;!1!==e.emitEvent&&(this._events.next(new cM(this.value,t)),this._events.next(new Ed(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity({...e,sourceControl:t})}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?nc:tc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=ts,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const r=JT(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent,this,t.shouldHaveEmitted)}get(e){let t=e;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(e,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,r){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||r)&&this._events.next(new Ed(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,r)}_initObservables(){this.valueChanges=new ke,this.statusChanges=new ke}_calculateStatus(){return this._allControlsDisabled()?nc:this.errors?vd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ts)?ts:this._anyControlsHaveStatus(vd)?vd:tc}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){const r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),i&&this._events.next(new Am(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new Nm(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Dd(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function v8(n){return Array.isArray(n)?Cm(n):n||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function E8(n){return Array.isArray(n)?Sm(n):n||null}(this._rawAsyncValidators)}}class rc extends Cd{constructor(e,t,r){super(km(t),Fm(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,r={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){uM(this,0,e),Object.keys(e).forEach(r=>{lM(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(r=>{const i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((r,i)=>{r.reset(e?e[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,r)=>(e[r]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&e(r,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&e(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(e,t){let r=e;return this._forEachChild((i,o)=>{r=t(r,i,o)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}class dM extends rc{}const rs=new P("CallSetDisabledState",{providedIn:"root",factory:()=>Sd}),Sd="always";function ic(n,e,t=Sd){Rm(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||"always"===t)&&e.valueAccessor.setDisabledState?.(n.disabled),function C8(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&_M(n,e)})}(n,e),function I8(n,e){const t=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function S8(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&_M(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function D8(n,e){if(e.valueAccessor.setDisabledState){const t=r=>{e.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function Td(n,e,t=!0){const r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),Ad(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Md(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Rm(n,e){const t=tM(n);null!==e.validator?n.setValidators(eM(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const r=nM(n);null!==e.asyncValidator?n.setAsyncValidators(eM(r,e.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();Md(e._rawValidators,i),Md(e._rawAsyncValidators,i)}function Ad(n,e){let t=!1;if(null!==n){if(null!==e.validator){const i=tM(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==e.validator);o.length!==i.length&&(t=!0,n.setValidators(o))}}if(null!==e.asyncValidator){const i=nM(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(t=!0,n.setAsyncValidators(o))}}}const r=()=>{};return Md(e._rawValidators,r),Md(e._rawAsyncValidators,r),t}function _M(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function hM(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function gM(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}Promise.resolve();const is=class extends Cd{constructor(e=null,t,r){super(km(t),Fm(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Dd(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=gM(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){hM(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){hM(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){gM(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};Promise.resolve();let vM=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275dir=X({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return n})();const Vm=new P(""),B8={provide:Vt,useExisting:Se(()=>zi)};let zi=(()=>{class n extends Vt{get submitted(){return Zn(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,i){super(),this.callSetDisabledState=i,this._submitted=Sa(()=>this._submittedReactive()),this._submittedReactive=So(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ke,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ad(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return ic(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Td(t.control||null,t,!1),function N8(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this._submittedReactive.set(!0),function pM(n,e){n._syncPendingControls(),e.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new w8(this.control)),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new b8(this.form))}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(Td(r||null,t),(n=>n instanceof is)(i)&&(ic(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function fM(n,e){Rm(n,e)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function T8(n,e){return Ad(n,e)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Rm(this.form,this),this._oldForm&&Ad(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(r){return new(r||n)(I(Et,10),I(qr,10),I(rs,8))}}static{this.\u0275dir=X({type:n,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&ee("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Oe([B8]),ve,sr]})}}return n})();const z8={provide:Gr,useExisting:Se(()=>sc)};let sc=(()=>{class n extends Gr{set isDisabled(t){}static{this._ngModelWarningSentOnce=!1}constructor(t,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new ke,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=function Pm(n,e){if(!e)return null;let t,r,i;return Array.isArray(e),e.forEach(o=>{o.constructor===Xa?t=o:function A8(n){return Object.getPrototypeOf(n.constructor)===Ui}(o)?r=o:i=o}),i||r||t||null}(0,o)}ngOnChanges(t){this._added||this._setUpControl(),function Om(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function Id(n,e){return[...e.path,n]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(r){return new(r||n)(I(Vt,13),I(Et,10),I(qr,10),I(tr,10),I(Vm,8))}}static{this.\u0275dir=X({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Oe([z8]),ve,sr]})}}return n})();const $8={provide:tr,useExisting:Se(()=>Nd),multi:!0};function TM(n,e){return null==n?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}let Nd=(()=>{class n extends Ui{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const i=TM(this._getOptionId(t),t);this.setProperty("value",i)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function q8(n){return n.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ht(n)))(i||n)}})()}static{this.\u0275dir=X({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,i){1&r&&ee("change",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Oe([$8]),ve]})}}return n})(),MM=(()=>{class n{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(TM(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(r){return new(r||n)(I(dn),I(wi),I(Nd,9))}}static{this.\u0275dir=X({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return n})();const G8={provide:tr,useExisting:Se(()=>Hm),multi:!0};function AM(n,e){return null==n?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}let Hm=(()=>{class n extends Ui{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let r;if(this.value=t,Array.isArray(t)){const i=t.map(o=>this._getOptionId(o));r=(o,s)=>{o._setSelected(i.indexOf(s.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const i=[],o=r.selectedOptions;if(void 0!==o){const s=o;for(let c=0;c{let t;return function(i){return(t||(t=ht(n)))(i||n)}})()}static{this.\u0275dir=X({type:n,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,i){1&r&&ee("change",function(s){return i.onChange(s.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Oe([G8]),ve]})}}return n})(),NM=(()=>{class n{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(AM(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(AM(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(r){return new(r||n)(I(dn),I(wi),I(Hm,9))}}static{this.\u0275dir=X({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return n})();let $i=(()=>{class n{constructor(){this._validator=md}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):md,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275dir=X({type:n,features:[sr]})}}return n})();const e4={provide:Et,useExisting:Se(()=>zm),multi:!0};let zm=(()=>{class n extends $i{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>function kM(n){return"number"==typeof n?n:parseInt(n,10)}(t),this.createValidator=t=>qT(t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ht(n)))(i||n)}})()}static{this.\u0275dir=X({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&At("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Oe([e4]),ve]})}}return n})();const t4={provide:Et,useExisting:Se(()=>$m),multi:!0};let $m=(()=>{class n extends $i{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=t=>t,this.createValidator=t=>GT(t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ht(n)))(i||n)}})()}static{this.\u0275dir=X({type:n,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&At("pattern",i._enabled?i.pattern:null)},inputs:{pattern:"pattern"},features:[Oe([t4]),ve]})}}return n})(),n4=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({})}}return n})();class VM extends Cd{constructor(e,t,r){super(km(t),Fm(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,r={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,t={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){uM(this,0,e),e.forEach((r,i)=>{lM(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,r)=>{e(t,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}}function jM(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let r4=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new n;return t.useNonNullable=!0,t}group(t,r=null){const i=this._reduceControls(t);let o={};return jM(r)?o=r:null!==r&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new rc(i,o)}record(t,r=null){const i=this._reduceControls(t);return new dM(i,r)}control(t,r,i){let o={};return this.useNonNullable?(jM(r)?o=r:(o.validators=r,o.asyncValidators=i),new is(t,{...o,nonNullable:!0})):new is(t,r,i)}array(t,r,i){const o=t.map(s=>this._createControl(s));return new VM(o,r,i)}_reduceControls(t){const r={};return Object.keys(t).forEach(i=>{r[i]=this._createControl(t[i])}),r}_createControl(t){return t instanceof is||t instanceof Cd?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),qi=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:Vm,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:rs,useValue:t.callSetDisabledState??Sd}]}}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({imports:[n4]})}}return n})();const ac={id:"stateRootHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"State Root Hash",name:"state_root_hash",controlName:"stateRootHash",placeholder:"0x",e2e:"stateRootHashElt"},cc={id:"paymentAmountElt",type:"tel",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Payment Amount",name:"payment_amount",controlName:"paymentAmount",placeholder:"",e2e:"paymentAmountElt",change:"motesToCSPR"},os={id:"TTLElt",type:"search",wrap_class:"col-lg-2 mb-2",class:"form-control",label:"TTL",name:"ttl",controlName:"TTL",e2e:"TTLElt",config_name:"TTL"},BM={id:"sessionHashElt",type:"search",wrap_class:"col-xl-6 mb-2",class:"form-control",label:"Smart Contract hash or Package hash",name:"session_hash",controlName:"sessionHash",placeholder:"Contract Hash or Package Hash",e2e:"sessionHashElt",disabled_when:["has_wasm","sessionName.value"]},HM={id:"entityHashElt",type:"search",wrap_class:"col-xl-6 mb-2",class:"form-control",label:"Entity hash or Package hash",name:"entity_hash",controlName:"entityHash",placeholder:"Entity Hash (entity-contract-0x) or Package Hash (package-0x)",e2e:"entityHashElt",disabled_when:["has_wasm","entityAlias.value"]},kd={id:"callPackageElt",type:"checkbox",wrap_class:"col-xl-1 col-lg-2 mb-2",class:"form-check-input mt-0",label:"Call Package",name:"call_package",controlName:"callPackage",placeholder:"",e2e:"callPackageElt",label_class:"form-label",disabled_when:["has_wasm"]},Fd={id:"versionElt",type:"search",wrap_class:"col-xl-3 mb-2",class:"form-control",label:"Version",name:"version",controlName:"version",placeholder:"1, empty last",e2e:"versionElt",disabled_when:["has_wasm"]},lc={id:"gasPriceToleranceElt",type:"search",wrap_class:"col-xl-2 mb-2",class:"form-control",label:"Gas Price Tolerance",name:"gas_price_tolerance",controlName:"gasPriceTolerance",placeholder:"1, empty default",e2e:"gasPriceToleranceElt"},qm={id:"additionalComputationFactorElt",type:"search",wrap_class:"col-xl-2 mb-2",class:"form-control",label:"Computation Factor",name:"additional_computation_factor",controlName:"additionalComputationFactor",placeholder:"0, empty default",e2e:"additionalComputationFactorElt",disabled_when:["fixedPricingMode"]},UM={id:"sessionNameElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Smart Contract name or Package name",name:"session_name",controlName:"sessionName",placeholder:"Counter",e2e:"sessionNameElt",disabled_when:["has_wasm","sessionHash.value"]},zM={id:"entityAliasElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Entity alias or Package alias",name:"entity_alias",controlName:"entityAlias",placeholder:"Counter",e2e:"entityAliasElt",disabled_when:["has_wasm","entityHash.value"]},Rd={id:"entryPointElt",type:"search",wrap_class:"col-lg-5 mb-2",class:"form-control",label:"Entry point",name:"entry_point",controlName:"entryPoint",placeholder:"counter_inc",e2e:"entryPointElt",disabled_when:["has_wasm"]},uc={id:"argsSimpleElt",type:"search",wrap_class:"col-lg-8 mb-2",class:"form-control",label:"Args",name:"args_simple",controlName:"argsSimple",placeholder:"foo:Bool='true', bar:String='value'",e2e:"argsSimpleElt",disabled_when:["argsJson.value"],storage_name:"args_simple"},dc={id:"argsJsonElt",type:"textarea",wrap_class:"col-lg-8 mb-2",class:"form-control",label:"Args Json",name:"args_json",controlName:"argsJson",placeholder:'Args as Json [{ "name": "foo", "type": "U256", "value": 1 }]',e2e:"argsJsonElt",disabled_when:["argsSimple.value"],storage_name:"args_json"},$M={id:"finalizedApprovalsElt",type:"checkbox",wrap_class:"col-lg-3 mt-3 mt-xl-0",class:"form-check-input mt-0",label:"Finalized approvals",name:"finalized_approvals",controlName:"finalizedApprovals",placeholder:"",e2e:"finalizedApprovalsElt",label_class:"form-label"},qM={id:"seedEntityHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Entity Hash",name:"seed_entity_hash",controlName:"seedEntityHash",placeholder:"entity-contract-0x",e2e:"seedEntityHashElt",enabled_when:["newFromEntityInfo"]},GM={id:"seedNameElt",type:"search",wrap_class:"col-lg-6 mb-2",class:"form-control",label:"Dictionary Name",name:"seed_name",controlName:"seedName",placeholder:"events",e2e:"seedNameElt",enabled_when:["newFromContractInfo","newFromAccountInfo","newFromEntityInfo"]},WM={id:"itemKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Item key",name:"item_key",controlName:"itemKey",placeholder:"Item key string",e2e:"itemKeyElt",enabled_when:["newFromContractInfo","newFromAccountInfo","newFromSeedUref","newFromEntityInfo"]},JM={id:"queryKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Key",name:"query_key",controlName:"queryKey",placeholder:"uref-0x || hash-0x || account-hash-0x",e2e:"queryKeyElt"},y4={...JM,label:"Contract Hash",placeholder:"hash-0x"},KM={id:"queryPathElt",type:"search",wrap_class:"col-lg-4 mb-2",class:"form-control",label:"Path",name:"query_path",controlName:"queryPath",placeholder:"counter/count",e2e:"queryPathElt"},Gm={id:"deployJsonElt",type:"textarea",wrap_class:"col-lg-12",class:"form-control",label:"Deploy as Json string",name:"deploy_json",controlName:"deployJson",placeholder:"Deploy as Json string",e2e:"deployJsonElt",state_name:["deploy_json"]},Wm={id:"transactionJsonElt",type:"textarea",wrap_class:"col-lg-12",class:"form-control",label:"Transaction as Json string",name:"transaction_json",controlName:"transactionJson",placeholder:"Transaction as Json string",e2e:"transactionJsonElt",state_name:["transaction_json"]},Jm={id:"selectPricingMode",type:"select",wrap_class:"mt-3 col-xl-3 mb-3",class:"form-select form-control form-control-sm",label:"Pricing mode",label_class:"input-group-text",name:"pricing_mode",controlName:"selectPricingMode",e2e:"selectPricingModeElt",options:[{value:mr.Classic.toString(),label:"Classic",default:Fn.default_pricing_mode===mr.Classic},{value:mr.Fixed.toString(),label:"Fixed",default:Fn.default_pricing_mode===mr.Fixed}]},Km={id:"selectTransactionCategory",type:"select",wrap_class:"mt-3 col-xl-3 mb-3",class:"form-select form-control form-control-sm",label:"Category",label_class:"input-group-text",name:"transaction_category",controlName:"selectTransactionCategory",e2e:"selectTransactionCategoryElt",options:[{value:"true",label:"Install & Upgrade",default:!0===Fn.default_is_install_upgrade},{value:"false",label:"Session",default:!1===Fn.default_is_install_upgrade}],enabled_when:["has_wasm"]},Rn=[[{input:{id:"blockIdentifierHeightElt",type:"search",wrap_class:"col-lg-3 col-xl-2 mb-2",class:"form-control",label:"Block Height",name:"block_identifier_height",controlName:"blockIdentifierHeight",placeholder:"Block Height",e2e:"blockIdentifierHeightElt"}},{input:{id:"blockIdentifierHashElt",type:"search",wrap_class:"col-lg-9 col-xl-8 mb-2",class:"form-control",label:"Block Hash",name:"block_identifier_hash",controlName:"blockIdentifierHash",placeholder:"Block Hash",e2e:"blockIdentifierHashElt"}}]],b4=[...Rn,[{input:{id:"accountIdentifierElt",type:"search",wrap_class:"col-lg-9",class:"form-control",label:"Account identifier",name:"account_identifier",controlName:"accountIdentifier",placeholder:"Public Key, AccountHash",e2e:"accountIdentifierElt",state_name:["account_hash","public_key"]},required:!0}]],v4=[...Rn,[{input:{id:"entityIdentifierElt",type:"search",wrap_class:"col-lg-9",class:"form-control",label:"Entity identifier",name:"entity_identifier",controlName:"entityIdentifier",placeholder:"Public Key, AccountHash, Entity",e2e:"entityIdentifierElt",state_name:["account_hash","public_key","entity"]},required:!0}]],E4=[[{input:ac}],[{input:{id:"purseUrefElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Purse Uref",name:"purse_uref",controlName:"purseUref",placeholder:"uref-0x",e2e:"purseUrefElt",state_name:["main_purse"]},required:!0}]],ZM=[...Rn,[{input:ac}],[{input:{id:"purseIdentifierElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Purse Identifier",name:"purse_identifier",controlName:"purseIdentifier",placeholder:"Public Key, AccountHash, Purse URef",e2e:"purseIdentifierElt",state_name:["main_purse","account_hash","public_key"]},required:!0}]],D4=[...Rn,[{input:ac}],[{input:JM,required:!0}],[{input:KM}]],C4=[[{input:ac}],[{input:qM,required:!0}],[{input:GM,required:!0}],[{input:WM,required:!0}]],S4=[...Rn,[{input:y4,required:!0}],[{input:KM,required:!0}]],I4=[[{input:ac}],[{select:{id:"selectDictIdentifierElt",type:"select",wrap_class:"mt-3 col-lg-5 mb-4",class:"form-select form-control form-control-sm",label:"Dictionary identifier",label_class:"input-group-text",name:"select_dict_identifier",controlName:"selectDictIdentifier",e2e:"selectDictIdentifierElt",state_name:["select_dict_identifier"],options:[{value:"newFromSeedUref",label:"From Dictionary Uref"},{value:"newFromContractInfo",label:"From Contract Info (depr.)"},{value:"newFromEntityInfo",label:"From Entity Info",default:!0},{value:"newFromAccountInfo",label:"From Account Info"},{value:"newFromDictionaryKey",label:"From Dictionary Key"}]}}],[{input:{id:"seedContractHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Contract Hash",name:"seed_contract_hash",controlName:"seedContractHash",placeholder:"hash-0x",e2e:"seedContractHashElt",enabled_when:["newFromContractInfo"]},required:!0}],[{input:qM,required:!0}],[{input:{id:"seedAccountHashElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Account Hash",name:"seed_account_hash",controlName:"seedAccountHash",placeholder:"account-hash-0x",e2e:"seedAccountHashElt",enabled_when:["newFromAccountInfo"]},required:!0}],[{input:{id:"seedUrefElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Uref",name:"seed_uref",controlName:"seedUref",placeholder:"uref-0x",e2e:"seedUrefElt",enabled_when:["newFromSeedUref"]},required:!0}],[{input:GM,required:!0}],[{input:WM,required:!0}],[{input:{id:"seedKeyElt",type:"search",wrap_class:"col-xl-8 mb-2",class:"form-control",label:"Dictionary Key",name:"seed_key",controlName:"seedKey",placeholder:"dictionary-0x",e2e:"seedKeyElt",enabled_when:["newFromDictionaryKey"]},required:!0}]],T4=[[{input:{id:"deployHashElt",type:"search",wrap_class:"col-xl-7",class:"form-control",label:"Deploy Hash",name:"deploy_hash",controlName:"deployHash",placeholder:"0x",e2e:"deployHashElt"},required:!0},{input:$M}]],M4=[[{input:{id:"transactionHashElt",type:"search",wrap_class:"col-xl-7",class:"form-control",label:"Transaction Hash",name:"transaction_hash",controlName:"transactionHash",placeholder:"0x",e2e:"transactionHashElt"},required:!0},{input:$M}]],_c=[[{input:{id:"transferAmountElt",type:"tel",wrap_class:"col-lg-3 mb-2",class:"form-control",label:"Transfer Amount",name:"transfer_amount",controlName:"transferAmount",e2e:"transferAmountElt",config_name:"minimum_transfer",maxlength:"28",pattern:"\\d*",change:"motesToCSPR"},required:!0},{input:os}],[{input:{id:"targetAccountElt",type:"search",wrap_class:"col-xl-9",class:"form-control",label:"Target Account",name:"target_account",controlName:"targetAccount",placeholder:"Public Key, AccountHash, Purse URef",e2e:"targetAccountElt"},required:!0}]],YM=[...Rn,..._c],QM=[[{input:cc,required:!0},{input:os},{input:lc},{select:Jm},{input:qm}],[{wasm_button:!0},{select:Km}],[{input:uc}],[{textarea:dc}]],Zm=[[{input:cc,required:!0},{input:os},{input:lc}],[{wasm_button:!0},{select:Km}],[{input:BM,required:!0},{input:kd},{input:Fd}],[{input:UM,required:!0}],[{input:Rd,required:!0}],[{input:uc}],[{textarea:dc}]],Ym=[[{input:cc,required:!0},{input:os},{input:lc},{select:Jm},{input:qm}],[{wasm_button:!0},{select:Km}],[{input:HM,required:!0},{input:kd},{input:Fd}],[{input:zM,required:!0}],[{input:Rd,required:!0}],[{input:uc}],[{textarea:dc}]],A4=[...Zm],N4=[...Ym],xd=new Map([["call_entrypoint",[[{input:cc,required:!0},{input:os},{input:lc},{select:Jm},{input:qm}],[{input:HM},{input:kd},{input:Fd}],[{input:zM}],[{input:Rd}],[{input:uc}],[{textarea:dc}]]],["call_entrypoint_deploy",[[{input:cc,required:!0},{input:os},{input:lc}],[{input:BM},{input:kd},{input:Fd}],[{input:UM}],[{input:Rd}],[{input:uc}],[{textarea:dc}]]],["deploy",Zm],["get_account",b4],["get_balance",E4],["get_block",Rn],["get_block_transfers",Rn],["get_deploy",T4],["get_dictionary_item",I4],["get_era_info",Rn],["get_era_summary",Rn],["get_entity",v4],["get_state_root_hash",Rn],["get_transaction",M4],["install",QM],["install_deploy",QM],["make_deploy",Zm],["make_transaction",Ym],["make_transfer",_c],["make_transfer_transaction",_c],["put_deploy",[[{file_button:!0}],[{textarea:Gm,required:!0}]]],["put_transaction",[[{file_button:!0}],[{textarea:Wm,required:!0}]]],["query_balance",ZM],["query_balance_details",ZM],["query_contract_dict",C4],["query_contract_key",S4],["query_global_state",D4],["sign_deploy",[[{file_button:!0}],[{textarea:Gm,required:!0}]]],["sign_transaction",[[{file_button:!0}],[{textarea:Wm,required:!0}]]],["speculative_deploy",A4],["speculative_exec_deploy",[[{file_button:!0}],[{textarea:Gm,required:!0}]]],["speculative_exec",[[{file_button:!0}],[{textarea:Wm,required:!0}]]],["speculative_transaction",N4],["speculative_transfer",YM],["speculative_transfer_transaction",YM],["transaction",Ym],["transfer",_c],["transfer_transaction",_c]]);let xn=(()=>{class n{constructor(){this.state=new Qd({})}setState(t){const i={...this.state.getValue(),...t};this.state.next(i)}getState(){return this.state.asObservable()}getValue(){return this.state.getValue()}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),fc=(()=>{class n{constructor(t){this.document=t,this.prefix="casper-client",this.window=this.document.defaultView}setState(t){const i={...JSON.parse(this.window?.localStorage.getItem(this.prefix)||"{}"),...t};this.window?.localStorage.setItem(this.prefix,JSON.stringify(i))}get(t){return(JSON.parse(this.window?.localStorage.getItem(this.prefix)||"{}")||{})[t]}static{this.\u0275fac=function(r){return new(r||n)(H(fn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ss=(()=>{class n{constructor(t,r,i,o){this.config=t,this.formBuilder=r,this.stateService=i,this.storageService=o,this.stateService.getState().subscribe(s=>{this.has_wasm=!!s?.has_wasm,s?.select_dict_identifier&&(this.select_dict_identifier=s.select_dict_identifier),s?.action&&this.action!==s.action&&(s.action&&(this.action=s.action),this.initializeForm()),s&&(this.state=s),this.action&&this.updateForm()}),this.form=this.defaultForm}get defaultForm(){const t={};return xd.forEach(r=>{r.forEach(i=>{i.forEach(({input:o,textarea:s,select:c})=>{const l=o?.controlName||s?.controlName||c?.controlName||"";if(l&&(t[l]=new is(this.getDefaultOptionValue(c?.options))),c?.options&&"selectDictIdentifier"===l){const u=c?.options.find(d=>d.default)?.value||"";this.stateService.setState({select_dict_identifier:u})}})})}),this.formBuilder.group(t)}getDefaultOptionValue(t){const r=t&&t.find(i=>i.default);return r?r.value:null}initializeForm(){Object.values(this.form.controls).forEach(r=>{r.clearValidators(),r.markAsPristine(),r.disable()});const t=this.action&&xd.get(this.action);t&&t.forEach(r=>{r.forEach(({input:i,textarea:o,select:s,required:c})=>{if(!i&&!o&&!s)return;const u=this.form.get(i?.controlName||o?.controlName||s?.controlName||"");if(!u)return;const d=i?.state_name||o?.state_name||s?.state_name||[],_=d&&d.find(y=>this.state[y]),f=i?.storage_name||o?.storage_name||s?.storage_name||"";let p=_?this.state[_]:"";if(p=f?this.storageService.get(f):p,p)p&&u.setValue(p);else if(i?.config_name){const y=this.config[i?.config_name]||"";y&&u.setValue(y),y&&(i.placeholder_config_value=y)}u.enable(),c&&(i&&(i.required=!0),o&&(o.required=!0),u.setValidators([f8.required]))})})}updateForm(){console.log("updateForm");const t=this.action&&xd.get(this.action);if(!t)return;const r=[];t.forEach(i=>{i.forEach(({input:o,textarea:s,select:c})=>{const l=o?.controlName||s?.controlName||c?.controlName||"";if(!l)return;const u=this.form.get(l);if(u){if(s){const d=s?.state_name||[],_=d&&d.find(p=>this.state[p]),f=_?this.state[_]:"";if(f&&u.setValue(f),s.disabled_when){const p=u.value&&s.disabled_when?.find(E=>E.includes("value")),y=p&&p.split(".")[0],w=y&&this.form?.get(y);w&&(w.disable(),r.push(y)),r.includes(s.controlName)||u.enable()}}else if(c&&c.enabled_when)this.has_wasm&&c.enabled_when?.includes("has_wasm")?u.enable():u.disable();else if(o){const d=o?.state_name||[],_=d&&d.find(p=>this.state[p]),f=_?this.state[_]:"";if(f&&u.setValue(f),o.enabled_when)"get_dictionary_item"===this.action&&this.select_dict_identifier&&!o.enabled_when?.includes(this.select_dict_identifier)?u.disable():this.select_dict_identifier&&u.enable();else if(o.disabled_when){const p=u.value&&o.disabled_when?.find(C=>C.includes("value")),y=p&&p.split(".")[0],w=y&&this.form?.get(y);w&&(w.disable(),r.push(y)),this.has_wasm&&o?.disabled_when?.includes("has_wasm")?(u.reset(),u.disable()):r.includes(o.controlName)||u.enable();const E=mr[this.state.pricing_mode]===mr.Classic;o?.disabled_when?.includes("fixedPricingMode")&&E&&(u.reset(),u.disable())}}if(o||s){const d=o?.storage_name||s?.storage_name||"";d&&this.storageService.setState({[d]:u.value})}}})})}get formFields(){return xd}static{this.\u0275fac=function(r){return new(r||n)(H(wr),H(r4),H(xn),H(fc))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const j4=["template"],B4=(n,e)=>[n,e],H4=(n,e,t)=>[n,e,t];function U4(n,e){if(1&n&&(R(0,"span",10),ne(1),x()),2&n){let t;const r=V(2),i=r.inputField,o=r.parentForm,s=V();O(),yt("(",s.motesToCSPR(null==(t=o.get(i.controlName))?null:t.value)," CSPR)")}}function z4(n,e){if(1&n){const t=xe();nn(0,3),R(1,"input",11),ee("change",function(){_e(t);const i=V(2).inputField;return fe(V().onChange(i))}),x(),rn()}if(2&n){const t=V(2),r=t.inputField,i=t.parentForm,o=V();k("formGroup",i),O(),k("id",r.id)("type",r.type)("name",r.name)("maxlength",r.maxlength||"")("pattern",r.pattern||"")("formControlName",r.controlName)("placeholder",r.placeholder_config_value?"e.g. "+r.placeholder_config_value:r.placeholder||"")("ngClass",EC(10,H4,r.class||"form-control",o.isInvalid(r.controlName)?"is-invalid":"",o.isRequired(r)?"is-required":"")),At("e2e-id",r.e2e)}}function $4(n,e){if(1&n&&(R(0,"label",12),ne(1),x()),2&n){const t=V(2).inputField;k("for",t.id),O(),yt("e.g. ",t.placeholder,"")}}function q4(n,e){if(1&n&&(R(0,"label",12),ne(1),x()),2&n){const t=V(2).inputField;k("for",t.id),O(),yt("e.g. ",t.placeholder_config_value,"")}}function G4(n,e){if(1&n&&(R(0,"div",4)(1,"label",5),ne(2),ie(3,U4,2,1,"span",6),x(),R(4,"div",7),ie(5,z4,2,14,"ng-container",8)(6,$4,2,2,"label",9)(7,q4,2,2,"label",9),x()()),2&n){let t,r;const i=V(),o=i.inputField,s=i.parentForm,c=Ti(2);k("ngClass",o.wrap_class),O(),k("for",o.id)("ngClass",Go(10,B4,o.label_class||"",null!=(t=s.get(o.controlName))&&t.disabled?"disabled":"")),O(),ga("",o.label,"",o.required?" *":""," "),O(),k("ngIf",(null==o.change?null:o.change.includes("motesToCSPR"))&&(null==(r=s.get(o.controlName))?null:r.value)),O(2),k("ngIf","checkbox"!==o.type)("ngIfElse",c),O(),k("ngIf",o.placeholder),O(),k("ngIf",o.placeholder_config_value)}}function W4(n,e){if(1&n&&mt(0,"input",13),2&n){const t=V().inputField;k("id",t.id)("name",t.name)("formControlName",t.controlName),At("e2e-id",t.e2e)}}function J4(n,e){if(1&n&&ie(0,G4,8,13,"div",2)(1,W4,1,4,"ng-template",3,1,Ai),2&n){let t;const r=e.inputField,i=e.parentForm;k("ngIf",!(V().hidden_when_disabled&&null!=(t=i.get(r.controlName))&&t.disabled)),O(),k("formGroup",i)}}let XM=(()=>{class n{constructor(t){this.formService=t}onChange(t){this.parentForm?.get(t.controlName)&&t.disabled_when?.find(o=>o.includes("value"))&&this.formService.updateForm()}isInvalid(t){const r=this.parentForm?.get(t);return!(!r?.enabled||!r?.dirty||r?.value||r?.valid)}isRequired(t){const r=this.parentForm?.get(t.controlName);return!(!r?.enabled||r?.dirty||r?.value||!t.required)}motesToCSPR(t){if(t)return function A$(n){let e,t;try{const o=g(n,a.__wbindgen_malloc,a.__wbindgen_realloc),c=a.motesToCSPR(o,h);var r=c[0],i=c[1];if(c[3])throw r=0,i=0,F(c[2]);return e=r,t=i,v(r,i)}finally{a.__wbindgen_free(e,t,1)}}(t=this.parse_commas(t))}parse_commas(t){return t.replace(/[,.]/g,"")}static{this.\u0275fac=function(r){return new(r||n)(I(ss))}}static{this.\u0275cmp=_t({type:n,selectors:[["ui-input"]],viewQuery:function(r,i){if(1&r&&kt(j4,7),2&r){let o;Ft(o=Rt())&&(i.template=o.first)}},inputs:{inputField:"inputField",parentForm:"parentForm",hidden_when_disabled:"hidden_when_disabled"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],["checkboxContent",""],[3,"ngClass",4,"ngIf"],[3,"formGroup"],[3,"ngClass"],[3,"for","ngClass"],["class","fw-light small text-nowrap",4,"ngIf"],[1,"form-floating"],[3,"formGroup",4,"ngIf","ngIfElse"],[3,"for",4,"ngIf"],[1,"fw-light","small","text-nowrap"],[3,"change","id","type","name","maxlength","pattern","formControlName","placeholder","ngClass"],[3,"for"],["type","checkbox",3,"id","name","formControlName"]],template:function(r,i){1&r&&ie(0,J4,3,2,"ng-template",null,0,Ai)},dependencies:[Ye,gr,gn,qi,Xa,Dm,wd,ec,zm,$m,zi,sc],styles:["[_nghost-%COMP%]{display:none}label[_ngcontent-%COMP%]{max-width:100%}.form-floating[_ngcontent-%COMP%] > label[_ngcontent-%COMP%], label.disabled[_ngcontent-%COMP%]{color:#d3d3d3}"],changeDetection:0})}}return n})();const K4=["template"],eA=n=>[n];function Z4(n,e){if(1&n&&(R(0,"option",7),ne(1),x()),2&n){const t=e.$implicit,r=V(2);th("value",t.value),k("selected",t.default||r.select_dict_identifier===t.value),O(),yt(" ",t.label," ")}}function Y4(n,e){if(1&n){const t=xe();R(0,"div",1)(1,"div",2)(2,"label",3),ne(3),x(),nn(4,4),R(5,"select",5),ee("change",function(i){return _e(t),fe(V().onChange(i))}),ie(6,Z4,2,3,"option",6),x(),rn(),x()()}if(2&n){const t=e.inputField,r=e.parentForm;k("ngClass",t.wrap_class),O(2),k("for",t.id)("ngClass",Mn(11,eA,t.label_class||"")),O(),Mi(t.label),O(),k("formGroup",r),O(),k("id",t.id)("name",t.name)("ngClass",Mn(13,eA,t.class||"form-control"))("formControlName",t.controlName),At("e2e-id",t.e2e),O(),k("ngForOf",t.options)}}let tA=(()=>{class n{constructor(t,r,i){this.config=t,this.stateService=r,this.changeDetectorRef=i}ngAfterViewInit(){var t=this;return S(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{setTimeout(()=>{t.select_dict_identifier&&(this.select_dict_identifier=t.select_dict_identifier),this.changeDetectorRef.markForCheck()})})}onChange(t){const r=t.target?.value,i=t.target?.name;"select_dict_identifier"===i&&this.stateService.setState({select_dict_identifier:r}),"pricing_mode"===i&&this.stateService.setState({pricing_mode:mr[r].toString()})}static{this.\u0275fac=function(r){return new(r||n)(I(wr),I(xn),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["ui-select"]],viewQuery:function(r,i){if(1&r&&kt(K4,7),2&r){let o;Ft(o=Rt())&&(i.template=o.first)}},inputs:{inputField:"inputField",parentForm:"parentForm"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],[3,"ngClass"],[1,"input-group"],[3,"for","ngClass"],[3,"formGroup"],[3,"change","id","name","ngClass","formControlName"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(r,i){1&r&&ie(0,Y4,7,15,"ng-template",null,0,Ai)},dependencies:[Ye,gr,Ma,qi,MM,NM,Nd,wd,ec,zi,sc],styles:["[_nghost-%COMP%]{display:none}label[_ngcontent-%COMP%]{max-width:100%}[_ngcontent-%COMP%]:disabled{color:#d3d3d3}"],changeDetection:0})}}return n})();const Q4=["template"],X4=(n,e)=>[n,e];function e5(n,e){if(1&n&&(R(0,"label",6),ne(1),x()),2&n){const t=V().inputField,r=V();k("for",t.id),O(),Mi(r.currentPlaceholder||t.placeholder)}}function t5(n,e){if(1&n){const t=xe();R(0,"div",1)(1,"div",2),nn(2,3),R(3,"textarea",4),ee("change",function(i){const o=_e(t).inputField;return fe(V().onChange(i,o))})("focus",function(i){return _e(t),fe(V().onFocus(i))})("blur",function(i){return _e(t),fe(V().onBlur(i))}),ne(4," "),x(),ie(5,e5,2,2,"label",5),rn(),x()()}if(2&n){const t=e.inputField,r=e.parentForm,i=V();k("ngClass",t.wrap_class),O(2),k("formGroup",r),O(),k("id",t.id)("name",t.name)("formControlName",t.controlName)("placeholder",i.currentPlaceholder||t.placeholder||"")("ngClass",Go(9,X4,t.class||"form-control",i.isInvalid(t.controlName)?"is-invalid":"")),At("e2e-id",t.e2e),O(2),k("ngIf",t.placeholder)}}let nA=(()=>{class n{constructor(t){this.formService=t,this.update_deploy_json=new ke,this.update_transaction_json=new ke,this.jsonPattern=/\[\{.*?\}\]/g}ngOnInit(){this.originalPlaceholder=this.inputField.placeholder||""}ngAfterViewInit(){this.initializePlaceholder()}isInvalid(t){const r=this.parentForm?.get(t);return!!this.parentForm?.touched&&!!r?.invalid}onChange(t,r){const i=t.target;i.name.includes("deploy")?this.update_deploy_json.emit(i.value):i.name.includes("transaction")?this.update_transaction_json.emit(i.value):this.updateForm(r)}onFocus(t){this.currentPlaceholder=this.removeJsonParts(t.target.placeholder)}onBlur(t){t.target.value||(this.currentPlaceholder=this.originalPlaceholder)}updateForm(t){this.parentForm?.get(t.controlName)&&t.disabled_when?.find(o=>o.includes("value"))&&this.formService.updateForm()}removeJsonParts(t){return t.replace(this.jsonPattern,"").trim()}initializePlaceholder(){const t=this.parentForm.get(this.inputField.controlName);this.currentPlaceholder=t&&t.value?this.removeJsonParts(this.originalPlaceholder):this.originalPlaceholder}static{this.\u0275fac=function(r){return new(r||n)(I(ss))}}static{this.\u0275cmp=_t({type:n,selectors:[["ui-textarea"]],viewQuery:function(r,i){if(1&r&&kt(Q4,7),2&r){let o;Ft(o=Rt())&&(i.template=o.first)}},inputs:{inputField:"inputField",parentForm:"parentForm"},outputs:{update_deploy_json:"update_deploy_json",update_transaction_json:"update_transaction_json"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],[3,"ngClass"],[1,"form-floating","mt-3"],[3,"formGroup"],[3,"change","focus","blur","id","name","formControlName","placeholder","ngClass"],[3,"for",4,"ngIf"],[3,"for"]],template:function(r,i){1&r&&ie(0,t5,6,12,"ng-template",null,0,Ai)},dependencies:[Ye,gr,gn,qi,Xa,wd,ec,zi,sc],styles:["textarea[_ngcontent-%COMP%]{min-height:350px!important;white-space:pre-wrap}@media (max-width: 767px){textarea[_ngcontent-%COMP%]{min-height:200px!important}}.form-floating[_ngcontent-%COMP%] > label[_ngcontent-%COMP%], label.disabled[_ngcontent-%COMP%]{color:#d3d3d3}"],changeDetection:0})}}return n})();const n5=["wasmElt"],r5=["template"];function i5(n,e){if(1&n){const t=xe();R(0,"button",6),ee("click",function(){return _e(t),fe(V(2).onWasmClick())}),ne(1," Wasm Module Bytes "),x()}}function o5(n,e){if(1&n){const t=xe();R(0,"span",7),ee("click",function(){return _e(t),fe(V(2).resetWasmClick())}),ne(1),nl(),R(2,"svg",8),mt(3,"path",9),x()()}if(2&n){const t=V(2);O(),yt(" ",t.file_name," ")}}function s5(n,e){if(1&n){const t=xe();R(0,"div",2)(1,"input",3,1),ee("change",function(i){return _e(t),fe(V().onWasmSelected(i))}),x(),ie(3,i5,2,0,"button",4)(4,o5,4,1,"span",5),x()}if(2&n){const t=V();O(3),k("ngIf",!t.file_name),O(),k("ngIf",t.file_name)}}let rA=(()=>{class n{constructor(){this.select_wasm=new ke}onWasmSelected(t){var r=this;return S(function*(){r.file_name=r.wasmElt?.nativeElement.value.split("\\").pop();const i=t.target.files?.item(0),o=yield i?.arrayBuffer();r.wasm=o&&new Uint8Array(o),r.wasm?.buffer||r.resetWasmClick(),r.select_wasm.emit(r.wasm)})()}onWasmClick(){this.wasmElt.nativeElement.click()}resetWasmClick(){this.wasmElt.nativeElement.value="",this.wasm=void 0,this.file_name="",this.select_wasm.emit(void 0)}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-submit-wasm"]],viewQuery:function(r,i){if(1&r&&(kt(n5,5),kt(r5,7)),2&r){let o;Ft(o=Rt())&&(i.wasmElt=o.first),Ft(o=Rt())&&(i.template=o.first)}},outputs:{select_wasm:"select_wasm"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],["wasmElt",""],[1,"col-sm-2","mb-3","mt-3"],["name","wasm","type","file","id","wasmElt","accept",".wasm","e2e-id","wasmElt",1,"visually-hidden",3,"change"],["class","btn btn-secondary",3,"click",4,"ngIf"],["class","btn btn-light","e2e-id","wasmName",3,"click",4,"ngIf"],[1,"btn","btn-secondary",3,"click"],["e2e-id","wasmName",1,"btn","btn-light",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-6","h-6","ml-1","cursor-pointer","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"]],template:function(r,i){1&r&&ie(0,s5,5,2,"ng-template",null,0,Ai)},dependencies:[Ye,gn],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0})}}return n})(),pc=(()=>{class n{constructor(){this.error=new Qd("")}setError(t){this.error.getValue()!==t&&this.error.next(t)}getError(){return this.error.asObservable()}static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const a5=["template"],c5=["deployFileElt"],l5=["transactionFileElt"];function u5(n,e){if(1&n){const t=xe();R(0,"div",4)(1,"input",5,1),ee("change",function(i){return _e(t),fe(V(2).onDeployFileSelected(i))}),x(),R(3,"button",6),ee("click",function(){return _e(t),fe(V(2).deployFileClick())}),ne(4," Load deploy file "),x()()}}function d5(n,e){if(1&n){const t=xe();R(0,"div",4)(1,"input",7,2),ee("change",function(i){return _e(t),fe(V(2).onTransactionFileSelected(i))}),x(),R(3,"button",6),ee("click",function(){return _e(t),fe(V(2).transactionFileClick())}),ne(4," Load transaction file "),x()()}}function _5(n,e){if(1&n&&ie(0,u5,5,0,"div",3)(1,d5,5,0,"div",3),2&n){const t=V();k("ngIf","deploy"===t.type),O(),k("ngIf","transaction"===t.type)}}let iA=(()=>{class n{constructor(t){this.errorService=t,this.select_deploy=new ke,this.select_transaction=new ke,this.type="deploy"}onDeployFileSelected(t){var r=this;return S(function*(){const i=t.target.files?.item(0);let o;if(r.deploy_json="",i){if(o=yield i.text(),!o.trim())return;o=o.trim();try{const s=JSON.parse(o);r.deploy_json=s}catch{const s="Error parsing deploy";console.error(s),r.errorService.setError(s)}}r.select_deploy.emit(r.deploy_json),r.deployFileElt.nativeElement.value=""})()}onTransactionFileSelected(t){var r=this;return S(function*(){const i=t.target.files?.item(0);let o;if(r.transaction_json="",i){if(o=yield i.text(),!o.trim())return;o=o.trim();try{const s=JSON.parse(o);r.transaction_json=s}catch{const s="Error parsing transaction";console.error(s),r.errorService.setError(s)}}r.select_transaction.emit(r.transaction_json),r.transactionFileElt.nativeElement.value=""})()}deployFileClick(){this.deployFileElt.nativeElement.click()}transactionFileClick(){this.transactionFileElt.nativeElement.click()}static{this.\u0275fac=function(r){return new(r||n)(I(pc))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-submit-file"]],viewQuery:function(r,i){if(1&r&&(kt(a5,7),kt(c5,5),kt(l5,5)),2&r){let o;Ft(o=Rt())&&(i.template=o.first),Ft(o=Rt())&&(i.deployFileElt=o.first),Ft(o=Rt())&&(i.transactionFileElt=o.first)}},inputs:{type:"type"},outputs:{select_deploy:"select_deploy",select_transaction:"select_transaction"},standalone:!0,features:[wt],decls:2,vars:0,consts:[["template",""],["deployFileElt",""],["transactionFileElt",""],["class","col-sm-2 mt-2",4,"ngIf"],[1,"col-sm-2","mt-2"],["name","deploy_file","type","file","id","deployFileElt","accept",".json, .txt, .deploy","e2e-id","deployFileElt",1,"visually-hidden",3,"change"],[1,"btn","btn-secondary",3,"click"],["name","transaction_file","type","file","id","transactionFileElt","accept",".json, .txt, .deploy","e2e-id","transactionFileElt",1,"visually-hidden",3,"change"]],template:function(r,i){1&r&&ie(0,_5,2,2,"ng-template",null,0,Ai)},dependencies:[Ye,gn],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0})}}return n})();const Qm=(n,e)=>({parentForm:n,inputField:e});function f5(n,e){1&n&&Si(0)}function p5(n,e){if(1&n&&(nn(0),mt(1,"ui-input",7,0),ie(3,f5,1,0,"ng-container",8),rn()),2&n){const t=Ti(2),r=V().$implicit,i=V(3);O(),k("parentForm",i.form)("inputField",r.input)("hidden_when_disabled","get_dictionary_item"===i.action),O(2),k("ngTemplateOutlet",t.template)("ngTemplateOutletContext",Go(5,Qm,i.form,r.input))}}function h5(n,e){1&n&&Si(0)}function g5(n,e){if(1&n){const t=xe();nn(0),R(1,"ui-textarea",9,0),ee("update_deploy_json",function(i){return _e(t),fe(V(4).updateDeployJson(i))})("update_transaction_json",function(i){return _e(t),fe(V(4).updateTransactionJson(i))}),x(),ie(3,h5,1,0,"ng-container",8),rn()}if(2&n){const t=Ti(2),r=V().$implicit,i=V(3);O(),k("parentForm",i.form)("inputField",r.textarea),O(2),k("ngTemplateOutlet",t.template)("ngTemplateOutletContext",Go(4,Qm,i.form,r.textarea))}}function m5(n,e){1&n&&Si(0)}function y5(n,e){if(1&n&&(nn(0),mt(1,"ui-select",10,0),ie(3,m5,1,0,"ng-container",8),rn()),2&n){const t=Ti(2),r=V().$implicit,i=V(3);O(),k("parentForm",i.form)("inputField",r.select),O(2),k("ngTemplateOutlet",t.template)("ngTemplateOutletContext",Go(4,Qm,i.form,r.select))}}function w5(n,e){1&n&&Si(0)}function b5(n,e){if(1&n){const t=xe();nn(0),R(1,"comp-submit-wasm",11,1),ee("select_wasm",function(i){return _e(t),fe(V(4).onWasmSelected(i))}),x(),ie(3,w5,1,0,"ng-container",12),rn()}if(2&n){const t=Ti(2);O(3),k("ngTemplateOutlet",t.template)}}function v5(n,e){1&n&&Si(0)}function E5(n,e){if(1&n){const t=xe();nn(0),R(1,"comp-submit-file",13,1),ee("select_deploy",function(i){return _e(t),fe(V(4).onDeployFileSelected(i))})("select_transaction",function(i){return _e(t),fe(V(4).onTransactionFileSelected(i))}),x(),ie(3,v5,1,0,"ng-container",12),rn()}if(2&n){const t=Ti(2),r=V(4);O(),k("type",r.action.includes("transaction")?"transaction":"deploy"),O(2),k("ngTemplateOutlet",t.template)}}function D5(n,e){if(1&n&&(nn(0),ie(1,p5,4,8,"ng-container",6)(2,g5,4,7,"ng-container",6)(3,y5,4,7,"ng-container",6)(4,b5,4,1,"ng-container",6)(5,E5,4,2,"ng-container",6),rn()),2&n){const t=e.$implicit;O(),k("ngIf",t.input),O(),k("ngIf",t.textarea),O(),k("ngIf",t.select),O(),k("ngIf",t.wasm_button),O(),k("ngIf",t.file_button)}}function C5(n,e){if(1&n&&(nn(0),R(1,"div",5),ie(2,D5,6,5,"ng-container",4),x(),rn()),2&n){const t=e.$implicit;O(2),k("ngForOf",t)}}function S5(n,e){if(1&n&&(R(0,"form",3),ie(1,C5,3,1,"ng-container",4),x()),2&n){const t=V();k("formGroup",t.form),O(),k("ngForOf",t.formFields.get(t.action))}}let oA=(()=>{class n{constructor(t,r,i,o){this.config=t,this.formService=r,this.stateService=i,this.changeDetectorRef=o,this.formFields=this.formService.formFields,this.wasm_selected=new ke,this.verbosity=this.config.verbosity}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}ngAfterViewInit(){var t=this;return S(function*(){t.setStateSubscription()})()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}onWasmSelected(t){var r=this;return S(function*(){t&&r.wasm_selected.emit(t),r.stateService.setState({has_wasm:!!t})})()}onDeployFileSelected(t){var r=this;return S(function*(){t=t&&kn(new ae(t).toJson(),r.verbosity),r.updateDeployJson(t)})()}onTransactionFileSelected(t){var r=this;return S(function*(){t=t&&kn(new de(t).toJson(),r.verbosity),r.updateTransactionJson(t)})()}updateDeployJson(t){t&&this.stateService.setState({deploy_json:t})}updateTransactionJson(t){t&&this.stateService.setState({transaction_json:t})}static{this.\u0275fac=function(r){return new(r||n)(I(wr),I(ss),I(xn),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-form"]],inputs:{form:"form"},outputs:{wasm_selected:"wasm_selected"},standalone:!0,features:[wt],decls:1,vars:1,consts:[["inputTemplate",""],["submitTemplate",""],["class","mt-3",3,"formGroup",4,"ngIf"],[1,"mt-3",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"row","align-items-end"],[4,"ngIf"],[3,"parentForm","inputField","hidden_when_disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"update_deploy_json","update_transaction_json","parentForm","inputField"],[3,"parentForm","inputField"],[3,"select_wasm"],[4,"ngTemplateOutlet"],[3,"select_deploy","select_transaction","type"]],template:function(r,i){1&r&&ie(0,S5,2,2,"form",2),2&r&&k("ngIf",i.action&&i.formFields&&i.formFields.has(i.action))},dependencies:[Ye,Ma,gn,DS,qi,vM,ec,zi,XM,rA,iA,nA,tA],changeDetection:0})}}return n})();const sA=new P("highlight");var I5=On(7278),T5=On.n(I5);let aA=(()=>{class n{constructor(t){this.highlightWebworkerFactory=t}highlightMessage(t){var r=this;return S(function*(){r.activateWorker();const i=r.hightlightWebworker&&(yield r.hightlightWebworker.postMessage(t).catch(o=>{console.error(o)}));return r.terminateWorker(),i})()}activateWorker(){if(this.webworker)return;const t=this.highlightWebworkerFactory();this.webworker=t[0],this.hightlightWebworker=t[1]}terminateWorker(){this.webworker&&(this.webworker.terminate(),delete this.webworker)}static{this.\u0275fac=function(r){return new(r||n)(H(sA))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const M5={provide:sA,useValue:function(){const n=new Worker(On.tu(new URL(On.p+On.u(755),On.b)),{name:"highlight.worker",type:void 0});return[n,new(T5())(n)]}};let cA=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({providers:[M5,aA],imports:[Ye]})}}return n})(),Od=(()=>{class n{constructor(t,r){this.highlightService=t,this.document=r,this.result=new Qr,this.window=this.document.defaultView}getResult(){return this.result.asObservable()}setResult(t){var r=this;return S(function*(){const i=t,o=yield r.highlightService.highlightMessage(i),s="string"==typeof t;r.result.next({result:s?i:JSON.stringify(i),resultHtml:s?i:o})})()}copyClipboard(t){this.window?.navigator.clipboard.writeText(t).catch(r=>console.error(r))}static{this.\u0275fac=function(r){return new(r||n)(H(aA),H(fn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),A5=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=ir({type:n})}static{this.\u0275inj=Pn({providers:[Od],imports:[Ye,cA]})}}return n})();const N5=["resultElt"],k5=["codeElt"];function F5(n,e){if(1&n&&(R(0,"div",15,0)(2,"div",16),mt(3,"code",17,1),x()()),2&n){const t=V(2);O(3),k("innerHtml",t.resultHtml,fv)}}function R5(n,e){if(1&n){const t=xe();R(0,"div",4)(1,"div",5)(2,"span"),nl(),R(3,"svg",6),ee("click",function(){_e(t);const i=V();return fe(i.copy(i.result))}),mt(4,"rect",7)(5,"path",8),x()(),function Ww(){!function gF(){J.lFrame.currentNamespace=null}()}(),R(6,"span",9),ee("click",function(){return _e(t),fe(V().reset())}),nl(),R(7,"svg",10),mt(8,"path",11)(9,"path",12)(10,"path",13),x()()(),ie(11,F5,5,1,"div",14),x()}if(2&n){const t=V();O(11),k("ngIf",t.resultHtml)}}let lA=(()=>{class n{constructor(t,r){this.resultService=t,this.changeDetectorRef=r}ngAfterViewInit(){this.getResultSubscription=this.resultService.getResult().subscribe(t=>{this.result=t.result,this.resultHtml=t.resultHtml,this.changeDetectorRef.markForCheck()})}ngOnDestroy(){this.getResultSubscription&&this.getResultSubscription.unsubscribe()}copy(t){this.resultService.copyClipboard(kn(JSON.parse(t),Qu.High))}reset(){this.result="",this.resultHtml="",this.resultService.setResult("")}static{this.\u0275fac=function(r){return new(r||n)(I(Od),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-result"]],viewQuery:function(r,i){if(1&r&&(kt(N5,5),kt(k5,5,dn)),2&r){let o;Ft(o=Rt())&&(i.resultElt=o.first),Ft(o=Rt())&&(i.contentChildren=o.first)}},standalone:!0,features:[wt],decls:2,vars:1,consts:[["resultElt",""],["codeElt",""],[1,"mt-3"],["class","row",4,"ngIf"],[1,"row"],[1,"col-xs-12","d-flex","flex-row","justify-content-between","mb-2"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"shrink-0","ml-2","w-5","min-w-5","text-gray-500","cursor-pointer",3,"click"],["x","9","y","9","width","13","height","13","rx","2","ry","2"],["d","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"],["e2e-id","clear result",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-journal-x","cursor-pointer"],["fill-rule","evenodd","d","M6.146 6.146a.5.5 0 0 1 .708 0L8 7.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 8l1.147 1.146a.5.5 0 0 1-.708.708L8 8.707 6.854 9.854a.5.5 0 0 1-.708-.708L7.293 8 6.146 6.854a.5.5 0 0 1 0-.708z"],["d","M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2z"],["d","M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1z"],["class","col-xs-12",4,"ngIf"],[1,"col-xs-12"],[1,"card"],["e2e-id","result",1,"card-body",3,"innerHtml"]],template:function(r,i){1&r&&(R(0,"section",2),ie(1,R5,12,1,"div",3),x()),2&r&&(O(),k("ngIf",i.result))},dependencies:[Ye,gn,cA],styles:["code[_ngcontent-%COMP%]{white-space:pre-wrap;overflow-x:hidden;word-wrap:break-word;max-width:100%}.card[_ngcontent-%COMP%]{max-height:calc(95vh - 20px);overflow-y:auto;margin-bottom:20px}@media (max-width: 767px){[_nghost-%COMP%] .hljs-string{overflow-wrap:break-word;word-break:break-all;max-width:100%}}[_nghost-%COMP%] .hljs-attr{font-weight:700}@media (max-width: 767px){code[_ngcontent-%COMP%]{font-size:.8em}}"],changeDetection:0})}}return n})();const x5=["selectNetworkElt"],uA=n=>[n];function O5(n,e){if(1&n&&(R(0,"option",18),ne(1),x()),2&n){const t=e.$implicit,r=V();k("value",null==t?null:t.name)("selected",t.rpc_address===r.rpc_address),O(),ga(" ",null==t?null:t.name," (",t.rpc_address,") ")}}function P5(n,e){if(1&n&&(R(0,"option",18),ne(1),x()),2&n){const t=e.$implicit,r=V(2);k("value",r.changePort(t))("selected",r.changePort(t)===r.rpc_address),O(),ga(" ",r.changePort(t)," (",r.chain_name,") ")}}function L5(n,e){if(1&n&&(R(0,"optgroup",19),ie(1,P5,2,4,"option",15),x()),2&n){const t=V();O(),k("ngForOf",t.peers)}}function V5(n,e){if(1&n){const t=xe();R(0,"div",20)(1,"div",21)(2,"label",22)(3,"span",23),ne(4,"Net."),x(),R(5,"span",24),ne(6,"Network"),x()(),R(7,"input",25,1),ee("change",function(i){return _e(t),fe(V().onCustomNetworkChange(i))}),x()(),R(9,"div",26)(10,"label",27)(11,"span",23),ne(12,"Chai."),x(),R(13,"span",24),ne(14,"Chain"),x()(),R(15,"input",28,1),ee("change",function(i){return _e(t),fe(V().onCcustomChainChange(i))}),x()()()}if(2&n){const t=V();O(7),k("value",t.rpc_address||"")("ngClass",Mn(4,uA,t.isCustomNetworkInvalid()?"is-invalid":"")),O(8),k("value",t.chain_name||"")("ngClass",Mn(6,uA,t.iscustomChainInvalid()?"is-invalid":""))}}let dA=(()=>{class n{constructor(t,r,i,o,s,c,l){this.sdk=t,this.config=r,this.env=i,this.document=o,this.stateService=s,this.storageService=c,this.changeDetectorRef=l,this.networks=this.config.networks,this.network=this.config.network,this.chain_name=this.network.chain_name,this.rpc_address=this.network.rpc_address,this.is_production=this.env.production,this.localhost_to_gateway=this.env.localhost_to_gateway,this.window=this.document.defaultView,this.is_electron=this.isElectron()}ngAfterViewInit(){var t=this;return S(function*(){t.storageService.get("chain_name")&&t.storageService.get("rpc_address")&&(t.chain_name=t.storageService.get("chain_name")||t.chain_name,t.rpc_address=t.storageService.get("rpc_address")||t.rpc_address,t.network=t.networks.find(r=>r.rpc_address==t.rpc_address)||t.network),t.stateService.setState({chain_name:t.chain_name,rpc_address:t.rpc_address}),t.setRPCAddress(),t.changeDetectorRef.markForCheck()})()}selectNetwork(t){let r=t.target?.value||this.selectNetworkElt.nativeElement.value;r=r&&this.networks.find(i=>i.name==r),this.network=r,this.chain_name=r.chain_name,this.rpc_address=r.rpc_address,this.setRPCAddress(),this.stateService.setState({chain_name:r.chain_name}),this.storageService.setState({rpc_address:this.rpc_address,chain_name:this.chain_name})}changePort(t){const r=t.address.split(":");return[this.config.default_protocol,r.shift(),":",this.config.default_port].join("")}onCustomNetworkChange(t){this.rpc_address=t.target?.value||this.network.rpc_address;const r=this.networks.find(i=>"custom"===i.name);r&&(r.rpc_address=this.rpc_address,this.sdk.setRPCAddress(this.rpc_address),this.stateService.setState({rpc_address:this.rpc_address}),this.storageService.setState({rpc_address:this.rpc_address}))}isCustomNetworkInvalid(){return!1}onCcustomChainChange(t){this.chain_name=t.target?.value||this.network.chain_name;const r=this.networks.find(i=>"custom"===i.name);r&&(r.chain_name=this.chain_name,this.stateService.setState({chain_name:this.chain_name}),this.storageService.setState({chain_name:this.chain_name}))}iscustomChainInvalid(){return!1}isElectron(){return typeof this.window<"u"&&window.location?.origin?.startsWith("file://")}setRPCAddress(){if(this.is_electron)this.sdk.setRPCAddress(this.rpc_address);else{const t=this.networks.find(r=>r.rpc_address==this.rpc_address);this.is_production&&!this.localhost_to_gateway&&t&&["ntcl","node-launcher"].includes(t?.name)?this.sdk.setRPCAddress(this.rpc_address):t&&this.sdk.setRPCAddress([this.window?.location?.href,t?.name].join(""))}}static{this.\u0275fac=function(r){return new(r||n)(I(Qa),I(wr),I(vm),I(fn),I(xn),I(fc),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-header"]],viewQuery:function(r,i){if(1&r&&kt(x5,5),2&r){let o;Ft(o=Rt())&&(i.selectNetworkElt=o.first)}},inputs:{peers:"peers"},standalone:!0,features:[wt],decls:20,vars:7,consts:[["selectNetworkElt",""],["publicKeyElt",""],[1,"navbar","navbar-light"],[1,"col-5","col-md-2"],[1,"navbar-brand"],["src","assets/logo.png","alt","CasperLabs"],[1,"col-7","col-md-4","col-lg-4","col-xl-5","d-flex","flex-column","flex-xl-row","justify-content-end","px-2","pt-2"],["e2e-id","chain_name",1,"badge","rounded-pill","bg-success","mb-2","ellipsis-container","px-2","me-xl-3",3,"hidden"],["e2e-id","rpc_address",1,"badge","rounded-pill","bg-success","mb-2","ellipsis-container","px-2","me-xl-3",3,"hidden"],[1,"col-12","col-md-6","col-lg-5"],[1,"form-inline"],[1,"input-group"],["for","selectActionElt","for","selectNetworkElt",1,"input-group-text"],["id","selectNetworkElt","e2e-id","selectNetworkElt",1,"form-select","form-control","form-control-sm",3,"change"],["label","default"],[3,"value","selected",4,"ngFor","ngForOf"],["label","fetched",4,"ngIf"],["class","input-group mt-2 justify-content-between",4,"ngIf"],[3,"value","selected"],["label","fetched"],[1,"input-group","mt-2","justify-content-between"],[1,"col-7"],["for","customNetworkElt",1,"input-group-text"],[1,"d-none","d-md-inline","d-lg-none"],[1,"d-md-none","d-lg-inline"],["type","search","name","customNetwork","id","customNetworkElt","e2e-id","customNetworkElt",1,"form-control","form-control-xs",3,"change","value","ngClass"],[1,"col-4"],["for","publicKeyElt",1,"input-group-text"],["type","search","name","customChain","id","customChainElt","e2e-id","customChainElt",1,"form-control","form-control-xs",3,"change","value","ngClass"]],template:function(r,i){if(1&r){const o=xe();R(0,"nav",2)(1,"div",3)(2,"a",4),mt(3,"img",5),x()(),R(4,"div",6)(5,"span",7),ne(6),x(),R(7,"span",8),ne(8),x()(),R(9,"div",9)(10,"form",10)(11,"div",11)(12,"label",12),ne(13,"RPC"),x(),R(14,"select",13,0),ee("change",function(c){return _e(o),fe(i.selectNetwork(c))}),R(16,"optgroup",14),ie(17,O5,2,4,"option",15),x(),ie(18,L5,2,1,"optgroup",16),x()(),ie(19,V5,17,8,"div",17),x()()()}2&r&&(O(5),k("hidden",!i.chain_name),O(),Mi(i.chain_name),O(),k("hidden",!i.rpc_address),O(),Mi(i.rpc_address),O(9),k("ngForOf",i.networks),O(),k("ngIf",i.peers),O(),k("ngIf","custom"===(null==i.network?null:i.network.name)))},dependencies:[Ye,gr,Ma,gn],styles:[".ellipsis-container[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto}"],changeDetection:0})}}return n})();function j5(n,e){if(1&n&&(R(0,"section",1)(1,"pre",2),ne(2),x()()),2&n){const t=V();O(2),Mi(t.error)}}let _A=(()=>{class n{constructor(t,r){this.errorService=t,this.changeDetectorRef=r}ngAfterViewInit(){var t=this;return S(function*(){t.seterrorSubscription()})()}ngOnDestroy(){this.errorSubscription&&this.errorSubscription.unsubscribe()}seterrorSubscription(){var t=this;this.errorSubscription=this.errorService.getError().subscribe(function(){var r=S(function*(i){t.error!==i&&(t.error=i,t.changeDetectorRef.markForCheck())});return function(i){return r.apply(this,arguments)}}())}static{this.\u0275fac=function(r){return new(r||n)(I(pc),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-error"]],standalone:!0,features:[wt],decls:1,vars:1,consts:[["class","mt-3","e2e-id","error",4,"ngIf"],["e2e-id","error",1,"mt-3"],[1,"error","alert","alert-warning","d-flex"]],template:function(r,i){1&r&&ie(0,j5,3,1,"section",0),2&r&&k("ngIf",i.error)},dependencies:[Ye,gn],styles:[".error[_ngcontent-%COMP%]{display:block;font-family:monospace;white-space:pre-wrap;word-break:break-word}"],changeDetection:0})}}return n})();function B5(n,e){if(1&n){const t=xe();R(0,"div",4)(1,"span",5),ne(2),x(),R(3,"button",6),ee("click",function(){return _e(t),fe(V().get_state_root_hash())}),ne(4,"Refresh"),x()()}if(2&n){const t=V();O(2),yt("state root hash is ",t.state_root_hash,"")}}function H5(n,e){if(1&n&&(R(0,"div",7)(1,"span",8),ne(2),x()()),2&n){const t=V();O(2),yt("account hash is ",t.account_hash,"")}}function U5(n,e){if(1&n&&(R(0,"div",7)(1,"span",9),ne(2),x()()),2&n){const t=V();O(2),yt("main purse is ",t.main_purse,"")}}let fA=(()=>{class n{constructor(t,r){this.stateService=t,this.changeDetectorRef=r,this.get_state_root_hash_output=new ke}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.account_hash&&(this.account_hash=t.account_hash),t.main_purse&&(this.main_purse=t.main_purse),t.state_root_hash&&(this.state_root_hash=t.state_root_hash),t&&this.changeDetectorRef.markForCheck()})}ngAfterViewInit(){var t=this;return S(function*(){t.setStateSubscription()})()}get_state_root_hash(){this.get_state_root_hash_output.emit(!0)}static{this.\u0275fac=function(r){return new(r||n)(I(xn),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-status"]],outputs:{get_state_root_hash_output:"get_state_root_hash_output"},standalone:!0,features:[wt],decls:5,vars:3,consts:[[1,"row"],[1,"col-sm-12"],["class","alert alert-success d-flex flex-md-row flex-column justify-content-between align-items-center mb-1 mb-md-3",4,"ngIf"],["class","alert alert-warning d-flex mb-1 mb-md-3",4,"ngIf"],[1,"alert","alert-success","d-flex","flex-md-row","flex-column","justify-content-between","align-items-center","mb-1","mb-md-3"],["e2e-id","state_root_hash",1,"ellipsis-container"],[1,"btn","me-0",3,"click"],[1,"alert","alert-warning","d-flex","mb-1","mb-md-3"],["e2e-id","account_hash",1,"ellipsis-container"],["e2e-id","main_purse",1,"ellipsis-container"]],template:function(r,i){1&r&&(R(0,"div",0)(1,"div",1),ie(2,B5,5,1,"div",2)(3,H5,3,1,"div",3)(4,U5,3,1,"div",3),x()()),2&r&&(O(2),k("ngIf",i.state_root_hash),O(),k("ngIf",i.account_hash),O(),k("ngIf",i.main_purse))},dependencies:[Ye,gn],styles:[".ellipsis-container[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto;font-size:.8em;max-width:260px}@media (min-width: 380px){.ellipsis-container[_ngcontent-%COMP%]{max-width:320px}}@media (min-width: 425px){.ellipsis-container[_ngcontent-%COMP%]{max-width:360px}}@media (min-width: 576px){.ellipsis-container[_ngcontent-%COMP%]{max-width:480px}}@media (min-width: 768px){.ellipsis-container[_ngcontent-%COMP%]{max-width:none;font-size:1em}}.btn[_ngcontent-%COMP%]{white-space:nowrap}@media (max-width: 767px){.btn[_ngcontent-%COMP%]{font-size:.8em;padding-bottom:0}}"],changeDetection:0})}}return n})();const Xm=n=>({deprecated:n});function z5(n,e){if(1&n&&(R(0,"option",11),ne(1),x()),2&n){const t=e.$implicit,r=V();k("value",t)("selected",r.action===t)("ngClass",Mn(4,Xm,r.sdk_deprecated.includes(t))),O(),yt(" ",t," ")}}function $5(n,e){if(1&n&&(R(0,"option",12),ne(1),x()),2&n){const t=e.$implicit,r=V();k("value",t)("selected",r.action===t),O(),yt(" ",t," ")}}function q5(n,e){if(1&n&&(R(0,"option",12),ne(1),x()),2&n){const t=e.$implicit,r=V();k("value",t)("selected",r.action===t),O(),yt(" ",t," ")}}function G5(n,e){if(1&n&&(R(0,"option",11),ne(1),x()),2&n){const t=e.$implicit,r=V();k("value",t)("selected",r.action===t)("ngClass",Mn(4,Xm,r.sdk_deprecated.includes(t))),O(),yt(" ",t," ")}}function W5(n,e){if(1&n&&(R(0,"option",11),ne(1),x()),2&n){const t=e.$implicit,r=V();k("value",t)("selected",r.action===t)("ngClass",Mn(4,Xm,r.sdk_deprecated.includes(t))),O(),yt(" ",t," ")}}let pA=(()=>{class n{constructor(t,r,i){this.sdk=t,this.stateService=r,this.changeDetectorRef=i,this.select_action=new ke}ngAfterViewInit(){var t=this;return S(function*(){t.sdk_methods=Object.getOwnPropertyNames(Object.getPrototypeOf(t.sdk)).filter(r=>"function"==typeof t.sdk[r]).filter(r=>!["free","constructor","__destroy_into_raw","getRPCAddress","setRPCAddress","getVerbosity","setVerbosity","watchDeploy","waitDeploy"].includes(r)).filter(r=>!r.endsWith("_options")).filter(r=>!r.startsWith("chain_")).filter(r=>!r.startsWith("state_")).filter(r=>!r.startsWith("info_")).filter(r=>!r.startsWith("account_")).filter(r=>!r.startsWith("wait")).filter(r=>!r.startsWith("watch")).sort(),t.sdk_deploy_methods=t.sdk_methods.filter(r=>["deploy","speculative_deploy","speculative_transfer","transfer"].includes(r)),t.sdk_deploy_utils_methods=t.sdk_methods.filter(r=>["make_deploy","make_transfer","sign_deploy","put_deploy","call_entrypoint_deploy","install_deploy"].includes(r)),t.sdk_transaction_methods=t.sdk_methods.filter(r=>["transaction","speculative_transaction","speculative_transfer_transaction","transfer_transaction"].includes(r)),t.sdk_transaction_utils_methods=t.sdk_methods.filter(r=>["make_transaction","make_transfer_transaction","sign_transaction","put_transaction","call_entrypoint","install","query_contract_dict","query_contract_key"].includes(r)),t.sdk_deprecated=t.sdk_methods.filter(r=>["get_account","get_deploy","get_era_info","put_deploy","speculative_exec_deploy","sign_deploy","make_deploy","make_transfer","speculative_deploy","speculative_transfer","deploy","transfer","call_entrypoint_deploy","install_deploy","get_balance"].includes(r)),t.sdk_rpc_methods=t.sdk_methods.filter(r=>!t.sdk_deploy_methods.concat(t.sdk_deploy_utils_methods,t.sdk_transaction_utils_methods,t.sdk_transaction_methods,t.sdk_contract_methods).includes(r)),t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}selectAction(t){this.select_action.emit(t.target.value)}static{this.\u0275fac=function(r){return new(r||n)(I(Qa),I(xn),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-action"]],outputs:{select_action:"select_action"},standalone:!0,features:[wt],decls:16,vars:5,consts:[["selectActionElt",""],[1,"input-group"],["for","selectActionElt",1,"input-group-text"],["id","selectActionElt","e2e-id","selectActionElt",1,"form-select","form-control","form-control-sm",3,"change"],["label","rpc"],[3,"value","selected","ngClass",4,"ngFor","ngForOf"],["label","transaction"],[3,"value","selected",4,"ngFor","ngForOf"],["label","utils"],["label","deploy",1,"deprecated"],["label","deploy utils",1,"deprecated"],[3,"value","selected","ngClass"],[3,"value","selected"]],template:function(r,i){if(1&r){const o=xe();R(0,"div",1)(1,"label",2),ne(2,"Action"),x(),R(3,"select",3,0),ee("change",function(c){return _e(o),fe(i.selectAction(c))}),mt(5,"option"),R(6,"optgroup",4),ie(7,z5,2,6,"option",5),x(),R(8,"optgroup",6),ie(9,$5,2,3,"option",7),x(),R(10,"optgroup",8),ie(11,q5,2,3,"option",7),x(),R(12,"optgroup",9),ie(13,G5,2,6,"option",5),x(),R(14,"optgroup",10),ie(15,W5,2,6,"option",5),x()()()}2&r&&(O(7),k("ngForOf",i.sdk_rpc_methods),O(2),k("ngForOf",i.sdk_transaction_methods),O(2),k("ngForOf",i.sdk_transaction_utils_methods),O(2),k("ngForOf",i.sdk_deploy_methods),O(2),k("ngForOf",i.sdk_deploy_utils_methods))},dependencies:[Ye,gr,Ma],styles:["[_nghost-%COMP%] .deprecated[_ngcontent-%COMP%]{font-style:italic;color:#d3d3d3}"],changeDetection:0})}}return n})();const J5=["*"],K5=n=>[n];let hA=(()=>{class n{constructor(t,r){this.stateService=t,this.changeDetectorRef=r,this.submit_action=new ke}ngAfterViewInit(){var t=this;return S(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action),this.changeDetectorRef.markForCheck()})}submitAction(t){this.submit_action.emit(t)}static{this.\u0275fac=function(r){return new(r||n)(I(xn),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-submit-action"]],inputs:{class:"class",e2e:"e2e"},outputs:{submit_action:"submit_action"},standalone:!0,features:[wt],ngContentSelectors:J5,decls:2,vars:4,consts:[["type","button",1,"btn",3,"click","ngClass"]],template:function(r,i){1&r&&(function UD(n){const e=T()[Re][ct];if(!e.projection){const r=e.projection=function jc(n,e){const t=[];for(let r=0;r{class n{constructor(t,r,i,o,s,c){this.config=t,this.sdk=r,this.resultService=i,this.formService=o,this.errorService=s,this.stateService=c,this.verbosity=Qu.High,this.setStateSubscription()}setStateSubscription(){this.stateService.getState().subscribe(t=>{t.chain_name&&(this.chain_name=t.chain_name),t.public_key&&(this.public_key=t.public_key),t.secret_key&&(this.secret_key=t.secret_key),t.deploy_json&&(this.deploy_json=t.deploy_json),t.verbosity&&(this.verbosity=t.verbosity),t.select_dict_identifier&&(this.select_dict_identifier=t.select_dict_identifier)})}get_account(t){var r=this;return S(function*(){let i;if(i=t||r.getIdentifier("accountIdentifier")?.value?.trim(),!i){const s="account_identifier is missing";return void(s&&r.errorService.setError(s.toString()))}const o=r.sdk.get_account_options({account_identifier_as_string:i});if(o){r.getIdentifieBlock(o);try{const s=yield r.sdk.get_account(o);return t||r.resultService.setResult(s.toJson()),s}catch(s){return r.errorService.setError(s.toString()),s}}else{const s="get_account_options is missing";s&&r.errorService.setError(s.toString())}})()}get_deploy(){var t=this;return S(function*(){const r=t.getIdentifier("finalizedApprovals")?.value,i=t.getIdentifier("deployHash")?.value?.trim();if(!i){const s="deploy_hash is missing";return void(s&&t.errorService.setError(s.toString()))}const o=t.sdk.get_deploy_options({deploy_hash_as_string:i});o.finalized_approvals=r;try{const s=yield t.sdk.get_deploy(o);s&&t.resultService.setResult(s.toJson())}catch(s){s&&t.errorService.setError(s.toString())}})()}get_transaction(){var t=this;return S(function*(){const r=t.getIdentifier("finalizedApprovals")?.value,i=t.getIdentifier("transactionHash")?.value?.trim();if(!i){const s="transaction_hash is missing";return void(s&&t.errorService.setError(s.toString()))}const o=t.sdk.get_transaction_options({transaction_hash_as_string:i});o.finalized_approvals=r;try{const s=yield t.sdk.get_transaction(o);s&&t.resultService.setResult(s.toJson())}catch(s){s&&t.errorService.setError(s.toString())}})()}get_entity(t){var r=this;return S(function*(){let i;if(i=t||r.getIdentifier("entityIdentifier")?.value?.trim(),!i){const s="entity_identifier is missing";return void(s&&r.errorService.setError(s.toString()))}const o=r.sdk.get_entity_options({entity_identifier_as_string:i});if(o){r.getIdentifieBlock(o);try{const s=yield r.sdk.get_entity(o);return t||r.resultService.setResult(s.toJson()),s}catch(s){return r.errorService.setError(s.toString()),s}}else{const s="get_entity_options is missing";s&&r.errorService.setError(s.toString())}})()}get_peers(){var t=this;return S(function*(){let r;try{const i=yield t.sdk.get_peers();i&&t.resultService.setResult(i.toJson()),i&&(r=i.peers)}catch(i){i&&t.errorService.setError(i.toString())}return r})()}get_node_status(){var t=this;return S(function*(){const r=yield t.sdk.get_node_status();return r&&t.resultService.setResult(r.toJson()),r})()}get_state_root_hash(t){var r=this;return S(function*(){let i="";const o=r.sdk.get_state_root_hash_options({});if(!o){const s="get_state_root_hash options are missing";s&&r.errorService.setError(s.toString())}if(t)i=(yield r.sdk.get_state_root_hash(o)).toString();else{r.getIdentifieBlock(o);const s=yield r.sdk.get_state_root_hash(o);s&&r.resultService.setResult(s.toJson())}return i})()}get_auction_info(){var t=this;return S(function*(){try{const r=t.sdk.get_auction_info_options({});t.getIdentifieBlock(r);const i=yield t.sdk.get_auction_info(r);i&&t.resultService.setResult(i.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_balance(){var t=this;return S(function*(){const r=t.getIdentifier("purseUref")?.value?.trim(),i=t.getIdentifier("stateRootHash")?.value?.trim();if(r)try{const o=t.sdk.get_balance_options({state_root_hash_as_string:i||"",purse_uref_as_string:r}),s=yield t.sdk.get_balance(o);s&&t.resultService.setResult(s.toJson())}catch(o){o&&t.errorService.setError(o.toString())}else{const o="purse_uref is missing";o&&t.errorService.setError(o.toString())}})()}get_block(){var t=this;return S(function*(){try{const r=t.sdk.get_block_options({});t.getIdentifieBlock(r);const i=yield t.sdk.get_block(r);i&&t.resultService.setResult(i.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_block_transfers(){var t=this;return S(function*(){try{const r=t.sdk.get_block_transfers_options({});t.getIdentifieBlock(r);const i=yield t.sdk.get_block_transfers(r);i&&t.resultService.setResult(i.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}get_chainspec(){var t=this;return S(function*(){try{const r=yield t.sdk.get_chainspec(),i=function M$(n){let e,t;try{const r=g(n,a.__wbindgen_malloc,a.__wbindgen_realloc),o=a.hexToString(r,h);return e=o[0],t=o[1],v(o[0],o[1])}finally{a.__wbindgen_free(e,t,1)}}(r?.chainspec_bytes.chainspec_bytes);i&&t.resultService.setResult(i)}catch(r){r&&t.errorService.setError(r.toString())}})()}get_era_info(){var t=this;return S(function*(){const r=t.sdk.get_era_info_options({});t.getIdentifieBlock(r);try{const i=yield t.sdk.get_era_info(r);i&&t.resultService.setResult(i.toJson())}catch(i){i&&t.errorService.setError(i.toString())}})()}get_era_summary(){var t=this;return S(function*(){const r=t.sdk.get_era_summary_options({});t.getIdentifieBlock(r);try{const i=yield t.sdk.get_era_summary(r);i&&t.resultService.setResult(i.toJson())}catch(i){i&&t.errorService.setError(i.toString())}})()}get_validator_changes(){var t=this;return S(function*(){try{const r=yield t.sdk.get_validator_changes();r&&t.resultService.setResult(r.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}list_rpcs(){var t=this;return S(function*(){try{const r=yield t.sdk.list_rpcs();r&&t.resultService.setResult(r.toJson())}catch(r){r&&t.errorService.setError(r.toString())}})()}query_balance(){var t=this;return S(function*(){const r=t.getIdentifier("purseIdentifier")?.value?.trim();if(!r){const o="deploy_hash is missing";return void(o&&t.errorService.setError(o.toString()))}const i=t.sdk.query_balance_options({purse_identifier_as_string:r});t.getGlobalIdentifier(i);try{const o=yield t.sdk.query_balance(i);o&&t.resultService.setResult(o.balance)}catch(o){o&&t.errorService.setError(o.toString())}})()}query_balance_details(){var t=this;return S(function*(){const r=t.getIdentifier("purseIdentifier")?.value?.trim();if(!r){const o="deploy_hash is missing";return void(o&&t.errorService.setError(o.toString()))}const i=t.sdk.query_balance_details_options({purse_identifier_as_string:r});t.getGlobalIdentifier(i);try{const o=yield t.sdk.query_balance_details(i);o&&t.resultService.setResult(o.toJson())}catch(o){o&&t.errorService.setError(o.toString())}})()}query_global_state(){var t=this;return S(function*(){const r=t.getIdentifier("queryPath")?.value?.trim()||"",i=t.getIdentifier("queryKey")?.value?.trim();if(!i){const s="key is missing";return void(s&&t.errorService.setError(s.toString()))}const o=t.sdk.query_global_state_options({key_as_string:i,path_as_string:r});t.getGlobalIdentifier(o);try{const s=yield t.sdk.query_global_state(o);s&&t.resultService.setResult(s.toJson())}catch(s){s&&t.errorService.setError(s.toString())}})()}deploy(t=!0,r,i){var o=this;return S(function*(){const s=Yu(),c=o.getIdentifier("TTL")?.value?.trim()||"";if(!t&&!o.public_key)return void o.errorService.setError("public_key is missing".toString());if(t&&!o.secret_key)return void o.errorService.setError("secret_key is missing".toString());const l=new Kt(o.chain_name,o.public_key,o.secret_key,s,c),u=new er,d=o.getIdentifier("paymentAmount")?.value?.trim();if(!d){const f="paymentAmount is missing";return void(f&&o.errorService.setError(f.toString()))}u.payment_amount=d;const _=o.get_session_params(i);try{let f;if(f=r?yield o.sdk.speculative_deploy(l,_,u):t?yield o.sdk.deploy(l,_,u):o.sdk.make_deploy(l,_,u),f){const p=f.toJson();o.deploy_json=kn(p,o.verbosity),o.deploy_json&&o.resultService.setResult(p),!t&&o.updateDeployJson(o.deploy_json)}return f}catch(f){return void(f&&o.errorService.setError(f))}})()}transaction(t=!0,r,i){var o=this;return S(function*(){const s=Yu(),c=o.getIdentifier("TTL")?.value?.trim()||"",l=o.getIdentifier("gasPriceTolerance")?.value?.trim()||"",u=o.getIdentifier("selectPricingMode")?.value?.trim()||"",d=o.getIdentifier("additionalComputationFactor")?.value?.trim()||"";if(!t&&!o.public_key){const y="public_key is missing";return void(y&&o.errorService.setError(y.toString()))}if(t&&!o.secret_key){const y="secret_key is missing";return void(y&&o.errorService.setError(y.toString()))}const _=o.get_builder_params(i);let f=new dt(o.chain_name,o.public_key,o.secret_key,s,c);l&&(f.gas_price_tolerance=l),u&&(f.pricing_mode=u),u==mr.Fixed&&(f.additional_computation_factor=d);const p=o.getIdentifier("paymentAmount")?.value?.trim();if(p){f.payment_amount=p,f=o.addTransactionArgs(f);try{let y;if(y=r?yield o.sdk.speculative_transaction(_,f):t?yield o.sdk.transaction(_,f):o.sdk.make_transaction(_,f),y){const w=y.toJson();o.transaction_json=kn(w,o.verbosity),o.transaction_json&&o.resultService.setResult(w),!t&&o.updateTransactionJson(o.transaction_json)}return y}catch(y){return void(y&&o.errorService.setError(y))}}else{const y="paymentAmount is missing";y&&o.errorService.setError(y.toString())}})()}install_deploy(t){var r=this;return S(function*(){const i=r.getIdentifier("paymentAmount")?.value?.trim();if(!i){const l="paymentAmount is missing";return void(l&&r.errorService.setError(l.toString()))}if(!r.secret_key){const l="secret_key is missing";return void(l&&r.errorService.setError(l.toString()))}if(!t?.buffer){const l="wasmBuffer is missing";l&&r.errorService.setError(l.toString())}const s=new Kt(r.chain_name,r.public_key,r.secret_key),c=r.get_session_params(t);try{const l=yield r.sdk.install_deploy(s,c,i);l&&r.resultService.setResult(l.toJson())}catch(l){l&&r.errorService.setError(l.toString())}})()}install(t){var r=this;return S(function*(){const i=r.getIdentifier("paymentAmount")?.value?.trim();if(!i){const c="paymentAmount is missing";return void(c&&r.errorService.setError(c.toString()))}if(!r.secret_key){const c="secret_key is missing";return void(c&&r.errorService.setError(c.toString()))}if(!t?.buffer){const c="wasmBuffer is missing";c&&r.errorService.setError(c.toString())}let s=new dt(r.chain_name,r.public_key,r.secret_key);s.payment_amount=i,s=r.addTransactionArgs(s);try{const c=t&&(yield r.sdk.install(s,bt.fromUint8Array(t)));c&&r.resultService.setResult(c.toJson())}catch(c){c&&r.errorService.setError(c.toString())}})()}transfer(t=!0,r){var i=this;return S(function*(){const o=Yu(),s=i.getIdentifier("TTL")?.value?.trim()||"";if(!t&&!i.public_key)return void i.errorService.setError("public_key is missing".toString());if(t&&!i.secret_key)return void i.errorService.setError("secret_key is missing".toString());const c=new Kt(i.chain_name,i.public_key,i.secret_key,o,s),l=new er;l.payment_amount=i.config.standard_payment_amount.toString();const u=i.getIdentifier("transferAmount")?.value?.trim(),d=i.getIdentifier("targetAccount")?.value?.trim();if(u&&d)try{let _;if(_=r?yield i.sdk.speculative_transfer(u,d,void 0,c,l):t?yield i.sdk.transfer(u,d,void 0,c,l):yield i.sdk.make_transfer(u,d,void 0,c,l),_){const f=_.toJson();i.deploy_json=kn(f,i.verbosity),i.deploy_json&&i.resultService.setResult(f),!t&&i.updateDeployJson(i.deploy_json)}return _}catch(_){return void(_&&i.errorService.setError(_))}else{const _="transfer_amount or target_account is missing";_&&i.errorService.setError(_.toString())}})()}transfer_transaction(t=!0,r){var i=this;return S(function*(){const o=Yu(),s=i.getIdentifier("TTL")?.value?.trim()||"";if(!t&&!i.public_key)return void i.errorService.setError("public_key is missing".toString());if(t&&!i.secret_key)return void i.errorService.setError("secret_key is missing".toString());const c=new dt(i.chain_name,i.public_key,i.secret_key,o,s),l=i.getIdentifier("transferAmount")?.value?.trim(),u=i.getIdentifier("targetAccount")?.value?.trim();if(!l||!u){const _="transfer_amount or target_account is missing";return void(_&&i.errorService.setError(_.toString()))}const d=i.config.standard_payment_amount.toString();c.payment_amount=d;try{let _;if(_=r?yield i.sdk.speculative_transfer_transaction(void 0,u,l,c,void 0):t?yield i.sdk.transfer_transaction(void 0,u,l,c):yield i.sdk.make_transfer_transaction(void 0,u,l,c),_){const f=_.toJson();i.transaction_json=kn(f,i.verbosity),i.transaction_json&&i.resultService.setResult(f),!t&&i.updateTransactionJson(i.transaction_json)}return _}catch(_){return void(_&&i.errorService.setError(_))}})()}put_deploy(){var t=this;return S(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const s="deployJson is missing";return void(s&&t.errorService.setError(s.toString()))}const i=new ae(JSON.parse(r)),o=yield t.sdk.put_deploy(i);return o&&t.resultService.setResult(o.toJson()),o})()}put_transaction(){var t=this;return S(function*(){const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r){const s="deployJson is missing";return void(s&&t.errorService.setError(s.toString()))}const i=new de(JSON.parse(r)),o=yield t.sdk.put_transaction(i);return o&&t.resultService.setResult(o.toJson()),o})()}speculative_exec_deploy(){var t=this;return S(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const c="signed_deploy is missing";return void(c&&t.errorService.setError(c.toString()))}const i=new ae(JSON.parse(r)),o=t.sdk.get_speculative_exec_deploy_options({deploy:i.toJson()}),s=yield t.sdk.speculative_exec_deploy(o);return s&&t.resultService.setResult(s.toJson()),s})()}speculative_exec(){var t=this;return S(function*(){const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r){const c="signed_transaction is missing";return void(c&&t.errorService.setError(c.toString()))}const i=new de(JSON.parse(r)),o=t.sdk.get_speculative_exec_options({transaction:i.toJson()}),s=yield t.sdk.speculative_exec(o);return s&&t.resultService.setResult(s.toJson()),s})()}sign_deploy(){var t=this;return S(function*(){if(!t.secret_key){const o="secret_key is missing";return void(o&&t.errorService.setError(o.toString()))}const r=t.getIdentifier("deployJson")?.value?.trim();if(!r){const o="signed_deploy is missing";return void(o&&t.errorService.setError(o.toString()))}let i;try{i=new ae(JSON.parse(r))}catch{const o="Error parsing deploy";return void(o&&t.errorService.setError(o.toString()))}if(i)i=i.sign(t.secret_key),t.deploy_json=kn(i.toJson(),t.verbosity),t.getIdentifier("deployJson")?.setValue(t.deploy_json),t.updateDeployJson(t.deploy_json);else{const o="signed_deploy is missing";o&&t.errorService.setError(o.toString())}})()}sign_transaction(){var t=this;return S(function*(){if(!t.secret_key){const o="secret_key is missing";return void(o&&t.errorService.setError(o.toString()))}const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r){const o="signed_transaction is missing";return void(o&&t.errorService.setError(o.toString()))}let i;try{i=new de(JSON.parse(r))}catch{const o="Error parsing transaction";return void(o&&t.errorService.setError(o.toString()))}if(i)i=i.sign(t.secret_key),t.transaction_json=kn(i.toJson(),t.verbosity),t.getIdentifier("transactionJson")?.setValue(t.transaction_json),t.updateTransactionJson(t.transaction_json);else{const o="signed_transaction is missing";o&&t.errorService.setError(o.toString())}})()}wallet_sign_deploy(){var t=this;return S(function*(){const r=t.getIdentifier("deployJson")?.value?.trim();if(!r)return void t.errorService.setError("deploy_to_sign is missing".toString());let i;try{i=new ae(JSON.parse(r))}catch(o){return void(o&&t.errorService.setError(o))}try{i=yield(new DI).signDeploy(i,t.public_key)}catch(o){return void(o&&t.errorService.setError(o))}t.deploy_json=kn(i.toJson(),t.verbosity),t.getIdentifier("deployJson")?.setValue(t.deploy_json),t.updateDeployJson(t.deploy_json)})()}wallet_sign_transaction(){var t=this;return S(function*(){const r=t.getIdentifier("transactionJson")?.value?.trim();if(!r)return void t.errorService.setError("transaction_to_sign is missing".toString());let i;try{i=new de(JSON.parse(r))}catch(o){return void(o&&t.errorService.setError(o))}try{i=yield(new DI).signTransaction(i,t.public_key)}catch(o){return void(o&&t.errorService.setError(o))}t.transaction_json=kn(i.toJson(),t.verbosity),t.getIdentifier("transactionJson")?.setValue(t.transaction_json),t.updateTransactionJson(t.transaction_json)})()}updateDeployJson(t){t&&this.stateService.setState({deploy_json:t})}updateTransactionJson(t){t&&this.stateService.setState({transaction_json:t})}make_deploy(t){var r=this;return S(function*(){yield r.deploy(!1,!1,t)})()}make_transaction(t){var r=this;return S(function*(){yield r.transaction(!1,!1,t)})()}make_transfer(){var t=this;return S(function*(){yield t.transfer(!1)})()}make_transfer_transaction(){var t=this;return S(function*(){yield t.transfer_transaction(!1)})()}speculative_transfer(){var t=this;return S(function*(){yield t.transfer(!1,!0)})()}speculative_transfer_transaction(){var t=this;return S(function*(){yield t.transfer(!1,!0)})()}speculative_deploy(t){var r=this;return S(function*(){yield r.deploy(!1,!0,t)})()}speculative_transaction(t){var r=this;return S(function*(){yield r.transaction(!1,!0,t)})()}call_entrypoint_deploy(){var t=this;return S(function*(){if(!t.secret_key){const s="secret_key is missing";return void(s&&t.errorService.setError(s.toString()))}const r=new Kt(t.chain_name,t.public_key,t.secret_key),i=t.get_session_params(),o=t.getIdentifier("paymentAmount")?.value?.trim();if(o)try{const s=yield t.sdk.call_entrypoint_deploy(r,i,o);s&&t.resultService.setResult(s.toJson())}catch(s){s&&t.errorService.setError(s.toString())}else{const s="paymentAmount is missing";s&&t.errorService.setError(s.toString())}})()}call_entrypoint(){var t=this;return S(function*(){if(!t.secret_key){const s="secret_key is missing";return void(s&&t.errorService.setError(s.toString()))}let r=new dt(t.chain_name,t.public_key,t.secret_key);const i=t.getIdentifier("paymentAmount")?.value?.trim();if(!i){const s="paymentAmount is missing";return void(s&&t.errorService.setError(s.toString()))}r.payment_amount=i,r=t.addTransactionArgs(r);const o=t.get_builder_params();try{const s=yield t.sdk.call_entrypoint(o,r);s&&t.resultService.setResult(s.toJson())}catch(s){s&&t.errorService.setError(s.toString())}})()}query_contract_dict(){var t=this;return S(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),i=t.getIdentifier("itemKey")?.value?.trim();if(!i){const u="itemKey is missing";return void(u&&t.errorService.setError(u.toString()))}const o=t.getIdentifier("seedEntityHash")?.value?.trim()||"",s=t.getIdentifier("seedName")?.value?.trim();if(!s){const u="seedName is missing";return void(u&&t.errorService.setError(u.toString()))}let c;if(o&&(c=new Vi,c.setEntityNamedKey(o,s,i)),!c){const u="dictionary_item_params is missing";return void(u&&t.errorService.setError(u.toString()))}const l=t.sdk.query_contract_dict_options({state_root_hash_as_string:r||""});l.dictionary_item_params=c;try{const u=yield t.sdk.query_contract_dict(l);u&&t.resultService.setResult(u.toJson())}catch(u){u&&t.errorService.setError(u.toString())}})()}query_contract_key(){var t=this;return S(function*(){const r=t.getIdentifier("queryKey")?.value?.trim();if(!r){const s="key is missing";return void(s&&t.errorService.setError(s.toString()))}const i=t.getIdentifier("queryPath")?.value?.toString().trim().replace(/^\/+|\/+$/g,""),o=t.sdk.query_contract_key_options({entity_identifier_as_string:r,path_as_string:i});t.getIdentifieBlock(o);try{const s=yield t.sdk.query_contract_key(o);s&&t.resultService.setResult(s.toJson())}catch(s){s&&t.errorService.setError(s.toString())}})()}get_dictionary_item(){var t=this;return S(function*(){const r=t.getIdentifier("stateRootHash")?.value?.trim(),i=t.getIdentifier("itemKey")?.value?.trim(),o=t.getIdentifier("seedKey")?.value?.trim();if(!i&&!o){const u="seedKey or itemKey is missing";return void(u&&t.errorService.setError(u.toString()))}const s=t.getIdentifier("seedUref")?.value?.trim();let c;if(s&&"newFromSeedUref"===t.select_dict_identifier)c=vt.newFromSeedUref(s,i);else if(o&&"newFromDictionaryKey"===t.select_dict_identifier)c=vt.newFromDictionaryKey(o);else{const u=t.getIdentifier("seedContractHash")?.value?.trim(),d=t.getIdentifier("seedEntityHash")?.value?.trim(),_=t.getIdentifier("seedAccountHash")?.value?.trim(),f=t.getIdentifier("seedName")?.value?.trim();if(!f){const p="seed_name is missing";return void(p&&t.errorService.setError(p.toString()))}u&&"newFromContractInfo"===t.select_dict_identifier&&(c=vt.newFromContractInfo(u,f,i)),d&&"newFromEntityInfo"===t.select_dict_identifier?c=vt.newFromEntityInfo(d,f,i):_&&"newFromAccountInfo"===t.select_dict_identifier&&(c=vt.newFromAccountInfo(_,f,i))}if(!c){const u="dictionary_item_identifier is missing";return void(u&&t.errorService.setError(u.toString()))}const l=t.sdk.get_dictionary_item_options({state_root_hash_as_string:r||""});l.dictionary_item_identifier=c;try{const u=yield t.sdk.state_get_dictionary_item(l);u&&t.resultService.setResult(u.toJson())}catch(u){u&&t.errorService.setError(u.toString())}})()}getIdentifier(t){return this.formService.form.get(t)}getIdentifieBlock(t){const r=this.getIdentifier("blockIdentifierHeight")?.value?.trim(),i=this.getIdentifier("blockIdentifierHash")?.value?.trim();if(i)t.maybe_block_id_as_string=i,t.maybe_block_identifier=void 0;else if(r){const o=Pe.fromHeight(BigInt(r));t.maybe_block_id_as_string=void 0,t.maybe_block_identifier=o}else t.maybe_block_id_as_string=void 0,t.maybe_block_identifier=void 0}getGlobalIdentifier(t){const r=this.getIdentifier("stateRootHash")?.value?.trim();let i;if(r)i=Lt.fromStateRootHash(new Le(r));else{const o=this.getIdentifier("blockIdentifierHeight")?.value?.trim(),s=this.getIdentifier("blockIdentifierHash")?.value?.trim();s?i=Lt.fromBlockHash(new yr(s)):o&&(i=Lt.fromBlockHeight(BigInt(o)))}i&&(t.global_state_identifier=i)}get_session_params(t){const r=new Bi,i=this.getIdentifier("entryPoint")?.value?.trim();i&&(r.session_entry_point=i);const o=this.getIdentifier("argsSimple")?.value?.trim().split(",").map(_=>_.trim()).filter(_=>""!==_),s=this.getIdentifier("argsJson")?.value?.trim();o?.length?r.session_args_simple=o:s&&(r.session_args_json=s);const c=this.getIdentifier("callPackage")?.value,l=this.getIdentifier("sessionHash")?.value?.trim(),u=this.getIdentifier("sessionName")?.value?.trim();c?l?r.session_package_hash=l:u&&(r.session_package_name=u):l?r.session_hash=l:u&&(r.session_name=u),t&&(r.session_bytes=bt.fromUint8Array(t));const d=this.getIdentifier("version")?.value?.trim();return d&&(r.session_version=d),r}get_builder_params(t){let r=new je;const i=this.getIdentifier("entityHash")?.value?.trim(),o=this.getIdentifier("entityAlias")?.value?.trim(),s=this.getIdentifier("entryPoint")?.value?.trim();if(this.getIdentifier("callPackage")?.value){const l=this.getIdentifier("version")?.value?.trim();if(o)r=je.newPackageAlias(o,s,l);else{let u=null;try{u=Xn.fromFormattedStr(i)}catch{try{u=new Xn(i)}catch{return this.errorService.setError("package_hash could not be parsed".toString()),r}}u&&(r=je.newPackage(u,s,l))}}else if(o)r=je.newInvocableEntityAlias(o,s);else if(i){let l=null,u=null;try{l=La.fromFormattedStr(i),u=new Yn(l.toHexString())}catch{try{u=new Yn(i)}catch{return this.errorService.setError("entity_hash could not be parsed".toString()),r}}u&&(r=je.newInvocableEntity(u,s))}if(t){const l="true"===this.getIdentifier("selectTransactionCategory")?.value?.trim();r=je.newSession(bt.fromUint8Array(t),l)}return r}addTransactionArgs(t){const r=this.getIdentifier("argsSimple")?.value?.trim().split(",").map(o=>o.trim()).filter(o=>""!==o),i=this.getIdentifier("argsJson")?.value?.trim();return r?.length?t.session_args_simple=r:i&&(t.session_args_json=i),t}static{this.\u0275fac=function(r){return new(r||n)(H(wr),H(Qa),H(Od),H(ss),H(pc),H(xn))}}static{this.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const Z5=["publicKeyElt"],Y5=n=>[n];let mA=(()=>{class n{constructor(t,r,i,o,s,c){this.config=t,this.stateService=r,this.clientService=i,this.storageService=o,this.changeDetectorRef=s,this.formService=c}ngAfterViewInit(){var t=this;return S(function*(){t.setStateSubscription(),t.public_key=t.storageService.get("public_key")||t.public_key,t.public_key&&(yield t.updateAccount(),t.stateService.setState({public_key:t.public_key}))})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){var t=this;this.stateSubscription=this.stateService.getState().subscribe(function(){var r=S(function*(i){i.action&&(t.action=i.action),i.public_key&&t.public_key!=i.public_key?(i.public_key&&(t.public_key=i.public_key),i.secret_key&&(t.secret_key=i.secret_key),yield t.updateAccount()):i.public_key&&i.public_key&&(t.public_key=i.public_key),t.changeDetectorRef.markForCheck()});return function(i){return r.apply(this,arguments)}}())}onPublicKeyChange(){var t=this;return S(function*(){const r=t.publicKeyElt&&t.publicKeyElt.nativeElement.value.toString().trim();t.public_key="",t.stateService.setState({public_key:r,secret_key:""}),t.storageService.setState({public_key:r})})()}isInvalid(){return!(this.config.action_needs_public_key&&!this.config.action_needs_public_key?.includes(this.action)||this.publicKeyElt?.nativeElement.value?.trim())}updateAccount(){var t=this;return S(function*(){const r=yield t.clientService.get_entity(t.public_key);if(!r.entity_result)return;const i=r?.entity_result?.AddressableEntity?.entity.entity_kind.Account,o=r?.entity_result?.AddressableEntity?.entity.main_purse;t.stateService.setState({account_hash:i,main_purse:o}),t.storageService.setState({account_hash:i,main_purse:o}),i&&t.formService.updateForm()})()}static{this.\u0275fac=function(r){return new(r||n)(I(wr),I(xn),I(gA),I(fc),I(on),I(ss))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-public-key"]],viewQuery:function(r,i){if(1&r&&kt(Z5,5),2&r){let o;Ft(o=Rt())&&(i.publicKeyElt=o.first)}},standalone:!0,features:[wt],decls:7,vars:4,consts:[["publicKeyElt",""],["for","publicKeyElt",1,"input-group-text"],[1,"d-none","d-md-inline","d-lg-none"],[1,"d-md-none","d-lg-inline"],["type","search","name","public_key","placeholder","e.g. 0x","id","publicKeyElt","e2e-id","publicKeyElt",1,"form-control","form-control-xs",3,"input","value","ngClass"]],template:function(r,i){if(1&r){const o=xe();R(0,"label",1)(1,"span",2),ne(2,"Pub. Key"),x(),R(3,"span",3),ne(4,"Public Key"),x()(),R(5,"input",4,0),ee("input",function(){return _e(o),fe(i.onPublicKeyChange())}),x()}2&r&&(O(5),k("value",i.public_key||"")("ngClass",Mn(2,Y5,i.isInvalid()?"is-invalid":"")))},dependencies:[Ye,gr],changeDetection:0})}}return n})();const Q5=["secretKeyElt"],X5=n=>[n];function eq(n,e){if(1&n){const t=xe();R(0,"button",4),ee("click",function(){return _e(t),fe(V().onSecretKeyClick())}),ne(1," Load Secret Key\n"),x()}if(2&n){const t=V();k("ngClass",Mn(1,X5,t.isInvalid()?"btn-warning":"btn-secondary"))}}function tq(n,e){if(1&n){const t=xe();R(0,"button",5),ee("click",function(){return _e(t),fe(V().onSecretKeyClick())}),ne(1," Secret Key Loaded\n"),x()}}let yA=(()=>{class n{constructor(t,r,i,o,s){this.config=t,this.stateService=r,this.errorService=i,this.storageService=o,this.changeDetectorRef=s}ngAfterViewInit(){var t=this;return S(function*(){t.setStateSubscription()})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){var t=this;this.stateSubscription=this.stateService.getState().subscribe(function(){var r=S(function*(i){i.action&&(t.action=i.action),t.changeDetectorRef.markForCheck()});return function(i){return r.apply(this,arguments)}}())}onSecretKeyClick(){this.secretKeyElt.nativeElement.click()}onPemSelected(t){var r=this;return S(function*(){const i=t.target.files?.item(0);let o="";if(i){let s=yield i.text();if(!s.trim())return;s=s.trim(),r.errorService.setError("");try{o=function N$(n){const e=g(n,a.__wbindgen_malloc,a.__wbindgen_realloc),r=a.publicKeyFromSecretKey(e,h);if(r[2])throw F(r[1]);return F(r[0])}(s)}catch(c){r.errorService.setError(c)}o&&(r.secret_key=s)}else r.secret_key="";r.stateService.setState({public_key:o,secret_key:r.secret_key}),r.storageService.setState({public_key:o}),r.secretKeyElt.nativeElement.value="",r.changeDetectorRef.markForCheck()})()}isInvalid(){return!(this.config.action_needs_secret_key&&!this.config.action_needs_secret_key?.includes(this.action)||this.secret_key)}static{this.\u0275fac=function(r){return new(r||n)(I(wr),I(xn),I(pc),I(fc),I(on))}}static{this.\u0275cmp=_t({type:n,selectors:[["comp-secret-key"]],viewQuery:function(r,i){if(1&r&&kt(Q5,5),2&r){let o;Ft(o=Rt())&&(i.secretKeyElt=o.first)}},standalone:!0,features:[wt],decls:4,vars:2,consts:[["secretKeyElt",""],["name","secret_key","type","file","id","secretKeyElt","accept",".pem","e2e-id","secretKeyElt",1,"visually-hidden",3,"change"],["class","btn",3,"ngClass","click",4,"ngIf"],["class","btn btn-light",3,"click",4,"ngIf"],[1,"btn",3,"click","ngClass"],[1,"btn","btn-light",3,"click"]],template:function(r,i){if(1&r){const o=xe();R(0,"input",1,0),ee("change",function(c){return _e(o),fe(i.onPemSelected(c))}),x(),ie(2,eq,2,3,"button",2)(3,tq,2,0,"button",3)}2&r&&(O(2),k("ngIf",!i.secret_key),O(),k("ngIf",i.secret_key))},dependencies:[Ye,gr,gn],changeDetection:0})}}return n})();const nq=["selectDictIdentifierElt"],ey=()=>["sign_deploy","sign_transaction"];function rq(n,e){if(1&n){const t=xe();R(0,"comp-submit-action",12),ee("submit_action",function(i){return _e(t),fe(V().submitAction(i))}),ne(1,"Go"),x()}2&n&&(nu("btn-success ms-1 ms-sm-2 ms-xl-3"),k("e2e","submit"))}function iq(n,e){if(1&n){const t=xe();R(0,"comp-submit-action",12),ee("submit_action",function(i){return _e(t),fe(V().submitAction(i))}),ne(1,"Sign "),x()}2&n&&(nu("btn-warning mt-3"),k("e2e","sign"))}function oq(n,e){if(1&n){const t=xe();R(0,"button",13),ee("click",function(i){_e(t);const o=V();return fe(o.walletSign(i,o.action))}),ne(1," Casper Wallet Sign "),x()}2&n&&(nu("btn-warning mt-3 ms-3"),At("e2e","wallet_sign"))}let sq=(()=>{class n{constructor(t,r,i,o,s,c,l,u,d){this.sdk=t,this.config=r,this.env=i,this.clientService=o,this.resultService=s,this.stateService=c,this.formService=l,this.errorService=u,this.storageService=d,this.form=this.formService.form}ngOnInit(){var t=this;return S(function*(){console.info(t.sdk)})()}ngOnDestroy(){this.stateSubscription&&this.stateSubscription.unsubscribe()}setStateSubscription(){this.stateSubscription=this.stateService.getState().subscribe(t=>{t.action&&(this.action=t.action)})}ngAfterViewInit(){var t=this;return S(function*(){const i=t.storageService.get("action")||t.config.default_action.toString();try{i==t.config.default_action.toString()&&(yield t.handleAction(i,!0)),yield t.get_state_root_hash(!0)}catch(o){console.error(o),t.errorService.setError(o)}t.stateService.setState({action:i}),t.setStateSubscription()})()}selectAction(t){var r=this;return S(function*(){yield r.cleanResult(),r.stateService.setState({action:t}),yield r.handleAction(t),r.storageService.setState({action:t})})()}submitAction(t){var r=this;return S(function*(){yield r.cleanResult(),(r.form.disabled||r.form.valid)&&(yield r.handleAction(t,!0))})()}walletSign(t,r){var i=this;return S(function*(){i.clientService.wallet_sign_deploy()})()}handleAction(t,r){var i=this;return S(function*(){const o=i[t];if(o&&"function"==typeof o){if(r)try{yield o.bind(i)()}catch(s){i.errorService.setError(s)}}else{const s=`Method ${t} is not defined on the component.`;console.error(s),i.errorService.setError(s)}})()}onWasmSelected(t){var r=this;return S(function*(){t&&(r.wasm=t)})()}cleanResult(){var t=this;return S(function*(){t.errorService.setError(""),yield t.resultService.setResult("")})()}call_entrypoint_deploy(){var t=this;return S(function*(){return yield t.clientService.call_entrypoint_deploy()})()}call_entrypoint(){var t=this;return S(function*(){return yield t.clientService.call_entrypoint()})()}deploy(t=!0,r){var i=this;return S(function*(){return yield i.clientService.deploy(t,r,i.wasm)})()}transaction(t=!0,r){var i=this;return S(function*(){return yield i.clientService.transaction(t,r,i.wasm)})()}get_account(t){var r=this;return S(function*(){return yield r.clientService.get_account(t)})()}get_auction_info(){var t=this;return S(function*(){return yield t.clientService.get_auction_info()})()}get_balance(){var t=this;return S(function*(){return yield t.clientService.get_balance()})()}get_block(){var t=this;return S(function*(){return yield t.clientService.get_block()})()}get_block_transfers(){var t=this;return S(function*(){return yield t.clientService.get_block_transfers()})()}get_chainspec(){var t=this;return S(function*(){return yield t.clientService.get_chainspec()})()}get_deploy(){var t=this;return S(function*(){return yield t.clientService.get_deploy()})()}get_transaction(){var t=this;return S(function*(){return yield t.clientService.get_transaction()})()}get_dictionary_item(){var t=this;return S(function*(){return yield t.clientService.get_dictionary_item()})()}get_entity(t){var r=this;return S(function*(){return yield r.clientService.get_entity(t)})()}get_era_info(){var t=this;return S(function*(){return yield t.clientService.get_era_info()})()}get_era_summary(){var t=this;return S(function*(){return yield t.clientService.get_era_summary()})()}get_node_status(){var t=this;return S(function*(){return yield t.clientService.get_node_status()})()}get_peers(){var t=this;return S(function*(){return t.peers=yield t.clientService.get_peers(),t.peers})()}get_state_root_hash(t){var r=this;return S(function*(){const i=yield r.clientService.get_state_root_hash(t);return r.stateService.setState({state_root_hash:i}),i})()}get_validator_changes(){var t=this;return S(function*(){return yield t.clientService.get_validator_changes()})()}install_deploy(){var t=this;return S(function*(){return yield t.clientService.install_deploy(t.wasm)})()}install(){var t=this;return S(function*(){return yield t.clientService.install(t.wasm)})()}list_rpcs(){var t=this;return S(function*(){return yield t.clientService.list_rpcs()})()}make_deploy(){var t=this;return S(function*(){return yield t.clientService.make_deploy(t.wasm)})()}make_transaction(){var t=this;return S(function*(){return yield t.clientService.make_transaction(t.wasm)})()}make_transfer(){var t=this;return S(function*(){return yield t.clientService.make_transfer()})()}make_transfer_transaction(){var t=this;return S(function*(){return yield t.clientService.make_transfer_transaction()})()}put_deploy(){var t=this;return S(function*(){return yield t.clientService.put_deploy()})()}put_transaction(){var t=this;return S(function*(){return yield t.clientService.put_transaction()})()}query_balance(){var t=this;return S(function*(){return yield t.clientService.query_balance()})()}query_balance_details(){var t=this;return S(function*(){return yield t.clientService.query_balance_details()})()}query_contract_dict(){var t=this;return S(function*(){return yield t.clientService.query_contract_dict()})()}query_contract_key(){var t=this;return S(function*(){return yield t.clientService.query_contract_key()})()}query_global_state(){var t=this;return S(function*(){return yield t.clientService.query_global_state()})()}sign_deploy(){var t=this;return S(function*(){return yield t.clientService.sign_deploy()})()}sign_transaction(){var t=this;return S(function*(){return yield t.clientService.sign_transaction()})()}speculative_deploy(){var t=this;return S(function*(){return yield t.clientService.speculative_deploy(t.wasm)})()}speculative_transaction(){var t=this;return S(function*(){return yield t.clientService.speculative_transaction(t.wasm)})()}speculative_exec_deploy(){var t=this;return S(function*(){return yield t.clientService.speculative_exec_deploy()})()}speculative_exec(){var t=this;return S(function*(){return yield t.clientService.speculative_exec()})()}speculative_transfer(){var t=this;return S(function*(){return yield t.clientService.speculative_transfer()})()}speculative_transfer_transaction(){var t=this;return S(function*(){return yield t.clientService.speculative_transfer_transaction()})()}transfer(t=!0,r){var i=this;return S(function*(){return yield i.clientService.transfer(t,r)})()}transfer_transaction(t=!0,r){var i=this;return S(function*(){return yield i.clientService.transfer_transaction(t,r)})()}static{this.\u0275fac=function(r){return new(r||n)(I(Qa),I(wr),I(vm),I(gA),I(Od),I(xn),I(ss),I(pc),I(fc))}}static{this.\u0275cmp=_t({type:n,selectors:[["app-root"]],viewQuery:function(r,i){if(1&r&&kt(nq,5),2&r){let o;Ft(o=Rt())&&(i.selectDictIdentifierElt=o.first)}},standalone:!0,features:[wt],decls:16,vars:8,consts:[[1,"container"],[3,"peers"],[3,"get_state_root_hash_output"],[1,"row","flex-column-reverse","flex-column-reverse","flex-md-row"],[1,"col-12","col-md-6","col-lg-5","my-1","my-md-0","d-flex","justify-content-between"],[1,"w-100",3,"select_action"],[3,"class","e2e","submit_action",4,"ngIf"],[1,"col-12","col-md-6","col-lg-7","my-1","my-md-0","d-flex","justify-content-end","ps-md-0"],[1,"input-group"],[1,"d-flex","justify-content-end","ms-1","ms-sm-2","ms-xl-3"],[3,"wasm_selected","form"],["type","button","class","btn",3,"class","click",4,"ngIf"],[3,"submit_action","e2e"],["type","button",1,"btn",3,"click"]],template:function(r,i){1&r&&(R(0,"main",0),mt(1,"comp-header",1),R(2,"comp-status",2),ee("get_state_root_hash_output",function(s){return i.get_state_root_hash(s)}),x(),R(3,"div",3)(4,"div",4)(5,"comp-action",5),ee("select_action",function(s){return i.selectAction(s)}),x(),ie(6,rq,2,3,"comp-submit-action",6),x(),R(7,"div",7),mt(8,"comp-public-key",8),R(9,"div",9),mt(10,"comp-secret-key"),x()()(),mt(11,"comp-error"),R(12,"comp-form",10),ee("wasm_selected",function(s){return i.onWasmSelected(s)}),x(),ie(13,iq,2,3,"comp-submit-action",6)(14,oq,2,3,"button",11),mt(15,"comp-result"),x()),2&r&&(O(),k("peers",i.peers),O(5),k("ngIf",!uu(5,ey).includes(i.action)),O(6),k("form",i.form),O(),k("ngIf",uu(6,ey).includes(i.action)),O(),k("ngIf",uu(7,ey).includes(i.action)))},dependencies:[Ye,gn,qi,oA,lA,dA,_A,fA,pA,hA,mA,yA],changeDetection:0})}}return n})(),Pd=Object.entries(Fn.networks).map(([n,e])=>({name:n,...e}));Em.production&&(Pd=Pd.filter(n=>"dev"!==n.name)),Fn.networks=Pd,Fn.network=Pd.find(n=>n.name==Em.default_network.toString()),function p$(n,e){return tH({rootComponent:n,...pI(e)})}(sq,{providers:[{provide:vm,useValue:Em},{provide:wr,useValue:Fn},{provide:RT,useValue:Fn.wasm_asset_path},{provide:xT,useValue:Fn.network?.rpc_address},{provide:OT,useValue:Qu[Fn.verbosity]},dw([Hz,K$,A5])]}).then(()=>{}).catch(()=>{})},7278:as=>{var yc=0;function On(S,Bt){var me=Bt.data;if(Array.isArray(me)&&!(me.length<2)){var yn=me[0],br=me[1],Dt=me[2],K=S._callbacks[yn];K&&(delete S._callbacks[yn],K(br,Dt))}}function Jr(S){var Bt=this;Bt._worker=S,Bt._callbacks={},S.addEventListener("message",function(me){On(Bt,me)})}Jr.prototype.postMessage=function(S){var Bt=this,me=yc++,yn=[me,S];return new Promise(function(br,Dt){if(Bt._callbacks[me]=function(Kr,Ld){if(Kr)return Dt(new Error(Kr.message));br(Ld)},typeof Bt._worker.controller<"u"){var K=new MessageChannel;K.port1.onmessage=function(Kr){On(Bt,Kr)},Bt._worker.controller.postMessage(yn,[K.port2])}else Bt._worker.postMessage(yn)})},as.exports=Jr}},as=>{as(as.s=5168)}]); \ No newline at end of file diff --git a/pkg-nodejs/casper_rust_wasm_sdk.d.ts b/pkg-nodejs/casper_rust_wasm_sdk.d.ts index c3fcc6d8..2fb652bc 100644 --- a/pkg-nodejs/casper_rust_wasm_sdk.d.ts +++ b/pkg-nodejs/casper_rust_wasm_sdk.d.ts @@ -1414,7 +1414,7 @@ export class IntoUnderlyingByteSource { pull(controller: ReadableByteStreamController): Promise; cancel(): void; readonly autoAllocateChunkSize: number; - readonly type: string; + readonly type: any; } export class IntoUnderlyingSink { free(): void; @@ -1827,27 +1827,217 @@ export class QueryGlobalStateResult { export class SDK { free(): void; /** - * JavaScript function for deploying with deserialized parameters. + * Parses balance options from a JsValue. * * # Arguments * - * * `deploy_params` - Deploy parameters. - * * `session_params` - Session parameters. - * * `payment_params` - Payment parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. + * * `options` - A JsValue containing balance options to be parsed. * * # Returns * - * A result containing PutDeployResult or a JsError. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Parsed balance options as a `GetBalanceOptions` struct. + * @param {any} options + * @returns {getBalanceOptions} */ - deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + get_balance_options(options: any): getBalanceOptions; + /** + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} + */ + get_balance(options?: getBalanceOptions): Promise; + /** + * JavaScript Alias for `get_balance`. + * + * # Arguments + * + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} + */ + state_get_balance(options?: getBalanceOptions): Promise; + /** + * Parses query balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query balance options to be parsed. + * + * # Returns + * + * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. + * @param {any} options + * @returns {queryBalanceDetailsOptions} + */ + query_balance_details_options(options: any): queryBalanceDetailsOptions; + /** + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryBalanceDetailsOptions | undefined} [options] + * @returns {Promise} + */ + query_balance_details(options?: queryBalanceDetailsOptions): Promise; + /** + * Parses query global state options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query global state options to be parsed. + * + * # Returns + * + * Parsed query global state options as a `QueryGlobalStateOptions` struct. + * @param {any} options + * @returns {queryGlobalStateOptions} + */ + query_global_state_options(options: any): queryGlobalStateOptions; + /** + * Retrieves global state information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryGlobalStateOptions | undefined} [options] + * @returns {Promise} + */ + query_global_state(options?: queryGlobalStateOptions): Promise; + /** + * Deserialize query_contract_key_options from a JavaScript object. + * @param {any} options + * @returns {queryContractKeyOptions} + */ + query_contract_key_options(options: any): queryContractKeyOptions; + /** + * JavaScript function for query_contract_key with deserialized options. + * @param {queryContractKeyOptions | undefined} [options] + * @returns {Promise} + */ + query_contract_key(options?: queryContractKeyOptions): Promise; + /** + * Parses deploy options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing deploy options to be parsed. + * + * # Returns + * + * Parsed deploy options as a `GetDeployOptions` struct. + * @param {any} options + * @returns {getDeployOptions} + */ + get_deploy_options(options: any): getDeployOptions; + /** + * Retrieves deploy information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetDeployOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetDeployResult` or an error. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} + */ + get_deploy(options?: getDeployOptions): Promise; + /** + * Retrieves deploy information using the provided options, alias for `get_deploy`. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} + */ + info_get_deploy(options?: getDeployOptions): Promise; + /** + * Parses transaction options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing transaction options to be parsed. + * + * # Returns + * + * Parsed transaction options as a `GetTransactionOptions` struct. + * @param {any} options + * @returns {getTransactionOptions} + */ + get_transaction_options(options: any): getTransactionOptions; + /** + * Retrieves transaction information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetTransactionResult` or an error. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} + */ + get_transaction(options?: getTransactionOptions): Promise; + /** + * Retrieves transaction information using the provided options, alias for `get_transaction`. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} + */ + info_get_transaction(options?: getTransactionOptions): Promise; + /** + * JS function for `make_transfer_transaction`. + * + * # Arguments + * + * * `maybe_source` - Optional transfer source uref. + * * `amount` - The transfer amount. + * * `target` - The target account. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - Optional transfer identifier. + * + * # Returns + * + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @returns {Transaction} + */ + make_transfer_transaction(maybe_source: URef | undefined, target: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string): Transaction; /** * Asynchronously retrieves the chainspec. * @@ -1945,6 +2135,32 @@ export class SDK { * @returns {Promise} */ state_get_entity(options?: getEntityOptions): Promise; + /** + * Retrieves node status information using the provided options. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * + * # Returns + * + * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + get_node_status(verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_status(verbosity?: Verbosity, rpc_address?: string): Promise; /** * Retrieves peers asynchronously. * @@ -2014,21 +2230,21 @@ export class SDK { */ list_rpcs(verbosity?: Verbosity, rpc_address?: string): Promise; /** - * JS function for `sign_transaction`. + * JS function for `sign_deploy`. * * # Arguments * - * * `transaction` - The transaction to sign. + * * `deploy` - The deploy to sign. * * `secret_key` - The secret key for signing. * * # Returns * - * The signed `Transaction`. - * @param {Transaction} transaction + * The signed `Deploy`. + * @param {Deploy} deploy * @param {string} secret_key - * @returns {Transaction} + * @returns {Deploy} */ - sign_transaction(transaction: Transaction, secret_key: string): Transaction; + sign_deploy(deploy: Deploy, secret_key: string): Deploy; /** * Deserialize query_contract_dict_options from a JavaScript object. * @param {any} options @@ -2042,112 +2258,133 @@ export class SDK { */ query_contract_dict(options?: queryContractDictOptions): Promise; /** - * Parses block options from a JsValue. + * JavaScript function for deploying with deserialized parameters. * * # Arguments * - * * `options` - A JsValue containing block options to be parsed. + * * `deploy_params` - Deploy parameters. + * * `session_params` - Session parameters. + * * `payment_params` - Payment parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. * * # Returns * - * Parsed block options as a `GetBlockOptions` struct. + * A result containing PutDeployResult or a JsError. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + /** * @param {any} options - * @returns {getBlockOptions} + * @returns {getAccountOptions} */ - get_block_options(options: any): getBlockOptions; + get_account_options(options: any): getAccountOptions; /** - * Retrieves block information using the provided options. + * Retrieves account information using the provided options. + * + * This function is an asynchronous JavaScript binding for the Rust `get_account` method. * * # Arguments * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * * `options` - An optional `GetAccountOptions` struct containing retrieval options, such as: + * - `account_identifier`: Identifier for the account. + * - `account_identifier_as_string`: String representation of the account identifier. + * - `maybe_block_id_as_string`: Optional string representation of the block ID. + * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. + * - `verbosity`: Verbosity level for the output. + * - `rpc_address`: Address of the node to query. * * # Returns * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetAccountResult` on success or a `JsError` on failure. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. + * ``` + * @param {getAccountOptions | undefined} [options] + * @returns {Promise} */ - get_block(options?: getBlockOptions): Promise; + get_account(options?: getAccountOptions): Promise; /** - * JavaScript Alias for the `get_block`. - * - * # Arguments - * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} + * @param {getAccountOptions | undefined} [options] + * @returns {Promise} */ - chain_get_block(options?: getBlockOptions): Promise; + state_get_account_info(options?: getAccountOptions): Promise; /** - * Parses block transfers options from a JsValue. + * Parses auction info options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing block transfers options to be parsed. + * * `options` - A JsValue containing auction info options to be parsed. * * # Returns * - * Parsed block transfers options as a `GetBlockTransfersOptions` struct. + * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, + * or a `JsError` if deserialization fails. * @param {any} options - * @returns {getBlockTransfersOptions} + * @returns {getAuctionInfoOptions} */ - get_block_transfers_options(options: any): getBlockTransfersOptions; + get_auction_info_options(options: any): getAuctionInfoOptions; /** - * Retrieves block transfers information using the provided options. + * Retrieves auction information using the provided options. * * # Arguments * - * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. + * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} */ - get_block_transfers(options?: getBlockTransfersOptions): Promise; + get_auction_info(options?: getAuctionInfoOptions): Promise; /** - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} */ - chain_get_block_transfers(options?: getBlockTransfersOptions): Promise; + state_get_auction_info_js_alias(options?: getAuctionInfoOptions): Promise; /** - * Get options for speculative execution from a JavaScript value. * @param {any} options - * @returns {getSpeculativeExecDeployOptions} + * @returns {getEraInfoOptions} */ - get_speculative_exec_deploy_options(options: any): getSpeculativeExecDeployOptions; + get_era_info_options(options: any): getEraInfoOptions; /** - * JS function for speculative execution. + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} + */ + get_era_info(options?: getEraInfoOptions): Promise; + /** + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} + */ + chain_get_era_info_by_switch_block(options?: getEraInfoOptions): Promise; + /** + * JS function for `make_transaction`. * * # Arguments * - * * `options` - The options for speculative execution. + * * `builder_params` - Transaction Builder parameters. + * * `transaction_params` - The transaction parameters. * * # Returns * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecDeployOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @returns {Transaction} */ - speculative_exec_deploy(options?: getSpeculativeExecDeployOptions): Promise; + make_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams): Transaction; /** * JavaScript function for transactioning with deserialized parameters. * @@ -2169,576 +2406,153 @@ export class SDK { */ transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * JS function for `make_transfer`. + * Puts a deploy using the provided options. * * # Arguments * - * * `amount` - The transfer amount. - * * `target_account` - The target account. - * * `transfer_id` - Optional transfer identifier. - * * `deploy_params` - The deploy parameters. - * * `payment_params` - The payment parameters. + * * `deploy` - The `Deploy` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id - * @param {DeployStrParams} deploy_params - * @param {PaymentStrParams} payment_params - * @returns {Deploy} - */ - make_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams): Deploy; - /** - * JS function for `sign_deploy`. - * - * # Arguments - * - * * `deploy` - The deploy to sign. - * * `secret_key` - The secret key for signing. + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. * - * # Returns + * # Errors * - * The signed `Deploy`. + * Returns a `JsError` if there is an error during the deploy process. * @param {Deploy} deploy - * @param {string} secret_key - * @returns {Deploy} - */ - sign_deploy(deploy: Deploy, secret_key: string): Deploy; - /** - * @param {string | undefined} [rpc_address] * @param {Verbosity | undefined} [verbosity] - */ - constructor(rpc_address?: string, verbosity?: Verbosity); - /** - * @param {string | undefined} [rpc_address] - * @returns {string} - */ - getRPCAddress(rpc_address?: string): string; - /** * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - setRPCAddress(rpc_address?: string): void; - /** - * @param {Verbosity | undefined} [verbosity] - * @returns {Verbosity} - */ - getVerbosity(verbosity?: Verbosity): Verbosity; + put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; /** + * JavaScript Alias for `put_deploy`. + * @param {Deploy} deploy * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - setVerbosity(verbosity?: Verbosity): void; - /** - * @param {any} options - * @returns {getAccountOptions} - */ - get_account_options(options: any): getAccountOptions; + account_put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Retrieves account information using the provided options. - * - * This function is an asynchronous JavaScript binding for the Rust `get_account` method. + * JS function for transaction transferring funds. * * # Arguments * - * * `options` - An optional `GetAccountOptions` struct containing retrieval options, such as: - * - `account_identifier`: Identifier for the account. - * - `account_identifier_as_string`: String representation of the account identifier. - * - `maybe_block_id_as_string`: Optional string representation of the block ID. - * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. - * - `verbosity`: Verbosity level for the output. - * - `rpc_address`: Address of the node to query. + * * `maybe_source` - Optional transfer source uref. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A `Result` containing either a `GetAccountResult` on success or a `JsError` on failure. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. - * ``` - * @param {getAccountOptions | undefined} [options] - * @returns {Promise} - */ - get_account(options?: getAccountOptions): Promise; - /** - * @param {getAccountOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target_account + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - state_get_account_info(options?: getAccountOptions): Promise; + transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Parses balance options from a JsValue. + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * Legacy alias * * # Arguments * - * * `options` - A JsValue containing balance options to be parsed. + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. * * # Returns * - * Parsed balance options as a `GetBalanceOptions` struct. - * @param {any} options - * @returns {getBalanceOptions} + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} */ - get_balance_options(options: any): getBalanceOptions; + watchDeploy(events_url: string, timeout_duration?: number): Watcher; /** - * Retrieves balance information using the provided options. + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). * * # Arguments * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. * * # Returns * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} - */ - get_balance(options?: getBalanceOptions): Promise; - /** - * JavaScript Alias for `get_balance`. - * - * # Arguments - * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} - */ - state_get_balance(options?: getBalanceOptions): Promise; - /** - * @param {any} options - * @returns {getEraInfoOptions} - */ - get_era_info_options(options: any): getEraInfoOptions; - /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} - */ - get_era_info(options?: getEraInfoOptions): Promise; - /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} - */ - chain_get_era_info_by_switch_block(options?: getEraInfoOptions): Promise; - /** - * JS function for `make_deploy`. - * - * # Arguments - * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_params` - The payment parameters. - * - * # Returns - * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @returns {Deploy} - */ - make_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams): Deploy; - /** - * JS function for `make_transaction`. - * - * # Arguments - * - * * `builder_params` - Transaction Builder parameters. - * * `transaction_params` - The transaction parameters. - * - * # Returns - * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @returns {Transaction} - */ - make_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams): Transaction; - /** - * JS function for speculative transfer transaction. - * - * # Arguments - * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `transaction_params` - The transactionment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - speculative_transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * Installs a smart contract with the specified parameters and returns the result. - * - * # Arguments - * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_amount` - The payment amount as a string. - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the installation. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {string} payment_amount - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - install_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; - /** - * Parses deploy options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing deploy options to be parsed. - * - * # Returns - * - * Parsed deploy options as a `GetDeployOptions` struct. - * @param {any} options - * @returns {getDeployOptions} - */ - get_deploy_options(options: any): getDeployOptions; - /** - * Retrieves deploy information using the provided options. - * - * # Arguments - * - * * `options` - An optional `GetDeployOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetDeployResult` or an error. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} - */ - get_deploy(options?: getDeployOptions): Promise; - /** - * Retrieves deploy information using the provided options, alias for `get_deploy`. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} - */ - info_get_deploy(options?: getDeployOptions): Promise; - /** - * Parses transaction options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing transaction options to be parsed. - * - * # Returns - * - * Parsed transaction options as a `GetTransactionOptions` struct. - * @param {any} options - * @returns {getTransactionOptions} - */ - get_transaction_options(options: any): getTransactionOptions; - /** - * Retrieves transaction information using the provided options. - * - * # Arguments - * - * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetTransactionResult` or an error. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} - */ - get_transaction(options?: getTransactionOptions): Promise; - /** - * Retrieves transaction information using the provided options, alias for `get_transaction`. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} - */ - info_get_transaction(options?: getTransactionOptions): Promise; - /** - * Puts a transaction using the provided options. - * - * # Arguments - * - * * `transaction` - The `Transaction` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the transaction process. - * @param {Transaction} transaction - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - put_transaction(transaction: Transaction, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * JavaScript Alias for `put_transaction`. - * @param {Transaction} transaction - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - account_put_transaction(transaction: Transaction, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * Get options for speculative execution from a JavaScript value. - * @param {any} options - * @returns {getSpeculativeExecTxnOptions} - */ - get_speculative_exec_options(options: any): getSpeculativeExecTxnOptions; - /** - * JS function for speculative execution. - * - * # Arguments - * - * * `options` - The options for speculative execution. - * - * # Returns - * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecTxnOptions | undefined} [options] - * @returns {Promise} - */ - speculative_exec(options?: getSpeculativeExecTxnOptions): Promise; - /** - * This function allows executing a transaction speculatively. - * - * # Arguments - * - * * `builder_params` - Transaction Builder parameters. - * * `transaction_params` - Transactionment parameters for the transaction. - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing either a `SpeculativeExecTxnResult` or a `JsError` in case of an error. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - speculative_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * JS function for `make_transfer_transaction`. - * - * # Arguments - * - * * `maybe_source` - Optional transfer source uref. - * * `amount` - The transfer amount. - * * `target` - The target account. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - Optional transfer identifier. - * - * # Returns - * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @returns {Transaction} - */ - make_transfer_transaction(maybe_source: URef | undefined, target: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string): Transaction; - /** - * Installs a smart contract with the specified parameters and returns the result. - * - * # Arguments - *. - * * `transaction_params` - Transaction parameters. - * * `transaction_bytes` - Transaction Bytes to install - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns - * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the installation. - * @param {TransactionStrParams} transaction_params - * @param {Bytes} transaction_bytes - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - install(transaction_params: TransactionStrParams, transaction_bytes: Bytes, rpc_address?: string): Promise; - /** - * JS function for transferring funds. - * - * # Arguments - * - * * `amount` - The amount to transfer. - * * `target_account` - The target account. - * * `transfer_id` - An optional transfer ID (defaults to a random number). - * * `deploy_params` - The deployment parameters. - * * `payment_params` - The payment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the transfer or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id - * @param {DeployStrParams} deploy_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * Retrieves node status information using the provided options. - * - * # Arguments - * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - get_node_status(verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - info_get_status(verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * Puts a deploy using the provided options. - * - * # Arguments - * - * * `deploy` - The `Deploy` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the deploy process. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * JavaScript Alias for `put_deploy`. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - account_put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * Parses query balance options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing query balance options to be parsed. - * - * # Returns - * - * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. - * @param {any} options - * @returns {queryBalanceDetailsOptions} + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} */ - query_balance_details_options(options: any): queryBalanceDetailsOptions; + watchTransaction(events_url: string, timeout_duration?: number): Watcher; /** - * Retrieves balance information using the provided options. + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * Legacy alias * * # Arguments * - * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. + * * `events_url` - The URL to monitor for transaction events. + * * `deploy_hash` - The deploy hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. * - * # Errors + * # Returns * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceDetailsOptions | undefined} [options] - * @returns {Promise} + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} deploy_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} */ - query_balance_details(options?: queryBalanceDetailsOptions): Promise; + waitDeploy(events_url: string, deploy_hash: string, timeout_duration?: number): Promise>; /** - * Parses query global state options from a JsValue. + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). * * # Arguments * - * * `options` - A JsValue containing query global state options to be parsed. + * * `events_url` - The URL to monitor for transaction events. + * * `target_hash` - The transaction hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. * * # Returns * - * Parsed query global state options as a `QueryGlobalStateOptions` struct. - * @param {any} options - * @returns {queryGlobalStateOptions} + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} target_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} */ - query_global_state_options(options: any): queryGlobalStateOptions; + waitTransaction(events_url: string, target_hash: string, timeout_duration?: number): Promise>; /** - * Retrieves global state information using the provided options. + * Calls a smart contract entry point with the specified parameters and returns the result. * * # Arguments * - * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. + * * `transaction_params` - Transaction parameters. + * * `builder_params` - Transaction Builder parameters. + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryGlobalStateOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the call. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - query_global_state(options?: queryGlobalStateOptions): Promise; + call_entrypoint(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, rpc_address?: string): Promise; /** * Calls a smart contract entry point with the specified parameters and returns the result. * @@ -2764,185 +2578,225 @@ export class SDK { */ call_entrypoint_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; /** - * Deserialize query_contract_key_options from a JavaScript object. - * @param {any} options - * @returns {queryContractKeyOptions} - */ - query_contract_key_options(options: any): queryContractKeyOptions; - /** - * JavaScript function for query_contract_key with deserialized options. - * @param {queryContractKeyOptions | undefined} [options] - * @returns {Promise} - */ - query_contract_key(options?: queryContractKeyOptions): Promise; - /** - * Parses state root hash options from a JsValue. + * This function allows executing a deploy speculatively. * * # Arguments * - * * `options` - A JsValue containing state root hash options to be parsed. + * * `deploy_params` - Deployment parameters for the deploy. + * * `session_params` - Session parameters for the deploy. + * * `payment_params` - Payment parameters for the deploy. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. * * # Returns * - * Parsed state root hash options as a `GetStateRootHashOptions` struct. - * @param {any} options - * @returns {getStateRootHashOptions} + * A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_state_root_hash_options(options: any): getStateRootHashOptions; + speculative_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Retrieves state root hash information using the provided options. + * JS function for transferring funds. * * # Arguments * - * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * * `amount` - The amount to transfer. + * * `target_account` - The target account. + * * `transfer_id` - An optional transfer ID (defaults to a random number). + * * `deploy_params` - The deployment parameters. + * * `payment_params` - The payment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * Parses block transfers options from a JsValue. * - * # Errors + * # Arguments * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getStateRootHashOptions | undefined} [options] - * @returns {Promise} + * * `options` - A JsValue containing block transfers options to be parsed. + * + * # Returns + * + * Parsed block transfers options as a `GetBlockTransfersOptions` struct. + * @param {any} options + * @returns {getBlockTransfersOptions} */ - get_state_root_hash(options?: getStateRootHashOptions): Promise; + get_block_transfers_options(options: any): getBlockTransfersOptions; /** - * Retrieves state root hash information using the provided options (alias for `get_state_root_hash`). + * Retrieves block transfers information using the provided options. * * # Arguments * - * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getStateRootHashOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} */ - chain_get_state_root_hash(options?: getStateRootHashOptions): Promise; + get_block_transfers(options?: getBlockTransfersOptions): Promise; /** - * JS function for transaction transferring funds. + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} + */ + chain_get_block_transfers(options?: getBlockTransfersOptions): Promise; + /** + * Parses era summary options from a JsValue. * * # Arguments * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). + * * `options` - A JsValue containing era summary options to be parsed. * * # Returns * - * A `Result` containing the result of the transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Parsed era summary options as a `GetEraSummaryOptions` struct. + * @param {any} options + * @returns {getEraSummaryOptions} */ - transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; + get_era_summary_options(options: any): getEraSummaryOptions; /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). - * Legacy alias + * Retrieves era summary information using the provided options. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. * * # Returns * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} + * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} */ - watchDeploy(events_url: string, timeout_duration?: number): Watcher; + get_era_summary(options?: getEraSummaryOptions): Promise; /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} + */ + chain_get_era_summary(options?: getEraSummaryOptions): Promise; + /** + * Puts a transaction using the provided options. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `transaction` - The `Transaction` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the transaction process. + * @param {Transaction} transaction + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - watchTransaction(events_url: string, timeout_duration?: number): Watcher; + put_transaction(transaction: Transaction, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). - * Legacy alias + * JavaScript Alias for `put_transaction`. + * @param {Transaction} transaction + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + account_put_transaction(transaction: Transaction, verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * This function allows executing a transaction speculatively. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `deploy_hash` - The deploy hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `builder_params` - Transaction Builder parameters. + * * `transaction_params` - Transactionment parameters for the transaction. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. * * # Returns * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} deploy_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} + * A `Result` containing either a `SpeculativeExecTxnResult` or a `JsError` in case of an error. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - waitDeploy(events_url: string, deploy_hash: string, timeout_duration?: number): Promise>; + speculative_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * JS function for speculative transfer transaction. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `target_hash` - The transaction hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `maybe_source` - Optional transfer source uref. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `transaction_params` - The transactionment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} target_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target_account + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - waitTransaction(events_url: string, target_hash: string, timeout_duration?: number): Promise>; + speculative_transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * This function allows executing a deploy speculatively. + * Installs a smart contract with the specified parameters and returns the result. * * # Arguments - * - * * `deploy_params` - Deployment parameters for the deploy. - * * `session_params` - Session parameters for the deploy. - * * `payment_params` - Payment parameters for the deploy. - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. + *. + * * `transaction_params` - Transaction parameters. + * * `transaction_bytes` - Transaction Bytes to install + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the installation. + * @param {TransactionStrParams} transaction_params + * @param {Bytes} transaction_bytes * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - speculative_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + install(transaction_params: TransactionStrParams, transaction_bytes: Bytes, rpc_address?: string): Promise; /** * JS function for speculative transfer. * @@ -2970,80 +2824,105 @@ export class SDK { */ speculative_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Parses auction info options from a JsValue. + * Parses block options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing auction info options to be parsed. + * * `options` - A JsValue containing block options to be parsed. * * # Returns * - * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, - * or a `JsError` if deserialization fails. + * Parsed block options as a `GetBlockOptions` struct. * @param {any} options - * @returns {getAuctionInfoOptions} + * @returns {getBlockOptions} */ - get_auction_info_options(options: any): getAuctionInfoOptions; + get_block_options(options: any): getBlockOptions; /** - * Retrieves auction information using the provided options. + * Retrieves block information using the provided options. * * # Arguments * - * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - get_auction_info(options?: getAuctionInfoOptions): Promise; + get_block(options?: getBlockOptions): Promise; /** - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} + * JavaScript Alias for the `get_block`. + * + * # Arguments + * + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - state_get_auction_info_js_alias(options?: getAuctionInfoOptions): Promise; + chain_get_block(options?: getBlockOptions): Promise; /** - * Parses era summary options from a JsValue. + * Parses state root hash options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing era summary options to be parsed. + * * `options` - A JsValue containing state root hash options to be parsed. * * # Returns * - * Parsed era summary options as a `GetEraSummaryOptions` struct. + * Parsed state root hash options as a `GetStateRootHashOptions` struct. * @param {any} options - * @returns {getEraSummaryOptions} + * @returns {getStateRootHashOptions} */ - get_era_summary_options(options: any): getEraSummaryOptions; + get_state_root_hash_options(options: any): getStateRootHashOptions; /** - * Retrieves era summary information using the provided options. + * Retrieves state root hash information using the provided options. * * # Arguments * - * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * @param {getStateRootHashOptions | undefined} [options] + * @returns {Promise} */ - get_era_summary(options?: getEraSummaryOptions): Promise; + get_state_root_hash(options?: getStateRootHashOptions): Promise; /** - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * Retrieves state root hash information using the provided options (alias for `get_state_root_hash`). + * + * # Arguments + * + * * `options` - An optional `GetStateRootHashOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetStateRootHashResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getStateRootHashOptions | undefined} [options] + * @returns {Promise} */ - chain_get_era_summary(options?: getEraSummaryOptions): Promise; + chain_get_state_root_hash(options?: getStateRootHashOptions): Promise; /** * Parses query balance options from a JsValue. * @@ -3077,27 +2956,148 @@ export class SDK { */ query_balance(options?: queryBalanceOptions): Promise; /** - * Calls a smart contract entry point with the specified parameters and returns the result. + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecTxnOptions} + */ + get_speculative_exec_options(options: any): getSpeculativeExecTxnOptions; + /** + * JS function for speculative execution. * * # Arguments * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Transaction Builder parameters. + * * `options` - The options for speculative execution. + * + * # Returns + * + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecTxnOptions | undefined} [options] + * @returns {Promise} + */ + speculative_exec(options?: getSpeculativeExecTxnOptions): Promise; + /** + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecDeployOptions} + */ + get_speculative_exec_deploy_options(options: any): getSpeculativeExecDeployOptions; + /** + * JS function for speculative execution. + * + * # Arguments + * + * * `options` - The options for speculative execution. + * + * # Returns + * + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecDeployOptions | undefined} [options] + * @returns {Promise} + */ + speculative_exec_deploy(options?: getSpeculativeExecDeployOptions): Promise; + /** + * JS function for `make_deploy`. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_params` - The payment parameters. + * + * # Returns + * + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + make_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams): Deploy; + /** + * JS function for `make_transfer`. + * + * # Arguments + * + * * `amount` - The transfer amount. + * * `target_account` - The target account. + * * `transfer_id` - Optional transfer identifier. + * * `deploy_params` - The deploy parameters. + * * `payment_params` - The payment parameters. + * + * # Returns + * + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} + */ + make_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams): Deploy; + /** + * JS function for `sign_transaction`. + * + * # Arguments + * + * * `transaction` - The transaction to sign. + * * `secret_key` - The secret key for signing. + * + * # Returns + * + * The signed `Transaction`. + * @param {Transaction} transaction + * @param {string} secret_key + * @returns {Transaction} + */ + sign_transaction(transaction: Transaction, secret_key: string): Transaction; + /** + * Installs a smart contract with the specified parameters and returns the result. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the call. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params + * Returns a `JsError` if there is an error during the installation. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - call_entrypoint(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, rpc_address?: string): Promise; + install_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; + /** + * @param {string | undefined} [rpc_address] + * @param {Verbosity | undefined} [verbosity] + */ + constructor(rpc_address?: string, verbosity?: Verbosity); + /** + * @param {string | undefined} [rpc_address] + * @returns {string} + */ + getRPCAddress(rpc_address?: string): string; + /** + * @param {string | undefined} [rpc_address] + */ + setRPCAddress(rpc_address?: string): void; + /** + * @param {Verbosity | undefined} [verbosity] + * @returns {Verbosity} + */ + getVerbosity(verbosity?: Verbosity): Verbosity; + /** + * @param {Verbosity | undefined} [verbosity] + */ + setVerbosity(verbosity?: Verbosity): void; } export class SessionStrParams { free(): void; diff --git a/pkg-nodejs/casper_rust_wasm_sdk.js b/pkg-nodejs/casper_rust_wasm_sdk.js index 043ab191..aceebeb2 100644 --- a/pkg-nodejs/casper_rust_wasm_sdk.js +++ b/pkg-nodejs/casper_rust_wasm_sdk.js @@ -187,18 +187,18 @@ function makeMutClosure(arg0, arg1, dtor, f) { return real; } function __wbg_adapter_36(arg0, arg1, arg2) { - wasm.closure1010_externref_shim(arg0, arg1, arg2); + wasm.closure1017_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_39(arg0, arg1, arg2) { - wasm.closure1024_externref_shim(arg0, arg1, arg2); + wasm.closure1027_externref_shim(arg0, arg1, arg2); } -function passArray8ToWasm0(arg, malloc) { - const ptr = malloc(arg.length * 1, 1) >>> 0; - getUint8ArrayMemory0().set(arg, ptr / 1); - WASM_VECTOR_LEN = arg.length; - return ptr; +function _assertClass(instance, klass) { + if (!(instance instanceof klass)) { + throw new Error(`expected instance of ${klass.name}`); + } + return instance.ptr; } function takeFromExternrefTable0(idx) { @@ -207,11 +207,11 @@ function takeFromExternrefTable0(idx) { return value; } -function _assertClass(instance, klass) { - if (!(instance instanceof klass)) { - throw new Error(`expected instance of ${klass.name}`); - } - return instance.ptr; +function passArray8ToWasm0(arg, malloc) { + const ptr = malloc(arg.length * 1, 1) >>> 0; + getUint8ArrayMemory0().set(arg, ptr / 1); + WASM_VECTOR_LEN = arg.length; + return ptr; } function addToExternrefTable0(obj) { @@ -220,6 +220,32 @@ function addToExternrefTable0(obj) { return idx; } +function passArrayJsValueToWasm0(array, malloc) { + const ptr = malloc(array.length * 4, 4) >>> 0; + const mem = getDataViewMemory0(); + for (let i = 0; i < array.length; i++) { + mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true); + } + WASM_VECTOR_LEN = array.length; + return ptr; +} + +function getArrayU8FromWasm0(ptr, len) { + ptr = ptr >>> 0; + return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); +} + +function getArrayJsValueFromWasm0(ptr, len) { + ptr = ptr >>> 0; + const mem = getDataViewMemory0(); + const result = []; + for (let i = ptr; i < ptr + 4 * len; i += 4) { + result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true))); + } + wasm.__externref_drop_slice(ptr, len); + return result; +} + function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; } function handleError(f, args) { @@ -258,10 +284,6 @@ module.exports.hexToString = function(hex_string) { } }; -function getArrayU8FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); -} /** * Converts a hexadecimal string to a Uint8Array. * @@ -531,28 +553,8 @@ module.exports.makeDictionaryItemKey = function(key, value) { } }; -function passArrayJsValueToWasm0(array, malloc) { - const ptr = malloc(array.length * 4, 4) >>> 0; - const mem = getDataViewMemory0(); - for (let i = 0; i < array.length; i++) { - mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true); - } - WASM_VECTOR_LEN = array.length; - return ptr; -} - -function getArrayJsValueFromWasm0(ptr, len) { - ptr = ptr >>> 0; - const mem = getDataViewMemory0(); - const result = []; - for (let i = ptr; i < ptr + 4 * len; i += 4) { - result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true))); - } - wasm.__externref_drop_slice(ptr, len); - return result; -} function __wbg_adapter_1124(arg0, arg1, arg2, arg3) { - wasm.closure1570_externref_shim(arg0, arg1, arg2, arg3); + wasm.closure1586_externref_shim(arg0, arg1, arg2, arg3); } module.exports.PricingMode = Object.freeze({ Fixed:0,"0":"Fixed",Classic:1,"1":"Classic",Reserved:2,"2":"Reserved", }); @@ -4448,19 +4450,11 @@ class IntoUnderlyingByteSource { wasm.__wbg_intounderlyingbytesource_free(ptr, 0); } /** - * @returns {string} + * @returns {any} */ get type() { - let deferred1_0; - let deferred1_1; - try { - const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); - deferred1_0 = ret[0]; - deferred1_1 = ret[1]; - return getStringFromWasm0(ret[0], ret[1]); - } finally { - wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); - } + const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); + return __wbindgen_enum_ReadableStreamType[ret]; } /** * @returns {number} @@ -5774,7 +5768,7 @@ class PurseIdentifier { constructor(key) { _assertClass(key, PublicKey); var ptr0 = key.__destroy_into_raw(); - const ret = wasm.entityidentifier_fromPublicKey(ptr0); + const ret = wasm.purseidentifier_fromPublicKey(ptr0); this.__wbg_ptr = ret >>> 0; PurseIdentifierFinalization.register(this, this.__wbg_ptr, this); return this; @@ -5786,7 +5780,7 @@ class PurseIdentifier { static fromAccountHash(account_hash) { _assertClass(account_hash, AccountHash); var ptr0 = account_hash.__destroy_into_raw(); - const ret = wasm.entityidentifier_fromAccountHash(ptr0); + const ret = wasm.purseidentifier_fromAccountHash(ptr0); return PurseIdentifier.__wrap(ret); } /** @@ -6131,665 +6125,457 @@ class SDK { wasm.__wbg_sdk_free(ptr, 0); } /** - * JavaScript function for deploying with deserialized parameters. + * Parses balance options from a JsValue. * * # Arguments * - * * `deploy_params` - Deploy parameters. - * * `session_params` - Session parameters. - * * `payment_params` - Payment parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. + * * `options` - A JsValue containing balance options to be parsed. * * # Returns * - * A result containing PutDeployResult or a JsError. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Parsed balance options as a `GetBalanceOptions` struct. + * @param {any} options + * @returns {getBalanceOptions} */ - deploy(deploy_params, session_params, payment_params, verbosity, rpc_address) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr2 = payment_params.__destroy_into_raw(); - var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); - return ret; + get_balance_options(options) { + const ret = wasm.sdk_get_balance_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return getBalanceOptions.__wrap(ret[0]); } /** - * Asynchronously retrieves the chainspec. + * Retrieves balance information using the provided options. * * # Arguments * - * * `verbosity` - An optional `Verbosity` parameter. - * * `rpc_address` - An optional rpc address as a string. + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} */ - get_chainspec(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + get_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_balance(this.__wbg_ptr, ptr0); return ret; } /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * JavaScript Alias for `get_balance`. + * + * # Arguments + * + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} */ - info_get_chainspec(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + state_get_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_balance(this.__wbg_ptr, ptr0); return ret; } /** - * Parses dictionary item options from a JsValue. + * Parses query balance options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing dictionary item options to be parsed. + * * `options` - A JsValue containing query balance options to be parsed. * * # Returns * - * Parsed dictionary item options as a `GetDictionaryItemOptions` struct. + * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. * @param {any} options - * @returns {getDictionaryItemOptions} + * @returns {queryBalanceDetailsOptions} */ - get_dictionary_item_options(options) { - const ret = wasm.sdk_get_dictionary_item_options(this.__wbg_ptr, options); + query_balance_details_options(options) { + const ret = wasm.sdk_query_balance_details_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getDictionaryItemOptions.__wrap(ret[0]); + return queryBalanceDetailsOptions.__wrap(ret[0]); } /** - * Retrieves dictionary item information using the provided options. + * Retrieves balance information using the provided options. * * # Arguments * - * * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. + * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. + * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getDictionaryItemOptions | undefined} [options] - * @returns {Promise} - */ - get_dictionary_item(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getDictionaryItemOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_dictionary_item(this.__wbg_ptr, ptr0); - return ret; - } - /** - * JavaScript Alias for `get_dictionary_item` - * @param {getDictionaryItemOptions | undefined} [options] - * @returns {Promise} + * @param {queryBalanceDetailsOptions | undefined} [options] + * @returns {Promise} */ - state_get_dictionary_item(options) { + query_balance_details(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getDictionaryItemOptions); + _assertClass(options, queryBalanceDetailsOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_state_get_dictionary_item(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_query_balance_details(this.__wbg_ptr, ptr0); return ret; } /** + * Parses query global state options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query global state options to be parsed. + * + * # Returns + * + * Parsed query global state options as a `QueryGlobalStateOptions` struct. * @param {any} options - * @returns {getEntityOptions} + * @returns {queryGlobalStateOptions} */ - get_entity_options(options) { - const ret = wasm.sdk_get_entity_options(this.__wbg_ptr, options); + query_global_state_options(options) { + const ret = wasm.sdk_query_global_state_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getEntityOptions.__wrap(ret[0]); + return queryGlobalStateOptions.__wrap(ret[0]); } /** - * Retrieves entity information using the provided options. - * - * This function is an asynchronous JavaScript binding for the Rust `get_entity` method. + * Retrieves global state information using the provided options. * * # Arguments * - * * `options` - An optional `GetEntityOptions` struct containing retrieval options, such as: - * - `entity_identifier`: Identifier for the entity. - * - `entity_identifier_as_string`: String representation of the entity identifier. - * - `maybe_block_id_as_string`: Optional string representation of the block ID. - * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. - * - `verbosity`: Verbosity level for the output. - * - `rpc_address`: Address of the node to query. + * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetAddressableEntityResult` on success or a `JsError` on failure. + * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. - * ``` - * @param {getEntityOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryGlobalStateOptions | undefined} [options] + * @returns {Promise} */ - get_entity(options) { + query_global_state(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getEntityOptions); + _assertClass(options, queryGlobalStateOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_entity(this.__wbg_ptr, ptr0); - return ret; - } - /** - * @param {getEntityOptions | undefined} [options] - * @returns {Promise} - */ - state_get_entity(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getEntityOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_state_get_entity(this.__wbg_ptr, ptr0); - return ret; - } - /** - * Retrieves peers asynchronously. - * - * # Arguments - * - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - get_peers(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - info_get_peers(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * Retrieves validator changes using the provided options. - * - * # Arguments - * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - get_validator_changes(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_validator_changes(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - info_get_validator_change(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_validator_change(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * Lists available RPCs using the provided options. - * - * # Arguments - * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the listing process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - list_rpcs(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_list_rpcs(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + const ret = wasm.sdk_query_global_state(this.__wbg_ptr, ptr0); return ret; } /** - * JS function for `sign_transaction`. - * - * # Arguments - * - * * `transaction` - The transaction to sign. - * * `secret_key` - The secret key for signing. - * - * # Returns - * - * The signed `Transaction`. - * @param {Transaction} transaction - * @param {string} secret_key - * @returns {Transaction} - */ - sign_transaction(transaction, secret_key) { - _assertClass(transaction, Transaction); - var ptr0 = transaction.__destroy_into_raw(); - const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_sign_transaction(this.__wbg_ptr, ptr0, ptr1, len1); - return Transaction.__wrap(ret); - } - /** - * Deserialize query_contract_dict_options from a JavaScript object. + * Deserialize query_contract_key_options from a JavaScript object. * @param {any} options - * @returns {queryContractDictOptions} + * @returns {queryContractKeyOptions} */ - query_contract_dict_options(options) { - const ret = wasm.sdk_query_contract_dict_options(this.__wbg_ptr, options); + query_contract_key_options(options) { + const ret = wasm.sdk_query_contract_key_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return queryContractDictOptions.__wrap(ret[0]); + return queryContractKeyOptions.__wrap(ret[0]); } /** - * JavaScript function for query_contract_dict with deserialized options. - * @param {queryContractDictOptions | undefined} [options] - * @returns {Promise} + * JavaScript function for query_contract_key with deserialized options. + * @param {queryContractKeyOptions | undefined} [options] + * @returns {Promise} */ - query_contract_dict(options) { + query_contract_key(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, queryContractDictOptions); + _assertClass(options, queryContractKeyOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_query_contract_dict(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_query_contract_key(this.__wbg_ptr, ptr0); return ret; } /** - * Parses block options from a JsValue. + * Parses deploy options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing block options to be parsed. + * * `options` - A JsValue containing deploy options to be parsed. * * # Returns * - * Parsed block options as a `GetBlockOptions` struct. + * Parsed deploy options as a `GetDeployOptions` struct. * @param {any} options - * @returns {getBlockOptions} + * @returns {getDeployOptions} */ - get_block_options(options) { - const ret = wasm.sdk_get_block_options(this.__wbg_ptr, options); + get_deploy_options(options) { + const ret = wasm.sdk_get_deploy_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getBlockOptions.__wrap(ret[0]); + return getDeployOptions.__wrap(ret[0]); } /** - * Retrieves block information using the provided options. + * Retrieves deploy information using the provided options. * * # Arguments * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * * `options` - An optional `GetDeployOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `GetDeployResult` or an error. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} */ - get_block(options) { + get_deploy(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBlockOptions); + _assertClass(options, getDeployOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_block(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_deploy(this.__wbg_ptr, ptr0); return ret; } /** - * JavaScript Alias for the `get_block`. - * - * # Arguments - * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} + * Retrieves deploy information using the provided options, alias for `get_deploy`. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} */ - chain_get_block(options) { + info_get_deploy(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBlockOptions); + _assertClass(options, getDeployOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_chain_get_block(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_info_get_deploy(this.__wbg_ptr, ptr0); return ret; } /** - * Parses block transfers options from a JsValue. + * Parses transaction options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing block transfers options to be parsed. + * * `options` - A JsValue containing transaction options to be parsed. * * # Returns * - * Parsed block transfers options as a `GetBlockTransfersOptions` struct. + * Parsed transaction options as a `GetTransactionOptions` struct. * @param {any} options - * @returns {getBlockTransfersOptions} + * @returns {getTransactionOptions} */ - get_block_transfers_options(options) { - const ret = wasm.sdk_get_block_transfers_options(this.__wbg_ptr, options); + get_transaction_options(options) { + const ret = wasm.sdk_get_transaction_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getBlockTransfersOptions.__wrap(ret[0]); + return getTransactionOptions.__wrap(ret[0]); } /** - * Retrieves block transfers information using the provided options. + * Retrieves transaction information using the provided options. * * # Arguments * - * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. + * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `GetTransactionResult` or an error. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} */ - get_block_transfers(options) { + get_transaction(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBlockTransfersOptions); + _assertClass(options, getTransactionOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_block_transfers(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_transaction(this.__wbg_ptr, ptr0); return ret; } /** - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * Retrieves transaction information using the provided options, alias for `get_transaction`. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} */ - chain_get_block_transfers(options) { + info_get_transaction(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBlockTransfersOptions); + _assertClass(options, getTransactionOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_chain_get_block_transfers(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_info_get_transaction(this.__wbg_ptr, ptr0); return ret; } /** - * Get options for speculative execution from a JavaScript value. - * @param {any} options - * @returns {getSpeculativeExecDeployOptions} - */ - get_speculative_exec_deploy_options(options) { - const ret = wasm.sdk_get_speculative_exec_deploy_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getSpeculativeExecDeployOptions.__wrap(ret[0]); - } - /** - * JS function for speculative execution. + * JS function for `make_transfer_transaction`. * * # Arguments * - * * `options` - The options for speculative execution. + * * `maybe_source` - Optional transfer source uref. + * * `amount` - The transfer amount. + * * `target` - The target account. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - Optional transfer identifier. * * # Returns * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecDeployOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @returns {Transaction} */ - speculative_exec_deploy(options) { + make_transfer_transaction(maybe_source, target, amount, transaction_params, maybe_id) { let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getSpeculativeExecDeployOptions); - ptr0 = options.__destroy_into_raw(); + if (!isLikeNone(maybe_source)) { + _assertClass(maybe_source, URef); + ptr0 = maybe_source.__destroy_into_raw(); } - const ret = wasm.sdk_speculative_exec_deploy(this.__wbg_ptr, ptr0); - return ret; + const ptr1 = passStringToWasm0(target, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + _assertClass(transaction_params, TransactionStrParams); + var ptr3 = transaction_params.__destroy_into_raw(); + var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + const ret = wasm.sdk_make_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return Transaction.__wrap(ret[0]); } /** - * JavaScript function for transactioning with deserialized parameters. + * Asynchronously retrieves the chainspec. * * # Arguments * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Session parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. + * * `verbosity` - An optional `Verbosity` parameter. + * * `rpc_address` - An optional rpc address as a string. * * # Returns * - * A result containing PutTransactionResult or a JsError. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params + * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - transaction(builder_params, transaction_params, verbosity, rpc_address) { - _assertClass(builder_params, TransactionBuilderParams); - var ptr0 = builder_params.__destroy_into_raw(); - _assertClass(transaction_params, TransactionStrParams); - var ptr1 = transaction_params.__destroy_into_raw(); - var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_transaction(this.__wbg_ptr, ptr0, ptr1, isLikeNone(verbosity) ? 3 : verbosity, ptr2, len2); + get_chainspec(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** - * JS function for `make_transfer`. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_chainspec(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * Parses dictionary item options from a JsValue. * * # Arguments * - * * `amount` - The transfer amount. - * * `target_account` - The target account. - * * `transfer_id` - Optional transfer identifier. - * * `deploy_params` - The deploy parameters. - * * `payment_params` - The payment parameters. + * * `options` - A JsValue containing dictionary item options to be parsed. * * # Returns * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id - * @param {DeployStrParams} deploy_params - * @param {PaymentStrParams} payment_params - * @returns {Deploy} + * Parsed dictionary item options as a `GetDictionaryItemOptions` struct. + * @param {any} options + * @returns {getDictionaryItemOptions} */ - make_transfer(amount, target_account, transfer_id, deploy_params, payment_params) { - const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - _assertClass(deploy_params, DeployStrParams); - var ptr3 = deploy_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr4 = payment_params.__destroy_into_raw(); - const ret = wasm.sdk_make_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4); + get_dictionary_item_options(options) { + const ret = wasm.sdk_get_dictionary_item_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return Deploy.__wrap(ret[0]); + return getDictionaryItemOptions.__wrap(ret[0]); } /** - * JS function for `sign_deploy`. + * Retrieves dictionary item information using the provided options. * * # Arguments * - * * `deploy` - The deploy to sign. - * * `secret_key` - The secret key for signing. + * * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. * * # Returns * - * The signed `Deploy`. - * @param {Deploy} deploy - * @param {string} secret_key - * @returns {Deploy} - */ - sign_deploy(deploy, secret_key) { - _assertClass(deploy, Deploy); - var ptr0 = deploy.__destroy_into_raw(); - const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_sign_deploy(this.__wbg_ptr, ptr0, ptr1, len1); - return Deploy.__wrap(ret); - } - /** - * @param {string | undefined} [rpc_address] - * @param {Verbosity | undefined} [verbosity] - */ - constructor(rpc_address, verbosity) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_new(ptr0, len0, isLikeNone(verbosity) ? 3 : verbosity); - this.__wbg_ptr = ret >>> 0; - SDKFinalization.register(this, this.__wbg_ptr, this); - return this; - } - /** - * @param {string | undefined} [rpc_address] - * @returns {string} - */ - getRPCAddress(rpc_address) { - let deferred2_0; - let deferred2_1; - try { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_getRPCAddress(this.__wbg_ptr, ptr0, len0); - deferred2_0 = ret[0]; - deferred2_1 = ret[1]; - return getStringFromWasm0(ret[0], ret[1]); - } finally { - wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); - } - } - /** - * @param {string | undefined} [rpc_address] + * A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getDictionaryItemOptions | undefined} [options] + * @returns {Promise} */ - setRPCAddress(rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_setRPCAddress(this.__wbg_ptr, ptr0, len0); - if (ret[1]) { - throw takeFromExternrefTable0(ret[0]); + get_dictionary_item(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDictionaryItemOptions); + ptr0 = options.__destroy_into_raw(); } - } - /** - * @param {Verbosity | undefined} [verbosity] - * @returns {Verbosity} - */ - getVerbosity(verbosity) { - const ret = wasm.sdk_getVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); + const ret = wasm.sdk_get_dictionary_item(this.__wbg_ptr, ptr0); return ret; } /** - * @param {Verbosity | undefined} [verbosity] + * JavaScript Alias for `get_dictionary_item` + * @param {getDictionaryItemOptions | undefined} [options] + * @returns {Promise} */ - setVerbosity(verbosity) { - const ret = wasm.sdk_setVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); - if (ret[1]) { - throw takeFromExternrefTable0(ret[0]); + state_get_dictionary_item(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDictionaryItemOptions); + ptr0 = options.__destroy_into_raw(); } + const ret = wasm.sdk_state_get_dictionary_item(this.__wbg_ptr, ptr0); + return ret; } /** * @param {any} options - * @returns {getAccountOptions} + * @returns {getEntityOptions} */ - get_account_options(options) { - const ret = wasm.sdk_get_account_options(this.__wbg_ptr, options); + get_entity_options(options) { + const ret = wasm.sdk_get_entity_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getAccountOptions.__wrap(ret[0]); + return getEntityOptions.__wrap(ret[0]); } /** - * Retrieves account information using the provided options. + * Retrieves entity information using the provided options. * - * This function is an asynchronous JavaScript binding for the Rust `get_account` method. + * This function is an asynchronous JavaScript binding for the Rust `get_entity` method. * * # Arguments * - * * `options` - An optional `GetAccountOptions` struct containing retrieval options, such as: - * - `account_identifier`: Identifier for the account. - * - `account_identifier_as_string`: String representation of the account identifier. + * * `options` - An optional `GetEntityOptions` struct containing retrieval options, such as: + * - `entity_identifier`: Identifier for the entity. + * - `entity_identifier_as_string`: String representation of the entity identifier. * - `maybe_block_id_as_string`: Optional string representation of the block ID. * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. * - `verbosity`: Verbosity level for the output. @@ -6797,465 +6583,941 @@ class SDK { * * # Returns * - * A `Result` containing either a `GetAccountResult` on success or a `JsError` on failure. + * A `Result` containing either a `GetAddressableEntityResult` on success or a `JsError` on failure. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. * ``` - * @param {getAccountOptions | undefined} [options] - * @returns {Promise} + * @param {getEntityOptions | undefined} [options] + * @returns {Promise} */ - get_account(options) { + get_entity(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getAccountOptions); + _assertClass(options, getEntityOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_account(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_entity(this.__wbg_ptr, ptr0); return ret; } /** - * @param {getAccountOptions | undefined} [options] - * @returns {Promise} + * @param {getEntityOptions | undefined} [options] + * @returns {Promise} */ - state_get_account_info(options) { + state_get_entity(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getAccountOptions); + _assertClass(options, getEntityOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_state_get_account_info(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_state_get_entity(this.__wbg_ptr, ptr0); return ret; } /** - * Parses balance options from a JsValue. + * Retrieves node status information using the provided options. * * # Arguments * - * * `options` - A JsValue containing balance options to be parsed. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * Parsed balance options as a `GetBalanceOptions` struct. - * @param {any} options - * @returns {getBalanceOptions} + * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_balance_options(options) { - const ret = wasm.sdk_get_balance_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getBalanceOptions.__wrap(ret[0]); + get_node_status(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_node_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; } /** - * Retrieves balance information using the provided options. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_status(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * Retrieves peers asynchronously. * * # Arguments * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. * * # Returns * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + get_peers(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_peers(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * Retrieves validator changes using the provided options. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * + * # Returns + * + * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_balance(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getBalanceOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_balance(this.__wbg_ptr, ptr0); + get_validator_changes(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_validator_changes(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** - * JavaScript Alias for `get_balance`. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_validator_change(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_validator_change(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * Lists available RPCs using the provided options. * * # Arguments * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the listing process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - state_get_balance(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getBalanceOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_state_get_balance(this.__wbg_ptr, ptr0); + list_rpcs(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_list_rpcs(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** - * @param {any} options - * @returns {getEraInfoOptions} + * JS function for `sign_deploy`. + * + * # Arguments + * + * * `deploy` - The deploy to sign. + * * `secret_key` - The secret key for signing. + * + * # Returns + * + * The signed `Deploy`. + * @param {Deploy} deploy + * @param {string} secret_key + * @returns {Deploy} */ - get_era_info_options(options) { - const ret = wasm.sdk_get_era_info_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getEraInfoOptions.__wrap(ret[0]); + sign_deploy(deploy, secret_key) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_sign_deploy(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); } /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} + * Deserialize query_contract_dict_options from a JavaScript object. + * @param {any} options + * @returns {queryContractDictOptions} */ - get_era_info(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getEraInfoOptions); - ptr0 = options.__destroy_into_raw(); + query_contract_dict_options(options) { + const ret = wasm.sdk_query_contract_dict_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); } - const ret = wasm.sdk_get_era_info(this.__wbg_ptr, ptr0); - return ret; + return queryContractDictOptions.__wrap(ret[0]); } /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} + * JavaScript function for query_contract_dict with deserialized options. + * @param {queryContractDictOptions | undefined} [options] + * @returns {Promise} */ - chain_get_era_info_by_switch_block(options) { + query_contract_dict(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getEraInfoOptions); + _assertClass(options, queryContractDictOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_chain_get_era_info_by_switch_block(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_query_contract_dict(this.__wbg_ptr, ptr0); return ret; } /** - * JS function for `make_deploy`. + * JavaScript function for deploying with deserialized parameters. * * # Arguments * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_params` - The payment parameters. + * * `deploy_params` - Deploy parameters. + * * `session_params` - Session parameters. + * * `payment_params` - Payment parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. * * # Returns * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * A result containing PutDeployResult or a JsError. * @param {DeployStrParams} deploy_params * @param {SessionStrParams} session_params * @param {PaymentStrParams} payment_params - * @returns {Deploy} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - make_deploy(deploy_params, session_params, payment_params) { + deploy(deploy_params, session_params, payment_params, verbosity, rpc_address) { _assertClass(deploy_params, DeployStrParams); var ptr0 = deploy_params.__destroy_into_raw(); _assertClass(session_params, SessionStrParams); var ptr1 = session_params.__destroy_into_raw(); _assertClass(payment_params, PaymentStrParams); var ptr2 = payment_params.__destroy_into_raw(); - const ret = wasm.sdk_make_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return Deploy.__wrap(ret[0]); + var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); + return ret; } /** - * JS function for `make_transaction`. - * - * # Arguments - * - * * `builder_params` - Transaction Builder parameters. - * * `transaction_params` - The transaction parameters. - * - * # Returns - * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @returns {Transaction} + * @param {any} options + * @returns {getAccountOptions} */ - make_transaction(builder_params, transaction_params) { - _assertClass(builder_params, TransactionBuilderParams); - var ptr0 = builder_params.__destroy_into_raw(); - _assertClass(transaction_params, TransactionStrParams); - var ptr1 = transaction_params.__destroy_into_raw(); - const ret = wasm.sdk_make_transaction(this.__wbg_ptr, ptr0, ptr1); + get_account_options(options) { + const ret = wasm.sdk_get_account_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return Transaction.__wrap(ret[0]); + return getAccountOptions.__wrap(ret[0]); } /** - * JS function for speculative transfer transaction. + * Retrieves account information using the provided options. + * + * This function is an asynchronous JavaScript binding for the Rust `get_account` method. * * # Arguments * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `transaction_params` - The transactionment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). + * * `options` - An optional `GetAccountOptions` struct containing retrieval options, such as: + * - `account_identifier`: Identifier for the account. + * - `account_identifier_as_string`: String representation of the account identifier. + * - `maybe_block_id_as_string`: Optional string representation of the block ID. + * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. + * - `verbosity`: Verbosity level for the output. + * - `rpc_address`: Address of the node to query. * * # Returns * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing either a `GetAccountResult` on success or a `JsError` on failure. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. + * ``` + * @param {getAccountOptions | undefined} [options] + * @returns {Promise} */ - speculative_transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { + get_account(options) { let ptr0 = 0; - if (!isLikeNone(maybe_source)) { - _assertClass(maybe_source, URef); - ptr0 = maybe_source.__destroy_into_raw(); + if (!isLikeNone(options)) { + _assertClass(options, getAccountOptions); + ptr0 = options.__destroy_into_raw(); } - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - _assertClass(transaction_params, TransactionStrParams); - var ptr3 = transaction_params.__destroy_into_raw(); - var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len4 = WASM_VECTOR_LEN; - var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_speculative_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + const ret = wasm.sdk_get_account(this.__wbg_ptr, ptr0); return ret; } /** - * Installs a smart contract with the specified parameters and returns the result. - * - * # Arguments - * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_amount` - The payment amount as a string. - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the installation. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {string} payment_amount - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {getAccountOptions | undefined} [options] + * @returns {Promise} */ - install_deploy(deploy_params, session_params, payment_amount, rpc_address) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_install_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + state_get_account_info(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getAccountOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_account_info(this.__wbg_ptr, ptr0); return ret; } /** - * Parses deploy options from a JsValue. + * Parses auction info options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing deploy options to be parsed. + * * `options` - A JsValue containing auction info options to be parsed. * * # Returns * - * Parsed deploy options as a `GetDeployOptions` struct. + * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, + * or a `JsError` if deserialization fails. * @param {any} options - * @returns {getDeployOptions} + * @returns {getAuctionInfoOptions} */ - get_deploy_options(options) { - const ret = wasm.sdk_get_deploy_options(this.__wbg_ptr, options); + get_auction_info_options(options) { + const ret = wasm.sdk_get_auction_info_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getDeployOptions.__wrap(ret[0]); + return getAuctionInfoOptions.__wrap(ret[0]); } /** - * Retrieves deploy information using the provided options. + * Retrieves auction information using the provided options. * * # Arguments * - * * `options` - An optional `GetDeployOptions` struct containing retrieval options. + * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetDeployResult` or an error. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} */ - get_deploy(options) { + get_auction_info(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getDeployOptions); + _assertClass(options, getAuctionInfoOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_deploy(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_auction_info(this.__wbg_ptr, ptr0); return ret; } /** - * Retrieves deploy information using the provided options, alias for `get_deploy`. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} */ - info_get_deploy(options) { + state_get_auction_info_js_alias(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getDeployOptions); + _assertClass(options, getAuctionInfoOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_info_get_deploy(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_state_get_auction_info_js_alias(this.__wbg_ptr, ptr0); return ret; } /** - * Parses transaction options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing transaction options to be parsed. - * - * # Returns - * - * Parsed transaction options as a `GetTransactionOptions` struct. * @param {any} options - * @returns {getTransactionOptions} + * @returns {getEraInfoOptions} */ - get_transaction_options(options) { - const ret = wasm.sdk_get_transaction_options(this.__wbg_ptr, options); + get_era_info_options(options) { + const ret = wasm.sdk_get_era_info_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getTransactionOptions.__wrap(ret[0]); + return getEraInfoOptions.__wrap(ret[0]); } /** - * Retrieves transaction information using the provided options. - * - * # Arguments - * - * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetTransactionResult` or an error. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} */ - get_transaction(options) { + get_era_info(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getTransactionOptions); + _assertClass(options, getEraInfoOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_transaction(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_era_info(this.__wbg_ptr, ptr0); return ret; } /** - * Retrieves transaction information using the provided options, alias for `get_transaction`. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} */ - info_get_transaction(options) { + chain_get_era_info_by_switch_block(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getTransactionOptions); + _assertClass(options, getEraInfoOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_info_get_transaction(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_chain_get_era_info_by_switch_block(this.__wbg_ptr, ptr0); return ret; } /** - * Puts a transaction using the provided options. + * JS function for `make_transaction`. * * # Arguments * - * * `transaction` - The `Transaction` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * * `builder_params` - Transaction Builder parameters. + * * `transaction_params` - The transaction parameters. * * # Returns * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @returns {Transaction} + */ + make_transaction(builder_params, transaction_params) { + _assertClass(builder_params, TransactionBuilderParams); + var ptr0 = builder_params.__destroy_into_raw(); + _assertClass(transaction_params, TransactionStrParams); + var ptr1 = transaction_params.__destroy_into_raw(); + const ret = wasm.sdk_make_transaction(this.__wbg_ptr, ptr0, ptr1); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return Transaction.__wrap(ret[0]); + } + /** + * JavaScript function for transactioning with deserialized parameters. * - * # Errors + * # Arguments * - * Returns a `JsError` if there is an error during the transaction process. - * @param {Transaction} transaction + * * `transaction_params` - Transaction parameters. + * * `builder_params` - Session parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. + * + * # Returns + * + * A result containing PutTransactionResult or a JsError. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] * @returns {Promise} */ - put_transaction(transaction, verbosity, rpc_address) { - _assertClass(transaction, Transaction); - var ptr0 = transaction.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + transaction(builder_params, transaction_params, verbosity, rpc_address) { + _assertClass(builder_params, TransactionBuilderParams); + var ptr0 = builder_params.__destroy_into_raw(); + _assertClass(transaction_params, TransactionStrParams); + var ptr1 = transaction_params.__destroy_into_raw(); + var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_transaction(this.__wbg_ptr, ptr0, ptr1, isLikeNone(verbosity) ? 3 : verbosity, ptr2, len2); return ret; } /** - * JavaScript Alias for `put_transaction`. - * @param {Transaction} transaction + * Puts a deploy using the provided options. + * + * # Arguments + * + * * `deploy` - The `Deploy` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * + * # Returns + * + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the deploy process. + * @param {Deploy} deploy * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - account_put_transaction(transaction, verbosity, rpc_address) { - _assertClass(transaction, Transaction); - var ptr0 = transaction.__destroy_into_raw(); + put_deploy(deploy, verbosity, rpc_address) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_account_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + const ret = wasm.sdk_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); return ret; } /** - * Get options for speculative execution from a JavaScript value. - * @param {any} options - * @returns {getSpeculativeExecTxnOptions} - */ - get_speculative_exec_options(options) { - const ret = wasm.sdk_get_speculative_exec_options(this.__wbg_ptr, options); + * JavaScript Alias for `put_deploy`. + * @param {Deploy} deploy + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + account_put_deploy(deploy, verbosity, rpc_address) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_account_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + return ret; + } + /** + * JS function for transaction transferring funds. + * + * # Arguments + * + * * `maybe_source` - Optional transfer source uref. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target_account + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { + let ptr0 = 0; + if (!isLikeNone(maybe_source)) { + _assertClass(maybe_source, URef); + ptr0 = maybe_source.__destroy_into_raw(); + } + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + _assertClass(transaction_params, TransactionStrParams); + var ptr3 = transaction_params.__destroy_into_raw(); + var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + return ret; + } + /** + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * Legacy alias + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} + */ + watchDeploy(events_url, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_watchDeploy(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + return Watcher.__wrap(ret); + } + /** + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} + */ + watchTransaction(events_url, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_watchTransaction(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + return Watcher.__wrap(ret); + } + /** + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * Legacy alias + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `deploy_hash` - The deploy hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} deploy_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} + */ + waitDeploy(events_url, deploy_hash, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(deploy_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_waitDeploy(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + return ret; + } + /** + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `target_hash` - The transaction hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} target_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} + */ + waitTransaction(events_url, target_hash, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_waitTransaction(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + return ret; + } + /** + * Calls a smart contract entry point with the specified parameters and returns the result. + * + * # Arguments + * + * * `transaction_params` - Transaction parameters. + * * `builder_params` - Transaction Builder parameters. + * * `rpc_address` - An optional rpc address to send the request to. + * + * # Returns + * + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the call. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + call_entrypoint(builder_params, transaction_params, rpc_address) { + _assertClass(builder_params, TransactionBuilderParams); + var ptr0 = builder_params.__destroy_into_raw(); + _assertClass(transaction_params, TransactionStrParams); + var ptr1 = transaction_params.__destroy_into_raw(); + var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_call_entrypoint(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); + return ret; + } + /** + * Calls a smart contract entry point with the specified parameters and returns the result. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `rpc_address` - An optional rpc address to send the request to. + * + * # Returns + * + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the call. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + call_entrypoint_deploy(deploy_params, session_params, payment_amount, rpc_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_call_entrypoint_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + return ret; + } + /** + * This function allows executing a deploy speculatively. + * + * # Arguments + * + * * `deploy_params` - Deployment parameters for the deploy. + * * `session_params` - Session parameters for the deploy. + * * `payment_params` - Payment parameters for the deploy. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. + * + * # Returns + * + * A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + speculative_deploy(deploy_params, session_params, payment_params, verbosity, rpc_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); + return ret; + } + /** + * JS function for transferring funds. + * + * # Arguments + * + * * `amount` - The amount to transfer. + * * `target_account` - The target account. + * * `transfer_id` - An optional transfer ID (defaults to a random number). + * * `deploy_params` - The deployment parameters. + * * `payment_params` - The payment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, rpc_address) { + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + return ret; + } + /** + * Parses block transfers options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing block transfers options to be parsed. + * + * # Returns + * + * Parsed block transfers options as a `GetBlockTransfersOptions` struct. + * @param {any} options + * @returns {getBlockTransfersOptions} + */ + get_block_transfers_options(options) { + const ret = wasm.sdk_get_block_transfers_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getSpeculativeExecTxnOptions.__wrap(ret[0]); + return getBlockTransfersOptions.__wrap(ret[0]); } /** - * JS function for speculative execution. + * Retrieves block transfers information using the provided options. * * # Arguments * - * * `options` - The options for speculative execution. + * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecTxnOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} */ - speculative_exec(options) { + get_block_transfers(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getSpeculativeExecTxnOptions); + _assertClass(options, getBlockTransfersOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_speculative_exec(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_block_transfers(this.__wbg_ptr, ptr0); + return ret; + } + /** + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} + */ + chain_get_block_transfers(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBlockTransfersOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_chain_get_block_transfers(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Parses era summary options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing era summary options to be parsed. + * + * # Returns + * + * Parsed era summary options as a `GetEraSummaryOptions` struct. + * @param {any} options + * @returns {getEraSummaryOptions} + */ + get_era_summary_options(options) { + const ret = wasm.sdk_get_era_summary_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return getEraSummaryOptions.__wrap(ret[0]); + } + /** + * Retrieves era summary information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} + */ + get_era_summary(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getEraSummaryOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_era_summary(this.__wbg_ptr, ptr0); + return ret; + } + /** + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} + */ + chain_get_era_summary(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getEraSummaryOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_chain_get_era_summary(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Puts a transaction using the provided options. + * + * # Arguments + * + * * `transaction` - The `Transaction` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * + * # Returns + * + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the transaction process. + * @param {Transaction} transaction + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + put_transaction(transaction, verbosity, rpc_address) { + _assertClass(transaction, Transaction); + var ptr0 = transaction.__destroy_into_raw(); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + return ret; + } + /** + * JavaScript Alias for `put_transaction`. + * @param {Transaction} transaction + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + account_put_transaction(transaction, verbosity, rpc_address) { + _assertClass(transaction, Transaction); + var ptr0 = transaction.__destroy_into_raw(); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_account_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); return ret; } /** @@ -7288,33 +7550,37 @@ class SDK { return ret; } /** - * JS function for `make_transfer_transaction`. + * JS function for speculative transfer transaction. * * # Arguments * * * `maybe_source` - Optional transfer source uref. - * * `amount` - The transfer amount. - * * `target` - The target account. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - Optional transfer identifier. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `transaction_params` - The transactionment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. * @param {URef | undefined} maybe_source - * @param {string} target + * @param {string} target_account * @param {string} amount * @param {TransactionStrParams} transaction_params * @param {string | undefined} [maybe_id] - * @returns {Transaction} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - make_transfer_transaction(maybe_source, target, amount, transaction_params, maybe_id) { + speculative_transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { let ptr0 = 0; if (!isLikeNone(maybe_source)) { _assertClass(maybe_source, URef); ptr0 = maybe_source.__destroy_into_raw(); } - const ptr1 = passStringToWasm0(target, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len2 = WASM_VECTOR_LEN; @@ -7322,11 +7588,10 @@ class SDK { var ptr3 = transaction_params.__destroy_into_raw(); var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len4 = WASM_VECTOR_LEN; - const ret = wasm.sdk_make_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return Transaction.__wrap(ret[0]); + var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + return ret; } /** * Installs a smart contract with the specified parameters and returns the result. @@ -7360,7 +7625,7 @@ class SDK { return ret; } /** - * JS function for transferring funds. + * JS function for speculative transfer. * * # Arguments * @@ -7374,7 +7639,7 @@ class SDK { * * # Returns * - * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. * @param {string} amount * @param {string} target_account * @param {string | undefined} transfer_id @@ -7382,9 +7647,9 @@ class SDK { * @param {PaymentStrParams} payment_params * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, rpc_address) { + speculative_transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, rpc_address) { const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); @@ -7397,240 +7662,79 @@ class SDK { var ptr4 = payment_params.__destroy_into_raw(); var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); - return ret; - } - /** - * Retrieves node status information using the provided options. - * - * # Arguments - * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - get_node_status(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_node_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - info_get_status(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * Puts a deploy using the provided options. - * - * # Arguments - * - * * `deploy` - The `Deploy` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the deploy process. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - put_deploy(deploy, verbosity, rpc_address) { - _assertClass(deploy, Deploy); - var ptr0 = deploy.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); - return ret; - } - /** - * JavaScript Alias for `put_deploy`. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - account_put_deploy(deploy, verbosity, rpc_address) { - _assertClass(deploy, Deploy); - var ptr0 = deploy.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_account_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); - return ret; - } - /** - * Parses query balance options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing query balance options to be parsed. - * - * # Returns - * - * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. - * @param {any} options - * @returns {queryBalanceDetailsOptions} - */ - query_balance_details_options(options) { - const ret = wasm.sdk_query_balance_details_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return queryBalanceDetailsOptions.__wrap(ret[0]); - } - /** - * Retrieves balance information using the provided options. - * - * # Arguments - * - * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceDetailsOptions | undefined} [options] - * @returns {Promise} - */ - query_balance_details(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, queryBalanceDetailsOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_query_balance_details(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_speculative_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); return ret; } /** - * Parses query global state options from a JsValue. + * Parses block options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing query global state options to be parsed. + * * `options` - A JsValue containing block options to be parsed. * * # Returns * - * Parsed query global state options as a `QueryGlobalStateOptions` struct. + * Parsed block options as a `GetBlockOptions` struct. * @param {any} options - * @returns {queryGlobalStateOptions} + * @returns {getBlockOptions} */ - query_global_state_options(options) { - const ret = wasm.sdk_query_global_state_options(this.__wbg_ptr, options); + get_block_options(options) { + const ret = wasm.sdk_get_block_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return queryGlobalStateOptions.__wrap(ret[0]); + return getBlockOptions.__wrap(ret[0]); } /** - * Retrieves global state information using the provided options. + * Retrieves block information using the provided options. * * # Arguments * - * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryGlobalStateOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - query_global_state(options) { + get_block(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, queryGlobalStateOptions); + _assertClass(options, getBlockOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_query_global_state(this.__wbg_ptr, ptr0); - return ret; - } - /** - * Calls a smart contract entry point with the specified parameters and returns the result. - * - * # Arguments - * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_amount` - The payment amount as a string. - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the call. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {string} payment_amount - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - call_entrypoint_deploy(deploy_params, session_params, payment_amount, rpc_address) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_call_entrypoint_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + const ret = wasm.sdk_get_block(this.__wbg_ptr, ptr0); return ret; } /** - * Deserialize query_contract_key_options from a JavaScript object. - * @param {any} options - * @returns {queryContractKeyOptions} - */ - query_contract_key_options(options) { - const ret = wasm.sdk_query_contract_key_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return queryContractKeyOptions.__wrap(ret[0]); - } - /** - * JavaScript function for query_contract_key with deserialized options. - * @param {queryContractKeyOptions | undefined} [options] - * @returns {Promise} + * JavaScript Alias for the `get_block`. + * + * # Arguments + * + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - query_contract_key(options) { + chain_get_block(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, queryContractKeyOptions); + _assertClass(options, getBlockOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_query_contract_key(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_chain_get_block(this.__wbg_ptr, ptr0); return ret; } /** @@ -7706,413 +7810,303 @@ class SDK { return ret; } /** - * JS function for transaction transferring funds. - * - * # Arguments - * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { - let ptr0 = 0; - if (!isLikeNone(maybe_source)) { - _assertClass(maybe_source, URef); - ptr0 = maybe_source.__destroy_into_raw(); - } - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - _assertClass(transaction_params, TransactionStrParams); - var ptr3 = transaction_params.__destroy_into_raw(); - var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len4 = WASM_VECTOR_LEN; - var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); - return ret; - } - /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). - * Legacy alias - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} - */ - watchDeploy(events_url, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_watchDeploy(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return Watcher.__wrap(ret); - } - /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} - */ - watchTransaction(events_url, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_watchTransaction(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return Watcher.__wrap(ret); - } - /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). - * Legacy alias - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `deploy_hash` - The deploy hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} deploy_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} - */ - waitDeploy(events_url, deploy_hash, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(deploy_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_waitDeploy(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return ret; - } - /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `target_hash` - The transaction hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} target_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} - */ - waitTransaction(events_url, target_hash, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(target_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_waitTransaction(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return ret; - } - /** - * This function allows executing a deploy speculatively. - * - * # Arguments - * - * * `deploy_params` - Deployment parameters for the deploy. - * * `session_params` - Session parameters for the deploy. - * * `payment_params` - Payment parameters for the deploy. - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - speculative_deploy(deploy_params, session_params, payment_params, verbosity, rpc_address) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr2 = payment_params.__destroy_into_raw(); - var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_speculative_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); - return ret; - } - /** - * JS function for speculative transfer. - * - * # Arguments - * - * * `amount` - The amount to transfer. - * * `target_account` - The target account. - * * `transfer_id` - An optional transfer ID (defaults to a random number). - * * `deploy_params` - The deployment parameters. - * * `payment_params` - The payment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id - * @param {DeployStrParams} deploy_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - speculative_transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, rpc_address) { - const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - _assertClass(deploy_params, DeployStrParams); - var ptr3 = deploy_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr4 = payment_params.__destroy_into_raw(); - var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_speculative_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); - return ret; - } - /** - * Parses auction info options from a JsValue. + * Parses query balance options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing auction info options to be parsed. + * * `options` - A JsValue containing query balance options to be parsed. * * # Returns * - * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, - * or a `JsError` if deserialization fails. + * Parsed query balance options as a `QueryBalanceOptions` struct. * @param {any} options - * @returns {getAuctionInfoOptions} + * @returns {queryBalanceOptions} */ - get_auction_info_options(options) { - const ret = wasm.sdk_get_auction_info_options(this.__wbg_ptr, options); + query_balance_options(options) { + const ret = wasm.sdk_query_balance_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getAuctionInfoOptions.__wrap(ret[0]); + return queryBalanceOptions.__wrap(ret[0]); } /** - * Retrieves auction information using the provided options. + * Retrieves balance information using the provided options. * * # Arguments * - * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. + * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. + * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} + * @param {queryBalanceOptions | undefined} [options] + * @returns {Promise} */ - get_auction_info(options) { + query_balance(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getAuctionInfoOptions); + _assertClass(options, queryBalanceOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_auction_info(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_query_balance(this.__wbg_ptr, ptr0); return ret; } /** - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecTxnOptions} */ - state_get_auction_info_js_alias(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getAuctionInfoOptions); - ptr0 = options.__destroy_into_raw(); + get_speculative_exec_options(options) { + const ret = wasm.sdk_get_speculative_exec_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); } - const ret = wasm.sdk_state_get_auction_info_js_alias(this.__wbg_ptr, ptr0); - return ret; + return getSpeculativeExecTxnOptions.__wrap(ret[0]); } /** - * Parses era summary options from a JsValue. + * JS function for speculative execution. * * # Arguments * - * * `options` - A JsValue containing era summary options to be parsed. + * * `options` - The options for speculative execution. * * # Returns * - * Parsed era summary options as a `GetEraSummaryOptions` struct. + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecTxnOptions | undefined} [options] + * @returns {Promise} + */ + speculative_exec(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getSpeculativeExecTxnOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_speculative_exec(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Get options for speculative execution from a JavaScript value. * @param {any} options - * @returns {getEraSummaryOptions} + * @returns {getSpeculativeExecDeployOptions} */ - get_era_summary_options(options) { - const ret = wasm.sdk_get_era_summary_options(this.__wbg_ptr, options); + get_speculative_exec_deploy_options(options) { + const ret = wasm.sdk_get_speculative_exec_deploy_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getEraSummaryOptions.__wrap(ret[0]); + return getSpeculativeExecDeployOptions.__wrap(ret[0]); } /** - * Retrieves era summary information using the provided options. + * JS function for speculative execution. * * # Arguments * - * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. + * * `options` - The options for speculative execution. * * # Returns * - * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecDeployOptions | undefined} [options] + * @returns {Promise} */ - get_era_summary(options) { + speculative_exec_deploy(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getEraSummaryOptions); + _assertClass(options, getSpeculativeExecDeployOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_era_summary(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_speculative_exec_deploy(this.__wbg_ptr, ptr0); return ret; } /** - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * JS function for `make_deploy`. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_params` - The payment parameters. + * + * # Returns + * + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} */ - chain_get_era_summary(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getEraSummaryOptions); - ptr0 = options.__destroy_into_raw(); + make_deploy(deploy_params, session_params, payment_params) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + const ret = wasm.sdk_make_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); } - const ret = wasm.sdk_chain_get_era_summary(this.__wbg_ptr, ptr0); - return ret; + return Deploy.__wrap(ret[0]); } /** - * Parses query balance options from a JsValue. + * JS function for `make_transfer`. * * # Arguments * - * * `options` - A JsValue containing query balance options to be parsed. + * * `amount` - The transfer amount. + * * `target_account` - The target account. + * * `transfer_id` - Optional transfer identifier. + * * `deploy_params` - The deploy parameters. + * * `payment_params` - The payment parameters. * * # Returns * - * Parsed query balance options as a `QueryBalanceOptions` struct. - * @param {any} options - * @returns {queryBalanceOptions} + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} */ - query_balance_options(options) { - const ret = wasm.sdk_query_balance_options(this.__wbg_ptr, options); + make_transfer(amount, target_account, transfer_id, deploy_params, payment_params) { + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + const ret = wasm.sdk_make_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return queryBalanceOptions.__wrap(ret[0]); + return Deploy.__wrap(ret[0]); } /** - * Retrieves balance information using the provided options. + * JS function for `sign_transaction`. * * # Arguments * - * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. + * * `transaction` - The transaction to sign. + * * `secret_key` - The secret key for signing. * * # Returns * - * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceOptions | undefined} [options] - * @returns {Promise} + * The signed `Transaction`. + * @param {Transaction} transaction + * @param {string} secret_key + * @returns {Transaction} */ - query_balance(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, queryBalanceOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_query_balance(this.__wbg_ptr, ptr0); - return ret; + sign_transaction(transaction, secret_key) { + _assertClass(transaction, Transaction); + var ptr0 = transaction.__destroy_into_raw(); + const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_sign_transaction(this.__wbg_ptr, ptr0, ptr1, len1); + return Transaction.__wrap(ret); } /** - * Calls a smart contract entry point with the specified parameters and returns the result. + * Installs a smart contract with the specified parameters and returns the result. * * # Arguments * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Transaction Builder parameters. + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the call. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params + * Returns a `JsError` if there is an error during the installation. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - call_entrypoint(builder_params, transaction_params, rpc_address) { - _assertClass(builder_params, TransactionBuilderParams); - var ptr0 = builder_params.__destroy_into_raw(); - _assertClass(transaction_params, TransactionStrParams); - var ptr1 = transaction_params.__destroy_into_raw(); - var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_call_entrypoint(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); + install_deploy(deploy_params, session_params, payment_amount, rpc_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_install_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + return ret; + } + /** + * @param {string | undefined} [rpc_address] + * @param {Verbosity | undefined} [verbosity] + */ + constructor(rpc_address, verbosity) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_new(ptr0, len0, isLikeNone(verbosity) ? 3 : verbosity); + this.__wbg_ptr = ret >>> 0; + SDKFinalization.register(this, this.__wbg_ptr, this); + return this; + } + /** + * @param {string | undefined} [rpc_address] + * @returns {string} + */ + getRPCAddress(rpc_address) { + let deferred2_0; + let deferred2_1; + try { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_getRPCAddress(this.__wbg_ptr, ptr0, len0); + deferred2_0 = ret[0]; + deferred2_1 = ret[1]; + return getStringFromWasm0(ret[0], ret[1]); + } finally { + wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); + } + } + /** + * @param {string | undefined} [rpc_address] + */ + setRPCAddress(rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_setRPCAddress(this.__wbg_ptr, ptr0, len0); + if (ret[1]) { + throw takeFromExternrefTable0(ret[0]); + } + } + /** + * @param {Verbosity | undefined} [verbosity] + * @returns {Verbosity} + */ + getVerbosity(verbosity) { + const ret = wasm.sdk_getVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); return ret; } + /** + * @param {Verbosity | undefined} [verbosity] + */ + setVerbosity(verbosity) { + const ret = wasm.sdk_setVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); + if (ret[1]) { + throw takeFromExternrefTable0(ret[0]); + } + } } module.exports.SDK = SDK; @@ -8526,7 +8520,7 @@ class SpeculativeExecTxnResult { * @returns {BlockHash} */ get block_hash() { - const ret = wasm.speculativeexectxnresult_block_hash(this.__wbg_ptr); + const ret = wasm.speculativeexecresult_block_hash(this.__wbg_ptr); return BlockHash.__wrap(ret); } /** @@ -10837,7 +10831,7 @@ class getAuctionInfoOptions { * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -10849,7 +10843,7 @@ class getAuctionInfoOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -11172,13 +11166,13 @@ class getBlockTransfersOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -11190,20 +11184,20 @@ class getBlockTransfersOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } /** * @returns {string | undefined} @@ -11223,7 +11217,7 @@ class getBlockTransfersOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } } module.exports.getBlockTransfersOptions = getBlockTransfersOptions; @@ -11659,7 +11653,7 @@ class getEraInfoOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_geterainfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} @@ -11697,20 +11691,20 @@ class getEraInfoOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_geterainfooptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_geterainfooptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_geterainfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } module.exports.getEraInfoOptions = getEraInfoOptions; @@ -11760,13 +11754,13 @@ class getEraSummaryOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -11778,7 +11772,7 @@ class getEraSummaryOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -11798,20 +11792,20 @@ class getEraSummaryOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } module.exports.getEraSummaryOptions = getEraSummaryOptions; @@ -11972,7 +11966,7 @@ class getSpeculativeExecTxnOptions { set transaction_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getspeculativeexectxnoptions_transaction_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr, ptr0, len0); } /** * The transaction to execute. @@ -12014,14 +12008,14 @@ class getSpeculativeExecTxnOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getspeculativeexectxnoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * The verbosity level for logging. * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getspeculativeexectxnoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** @@ -12029,7 +12023,7 @@ class getSpeculativeExecTxnOptions { * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getspeculativeexectxnoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } module.exports.getSpeculativeExecTxnOptions = getSpeculativeExecTxnOptions; @@ -12079,13 +12073,13 @@ class getStateRootHashOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getstateroothashoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getstateroothashoptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -12097,7 +12091,7 @@ class getStateRootHashOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getstateroothashoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -12117,20 +12111,20 @@ class getStateRootHashOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getstateroothashoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getstateroothashoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getstateroothashoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } module.exports.getStateRootHashOptions = getStateRootHashOptions; @@ -13133,102 +13127,99 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) { return ret; }; -module.exports.__wbg_puttransactionresult_new = function(arg0) { - const ret = PutTransactionResult.__wrap(arg0); +module.exports.__wbg_getblocktransfersresult_new = function(arg0) { + const ret = GetBlockTransfersResult.__wrap(arg0); return ret; }; -module.exports.__wbg_geterasummaryresult_new = function(arg0) { - const ret = GetEraSummaryResult.__wrap(arg0); +module.exports.__wbindgen_error_new = function(arg0, arg1) { + const ret = new Error(getStringFromWasm0(arg0, arg1)); return ret; }; -module.exports.__wbg_getnodestatusresult_new = function(arg0) { - const ret = GetNodeStatusResult.__wrap(arg0); +module.exports.__wbg_speculativeexectxnresult_new = function(arg0) { + const ret = SpeculativeExecTxnResult.__wrap(arg0); return ret; }; -module.exports.__wbg_putdeployresult_new = function(arg0) { - const ret = PutDeployResult.__wrap(arg0); +module.exports.__wbg_getnodestatusresult_new = function(arg0) { + const ret = GetNodeStatusResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getVersion_821280958b37ff1f = function() { return handleError(function (arg0) { - const ret = arg0.getVersion(); +module.exports.__wbg_getdeployresult_new = function(arg0) { + const ret = GetDeployResult.__wrap(arg0); return ret; -}, arguments) }; +}; -module.exports.__wbindgen_error_new = function(arg0, arg1) { - const ret = new Error(getStringFromWasm0(arg0, arg1)); +module.exports.__wbg_getbalanceresult_new = function(arg0) { + const ret = GetBalanceResult.__wrap(arg0); return ret; }; -module.exports.__wbindgen_string_get = function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'string' ? obj : undefined; - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); +module.exports.__wbg_puttransactionresult_new = function(arg0) { + const ret = PutTransactionResult.__wrap(arg0); + return ret; }; -module.exports.__wbg_getaddressableentityresult_new = function(arg0) { - const ret = GetAddressableEntityResult.__wrap(arg0); +module.exports.__wbg_getauctioninforesult_new = function(arg0) { + const ret = GetAuctionInfoResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getdeployresult_new = function(arg0) { - const ret = GetDeployResult.__wrap(arg0); +module.exports.__wbg_geterainforesult_new = function(arg0) { + const ret = GetEraInfoResult.__wrap(arg0); return ret; }; -module.exports.__wbg_speculativeexectxnresult_new = function(arg0) { - const ret = SpeculativeExecTxnResult.__wrap(arg0); +module.exports.__wbg_geterasummaryresult_new = function(arg0) { + const ret = GetEraSummaryResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getchainspecresult_new = function(arg0) { - const ret = GetChainspecResult.__wrap(arg0); +module.exports.__wbg_getpeersresult_new = function(arg0) { + const ret = GetPeersResult.__wrap(arg0); return ret; }; -module.exports.__wbg_speculativeexecresult_new = function(arg0) { - const ret = SpeculativeExecResult.__wrap(arg0); +module.exports.__wbg_getaddressableentityresult_new = function(arg0) { + const ret = GetAddressableEntityResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getaccountresult_new = function(arg0) { - const ret = GetAccountResult.__wrap(arg0); +module.exports.__wbg_listrpcsresult_new = function(arg0) { + const ret = ListRpcsResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getvalidatorchangesresult_new = function(arg0) { - const ret = GetValidatorChangesResult.__wrap(arg0); +module.exports.__wbg_putdeployresult_new = function(arg0) { + const ret = PutDeployResult.__wrap(arg0); return ret; }; -module.exports.__wbg_listrpcsresult_new = function(arg0) { - const ret = ListRpcsResult.__wrap(arg0); +module.exports.__wbg_queryglobalstateresult_new = function(arg0) { + const ret = QueryGlobalStateResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getauctioninforesult_new = function(arg0) { - const ret = GetAuctionInfoResult.__wrap(arg0); +module.exports.__wbg_disconnectFromSite_2d2501f4e00e57c8 = function() { return handleError(function (arg0) { + const ret = arg0.disconnectFromSite(); return ret; -}; +}, arguments) }; -module.exports.__wbg_geterainforesult_new = function(arg0) { - const ret = GetEraInfoResult.__wrap(arg0); +module.exports.__wbindgen_boolean_get = function(arg0) { + const v = arg0; + const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; return ret; }; -module.exports.__wbg_getpeersresult_new = function(arg0) { - const ret = GetPeersResult.__wrap(arg0); +module.exports.__wbg_speculativeexecresult_new = function(arg0) { + const ret = SpeculativeExecResult.__wrap(arg0); return ret; }; -module.exports.__wbg_deploy_new = function(arg0) { - const ret = Deploy.__wrap(arg0); +module.exports.__wbg_getchainspecresult_new = function(arg0) { + const ret = GetChainspecResult.__wrap(arg0); return ret; }; @@ -13237,71 +13228,74 @@ module.exports.__wbg_getblockresult_new = function(arg0) { return ret; }; -module.exports.__wbg_gettransactionresult_new = function(arg0) { - const ret = GetTransactionResult.__wrap(arg0); +module.exports.__wbg_getdictionaryitemresult_new = function(arg0) { + const ret = GetDictionaryItemResult.__wrap(arg0); return ret; }; -module.exports.__wbg_isConnected_f84ffbccb9898623 = function() { return handleError(function (arg0) { - const ret = arg0.isConnected(); +module.exports.__wbg_getaccountresult_new = function(arg0) { + const ret = GetAccountResult.__wrap(arg0); return ret; -}, arguments) }; +}; -module.exports.__wbindgen_boolean_get = function(arg0) { - const v = arg0; - const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; +module.exports.__wbg_getstateroothashresult_new = function(arg0) { + const ret = GetStateRootHashResult.__wrap(arg0); return ret; }; -module.exports.__wbg_queryglobalstateresult_new = function(arg0) { - const ret = QueryGlobalStateResult.__wrap(arg0); +module.exports.__wbg_getvalidatorchangesresult_new = function(arg0) { + const ret = GetValidatorChangesResult.__wrap(arg0); return ret; }; -module.exports.__wbg_disconnectFromSite_2d2501f4e00e57c8 = function() { return handleError(function (arg0) { - const ret = arg0.disconnectFromSite(); +module.exports.__wbg_gettransactionresult_new = function(arg0) { + const ret = GetTransactionResult.__wrap(arg0); return ret; -}, arguments) }; +}; -module.exports.__wbg_requestSwitchAccount_0e44115ee2041c5e = function() { return handleError(function (arg0) { - const ret = arg0.requestSwitchAccount(); +module.exports.__wbg_getVersion_821280958b37ff1f = function() { return handleError(function (arg0) { + const ret = arg0.getVersion(); return ret; }, arguments) }; -module.exports.__wbg_getdictionaryitemresult_new = function(arg0) { - const ret = GetDictionaryItemResult.__wrap(arg0); - return ret; +module.exports.__wbindgen_string_get = function(arg0, arg1) { + const obj = arg1; + const ret = typeof(obj) === 'string' ? obj : undefined; + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); + getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; -module.exports.__wbg_getbalanceresult_new = function(arg0) { - const ret = GetBalanceResult.__wrap(arg0); +module.exports.__wbg_transaction_new = function(arg0) { + const ret = Transaction.__wrap(arg0); return ret; }; -module.exports.__wbg_querybalancedetailsresult_new = function(arg0) { - const ret = QueryBalanceDetailsResult.__wrap(arg0); +module.exports.__wbg_deploy_new = function(arg0) { + const ret = Deploy.__wrap(arg0); return ret; }; -module.exports.__wbg_querybalanceresult_new = function(arg0) { - const ret = QueryBalanceResult.__wrap(arg0); +module.exports.__wbg_requestSwitchAccount_0e44115ee2041c5e = function() { return handleError(function (arg0) { + const ret = arg0.requestSwitchAccount(); return ret; -}; +}, arguments) }; -module.exports.__wbg_getstateroothashresult_new = function(arg0) { - const ret = GetStateRootHashResult.__wrap(arg0); +module.exports.__wbg_querybalancedetailsresult_new = function(arg0) { + const ret = QueryBalanceDetailsResult.__wrap(arg0); return ret; }; -module.exports.__wbg_getblocktransfersresult_new = function(arg0) { - const ret = GetBlockTransfersResult.__wrap(arg0); +module.exports.__wbg_querybalanceresult_new = function(arg0) { + const ret = QueryBalanceResult.__wrap(arg0); return ret; }; -module.exports.__wbg_transaction_new = function(arg0) { - const ret = Transaction.__wrap(arg0); +module.exports.__wbg_isConnected_f84ffbccb9898623 = function() { return handleError(function (arg0) { + const ret = arg0.isConnected(); return ret; -}; +}, arguments) }; module.exports.__wbg_signMessage_c2bf40612e99c084 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { const ret = arg0.signMessage(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); @@ -13318,26 +13312,11 @@ module.exports.__wbg_getActivePublicKey_7cd2af2b4a2b810f = function() { return h return ret; }, arguments) }; -module.exports.__wbindgen_cb_drop = function(arg0) { - const obj = arg0.original; - if (obj.cnt-- == 1) { - obj.a = 0; - return true; - } - const ret = false; - return ret; -}; - module.exports.__wbg_messages_new = function(arg0) { const ret = Messages.__wrap(arg0); return ret; }; -module.exports.__wbindgen_is_undefined = function(arg0) { - const ret = arg0 === undefined; - return ret; -}; - module.exports.__wbg_error_d52bf4e1868fa715 = function(arg0, arg1) { console.error(getStringFromWasm0(arg0, arg1)); }; @@ -13346,49 +13325,54 @@ module.exports.__wbg_log_5199e4d2d51afa95 = function(arg0, arg1) { console.log(getStringFromWasm0(arg0, arg1)); }; -module.exports.__wbindgen_jsval_eq = function(arg0, arg1) { - const ret = arg0 === arg1; +module.exports.__wbindgen_cb_drop = function(arg0) { + const obj = arg0.original; + if (obj.cnt-- == 1) { + obj.a = 0; + return true; + } + const ret = false; return ret; }; -module.exports.__wbg_CasperWalletProvider_e342cf6a96cfbb6c = typeof CasperWalletProvider == 'function' ? CasperWalletProvider : notDefined('CasperWalletProvider'); - -module.exports.__wbg_sign_5740ada8ba2ef8c3 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - const ret = arg0.sign(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); +module.exports.__wbg_subscription_unwrap = function(arg0) { + const ret = Subscription.__unwrap(arg0); return ret; -}, arguments) }; +}; module.exports.__wbg_messages_unwrap = function(arg0) { const ret = Messages.__unwrap(arg0); return ret; }; -module.exports.__wbg_subscription_unwrap = function(arg0) { - const ret = Subscription.__unwrap(arg0); - return ret; -}; +module.exports.__wbg_CasperWalletProvider_e342cf6a96cfbb6c = typeof CasperWalletProvider == 'function' ? CasperWalletProvider : notDefined('CasperWalletProvider'); module.exports.__wbindgen_is_null = function(arg0) { const ret = arg0 === null; return ret; }; -module.exports.__wbg_fetch_f8d735ba6fe1b719 = typeof fetch == 'function' ? fetch : notDefined('fetch'); - -module.exports.__wbg_getReader_584431a478f1339c = function() { return handleError(function (arg0) { - const ret = arg0.getReader(); +module.exports.__wbindgen_is_undefined = function(arg0) { + const ret = arg0 === undefined; return ret; -}, arguments) }; +}; -module.exports.__wbg_done_510de141aaf69a99 = function(arg0) { - const ret = arg0.done; +module.exports.__wbindgen_jsval_eq = function(arg0, arg1) { + const ret = arg0 === arg1; return ret; }; -module.exports.__wbg_value_3ef4965e9c7085be = function(arg0) { - const ret = arg0.value; +module.exports.__wbg_sign_5740ada8ba2ef8c3 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + const ret = arg0.sign(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); return ret; -}; +}, arguments) }; + +module.exports.__wbg_fetch_f8d735ba6fe1b719 = typeof fetch == 'function' ? fetch : notDefined('fetch'); + +module.exports.__wbg_getReader_7a604d2d7b2f6e3e = function() { return handleError(function (arg0) { + const ret = arg0.getReader(); + return ret; +}, arguments) }; module.exports.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) { const ret = arg0.queueMicrotask; @@ -13440,6 +13424,16 @@ module.exports.__wbg_abort_c57daab47a6c1215 = function(arg0) { arg0.abort(); }; +module.exports.__wbg_getdone_38a59a1c17131633 = function(arg0) { + const ret = arg0.done; + return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; +}; + +module.exports.__wbg_getvalue_674bb48c8380247b = function(arg0) { + const ret = arg0.value; + return ret; +}; + module.exports.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) { const ret = arg0.fetch(arg1); return ret; @@ -13833,13 +13827,13 @@ module.exports.__wbindgen_memory = function() { return ret; }; -module.exports.__wbindgen_closure_wrapper5641 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1011, __wbg_adapter_36); +module.exports.__wbindgen_closure_wrapper5591 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1018, __wbg_adapter_36); return ret; }; -module.exports.__wbindgen_closure_wrapper5694 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1025, __wbg_adapter_39); +module.exports.__wbindgen_closure_wrapper5628 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1028, __wbg_adapter_39); return ret; }; diff --git a/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm b/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm index e6d9e5a1..f25e05cc 100644 Binary files a/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm and b/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm differ diff --git a/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm.d.ts b/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm.d.ts index 8f8e19fa..de3698bd 100644 --- a/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm.d.ts +++ b/pkg-nodejs/casper_rust_wasm_sdk_bg.wasm.d.ts @@ -1,383 +1,14 @@ /* tslint:disable */ /* eslint-disable */ export const memory: WebAssembly.Memory; -export function __wbg_urefaddr_free(a: number, b: number): void; -export function urefaddr_new(a: number, b: number): Array; +export function __wbg_peerentry_free(a: number, b: number): void; +export function peerentry_node_id(a: number): Array; +export function peerentry_address(a: number): Array; export function __wbg_blockidentifier_free(a: number, b: number): void; export function blockidentifier_new(a: number): number; export function blockidentifier_from_hash(a: number): number; export function blockidentifier_fromHeight(a: number): number; export function blockidentifier_toJson(a: number): number; -export function __wbg_eraid_free(a: number, b: number): void; -export function eraid_new(a: number): number; -export function eraid_value(a: number): number; -export function __wbg_putdeployresult_free(a: number, b: number): void; -export function putdeployresult_api_version(a: number): number; -export function putdeployresult_deploy_hash(a: number): number; -export function putdeployresult_toJson(a: number): number; -export function sdk_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function __wbg_getchainspecresult_free(a: number, b: number): void; -export function getchainspecresult_api_version(a: number): number; -export function getchainspecresult_chainspec_bytes(a: number): number; -export function getchainspecresult_toJson(a: number): number; -export function sdk_get_chainspec(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_chainspec(a: number, b: number, c: number, d: number): number; -export function __wbg_getdictionaryitemresult_free(a: number, b: number): void; -export function getdictionaryitemresult_api_version(a: number): number; -export function getdictionaryitemresult_dictionary_key(a: number): Array; -export function getdictionaryitemresult_stored_value(a: number): number; -export function getdictionaryitemresult_merkle_proof(a: number): Array; -export function getdictionaryitemresult_toJson(a: number): number; -export function __wbg_getdictionaryitemoptions_free(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_getdictionaryitemoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getdictionaryitemoptions_state_root_hash(a: number): number; -export function __wbg_set_getdictionaryitemoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_dictionary_item_params(a: number): number; -export function __wbg_set_getdictionaryitemoptions_dictionary_item_params(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_dictionary_item_identifier(a: number): number; -export function __wbg_set_getdictionaryitemoptions_dictionary_item_identifier(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_rpc_address(a: number): Array; -export function __wbg_set_getdictionaryitemoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getdictionaryitemoptions_verbosity(a: number): number; -export function __wbg_set_getdictionaryitemoptions_verbosity(a: number, b: number): void; -export function sdk_get_dictionary_item_options(a: number, b: number): Array; -export function sdk_get_dictionary_item(a: number, b: number): number; -export function sdk_state_get_dictionary_item(a: number, b: number): number; -export function __wbg_getaddressableentityresult_free(a: number, b: number): void; -export function getaddressableentityresult_api_version(a: number): number; -export function getaddressableentityresult_entity_result(a: number): number; -export function getaddressableentityresult_merkle_proof(a: number): Array; -export function getaddressableentityresult_toJson(a: number): number; -export function __wbg_getentityoptions_free(a: number, b: number): void; -export function __wbg_get_getentityoptions_entity_identifier(a: number): number; -export function __wbg_set_getentityoptions_entity_identifier(a: number, b: number): void; -export function __wbg_get_getentityoptions_entity_identifier_as_string(a: number): Array; -export function __wbg_set_getentityoptions_entity_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getentityoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getentityoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getentityoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getentityoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getentityoptions_rpc_address(a: number): Array; -export function __wbg_set_getentityoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getentityoptions_verbosity(a: number): number; -export function __wbg_set_getentityoptions_verbosity(a: number, b: number): void; -export function sdk_get_entity_options(a: number, b: number): Array; -export function sdk_get_entity(a: number, b: number): number; -export function sdk_state_get_entity(a: number, b: number): number; -export function __wbg_getpeersresult_free(a: number, b: number): void; -export function getpeersresult_api_version(a: number): number; -export function getpeersresult_peers(a: number): number; -export function getpeersresult_toJson(a: number): number; -export function sdk_get_peers(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_peers(a: number, b: number, c: number, d: number): number; -export function __wbg_getvalidatorchangesresult_free(a: number, b: number): void; -export function getvalidatorchangesresult_api_version(a: number): number; -export function getvalidatorchangesresult_changes(a: number): number; -export function getvalidatorchangesresult_toJson(a: number): number; -export function sdk_get_validator_changes(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_validator_change(a: number, b: number, c: number, d: number): number; -export function __wbg_listrpcsresult_free(a: number, b: number): void; -export function listrpcsresult_api_version(a: number): number; -export function listrpcsresult_name(a: number): Array; -export function listrpcsresult_schema(a: number): number; -export function listrpcsresult_toJson(a: number): number; -export function sdk_list_rpcs(a: number, b: number, c: number, d: number): number; -export function sdk_sign_transaction(a: number, b: number, c: number, d: number): number; -export function sdk_query_contract_dict_options(a: number, b: number): Array; -export function sdk_query_contract_dict(a: number, b: number): number; -export function __wbg_get_querycontractdictoptions_dictionary_item_params(a: number): number; -export function __wbg_get_querycontractdictoptions_dictionary_item_identifier(a: number): number; -export function __wbg_set_querycontractdictoptions_verbosity(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_state_root_hash(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_set_querycontractdictoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_querycontractdictoptions_free(a: number, b: number): void; -export function __wbg_get_querycontractdictoptions_state_root_hash(a: number): number; -export function __wbg_get_querycontractdictoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_get_querycontractdictoptions_rpc_address(a: number): Array; -export function __wbg_get_querycontractdictoptions_verbosity(a: number): number; -export function __wbg_set_querycontractdictoptions_dictionary_item_params(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_dictionary_item_identifier(a: number, b: number): void; -export function __wbg_accessrights_free(a: number, b: number): void; -export function accessrights_NONE(): number; -export function accessrights_READ(): number; -export function accessrights_WRITE(): number; -export function accessrights_ADD(): number; -export function accessrights_READ_ADD(): number; -export function accessrights_READ_WRITE(): number; -export function accessrights_ADD_WRITE(): number; -export function accessrights_READ_ADD_WRITE(): number; -export function accessrights_new(a: number): Array; -export function accessrights_from_bits(a: number, b: number, c: number): number; -export function accessrights_is_readable(a: number): number; -export function accessrights_is_writeable(a: number): number; -export function accessrights_is_addable(a: number): number; -export function accessrights_is_none(a: number): number; -export function __wbg_entityaddr_free(a: number, b: number): void; -export function entityaddr_fromFormattedStr(a: number, b: number): Array; -export function entityaddr_toFormattedString(a: number): Array; -export function entityaddr_toHexString(a: number): Array; -export function entityaddr_toJson(a: number): number; -export function __wbg_addressableentityhash_free(a: number, b: number): void; -export function addressableentityhash_new_js_alias(a: number, b: number): Array; -export function addressableentityhash_fromFormattedStr(a: number, b: number): Array; -export function addressableentityhash_toFormattedString(a: number): Array; -export function addressableentityhash_fromUint8Array(a: number, b: number): number; -export function contracthash_new_js_alias(a: number, b: number): Array; -export function contracthash_fromFormattedStr(a: number, b: number): Array; -export function contracthash_toFormattedString(a: number): Array; -export function contracthash_fromUint8Array(a: number, b: number): number; -export function __wbg_deploy_free(a: number, b: number): void; -export function deploy_new(a: number): number; -export function deploy_toJson(a: number): number; -export function deploy_withPaymentAndSession(a: number, b: number, c: number): Array; -export function deploy_withTransfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): Array; -export function deploy_withTTL(a: number, b: number, c: number, d: number, e: number): number; -export function deploy_withTimestamp(a: number, b: number, c: number, d: number, e: number): number; -export function deploy_withChainName(a: number, b: number, c: number, d: number, e: number): number; -export function deploy_withAccount(a: number, b: number, c: number, d: number): number; -export function deploy_withEntryPointName(a: number, b: number, c: number, d: number, e: number): number; -export function deploy_withHash(a: number, b: number, c: number, d: number): number; -export function deploy_withPackageHash(a: number, b: number, c: number, d: number): number; -export function deploy_withModuleBytes(a: number, b: number, c: number, d: number): number; -export function deploy_withSecretKey(a: number, b: number, c: number): number; -export function deploy_withStandardPayment(a: number, b: number, c: number, d: number, e: number): number; -export function deploy_withPayment(a: number, b: number, c: number, d: number): number; -export function deploy_withSession(a: number, b: number, c: number, d: number): number; -export function deploy_validateDeploySize(a: number): number; -export function deploy_isValid(a: number): number; -export function deploy_hash(a: number): number; -export function deploy_hasValidHash(a: number): number; -export function deploy_isExpired(a: number): number; -export function deploy_sign(a: number, b: number, c: number): number; -export function deploy_approvalsHash(a: number): number; -export function deploy_approvals(a: number): number; -export function deploy_isTransfer(a: number): number; -export function deploy_isStandardPayment(a: number, b: number): number; -export function deploy_isStoredContract(a: number): number; -export function deploy_isStoredContractPackage(a: number): number; -export function deploy_isModuleBytes(a: number): number; -export function deploy_isByName(a: number): number; -export function deploy_byName(a: number): Array; -export function deploy_entryPointName(a: number): Array; -export function deploy_addSignature(a: number, b: number, c: number, d: number, e: number): number; -export function deploy_TTL(a: number): Array; -export function deploy_timestamp(a: number): Array; -export function deploy_chainName(a: number): Array; -export function deploy_account(a: number): Array; -export function deploy_paymentAmount(a: number, b: number): Array; -export function deploy_args(a: number): number; -export function deploy_addArg(a: number, b: number, c: number, d: number): Array; -export function __wbg_paymentstrparams_free(a: number, b: number): void; -export function paymentstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number): number; -export function paymentstrparams_payment_amount(a: number): Array; -export function paymentstrparams_set_payment_amount(a: number, b: number, c: number): void; -export function paymentstrparams_payment_hash(a: number): Array; -export function paymentstrparams_set_payment_hash(a: number, b: number, c: number): void; -export function paymentstrparams_payment_name(a: number): Array; -export function paymentstrparams_set_payment_name(a: number, b: number, c: number): void; -export function paymentstrparams_payment_package_hash(a: number): Array; -export function paymentstrparams_set_payment_package_hash(a: number, b: number, c: number): void; -export function paymentstrparams_payment_package_name(a: number): Array; -export function paymentstrparams_set_payment_package_name(a: number, b: number, c: number): void; -export function paymentstrparams_payment_path(a: number): Array; -export function paymentstrparams_set_payment_path(a: number, b: number, c: number): void; -export function paymentstrparams_payment_args_simple(a: number): number; -export function paymentstrparams_set_payment_args_simple(a: number, b: number): void; -export function paymentstrparams_payment_args_json(a: number): Array; -export function paymentstrparams_set_payment_args_json(a: number, b: number, c: number): void; -export function paymentstrparams_payment_version(a: number): Array; -export function paymentstrparams_set_payment_version(a: number, b: number, c: number): void; -export function paymentstrparams_payment_entry_point(a: number): Array; -export function paymentstrparams_set_payment_entry_point(a: number, b: number, c: number): void; -export function __wbg_key_free(a: number, b: number): void; -export function key_new(a: number): Array; -export function key_toJson(a: number): number; -export function key_fromURef(a: number): number; -export function key_fromDeployInfo(a: number): number; -export function key_fromAccount(a: number): number; -export function key_fromHash(a: number): number; -export function key_fromTransfer(a: number, b: number): number; -export function key_fromEraInfo(a: number): number; -export function key_fromBalance(a: number): number; -export function key_fromBid(a: number): number; -export function key_fromWithdraw(a: number): number; -export function key_fromDictionaryAddr(a: number): number; -export function key_asDictionaryAddr(a: number): number; -export function key_fromSystemEntityRegistry(): number; -export function key_fromEraSummary(): number; -export function key_fromUnbond(a: number): number; -export function key_fromChainspecRegistry(): number; -export function key_fromChecksumRegistry(): number; -export function key_toFormattedString(a: number): Array; -export function key_fromFormattedString(a: number, b: number): Array; -export function key_fromDictionaryKey(a: number, b: number, c: number): number; -export function key_isDictionaryKey(a: number): number; -export function key_intoAccount(a: number): number; -export function key_intoHash(a: number): number; -export function key_asBalance(a: number): number; -export function key_intoURef(a: number): number; -export function key_urefToHash(a: number): number; -export function key_withdrawToUnbond(a: number): number; -export function __wbg_transfertarget_free(a: number, b: number): void; -export function transfertarget_new(a: number, b: number, c: number, d: number): number; -export function __wbg_transactionbuilderparams_free(a: number, b: number): void; -export function transactionbuilderparams_newSession(a: number, b: number): number; -export function transactionbuilderparams_newTransfer(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function transactionbuilderparams_newInvocableEntity(a: number, b: number, c: number): number; -export function transactionbuilderparams_newInvocableEntityAlias(a: number, b: number, c: number, d: number): number; -export function transactionbuilderparams_newPackage(a: number, b: number, c: number, d: number, e: number): number; -export function transactionbuilderparams_newPackageAlias(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function transactionbuilderparams_newAddBid(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function transactionbuilderparams_newDelegate(a: number, b: number, c: number, d: number): number; -export function transactionbuilderparams_newUndelegate(a: number, b: number, c: number, d: number): number; -export function transactionbuilderparams_newRedelegate(a: number, b: number, c: number, d: number, e: number): number; -export function transactionbuilderparams_newWithdrawBid(a: number, b: number, c: number): number; -export function transactionbuilderparams_kind(a: number): number; -export function transactionbuilderparams_set_kind(a: number, b: number): void; -export function transactionbuilderparams_transaction_bytes(a: number): number; -export function transactionbuilderparams_set_transaction_bytes(a: number, b: number): void; -export function transactionbuilderparams_maybe_source(a: number): number; -export function transactionbuilderparams_set_maybe_source(a: number, b: number): void; -export function transactionbuilderparams_target(a: number): number; -export function transactionbuilderparams_set_target(a: number, b: number): void; -export function transactionbuilderparams_amount(a: number): Array; -export function transactionbuilderparams_set_amount(a: number, b: number, c: number): void; -export function transactionbuilderparams_maybe_id(a: number): Array; -export function transactionbuilderparams_set_maybe_id(a: number, b: number): void; -export function transactionbuilderparams_entity_hash(a: number): number; -export function transactionbuilderparams_set_entity_hash(a: number, b: number): void; -export function transactionbuilderparams_entity_alias(a: number): Array; -export function transactionbuilderparams_set_entity_alias(a: number, b: number, c: number): void; -export function transactionbuilderparams_entry_point(a: number): Array; -export function transactionbuilderparams_set_entry_point(a: number, b: number, c: number): void; -export function transactionbuilderparams_package_hash(a: number): number; -export function transactionbuilderparams_set_package_hash(a: number, b: number): void; -export function transactionbuilderparams_package_alias(a: number): Array; -export function transactionbuilderparams_set_package_alias(a: number, b: number, c: number): void; -export function transactionbuilderparams_public_key(a: number): number; -export function transactionbuilderparams_set_public_key(a: number, b: number): void; -export function transactionbuilderparams_delegation_rate(a: number): number; -export function transactionbuilderparams_set_delegation_rate(a: number, b: number): void; -export function transactionbuilderparams_delegator(a: number): number; -export function transactionbuilderparams_set_delegator(a: number, b: number): void; -export function transactionbuilderparams_validator(a: number): number; -export function transactionbuilderparams_set_validator(a: number, b: number): void; -export function transactionbuilderparams_new_validator(a: number): number; -export function transactionbuilderparams_set_new_validator(a: number, b: number): void; -export function transactionbuilderparams_minimum_delegation_amount(a: number): Array; -export function transactionbuilderparams_set_minimum_delegation_amount(a: number, b: number): void; -export function transactionbuilderparams_maximum_delegation_amount(a: number): Array; -export function transactionbuilderparams_set_maximum_delegation_amount(a: number, b: number): void; -export function transactionbuilderparams_is_install_upgrade(a: number): number; -export function transactionbuilderparams_set_is_install_upgrade(a: number, b: number): void; -export function __wbg_getblockresult_free(a: number, b: number): void; -export function getblockresult_api_version(a: number): number; -export function getblockresult_block(a: number): number; -export function getblockresult_toJson(a: number): number; -export function __wbg_getblockoptions_free(a: number, b: number): void; -export function __wbg_get_getblockoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getblockoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getblockoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getblockoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getblockoptions_rpc_address(a: number): Array; -export function __wbg_set_getblockoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getblockoptions_verbosity(a: number): number; -export function __wbg_set_getblockoptions_verbosity(a: number, b: number): void; -export function sdk_get_block_options(a: number, b: number): Array; -export function sdk_get_block(a: number, b: number): number; -export function sdk_chain_get_block(a: number, b: number): number; -export function __wbg_getblocktransfersresult_free(a: number, b: number): void; -export function getblocktransfersresult_api_version(a: number): number; -export function getblocktransfersresult_block_hash(a: number): number; -export function getblocktransfersresult_transfers(a: number): number; -export function getblocktransfersresult_toJson(a: number): number; -export function sdk_get_block_transfers_options(a: number, b: number): Array; -export function sdk_get_block_transfers(a: number, b: number): number; -export function sdk_chain_get_block_transfers(a: number, b: number): number; -export function __wbg_speculativeexecresult_free(a: number, b: number): void; -export function speculativeexecresult_api_version(a: number): number; -export function speculativeexecresult_block_hash(a: number): number; -export function speculativeexecresult_execution_result(a: number): number; -export function speculativeexecresult_toJson(a: number): number; -export function __wbg_getspeculativeexecdeployoptions_free(a: number, b: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_deploy_as_string(a: number): Array; -export function __wbg_set_getspeculativeexecdeployoptions_deploy_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_deploy(a: number): number; -export function __wbg_set_getspeculativeexecdeployoptions_deploy(a: number, b: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_rpc_address(a: number): Array; -export function __wbg_set_getspeculativeexecdeployoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_verbosity(a: number): number; -export function __wbg_set_getspeculativeexecdeployoptions_verbosity(a: number, b: number): void; -export function sdk_get_speculative_exec_deploy_options(a: number, b: number): Array; -export function sdk_speculative_exec_deploy(a: number, b: number): number; -export function __wbg_puttransactionresult_free(a: number, b: number): void; -export function puttransactionresult_api_version(a: number): number; -export function puttransactionresult_transaction_hash(a: number): number; -export function puttransactionresult_toJson(a: number): number; -export function sdk_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_make_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; -export function sdk_sign_deploy(a: number, b: number, c: number, d: number): number; -export function __wbg_sdk_free(a: number, b: number): void; -export function sdk_new(a: number, b: number, c: number): number; -export function sdk_getRPCAddress(a: number, b: number, c: number): Array; -export function sdk_setRPCAddress(a: number, b: number, c: number): Array; -export function sdk_getVerbosity(a: number, b: number): number; -export function sdk_setVerbosity(a: number, b: number): Array; -export function hexToString(a: number, b: number): Array; -export function hexToUint8Array(a: number, b: number): Array; -export function uint8ArrayToBytes(a: number): number; -export function motesToCSPR(a: number, b: number): Array; -export function jsonPrettyPrint(a: number, b: number): Array; -export function publicKeyFromSecretKey(a: number, b: number): Array; -export function generateSecretKey(): Array; -export function generateSecretKey_secp256k1(): Array; -export function accountHashToBase64Key(a: number, b: number): Array; -export function getTimestamp(): number; -export function encodeLowerBlake2b(a: number, b: number): number; -export function makeDictionaryItemKey(a: number, b: number, c: number): Array; -export function __wbg_get_getblocktransfersoptions_maybe_block_identifier(a: number): number; -export function __wbg_getblocktransfersoptions_free(a: number, b: number): void; -export function __wbg_set_getblocktransfersoptions_verbosity(a: number, b: number): void; -export function __wbg_set_getblocktransfersoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_getblocktransfersoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getblocktransfersoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_get_getblocktransfersoptions_rpc_address(a: number): Array; -export function __wbg_get_getblocktransfersoptions_verbosity(a: number): number; -export function __wbg_set_getblocktransfersoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_contracthash_free(a: number, b: number): void; -export function __wbg_transferaddr_free(a: number, b: number): void; -export function transferaddr_new(a: number, b: number): Array; -export function __wbg_bytes_free(a: number, b: number): void; -export function bytes_new(): number; -export function bytes_fromUint8Array(a: number): number; -export function __wbg_argssimple_free(a: number, b: number): void; -export function __wbg_signatureresponse_free(a: number, b: number): void; -export function signatureresponse_is_cancelled(a: number): number; -export function signatureresponse_get_signature_hex(a: number): Array; -export function signatureresponse_get_signature(a: number): Array; -export function __wbg_getaccountresult_free(a: number, b: number): void; -export function getaccountresult_api_version(a: number): number; -export function getaccountresult_account(a: number): number; -export function getaccountresult_merkle_proof(a: number): Array; -export function getaccountresult_toJson(a: number): number; -export function __wbg_getaccountoptions_free(a: number, b: number): void; -export function __wbg_get_getaccountoptions_account_identifier(a: number): number; -export function __wbg_set_getaccountoptions_account_identifier(a: number, b: number): void; -export function __wbg_get_getaccountoptions_account_identifier_as_string(a: number): Array; -export function __wbg_set_getaccountoptions_account_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getaccountoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getaccountoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getaccountoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getaccountoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getaccountoptions_rpc_address(a: number): Array; -export function __wbg_set_getaccountoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getaccountoptions_verbosity(a: number): number; -export function __wbg_set_getaccountoptions_verbosity(a: number, b: number): void; -export function sdk_get_account_options(a: number, b: number): Array; -export function sdk_get_account(a: number, b: number): number; -export function sdk_state_get_account_info(a: number, b: number): number; export function __wbg_getbalanceresult_free(a: number, b: number): void; export function getbalanceresult_api_version(a: number): number; export function getbalanceresult_balance_value(a: number): number; @@ -399,42 +30,80 @@ export function __wbg_set_getbalanceoptions_verbosity(a: number, b: number): voi export function sdk_get_balance_options(a: number, b: number): Array; export function sdk_get_balance(a: number, b: number): number; export function sdk_state_get_balance(a: number, b: number): number; -export function __wbg_geterainforesult_free(a: number, b: number): void; -export function geterainforesult_api_version(a: number): number; -export function geterainforesult_era_summary(a: number): number; -export function geterainforesult_toJson(a: number): number; -export function __wbg_geterainfooptions_free(a: number, b: number): void; -export function __wbg_get_geterainfooptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_geterainfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_geterainfooptions_rpc_address(a: number): Array; -export function __wbg_set_geterainfooptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_geterainfooptions_verbosity(a: number): number; -export function __wbg_set_geterainfooptions_verbosity(a: number, b: number): void; -export function sdk_get_era_info_options(a: number, b: number): Array; -export function sdk_get_era_info(a: number, b: number): number; -export function sdk_chain_get_era_info_by_switch_block(a: number, b: number): number; -export function sdk_make_deploy(a: number, b: number, c: number, d: number): Array; -export function sdk_make_transaction(a: number, b: number, c: number): Array; -export function __wbg_get_geterainfooptions_maybe_block_identifier(a: number): number; -export function __wbg_set_geterainfooptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_peerentry_free(a: number, b: number): void; -export function peerentry_node_id(a: number): Array; -export function peerentry_address(a: number): Array; -export function sdk_speculative_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function sdk_install_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function __wbg_casperwallet_free(a: number, b: number): void; -export function casperwallet_new(): number; -export function casperwallet_signDeploy(a: number, b: number, c: number, d: number): number; -export function casperwallet_signTransaction(a: number, b: number, c: number, d: number): number; -export function casperwallet_signDeployHash(a: number, b: number, c: number, d: number, e: number): number; -export function casperwallet_signTransactionHash(a: number, b: number, c: number, d: number, e: number): number; -export function casperwallet_signMessage(a: number, b: number, c: number, d: number, e: number): number; -export function casperwallet_connect(a: number): number; -export function casperwallet_disconnect(a: number): number; -export function casperwallet_isConnected(a: number): number; -export function casperwallet_getVersion(a: number): number; -export function casperwallet_getActivePublicKey(a: number): number; -export function casperwallet_switchAccount(a: number): number; +export function __wbg_querybalancedetailsresult_free(a: number, b: number): void; +export function querybalancedetailsresult_api_version(a: number): number; +export function querybalancedetailsresult_total_balance(a: number): number; +export function querybalancedetailsresult_available_balance(a: number): number; +export function querybalancedetailsresult_total_balance_proof(a: number): number; +export function querybalancedetailsresult_holds(a: number): number; +export function querybalancedetailsresult_toJson(a: number): number; +export function __wbg_querybalancedetailsoptions_free(a: number, b: number): void; +export function __wbg_get_querybalancedetailsoptions_purse_identifier_as_string(a: number): Array; +export function __wbg_set_querybalancedetailsoptions_purse_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querybalancedetailsoptions_purse_identifier(a: number): number; +export function __wbg_set_querybalancedetailsoptions_purse_identifier(a: number, b: number): void; +export function __wbg_get_querybalancedetailsoptions_global_state_identifier(a: number): number; +export function __wbg_set_querybalancedetailsoptions_global_state_identifier(a: number, b: number): void; +export function __wbg_get_querybalancedetailsoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_set_querybalancedetailsoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querybalancedetailsoptions_state_root_hash(a: number): number; +export function __wbg_set_querybalancedetailsoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_querybalancedetailsoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_querybalancedetailsoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querybalancedetailsoptions_rpc_address(a: number): Array; +export function __wbg_set_querybalancedetailsoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_querybalancedetailsoptions_verbosity(a: number): number; +export function __wbg_set_querybalancedetailsoptions_verbosity(a: number, b: number): void; +export function sdk_query_balance_details_options(a: number, b: number): Array; +export function sdk_query_balance_details(a: number, b: number): number; +export function __wbg_queryglobalstateresult_free(a: number, b: number): void; +export function queryglobalstateresult_api_version(a: number): number; +export function queryglobalstateresult_block_header(a: number): number; +export function queryglobalstateresult_stored_value(a: number): number; +export function queryglobalstateresult_merkle_proof(a: number): Array; +export function queryglobalstateresult_toJson(a: number): number; +export function __wbg_queryglobalstateoptions_free(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_global_state_identifier(a: number): number; +export function __wbg_set_queryglobalstateoptions_global_state_identifier(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_state_root_hash(a: number): number; +export function __wbg_set_queryglobalstateoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_key_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_key_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_key(a: number): number; +export function __wbg_set_queryglobalstateoptions_key(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_path_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_path_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_path(a: number): number; +export function __wbg_set_queryglobalstateoptions_path(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_rpc_address(a: number): Array; +export function __wbg_set_queryglobalstateoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_verbosity(a: number): number; +export function __wbg_set_queryglobalstateoptions_verbosity(a: number, b: number): void; +export function sdk_query_global_state_options(a: number, b: number): Array; +export function sdk_query_global_state(a: number, b: number): number; +export function __wbg_querycontractkeyoptions_free(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_entity_identifier(a: number): number; +export function __wbg_set_querycontractkeyoptions_entity_identifier(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_querycontractkeyoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_path(a: number): number; +export function __wbg_set_querycontractkeyoptions_path(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_rpc_address(a: number): Array; +export function __wbg_set_querycontractkeyoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_verbosity(a: number): number; +export function __wbg_set_querycontractkeyoptions_verbosity(a: number, b: number): void; +export function sdk_query_contract_key_options(a: number, b: number): Array; +export function sdk_query_contract_key(a: number, b: number): number; +export function __wbg_set_querycontractkeyoptions_entity_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querycontractkeyoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querycontractkeyoptions_path_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_entity_identifier_as_string(a: number): Array; +export function __wbg_get_querycontractkeyoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_querycontractkeyoptions_path_as_string(a: number): Array; export function __wbg_accounthash_free(a: number, b: number): void; export function accounthash_new_js_alias(a: number, b: number): Array; export function accounthash_fromFormattedStr(a: number, b: number): Array; @@ -443,10 +112,6 @@ export function accounthash_toFormattedString(a: number): Array; export function accounthash_toHexString(a: number): Array; export function accounthash_fromUint8Array(a: number, b: number): number; export function accounthash_toJson(a: number): number; -export function blockhash_new_js_alias(a: number, b: number): Array; -export function blockhash_fromDigest(a: number): Array; -export function blockhash_toJson(a: number): number; -export function blockhash_toString(a: number): Array; export function __wbg_deploystrparams_free(a: number, b: number): void; export function deploystrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; export function deploystrparams_secret_key(a: number): Array; @@ -494,16 +159,42 @@ export function dictionaryitemidentifier_newFromEntityInfo(a: number, b: number, export function dictionaryitemidentifier_newFromSeedUref(a: number, b: number, c: number, d: number): Array; export function dictionaryitemidentifier_newFromDictionaryKey(a: number, b: number): Array; export function dictionaryitemidentifier_toJson(a: number): number; -export function __wbg_entityidentifier_free(a: number, b: number): void; -export function entityidentifier_fromFormattedStr(a: number, b: number): Array; -export function entityidentifier_fromPublicKey(a: number): number; -export function entityidentifier_fromAccountHash(a: number): number; -export function entityidentifier_fromEntityAddr(a: number): number; -export function entityidentifier_toJson(a: number): number; +export function __wbg_key_free(a: number, b: number): void; +export function key_new(a: number): Array; +export function key_toJson(a: number): number; +export function key_fromURef(a: number): number; +export function key_fromDeployInfo(a: number): number; +export function key_fromAccount(a: number): number; +export function key_fromHash(a: number): number; +export function key_fromTransfer(a: number, b: number): number; +export function key_fromEraInfo(a: number): number; +export function key_fromBalance(a: number): number; +export function key_fromBid(a: number): number; +export function key_fromWithdraw(a: number): number; +export function key_fromDictionaryAddr(a: number): number; +export function key_asDictionaryAddr(a: number): number; +export function key_fromSystemEntityRegistry(): number; +export function key_fromEraSummary(): number; +export function key_fromUnbond(a: number): number; +export function key_fromChainspecRegistry(): number; +export function key_fromChecksumRegistry(): number; +export function key_toFormattedString(a: number): Array; +export function key_fromFormattedString(a: number, b: number): Array; +export function key_fromDictionaryKey(a: number, b: number, c: number): number; +export function key_isDictionaryKey(a: number): number; +export function key_intoAccount(a: number): number; +export function key_intoHash(a: number): number; +export function key_asBalance(a: number): number; +export function key_intoURef(a: number): number; +export function key_urefToHash(a: number): number; +export function key_withdrawToUnbond(a: number): number; export function packagehash_new_js_alias(a: number, b: number): Array; export function packagehash_fromFormattedStr(a: number, b: number): Array; export function packagehash_toFormattedString(a: number): Array; export function packagehash_fromUint8Array(a: number, b: number): number; +export function __wbg_purseidentifier_free(a: number, b: number): void; +export function purseidentifier_fromPublicKey(a: number): number; +export function purseidentifier_fromAccountHash(a: number): number; export function purseidentifier_fromURef(a: number): number; export function purseidentifier_toJson(a: number): number; export function __wbg_transaction_free(a: number, b: number): void; @@ -618,327 +309,579 @@ export function __wbg_set_gettransactionoptions_transaction_hash(a: number, b: n export function sdk_get_transaction_options(a: number, b: number): Array; export function sdk_get_transaction(a: number, b: number): number; export function sdk_info_get_transaction(a: number, b: number): number; +export function sdk_make_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; +export function __wbg_gettransactionoptions_free(a: number, b: number): void; +export function __wbg_set_gettransactionoptions_verbosity(a: number, b: number): void; +export function __wbg_set_gettransactionoptions_transaction_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_set_gettransactionoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_gettransactionoptions_finalized_approvals(a: number): number; +export function __wbg_set_gettransactionoptions_finalized_approvals(a: number, b: number): void; +export function __wbg_get_gettransactionoptions_transaction_hash_as_string(a: number): Array; +export function __wbg_get_gettransactionoptions_rpc_address(a: number): Array; +export function __wbg_get_gettransactionoptions_verbosity(a: number): number; +export function __wbg_packagehash_free(a: number, b: number): void; +export function __wbg_uref_free(a: number, b: number): void; +export function __wbg_accessrights_free(a: number, b: number): void; +export function accessrights_NONE(): number; +export function accessrights_READ(): number; +export function accessrights_WRITE(): number; +export function accessrights_ADD(): number; +export function accessrights_READ_ADD(): number; +export function accessrights_READ_WRITE(): number; +export function accessrights_ADD_WRITE(): number; +export function accessrights_READ_ADD_WRITE(): number; +export function accessrights_new(a: number): Array; +export function accessrights_from_bits(a: number, b: number, c: number): number; +export function accessrights_is_readable(a: number): number; +export function accessrights_is_writeable(a: number): number; +export function accessrights_is_addable(a: number): number; +export function accessrights_is_none(a: number): number; +export function __wbg_transferaddr_free(a: number, b: number): void; +export function transferaddr_new(a: number, b: number): Array; +export function __wbg_getchainspecresult_free(a: number, b: number): void; +export function getchainspecresult_api_version(a: number): number; +export function getchainspecresult_chainspec_bytes(a: number): number; +export function getchainspecresult_toJson(a: number): number; +export function sdk_get_chainspec(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_chainspec(a: number, b: number, c: number, d: number): number; +export function __wbg_getdictionaryitemresult_free(a: number, b: number): void; +export function getdictionaryitemresult_api_version(a: number): number; +export function getdictionaryitemresult_dictionary_key(a: number): Array; +export function getdictionaryitemresult_stored_value(a: number): number; +export function getdictionaryitemresult_merkle_proof(a: number): Array; +export function getdictionaryitemresult_toJson(a: number): number; +export function __wbg_getdictionaryitemoptions_free(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_set_getdictionaryitemoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getdictionaryitemoptions_state_root_hash(a: number): number; +export function __wbg_set_getdictionaryitemoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_dictionary_item_params(a: number): number; +export function __wbg_set_getdictionaryitemoptions_dictionary_item_params(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_dictionary_item_identifier(a: number): number; +export function __wbg_set_getdictionaryitemoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_rpc_address(a: number): Array; +export function __wbg_set_getdictionaryitemoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getdictionaryitemoptions_verbosity(a: number): number; +export function __wbg_set_getdictionaryitemoptions_verbosity(a: number, b: number): void; +export function sdk_get_dictionary_item_options(a: number, b: number): Array; +export function sdk_get_dictionary_item(a: number, b: number): number; +export function sdk_state_get_dictionary_item(a: number, b: number): number; +export function __wbg_getaddressableentityresult_free(a: number, b: number): void; +export function getaddressableentityresult_api_version(a: number): number; +export function getaddressableentityresult_entity_result(a: number): number; +export function getaddressableentityresult_merkle_proof(a: number): Array; +export function getaddressableentityresult_toJson(a: number): number; +export function __wbg_getentityoptions_free(a: number, b: number): void; +export function __wbg_get_getentityoptions_entity_identifier(a: number): number; +export function __wbg_set_getentityoptions_entity_identifier(a: number, b: number): void; +export function __wbg_get_getentityoptions_entity_identifier_as_string(a: number): Array; +export function __wbg_set_getentityoptions_entity_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getentityoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getentityoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getentityoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getentityoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getentityoptions_rpc_address(a: number): Array; +export function __wbg_set_getentityoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getentityoptions_verbosity(a: number): number; +export function __wbg_set_getentityoptions_verbosity(a: number, b: number): void; +export function sdk_get_entity_options(a: number, b: number): Array; +export function sdk_get_entity(a: number, b: number): number; +export function sdk_state_get_entity(a: number, b: number): number; +export function __wbg_getnodestatusresult_free(a: number, b: number): void; +export function getnodestatusresult_api_version(a: number): number; +export function getnodestatusresult_chainspec_name(a: number): Array; +export function getnodestatusresult_starting_state_root_hash(a: number): number; +export function getnodestatusresult_peers(a: number): number; +export function getnodestatusresult_last_added_block_info(a: number): number; +export function getnodestatusresult_our_public_signing_key(a: number): number; +export function getnodestatusresult_round_length(a: number): number; +export function getnodestatusresult_next_upgrade(a: number): number; +export function getnodestatusresult_build_version(a: number): Array; +export function getnodestatusresult_uptime(a: number): number; +export function getnodestatusresult_reactor_state(a: number): number; +export function getnodestatusresult_last_progress(a: number): number; +export function getnodestatusresult_available_block_range(a: number): number; +export function getnodestatusresult_block_sync(a: number): number; +export function getnodestatusresult_toJson(a: number): number; +export function sdk_get_node_status(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_status(a: number, b: number, c: number, d: number): number; +export function __wbg_getpeersresult_free(a: number, b: number): void; +export function getpeersresult_api_version(a: number): number; +export function getpeersresult_peers(a: number): number; +export function getpeersresult_toJson(a: number): number; +export function sdk_get_peers(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_peers(a: number, b: number, c: number, d: number): number; +export function __wbg_getvalidatorchangesresult_free(a: number, b: number): void; +export function getvalidatorchangesresult_api_version(a: number): number; +export function getvalidatorchangesresult_changes(a: number): number; +export function getvalidatorchangesresult_toJson(a: number): number; +export function sdk_get_validator_changes(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_validator_change(a: number, b: number, c: number, d: number): number; +export function __wbg_listrpcsresult_free(a: number, b: number): void; +export function listrpcsresult_api_version(a: number): number; +export function listrpcsresult_name(a: number): Array; +export function listrpcsresult_schema(a: number): number; +export function listrpcsresult_toJson(a: number): number; +export function sdk_list_rpcs(a: number, b: number, c: number, d: number): number; +export function sdk_sign_deploy(a: number, b: number, c: number, d: number): number; +export function sdk_query_contract_dict_options(a: number, b: number): Array; +export function sdk_query_contract_dict(a: number, b: number): number; +export function __wbg_get_querycontractdictoptions_dictionary_item_params(a: number): number; +export function __wbg_get_querycontractdictoptions_dictionary_item_identifier(a: number): number; +export function __wbg_set_querycontractdictoptions_verbosity(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_state_root_hash(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querycontractdictoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_querycontractdictoptions_free(a: number, b: number): void; +export function __wbg_get_querycontractdictoptions_state_root_hash(a: number): number; +export function __wbg_get_querycontractdictoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_get_querycontractdictoptions_rpc_address(a: number): Array; +export function __wbg_get_querycontractdictoptions_verbosity(a: number): number; +export function __wbg_set_querycontractdictoptions_dictionary_item_params(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_urefaddr_free(a: number, b: number): void; +export function urefaddr_new(a: number, b: number): Array; +export function __wbg_bytes_free(a: number, b: number): void; +export function bytes_new(): number; +export function bytes_fromUint8Array(a: number): number; +export function __wbg_argssimple_free(a: number, b: number): void; +export function __wbg_signatureresponse_free(a: number, b: number): void; +export function signatureresponse_is_cancelled(a: number): number; +export function signatureresponse_get_signature_hex(a: number): Array; +export function signatureresponse_get_signature(a: number): Array; +export function __wbg_putdeployresult_free(a: number, b: number): void; +export function putdeployresult_api_version(a: number): number; +export function putdeployresult_deploy_hash(a: number): number; +export function putdeployresult_toJson(a: number): number; +export function sdk_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_getaccountresult_free(a: number, b: number): void; +export function getaccountresult_api_version(a: number): number; +export function getaccountresult_account(a: number): number; +export function getaccountresult_merkle_proof(a: number): Array; +export function getaccountresult_toJson(a: number): number; +export function __wbg_getaccountoptions_free(a: number, b: number): void; +export function __wbg_get_getaccountoptions_account_identifier(a: number): number; +export function __wbg_set_getaccountoptions_account_identifier(a: number, b: number): void; +export function __wbg_get_getaccountoptions_account_identifier_as_string(a: number): Array; +export function __wbg_set_getaccountoptions_account_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getaccountoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getaccountoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getaccountoptions_rpc_address(a: number): Array; +export function __wbg_set_getaccountoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_verbosity(a: number): number; +export function __wbg_set_getaccountoptions_verbosity(a: number, b: number): void; +export function sdk_get_account_options(a: number, b: number): Array; +export function sdk_get_account(a: number, b: number): number; +export function sdk_state_get_account_info(a: number, b: number): number; +export function __wbg_getauctioninforesult_free(a: number, b: number): void; +export function getauctioninforesult_api_version(a: number): number; +export function getauctioninforesult_auction_state(a: number): number; +export function getauctioninforesult_toJson(a: number): number; +export function __wbg_getauctioninfooptions_free(a: number, b: number): void; +export function __wbg_get_getauctioninfooptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getauctioninfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getauctioninfooptions_rpc_address(a: number): Array; +export function __wbg_set_getauctioninfooptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getauctioninfooptions_verbosity(a: number): number; +export function __wbg_set_getauctioninfooptions_verbosity(a: number, b: number): void; +export function sdk_get_auction_info_options(a: number, b: number): Array; +export function sdk_get_auction_info(a: number, b: number): number; +export function sdk_state_get_auction_info_js_alias(a: number, b: number): number; +export function __wbg_geterainforesult_free(a: number, b: number): void; +export function geterainforesult_api_version(a: number): number; +export function geterainforesult_era_summary(a: number): number; +export function geterainforesult_toJson(a: number): number; +export function sdk_get_era_info_options(a: number, b: number): Array; +export function sdk_get_era_info(a: number, b: number): number; +export function sdk_chain_get_era_info_by_switch_block(a: number, b: number): number; +export function sdk_make_transaction(a: number, b: number, c: number): Array; +export function __wbg_get_getauctioninfooptions_maybe_block_identifier(a: number): number; +export function __wbg_get_geterainfooptions_maybe_block_identifier(a: number): number; +export function __wbg_geterainfooptions_free(a: number, b: number): void; +export function __wbg_set_geterainfooptions_verbosity(a: number, b: number): void; +export function __wbg_set_geterainfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_geterainfooptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_geterainfooptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_geterainfooptions_rpc_address(a: number): Array; +export function __wbg_get_geterainfooptions_verbosity(a: number): number; +export function __wbg_set_getauctioninfooptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_set_geterainfooptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_puttransactionresult_free(a: number, b: number): void; +export function puttransactionresult_api_version(a: number): number; +export function puttransactionresult_transaction_hash(a: number): number; +export function puttransactionresult_toJson(a: number): number; +export function sdk_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function __wbg_casperwallet_free(a: number, b: number): void; +export function casperwallet_new(): number; +export function casperwallet_signDeploy(a: number, b: number, c: number, d: number): number; +export function casperwallet_signTransaction(a: number, b: number, c: number, d: number): number; +export function casperwallet_signDeployHash(a: number, b: number, c: number, d: number, e: number): number; +export function casperwallet_signTransactionHash(a: number, b: number, c: number, d: number, e: number): number; +export function casperwallet_signMessage(a: number, b: number, c: number, d: number, e: number): number; +export function casperwallet_connect(a: number): number; +export function casperwallet_disconnect(a: number): number; +export function casperwallet_isConnected(a: number): number; +export function casperwallet_getVersion(a: number): number; +export function casperwallet_getActivePublicKey(a: number): number; +export function casperwallet_switchAccount(a: number): number; +export function __wbg_accountidentifier_free(a: number, b: number): void; +export function accountidentifier_fromFormattedStr(a: number, b: number): Array; +export function accountidentifier_fromPublicKey(a: number): number; +export function accountidentifier_fromAccountHash(a: number): number; +export function accountidentifier_toJson(a: number): number; +export function hashaddr_new(a: number, b: number): Array; +export function hashaddr_toBytes(a: number): Array; +export function hashaddr_toHexString(a: number): Array; +export function __wbg_contractpackagehash_free(a: number, b: number): void; +export function contractpackagehash_new_js_alias(a: number, b: number): Array; +export function contractpackagehash_fromFormattedStr(a: number, b: number): Array; +export function contractpackagehash_toFormattedString(a: number): Array; +export function contractpackagehash_fromUint8Array(a: number, b: number): number; +export function deployhash_new_js_alias(a: number, b: number): Array; +export function deployhash_fromDigest(a: number): Array; +export function deployhash_toJson(a: number): number; +export function deployhash_toString(a: number): Array; +export function __wbg_dictionaryitemstrparams_free(a: number, b: number): void; +export function dictionaryitemstrparams_new(): number; +export function dictionaryitemstrparams_setAccountNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setContractNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setEntityNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setUref(a: number, b: number, c: number, d: number, e: number): void; +export function dictionaryitemstrparams_setDictionary(a: number, b: number, c: number): void; +export function dictionaryitemstrparams_toJson(a: number): number; +export function digest_new_js_alias(a: number, b: number): Array; +export function digest_fromString(a: number, b: number): Array; +export function digest_fromRaw(a: number, b: number): Array; +export function digest_toJson(a: number): number; +export function digest_toString(a: number): Array; +export function __wbg_path_free(a: number, b: number): void; +export function path_new(a: number): number; +export function path_fromArray(a: number): number; +export function path_toJson(a: number): number; +export function path_toString(a: number): Array; +export function path_is_empty(a: number): number; +export function publickey_new_js_alias(a: number, b: number): Array; +export function publickey_fromUint8Array(a: number, b: number): Array; +export function publickey_toAccountHash(a: number): number; +export function publickey_toPurseUref(a: number): number; +export function publickey_toJson(a: number): number; +export function sdk_put_deploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_account_put_deploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function sdk_watchDeploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_watchTransaction(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_waitDeploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_waitTransaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_watcher_free(a: number, b: number): void; +export function watcher_new(a: number, b: number, c: number, d: number): number; +export function watcher_subscribe(a: number, b: number, c: number): Array; +export function watcher_unsubscribe(a: number, b: number, c: number): void; +export function watcher_start(a: number): number; +export function watcher_stop(a: number): void; +export function __wbg_subscription_free(a: number, b: number): void; +export function __wbg_get_subscription_eventHandlerFn(a: number): number; +export function __wbg_set_subscription_eventHandlerFn(a: number, b: number): void; +export function subscription_new(a: number, b: number, c: number): number; +export function __wbg_failure_free(a: number, b: number): void; +export function __wbg_get_failure_cost(a: number): Array; +export function __wbg_set_failure_cost(a: number, b: number, c: number): void; +export function __wbg_get_failure_error_message(a: number): Array; +export function __wbg_set_failure_error_message(a: number, b: number, c: number): void; +export function __wbg_version2_free(a: number, b: number): void; +export function __wbg_get_version2_error_message(a: number): Array; +export function __wbg_set_version2_error_message(a: number, b: number, c: number): void; +export function __wbg_executionresult_free(a: number, b: number): void; +export function __wbg_get_executionresult_Success(a: number): number; +export function __wbg_set_executionresult_Success(a: number, b: number): void; +export function __wbg_get_executionresult_Failure(a: number): number; +export function __wbg_set_executionresult_Failure(a: number, b: number): void; +export function __wbg_hashstring_free(a: number, b: number): void; +export function hashstring_Deploy(a: number): Array; +export function hashstring_toString(a: number): Array; +export function __wbg_messages_free(a: number, b: number): void; +export function __wbg_set_messages_entity_hash(a: number, b: number, c: number): void; +export function __wbg_get_messages_message(a: number): number; +export function __wbg_set_messages_message(a: number, b: number): void; +export function __wbg_get_messages_topic_name(a: number): Array; +export function __wbg_set_messages_topic_name(a: number, b: number, c: number): void; +export function __wbg_get_messages_topic_name_hash(a: number): Array; +export function __wbg_set_messages_topic_name_hash(a: number, b: number, c: number): void; +export function __wbg_get_messages_topic_index(a: number): number; +export function __wbg_set_messages_topic_index(a: number, b: number): void; +export function __wbg_get_messages_block_index(a: number): number; +export function __wbg_set_messages_block_index(a: number, b: number): void; +export function __wbg_transactionprocessed_free(a: number, b: number): void; +export function __wbg_get_transactionprocessed_hash(a: number): number; +export function __wbg_set_transactionprocessed_hash(a: number, b: number): void; +export function __wbg_get_transactionprocessed_initiator_addr(a: number): number; +export function __wbg_set_transactionprocessed_initiator_addr(a: number, b: number): void; +export function __wbg_get_transactionprocessed_timestamp(a: number): Array; +export function __wbg_set_transactionprocessed_timestamp(a: number, b: number, c: number): void; +export function __wbg_set_transactionprocessed_ttl(a: number, b: number, c: number): void; +export function __wbg_get_transactionprocessed_execution_result(a: number): number; +export function __wbg_set_transactionprocessed_execution_result(a: number, b: number): void; +export function __wbg_get_transactionprocessed_messages(a: number): Array; +export function __wbg_set_transactionprocessed_messages(a: number, b: number, c: number): void; +export function __wbg_body_free(a: number, b: number): void; +export function __wbg_get_body_transaction_processed(a: number): number; +export function __wbg_set_body_transaction_processed(a: number, b: number): void; +export function body_get_deploy_processed(a: number): number; +export function __wbg_eventparseresult_free(a: number, b: number): void; +export function __wbg_get_eventparseresult_err(a: number): Array; +export function __wbg_set_eventparseresult_err(a: number, b: number, c: number): void; +export function __wbg_get_eventparseresult_body(a: number): number; +export function __wbg_set_eventparseresult_body(a: number, b: number): void; +export function sdk_call_entrypoint(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_call_entrypoint_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_payment_free(a: number, b: number): void; +export function __wbg_publickeystring_free(a: number, b: number): void; +export function __wbg_message_free(a: number, b: number): void; +export function __wbg_get_version2_initiator(a: number): number; +export function accountidentifier_new(a: number, b: number): Array; +export function __wbg_set_subscription_targetHash(a: number, b: number, c: number): void; +export function __wbg_set_version2_limit(a: number, b: number, c: number): void; +export function __wbg_set_payment_source(a: number, b: number, c: number): void; +export function __wbg_set_hashstring_hash(a: number, b: number, c: number): void; +export function __wbg_set_publickeystring_PublicKey(a: number, b: number, c: number): void; +export function __wbg_set_message_String(a: number, b: number, c: number): void; +export function __wbg_set_version2_consumed(a: number, b: number, c: number): void; +export function __wbg_set_version2_cost(a: number, b: number, c: number): void; +export function __wbg_set_transactionprocessed_block_hash(a: number, b: number, c: number): void; +export function body_get_transaction_processed(a: number): number; +export function hashstring_Version1(a: number): Array; +export function __wbg_set_version2_initiator(a: number, b: number): void; +export function __wbg_hashaddr_free(a: number, b: number): void; +export function __wbg_deployhash_free(a: number, b: number): void; +export function __wbg_digest_free(a: number, b: number): void; +export function __wbg_publickey_free(a: number, b: number): void; +export function __wbg_get_subscription_targetHash(a: number): Array; +export function __wbg_get_version2_limit(a: number): Array; +export function __wbg_get_payment_source(a: number): Array; +export function __wbg_get_hashstring_hash(a: number): Array; +export function __wbg_get_publickeystring_PublicKey(a: number): Array; +export function __wbg_get_message_String(a: number): Array; +export function __wbg_get_messages_entity_hash(a: number): Array; +export function __wbg_get_version2_cost(a: number): Array; +export function __wbg_get_version2_consumed(a: number): Array; +export function __wbg_get_transactionprocessed_ttl(a: number): Array; +export function __wbg_get_transactionprocessed_block_hash(a: number): Array; +export function sdk_speculative_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function __wbg_getblocktransfersresult_free(a: number, b: number): void; +export function getblocktransfersresult_api_version(a: number): number; +export function getblocktransfersresult_block_hash(a: number): number; +export function getblocktransfersresult_transfers(a: number): number; +export function getblocktransfersresult_toJson(a: number): number; +export function __wbg_getblocktransfersoptions_free(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getblocktransfersoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getblocktransfersoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getblocktransfersoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_verbosity(a: number): number; +export function __wbg_set_getblocktransfersoptions_verbosity(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_rpc_address(a: number): Array; +export function __wbg_set_getblocktransfersoptions_rpc_address(a: number, b: number, c: number): void; +export function sdk_get_block_transfers_options(a: number, b: number): Array; +export function sdk_get_block_transfers(a: number, b: number): number; +export function sdk_chain_get_block_transfers(a: number, b: number): number; +export function __wbg_geterasummaryresult_free(a: number, b: number): void; +export function geterasummaryresult_api_version(a: number): number; +export function geterasummaryresult_era_summary(a: number): number; +export function geterasummaryresult_toJson(a: number): number; +export function sdk_get_era_summary_options(a: number, b: number): Array; +export function sdk_get_era_summary(a: number, b: number): number; +export function sdk_chain_get_era_summary(a: number, b: number): number; export function sdk_put_transaction(a: number, b: number, c: number, d: number, e: number): number; export function sdk_account_put_transaction(a: number, b: number, c: number, d: number, e: number): number; -export function __wbg_speculativeexectxnresult_free(a: number, b: number): void; -export function speculativeexectxnresult_api_version(a: number): number; -export function speculativeexectxnresult_block_hash(a: number): number; -export function speculativeexectxnresult_execution_result(a: number): number; -export function speculativeexectxnresult_toJson(a: number): number; -export function __wbg_getspeculativeexectxnoptions_free(a: number, b: number): void; -export function __wbg_get_getspeculativeexectxnoptions_transaction_as_string(a: number): Array; -export function __wbg_set_getspeculativeexectxnoptions_transaction_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getspeculativeexectxnoptions_transaction(a: number): number; -export function __wbg_set_getspeculativeexectxnoptions_transaction(a: number, b: number): void; -export function __wbg_get_getspeculativeexectxnoptions_rpc_address(a: number): Array; -export function __wbg_set_getspeculativeexectxnoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getspeculativeexectxnoptions_verbosity(a: number): number; -export function __wbg_set_getspeculativeexectxnoptions_verbosity(a: number, b: number): void; -export function sdk_get_speculative_exec_options(a: number, b: number): Array; -export function sdk_speculative_exec(a: number, b: number): number; export function sdk_speculative_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_make_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; +export function sdk_speculative_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; export function sdk_install(a: number, b: number, c: number, d: number, e: number): number; -export function __wbg_gettransactionoptions_free(a: number, b: number): void; -export function __wbg_set_gettransactionoptions_verbosity(a: number, b: number): void; -export function __wbg_set_gettransactionoptions_transaction_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_set_gettransactionoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_gettransactionoptions_finalized_approvals(a: number): number; -export function purseidentifier_fromPublicKey(a: number): number; -export function purseidentifier_fromAccountHash(a: number): number; -export function __wbg_set_gettransactionoptions_finalized_approvals(a: number, b: number): void; -export function __wbg_get_gettransactionoptions_transaction_hash_as_string(a: number): Array; -export function __wbg_get_gettransactionoptions_rpc_address(a: number): Array; -export function __wbg_get_gettransactionoptions_verbosity(a: number): number; -export function __wbg_blockhash_free(a: number, b: number): void; -export function __wbg_packagehash_free(a: number, b: number): void; -export function __wbg_purseidentifier_free(a: number, b: number): void; -export function __wbg_uref_free(a: number, b: number): void; -export function entityidentifier_new_js_alias(a: number, b: number): Array; -export function __wbg_dictionaryaddr_free(a: number, b: number): void; +export function __wbg_get_geterasummaryoptions_maybe_block_identifier(a: number): number; +export function __wbg_geterasummaryoptions_free(a: number, b: number): void; +export function __wbg_set_geterasummaryoptions_verbosity(a: number, b: number): void; +export function __wbg_set_geterasummaryoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_geterasummaryoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_geterasummaryoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_geterasummaryoptions_rpc_address(a: number): Array; +export function __wbg_get_geterasummaryoptions_verbosity(a: number): number; +export function __wbg_set_geterasummaryoptions_maybe_block_identifier(a: number, b: number): void; export function dictionaryaddr_new(a: number, b: number): Array; +export function __wbg_entityaddr_free(a: number, b: number): void; +export function entityaddr_fromFormattedStr(a: number, b: number): Array; +export function entityaddr_toFormattedString(a: number): Array; +export function entityaddr_toHexString(a: number): Array; +export function entityaddr_toJson(a: number): number; +export function __wbg_addressableentityhash_free(a: number, b: number): void; +export function addressableentityhash_new_js_alias(a: number, b: number): Array; +export function addressableentityhash_fromFormattedStr(a: number, b: number): Array; +export function addressableentityhash_toFormattedString(a: number): Array; +export function addressableentityhash_fromUint8Array(a: number, b: number): number; +export function blockhash_new_js_alias(a: number, b: number): Array; +export function blockhash_fromDigest(a: number): Array; +export function blockhash_toJson(a: number): number; +export function blockhash_toString(a: number): Array; +export function contracthash_new_js_alias(a: number, b: number): Array; +export function contracthash_fromFormattedStr(a: number, b: number): Array; +export function contracthash_toFormattedString(a: number): Array; +export function contracthash_fromUint8Array(a: number, b: number): number; +export function __wbg_deploy_free(a: number, b: number): void; +export function deploy_new(a: number): number; +export function deploy_toJson(a: number): number; +export function deploy_withPaymentAndSession(a: number, b: number, c: number): Array; +export function deploy_withTransfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): Array; +export function deploy_withTTL(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withTimestamp(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withChainName(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withAccount(a: number, b: number, c: number, d: number): number; +export function deploy_withEntryPointName(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withHash(a: number, b: number, c: number, d: number): number; +export function deploy_withPackageHash(a: number, b: number, c: number, d: number): number; +export function deploy_withModuleBytes(a: number, b: number, c: number, d: number): number; +export function deploy_withSecretKey(a: number, b: number, c: number): number; +export function deploy_withStandardPayment(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withPayment(a: number, b: number, c: number, d: number): number; +export function deploy_withSession(a: number, b: number, c: number, d: number): number; +export function deploy_validateDeploySize(a: number): number; +export function deploy_isValid(a: number): number; +export function deploy_hash(a: number): number; +export function deploy_hasValidHash(a: number): number; +export function deploy_isExpired(a: number): number; +export function deploy_sign(a: number, b: number, c: number): number; +export function deploy_approvalsHash(a: number): number; +export function deploy_approvals(a: number): number; +export function deploy_isTransfer(a: number): number; +export function deploy_isStandardPayment(a: number, b: number): number; +export function deploy_isStoredContract(a: number): number; +export function deploy_isStoredContractPackage(a: number): number; +export function deploy_isModuleBytes(a: number): number; +export function deploy_isByName(a: number): number; +export function deploy_byName(a: number): Array; +export function deploy_entryPointName(a: number): Array; +export function deploy_addSignature(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_TTL(a: number): Array; +export function deploy_timestamp(a: number): Array; +export function deploy_chainName(a: number): Array; +export function deploy_account(a: number): Array; +export function deploy_paymentAmount(a: number, b: number): Array; +export function deploy_args(a: number): number; +export function deploy_addArg(a: number, b: number, c: number, d: number): Array; +export function __wbg_paymentstrparams_free(a: number, b: number): void; +export function paymentstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number): number; +export function paymentstrparams_payment_amount(a: number): Array; +export function paymentstrparams_set_payment_amount(a: number, b: number, c: number): void; +export function paymentstrparams_payment_hash(a: number): Array; +export function paymentstrparams_set_payment_hash(a: number, b: number, c: number): void; +export function paymentstrparams_payment_name(a: number): Array; +export function paymentstrparams_set_payment_name(a: number, b: number, c: number): void; +export function paymentstrparams_payment_package_hash(a: number): Array; +export function paymentstrparams_set_payment_package_hash(a: number, b: number, c: number): void; +export function paymentstrparams_payment_package_name(a: number): Array; +export function paymentstrparams_set_payment_package_name(a: number, b: number, c: number): void; +export function paymentstrparams_payment_path(a: number): Array; +export function paymentstrparams_set_payment_path(a: number, b: number, c: number): void; +export function paymentstrparams_payment_args_simple(a: number): number; +export function paymentstrparams_set_payment_args_simple(a: number, b: number): void; +export function paymentstrparams_payment_args_json(a: number): Array; +export function paymentstrparams_set_payment_args_json(a: number, b: number, c: number): void; +export function paymentstrparams_payment_version(a: number): Array; +export function paymentstrparams_set_payment_version(a: number, b: number, c: number): void; +export function paymentstrparams_payment_entry_point(a: number): Array; +export function paymentstrparams_set_payment_entry_point(a: number, b: number, c: number): void; +export function __wbg_entityidentifier_free(a: number, b: number): void; +export function entityidentifier_fromFormattedStr(a: number, b: number): Array; +export function entityidentifier_fromPublicKey(a: number): number; +export function entityidentifier_fromAccountHash(a: number): number; +export function entityidentifier_fromEntityAddr(a: number): number; +export function entityidentifier_toJson(a: number): number; +export function __wbg_eraid_free(a: number, b: number): void; +export function eraid_new(a: number): number; +export function eraid_value(a: number): number; export function __wbg_globalstateidentifier_free(a: number, b: number): void; export function globalstateidentifier_new(a: number): number; export function globalstateidentifier_fromBlockHash(a: number): number; export function globalstateidentifier_fromBlockHeight(a: number): number; export function globalstateidentifier_fromStateRootHash(a: number): number; export function globalstateidentifier_toJson(a: number): number; -export function sdk_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function __wbg_getnodestatusresult_free(a: number, b: number): void; -export function getnodestatusresult_api_version(a: number): number; -export function getnodestatusresult_chainspec_name(a: number): Array; -export function getnodestatusresult_starting_state_root_hash(a: number): number; -export function getnodestatusresult_peers(a: number): number; -export function getnodestatusresult_last_added_block_info(a: number): number; -export function getnodestatusresult_our_public_signing_key(a: number): number; -export function getnodestatusresult_round_length(a: number): number; -export function getnodestatusresult_next_upgrade(a: number): number; -export function getnodestatusresult_build_version(a: number): Array; -export function getnodestatusresult_uptime(a: number): number; -export function getnodestatusresult_reactor_state(a: number): number; -export function getnodestatusresult_last_progress(a: number): number; -export function getnodestatusresult_available_block_range(a: number): number; -export function getnodestatusresult_block_sync(a: number): number; -export function getnodestatusresult_toJson(a: number): number; -export function sdk_get_node_status(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_status(a: number, b: number, c: number, d: number): number; -export function sdk_put_deploy(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_account_put_deploy(a: number, b: number, c: number, d: number, e: number): number; -export function __wbg_querybalancedetailsresult_free(a: number, b: number): void; -export function querybalancedetailsresult_api_version(a: number): number; -export function querybalancedetailsresult_total_balance(a: number): number; -export function querybalancedetailsresult_available_balance(a: number): number; -export function querybalancedetailsresult_total_balance_proof(a: number): number; -export function querybalancedetailsresult_holds(a: number): number; -export function querybalancedetailsresult_toJson(a: number): number; -export function __wbg_querybalancedetailsoptions_free(a: number, b: number): void; -export function __wbg_get_querybalancedetailsoptions_purse_identifier_as_string(a: number): Array; -export function __wbg_set_querybalancedetailsoptions_purse_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querybalancedetailsoptions_purse_identifier(a: number): number; -export function __wbg_set_querybalancedetailsoptions_purse_identifier(a: number, b: number): void; -export function __wbg_get_querybalancedetailsoptions_global_state_identifier(a: number): number; -export function __wbg_set_querybalancedetailsoptions_global_state_identifier(a: number, b: number): void; -export function __wbg_get_querybalancedetailsoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_querybalancedetailsoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querybalancedetailsoptions_state_root_hash(a: number): number; -export function __wbg_set_querybalancedetailsoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_querybalancedetailsoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_querybalancedetailsoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querybalancedetailsoptions_rpc_address(a: number): Array; -export function __wbg_set_querybalancedetailsoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_querybalancedetailsoptions_verbosity(a: number): number; -export function __wbg_set_querybalancedetailsoptions_verbosity(a: number, b: number): void; -export function sdk_query_balance_details_options(a: number, b: number): Array; -export function sdk_query_balance_details(a: number, b: number): number; -export function __wbg_queryglobalstateresult_free(a: number, b: number): void; -export function queryglobalstateresult_api_version(a: number): number; -export function queryglobalstateresult_block_header(a: number): number; -export function queryglobalstateresult_stored_value(a: number): number; -export function queryglobalstateresult_merkle_proof(a: number): Array; -export function queryglobalstateresult_toJson(a: number): number; -export function __wbg_queryglobalstateoptions_free(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_global_state_identifier(a: number): number; -export function __wbg_set_queryglobalstateoptions_global_state_identifier(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_state_root_hash(a: number): number; -export function __wbg_set_queryglobalstateoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_key_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_key_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_key(a: number): number; -export function __wbg_set_queryglobalstateoptions_key(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_path_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_path_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_path(a: number): number; -export function __wbg_set_queryglobalstateoptions_path(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_rpc_address(a: number): Array; -export function __wbg_set_queryglobalstateoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_verbosity(a: number): number; -export function __wbg_set_queryglobalstateoptions_verbosity(a: number, b: number): void; -export function sdk_query_global_state_options(a: number, b: number): Array; -export function sdk_query_global_state(a: number, b: number): number; -export function sdk_call_entrypoint_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function __wbg_querycontractkeyoptions_free(a: number, b: number): void; -export function __wbg_get_querycontractkeyoptions_entity_identifier(a: number): number; -export function __wbg_set_querycontractkeyoptions_entity_identifier(a: number, b: number): void; -export function __wbg_get_querycontractkeyoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_querycontractkeyoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_querycontractkeyoptions_path(a: number): number; -export function __wbg_set_querycontractkeyoptions_path(a: number, b: number): void; -export function __wbg_get_querycontractkeyoptions_rpc_address(a: number): Array; -export function __wbg_set_querycontractkeyoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_querycontractkeyoptions_verbosity(a: number): number; -export function __wbg_set_querycontractkeyoptions_verbosity(a: number, b: number): void; -export function sdk_query_contract_key_options(a: number, b: number): Array; -export function sdk_query_contract_key(a: number, b: number): number; -export function __wbg_set_querycontractkeyoptions_entity_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_set_querycontractkeyoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_querycontractkeyoptions_path_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querycontractkeyoptions_entity_identifier_as_string(a: number): Array; -export function __wbg_get_querycontractkeyoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_get_querycontractkeyoptions_path_as_string(a: number): Array; -export function __wbg_accountidentifier_free(a: number, b: number): void; -export function accountidentifier_fromFormattedStr(a: number, b: number): Array; -export function accountidentifier_fromPublicKey(a: number): number; -export function accountidentifier_fromAccountHash(a: number): number; -export function accountidentifier_toJson(a: number): number; -export function hashaddr_new(a: number, b: number): Array; -export function hashaddr_toBytes(a: number): Array; -export function hashaddr_toHexString(a: number): Array; -export function __wbg_contractpackagehash_free(a: number, b: number): void; -export function contractpackagehash_new_js_alias(a: number, b: number): Array; -export function contractpackagehash_fromFormattedStr(a: number, b: number): Array; -export function contractpackagehash_toFormattedString(a: number): Array; -export function contractpackagehash_fromUint8Array(a: number, b: number): number; -export function deployhash_new_js_alias(a: number, b: number): Array; -export function deployhash_fromDigest(a: number): Array; -export function deployhash_toJson(a: number): number; -export function deployhash_toString(a: number): Array; -export function __wbg_dictionaryitemstrparams_free(a: number, b: number): void; -export function dictionaryitemstrparams_new(): number; -export function dictionaryitemstrparams_setAccountNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; -export function dictionaryitemstrparams_setContractNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; -export function dictionaryitemstrparams_setEntityNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; -export function dictionaryitemstrparams_setUref(a: number, b: number, c: number, d: number, e: number): void; -export function dictionaryitemstrparams_setDictionary(a: number, b: number, c: number): void; -export function dictionaryitemstrparams_toJson(a: number): number; -export function digest_new_js_alias(a: number, b: number): Array; -export function digest_fromString(a: number, b: number): Array; -export function digest_fromRaw(a: number, b: number): Array; -export function digest_toJson(a: number): number; -export function __wbg_path_free(a: number, b: number): void; -export function path_new(a: number): number; -export function path_fromArray(a: number): number; -export function path_toJson(a: number): number; -export function path_toString(a: number): Array; -export function path_is_empty(a: number): number; -export function publickey_new_js_alias(a: number, b: number): Array; -export function publickey_fromUint8Array(a: number, b: number): Array; -export function publickey_toAccountHash(a: number): number; -export function publickey_toPurseUref(a: number): number; -export function publickey_toJson(a: number): number; +export function __wbg_transfertarget_free(a: number, b: number): void; +export function transfertarget_new(a: number, b: number, c: number, d: number): number; +export function __wbg_transactionbuilderparams_free(a: number, b: number): void; +export function transactionbuilderparams_newSession(a: number, b: number): number; +export function transactionbuilderparams_newTransfer(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function transactionbuilderparams_newInvocableEntity(a: number, b: number, c: number): number; +export function transactionbuilderparams_newInvocableEntityAlias(a: number, b: number, c: number, d: number): number; +export function transactionbuilderparams_newPackage(a: number, b: number, c: number, d: number, e: number): number; +export function transactionbuilderparams_newPackageAlias(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function transactionbuilderparams_newAddBid(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function transactionbuilderparams_newDelegate(a: number, b: number, c: number, d: number): number; +export function transactionbuilderparams_newUndelegate(a: number, b: number, c: number, d: number): number; +export function transactionbuilderparams_newRedelegate(a: number, b: number, c: number, d: number, e: number): number; +export function transactionbuilderparams_newWithdrawBid(a: number, b: number, c: number): number; +export function transactionbuilderparams_kind(a: number): number; +export function transactionbuilderparams_set_kind(a: number, b: number): void; +export function transactionbuilderparams_transaction_bytes(a: number): number; +export function transactionbuilderparams_set_transaction_bytes(a: number, b: number): void; +export function transactionbuilderparams_maybe_source(a: number): number; +export function transactionbuilderparams_set_maybe_source(a: number, b: number): void; +export function transactionbuilderparams_target(a: number): number; +export function transactionbuilderparams_set_target(a: number, b: number): void; +export function transactionbuilderparams_amount(a: number): Array; +export function transactionbuilderparams_set_amount(a: number, b: number, c: number): void; +export function transactionbuilderparams_maybe_id(a: number): Array; +export function transactionbuilderparams_set_maybe_id(a: number, b: number): void; +export function transactionbuilderparams_entity_hash(a: number): number; +export function transactionbuilderparams_set_entity_hash(a: number, b: number): void; +export function transactionbuilderparams_entity_alias(a: number): Array; +export function transactionbuilderparams_set_entity_alias(a: number, b: number, c: number): void; +export function transactionbuilderparams_entry_point(a: number): Array; +export function transactionbuilderparams_set_entry_point(a: number, b: number, c: number): void; +export function transactionbuilderparams_package_hash(a: number): number; +export function transactionbuilderparams_set_package_hash(a: number, b: number): void; +export function transactionbuilderparams_package_alias(a: number): Array; +export function transactionbuilderparams_set_package_alias(a: number, b: number, c: number): void; +export function transactionbuilderparams_public_key(a: number): number; +export function transactionbuilderparams_set_public_key(a: number, b: number): void; +export function transactionbuilderparams_delegation_rate(a: number): number; +export function transactionbuilderparams_set_delegation_rate(a: number, b: number): void; +export function transactionbuilderparams_delegator(a: number): number; +export function transactionbuilderparams_set_delegator(a: number, b: number): void; +export function transactionbuilderparams_validator(a: number): number; +export function transactionbuilderparams_set_validator(a: number, b: number): void; +export function transactionbuilderparams_new_validator(a: number): number; +export function transactionbuilderparams_set_new_validator(a: number, b: number): void; +export function transactionbuilderparams_minimum_delegation_amount(a: number): Array; +export function transactionbuilderparams_set_minimum_delegation_amount(a: number, b: number): void; +export function transactionbuilderparams_maximum_delegation_amount(a: number): Array; +export function transactionbuilderparams_set_maximum_delegation_amount(a: number, b: number): void; +export function transactionbuilderparams_is_install_upgrade(a: number): number; +export function transactionbuilderparams_set_is_install_upgrade(a: number, b: number): void; +export function sdk_speculative_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function __wbg_getblockresult_free(a: number, b: number): void; +export function getblockresult_api_version(a: number): number; +export function getblockresult_block(a: number): number; +export function getblockresult_toJson(a: number): number; +export function __wbg_getblockoptions_free(a: number, b: number): void; +export function __wbg_get_getblockoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getblockoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getblockoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getblockoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getblockoptions_rpc_address(a: number): Array; +export function __wbg_set_getblockoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getblockoptions_verbosity(a: number): number; +export function __wbg_set_getblockoptions_verbosity(a: number, b: number): void; +export function sdk_get_block_options(a: number, b: number): Array; +export function sdk_get_block(a: number, b: number): number; +export function sdk_chain_get_block(a: number, b: number): number; export function __wbg_getstateroothashresult_free(a: number, b: number): void; export function getstateroothashresult_api_version(a: number): number; export function getstateroothashresult_state_root_hash(a: number): number; export function getstateroothashresult_state_root_hash_as_string(a: number): Array; +export function getstateroothashresult_toString(a: number): Array; export function getstateroothashresult_toJson(a: number): number; -export function __wbg_getstateroothashoptions_free(a: number, b: number): void; -export function __wbg_get_getstateroothashoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getstateroothashoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getstateroothashoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getstateroothashoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getstateroothashoptions_rpc_address(a: number): Array; -export function __wbg_set_getstateroothashoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getstateroothashoptions_verbosity(a: number): number; -export function __wbg_set_getstateroothashoptions_verbosity(a: number, b: number): void; export function sdk_get_state_root_hash_options(a: number, b: number): Array; export function sdk_get_state_root_hash(a: number, b: number): number; export function sdk_chain_get_state_root_hash(a: number, b: number): number; -export function sdk_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function sdk_watchDeploy(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_watchTransaction(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_waitDeploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_waitTransaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function __wbg_watcher_free(a: number, b: number): void; -export function watcher_new(a: number, b: number, c: number, d: number): number; -export function watcher_subscribe(a: number, b: number, c: number): Array; -export function watcher_unsubscribe(a: number, b: number, c: number): void; -export function watcher_start(a: number): number; -export function watcher_stop(a: number): void; -export function __wbg_subscription_free(a: number, b: number): void; -export function __wbg_get_subscription_eventHandlerFn(a: number): number; -export function __wbg_set_subscription_eventHandlerFn(a: number, b: number): void; -export function subscription_new(a: number, b: number, c: number): number; -export function __wbg_failure_free(a: number, b: number): void; -export function __wbg_get_failure_cost(a: number): Array; -export function __wbg_set_failure_cost(a: number, b: number, c: number): void; -export function __wbg_get_failure_error_message(a: number): Array; -export function __wbg_set_failure_error_message(a: number, b: number, c: number): void; -export function __wbg_version2_free(a: number, b: number): void; -export function __wbg_get_version2_error_message(a: number): Array; -export function __wbg_set_version2_error_message(a: number, b: number, c: number): void; -export function __wbg_executionresult_free(a: number, b: number): void; -export function __wbg_get_executionresult_Success(a: number): number; -export function __wbg_set_executionresult_Success(a: number, b: number): void; -export function __wbg_get_executionresult_Failure(a: number): number; -export function __wbg_set_executionresult_Failure(a: number, b: number): void; -export function __wbg_hashstring_free(a: number, b: number): void; -export function hashstring_Deploy(a: number): Array; -export function hashstring_toString(a: number): Array; -export function __wbg_messages_free(a: number, b: number): void; -export function __wbg_set_messages_entity_hash(a: number, b: number, c: number): void; -export function __wbg_get_messages_message(a: number): number; -export function __wbg_set_messages_message(a: number, b: number): void; -export function __wbg_get_messages_topic_name(a: number): Array; -export function __wbg_set_messages_topic_name(a: number, b: number, c: number): void; -export function __wbg_get_messages_topic_name_hash(a: number): Array; -export function __wbg_set_messages_topic_name_hash(a: number, b: number, c: number): void; -export function __wbg_get_messages_topic_index(a: number): number; -export function __wbg_set_messages_topic_index(a: number, b: number): void; -export function __wbg_get_messages_block_index(a: number): number; -export function __wbg_set_messages_block_index(a: number, b: number): void; -export function __wbg_transactionprocessed_free(a: number, b: number): void; -export function __wbg_get_transactionprocessed_hash(a: number): number; -export function __wbg_set_transactionprocessed_hash(a: number, b: number): void; -export function __wbg_get_transactionprocessed_initiator_addr(a: number): number; -export function __wbg_set_transactionprocessed_initiator_addr(a: number, b: number): void; -export function __wbg_get_transactionprocessed_timestamp(a: number): Array; -export function __wbg_set_transactionprocessed_timestamp(a: number, b: number, c: number): void; -export function __wbg_set_transactionprocessed_ttl(a: number, b: number, c: number): void; -export function __wbg_get_transactionprocessed_execution_result(a: number): number; -export function __wbg_set_transactionprocessed_execution_result(a: number, b: number): void; -export function __wbg_get_transactionprocessed_messages(a: number): Array; -export function __wbg_set_transactionprocessed_messages(a: number, b: number, c: number): void; -export function __wbg_body_free(a: number, b: number): void; -export function __wbg_get_body_transaction_processed(a: number): number; -export function __wbg_set_body_transaction_processed(a: number, b: number): void; -export function body_get_deploy_processed(a: number): number; -export function __wbg_eventparseresult_free(a: number, b: number): void; -export function __wbg_get_eventparseresult_err(a: number): Array; -export function __wbg_set_eventparseresult_err(a: number, b: number, c: number): void; -export function __wbg_get_eventparseresult_body(a: number): number; -export function __wbg_set_eventparseresult_body(a: number, b: number): void; -export function __wbg_payment_free(a: number, b: number): void; -export function __wbg_publickeystring_free(a: number, b: number): void; -export function __wbg_message_free(a: number, b: number): void; -export function __wbg_get_version2_initiator(a: number): number; -export function getstateroothashresult_toString(a: number): Array; -export function accountidentifier_new(a: number, b: number): Array; -export function __wbg_set_subscription_targetHash(a: number, b: number, c: number): void; -export function __wbg_set_version2_limit(a: number, b: number, c: number): void; -export function __wbg_set_payment_source(a: number, b: number, c: number): void; -export function __wbg_set_hashstring_hash(a: number, b: number, c: number): void; -export function __wbg_set_publickeystring_PublicKey(a: number, b: number, c: number): void; -export function __wbg_set_message_String(a: number, b: number, c: number): void; -export function __wbg_set_version2_consumed(a: number, b: number, c: number): void; -export function __wbg_set_version2_cost(a: number, b: number, c: number): void; -export function __wbg_set_transactionprocessed_block_hash(a: number, b: number, c: number): void; -export function body_get_transaction_processed(a: number): number; -export function hashstring_Version1(a: number): Array; -export function __wbg_set_version2_initiator(a: number, b: number): void; -export function __wbg_hashaddr_free(a: number, b: number): void; -export function __wbg_deployhash_free(a: number, b: number): void; -export function __wbg_digest_free(a: number, b: number): void; -export function __wbg_publickey_free(a: number, b: number): void; -export function __wbg_get_subscription_targetHash(a: number): Array; -export function __wbg_get_version2_limit(a: number): Array; -export function __wbg_get_payment_source(a: number): Array; -export function __wbg_get_hashstring_hash(a: number): Array; -export function __wbg_get_publickeystring_PublicKey(a: number): Array; -export function __wbg_get_message_String(a: number): Array; -export function __wbg_get_messages_entity_hash(a: number): Array; -export function __wbg_get_version2_cost(a: number): Array; -export function __wbg_get_version2_consumed(a: number): Array; -export function __wbg_get_transactionprocessed_ttl(a: number): Array; -export function __wbg_get_transactionprocessed_block_hash(a: number): Array; -export function digest_toString(a: number): Array; -export function sdk_speculative_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_speculative_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function __wbg_getauctioninforesult_free(a: number, b: number): void; -export function getauctioninforesult_api_version(a: number): number; -export function getauctioninforesult_auction_state(a: number): number; -export function getauctioninforesult_toJson(a: number): number; -export function __wbg_getauctioninfooptions_free(a: number, b: number): void; -export function __wbg_get_getauctioninfooptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getauctioninfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getauctioninfooptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getauctioninfooptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getauctioninfooptions_rpc_address(a: number): Array; -export function __wbg_set_getauctioninfooptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getauctioninfooptions_verbosity(a: number): number; -export function __wbg_set_getauctioninfooptions_verbosity(a: number, b: number): void; -export function sdk_get_auction_info_options(a: number, b: number): Array; -export function sdk_get_auction_info(a: number, b: number): number; -export function sdk_state_get_auction_info_js_alias(a: number, b: number): number; -export function __wbg_geterasummaryresult_free(a: number, b: number): void; -export function geterasummaryresult_api_version(a: number): number; -export function geterasummaryresult_era_summary(a: number): number; -export function geterasummaryresult_toJson(a: number): number; -export function sdk_get_era_summary_options(a: number, b: number): Array; -export function sdk_get_era_summary(a: number, b: number): number; -export function sdk_chain_get_era_summary(a: number, b: number): number; export function __wbg_querybalanceresult_free(a: number, b: number): void; export function querybalanceresult_api_version(a: number): number; export function querybalanceresult_balance(a: number): number; @@ -962,39 +905,96 @@ export function __wbg_get_querybalanceoptions_verbosity(a: number): number; export function __wbg_set_querybalanceoptions_verbosity(a: number, b: number): void; export function sdk_query_balance_options(a: number, b: number): Array; export function sdk_query_balance(a: number, b: number): number; -export function sdk_call_entrypoint(a: number, b: number, c: number, d: number, e: number): number; -export function __wbg_get_geterasummaryoptions_maybe_block_identifier(a: number): number; -export function __wbg_geterasummaryoptions_free(a: number, b: number): void; -export function __wbg_set_geterasummaryoptions_verbosity(a: number, b: number): void; -export function __wbg_set_geterasummaryoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_geterasummaryoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_geterasummaryoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_get_geterasummaryoptions_rpc_address(a: number): Array; -export function __wbg_get_geterasummaryoptions_verbosity(a: number): number; -export function __wbg_set_geterasummaryoptions_maybe_block_identifier(a: number, b: number): void; +export function speculativeexectxnresult_api_version(a: number): number; +export function speculativeexectxnresult_execution_result(a: number): number; +export function speculativeexectxnresult_toJson(a: number): number; +export function __wbg_getspeculativeexectxnoptions_free(a: number, b: number): void; +export function __wbg_get_getspeculativeexectxnoptions_transaction(a: number): number; +export function __wbg_set_getspeculativeexectxnoptions_transaction(a: number, b: number): void; +export function sdk_get_speculative_exec_options(a: number, b: number): Array; +export function sdk_speculative_exec(a: number, b: number): number; +export function __wbg_speculativeexecresult_free(a: number, b: number): void; +export function speculativeexecresult_api_version(a: number): number; +export function speculativeexecresult_block_hash(a: number): number; +export function speculativeexecresult_execution_result(a: number): number; +export function speculativeexecresult_toJson(a: number): number; +export function __wbg_getspeculativeexecdeployoptions_free(a: number, b: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_deploy_as_string(a: number): Array; +export function __wbg_set_getspeculativeexecdeployoptions_deploy_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_deploy(a: number): number; +export function __wbg_set_getspeculativeexecdeployoptions_deploy(a: number, b: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_rpc_address(a: number): Array; +export function __wbg_set_getspeculativeexecdeployoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_verbosity(a: number): number; +export function __wbg_set_getspeculativeexecdeployoptions_verbosity(a: number, b: number): void; +export function sdk_get_speculative_exec_deploy_options(a: number, b: number): Array; +export function sdk_speculative_exec_deploy(a: number, b: number): number; +export function sdk_make_deploy(a: number, b: number, c: number, d: number): Array; +export function sdk_make_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; +export function sdk_sign_transaction(a: number, b: number, c: number, d: number): number; +export function sdk_install_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_sdk_free(a: number, b: number): void; +export function sdk_new(a: number, b: number, c: number): number; +export function sdk_getRPCAddress(a: number, b: number, c: number): Array; +export function sdk_setRPCAddress(a: number, b: number, c: number): Array; +export function sdk_getVerbosity(a: number, b: number): number; +export function sdk_setVerbosity(a: number, b: number): Array; +export function hexToString(a: number, b: number): Array; +export function hexToUint8Array(a: number, b: number): Array; +export function uint8ArrayToBytes(a: number): number; +export function motesToCSPR(a: number, b: number): Array; +export function jsonPrettyPrint(a: number, b: number): Array; +export function publicKeyFromSecretKey(a: number, b: number): Array; +export function generateSecretKey(): Array; +export function generateSecretKey_secp256k1(): Array; +export function accountHashToBase64Key(a: number, b: number): Array; +export function getTimestamp(): number; +export function encodeLowerBlake2b(a: number, b: number): number; +export function makeDictionaryItemKey(a: number, b: number, c: number): Array; +export function __wbg_get_getstateroothashoptions_maybe_block_identifier(a: number): number; +export function __wbg_getstateroothashoptions_free(a: number, b: number): void; +export function __wbg_set_getstateroothashoptions_verbosity(a: number, b: number): void; +export function __wbg_set_getspeculativeexectxnoptions_verbosity(a: number, b: number): void; +export function __wbg_set_getstateroothashoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_getstateroothashoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_set_getspeculativeexectxnoptions_transaction_as_string(a: number, b: number, c: number): void; +export function __wbg_set_getspeculativeexectxnoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getstateroothashoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_getstateroothashoptions_rpc_address(a: number): Array; +export function __wbg_get_getspeculativeexectxnoptions_transaction_as_string(a: number): Array; +export function __wbg_get_getspeculativeexectxnoptions_rpc_address(a: number): Array; +export function __wbg_get_getstateroothashoptions_verbosity(a: number): number; +export function __wbg_get_getspeculativeexectxnoptions_verbosity(a: number): number; +export function __wbg_set_getstateroothashoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_speculativeexectxnresult_free(a: number, b: number): void; +export function __wbg_dictionaryaddr_free(a: number, b: number): void; +export function __wbg_blockhash_free(a: number, b: number): void; +export function __wbg_contracthash_free(a: number, b: number): void; +export function speculativeexectxnresult_block_hash(a: number): number; +export function entityidentifier_new_js_alias(a: number, b: number): Array; export function __wbg_intounderlyingbytesource_free(a: number, b: number): void; -export function intounderlyingbytesource_type(a: number): Array; +export function intounderlyingbytesource_type(a: number): number; export function intounderlyingbytesource_autoAllocateChunkSize(a: number): number; export function intounderlyingbytesource_start(a: number, b: number): void; export function intounderlyingbytesource_pull(a: number, b: number): number; export function intounderlyingbytesource_cancel(a: number): void; -export function __wbg_intounderlyingsource_free(a: number, b: number): void; -export function intounderlyingsource_pull(a: number, b: number): number; -export function intounderlyingsource_cancel(a: number): void; export function __wbg_intounderlyingsink_free(a: number, b: number): void; export function intounderlyingsink_write(a: number, b: number): number; export function intounderlyingsink_close(a: number): number; export function intounderlyingsink_abort(a: number, b: number): number; +export function __wbg_intounderlyingsource_free(a: number, b: number): void; +export function intounderlyingsource_pull(a: number, b: number): number; +export function intounderlyingsource_cancel(a: number): void; export function __wbindgen_malloc(a: number, b: number): number; export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number; export const __wbindgen_export_2: WebAssembly.Table; export const __wbindgen_export_3: WebAssembly.Table; -export function closure1010_externref_shim(a: number, b: number, c: number): void; -export function closure1024_externref_shim(a: number, b: number, c: number): void; -export function __externref_table_dealloc(a: number): void; +export function closure1017_externref_shim(a: number, b: number, c: number): void; +export function closure1027_externref_shim(a: number, b: number, c: number): void; export function __wbindgen_free(a: number, b: number, c: number): void; +export function __externref_table_dealloc(a: number): void; export function __externref_table_alloc(): number; -export function __wbindgen_exn_store(a: number): void; export function __externref_drop_slice(a: number, b: number): void; -export function closure1570_externref_shim(a: number, b: number, c: number, d: number): void; +export function __wbindgen_exn_store(a: number): void; +export function closure1586_externref_shim(a: number, b: number, c: number, d: number): void; export function __wbindgen_start(): void; diff --git a/pkg/casper_rust_wasm_sdk.d.ts b/pkg/casper_rust_wasm_sdk.d.ts index 50676631..bd68e3bd 100644 --- a/pkg/casper_rust_wasm_sdk.d.ts +++ b/pkg/casper_rust_wasm_sdk.d.ts @@ -1414,7 +1414,7 @@ export class IntoUnderlyingByteSource { pull(controller: ReadableByteStreamController): Promise; cancel(): void; readonly autoAllocateChunkSize: number; - readonly type: string; + readonly type: any; } export class IntoUnderlyingSink { free(): void; @@ -1827,27 +1827,217 @@ export class QueryGlobalStateResult { export class SDK { free(): void; /** - * JavaScript function for deploying with deserialized parameters. + * Parses balance options from a JsValue. * * # Arguments * - * * `deploy_params` - Deploy parameters. - * * `session_params` - Session parameters. - * * `payment_params` - Payment parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. + * * `options` - A JsValue containing balance options to be parsed. * * # Returns * - * A result containing PutDeployResult or a JsError. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Parsed balance options as a `GetBalanceOptions` struct. + * @param {any} options + * @returns {getBalanceOptions} */ - deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + get_balance_options(options: any): getBalanceOptions; + /** + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} + */ + get_balance(options?: getBalanceOptions): Promise; + /** + * JavaScript Alias for `get_balance`. + * + * # Arguments + * + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} + */ + state_get_balance(options?: getBalanceOptions): Promise; + /** + * Parses query balance options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query balance options to be parsed. + * + * # Returns + * + * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. + * @param {any} options + * @returns {queryBalanceDetailsOptions} + */ + query_balance_details_options(options: any): queryBalanceDetailsOptions; + /** + * Retrieves balance information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryBalanceDetailsOptions | undefined} [options] + * @returns {Promise} + */ + query_balance_details(options?: queryBalanceDetailsOptions): Promise; + /** + * Parses query global state options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query global state options to be parsed. + * + * # Returns + * + * Parsed query global state options as a `QueryGlobalStateOptions` struct. + * @param {any} options + * @returns {queryGlobalStateOptions} + */ + query_global_state_options(options: any): queryGlobalStateOptions; + /** + * Retrieves global state information using the provided options. + * + * # Arguments + * + * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryGlobalStateOptions | undefined} [options] + * @returns {Promise} + */ + query_global_state(options?: queryGlobalStateOptions): Promise; + /** + * Deserialize query_contract_key_options from a JavaScript object. + * @param {any} options + * @returns {queryContractKeyOptions} + */ + query_contract_key_options(options: any): queryContractKeyOptions; + /** + * JavaScript function for query_contract_key with deserialized options. + * @param {queryContractKeyOptions | undefined} [options] + * @returns {Promise} + */ + query_contract_key(options?: queryContractKeyOptions): Promise; + /** + * Parses deploy options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing deploy options to be parsed. + * + * # Returns + * + * Parsed deploy options as a `GetDeployOptions` struct. + * @param {any} options + * @returns {getDeployOptions} + */ + get_deploy_options(options: any): getDeployOptions; + /** + * Retrieves deploy information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetDeployOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetDeployResult` or an error. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} + */ + get_deploy(options?: getDeployOptions): Promise; + /** + * Retrieves deploy information using the provided options, alias for `get_deploy`. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} + */ + info_get_deploy(options?: getDeployOptions): Promise; + /** + * Parses transaction options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing transaction options to be parsed. + * + * # Returns + * + * Parsed transaction options as a `GetTransactionOptions` struct. + * @param {any} options + * @returns {getTransactionOptions} + */ + get_transaction_options(options: any): getTransactionOptions; + /** + * Retrieves transaction information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetTransactionResult` or an error. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} + */ + get_transaction(options?: getTransactionOptions): Promise; + /** + * Retrieves transaction information using the provided options, alias for `get_transaction`. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} + */ + info_get_transaction(options?: getTransactionOptions): Promise; + /** + * JS function for `make_transfer_transaction`. + * + * # Arguments + * + * * `maybe_source` - Optional transfer source uref. + * * `amount` - The transfer amount. + * * `target` - The target account. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - Optional transfer identifier. + * + * # Returns + * + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @returns {Transaction} + */ + make_transfer_transaction(maybe_source: URef | undefined, target: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string): Transaction; /** * Asynchronously retrieves the chainspec. * @@ -1945,6 +2135,32 @@ export class SDK { * @returns {Promise} */ state_get_entity(options?: getEntityOptions): Promise; + /** + * Retrieves node status information using the provided options. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * + * # Returns + * + * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + get_node_status(verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_status(verbosity?: Verbosity, rpc_address?: string): Promise; /** * Retrieves peers asynchronously. * @@ -2014,21 +2230,21 @@ export class SDK { */ list_rpcs(verbosity?: Verbosity, rpc_address?: string): Promise; /** - * JS function for `sign_transaction`. + * JS function for `sign_deploy`. * * # Arguments * - * * `transaction` - The transaction to sign. + * * `deploy` - The deploy to sign. * * `secret_key` - The secret key for signing. * * # Returns * - * The signed `Transaction`. - * @param {Transaction} transaction + * The signed `Deploy`. + * @param {Deploy} deploy * @param {string} secret_key - * @returns {Transaction} + * @returns {Deploy} */ - sign_transaction(transaction: Transaction, secret_key: string): Transaction; + sign_deploy(deploy: Deploy, secret_key: string): Deploy; /** * Deserialize query_contract_dict_options from a JavaScript object. * @param {any} options @@ -2042,112 +2258,133 @@ export class SDK { */ query_contract_dict(options?: queryContractDictOptions): Promise; /** - * Parses block options from a JsValue. + * JavaScript function for deploying with deserialized parameters. * * # Arguments * - * * `options` - A JsValue containing block options to be parsed. + * * `deploy_params` - Deploy parameters. + * * `session_params` - Session parameters. + * * `payment_params` - Payment parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. * * # Returns * - * Parsed block options as a `GetBlockOptions` struct. + * A result containing PutDeployResult or a JsError. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + /** * @param {any} options - * @returns {getBlockOptions} + * @returns {getAccountOptions} */ - get_block_options(options: any): getBlockOptions; + get_account_options(options: any): getAccountOptions; /** - * Retrieves block information using the provided options. + * Retrieves account information using the provided options. + * + * This function is an asynchronous JavaScript binding for the Rust `get_account` method. * * # Arguments * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * * `options` - An optional `GetAccountOptions` struct containing retrieval options, such as: + * - `account_identifier`: Identifier for the account. + * - `account_identifier_as_string`: String representation of the account identifier. + * - `maybe_block_id_as_string`: Optional string representation of the block ID. + * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. + * - `verbosity`: Verbosity level for the output. + * - `rpc_address`: Address of the node to query. * * # Returns * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetAccountResult` on success or a `JsError` on failure. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. + * ``` + * @param {getAccountOptions | undefined} [options] + * @returns {Promise} */ - get_block(options?: getBlockOptions): Promise; + get_account(options?: getAccountOptions): Promise; /** - * JavaScript Alias for the `get_block`. - * - * # Arguments - * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} + * @param {getAccountOptions | undefined} [options] + * @returns {Promise} */ - chain_get_block(options?: getBlockOptions): Promise; + state_get_account_info(options?: getAccountOptions): Promise; /** - * Parses block transfers options from a JsValue. + * Parses auction info options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing block transfers options to be parsed. + * * `options` - A JsValue containing auction info options to be parsed. * * # Returns * - * Parsed block transfers options as a `GetBlockTransfersOptions` struct. + * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, + * or a `JsError` if deserialization fails. * @param {any} options - * @returns {getBlockTransfersOptions} + * @returns {getAuctionInfoOptions} */ - get_block_transfers_options(options: any): getBlockTransfersOptions; + get_auction_info_options(options: any): getAuctionInfoOptions; /** - * Retrieves block transfers information using the provided options. + * Retrieves auction information using the provided options. * * # Arguments * - * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. + * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} */ - get_block_transfers(options?: getBlockTransfersOptions): Promise; + get_auction_info(options?: getAuctionInfoOptions): Promise; /** - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} */ - chain_get_block_transfers(options?: getBlockTransfersOptions): Promise; + state_get_auction_info_js_alias(options?: getAuctionInfoOptions): Promise; /** - * Get options for speculative execution from a JavaScript value. * @param {any} options - * @returns {getSpeculativeExecDeployOptions} + * @returns {getEraInfoOptions} */ - get_speculative_exec_deploy_options(options: any): getSpeculativeExecDeployOptions; + get_era_info_options(options: any): getEraInfoOptions; /** - * JS function for speculative execution. + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} + */ + get_era_info(options?: getEraInfoOptions): Promise; + /** + * @param {getEraInfoOptions | undefined} [options] + * @returns {Promise} + */ + chain_get_era_info_by_switch_block(options?: getEraInfoOptions): Promise; + /** + * JS function for `make_transaction`. * * # Arguments * - * * `options` - The options for speculative execution. + * * `builder_params` - Transaction Builder parameters. + * * `transaction_params` - The transaction parameters. * * # Returns * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecDeployOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @returns {Transaction} */ - speculative_exec_deploy(options?: getSpeculativeExecDeployOptions): Promise; + make_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams): Transaction; /** * JavaScript function for transactioning with deserialized parameters. * @@ -2169,226 +2406,155 @@ export class SDK { */ transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * JS function for `make_transfer`. + * Puts a deploy using the provided options. * * # Arguments * - * * `amount` - The transfer amount. - * * `target_account` - The target account. - * * `transfer_id` - Optional transfer identifier. - * * `deploy_params` - The deploy parameters. - * * `payment_params` - The payment parameters. + * * `deploy` - The `Deploy` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id - * @param {DeployStrParams} deploy_params - * @param {PaymentStrParams} payment_params - * @returns {Deploy} - */ - make_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams): Deploy; - /** - * JS function for `sign_deploy`. - * - * # Arguments - * - * * `deploy` - The deploy to sign. - * * `secret_key` - The secret key for signing. + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. * - * # Returns + * # Errors * - * The signed `Deploy`. + * Returns a `JsError` if there is an error during the deploy process. * @param {Deploy} deploy - * @param {string} secret_key - * @returns {Deploy} - */ - sign_deploy(deploy: Deploy, secret_key: string): Deploy; - /** - * @param {string | undefined} [rpc_address] * @param {Verbosity | undefined} [verbosity] - */ - constructor(rpc_address?: string, verbosity?: Verbosity); - /** - * @param {string | undefined} [rpc_address] - * @returns {string} - */ - getRPCAddress(rpc_address?: string): string; - /** * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - setRPCAddress(rpc_address?: string): void; - /** - * @param {Verbosity | undefined} [verbosity] - * @returns {Verbosity} - */ - getVerbosity(verbosity?: Verbosity): Verbosity; + put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; /** + * JavaScript Alias for `put_deploy`. + * @param {Deploy} deploy * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - setVerbosity(verbosity?: Verbosity): void; - /** - * @param {any} options - * @returns {getAccountOptions} - */ - get_account_options(options: any): getAccountOptions; + account_put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Retrieves account information using the provided options. - * - * This function is an asynchronous JavaScript binding for the Rust `get_account` method. + * JS function for transaction transferring funds. * * # Arguments * - * * `options` - An optional `GetAccountOptions` struct containing retrieval options, such as: - * - `account_identifier`: Identifier for the account. - * - `account_identifier_as_string`: String representation of the account identifier. - * - `maybe_block_id_as_string`: Optional string representation of the block ID. - * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. - * - `verbosity`: Verbosity level for the output. - * - `rpc_address`: Address of the node to query. + * * `maybe_source` - Optional transfer source uref. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A `Result` containing either a `GetAccountResult` on success or a `JsError` on failure. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. - * ``` - * @param {getAccountOptions | undefined} [options] - * @returns {Promise} - */ - get_account(options?: getAccountOptions): Promise; - /** - * @param {getAccountOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target_account + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - state_get_account_info(options?: getAccountOptions): Promise; + transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Parses balance options from a JsValue. + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * Legacy alias * * # Arguments * - * * `options` - A JsValue containing balance options to be parsed. + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. * * # Returns * - * Parsed balance options as a `GetBalanceOptions` struct. - * @param {any} options - * @returns {getBalanceOptions} + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} */ - get_balance_options(options: any): getBalanceOptions; + watchDeploy(events_url: string, timeout_duration?: number): Watcher; /** - * Retrieves balance information using the provided options. + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). * * # Arguments * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. * * # Returns * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} */ - get_balance(options?: getBalanceOptions): Promise; + watchTransaction(events_url: string, timeout_duration?: number): Watcher; /** - * JavaScript Alias for `get_balance`. + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * Legacy alias * * # Arguments * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * * `events_url` - The URL to monitor for transaction events. + * * `deploy_hash` - The deploy hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. * * # Returns * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} - */ - state_get_balance(options?: getBalanceOptions): Promise; - /** - * @param {any} options - * @returns {getEraInfoOptions} - */ - get_era_info_options(options: any): getEraInfoOptions; - /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} - */ - get_era_info(options?: getEraInfoOptions): Promise; - /** - * @param {getEraInfoOptions | undefined} [options] - * @returns {Promise} + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} deploy_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} */ - chain_get_era_info_by_switch_block(options?: getEraInfoOptions): Promise; + waitDeploy(events_url: string, deploy_hash: string, timeout_duration?: number): Promise>; /** - * JS function for `make_deploy`. + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). * * # Arguments * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_params` - The payment parameters. + * * `events_url` - The URL to monitor for transaction events. + * * `target_hash` - The transaction hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. * * # Returns * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @returns {Deploy} + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} target_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} */ - make_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams): Deploy; + waitTransaction(events_url: string, target_hash: string, timeout_duration?: number): Promise>; /** - * JS function for `make_transaction`. + * Calls a smart contract entry point with the specified parameters and returns the result. * * # Arguments * + * * `transaction_params` - Transaction parameters. * * `builder_params` - Transaction Builder parameters. - * * `transaction_params` - The transaction parameters. + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @returns {Transaction} - */ - make_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams): Transaction; - /** - * JS function for speculative transfer transaction. - * - * # Arguments - * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `transaction_params` - The transactionment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. * - * # Returns + * # Errors * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount + * Returns a `JsError` if there is an error during the call. + * @param {TransactionBuilderParams} builder_params * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - speculative_transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; + call_entrypoint(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, rpc_address?: string): Promise; /** - * Installs a smart contract with the specified parameters and returns the result. + * Calls a smart contract entry point with the specified parameters and returns the result. * * # Arguments * @@ -2403,82 +2569,136 @@ export class SDK { * * # Errors * - * Returns a `JsError` if there is an error during the installation. + * Returns a `JsError` if there is an error during the call. * @param {DeployStrParams} deploy_params * @param {SessionStrParams} session_params * @param {string} payment_amount * @param {string | undefined} [rpc_address] * @returns {Promise} */ - install_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; + call_entrypoint_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; /** - * Parses deploy options from a JsValue. + * This function allows executing a deploy speculatively. * * # Arguments * - * * `options` - A JsValue containing deploy options to be parsed. + * * `deploy_params` - Deployment parameters for the deploy. + * * `session_params` - Session parameters for the deploy. + * * `payment_params` - Payment parameters for the deploy. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. * * # Returns * - * Parsed deploy options as a `GetDeployOptions` struct. + * A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + speculative_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * JS function for transferring funds. + * + * # Arguments + * + * * `amount` - The amount to transfer. + * * `target_account` - The target account. + * * `transfer_id` - An optional transfer ID (defaults to a random number). + * * `deploy_params` - The deployment parameters. + * * `payment_params` - The payment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + /** + * Parses block transfers options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing block transfers options to be parsed. + * + * # Returns + * + * Parsed block transfers options as a `GetBlockTransfersOptions` struct. * @param {any} options - * @returns {getDeployOptions} + * @returns {getBlockTransfersOptions} */ - get_deploy_options(options: any): getDeployOptions; + get_block_transfers_options(options: any): getBlockTransfersOptions; /** - * Retrieves deploy information using the provided options. + * Retrieves block transfers information using the provided options. * * # Arguments * - * * `options` - An optional `GetDeployOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetDeployResult` or an error. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} */ - get_deploy(options?: getDeployOptions): Promise; + get_block_transfers(options?: getBlockTransfersOptions): Promise; /** - * Retrieves deploy information using the provided options, alias for `get_deploy`. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} */ - info_get_deploy(options?: getDeployOptions): Promise; + chain_get_block_transfers(options?: getBlockTransfersOptions): Promise; /** - * Parses transaction options from a JsValue. + * Parses era summary options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing transaction options to be parsed. + * * `options` - A JsValue containing era summary options to be parsed. * * # Returns * - * Parsed transaction options as a `GetTransactionOptions` struct. + * Parsed era summary options as a `GetEraSummaryOptions` struct. * @param {any} options - * @returns {getTransactionOptions} + * @returns {getEraSummaryOptions} */ - get_transaction_options(options: any): getTransactionOptions; + get_era_summary_options(options: any): getEraSummaryOptions; /** - * Retrieves transaction information using the provided options. + * Retrieves era summary information using the provided options. * * # Arguments * - * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. + * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetTransactionResult` or an error. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} */ - get_transaction(options?: getTransactionOptions): Promise; + get_era_summary(options?: getEraSummaryOptions): Promise; /** - * Retrieves transaction information using the provided options, alias for `get_transaction`. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} */ - info_get_transaction(options?: getTransactionOptions): Promise; + chain_get_era_summary(options?: getEraSummaryOptions): Promise; /** * Puts a transaction using the provided options. * @@ -2509,26 +2729,6 @@ export class SDK { * @returns {Promise} */ account_put_transaction(transaction: Transaction, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * Get options for speculative execution from a JavaScript value. - * @param {any} options - * @returns {getSpeculativeExecTxnOptions} - */ - get_speculative_exec_options(options: any): getSpeculativeExecTxnOptions; - /** - * JS function for speculative execution. - * - * # Arguments - * - * * `options` - The options for speculative execution. - * - * # Returns - * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecTxnOptions | undefined} [options] - * @returns {Promise} - */ - speculative_exec(options?: getSpeculativeExecTxnOptions): Promise; /** * This function allows executing a transaction speculatively. * @@ -2550,27 +2750,31 @@ export class SDK { */ speculative_transaction(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * JS function for `make_transfer_transaction`. + * JS function for speculative transfer transaction. * * # Arguments * * * `maybe_source` - Optional transfer source uref. - * * `amount` - The transfer amount. - * * `target` - The target account. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - Optional transfer identifier. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `transaction_params` - The transactionment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. * @param {URef | undefined} maybe_source - * @param {string} target + * @param {string} target_account * @param {string} amount * @param {TransactionStrParams} transaction_params * @param {string | undefined} [maybe_id] - * @returns {Transaction} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - make_transfer_transaction(maybe_source: URef | undefined, target: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string): Transaction; + speculative_transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; /** * Installs a smart contract with the specified parameters and returns the result. * @@ -2594,7 +2798,7 @@ export class SDK { */ install(transaction_params: TransactionStrParams, transaction_bytes: Bytes, rpc_address?: string): Promise; /** - * JS function for transferring funds. + * JS function for speculative transfer. * * # Arguments * @@ -2608,7 +2812,7 @@ export class SDK { * * # Returns * - * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. * @param {string} amount * @param {string} target_account * @param {string | undefined} transfer_id @@ -2616,165 +2820,59 @@ export class SDK { * @param {PaymentStrParams} payment_params * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * Retrieves node status information using the provided options. - * - * # Arguments - * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - get_node_status(verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - info_get_status(verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * Puts a deploy using the provided options. - * - * # Arguments - * - * * `deploy` - The `Deploy` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the deploy process. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * JavaScript Alias for `put_deploy`. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - account_put_deploy(deploy: Deploy, verbosity?: Verbosity, rpc_address?: string): Promise; + speculative_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; /** - * Parses query balance options from a JsValue. + * Parses block options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing query balance options to be parsed. + * * `options` - A JsValue containing block options to be parsed. * * # Returns * - * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. + * Parsed block options as a `GetBlockOptions` struct. * @param {any} options - * @returns {queryBalanceDetailsOptions} + * @returns {getBlockOptions} */ - query_balance_details_options(options: any): queryBalanceDetailsOptions; + get_block_options(options: any): getBlockOptions; /** - * Retrieves balance information using the provided options. + * Retrieves block information using the provided options. * * # Arguments * - * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceDetailsOptions | undefined} [options] - * @returns {Promise} - */ - query_balance_details(options?: queryBalanceDetailsOptions): Promise; - /** - * Parses query global state options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing query global state options to be parsed. - * - * # Returns - * - * Parsed query global state options as a `QueryGlobalStateOptions` struct. - * @param {any} options - * @returns {queryGlobalStateOptions} + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - query_global_state_options(options: any): queryGlobalStateOptions; + get_block(options?: getBlockOptions): Promise; /** - * Retrieves global state information using the provided options. + * JavaScript Alias for the `get_block`. * * # Arguments * - * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryGlobalStateOptions | undefined} [options] - * @returns {Promise} - */ - query_global_state(options?: queryGlobalStateOptions): Promise; - /** - * Calls a smart contract entry point with the specified parameters and returns the result. - * - * # Arguments - * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_amount` - The payment amount as a string. - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the call. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {string} payment_amount - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - call_entrypoint_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; - /** - * Deserialize query_contract_key_options from a JavaScript object. - * @param {any} options - * @returns {queryContractKeyOptions} - */ - query_contract_key_options(options: any): queryContractKeyOptions; - /** - * JavaScript function for query_contract_key with deserialized options. - * @param {queryContractKeyOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - query_contract_key(options?: queryContractKeyOptions): Promise; + chain_get_block(options?: getBlockOptions): Promise; /** * Parses state root hash options from a JsValue. * @@ -2826,278 +2924,180 @@ export class SDK { */ chain_get_state_root_hash(options?: getStateRootHashOptions): Promise; /** - * JS function for transaction transferring funds. + * Parses query balance options from a JsValue. * * # Arguments * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). + * * `options` - A JsValue containing query balance options to be parsed. * * # Returns * - * A `Result` containing the result of the transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Parsed query balance options as a `QueryBalanceOptions` struct. + * @param {any} options + * @returns {queryBalanceOptions} */ - transfer_transaction(maybe_source: URef | undefined, target_account: string, amount: string, transaction_params: TransactionStrParams, maybe_id?: string, verbosity?: Verbosity, rpc_address?: string): Promise; + query_balance_options(options: any): queryBalanceOptions; /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). - * Legacy alias + * Retrieves balance information using the provided options. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. * * # Returns * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} + * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryBalanceOptions | undefined} [options] + * @returns {Promise} */ - watchDeploy(events_url: string, timeout_duration?: number): Watcher; + query_balance(options?: queryBalanceOptions): Promise; /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecTxnOptions} + */ + get_speculative_exec_options(options: any): getSpeculativeExecTxnOptions; + /** + * JS function for speculative execution. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `options` - The options for speculative execution. * * # Returns * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecTxnOptions | undefined} [options] + * @returns {Promise} */ - watchTransaction(events_url: string, timeout_duration?: number): Watcher; + speculative_exec(options?: getSpeculativeExecTxnOptions): Promise; /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). - * Legacy alias + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecDeployOptions} + */ + get_speculative_exec_deploy_options(options: any): getSpeculativeExecDeployOptions; + /** + * JS function for speculative execution. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `deploy_hash` - The deploy hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `options` - The options for speculative execution. * * # Returns * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} deploy_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecDeployOptions | undefined} [options] + * @returns {Promise} */ - waitDeploy(events_url: string, deploy_hash: string, timeout_duration?: number): Promise>; + speculative_exec_deploy(options?: getSpeculativeExecDeployOptions): Promise; /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * JS function for `make_deploy`. * * # Arguments * - * * `events_url` - The URL to monitor for transaction events. - * * `target_hash` - The transaction hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_params` - The payment parameters. * * # Returns * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} target_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} */ - waitTransaction(events_url: string, target_hash: string, timeout_duration?: number): Promise>; + make_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams): Deploy; /** - * This function allows executing a deploy speculatively. - * - * # Arguments - * - * * `deploy_params` - Deployment parameters for the deploy. - * * `session_params` - Session parameters for the deploy. - * * `payment_params` - Payment parameters for the deploy. - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - speculative_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; - /** - * JS function for speculative transfer. + * JS function for `make_transfer`. * * # Arguments * - * * `amount` - The amount to transfer. + * * `amount` - The transfer amount. * * `target_account` - The target account. - * * `transfer_id` - An optional transfer ID (defaults to a random number). - * * `deploy_params` - The deployment parameters. + * * `transfer_id` - Optional transfer identifier. + * * `deploy_params` - The deploy parameters. * * `payment_params` - The payment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. * @param {string} amount * @param {string} target_account * @param {string | undefined} transfer_id * @param {DeployStrParams} deploy_params * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Deploy} */ - speculative_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams, verbosity?: Verbosity, rpc_address?: string): Promise; + make_transfer(amount: string, target_account: string, transfer_id: string | undefined, deploy_params: DeployStrParams, payment_params: PaymentStrParams): Deploy; /** - * Parses auction info options from a JsValue. + * JS function for `sign_transaction`. * * # Arguments * - * * `options` - A JsValue containing auction info options to be parsed. + * * `transaction` - The transaction to sign. + * * `secret_key` - The secret key for signing. * * # Returns * - * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, - * or a `JsError` if deserialization fails. - * @param {any} options - * @returns {getAuctionInfoOptions} + * The signed `Transaction`. + * @param {Transaction} transaction + * @param {string} secret_key + * @returns {Transaction} */ - get_auction_info_options(options: any): getAuctionInfoOptions; + sign_transaction(transaction: Transaction, secret_key: string): Transaction; /** - * Retrieves auction information using the provided options. + * Installs a smart contract with the specified parameters and returns the result. * * # Arguments * - * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. + * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} - */ - get_auction_info(options?: getAuctionInfoOptions): Promise; - /** - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} - */ - state_get_auction_info_js_alias(options?: getAuctionInfoOptions): Promise; - /** - * Parses era summary options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing era summary options to be parsed. - * - * # Returns - * - * Parsed era summary options as a `GetEraSummaryOptions` struct. - * @param {any} options - * @returns {getEraSummaryOptions} + * Returns a `JsError` if there is an error during the installation. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - get_era_summary_options(options: any): getEraSummaryOptions; + install_deploy(deploy_params: DeployStrParams, session_params: SessionStrParams, payment_amount: string, rpc_address?: string): Promise; /** - * Retrieves era summary information using the provided options. - * - * # Arguments - * - * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * @param {string | undefined} [rpc_address] + * @param {Verbosity | undefined} [verbosity] */ - get_era_summary(options?: getEraSummaryOptions): Promise; + constructor(rpc_address?: string, verbosity?: Verbosity); /** - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * @param {string | undefined} [rpc_address] + * @returns {string} */ - chain_get_era_summary(options?: getEraSummaryOptions): Promise; + getRPCAddress(rpc_address?: string): string; /** - * Parses query balance options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing query balance options to be parsed. - * - * # Returns - * - * Parsed query balance options as a `QueryBalanceOptions` struct. - * @param {any} options - * @returns {queryBalanceOptions} + * @param {string | undefined} [rpc_address] */ - query_balance_options(options: any): queryBalanceOptions; + setRPCAddress(rpc_address?: string): void; /** - * Retrieves balance information using the provided options. - * - * # Arguments - * - * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceOptions | undefined} [options] - * @returns {Promise} + * @param {Verbosity | undefined} [verbosity] + * @returns {Verbosity} */ - query_balance(options?: queryBalanceOptions): Promise; + getVerbosity(verbosity?: Verbosity): Verbosity; /** - * Calls a smart contract entry point with the specified parameters and returns the result. - * - * # Arguments - * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Transaction Builder parameters. - * * `rpc_address` - An optional rpc address to send the request to. - * - * # Returns - * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the call. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @param {Verbosity | undefined} [verbosity] */ - call_entrypoint(builder_params: TransactionBuilderParams, transaction_params: TransactionStrParams, rpc_address?: string): Promise; + setVerbosity(verbosity?: Verbosity): void; } export class SessionStrParams { free(): void; @@ -3890,196 +3890,164 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl export interface InitOutput { readonly memory: WebAssembly.Memory; - readonly __wbg_urefaddr_free: (a: number, b: number) => void; - readonly urefaddr_new: (a: number, b: number) => Array; + readonly __wbg_peerentry_free: (a: number, b: number) => void; + readonly peerentry_node_id: (a: number) => Array; + readonly peerentry_address: (a: number) => Array; readonly __wbg_blockidentifier_free: (a: number, b: number) => void; readonly blockidentifier_new: (a: number) => number; readonly blockidentifier_from_hash: (a: number) => number; readonly blockidentifier_fromHeight: (a: number) => number; readonly blockidentifier_toJson: (a: number) => number; - readonly __wbg_eraid_free: (a: number, b: number) => void; - readonly eraid_new: (a: number) => number; - readonly eraid_value: (a: number) => number; - readonly __wbg_putdeployresult_free: (a: number, b: number) => void; - readonly putdeployresult_api_version: (a: number) => number; - readonly putdeployresult_deploy_hash: (a: number) => number; - readonly putdeployresult_toJson: (a: number) => number; - readonly sdk_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly __wbg_getchainspecresult_free: (a: number, b: number) => void; - readonly getchainspecresult_api_version: (a: number) => number; - readonly getchainspecresult_chainspec_bytes: (a: number) => number; - readonly getchainspecresult_toJson: (a: number) => number; - readonly sdk_get_chainspec: (a: number, b: number, c: number, d: number) => number; - readonly sdk_info_get_chainspec: (a: number, b: number, c: number, d: number) => number; - readonly __wbg_getdictionaryitemresult_free: (a: number, b: number) => void; - readonly getdictionaryitemresult_api_version: (a: number) => number; - readonly getdictionaryitemresult_dictionary_key: (a: number) => Array; - readonly getdictionaryitemresult_stored_value: (a: number) => number; - readonly getdictionaryitemresult_merkle_proof: (a: number) => Array; - readonly getdictionaryitemresult_toJson: (a: number) => number; - readonly __wbg_getdictionaryitemoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getdictionaryitemoptions_state_root_hash_as_string: (a: number) => Array; - readonly __wbg_set_getdictionaryitemoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getdictionaryitemoptions_state_root_hash: (a: number) => number; - readonly __wbg_set_getdictionaryitemoptions_state_root_hash: (a: number, b: number) => void; - readonly __wbg_get_getdictionaryitemoptions_dictionary_item_params: (a: number) => number; - readonly __wbg_set_getdictionaryitemoptions_dictionary_item_params: (a: number, b: number) => void; - readonly __wbg_get_getdictionaryitemoptions_dictionary_item_identifier: (a: number) => number; - readonly __wbg_set_getdictionaryitemoptions_dictionary_item_identifier: (a: number, b: number) => void; - readonly __wbg_get_getdictionaryitemoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getdictionaryitemoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getdictionaryitemoptions_verbosity: (a: number) => number; - readonly __wbg_set_getdictionaryitemoptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_dictionary_item_options: (a: number, b: number) => Array; - readonly sdk_get_dictionary_item: (a: number, b: number) => number; - readonly sdk_state_get_dictionary_item: (a: number, b: number) => number; - readonly __wbg_getaddressableentityresult_free: (a: number, b: number) => void; - readonly getaddressableentityresult_api_version: (a: number) => number; - readonly getaddressableentityresult_entity_result: (a: number) => number; - readonly getaddressableentityresult_merkle_proof: (a: number) => Array; - readonly getaddressableentityresult_toJson: (a: number) => number; - readonly __wbg_getentityoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getentityoptions_entity_identifier: (a: number) => number; - readonly __wbg_set_getentityoptions_entity_identifier: (a: number, b: number) => void; - readonly __wbg_get_getentityoptions_entity_identifier_as_string: (a: number) => Array; - readonly __wbg_set_getentityoptions_entity_identifier_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getentityoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_getentityoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getentityoptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_set_getentityoptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_get_getentityoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getentityoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getentityoptions_verbosity: (a: number) => number; - readonly __wbg_set_getentityoptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_entity_options: (a: number, b: number) => Array; - readonly sdk_get_entity: (a: number, b: number) => number; - readonly sdk_state_get_entity: (a: number, b: number) => number; - readonly __wbg_getpeersresult_free: (a: number, b: number) => void; - readonly getpeersresult_api_version: (a: number) => number; - readonly getpeersresult_peers: (a: number) => number; - readonly getpeersresult_toJson: (a: number) => number; - readonly sdk_get_peers: (a: number, b: number, c: number, d: number) => number; - readonly sdk_info_get_peers: (a: number, b: number, c: number, d: number) => number; - readonly __wbg_getvalidatorchangesresult_free: (a: number, b: number) => void; - readonly getvalidatorchangesresult_api_version: (a: number) => number; - readonly getvalidatorchangesresult_changes: (a: number) => number; - readonly getvalidatorchangesresult_toJson: (a: number) => number; - readonly sdk_get_validator_changes: (a: number, b: number, c: number, d: number) => number; - readonly sdk_info_get_validator_change: (a: number, b: number, c: number, d: number) => number; - readonly __wbg_listrpcsresult_free: (a: number, b: number) => void; - readonly listrpcsresult_api_version: (a: number) => number; - readonly listrpcsresult_name: (a: number) => Array; - readonly listrpcsresult_schema: (a: number) => number; - readonly listrpcsresult_toJson: (a: number) => number; - readonly sdk_list_rpcs: (a: number, b: number, c: number, d: number) => number; - readonly sdk_sign_transaction: (a: number, b: number, c: number, d: number) => number; - readonly sdk_query_contract_dict_options: (a: number, b: number) => Array; - readonly sdk_query_contract_dict: (a: number, b: number) => number; - readonly __wbg_get_querycontractdictoptions_dictionary_item_params: (a: number) => number; - readonly __wbg_get_querycontractdictoptions_dictionary_item_identifier: (a: number) => number; - readonly __wbg_set_querycontractdictoptions_verbosity: (a: number, b: number) => void; - readonly __wbg_set_querycontractdictoptions_state_root_hash: (a: number, b: number) => void; - readonly __wbg_set_querycontractdictoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_querycontractdictoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_querycontractdictoptions_free: (a: number, b: number) => void; - readonly __wbg_get_querycontractdictoptions_state_root_hash: (a: number) => number; - readonly __wbg_get_querycontractdictoptions_state_root_hash_as_string: (a: number) => Array; - readonly __wbg_get_querycontractdictoptions_rpc_address: (a: number) => Array; - readonly __wbg_get_querycontractdictoptions_verbosity: (a: number) => number; - readonly __wbg_set_querycontractdictoptions_dictionary_item_params: (a: number, b: number) => void; - readonly __wbg_set_querycontractdictoptions_dictionary_item_identifier: (a: number, b: number) => void; - readonly __wbg_accessrights_free: (a: number, b: number) => void; - readonly accessrights_NONE: () => number; - readonly accessrights_READ: () => number; - readonly accessrights_WRITE: () => number; - readonly accessrights_ADD: () => number; - readonly accessrights_READ_ADD: () => number; - readonly accessrights_READ_WRITE: () => number; - readonly accessrights_ADD_WRITE: () => number; - readonly accessrights_READ_ADD_WRITE: () => number; - readonly accessrights_new: (a: number) => Array; - readonly accessrights_from_bits: (a: number, b: number, c: number) => number; - readonly accessrights_is_readable: (a: number) => number; - readonly accessrights_is_writeable: (a: number) => number; - readonly accessrights_is_addable: (a: number) => number; - readonly accessrights_is_none: (a: number) => number; - readonly __wbg_entityaddr_free: (a: number, b: number) => void; - readonly entityaddr_fromFormattedStr: (a: number, b: number) => Array; - readonly entityaddr_toFormattedString: (a: number) => Array; - readonly entityaddr_toHexString: (a: number) => Array; - readonly entityaddr_toJson: (a: number) => number; - readonly __wbg_addressableentityhash_free: (a: number, b: number) => void; - readonly addressableentityhash_new_js_alias: (a: number, b: number) => Array; - readonly addressableentityhash_fromFormattedStr: (a: number, b: number) => Array; - readonly addressableentityhash_toFormattedString: (a: number) => Array; - readonly addressableentityhash_fromUint8Array: (a: number, b: number) => number; - readonly contracthash_new_js_alias: (a: number, b: number) => Array; - readonly contracthash_fromFormattedStr: (a: number, b: number) => Array; - readonly contracthash_toFormattedString: (a: number) => Array; - readonly contracthash_fromUint8Array: (a: number, b: number) => number; - readonly __wbg_deploy_free: (a: number, b: number) => void; - readonly deploy_new: (a: number) => number; - readonly deploy_toJson: (a: number) => number; - readonly deploy_withPaymentAndSession: (a: number, b: number, c: number) => Array; - readonly deploy_withTransfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => Array; - readonly deploy_withTTL: (a: number, b: number, c: number, d: number, e: number) => number; - readonly deploy_withTimestamp: (a: number, b: number, c: number, d: number, e: number) => number; - readonly deploy_withChainName: (a: number, b: number, c: number, d: number, e: number) => number; - readonly deploy_withAccount: (a: number, b: number, c: number, d: number) => number; - readonly deploy_withEntryPointName: (a: number, b: number, c: number, d: number, e: number) => number; - readonly deploy_withHash: (a: number, b: number, c: number, d: number) => number; - readonly deploy_withPackageHash: (a: number, b: number, c: number, d: number) => number; - readonly deploy_withModuleBytes: (a: number, b: number, c: number, d: number) => number; - readonly deploy_withSecretKey: (a: number, b: number, c: number) => number; - readonly deploy_withStandardPayment: (a: number, b: number, c: number, d: number, e: number) => number; - readonly deploy_withPayment: (a: number, b: number, c: number, d: number) => number; - readonly deploy_withSession: (a: number, b: number, c: number, d: number) => number; - readonly deploy_validateDeploySize: (a: number) => number; - readonly deploy_isValid: (a: number) => number; - readonly deploy_hash: (a: number) => number; - readonly deploy_hasValidHash: (a: number) => number; - readonly deploy_isExpired: (a: number) => number; - readonly deploy_sign: (a: number, b: number, c: number) => number; - readonly deploy_approvalsHash: (a: number) => number; - readonly deploy_approvals: (a: number) => number; - readonly deploy_isTransfer: (a: number) => number; - readonly deploy_isStandardPayment: (a: number, b: number) => number; - readonly deploy_isStoredContract: (a: number) => number; - readonly deploy_isStoredContractPackage: (a: number) => number; - readonly deploy_isModuleBytes: (a: number) => number; - readonly deploy_isByName: (a: number) => number; - readonly deploy_byName: (a: number) => Array; - readonly deploy_entryPointName: (a: number) => Array; - readonly deploy_addSignature: (a: number, b: number, c: number, d: number, e: number) => number; - readonly deploy_TTL: (a: number) => Array; - readonly deploy_timestamp: (a: number) => Array; - readonly deploy_chainName: (a: number) => Array; - readonly deploy_account: (a: number) => Array; - readonly deploy_paymentAmount: (a: number, b: number) => Array; - readonly deploy_args: (a: number) => number; - readonly deploy_addArg: (a: number, b: number, c: number, d: number) => Array; - readonly __wbg_paymentstrparams_free: (a: number, b: number) => void; - readonly paymentstrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number) => number; - readonly paymentstrparams_payment_amount: (a: number) => Array; - readonly paymentstrparams_set_payment_amount: (a: number, b: number, c: number) => void; - readonly paymentstrparams_payment_hash: (a: number) => Array; - readonly paymentstrparams_set_payment_hash: (a: number, b: number, c: number) => void; - readonly paymentstrparams_payment_name: (a: number) => Array; - readonly paymentstrparams_set_payment_name: (a: number, b: number, c: number) => void; - readonly paymentstrparams_payment_package_hash: (a: number) => Array; - readonly paymentstrparams_set_payment_package_hash: (a: number, b: number, c: number) => void; - readonly paymentstrparams_payment_package_name: (a: number) => Array; - readonly paymentstrparams_set_payment_package_name: (a: number, b: number, c: number) => void; - readonly paymentstrparams_payment_path: (a: number) => Array; - readonly paymentstrparams_set_payment_path: (a: number, b: number, c: number) => void; - readonly paymentstrparams_payment_args_simple: (a: number) => number; - readonly paymentstrparams_set_payment_args_simple: (a: number, b: number) => void; - readonly paymentstrparams_payment_args_json: (a: number) => Array; - readonly paymentstrparams_set_payment_args_json: (a: number, b: number, c: number) => void; - readonly paymentstrparams_payment_version: (a: number) => Array; - readonly paymentstrparams_set_payment_version: (a: number, b: number, c: number) => void; - readonly paymentstrparams_payment_entry_point: (a: number) => Array; - readonly paymentstrparams_set_payment_entry_point: (a: number, b: number, c: number) => void; + readonly __wbg_getbalanceresult_free: (a: number, b: number) => void; + readonly getbalanceresult_api_version: (a: number) => number; + readonly getbalanceresult_balance_value: (a: number) => number; + readonly getbalanceresult_merkle_proof: (a: number) => Array; + readonly getbalanceresult_toJson: (a: number) => number; + readonly __wbg_getbalanceoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getbalanceoptions_state_root_hash_as_string: (a: number) => Array; + readonly __wbg_set_getbalanceoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getbalanceoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_getbalanceoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_get_getbalanceoptions_purse_uref_as_string: (a: number) => Array; + readonly __wbg_set_getbalanceoptions_purse_uref_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getbalanceoptions_purse_uref: (a: number) => number; + readonly __wbg_set_getbalanceoptions_purse_uref: (a: number, b: number) => void; + readonly __wbg_get_getbalanceoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getbalanceoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getbalanceoptions_verbosity: (a: number) => number; + readonly __wbg_set_getbalanceoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_balance_options: (a: number, b: number) => Array; + readonly sdk_get_balance: (a: number, b: number) => number; + readonly sdk_state_get_balance: (a: number, b: number) => number; + readonly __wbg_querybalancedetailsresult_free: (a: number, b: number) => void; + readonly querybalancedetailsresult_api_version: (a: number) => number; + readonly querybalancedetailsresult_total_balance: (a: number) => number; + readonly querybalancedetailsresult_available_balance: (a: number) => number; + readonly querybalancedetailsresult_total_balance_proof: (a: number) => number; + readonly querybalancedetailsresult_holds: (a: number) => number; + readonly querybalancedetailsresult_toJson: (a: number) => number; + readonly __wbg_querybalancedetailsoptions_free: (a: number, b: number) => void; + readonly __wbg_get_querybalancedetailsoptions_purse_identifier_as_string: (a: number) => Array; + readonly __wbg_set_querybalancedetailsoptions_purse_identifier_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querybalancedetailsoptions_purse_identifier: (a: number) => number; + readonly __wbg_set_querybalancedetailsoptions_purse_identifier: (a: number, b: number) => void; + readonly __wbg_get_querybalancedetailsoptions_global_state_identifier: (a: number) => number; + readonly __wbg_set_querybalancedetailsoptions_global_state_identifier: (a: number, b: number) => void; + readonly __wbg_get_querybalancedetailsoptions_state_root_hash_as_string: (a: number) => Array; + readonly __wbg_set_querybalancedetailsoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querybalancedetailsoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_querybalancedetailsoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_get_querybalancedetailsoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_set_querybalancedetailsoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querybalancedetailsoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_querybalancedetailsoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_querybalancedetailsoptions_verbosity: (a: number) => number; + readonly __wbg_set_querybalancedetailsoptions_verbosity: (a: number, b: number) => void; + readonly sdk_query_balance_details_options: (a: number, b: number) => Array; + readonly sdk_query_balance_details: (a: number, b: number) => number; + readonly __wbg_queryglobalstateresult_free: (a: number, b: number) => void; + readonly queryglobalstateresult_api_version: (a: number) => number; + readonly queryglobalstateresult_block_header: (a: number) => number; + readonly queryglobalstateresult_stored_value: (a: number) => number; + readonly queryglobalstateresult_merkle_proof: (a: number) => Array; + readonly queryglobalstateresult_toJson: (a: number) => number; + readonly __wbg_queryglobalstateoptions_free: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_global_state_identifier: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_global_state_identifier: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_state_root_hash_as_string: (a: number) => Array; + readonly __wbg_set_queryglobalstateoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_set_queryglobalstateoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_key_as_string: (a: number) => Array; + readonly __wbg_set_queryglobalstateoptions_key_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_key: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_key: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_path_as_string: (a: number) => Array; + readonly __wbg_set_queryglobalstateoptions_path_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_path: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_path: (a: number, b: number) => void; + readonly __wbg_get_queryglobalstateoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_queryglobalstateoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_queryglobalstateoptions_verbosity: (a: number) => number; + readonly __wbg_set_queryglobalstateoptions_verbosity: (a: number, b: number) => void; + readonly sdk_query_global_state_options: (a: number, b: number) => Array; + readonly sdk_query_global_state: (a: number, b: number) => number; + readonly __wbg_querycontractkeyoptions_free: (a: number, b: number) => void; + readonly __wbg_get_querycontractkeyoptions_entity_identifier: (a: number) => number; + readonly __wbg_set_querycontractkeyoptions_entity_identifier: (a: number, b: number) => void; + readonly __wbg_get_querycontractkeyoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_querycontractkeyoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_querycontractkeyoptions_path: (a: number) => number; + readonly __wbg_set_querycontractkeyoptions_path: (a: number, b: number) => void; + readonly __wbg_get_querycontractkeyoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_querycontractkeyoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_querycontractkeyoptions_verbosity: (a: number) => number; + readonly __wbg_set_querycontractkeyoptions_verbosity: (a: number, b: number) => void; + readonly sdk_query_contract_key_options: (a: number, b: number) => Array; + readonly sdk_query_contract_key: (a: number, b: number) => number; + readonly __wbg_set_querycontractkeyoptions_entity_identifier_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_querycontractkeyoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_querycontractkeyoptions_path_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_querycontractkeyoptions_entity_identifier_as_string: (a: number) => Array; + readonly __wbg_get_querycontractkeyoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_get_querycontractkeyoptions_path_as_string: (a: number) => Array; + readonly __wbg_accounthash_free: (a: number, b: number) => void; + readonly accounthash_new_js_alias: (a: number, b: number) => Array; + readonly accounthash_fromFormattedStr: (a: number, b: number) => Array; + readonly accounthash_fromPublicKey: (a: number) => number; + readonly accounthash_toFormattedString: (a: number) => Array; + readonly accounthash_toHexString: (a: number) => Array; + readonly accounthash_fromUint8Array: (a: number, b: number) => number; + readonly accounthash_toJson: (a: number) => number; + readonly __wbg_deploystrparams_free: (a: number, b: number) => void; + readonly deploystrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; + readonly deploystrparams_secret_key: (a: number) => Array; + readonly deploystrparams_set_secret_key: (a: number, b: number, c: number) => void; + readonly deploystrparams_timestamp: (a: number) => Array; + readonly deploystrparams_set_timestamp: (a: number, b: number, c: number) => void; + readonly deploystrparams_setDefaultTimestamp: (a: number) => void; + readonly deploystrparams_ttl: (a: number) => Array; + readonly deploystrparams_set_ttl: (a: number, b: number, c: number) => void; + readonly deploystrparams_setDefaultTTL: (a: number) => void; + readonly deploystrparams_chain_name: (a: number) => Array; + readonly deploystrparams_set_chain_name: (a: number, b: number, c: number) => void; + readonly deploystrparams_session_account: (a: number) => Array; + readonly deploystrparams_set_session_account: (a: number, b: number, c: number) => void; + readonly deploystrparams_gas_price_tolerance: (a: number) => Array; + readonly deploystrparams_set_gas_price_tolerance: (a: number, b: number, c: number) => void; + readonly __wbg_sessionstrparams_free: (a: number, b: number) => void; + readonly sessionstrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number) => number; + readonly sessionstrparams_session_hash: (a: number) => Array; + readonly sessionstrparams_set_session_hash: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_name: (a: number) => Array; + readonly sessionstrparams_set_session_name: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_package_hash: (a: number) => Array; + readonly sessionstrparams_set_session_package_hash: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_package_name: (a: number) => Array; + readonly sessionstrparams_set_session_package_name: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_path: (a: number) => Array; + readonly sessionstrparams_set_session_path: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_bytes: (a: number) => number; + readonly sessionstrparams_set_session_bytes: (a: number, b: number) => void; + readonly sessionstrparams_session_args_simple: (a: number) => number; + readonly sessionstrparams_set_session_args_simple: (a: number, b: number) => void; + readonly sessionstrparams_session_args_json: (a: number) => Array; + readonly sessionstrparams_set_session_args_json: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_version: (a: number) => Array; + readonly sessionstrparams_set_session_version: (a: number, b: number, c: number) => void; + readonly sessionstrparams_session_entry_point: (a: number) => Array; + readonly sessionstrparams_set_session_entry_point: (a: number, b: number, c: number) => void; + readonly sessionstrparams_is_session_transfer: (a: number) => number; + readonly sessionstrparams_set_is_session_transfer: (a: number, b: number) => void; + readonly __wbg_dictionaryitemidentifier_free: (a: number, b: number) => void; + readonly dictionaryitemidentifier_newFromAccountInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => Array; + readonly dictionaryitemidentifier_newFromContractInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => Array; + readonly dictionaryitemidentifier_newFromEntityInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => Array; + readonly dictionaryitemidentifier_newFromSeedUref: (a: number, b: number, c: number, d: number) => Array; + readonly dictionaryitemidentifier_newFromDictionaryKey: (a: number, b: number) => Array; + readonly dictionaryitemidentifier_toJson: (a: number) => number; readonly __wbg_key_free: (a: number, b: number) => void; readonly key_new: (a: number) => Array; readonly key_toJson: (a: number) => number; @@ -4109,290 +4077,13 @@ export interface InitOutput { readonly key_intoURef: (a: number) => number; readonly key_urefToHash: (a: number) => number; readonly key_withdrawToUnbond: (a: number) => number; - readonly __wbg_transfertarget_free: (a: number, b: number) => void; - readonly transfertarget_new: (a: number, b: number, c: number, d: number) => number; - readonly __wbg_transactionbuilderparams_free: (a: number, b: number) => void; - readonly transactionbuilderparams_newSession: (a: number, b: number) => number; - readonly transactionbuilderparams_newTransfer: (a: number, b: number, c: number, d: number, e: number, f: number) => number; - readonly transactionbuilderparams_newInvocableEntity: (a: number, b: number, c: number) => number; - readonly transactionbuilderparams_newInvocableEntityAlias: (a: number, b: number, c: number, d: number) => number; - readonly transactionbuilderparams_newPackage: (a: number, b: number, c: number, d: number, e: number) => number; - readonly transactionbuilderparams_newPackageAlias: (a: number, b: number, c: number, d: number, e: number, f: number) => number; - readonly transactionbuilderparams_newAddBid: (a: number, b: number, c: number, d: number, e: number, f: number) => number; - readonly transactionbuilderparams_newDelegate: (a: number, b: number, c: number, d: number) => number; - readonly transactionbuilderparams_newUndelegate: (a: number, b: number, c: number, d: number) => number; - readonly transactionbuilderparams_newRedelegate: (a: number, b: number, c: number, d: number, e: number) => number; - readonly transactionbuilderparams_newWithdrawBid: (a: number, b: number, c: number) => number; - readonly transactionbuilderparams_kind: (a: number) => number; - readonly transactionbuilderparams_set_kind: (a: number, b: number) => void; - readonly transactionbuilderparams_transaction_bytes: (a: number) => number; - readonly transactionbuilderparams_set_transaction_bytes: (a: number, b: number) => void; - readonly transactionbuilderparams_maybe_source: (a: number) => number; - readonly transactionbuilderparams_set_maybe_source: (a: number, b: number) => void; - readonly transactionbuilderparams_target: (a: number) => number; - readonly transactionbuilderparams_set_target: (a: number, b: number) => void; - readonly transactionbuilderparams_amount: (a: number) => Array; - readonly transactionbuilderparams_set_amount: (a: number, b: number, c: number) => void; - readonly transactionbuilderparams_maybe_id: (a: number) => Array; - readonly transactionbuilderparams_set_maybe_id: (a: number, b: number) => void; - readonly transactionbuilderparams_entity_hash: (a: number) => number; - readonly transactionbuilderparams_set_entity_hash: (a: number, b: number) => void; - readonly transactionbuilderparams_entity_alias: (a: number) => Array; - readonly transactionbuilderparams_set_entity_alias: (a: number, b: number, c: number) => void; - readonly transactionbuilderparams_entry_point: (a: number) => Array; - readonly transactionbuilderparams_set_entry_point: (a: number, b: number, c: number) => void; - readonly transactionbuilderparams_package_hash: (a: number) => number; - readonly transactionbuilderparams_set_package_hash: (a: number, b: number) => void; - readonly transactionbuilderparams_package_alias: (a: number) => Array; - readonly transactionbuilderparams_set_package_alias: (a: number, b: number, c: number) => void; - readonly transactionbuilderparams_public_key: (a: number) => number; - readonly transactionbuilderparams_set_public_key: (a: number, b: number) => void; - readonly transactionbuilderparams_delegation_rate: (a: number) => number; - readonly transactionbuilderparams_set_delegation_rate: (a: number, b: number) => void; - readonly transactionbuilderparams_delegator: (a: number) => number; - readonly transactionbuilderparams_set_delegator: (a: number, b: number) => void; - readonly transactionbuilderparams_validator: (a: number) => number; - readonly transactionbuilderparams_set_validator: (a: number, b: number) => void; - readonly transactionbuilderparams_new_validator: (a: number) => number; - readonly transactionbuilderparams_set_new_validator: (a: number, b: number) => void; - readonly transactionbuilderparams_minimum_delegation_amount: (a: number) => Array; - readonly transactionbuilderparams_set_minimum_delegation_amount: (a: number, b: number) => void; - readonly transactionbuilderparams_maximum_delegation_amount: (a: number) => Array; - readonly transactionbuilderparams_set_maximum_delegation_amount: (a: number, b: number) => void; - readonly transactionbuilderparams_is_install_upgrade: (a: number) => number; - readonly transactionbuilderparams_set_is_install_upgrade: (a: number, b: number) => void; - readonly __wbg_getblockresult_free: (a: number, b: number) => void; - readonly getblockresult_api_version: (a: number) => number; - readonly getblockresult_block: (a: number) => number; - readonly getblockresult_toJson: (a: number) => number; - readonly __wbg_getblockoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getblockoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_getblockoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getblockoptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_set_getblockoptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_get_getblockoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getblockoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getblockoptions_verbosity: (a: number) => number; - readonly __wbg_set_getblockoptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_block_options: (a: number, b: number) => Array; - readonly sdk_get_block: (a: number, b: number) => number; - readonly sdk_chain_get_block: (a: number, b: number) => number; - readonly __wbg_getblocktransfersresult_free: (a: number, b: number) => void; - readonly getblocktransfersresult_api_version: (a: number) => number; - readonly getblocktransfersresult_block_hash: (a: number) => number; - readonly getblocktransfersresult_transfers: (a: number) => number; - readonly getblocktransfersresult_toJson: (a: number) => number; - readonly sdk_get_block_transfers_options: (a: number, b: number) => Array; - readonly sdk_get_block_transfers: (a: number, b: number) => number; - readonly sdk_chain_get_block_transfers: (a: number, b: number) => number; - readonly __wbg_speculativeexecresult_free: (a: number, b: number) => void; - readonly speculativeexecresult_api_version: (a: number) => number; - readonly speculativeexecresult_block_hash: (a: number) => number; - readonly speculativeexecresult_execution_result: (a: number) => number; - readonly speculativeexecresult_toJson: (a: number) => number; - readonly __wbg_getspeculativeexecdeployoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getspeculativeexecdeployoptions_deploy_as_string: (a: number) => Array; - readonly __wbg_set_getspeculativeexecdeployoptions_deploy_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getspeculativeexecdeployoptions_deploy: (a: number) => number; - readonly __wbg_set_getspeculativeexecdeployoptions_deploy: (a: number, b: number) => void; - readonly __wbg_get_getspeculativeexecdeployoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getspeculativeexecdeployoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getspeculativeexecdeployoptions_verbosity: (a: number) => number; - readonly __wbg_set_getspeculativeexecdeployoptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_speculative_exec_deploy_options: (a: number, b: number) => Array; - readonly sdk_speculative_exec_deploy: (a: number, b: number) => number; - readonly __wbg_puttransactionresult_free: (a: number, b: number) => void; - readonly puttransactionresult_api_version: (a: number) => number; - readonly puttransactionresult_transaction_hash: (a: number) => number; - readonly puttransactionresult_toJson: (a: number) => number; - readonly sdk_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number; - readonly sdk_make_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => Array; - readonly sdk_sign_deploy: (a: number, b: number, c: number, d: number) => number; - readonly __wbg_sdk_free: (a: number, b: number) => void; - readonly sdk_new: (a: number, b: number, c: number) => number; - readonly sdk_getRPCAddress: (a: number, b: number, c: number) => Array; - readonly sdk_setRPCAddress: (a: number, b: number, c: number) => Array; - readonly sdk_getVerbosity: (a: number, b: number) => number; - readonly sdk_setVerbosity: (a: number, b: number) => Array; - readonly hexToString: (a: number, b: number) => Array; - readonly hexToUint8Array: (a: number, b: number) => Array; - readonly uint8ArrayToBytes: (a: number) => number; - readonly motesToCSPR: (a: number, b: number) => Array; - readonly jsonPrettyPrint: (a: number, b: number) => Array; - readonly publicKeyFromSecretKey: (a: number, b: number) => Array; - readonly generateSecretKey: () => Array; - readonly generateSecretKey_secp256k1: () => Array; - readonly accountHashToBase64Key: (a: number, b: number) => Array; - readonly getTimestamp: () => number; - readonly encodeLowerBlake2b: (a: number, b: number) => number; - readonly makeDictionaryItemKey: (a: number, b: number, c: number) => Array; - readonly __wbg_get_getblocktransfersoptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_getblocktransfersoptions_free: (a: number, b: number) => void; - readonly __wbg_set_getblocktransfersoptions_verbosity: (a: number, b: number) => void; - readonly __wbg_set_getblocktransfersoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_getblocktransfersoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getblocktransfersoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_get_getblocktransfersoptions_rpc_address: (a: number) => Array; - readonly __wbg_get_getblocktransfersoptions_verbosity: (a: number) => number; - readonly __wbg_set_getblocktransfersoptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_contracthash_free: (a: number, b: number) => void; - readonly __wbg_transferaddr_free: (a: number, b: number) => void; - readonly transferaddr_new: (a: number, b: number) => Array; - readonly __wbg_bytes_free: (a: number, b: number) => void; - readonly bytes_new: () => number; - readonly bytes_fromUint8Array: (a: number) => number; - readonly __wbg_argssimple_free: (a: number, b: number) => void; - readonly __wbg_signatureresponse_free: (a: number, b: number) => void; - readonly signatureresponse_is_cancelled: (a: number) => number; - readonly signatureresponse_get_signature_hex: (a: number) => Array; - readonly signatureresponse_get_signature: (a: number) => Array; - readonly __wbg_getaccountresult_free: (a: number, b: number) => void; - readonly getaccountresult_api_version: (a: number) => number; - readonly getaccountresult_account: (a: number) => number; - readonly getaccountresult_merkle_proof: (a: number) => Array; - readonly getaccountresult_toJson: (a: number) => number; - readonly __wbg_getaccountoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getaccountoptions_account_identifier: (a: number) => number; - readonly __wbg_set_getaccountoptions_account_identifier: (a: number, b: number) => void; - readonly __wbg_get_getaccountoptions_account_identifier_as_string: (a: number) => Array; - readonly __wbg_set_getaccountoptions_account_identifier_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getaccountoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_getaccountoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getaccountoptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_set_getaccountoptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_get_getaccountoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getaccountoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getaccountoptions_verbosity: (a: number) => number; - readonly __wbg_set_getaccountoptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_account_options: (a: number, b: number) => Array; - readonly sdk_get_account: (a: number, b: number) => number; - readonly sdk_state_get_account_info: (a: number, b: number) => number; - readonly __wbg_getbalanceresult_free: (a: number, b: number) => void; - readonly getbalanceresult_api_version: (a: number) => number; - readonly getbalanceresult_balance_value: (a: number) => number; - readonly getbalanceresult_merkle_proof: (a: number) => Array; - readonly getbalanceresult_toJson: (a: number) => number; - readonly __wbg_getbalanceoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getbalanceoptions_state_root_hash_as_string: (a: number) => Array; - readonly __wbg_set_getbalanceoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getbalanceoptions_state_root_hash: (a: number) => number; - readonly __wbg_set_getbalanceoptions_state_root_hash: (a: number, b: number) => void; - readonly __wbg_get_getbalanceoptions_purse_uref_as_string: (a: number) => Array; - readonly __wbg_set_getbalanceoptions_purse_uref_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getbalanceoptions_purse_uref: (a: number) => number; - readonly __wbg_set_getbalanceoptions_purse_uref: (a: number, b: number) => void; - readonly __wbg_get_getbalanceoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getbalanceoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getbalanceoptions_verbosity: (a: number) => number; - readonly __wbg_set_getbalanceoptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_balance_options: (a: number, b: number) => Array; - readonly sdk_get_balance: (a: number, b: number) => number; - readonly sdk_state_get_balance: (a: number, b: number) => number; - readonly __wbg_geterainforesult_free: (a: number, b: number) => void; - readonly geterainforesult_api_version: (a: number) => number; - readonly geterainforesult_era_summary: (a: number) => number; - readonly geterainforesult_toJson: (a: number) => number; - readonly __wbg_geterainfooptions_free: (a: number, b: number) => void; - readonly __wbg_get_geterainfooptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_geterainfooptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_geterainfooptions_rpc_address: (a: number) => Array; - readonly __wbg_set_geterainfooptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_geterainfooptions_verbosity: (a: number) => number; - readonly __wbg_set_geterainfooptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_era_info_options: (a: number, b: number) => Array; - readonly sdk_get_era_info: (a: number, b: number) => number; - readonly sdk_chain_get_era_info_by_switch_block: (a: number, b: number) => number; - readonly sdk_make_deploy: (a: number, b: number, c: number, d: number) => Array; - readonly sdk_make_transaction: (a: number, b: number, c: number) => Array; - readonly __wbg_get_geterainfooptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_set_geterainfooptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_peerentry_free: (a: number, b: number) => void; - readonly peerentry_node_id: (a: number) => Array; - readonly peerentry_address: (a: number) => Array; - readonly sdk_speculative_transfer_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; - readonly sdk_install_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly __wbg_casperwallet_free: (a: number, b: number) => void; - readonly casperwallet_new: () => number; - readonly casperwallet_signDeploy: (a: number, b: number, c: number, d: number) => number; - readonly casperwallet_signTransaction: (a: number, b: number, c: number, d: number) => number; - readonly casperwallet_signDeployHash: (a: number, b: number, c: number, d: number, e: number) => number; - readonly casperwallet_signTransactionHash: (a: number, b: number, c: number, d: number, e: number) => number; - readonly casperwallet_signMessage: (a: number, b: number, c: number, d: number, e: number) => number; - readonly casperwallet_connect: (a: number) => number; - readonly casperwallet_disconnect: (a: number) => number; - readonly casperwallet_isConnected: (a: number) => number; - readonly casperwallet_getVersion: (a: number) => number; - readonly casperwallet_getActivePublicKey: (a: number) => number; - readonly casperwallet_switchAccount: (a: number) => number; - readonly __wbg_accounthash_free: (a: number, b: number) => void; - readonly accounthash_new_js_alias: (a: number, b: number) => Array; - readonly accounthash_fromFormattedStr: (a: number, b: number) => Array; - readonly accounthash_fromPublicKey: (a: number) => number; - readonly accounthash_toFormattedString: (a: number) => Array; - readonly accounthash_toHexString: (a: number) => Array; - readonly accounthash_fromUint8Array: (a: number, b: number) => number; - readonly accounthash_toJson: (a: number) => number; - readonly blockhash_new_js_alias: (a: number, b: number) => Array; - readonly blockhash_fromDigest: (a: number) => Array; - readonly blockhash_toJson: (a: number) => number; - readonly blockhash_toString: (a: number) => Array; - readonly __wbg_deploystrparams_free: (a: number, b: number) => void; - readonly deploystrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; - readonly deploystrparams_secret_key: (a: number) => Array; - readonly deploystrparams_set_secret_key: (a: number, b: number, c: number) => void; - readonly deploystrparams_timestamp: (a: number) => Array; - readonly deploystrparams_set_timestamp: (a: number, b: number, c: number) => void; - readonly deploystrparams_setDefaultTimestamp: (a: number) => void; - readonly deploystrparams_ttl: (a: number) => Array; - readonly deploystrparams_set_ttl: (a: number, b: number, c: number) => void; - readonly deploystrparams_setDefaultTTL: (a: number) => void; - readonly deploystrparams_chain_name: (a: number) => Array; - readonly deploystrparams_set_chain_name: (a: number, b: number, c: number) => void; - readonly deploystrparams_session_account: (a: number) => Array; - readonly deploystrparams_set_session_account: (a: number, b: number, c: number) => void; - readonly deploystrparams_gas_price_tolerance: (a: number) => Array; - readonly deploystrparams_set_gas_price_tolerance: (a: number, b: number, c: number) => void; - readonly __wbg_sessionstrparams_free: (a: number, b: number) => void; - readonly sessionstrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number) => number; - readonly sessionstrparams_session_hash: (a: number) => Array; - readonly sessionstrparams_set_session_hash: (a: number, b: number, c: number) => void; - readonly sessionstrparams_session_name: (a: number) => Array; - readonly sessionstrparams_set_session_name: (a: number, b: number, c: number) => void; - readonly sessionstrparams_session_package_hash: (a: number) => Array; - readonly sessionstrparams_set_session_package_hash: (a: number, b: number, c: number) => void; - readonly sessionstrparams_session_package_name: (a: number) => Array; - readonly sessionstrparams_set_session_package_name: (a: number, b: number, c: number) => void; - readonly sessionstrparams_session_path: (a: number) => Array; - readonly sessionstrparams_set_session_path: (a: number, b: number, c: number) => void; - readonly sessionstrparams_session_bytes: (a: number) => number; - readonly sessionstrparams_set_session_bytes: (a: number, b: number) => void; - readonly sessionstrparams_session_args_simple: (a: number) => number; - readonly sessionstrparams_set_session_args_simple: (a: number, b: number) => void; - readonly sessionstrparams_session_args_json: (a: number) => Array; - readonly sessionstrparams_set_session_args_json: (a: number, b: number, c: number) => void; - readonly sessionstrparams_session_version: (a: number) => Array; - readonly sessionstrparams_set_session_version: (a: number, b: number, c: number) => void; - readonly sessionstrparams_session_entry_point: (a: number) => Array; - readonly sessionstrparams_set_session_entry_point: (a: number, b: number, c: number) => void; - readonly sessionstrparams_is_session_transfer: (a: number) => number; - readonly sessionstrparams_set_is_session_transfer: (a: number, b: number) => void; - readonly __wbg_dictionaryitemidentifier_free: (a: number, b: number) => void; - readonly dictionaryitemidentifier_newFromAccountInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => Array; - readonly dictionaryitemidentifier_newFromContractInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => Array; - readonly dictionaryitemidentifier_newFromEntityInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => Array; - readonly dictionaryitemidentifier_newFromSeedUref: (a: number, b: number, c: number, d: number) => Array; - readonly dictionaryitemidentifier_newFromDictionaryKey: (a: number, b: number) => Array; - readonly dictionaryitemidentifier_toJson: (a: number) => number; - readonly __wbg_entityidentifier_free: (a: number, b: number) => void; - readonly entityidentifier_fromFormattedStr: (a: number, b: number) => Array; - readonly entityidentifier_fromPublicKey: (a: number) => number; - readonly entityidentifier_fromAccountHash: (a: number) => number; - readonly entityidentifier_fromEntityAddr: (a: number) => number; - readonly entityidentifier_toJson: (a: number) => number; readonly packagehash_new_js_alias: (a: number, b: number) => Array; readonly packagehash_fromFormattedStr: (a: number, b: number) => Array; readonly packagehash_toFormattedString: (a: number) => Array; readonly packagehash_fromUint8Array: (a: number, b: number) => number; + readonly __wbg_purseidentifier_free: (a: number, b: number) => void; + readonly purseidentifier_fromPublicKey: (a: number) => number; + readonly purseidentifier_fromAccountHash: (a: number) => number; readonly purseidentifier_fromURef: (a: number) => number; readonly purseidentifier_toJson: (a: number) => number; readonly __wbg_transaction_free: (a: number, b: number) => void; @@ -4507,327 +4198,579 @@ export interface InitOutput { readonly sdk_get_transaction_options: (a: number, b: number) => Array; readonly sdk_get_transaction: (a: number, b: number) => number; readonly sdk_info_get_transaction: (a: number, b: number) => number; + readonly sdk_make_transfer_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => Array; + readonly __wbg_gettransactionoptions_free: (a: number, b: number) => void; + readonly __wbg_set_gettransactionoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_set_gettransactionoptions_transaction_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_gettransactionoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_gettransactionoptions_finalized_approvals: (a: number) => number; + readonly __wbg_set_gettransactionoptions_finalized_approvals: (a: number, b: number) => void; + readonly __wbg_get_gettransactionoptions_transaction_hash_as_string: (a: number) => Array; + readonly __wbg_get_gettransactionoptions_rpc_address: (a: number) => Array; + readonly __wbg_get_gettransactionoptions_verbosity: (a: number) => number; + readonly __wbg_packagehash_free: (a: number, b: number) => void; + readonly __wbg_uref_free: (a: number, b: number) => void; + readonly __wbg_accessrights_free: (a: number, b: number) => void; + readonly accessrights_NONE: () => number; + readonly accessrights_READ: () => number; + readonly accessrights_WRITE: () => number; + readonly accessrights_ADD: () => number; + readonly accessrights_READ_ADD: () => number; + readonly accessrights_READ_WRITE: () => number; + readonly accessrights_ADD_WRITE: () => number; + readonly accessrights_READ_ADD_WRITE: () => number; + readonly accessrights_new: (a: number) => Array; + readonly accessrights_from_bits: (a: number, b: number, c: number) => number; + readonly accessrights_is_readable: (a: number) => number; + readonly accessrights_is_writeable: (a: number) => number; + readonly accessrights_is_addable: (a: number) => number; + readonly accessrights_is_none: (a: number) => number; + readonly __wbg_transferaddr_free: (a: number, b: number) => void; + readonly transferaddr_new: (a: number, b: number) => Array; + readonly __wbg_getchainspecresult_free: (a: number, b: number) => void; + readonly getchainspecresult_api_version: (a: number) => number; + readonly getchainspecresult_chainspec_bytes: (a: number) => number; + readonly getchainspecresult_toJson: (a: number) => number; + readonly sdk_get_chainspec: (a: number, b: number, c: number, d: number) => number; + readonly sdk_info_get_chainspec: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_getdictionaryitemresult_free: (a: number, b: number) => void; + readonly getdictionaryitemresult_api_version: (a: number) => number; + readonly getdictionaryitemresult_dictionary_key: (a: number) => Array; + readonly getdictionaryitemresult_stored_value: (a: number) => number; + readonly getdictionaryitemresult_merkle_proof: (a: number) => Array; + readonly getdictionaryitemresult_toJson: (a: number) => number; + readonly __wbg_getdictionaryitemoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getdictionaryitemoptions_state_root_hash_as_string: (a: number) => Array; + readonly __wbg_set_getdictionaryitemoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getdictionaryitemoptions_state_root_hash: (a: number) => number; + readonly __wbg_set_getdictionaryitemoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_get_getdictionaryitemoptions_dictionary_item_params: (a: number) => number; + readonly __wbg_set_getdictionaryitemoptions_dictionary_item_params: (a: number, b: number) => void; + readonly __wbg_get_getdictionaryitemoptions_dictionary_item_identifier: (a: number) => number; + readonly __wbg_set_getdictionaryitemoptions_dictionary_item_identifier: (a: number, b: number) => void; + readonly __wbg_get_getdictionaryitemoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getdictionaryitemoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getdictionaryitemoptions_verbosity: (a: number) => number; + readonly __wbg_set_getdictionaryitemoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_dictionary_item_options: (a: number, b: number) => Array; + readonly sdk_get_dictionary_item: (a: number, b: number) => number; + readonly sdk_state_get_dictionary_item: (a: number, b: number) => number; + readonly __wbg_getaddressableentityresult_free: (a: number, b: number) => void; + readonly getaddressableentityresult_api_version: (a: number) => number; + readonly getaddressableentityresult_entity_result: (a: number) => number; + readonly getaddressableentityresult_merkle_proof: (a: number) => Array; + readonly getaddressableentityresult_toJson: (a: number) => number; + readonly __wbg_getentityoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getentityoptions_entity_identifier: (a: number) => number; + readonly __wbg_set_getentityoptions_entity_identifier: (a: number, b: number) => void; + readonly __wbg_get_getentityoptions_entity_identifier_as_string: (a: number) => Array; + readonly __wbg_set_getentityoptions_entity_identifier_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getentityoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_set_getentityoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getentityoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_getentityoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_getentityoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getentityoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getentityoptions_verbosity: (a: number) => number; + readonly __wbg_set_getentityoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_entity_options: (a: number, b: number) => Array; + readonly sdk_get_entity: (a: number, b: number) => number; + readonly sdk_state_get_entity: (a: number, b: number) => number; + readonly __wbg_getnodestatusresult_free: (a: number, b: number) => void; + readonly getnodestatusresult_api_version: (a: number) => number; + readonly getnodestatusresult_chainspec_name: (a: number) => Array; + readonly getnodestatusresult_starting_state_root_hash: (a: number) => number; + readonly getnodestatusresult_peers: (a: number) => number; + readonly getnodestatusresult_last_added_block_info: (a: number) => number; + readonly getnodestatusresult_our_public_signing_key: (a: number) => number; + readonly getnodestatusresult_round_length: (a: number) => number; + readonly getnodestatusresult_next_upgrade: (a: number) => number; + readonly getnodestatusresult_build_version: (a: number) => Array; + readonly getnodestatusresult_uptime: (a: number) => number; + readonly getnodestatusresult_reactor_state: (a: number) => number; + readonly getnodestatusresult_last_progress: (a: number) => number; + readonly getnodestatusresult_available_block_range: (a: number) => number; + readonly getnodestatusresult_block_sync: (a: number) => number; + readonly getnodestatusresult_toJson: (a: number) => number; + readonly sdk_get_node_status: (a: number, b: number, c: number, d: number) => number; + readonly sdk_info_get_status: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_getpeersresult_free: (a: number, b: number) => void; + readonly getpeersresult_api_version: (a: number) => number; + readonly getpeersresult_peers: (a: number) => number; + readonly getpeersresult_toJson: (a: number) => number; + readonly sdk_get_peers: (a: number, b: number, c: number, d: number) => number; + readonly sdk_info_get_peers: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_getvalidatorchangesresult_free: (a: number, b: number) => void; + readonly getvalidatorchangesresult_api_version: (a: number) => number; + readonly getvalidatorchangesresult_changes: (a: number) => number; + readonly getvalidatorchangesresult_toJson: (a: number) => number; + readonly sdk_get_validator_changes: (a: number, b: number, c: number, d: number) => number; + readonly sdk_info_get_validator_change: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_listrpcsresult_free: (a: number, b: number) => void; + readonly listrpcsresult_api_version: (a: number) => number; + readonly listrpcsresult_name: (a: number) => Array; + readonly listrpcsresult_schema: (a: number) => number; + readonly listrpcsresult_toJson: (a: number) => number; + readonly sdk_list_rpcs: (a: number, b: number, c: number, d: number) => number; + readonly sdk_sign_deploy: (a: number, b: number, c: number, d: number) => number; + readonly sdk_query_contract_dict_options: (a: number, b: number) => Array; + readonly sdk_query_contract_dict: (a: number, b: number) => number; + readonly __wbg_get_querycontractdictoptions_dictionary_item_params: (a: number) => number; + readonly __wbg_get_querycontractdictoptions_dictionary_item_identifier: (a: number) => number; + readonly __wbg_set_querycontractdictoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_set_querycontractdictoptions_state_root_hash: (a: number, b: number) => void; + readonly __wbg_set_querycontractdictoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_querycontractdictoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_querycontractdictoptions_free: (a: number, b: number) => void; + readonly __wbg_get_querycontractdictoptions_state_root_hash: (a: number) => number; + readonly __wbg_get_querycontractdictoptions_state_root_hash_as_string: (a: number) => Array; + readonly __wbg_get_querycontractdictoptions_rpc_address: (a: number) => Array; + readonly __wbg_get_querycontractdictoptions_verbosity: (a: number) => number; + readonly __wbg_set_querycontractdictoptions_dictionary_item_params: (a: number, b: number) => void; + readonly __wbg_set_querycontractdictoptions_dictionary_item_identifier: (a: number, b: number) => void; + readonly __wbg_urefaddr_free: (a: number, b: number) => void; + readonly urefaddr_new: (a: number, b: number) => Array; + readonly __wbg_bytes_free: (a: number, b: number) => void; + readonly bytes_new: () => number; + readonly bytes_fromUint8Array: (a: number) => number; + readonly __wbg_argssimple_free: (a: number, b: number) => void; + readonly __wbg_signatureresponse_free: (a: number, b: number) => void; + readonly signatureresponse_is_cancelled: (a: number) => number; + readonly signatureresponse_get_signature_hex: (a: number) => Array; + readonly signatureresponse_get_signature: (a: number) => Array; + readonly __wbg_putdeployresult_free: (a: number, b: number) => void; + readonly putdeployresult_api_version: (a: number) => number; + readonly putdeployresult_deploy_hash: (a: number) => number; + readonly putdeployresult_toJson: (a: number) => number; + readonly sdk_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly __wbg_getaccountresult_free: (a: number, b: number) => void; + readonly getaccountresult_api_version: (a: number) => number; + readonly getaccountresult_account: (a: number) => number; + readonly getaccountresult_merkle_proof: (a: number) => Array; + readonly getaccountresult_toJson: (a: number) => number; + readonly __wbg_getaccountoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getaccountoptions_account_identifier: (a: number) => number; + readonly __wbg_set_getaccountoptions_account_identifier: (a: number, b: number) => void; + readonly __wbg_get_getaccountoptions_account_identifier_as_string: (a: number) => Array; + readonly __wbg_set_getaccountoptions_account_identifier_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getaccountoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_set_getaccountoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getaccountoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_getaccountoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_getaccountoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getaccountoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getaccountoptions_verbosity: (a: number) => number; + readonly __wbg_set_getaccountoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_account_options: (a: number, b: number) => Array; + readonly sdk_get_account: (a: number, b: number) => number; + readonly sdk_state_get_account_info: (a: number, b: number) => number; + readonly __wbg_getauctioninforesult_free: (a: number, b: number) => void; + readonly getauctioninforesult_api_version: (a: number) => number; + readonly getauctioninforesult_auction_state: (a: number) => number; + readonly getauctioninforesult_toJson: (a: number) => number; + readonly __wbg_getauctioninfooptions_free: (a: number, b: number) => void; + readonly __wbg_get_getauctioninfooptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_set_getauctioninfooptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getauctioninfooptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getauctioninfooptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getauctioninfooptions_verbosity: (a: number) => number; + readonly __wbg_set_getauctioninfooptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_auction_info_options: (a: number, b: number) => Array; + readonly sdk_get_auction_info: (a: number, b: number) => number; + readonly sdk_state_get_auction_info_js_alias: (a: number, b: number) => number; + readonly __wbg_geterainforesult_free: (a: number, b: number) => void; + readonly geterainforesult_api_version: (a: number) => number; + readonly geterainforesult_era_summary: (a: number) => number; + readonly geterainforesult_toJson: (a: number) => number; + readonly sdk_get_era_info_options: (a: number, b: number) => Array; + readonly sdk_get_era_info: (a: number, b: number) => number; + readonly sdk_chain_get_era_info_by_switch_block: (a: number, b: number) => number; + readonly sdk_make_transaction: (a: number, b: number, c: number) => Array; + readonly __wbg_get_getauctioninfooptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_get_geterainfooptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_geterainfooptions_free: (a: number, b: number) => void; + readonly __wbg_set_geterainfooptions_verbosity: (a: number, b: number) => void; + readonly __wbg_set_geterainfooptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_geterainfooptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_geterainfooptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_get_geterainfooptions_rpc_address: (a: number) => Array; + readonly __wbg_get_geterainfooptions_verbosity: (a: number) => number; + readonly __wbg_set_getauctioninfooptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_set_geterainfooptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_puttransactionresult_free: (a: number, b: number) => void; + readonly puttransactionresult_api_version: (a: number) => number; + readonly puttransactionresult_transaction_hash: (a: number) => number; + readonly puttransactionresult_toJson: (a: number) => number; + readonly sdk_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number; + readonly __wbg_casperwallet_free: (a: number, b: number) => void; + readonly casperwallet_new: () => number; + readonly casperwallet_signDeploy: (a: number, b: number, c: number, d: number) => number; + readonly casperwallet_signTransaction: (a: number, b: number, c: number, d: number) => number; + readonly casperwallet_signDeployHash: (a: number, b: number, c: number, d: number, e: number) => number; + readonly casperwallet_signTransactionHash: (a: number, b: number, c: number, d: number, e: number) => number; + readonly casperwallet_signMessage: (a: number, b: number, c: number, d: number, e: number) => number; + readonly casperwallet_connect: (a: number) => number; + readonly casperwallet_disconnect: (a: number) => number; + readonly casperwallet_isConnected: (a: number) => number; + readonly casperwallet_getVersion: (a: number) => number; + readonly casperwallet_getActivePublicKey: (a: number) => number; + readonly casperwallet_switchAccount: (a: number) => number; + readonly __wbg_accountidentifier_free: (a: number, b: number) => void; + readonly accountidentifier_fromFormattedStr: (a: number, b: number) => Array; + readonly accountidentifier_fromPublicKey: (a: number) => number; + readonly accountidentifier_fromAccountHash: (a: number) => number; + readonly accountidentifier_toJson: (a: number) => number; + readonly hashaddr_new: (a: number, b: number) => Array; + readonly hashaddr_toBytes: (a: number) => Array; + readonly hashaddr_toHexString: (a: number) => Array; + readonly __wbg_contractpackagehash_free: (a: number, b: number) => void; + readonly contractpackagehash_new_js_alias: (a: number, b: number) => Array; + readonly contractpackagehash_fromFormattedStr: (a: number, b: number) => Array; + readonly contractpackagehash_toFormattedString: (a: number) => Array; + readonly contractpackagehash_fromUint8Array: (a: number, b: number) => number; + readonly deployhash_new_js_alias: (a: number, b: number) => Array; + readonly deployhash_fromDigest: (a: number) => Array; + readonly deployhash_toJson: (a: number) => number; + readonly deployhash_toString: (a: number) => Array; + readonly __wbg_dictionaryitemstrparams_free: (a: number, b: number) => void; + readonly dictionaryitemstrparams_new: () => number; + readonly dictionaryitemstrparams_setAccountNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; + readonly dictionaryitemstrparams_setContractNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; + readonly dictionaryitemstrparams_setEntityNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; + readonly dictionaryitemstrparams_setUref: (a: number, b: number, c: number, d: number, e: number) => void; + readonly dictionaryitemstrparams_setDictionary: (a: number, b: number, c: number) => void; + readonly dictionaryitemstrparams_toJson: (a: number) => number; + readonly digest_new_js_alias: (a: number, b: number) => Array; + readonly digest_fromString: (a: number, b: number) => Array; + readonly digest_fromRaw: (a: number, b: number) => Array; + readonly digest_toJson: (a: number) => number; + readonly digest_toString: (a: number) => Array; + readonly __wbg_path_free: (a: number, b: number) => void; + readonly path_new: (a: number) => number; + readonly path_fromArray: (a: number) => number; + readonly path_toJson: (a: number) => number; + readonly path_toString: (a: number) => Array; + readonly path_is_empty: (a: number) => number; + readonly publickey_new_js_alias: (a: number, b: number) => Array; + readonly publickey_fromUint8Array: (a: number, b: number) => Array; + readonly publickey_toAccountHash: (a: number) => number; + readonly publickey_toPurseUref: (a: number) => number; + readonly publickey_toJson: (a: number) => number; + readonly sdk_put_deploy: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_account_put_deploy: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_transfer_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; + readonly sdk_watchDeploy: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_watchTransaction: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_waitDeploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly sdk_waitTransaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly __wbg_watcher_free: (a: number, b: number) => void; + readonly watcher_new: (a: number, b: number, c: number, d: number) => number; + readonly watcher_subscribe: (a: number, b: number, c: number) => Array; + readonly watcher_unsubscribe: (a: number, b: number, c: number) => void; + readonly watcher_start: (a: number) => number; + readonly watcher_stop: (a: number) => void; + readonly __wbg_subscription_free: (a: number, b: number) => void; + readonly __wbg_get_subscription_eventHandlerFn: (a: number) => number; + readonly __wbg_set_subscription_eventHandlerFn: (a: number, b: number) => void; + readonly subscription_new: (a: number, b: number, c: number) => number; + readonly __wbg_failure_free: (a: number, b: number) => void; + readonly __wbg_get_failure_cost: (a: number) => Array; + readonly __wbg_set_failure_cost: (a: number, b: number, c: number) => void; + readonly __wbg_get_failure_error_message: (a: number) => Array; + readonly __wbg_set_failure_error_message: (a: number, b: number, c: number) => void; + readonly __wbg_version2_free: (a: number, b: number) => void; + readonly __wbg_get_version2_error_message: (a: number) => Array; + readonly __wbg_set_version2_error_message: (a: number, b: number, c: number) => void; + readonly __wbg_executionresult_free: (a: number, b: number) => void; + readonly __wbg_get_executionresult_Success: (a: number) => number; + readonly __wbg_set_executionresult_Success: (a: number, b: number) => void; + readonly __wbg_get_executionresult_Failure: (a: number) => number; + readonly __wbg_set_executionresult_Failure: (a: number, b: number) => void; + readonly __wbg_hashstring_free: (a: number, b: number) => void; + readonly hashstring_Deploy: (a: number) => Array; + readonly hashstring_toString: (a: number) => Array; + readonly __wbg_messages_free: (a: number, b: number) => void; + readonly __wbg_set_messages_entity_hash: (a: number, b: number, c: number) => void; + readonly __wbg_get_messages_message: (a: number) => number; + readonly __wbg_set_messages_message: (a: number, b: number) => void; + readonly __wbg_get_messages_topic_name: (a: number) => Array; + readonly __wbg_set_messages_topic_name: (a: number, b: number, c: number) => void; + readonly __wbg_get_messages_topic_name_hash: (a: number) => Array; + readonly __wbg_set_messages_topic_name_hash: (a: number, b: number, c: number) => void; + readonly __wbg_get_messages_topic_index: (a: number) => number; + readonly __wbg_set_messages_topic_index: (a: number, b: number) => void; + readonly __wbg_get_messages_block_index: (a: number) => number; + readonly __wbg_set_messages_block_index: (a: number, b: number) => void; + readonly __wbg_transactionprocessed_free: (a: number, b: number) => void; + readonly __wbg_get_transactionprocessed_hash: (a: number) => number; + readonly __wbg_set_transactionprocessed_hash: (a: number, b: number) => void; + readonly __wbg_get_transactionprocessed_initiator_addr: (a: number) => number; + readonly __wbg_set_transactionprocessed_initiator_addr: (a: number, b: number) => void; + readonly __wbg_get_transactionprocessed_timestamp: (a: number) => Array; + readonly __wbg_set_transactionprocessed_timestamp: (a: number, b: number, c: number) => void; + readonly __wbg_set_transactionprocessed_ttl: (a: number, b: number, c: number) => void; + readonly __wbg_get_transactionprocessed_execution_result: (a: number) => number; + readonly __wbg_set_transactionprocessed_execution_result: (a: number, b: number) => void; + readonly __wbg_get_transactionprocessed_messages: (a: number) => Array; + readonly __wbg_set_transactionprocessed_messages: (a: number, b: number, c: number) => void; + readonly __wbg_body_free: (a: number, b: number) => void; + readonly __wbg_get_body_transaction_processed: (a: number) => number; + readonly __wbg_set_body_transaction_processed: (a: number, b: number) => void; + readonly body_get_deploy_processed: (a: number) => number; + readonly __wbg_eventparseresult_free: (a: number, b: number) => void; + readonly __wbg_get_eventparseresult_err: (a: number) => Array; + readonly __wbg_set_eventparseresult_err: (a: number, b: number, c: number) => void; + readonly __wbg_get_eventparseresult_body: (a: number) => number; + readonly __wbg_set_eventparseresult_body: (a: number, b: number) => void; + readonly sdk_call_entrypoint: (a: number, b: number, c: number, d: number, e: number) => number; + readonly sdk_call_entrypoint_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly __wbg_payment_free: (a: number, b: number) => void; + readonly __wbg_publickeystring_free: (a: number, b: number) => void; + readonly __wbg_message_free: (a: number, b: number) => void; + readonly __wbg_get_version2_initiator: (a: number) => number; + readonly accountidentifier_new: (a: number, b: number) => Array; + readonly __wbg_set_subscription_targetHash: (a: number, b: number, c: number) => void; + readonly __wbg_set_version2_limit: (a: number, b: number, c: number) => void; + readonly __wbg_set_payment_source: (a: number, b: number, c: number) => void; + readonly __wbg_set_hashstring_hash: (a: number, b: number, c: number) => void; + readonly __wbg_set_publickeystring_PublicKey: (a: number, b: number, c: number) => void; + readonly __wbg_set_message_String: (a: number, b: number, c: number) => void; + readonly __wbg_set_version2_consumed: (a: number, b: number, c: number) => void; + readonly __wbg_set_version2_cost: (a: number, b: number, c: number) => void; + readonly __wbg_set_transactionprocessed_block_hash: (a: number, b: number, c: number) => void; + readonly body_get_transaction_processed: (a: number) => number; + readonly hashstring_Version1: (a: number) => Array; + readonly __wbg_set_version2_initiator: (a: number, b: number) => void; + readonly __wbg_hashaddr_free: (a: number, b: number) => void; + readonly __wbg_deployhash_free: (a: number, b: number) => void; + readonly __wbg_digest_free: (a: number, b: number) => void; + readonly __wbg_publickey_free: (a: number, b: number) => void; + readonly __wbg_get_subscription_targetHash: (a: number) => Array; + readonly __wbg_get_version2_limit: (a: number) => Array; + readonly __wbg_get_payment_source: (a: number) => Array; + readonly __wbg_get_hashstring_hash: (a: number) => Array; + readonly __wbg_get_publickeystring_PublicKey: (a: number) => Array; + readonly __wbg_get_message_String: (a: number) => Array; + readonly __wbg_get_messages_entity_hash: (a: number) => Array; + readonly __wbg_get_version2_cost: (a: number) => Array; + readonly __wbg_get_version2_consumed: (a: number) => Array; + readonly __wbg_get_transactionprocessed_ttl: (a: number) => Array; + readonly __wbg_get_transactionprocessed_block_hash: (a: number) => Array; + readonly sdk_speculative_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly sdk_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; + readonly __wbg_getblocktransfersresult_free: (a: number, b: number) => void; + readonly getblocktransfersresult_api_version: (a: number) => number; + readonly getblocktransfersresult_block_hash: (a: number) => number; + readonly getblocktransfersresult_transfers: (a: number) => number; + readonly getblocktransfersresult_toJson: (a: number) => number; + readonly __wbg_getblocktransfersoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getblocktransfersoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_set_getblocktransfersoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getblocktransfersoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_getblocktransfersoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_getblocktransfersoptions_verbosity: (a: number) => number; + readonly __wbg_set_getblocktransfersoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_get_getblocktransfersoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getblocktransfersoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly sdk_get_block_transfers_options: (a: number, b: number) => Array; + readonly sdk_get_block_transfers: (a: number, b: number) => number; + readonly sdk_chain_get_block_transfers: (a: number, b: number) => number; + readonly __wbg_geterasummaryresult_free: (a: number, b: number) => void; + readonly geterasummaryresult_api_version: (a: number) => number; + readonly geterasummaryresult_era_summary: (a: number) => number; + readonly geterasummaryresult_toJson: (a: number) => number; + readonly sdk_get_era_summary_options: (a: number, b: number) => Array; + readonly sdk_get_era_summary: (a: number, b: number) => number; + readonly sdk_chain_get_era_summary: (a: number, b: number) => number; readonly sdk_put_transaction: (a: number, b: number, c: number, d: number, e: number) => number; readonly sdk_account_put_transaction: (a: number, b: number, c: number, d: number, e: number) => number; - readonly __wbg_speculativeexectxnresult_free: (a: number, b: number) => void; - readonly speculativeexectxnresult_api_version: (a: number) => number; - readonly speculativeexectxnresult_block_hash: (a: number) => number; - readonly speculativeexectxnresult_execution_result: (a: number) => number; - readonly speculativeexectxnresult_toJson: (a: number) => number; - readonly __wbg_getspeculativeexectxnoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getspeculativeexectxnoptions_transaction_as_string: (a: number) => Array; - readonly __wbg_set_getspeculativeexectxnoptions_transaction_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getspeculativeexectxnoptions_transaction: (a: number) => number; - readonly __wbg_set_getspeculativeexectxnoptions_transaction: (a: number, b: number) => void; - readonly __wbg_get_getspeculativeexectxnoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getspeculativeexectxnoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getspeculativeexectxnoptions_verbosity: (a: number) => number; - readonly __wbg_set_getspeculativeexectxnoptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_speculative_exec_options: (a: number, b: number) => Array; - readonly sdk_speculative_exec: (a: number, b: number) => number; readonly sdk_speculative_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => number; - readonly sdk_make_transfer_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => Array; + readonly sdk_speculative_transfer_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; readonly sdk_install: (a: number, b: number, c: number, d: number, e: number) => number; - readonly __wbg_gettransactionoptions_free: (a: number, b: number) => void; - readonly __wbg_set_gettransactionoptions_verbosity: (a: number, b: number) => void; - readonly __wbg_set_gettransactionoptions_transaction_hash_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_gettransactionoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_gettransactionoptions_finalized_approvals: (a: number) => number; - readonly purseidentifier_fromPublicKey: (a: number) => number; - readonly purseidentifier_fromAccountHash: (a: number) => number; - readonly __wbg_set_gettransactionoptions_finalized_approvals: (a: number, b: number) => void; - readonly __wbg_get_gettransactionoptions_transaction_hash_as_string: (a: number) => Array; - readonly __wbg_get_gettransactionoptions_rpc_address: (a: number) => Array; - readonly __wbg_get_gettransactionoptions_verbosity: (a: number) => number; - readonly __wbg_blockhash_free: (a: number, b: number) => void; - readonly __wbg_packagehash_free: (a: number, b: number) => void; - readonly __wbg_purseidentifier_free: (a: number, b: number) => void; - readonly __wbg_uref_free: (a: number, b: number) => void; - readonly entityidentifier_new_js_alias: (a: number, b: number) => Array; - readonly __wbg_dictionaryaddr_free: (a: number, b: number) => void; + readonly __wbg_get_geterasummaryoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_geterasummaryoptions_free: (a: number, b: number) => void; + readonly __wbg_set_geterasummaryoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_set_geterasummaryoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_geterasummaryoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_geterasummaryoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_get_geterasummaryoptions_rpc_address: (a: number) => Array; + readonly __wbg_get_geterasummaryoptions_verbosity: (a: number) => number; + readonly __wbg_set_geterasummaryoptions_maybe_block_identifier: (a: number, b: number) => void; readonly dictionaryaddr_new: (a: number, b: number) => Array; + readonly __wbg_entityaddr_free: (a: number, b: number) => void; + readonly entityaddr_fromFormattedStr: (a: number, b: number) => Array; + readonly entityaddr_toFormattedString: (a: number) => Array; + readonly entityaddr_toHexString: (a: number) => Array; + readonly entityaddr_toJson: (a: number) => number; + readonly __wbg_addressableentityhash_free: (a: number, b: number) => void; + readonly addressableentityhash_new_js_alias: (a: number, b: number) => Array; + readonly addressableentityhash_fromFormattedStr: (a: number, b: number) => Array; + readonly addressableentityhash_toFormattedString: (a: number) => Array; + readonly addressableentityhash_fromUint8Array: (a: number, b: number) => number; + readonly blockhash_new_js_alias: (a: number, b: number) => Array; + readonly blockhash_fromDigest: (a: number) => Array; + readonly blockhash_toJson: (a: number) => number; + readonly blockhash_toString: (a: number) => Array; + readonly contracthash_new_js_alias: (a: number, b: number) => Array; + readonly contracthash_fromFormattedStr: (a: number, b: number) => Array; + readonly contracthash_toFormattedString: (a: number) => Array; + readonly contracthash_fromUint8Array: (a: number, b: number) => number; + readonly __wbg_deploy_free: (a: number, b: number) => void; + readonly deploy_new: (a: number) => number; + readonly deploy_toJson: (a: number) => number; + readonly deploy_withPaymentAndSession: (a: number, b: number, c: number) => Array; + readonly deploy_withTransfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => Array; + readonly deploy_withTTL: (a: number, b: number, c: number, d: number, e: number) => number; + readonly deploy_withTimestamp: (a: number, b: number, c: number, d: number, e: number) => number; + readonly deploy_withChainName: (a: number, b: number, c: number, d: number, e: number) => number; + readonly deploy_withAccount: (a: number, b: number, c: number, d: number) => number; + readonly deploy_withEntryPointName: (a: number, b: number, c: number, d: number, e: number) => number; + readonly deploy_withHash: (a: number, b: number, c: number, d: number) => number; + readonly deploy_withPackageHash: (a: number, b: number, c: number, d: number) => number; + readonly deploy_withModuleBytes: (a: number, b: number, c: number, d: number) => number; + readonly deploy_withSecretKey: (a: number, b: number, c: number) => number; + readonly deploy_withStandardPayment: (a: number, b: number, c: number, d: number, e: number) => number; + readonly deploy_withPayment: (a: number, b: number, c: number, d: number) => number; + readonly deploy_withSession: (a: number, b: number, c: number, d: number) => number; + readonly deploy_validateDeploySize: (a: number) => number; + readonly deploy_isValid: (a: number) => number; + readonly deploy_hash: (a: number) => number; + readonly deploy_hasValidHash: (a: number) => number; + readonly deploy_isExpired: (a: number) => number; + readonly deploy_sign: (a: number, b: number, c: number) => number; + readonly deploy_approvalsHash: (a: number) => number; + readonly deploy_approvals: (a: number) => number; + readonly deploy_isTransfer: (a: number) => number; + readonly deploy_isStandardPayment: (a: number, b: number) => number; + readonly deploy_isStoredContract: (a: number) => number; + readonly deploy_isStoredContractPackage: (a: number) => number; + readonly deploy_isModuleBytes: (a: number) => number; + readonly deploy_isByName: (a: number) => number; + readonly deploy_byName: (a: number) => Array; + readonly deploy_entryPointName: (a: number) => Array; + readonly deploy_addSignature: (a: number, b: number, c: number, d: number, e: number) => number; + readonly deploy_TTL: (a: number) => Array; + readonly deploy_timestamp: (a: number) => Array; + readonly deploy_chainName: (a: number) => Array; + readonly deploy_account: (a: number) => Array; + readonly deploy_paymentAmount: (a: number, b: number) => Array; + readonly deploy_args: (a: number) => number; + readonly deploy_addArg: (a: number, b: number, c: number, d: number) => Array; + readonly __wbg_paymentstrparams_free: (a: number, b: number) => void; + readonly paymentstrparams_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number) => number; + readonly paymentstrparams_payment_amount: (a: number) => Array; + readonly paymentstrparams_set_payment_amount: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_hash: (a: number) => Array; + readonly paymentstrparams_set_payment_hash: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_name: (a: number) => Array; + readonly paymentstrparams_set_payment_name: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_package_hash: (a: number) => Array; + readonly paymentstrparams_set_payment_package_hash: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_package_name: (a: number) => Array; + readonly paymentstrparams_set_payment_package_name: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_path: (a: number) => Array; + readonly paymentstrparams_set_payment_path: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_args_simple: (a: number) => number; + readonly paymentstrparams_set_payment_args_simple: (a: number, b: number) => void; + readonly paymentstrparams_payment_args_json: (a: number) => Array; + readonly paymentstrparams_set_payment_args_json: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_version: (a: number) => Array; + readonly paymentstrparams_set_payment_version: (a: number, b: number, c: number) => void; + readonly paymentstrparams_payment_entry_point: (a: number) => Array; + readonly paymentstrparams_set_payment_entry_point: (a: number, b: number, c: number) => void; + readonly __wbg_entityidentifier_free: (a: number, b: number) => void; + readonly entityidentifier_fromFormattedStr: (a: number, b: number) => Array; + readonly entityidentifier_fromPublicKey: (a: number) => number; + readonly entityidentifier_fromAccountHash: (a: number) => number; + readonly entityidentifier_fromEntityAddr: (a: number) => number; + readonly entityidentifier_toJson: (a: number) => number; + readonly __wbg_eraid_free: (a: number, b: number) => void; + readonly eraid_new: (a: number) => number; + readonly eraid_value: (a: number) => number; readonly __wbg_globalstateidentifier_free: (a: number, b: number) => void; readonly globalstateidentifier_new: (a: number) => number; readonly globalstateidentifier_fromBlockHash: (a: number) => number; readonly globalstateidentifier_fromBlockHeight: (a: number) => number; readonly globalstateidentifier_fromStateRootHash: (a: number) => number; readonly globalstateidentifier_toJson: (a: number) => number; - readonly sdk_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; - readonly __wbg_getnodestatusresult_free: (a: number, b: number) => void; - readonly getnodestatusresult_api_version: (a: number) => number; - readonly getnodestatusresult_chainspec_name: (a: number) => Array; - readonly getnodestatusresult_starting_state_root_hash: (a: number) => number; - readonly getnodestatusresult_peers: (a: number) => number; - readonly getnodestatusresult_last_added_block_info: (a: number) => number; - readonly getnodestatusresult_our_public_signing_key: (a: number) => number; - readonly getnodestatusresult_round_length: (a: number) => number; - readonly getnodestatusresult_next_upgrade: (a: number) => number; - readonly getnodestatusresult_build_version: (a: number) => Array; - readonly getnodestatusresult_uptime: (a: number) => number; - readonly getnodestatusresult_reactor_state: (a: number) => number; - readonly getnodestatusresult_last_progress: (a: number) => number; - readonly getnodestatusresult_available_block_range: (a: number) => number; - readonly getnodestatusresult_block_sync: (a: number) => number; - readonly getnodestatusresult_toJson: (a: number) => number; - readonly sdk_get_node_status: (a: number, b: number, c: number, d: number) => number; - readonly sdk_info_get_status: (a: number, b: number, c: number, d: number) => number; - readonly sdk_put_deploy: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_account_put_deploy: (a: number, b: number, c: number, d: number, e: number) => number; - readonly __wbg_querybalancedetailsresult_free: (a: number, b: number) => void; - readonly querybalancedetailsresult_api_version: (a: number) => number; - readonly querybalancedetailsresult_total_balance: (a: number) => number; - readonly querybalancedetailsresult_available_balance: (a: number) => number; - readonly querybalancedetailsresult_total_balance_proof: (a: number) => number; - readonly querybalancedetailsresult_holds: (a: number) => number; - readonly querybalancedetailsresult_toJson: (a: number) => number; - readonly __wbg_querybalancedetailsoptions_free: (a: number, b: number) => void; - readonly __wbg_get_querybalancedetailsoptions_purse_identifier_as_string: (a: number) => Array; - readonly __wbg_set_querybalancedetailsoptions_purse_identifier_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_querybalancedetailsoptions_purse_identifier: (a: number) => number; - readonly __wbg_set_querybalancedetailsoptions_purse_identifier: (a: number, b: number) => void; - readonly __wbg_get_querybalancedetailsoptions_global_state_identifier: (a: number) => number; - readonly __wbg_set_querybalancedetailsoptions_global_state_identifier: (a: number, b: number) => void; - readonly __wbg_get_querybalancedetailsoptions_state_root_hash_as_string: (a: number) => Array; - readonly __wbg_set_querybalancedetailsoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_querybalancedetailsoptions_state_root_hash: (a: number) => number; - readonly __wbg_set_querybalancedetailsoptions_state_root_hash: (a: number, b: number) => void; - readonly __wbg_get_querybalancedetailsoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_querybalancedetailsoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_querybalancedetailsoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_querybalancedetailsoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_querybalancedetailsoptions_verbosity: (a: number) => number; - readonly __wbg_set_querybalancedetailsoptions_verbosity: (a: number, b: number) => void; - readonly sdk_query_balance_details_options: (a: number, b: number) => Array; - readonly sdk_query_balance_details: (a: number, b: number) => number; - readonly __wbg_queryglobalstateresult_free: (a: number, b: number) => void; - readonly queryglobalstateresult_api_version: (a: number) => number; - readonly queryglobalstateresult_block_header: (a: number) => number; - readonly queryglobalstateresult_stored_value: (a: number) => number; - readonly queryglobalstateresult_merkle_proof: (a: number) => Array; - readonly queryglobalstateresult_toJson: (a: number) => number; - readonly __wbg_queryglobalstateoptions_free: (a: number, b: number) => void; - readonly __wbg_get_queryglobalstateoptions_global_state_identifier: (a: number) => number; - readonly __wbg_set_queryglobalstateoptions_global_state_identifier: (a: number, b: number) => void; - readonly __wbg_get_queryglobalstateoptions_state_root_hash_as_string: (a: number) => Array; - readonly __wbg_set_queryglobalstateoptions_state_root_hash_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_queryglobalstateoptions_state_root_hash: (a: number) => number; - readonly __wbg_set_queryglobalstateoptions_state_root_hash: (a: number, b: number) => void; - readonly __wbg_get_queryglobalstateoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_queryglobalstateoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_queryglobalstateoptions_key_as_string: (a: number) => Array; - readonly __wbg_set_queryglobalstateoptions_key_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_queryglobalstateoptions_key: (a: number) => number; - readonly __wbg_set_queryglobalstateoptions_key: (a: number, b: number) => void; - readonly __wbg_get_queryglobalstateoptions_path_as_string: (a: number) => Array; - readonly __wbg_set_queryglobalstateoptions_path_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_queryglobalstateoptions_path: (a: number) => number; - readonly __wbg_set_queryglobalstateoptions_path: (a: number, b: number) => void; - readonly __wbg_get_queryglobalstateoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_queryglobalstateoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_queryglobalstateoptions_verbosity: (a: number) => number; - readonly __wbg_set_queryglobalstateoptions_verbosity: (a: number, b: number) => void; - readonly sdk_query_global_state_options: (a: number, b: number) => Array; - readonly sdk_query_global_state: (a: number, b: number) => number; - readonly sdk_call_entrypoint_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly __wbg_querycontractkeyoptions_free: (a: number, b: number) => void; - readonly __wbg_get_querycontractkeyoptions_entity_identifier: (a: number) => number; - readonly __wbg_set_querycontractkeyoptions_entity_identifier: (a: number, b: number) => void; - readonly __wbg_get_querycontractkeyoptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_set_querycontractkeyoptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_get_querycontractkeyoptions_path: (a: number) => number; - readonly __wbg_set_querycontractkeyoptions_path: (a: number, b: number) => void; - readonly __wbg_get_querycontractkeyoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_querycontractkeyoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_querycontractkeyoptions_verbosity: (a: number) => number; - readonly __wbg_set_querycontractkeyoptions_verbosity: (a: number, b: number) => void; - readonly sdk_query_contract_key_options: (a: number, b: number) => Array; - readonly sdk_query_contract_key: (a: number, b: number) => number; - readonly __wbg_set_querycontractkeyoptions_entity_identifier_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_querycontractkeyoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_querycontractkeyoptions_path_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_querycontractkeyoptions_entity_identifier_as_string: (a: number) => Array; - readonly __wbg_get_querycontractkeyoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_get_querycontractkeyoptions_path_as_string: (a: number) => Array; - readonly __wbg_accountidentifier_free: (a: number, b: number) => void; - readonly accountidentifier_fromFormattedStr: (a: number, b: number) => Array; - readonly accountidentifier_fromPublicKey: (a: number) => number; - readonly accountidentifier_fromAccountHash: (a: number) => number; - readonly accountidentifier_toJson: (a: number) => number; - readonly hashaddr_new: (a: number, b: number) => Array; - readonly hashaddr_toBytes: (a: number) => Array; - readonly hashaddr_toHexString: (a: number) => Array; - readonly __wbg_contractpackagehash_free: (a: number, b: number) => void; - readonly contractpackagehash_new_js_alias: (a: number, b: number) => Array; - readonly contractpackagehash_fromFormattedStr: (a: number, b: number) => Array; - readonly contractpackagehash_toFormattedString: (a: number) => Array; - readonly contractpackagehash_fromUint8Array: (a: number, b: number) => number; - readonly deployhash_new_js_alias: (a: number, b: number) => Array; - readonly deployhash_fromDigest: (a: number) => Array; - readonly deployhash_toJson: (a: number) => number; - readonly deployhash_toString: (a: number) => Array; - readonly __wbg_dictionaryitemstrparams_free: (a: number, b: number) => void; - readonly dictionaryitemstrparams_new: () => number; - readonly dictionaryitemstrparams_setAccountNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; - readonly dictionaryitemstrparams_setContractNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; - readonly dictionaryitemstrparams_setEntityNamedKey: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; - readonly dictionaryitemstrparams_setUref: (a: number, b: number, c: number, d: number, e: number) => void; - readonly dictionaryitemstrparams_setDictionary: (a: number, b: number, c: number) => void; - readonly dictionaryitemstrparams_toJson: (a: number) => number; - readonly digest_new_js_alias: (a: number, b: number) => Array; - readonly digest_fromString: (a: number, b: number) => Array; - readonly digest_fromRaw: (a: number, b: number) => Array; - readonly digest_toJson: (a: number) => number; - readonly __wbg_path_free: (a: number, b: number) => void; - readonly path_new: (a: number) => number; - readonly path_fromArray: (a: number) => number; - readonly path_toJson: (a: number) => number; - readonly path_toString: (a: number) => Array; - readonly path_is_empty: (a: number) => number; - readonly publickey_new_js_alias: (a: number, b: number) => Array; - readonly publickey_fromUint8Array: (a: number, b: number) => Array; - readonly publickey_toAccountHash: (a: number) => number; - readonly publickey_toPurseUref: (a: number) => number; - readonly publickey_toJson: (a: number) => number; + readonly __wbg_transfertarget_free: (a: number, b: number) => void; + readonly transfertarget_new: (a: number, b: number, c: number, d: number) => number; + readonly __wbg_transactionbuilderparams_free: (a: number, b: number) => void; + readonly transactionbuilderparams_newSession: (a: number, b: number) => number; + readonly transactionbuilderparams_newTransfer: (a: number, b: number, c: number, d: number, e: number, f: number) => number; + readonly transactionbuilderparams_newInvocableEntity: (a: number, b: number, c: number) => number; + readonly transactionbuilderparams_newInvocableEntityAlias: (a: number, b: number, c: number, d: number) => number; + readonly transactionbuilderparams_newPackage: (a: number, b: number, c: number, d: number, e: number) => number; + readonly transactionbuilderparams_newPackageAlias: (a: number, b: number, c: number, d: number, e: number, f: number) => number; + readonly transactionbuilderparams_newAddBid: (a: number, b: number, c: number, d: number, e: number, f: number) => number; + readonly transactionbuilderparams_newDelegate: (a: number, b: number, c: number, d: number) => number; + readonly transactionbuilderparams_newUndelegate: (a: number, b: number, c: number, d: number) => number; + readonly transactionbuilderparams_newRedelegate: (a: number, b: number, c: number, d: number, e: number) => number; + readonly transactionbuilderparams_newWithdrawBid: (a: number, b: number, c: number) => number; + readonly transactionbuilderparams_kind: (a: number) => number; + readonly transactionbuilderparams_set_kind: (a: number, b: number) => void; + readonly transactionbuilderparams_transaction_bytes: (a: number) => number; + readonly transactionbuilderparams_set_transaction_bytes: (a: number, b: number) => void; + readonly transactionbuilderparams_maybe_source: (a: number) => number; + readonly transactionbuilderparams_set_maybe_source: (a: number, b: number) => void; + readonly transactionbuilderparams_target: (a: number) => number; + readonly transactionbuilderparams_set_target: (a: number, b: number) => void; + readonly transactionbuilderparams_amount: (a: number) => Array; + readonly transactionbuilderparams_set_amount: (a: number, b: number, c: number) => void; + readonly transactionbuilderparams_maybe_id: (a: number) => Array; + readonly transactionbuilderparams_set_maybe_id: (a: number, b: number) => void; + readonly transactionbuilderparams_entity_hash: (a: number) => number; + readonly transactionbuilderparams_set_entity_hash: (a: number, b: number) => void; + readonly transactionbuilderparams_entity_alias: (a: number) => Array; + readonly transactionbuilderparams_set_entity_alias: (a: number, b: number, c: number) => void; + readonly transactionbuilderparams_entry_point: (a: number) => Array; + readonly transactionbuilderparams_set_entry_point: (a: number, b: number, c: number) => void; + readonly transactionbuilderparams_package_hash: (a: number) => number; + readonly transactionbuilderparams_set_package_hash: (a: number, b: number) => void; + readonly transactionbuilderparams_package_alias: (a: number) => Array; + readonly transactionbuilderparams_set_package_alias: (a: number, b: number, c: number) => void; + readonly transactionbuilderparams_public_key: (a: number) => number; + readonly transactionbuilderparams_set_public_key: (a: number, b: number) => void; + readonly transactionbuilderparams_delegation_rate: (a: number) => number; + readonly transactionbuilderparams_set_delegation_rate: (a: number, b: number) => void; + readonly transactionbuilderparams_delegator: (a: number) => number; + readonly transactionbuilderparams_set_delegator: (a: number, b: number) => void; + readonly transactionbuilderparams_validator: (a: number) => number; + readonly transactionbuilderparams_set_validator: (a: number, b: number) => void; + readonly transactionbuilderparams_new_validator: (a: number) => number; + readonly transactionbuilderparams_set_new_validator: (a: number, b: number) => void; + readonly transactionbuilderparams_minimum_delegation_amount: (a: number) => Array; + readonly transactionbuilderparams_set_minimum_delegation_amount: (a: number, b: number) => void; + readonly transactionbuilderparams_maximum_delegation_amount: (a: number) => Array; + readonly transactionbuilderparams_set_maximum_delegation_amount: (a: number, b: number) => void; + readonly transactionbuilderparams_is_install_upgrade: (a: number) => number; + readonly transactionbuilderparams_set_is_install_upgrade: (a: number, b: number) => void; + readonly sdk_speculative_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; + readonly __wbg_getblockresult_free: (a: number, b: number) => void; + readonly getblockresult_api_version: (a: number) => number; + readonly getblockresult_block: (a: number) => number; + readonly getblockresult_toJson: (a: number) => number; + readonly __wbg_getblockoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getblockoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_set_getblockoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getblockoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_set_getblockoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_get_getblockoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getblockoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getblockoptions_verbosity: (a: number) => number; + readonly __wbg_set_getblockoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_block_options: (a: number, b: number) => Array; + readonly sdk_get_block: (a: number, b: number) => number; + readonly sdk_chain_get_block: (a: number, b: number) => number; readonly __wbg_getstateroothashresult_free: (a: number, b: number) => void; readonly getstateroothashresult_api_version: (a: number) => number; readonly getstateroothashresult_state_root_hash: (a: number) => number; readonly getstateroothashresult_state_root_hash_as_string: (a: number) => Array; + readonly getstateroothashresult_toString: (a: number) => Array; readonly getstateroothashresult_toJson: (a: number) => number; - readonly __wbg_getstateroothashoptions_free: (a: number, b: number) => void; - readonly __wbg_get_getstateroothashoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_getstateroothashoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getstateroothashoptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_set_getstateroothashoptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_get_getstateroothashoptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getstateroothashoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getstateroothashoptions_verbosity: (a: number) => number; - readonly __wbg_set_getstateroothashoptions_verbosity: (a: number, b: number) => void; readonly sdk_get_state_root_hash_options: (a: number, b: number) => Array; readonly sdk_get_state_root_hash: (a: number, b: number) => number; readonly sdk_chain_get_state_root_hash: (a: number, b: number) => number; - readonly sdk_transfer_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; - readonly sdk_watchDeploy: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_watchTransaction: (a: number, b: number, c: number, d: number, e: number) => number; - readonly sdk_waitDeploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly sdk_waitTransaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly __wbg_watcher_free: (a: number, b: number) => void; - readonly watcher_new: (a: number, b: number, c: number, d: number) => number; - readonly watcher_subscribe: (a: number, b: number, c: number) => Array; - readonly watcher_unsubscribe: (a: number, b: number, c: number) => void; - readonly watcher_start: (a: number) => number; - readonly watcher_stop: (a: number) => void; - readonly __wbg_subscription_free: (a: number, b: number) => void; - readonly __wbg_get_subscription_eventHandlerFn: (a: number) => number; - readonly __wbg_set_subscription_eventHandlerFn: (a: number, b: number) => void; - readonly subscription_new: (a: number, b: number, c: number) => number; - readonly __wbg_failure_free: (a: number, b: number) => void; - readonly __wbg_get_failure_cost: (a: number) => Array; - readonly __wbg_set_failure_cost: (a: number, b: number, c: number) => void; - readonly __wbg_get_failure_error_message: (a: number) => Array; - readonly __wbg_set_failure_error_message: (a: number, b: number, c: number) => void; - readonly __wbg_version2_free: (a: number, b: number) => void; - readonly __wbg_get_version2_error_message: (a: number) => Array; - readonly __wbg_set_version2_error_message: (a: number, b: number, c: number) => void; - readonly __wbg_executionresult_free: (a: number, b: number) => void; - readonly __wbg_get_executionresult_Success: (a: number) => number; - readonly __wbg_set_executionresult_Success: (a: number, b: number) => void; - readonly __wbg_get_executionresult_Failure: (a: number) => number; - readonly __wbg_set_executionresult_Failure: (a: number, b: number) => void; - readonly __wbg_hashstring_free: (a: number, b: number) => void; - readonly hashstring_Deploy: (a: number) => Array; - readonly hashstring_toString: (a: number) => Array; - readonly __wbg_messages_free: (a: number, b: number) => void; - readonly __wbg_set_messages_entity_hash: (a: number, b: number, c: number) => void; - readonly __wbg_get_messages_message: (a: number) => number; - readonly __wbg_set_messages_message: (a: number, b: number) => void; - readonly __wbg_get_messages_topic_name: (a: number) => Array; - readonly __wbg_set_messages_topic_name: (a: number, b: number, c: number) => void; - readonly __wbg_get_messages_topic_name_hash: (a: number) => Array; - readonly __wbg_set_messages_topic_name_hash: (a: number, b: number, c: number) => void; - readonly __wbg_get_messages_topic_index: (a: number) => number; - readonly __wbg_set_messages_topic_index: (a: number, b: number) => void; - readonly __wbg_get_messages_block_index: (a: number) => number; - readonly __wbg_set_messages_block_index: (a: number, b: number) => void; - readonly __wbg_transactionprocessed_free: (a: number, b: number) => void; - readonly __wbg_get_transactionprocessed_hash: (a: number) => number; - readonly __wbg_set_transactionprocessed_hash: (a: number, b: number) => void; - readonly __wbg_get_transactionprocessed_initiator_addr: (a: number) => number; - readonly __wbg_set_transactionprocessed_initiator_addr: (a: number, b: number) => void; - readonly __wbg_get_transactionprocessed_timestamp: (a: number) => Array; - readonly __wbg_set_transactionprocessed_timestamp: (a: number, b: number, c: number) => void; - readonly __wbg_set_transactionprocessed_ttl: (a: number, b: number, c: number) => void; - readonly __wbg_get_transactionprocessed_execution_result: (a: number) => number; - readonly __wbg_set_transactionprocessed_execution_result: (a: number, b: number) => void; - readonly __wbg_get_transactionprocessed_messages: (a: number) => Array; - readonly __wbg_set_transactionprocessed_messages: (a: number, b: number, c: number) => void; - readonly __wbg_body_free: (a: number, b: number) => void; - readonly __wbg_get_body_transaction_processed: (a: number) => number; - readonly __wbg_set_body_transaction_processed: (a: number, b: number) => void; - readonly body_get_deploy_processed: (a: number) => number; - readonly __wbg_eventparseresult_free: (a: number, b: number) => void; - readonly __wbg_get_eventparseresult_err: (a: number) => Array; - readonly __wbg_set_eventparseresult_err: (a: number, b: number, c: number) => void; - readonly __wbg_get_eventparseresult_body: (a: number) => number; - readonly __wbg_set_eventparseresult_body: (a: number, b: number) => void; - readonly __wbg_payment_free: (a: number, b: number) => void; - readonly __wbg_publickeystring_free: (a: number, b: number) => void; - readonly __wbg_message_free: (a: number, b: number) => void; - readonly __wbg_get_version2_initiator: (a: number) => number; - readonly getstateroothashresult_toString: (a: number) => Array; - readonly accountidentifier_new: (a: number, b: number) => Array; - readonly __wbg_set_subscription_targetHash: (a: number, b: number, c: number) => void; - readonly __wbg_set_version2_limit: (a: number, b: number, c: number) => void; - readonly __wbg_set_payment_source: (a: number, b: number, c: number) => void; - readonly __wbg_set_hashstring_hash: (a: number, b: number, c: number) => void; - readonly __wbg_set_publickeystring_PublicKey: (a: number, b: number, c: number) => void; - readonly __wbg_set_message_String: (a: number, b: number, c: number) => void; - readonly __wbg_set_version2_consumed: (a: number, b: number, c: number) => void; - readonly __wbg_set_version2_cost: (a: number, b: number, c: number) => void; - readonly __wbg_set_transactionprocessed_block_hash: (a: number, b: number, c: number) => void; - readonly body_get_transaction_processed: (a: number) => number; - readonly hashstring_Version1: (a: number) => Array; - readonly __wbg_set_version2_initiator: (a: number, b: number) => void; - readonly __wbg_hashaddr_free: (a: number, b: number) => void; - readonly __wbg_deployhash_free: (a: number, b: number) => void; - readonly __wbg_digest_free: (a: number, b: number) => void; - readonly __wbg_publickey_free: (a: number, b: number) => void; - readonly __wbg_get_subscription_targetHash: (a: number) => Array; - readonly __wbg_get_version2_limit: (a: number) => Array; - readonly __wbg_get_payment_source: (a: number) => Array; - readonly __wbg_get_hashstring_hash: (a: number) => Array; - readonly __wbg_get_publickeystring_PublicKey: (a: number) => Array; - readonly __wbg_get_message_String: (a: number) => Array; - readonly __wbg_get_messages_entity_hash: (a: number) => Array; - readonly __wbg_get_version2_cost: (a: number) => Array; - readonly __wbg_get_version2_consumed: (a: number) => Array; - readonly __wbg_get_transactionprocessed_ttl: (a: number) => Array; - readonly __wbg_get_transactionprocessed_block_hash: (a: number) => Array; - readonly digest_toString: (a: number) => Array; - readonly sdk_speculative_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; - readonly sdk_speculative_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number; - readonly __wbg_getauctioninforesult_free: (a: number, b: number) => void; - readonly getauctioninforesult_api_version: (a: number) => number; - readonly getauctioninforesult_auction_state: (a: number) => number; - readonly getauctioninforesult_toJson: (a: number) => number; - readonly __wbg_getauctioninfooptions_free: (a: number, b: number) => void; - readonly __wbg_get_getauctioninfooptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_set_getauctioninfooptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_get_getauctioninfooptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_set_getauctioninfooptions_maybe_block_identifier: (a: number, b: number) => void; - readonly __wbg_get_getauctioninfooptions_rpc_address: (a: number) => Array; - readonly __wbg_set_getauctioninfooptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_getauctioninfooptions_verbosity: (a: number) => number; - readonly __wbg_set_getauctioninfooptions_verbosity: (a: number, b: number) => void; - readonly sdk_get_auction_info_options: (a: number, b: number) => Array; - readonly sdk_get_auction_info: (a: number, b: number) => number; - readonly sdk_state_get_auction_info_js_alias: (a: number, b: number) => number; - readonly __wbg_geterasummaryresult_free: (a: number, b: number) => void; - readonly geterasummaryresult_api_version: (a: number) => number; - readonly geterasummaryresult_era_summary: (a: number) => number; - readonly geterasummaryresult_toJson: (a: number) => number; - readonly sdk_get_era_summary_options: (a: number, b: number) => Array; - readonly sdk_get_era_summary: (a: number, b: number) => number; - readonly sdk_chain_get_era_summary: (a: number, b: number) => number; readonly __wbg_querybalanceresult_free: (a: number, b: number) => void; readonly querybalanceresult_api_version: (a: number) => number; readonly querybalanceresult_balance: (a: number) => number; @@ -4851,41 +4794,98 @@ export interface InitOutput { readonly __wbg_set_querybalanceoptions_verbosity: (a: number, b: number) => void; readonly sdk_query_balance_options: (a: number, b: number) => Array; readonly sdk_query_balance: (a: number, b: number) => number; - readonly sdk_call_entrypoint: (a: number, b: number, c: number, d: number, e: number) => number; - readonly __wbg_get_geterasummaryoptions_maybe_block_identifier: (a: number) => number; - readonly __wbg_geterasummaryoptions_free: (a: number, b: number) => void; - readonly __wbg_set_geterasummaryoptions_verbosity: (a: number, b: number) => void; - readonly __wbg_set_geterasummaryoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; - readonly __wbg_set_geterasummaryoptions_rpc_address: (a: number, b: number, c: number) => void; - readonly __wbg_get_geterasummaryoptions_maybe_block_id_as_string: (a: number) => Array; - readonly __wbg_get_geterasummaryoptions_rpc_address: (a: number) => Array; - readonly __wbg_get_geterasummaryoptions_verbosity: (a: number) => number; - readonly __wbg_set_geterasummaryoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly speculativeexectxnresult_api_version: (a: number) => number; + readonly speculativeexectxnresult_execution_result: (a: number) => number; + readonly speculativeexectxnresult_toJson: (a: number) => number; + readonly __wbg_getspeculativeexectxnoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getspeculativeexectxnoptions_transaction: (a: number) => number; + readonly __wbg_set_getspeculativeexectxnoptions_transaction: (a: number, b: number) => void; + readonly sdk_get_speculative_exec_options: (a: number, b: number) => Array; + readonly sdk_speculative_exec: (a: number, b: number) => number; + readonly __wbg_speculativeexecresult_free: (a: number, b: number) => void; + readonly speculativeexecresult_api_version: (a: number) => number; + readonly speculativeexecresult_block_hash: (a: number) => number; + readonly speculativeexecresult_execution_result: (a: number) => number; + readonly speculativeexecresult_toJson: (a: number) => number; + readonly __wbg_getspeculativeexecdeployoptions_free: (a: number, b: number) => void; + readonly __wbg_get_getspeculativeexecdeployoptions_deploy_as_string: (a: number) => Array; + readonly __wbg_set_getspeculativeexecdeployoptions_deploy_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_get_getspeculativeexecdeployoptions_deploy: (a: number) => number; + readonly __wbg_set_getspeculativeexecdeployoptions_deploy: (a: number, b: number) => void; + readonly __wbg_get_getspeculativeexecdeployoptions_rpc_address: (a: number) => Array; + readonly __wbg_set_getspeculativeexecdeployoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getspeculativeexecdeployoptions_verbosity: (a: number) => number; + readonly __wbg_set_getspeculativeexecdeployoptions_verbosity: (a: number, b: number) => void; + readonly sdk_get_speculative_exec_deploy_options: (a: number, b: number) => Array; + readonly sdk_speculative_exec_deploy: (a: number, b: number) => number; + readonly sdk_make_deploy: (a: number, b: number, c: number, d: number) => Array; + readonly sdk_make_transfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => Array; + readonly sdk_sign_transaction: (a: number, b: number, c: number, d: number) => number; + readonly sdk_install_deploy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number; + readonly __wbg_sdk_free: (a: number, b: number) => void; + readonly sdk_new: (a: number, b: number, c: number) => number; + readonly sdk_getRPCAddress: (a: number, b: number, c: number) => Array; + readonly sdk_setRPCAddress: (a: number, b: number, c: number) => Array; + readonly sdk_getVerbosity: (a: number, b: number) => number; + readonly sdk_setVerbosity: (a: number, b: number) => Array; + readonly hexToString: (a: number, b: number) => Array; + readonly hexToUint8Array: (a: number, b: number) => Array; + readonly uint8ArrayToBytes: (a: number) => number; + readonly motesToCSPR: (a: number, b: number) => Array; + readonly jsonPrettyPrint: (a: number, b: number) => Array; + readonly publicKeyFromSecretKey: (a: number, b: number) => Array; + readonly generateSecretKey: () => Array; + readonly generateSecretKey_secp256k1: () => Array; + readonly accountHashToBase64Key: (a: number, b: number) => Array; + readonly getTimestamp: () => number; + readonly encodeLowerBlake2b: (a: number, b: number) => number; + readonly makeDictionaryItemKey: (a: number, b: number, c: number) => Array; + readonly __wbg_get_getstateroothashoptions_maybe_block_identifier: (a: number) => number; + readonly __wbg_getstateroothashoptions_free: (a: number, b: number) => void; + readonly __wbg_set_getstateroothashoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_set_getspeculativeexectxnoptions_verbosity: (a: number, b: number) => void; + readonly __wbg_set_getstateroothashoptions_maybe_block_id_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_getstateroothashoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_set_getspeculativeexectxnoptions_transaction_as_string: (a: number, b: number, c: number) => void; + readonly __wbg_set_getspeculativeexectxnoptions_rpc_address: (a: number, b: number, c: number) => void; + readonly __wbg_get_getstateroothashoptions_maybe_block_id_as_string: (a: number) => Array; + readonly __wbg_get_getstateroothashoptions_rpc_address: (a: number) => Array; + readonly __wbg_get_getspeculativeexectxnoptions_transaction_as_string: (a: number) => Array; + readonly __wbg_get_getspeculativeexectxnoptions_rpc_address: (a: number) => Array; + readonly __wbg_get_getstateroothashoptions_verbosity: (a: number) => number; + readonly __wbg_get_getspeculativeexectxnoptions_verbosity: (a: number) => number; + readonly __wbg_set_getstateroothashoptions_maybe_block_identifier: (a: number, b: number) => void; + readonly __wbg_speculativeexectxnresult_free: (a: number, b: number) => void; + readonly __wbg_dictionaryaddr_free: (a: number, b: number) => void; + readonly __wbg_blockhash_free: (a: number, b: number) => void; + readonly __wbg_contracthash_free: (a: number, b: number) => void; + readonly speculativeexectxnresult_block_hash: (a: number) => number; + readonly entityidentifier_new_js_alias: (a: number, b: number) => Array; readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void; - readonly intounderlyingbytesource_type: (a: number) => Array; + readonly intounderlyingbytesource_type: (a: number) => number; readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number; readonly intounderlyingbytesource_start: (a: number, b: number) => void; readonly intounderlyingbytesource_pull: (a: number, b: number) => number; readonly intounderlyingbytesource_cancel: (a: number) => void; - readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void; - readonly intounderlyingsource_pull: (a: number, b: number) => number; - readonly intounderlyingsource_cancel: (a: number) => void; readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void; readonly intounderlyingsink_write: (a: number, b: number) => number; readonly intounderlyingsink_close: (a: number) => number; readonly intounderlyingsink_abort: (a: number, b: number) => number; + readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void; + readonly intounderlyingsource_pull: (a: number, b: number) => number; + readonly intounderlyingsource_cancel: (a: number) => void; readonly __wbindgen_malloc: (a: number, b: number) => number; readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; readonly __wbindgen_export_2: WebAssembly.Table; readonly __wbindgen_export_3: WebAssembly.Table; - readonly closure1010_externref_shim: (a: number, b: number, c: number) => void; - readonly closure1024_externref_shim: (a: number, b: number, c: number) => void; - readonly __externref_table_dealloc: (a: number) => void; + readonly closure1017_externref_shim: (a: number, b: number, c: number) => void; + readonly closure1027_externref_shim: (a: number, b: number, c: number) => void; readonly __wbindgen_free: (a: number, b: number, c: number) => void; + readonly __externref_table_dealloc: (a: number) => void; readonly __externref_table_alloc: () => number; - readonly __wbindgen_exn_store: (a: number) => void; readonly __externref_drop_slice: (a: number, b: number) => void; - readonly closure1570_externref_shim: (a: number, b: number, c: number, d: number) => void; + readonly __wbindgen_exn_store: (a: number) => void; + readonly closure1586_externref_shim: (a: number, b: number, c: number, d: number) => void; readonly __wbindgen_start: () => void; } diff --git a/pkg/casper_rust_wasm_sdk.js b/pkg/casper_rust_wasm_sdk.js index f05eeed6..5442a0bb 100644 --- a/pkg/casper_rust_wasm_sdk.js +++ b/pkg/casper_rust_wasm_sdk.js @@ -183,18 +183,18 @@ function makeMutClosure(arg0, arg1, dtor, f) { return real; } function __wbg_adapter_36(arg0, arg1, arg2) { - wasm.closure1010_externref_shim(arg0, arg1, arg2); + wasm.closure1017_externref_shim(arg0, arg1, arg2); } function __wbg_adapter_39(arg0, arg1, arg2) { - wasm.closure1024_externref_shim(arg0, arg1, arg2); + wasm.closure1027_externref_shim(arg0, arg1, arg2); } -function passArray8ToWasm0(arg, malloc) { - const ptr = malloc(arg.length * 1, 1) >>> 0; - getUint8ArrayMemory0().set(arg, ptr / 1); - WASM_VECTOR_LEN = arg.length; - return ptr; +function _assertClass(instance, klass) { + if (!(instance instanceof klass)) { + throw new Error(`expected instance of ${klass.name}`); + } + return instance.ptr; } function takeFromExternrefTable0(idx) { @@ -203,11 +203,11 @@ function takeFromExternrefTable0(idx) { return value; } -function _assertClass(instance, klass) { - if (!(instance instanceof klass)) { - throw new Error(`expected instance of ${klass.name}`); - } - return instance.ptr; +function passArray8ToWasm0(arg, malloc) { + const ptr = malloc(arg.length * 1, 1) >>> 0; + getUint8ArrayMemory0().set(arg, ptr / 1); + WASM_VECTOR_LEN = arg.length; + return ptr; } function addToExternrefTable0(obj) { @@ -216,6 +216,32 @@ function addToExternrefTable0(obj) { return idx; } +function passArrayJsValueToWasm0(array, malloc) { + const ptr = malloc(array.length * 4, 4) >>> 0; + const mem = getDataViewMemory0(); + for (let i = 0; i < array.length; i++) { + mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true); + } + WASM_VECTOR_LEN = array.length; + return ptr; +} + +function getArrayU8FromWasm0(ptr, len) { + ptr = ptr >>> 0; + return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); +} + +function getArrayJsValueFromWasm0(ptr, len) { + ptr = ptr >>> 0; + const mem = getDataViewMemory0(); + const result = []; + for (let i = ptr; i < ptr + 4 * len; i += 4) { + result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true))); + } + wasm.__externref_drop_slice(ptr, len); + return result; +} + function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; } function handleError(f, args) { @@ -254,10 +280,6 @@ export function hexToString(hex_string) { } } -function getArrayU8FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); -} /** * Converts a hexadecimal string to a Uint8Array. * @@ -527,28 +549,8 @@ export function makeDictionaryItemKey(key, value) { } } -function passArrayJsValueToWasm0(array, malloc) { - const ptr = malloc(array.length * 4, 4) >>> 0; - const mem = getDataViewMemory0(); - for (let i = 0; i < array.length; i++) { - mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true); - } - WASM_VECTOR_LEN = array.length; - return ptr; -} - -function getArrayJsValueFromWasm0(ptr, len) { - ptr = ptr >>> 0; - const mem = getDataViewMemory0(); - const result = []; - for (let i = ptr; i < ptr + 4 * len; i += 4) { - result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true))); - } - wasm.__externref_drop_slice(ptr, len); - return result; -} function __wbg_adapter_1124(arg0, arg1, arg2, arg3) { - wasm.closure1570_externref_shim(arg0, arg1, arg2, arg3); + wasm.closure1586_externref_shim(arg0, arg1, arg2, arg3); } export const PricingMode = Object.freeze({ Fixed:0,"0":"Fixed",Classic:1,"1":"Classic",Reserved:2,"2":"Reserved", }); @@ -4400,19 +4402,11 @@ export class IntoUnderlyingByteSource { wasm.__wbg_intounderlyingbytesource_free(ptr, 0); } /** - * @returns {string} + * @returns {any} */ get type() { - let deferred1_0; - let deferred1_1; - try { - const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); - deferred1_0 = ret[0]; - deferred1_1 = ret[1]; - return getStringFromWasm0(ret[0], ret[1]); - } finally { - wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); - } + const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); + return __wbindgen_enum_ReadableStreamType[ret]; } /** * @returns {number} @@ -5712,7 +5706,7 @@ export class PurseIdentifier { constructor(key) { _assertClass(key, PublicKey); var ptr0 = key.__destroy_into_raw(); - const ret = wasm.entityidentifier_fromPublicKey(ptr0); + const ret = wasm.purseidentifier_fromPublicKey(ptr0); this.__wbg_ptr = ret >>> 0; PurseIdentifierFinalization.register(this, this.__wbg_ptr, this); return this; @@ -5724,7 +5718,7 @@ export class PurseIdentifier { static fromAccountHash(account_hash) { _assertClass(account_hash, AccountHash); var ptr0 = account_hash.__destroy_into_raw(); - const ret = wasm.entityidentifier_fromAccountHash(ptr0); + const ret = wasm.purseidentifier_fromAccountHash(ptr0); return PurseIdentifier.__wrap(ret); } /** @@ -6063,665 +6057,457 @@ export class SDK { wasm.__wbg_sdk_free(ptr, 0); } /** - * JavaScript function for deploying with deserialized parameters. + * Parses balance options from a JsValue. * * # Arguments * - * * `deploy_params` - Deploy parameters. - * * `session_params` - Session parameters. - * * `payment_params` - Payment parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. + * * `options` - A JsValue containing balance options to be parsed. * * # Returns * - * A result containing PutDeployResult or a JsError. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * Parsed balance options as a `GetBalanceOptions` struct. + * @param {any} options + * @returns {getBalanceOptions} */ - deploy(deploy_params, session_params, payment_params, verbosity, rpc_address) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr2 = payment_params.__destroy_into_raw(); - var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); - return ret; + get_balance_options(options) { + const ret = wasm.sdk_get_balance_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return getBalanceOptions.__wrap(ret[0]); } /** - * Asynchronously retrieves the chainspec. + * Retrieves balance information using the provided options. * * # Arguments * - * * `verbosity` - An optional `Verbosity` parameter. - * * `rpc_address` - An optional rpc address as a string. + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} */ - get_chainspec(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + get_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_balance(this.__wbg_ptr, ptr0); return ret; } /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} + * JavaScript Alias for `get_balance`. + * + * # Arguments + * + * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * @param {getBalanceOptions | undefined} [options] + * @returns {Promise} */ - info_get_chainspec(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + state_get_balance(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBalanceOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_balance(this.__wbg_ptr, ptr0); return ret; } /** - * Parses dictionary item options from a JsValue. + * Parses query balance options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing dictionary item options to be parsed. + * * `options` - A JsValue containing query balance options to be parsed. * * # Returns * - * Parsed dictionary item options as a `GetDictionaryItemOptions` struct. + * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. * @param {any} options - * @returns {getDictionaryItemOptions} + * @returns {queryBalanceDetailsOptions} */ - get_dictionary_item_options(options) { - const ret = wasm.sdk_get_dictionary_item_options(this.__wbg_ptr, options); + query_balance_details_options(options) { + const ret = wasm.sdk_query_balance_details_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getDictionaryItemOptions.__wrap(ret[0]); + return queryBalanceDetailsOptions.__wrap(ret[0]); } /** - * Retrieves dictionary item information using the provided options. + * Retrieves balance information using the provided options. * * # Arguments * - * * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. + * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. + * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getDictionaryItemOptions | undefined} [options] - * @returns {Promise} - */ - get_dictionary_item(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getDictionaryItemOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_get_dictionary_item(this.__wbg_ptr, ptr0); - return ret; - } - /** - * JavaScript Alias for `get_dictionary_item` - * @param {getDictionaryItemOptions | undefined} [options] - * @returns {Promise} + * @param {queryBalanceDetailsOptions | undefined} [options] + * @returns {Promise} */ - state_get_dictionary_item(options) { + query_balance_details(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getDictionaryItemOptions); + _assertClass(options, queryBalanceDetailsOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_state_get_dictionary_item(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_query_balance_details(this.__wbg_ptr, ptr0); return ret; } /** + * Parses query global state options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing query global state options to be parsed. + * + * # Returns + * + * Parsed query global state options as a `QueryGlobalStateOptions` struct. * @param {any} options - * @returns {getEntityOptions} + * @returns {queryGlobalStateOptions} */ - get_entity_options(options) { - const ret = wasm.sdk_get_entity_options(this.__wbg_ptr, options); + query_global_state_options(options) { + const ret = wasm.sdk_query_global_state_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getEntityOptions.__wrap(ret[0]); + return queryGlobalStateOptions.__wrap(ret[0]); } /** - * Retrieves entity information using the provided options. - * - * This function is an asynchronous JavaScript binding for the Rust `get_entity` method. + * Retrieves global state information using the provided options. * * # Arguments * - * * `options` - An optional `GetEntityOptions` struct containing retrieval options, such as: - * - `entity_identifier`: Identifier for the entity. - * - `entity_identifier_as_string`: String representation of the entity identifier. - * - `maybe_block_id_as_string`: Optional string representation of the block ID. - * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. - * - `verbosity`: Verbosity level for the output. - * - `rpc_address`: Address of the node to query. + * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetAddressableEntityResult` on success or a `JsError` on failure. + * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. - * ``` - * @param {getEntityOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process. + * @param {queryGlobalStateOptions | undefined} [options] + * @returns {Promise} */ - get_entity(options) { + query_global_state(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getEntityOptions); + _assertClass(options, queryGlobalStateOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_entity(this.__wbg_ptr, ptr0); - return ret; - } - /** - * @param {getEntityOptions | undefined} [options] - * @returns {Promise} - */ - state_get_entity(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getEntityOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_state_get_entity(this.__wbg_ptr, ptr0); - return ret; - } - /** - * Retrieves peers asynchronously. - * - * # Arguments - * - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - get_peers(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - info_get_peers(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * Retrieves validator changes using the provided options. - * - * # Arguments - * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - get_validator_changes(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_validator_changes(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - info_get_validator_change(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_validator_change(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * Lists available RPCs using the provided options. - * - * # Arguments - * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the listing process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - list_rpcs(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_list_rpcs(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + const ret = wasm.sdk_query_global_state(this.__wbg_ptr, ptr0); return ret; } /** - * JS function for `sign_transaction`. - * - * # Arguments - * - * * `transaction` - The transaction to sign. - * * `secret_key` - The secret key for signing. - * - * # Returns - * - * The signed `Transaction`. - * @param {Transaction} transaction - * @param {string} secret_key - * @returns {Transaction} - */ - sign_transaction(transaction, secret_key) { - _assertClass(transaction, Transaction); - var ptr0 = transaction.__destroy_into_raw(); - const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_sign_transaction(this.__wbg_ptr, ptr0, ptr1, len1); - return Transaction.__wrap(ret); - } - /** - * Deserialize query_contract_dict_options from a JavaScript object. + * Deserialize query_contract_key_options from a JavaScript object. * @param {any} options - * @returns {queryContractDictOptions} + * @returns {queryContractKeyOptions} */ - query_contract_dict_options(options) { - const ret = wasm.sdk_query_contract_dict_options(this.__wbg_ptr, options); + query_contract_key_options(options) { + const ret = wasm.sdk_query_contract_key_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return queryContractDictOptions.__wrap(ret[0]); + return queryContractKeyOptions.__wrap(ret[0]); } /** - * JavaScript function for query_contract_dict with deserialized options. - * @param {queryContractDictOptions | undefined} [options] - * @returns {Promise} + * JavaScript function for query_contract_key with deserialized options. + * @param {queryContractKeyOptions | undefined} [options] + * @returns {Promise} */ - query_contract_dict(options) { + query_contract_key(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, queryContractDictOptions); + _assertClass(options, queryContractKeyOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_query_contract_dict(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_query_contract_key(this.__wbg_ptr, ptr0); return ret; } /** - * Parses block options from a JsValue. + * Parses deploy options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing block options to be parsed. + * * `options` - A JsValue containing deploy options to be parsed. * * # Returns * - * Parsed block options as a `GetBlockOptions` struct. + * Parsed deploy options as a `GetDeployOptions` struct. * @param {any} options - * @returns {getBlockOptions} + * @returns {getDeployOptions} */ - get_block_options(options) { - const ret = wasm.sdk_get_block_options(this.__wbg_ptr, options); + get_deploy_options(options) { + const ret = wasm.sdk_get_deploy_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getBlockOptions.__wrap(ret[0]); + return getDeployOptions.__wrap(ret[0]); } /** - * Retrieves block information using the provided options. + * Retrieves deploy information using the provided options. * * # Arguments * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * * `options` - An optional `GetDeployOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `GetDeployResult` or an error. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} */ - get_block(options) { + get_deploy(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBlockOptions); + _assertClass(options, getDeployOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_block(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_deploy(this.__wbg_ptr, ptr0); return ret; } /** - * JavaScript Alias for the `get_block`. - * - * # Arguments - * - * * `options` - An optional `GetBlockOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockOptions | undefined} [options] - * @returns {Promise} + * Retrieves deploy information using the provided options, alias for `get_deploy`. + * @param {getDeployOptions | undefined} [options] + * @returns {Promise} */ - chain_get_block(options) { + info_get_deploy(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBlockOptions); + _assertClass(options, getDeployOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_chain_get_block(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_info_get_deploy(this.__wbg_ptr, ptr0); return ret; } /** - * Parses block transfers options from a JsValue. + * Parses transaction options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing block transfers options to be parsed. + * * `options` - A JsValue containing transaction options to be parsed. * * # Returns * - * Parsed block transfers options as a `GetBlockTransfersOptions` struct. + * Parsed transaction options as a `GetTransactionOptions` struct. * @param {any} options - * @returns {getBlockTransfersOptions} + * @returns {getTransactionOptions} */ - get_block_transfers_options(options) { - const ret = wasm.sdk_get_block_transfers_options(this.__wbg_ptr, options); + get_transaction_options(options) { + const ret = wasm.sdk_get_transaction_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getBlockTransfersOptions.__wrap(ret[0]); + return getTransactionOptions.__wrap(ret[0]); } /** - * Retrieves block transfers information using the provided options. + * Retrieves transaction information using the provided options. * * # Arguments * - * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. + * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `GetTransactionResult` or an error. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} */ - get_block_transfers(options) { + get_transaction(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBlockTransfersOptions); + _assertClass(options, getTransactionOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_block_transfers(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_transaction(this.__wbg_ptr, ptr0); return ret; } /** - * @param {getBlockTransfersOptions | undefined} [options] - * @returns {Promise} + * Retrieves transaction information using the provided options, alias for `get_transaction`. + * @param {getTransactionOptions | undefined} [options] + * @returns {Promise} */ - chain_get_block_transfers(options) { + info_get_transaction(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBlockTransfersOptions); + _assertClass(options, getTransactionOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_chain_get_block_transfers(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_info_get_transaction(this.__wbg_ptr, ptr0); return ret; } /** - * Get options for speculative execution from a JavaScript value. - * @param {any} options - * @returns {getSpeculativeExecDeployOptions} - */ - get_speculative_exec_deploy_options(options) { - const ret = wasm.sdk_get_speculative_exec_deploy_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getSpeculativeExecDeployOptions.__wrap(ret[0]); - } - /** - * JS function for speculative execution. + * JS function for `make_transfer_transaction`. * * # Arguments * - * * `options` - The options for speculative execution. + * * `maybe_source` - Optional transfer source uref. + * * `amount` - The transfer amount. + * * `target` - The target account. + * * `transaction_params` - The transaction parameters. + * * `maybe_id` - Optional transfer identifier. * * # Returns * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecDeployOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @returns {Transaction} */ - speculative_exec_deploy(options) { + make_transfer_transaction(maybe_source, target, amount, transaction_params, maybe_id) { let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getSpeculativeExecDeployOptions); - ptr0 = options.__destroy_into_raw(); + if (!isLikeNone(maybe_source)) { + _assertClass(maybe_source, URef); + ptr0 = maybe_source.__destroy_into_raw(); } - const ret = wasm.sdk_speculative_exec_deploy(this.__wbg_ptr, ptr0); - return ret; + const ptr1 = passStringToWasm0(target, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + _assertClass(transaction_params, TransactionStrParams); + var ptr3 = transaction_params.__destroy_into_raw(); + var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + const ret = wasm.sdk_make_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return Transaction.__wrap(ret[0]); } /** - * JavaScript function for transactioning with deserialized parameters. + * Asynchronously retrieves the chainspec. * * # Arguments * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Session parameters. - * * `verbosity` - An optional verbosity level. - * * `rpc_address` - An optional rpc address. + * * `verbosity` - An optional `Verbosity` parameter. + * * `rpc_address` - An optional rpc address as a string. * * # Returns * - * A result containing PutTransactionResult or a JsError. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params + * A `Result` containing either a `GetChainspecResult` or a `JsError` in case of an error. * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - transaction(builder_params, transaction_params, verbosity, rpc_address) { - _assertClass(builder_params, TransactionBuilderParams); - var ptr0 = builder_params.__destroy_into_raw(); - _assertClass(transaction_params, TransactionStrParams); - var ptr1 = transaction_params.__destroy_into_raw(); - var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_transaction(this.__wbg_ptr, ptr0, ptr1, isLikeNone(verbosity) ? 3 : verbosity, ptr2, len2); + get_chainspec(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); return ret; } /** - * JS function for `make_transfer`. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_chainspec(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_chainspec(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * Parses dictionary item options from a JsValue. * * # Arguments * - * * `amount` - The transfer amount. - * * `target_account` - The target account. - * * `transfer_id` - Optional transfer identifier. - * * `deploy_params` - The deploy parameters. - * * `payment_params` - The payment parameters. + * * `options` - A JsValue containing dictionary item options to be parsed. * * # Returns * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id - * @param {DeployStrParams} deploy_params - * @param {PaymentStrParams} payment_params - * @returns {Deploy} + * Parsed dictionary item options as a `GetDictionaryItemOptions` struct. + * @param {any} options + * @returns {getDictionaryItemOptions} */ - make_transfer(amount, target_account, transfer_id, deploy_params, payment_params) { - const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - _assertClass(deploy_params, DeployStrParams); - var ptr3 = deploy_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr4 = payment_params.__destroy_into_raw(); - const ret = wasm.sdk_make_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4); + get_dictionary_item_options(options) { + const ret = wasm.sdk_get_dictionary_item_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return Deploy.__wrap(ret[0]); + return getDictionaryItemOptions.__wrap(ret[0]); } /** - * JS function for `sign_deploy`. + * Retrieves dictionary item information using the provided options. * * # Arguments * - * * `deploy` - The deploy to sign. - * * `secret_key` - The secret key for signing. + * * `options` - An optional `GetDictionaryItemOptions` struct containing retrieval options. * * # Returns * - * The signed `Deploy`. - * @param {Deploy} deploy - * @param {string} secret_key - * @returns {Deploy} - */ - sign_deploy(deploy, secret_key) { - _assertClass(deploy, Deploy); - var ptr0 = deploy.__destroy_into_raw(); - const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_sign_deploy(this.__wbg_ptr, ptr0, ptr1, len1); - return Deploy.__wrap(ret); - } - /** - * @param {string | undefined} [rpc_address] - * @param {Verbosity | undefined} [verbosity] - */ - constructor(rpc_address, verbosity) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_new(ptr0, len0, isLikeNone(verbosity) ? 3 : verbosity); - this.__wbg_ptr = ret >>> 0; - SDKFinalization.register(this, this.__wbg_ptr, this); - return this; - } - /** - * @param {string | undefined} [rpc_address] - * @returns {string} - */ - getRPCAddress(rpc_address) { - let deferred2_0; - let deferred2_1; - try { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_getRPCAddress(this.__wbg_ptr, ptr0, len0); - deferred2_0 = ret[0]; - deferred2_1 = ret[1]; - return getStringFromWasm0(ret[0], ret[1]); - } finally { - wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); - } - } - /** - * @param {string | undefined} [rpc_address] + * A `Result` containing either a `GetDictionaryItemResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getDictionaryItemOptions | undefined} [options] + * @returns {Promise} */ - setRPCAddress(rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_setRPCAddress(this.__wbg_ptr, ptr0, len0); - if (ret[1]) { - throw takeFromExternrefTable0(ret[0]); + get_dictionary_item(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDictionaryItemOptions); + ptr0 = options.__destroy_into_raw(); } - } - /** - * @param {Verbosity | undefined} [verbosity] - * @returns {Verbosity} - */ - getVerbosity(verbosity) { - const ret = wasm.sdk_getVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); + const ret = wasm.sdk_get_dictionary_item(this.__wbg_ptr, ptr0); return ret; } /** - * @param {Verbosity | undefined} [verbosity] + * JavaScript Alias for `get_dictionary_item` + * @param {getDictionaryItemOptions | undefined} [options] + * @returns {Promise} */ - setVerbosity(verbosity) { - const ret = wasm.sdk_setVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); - if (ret[1]) { - throw takeFromExternrefTable0(ret[0]); + state_get_dictionary_item(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getDictionaryItemOptions); + ptr0 = options.__destroy_into_raw(); } + const ret = wasm.sdk_state_get_dictionary_item(this.__wbg_ptr, ptr0); + return ret; } /** * @param {any} options - * @returns {getAccountOptions} + * @returns {getEntityOptions} */ - get_account_options(options) { - const ret = wasm.sdk_get_account_options(this.__wbg_ptr, options); + get_entity_options(options) { + const ret = wasm.sdk_get_entity_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getAccountOptions.__wrap(ret[0]); + return getEntityOptions.__wrap(ret[0]); } /** - * Retrieves account information using the provided options. + * Retrieves entity information using the provided options. * - * This function is an asynchronous JavaScript binding for the Rust `get_account` method. + * This function is an asynchronous JavaScript binding for the Rust `get_entity` method. * * # Arguments * - * * `options` - An optional `GetAccountOptions` struct containing retrieval options, such as: - * - `account_identifier`: Identifier for the account. - * - `account_identifier_as_string`: String representation of the account identifier. + * * `options` - An optional `GetEntityOptions` struct containing retrieval options, such as: + * - `entity_identifier`: Identifier for the entity. + * - `entity_identifier_as_string`: String representation of the entity identifier. * - `maybe_block_id_as_string`: Optional string representation of the block ID. * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. * - `verbosity`: Verbosity level for the output. @@ -6729,103 +6515,365 @@ export class SDK { * * # Returns * - * A `Result` containing either a `GetAccountResult` on success or a `JsError` on failure. + * A `Result` containing either a `GetAddressableEntityResult` on success or a `JsError` on failure. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. * ``` - * @param {getAccountOptions | undefined} [options] - * @returns {Promise} + * @param {getEntityOptions | undefined} [options] + * @returns {Promise} */ - get_account(options) { + get_entity(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getAccountOptions); + _assertClass(options, getEntityOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_account(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_entity(this.__wbg_ptr, ptr0); return ret; } /** - * @param {getAccountOptions | undefined} [options] - * @returns {Promise} + * @param {getEntityOptions | undefined} [options] + * @returns {Promise} */ - state_get_account_info(options) { + state_get_entity(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getAccountOptions); + _assertClass(options, getEntityOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_state_get_account_info(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_state_get_entity(this.__wbg_ptr, ptr0); return ret; } /** - * Parses balance options from a JsValue. + * Retrieves node status information using the provided options. * * # Arguments * - * * `options` - A JsValue containing balance options to be parsed. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. * * # Returns * - * Parsed balance options as a `GetBalanceOptions` struct. + * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + get_node_status(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_node_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_status(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * Retrieves peers asynchronously. + * + * # Arguments + * + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. + * + * # Returns + * + * A `Result` containing `GetPeersResult` or a `JsError` if an error occurs. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + get_peers(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_peers(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_peers(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * Retrieves validator changes using the provided options. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * + * # Returns + * + * A `Result` containing either a `GetValidatorChangesResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + get_validator_changes(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_get_validator_changes(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + info_get_validator_change(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_info_get_validator_change(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * Lists available RPCs using the provided options. + * + * # Arguments + * + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * + * # Returns + * + * A `Result` containing either a `ListRpcsResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the listing process. + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + list_rpcs(verbosity, rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_list_rpcs(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); + return ret; + } + /** + * JS function for `sign_deploy`. + * + * # Arguments + * + * * `deploy` - The deploy to sign. + * * `secret_key` - The secret key for signing. + * + * # Returns + * + * The signed `Deploy`. + * @param {Deploy} deploy + * @param {string} secret_key + * @returns {Deploy} + */ + sign_deploy(deploy, secret_key) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_sign_deploy(this.__wbg_ptr, ptr0, ptr1, len1); + return Deploy.__wrap(ret); + } + /** + * Deserialize query_contract_dict_options from a JavaScript object. * @param {any} options - * @returns {getBalanceOptions} + * @returns {queryContractDictOptions} */ - get_balance_options(options) { - const ret = wasm.sdk_get_balance_options(this.__wbg_ptr, options); + query_contract_dict_options(options) { + const ret = wasm.sdk_query_contract_dict_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getBalanceOptions.__wrap(ret[0]); + return queryContractDictOptions.__wrap(ret[0]); } /** - * Retrieves balance information using the provided options. + * JavaScript function for query_contract_dict with deserialized options. + * @param {queryContractDictOptions | undefined} [options] + * @returns {Promise} + */ + query_contract_dict(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, queryContractDictOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_query_contract_dict(this.__wbg_ptr, ptr0); + return ret; + } + /** + * JavaScript function for deploying with deserialized parameters. * * # Arguments * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * * `deploy_params` - Deploy parameters. + * * `session_params` - Session parameters. + * * `payment_params` - Payment parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. * * # Returns * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. + * A result containing PutDeployResult or a JsError. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + deploy(deploy_params, session_params, payment_params, verbosity, rpc_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); + return ret; + } + /** + * @param {any} options + * @returns {getAccountOptions} + */ + get_account_options(options) { + const ret = wasm.sdk_get_account_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return getAccountOptions.__wrap(ret[0]); + } + /** + * Retrieves account information using the provided options. + * + * This function is an asynchronous JavaScript binding for the Rust `get_account` method. + * + * # Arguments + * + * * `options` - An optional `GetAccountOptions` struct containing retrieval options, such as: + * - `account_identifier`: Identifier for the account. + * - `account_identifier_as_string`: String representation of the account identifier. + * - `maybe_block_id_as_string`: Optional string representation of the block ID. + * - `maybe_block_identifier`: Optional `BlockIdentifierInput` for specifying the block. + * - `verbosity`: Verbosity level for the output. + * - `rpc_address`: Address of the node to query. + * + * # Returns + * + * A `Result` containing either a `GetAccountResult` on success or a `JsError` on failure. * * # Errors * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} + * Returns a `JsError` if there is an error during the retrieval process, such as issues with the provided options or network errors. + * ``` + * @param {getAccountOptions | undefined} [options] + * @returns {Promise} */ - get_balance(options) { + get_account(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBalanceOptions); + _assertClass(options, getAccountOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_balance(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_account(this.__wbg_ptr, ptr0); return ret; } /** - * JavaScript Alias for `get_balance`. + * @param {getAccountOptions | undefined} [options] + * @returns {Promise} + */ + state_get_account_info(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getAccountOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_state_get_account_info(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Parses auction info options from a JsValue. * * # Arguments * - * * `options` - An optional `GetBalanceOptions` struct containing retrieval options. + * * `options` - A JsValue containing auction info options to be parsed. * * # Returns * - * A `Result` containing either a `GetBalanceResult` or a `JsError` in case of an error. - * @param {getBalanceOptions | undefined} [options] - * @returns {Promise} + * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, + * or a `JsError` if deserialization fails. + * @param {any} options + * @returns {getAuctionInfoOptions} + */ + get_auction_info_options(options) { + const ret = wasm.sdk_get_auction_info_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); + } + return getAuctionInfoOptions.__wrap(ret[0]); + } + /** + * Retrieves auction information using the provided options. + * + * # Arguments + * + * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} + */ + get_auction_info(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getAuctionInfoOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_get_auction_info(this.__wbg_ptr, ptr0); + return ret; + } + /** + * @param {getAuctionInfoOptions | undefined} [options] + * @returns {Promise} */ - state_get_balance(options) { + state_get_auction_info_js_alias(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getBalanceOptions); + _assertClass(options, getAuctionInfoOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_state_get_balance(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_state_get_auction_info_js_alias(this.__wbg_ptr, ptr0); return ret; } /** @@ -6866,107 +6914,275 @@ export class SDK { return ret; } /** - * JS function for `make_deploy`. + * JS function for `make_transaction`. * * # Arguments * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_params` - The payment parameters. + * * `builder_params` - Transaction Builder parameters. + * * `transaction_params` - The transaction parameters. * * # Returns * - * A `Result` containing the created `Deploy` or a `JsError` in case of an error. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @returns {Deploy} + * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * @param {TransactionBuilderParams} builder_params + * @param {TransactionStrParams} transaction_params + * @returns {Transaction} */ - make_deploy(deploy_params, session_params, payment_params) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr2 = payment_params.__destroy_into_raw(); - const ret = wasm.sdk_make_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2); + make_transaction(builder_params, transaction_params) { + _assertClass(builder_params, TransactionBuilderParams); + var ptr0 = builder_params.__destroy_into_raw(); + _assertClass(transaction_params, TransactionStrParams); + var ptr1 = transaction_params.__destroy_into_raw(); + const ret = wasm.sdk_make_transaction(this.__wbg_ptr, ptr0, ptr1); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return Deploy.__wrap(ret[0]); + return Transaction.__wrap(ret[0]); } /** - * JS function for `make_transaction`. + * JavaScript function for transactioning with deserialized parameters. * * # Arguments * - * * `builder_params` - Transaction Builder parameters. - * * `transaction_params` - The transaction parameters. + * * `transaction_params` - Transaction parameters. + * * `builder_params` - Session parameters. + * * `verbosity` - An optional verbosity level. + * * `rpc_address` - An optional rpc address. * * # Returns * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * A result containing PutTransactionResult or a JsError. * @param {TransactionBuilderParams} builder_params * @param {TransactionStrParams} transaction_params - * @returns {Transaction} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - make_transaction(builder_params, transaction_params) { + transaction(builder_params, transaction_params, verbosity, rpc_address) { _assertClass(builder_params, TransactionBuilderParams); var ptr0 = builder_params.__destroy_into_raw(); _assertClass(transaction_params, TransactionStrParams); var ptr1 = transaction_params.__destroy_into_raw(); - const ret = wasm.sdk_make_transaction(this.__wbg_ptr, ptr0, ptr1); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return Transaction.__wrap(ret[0]); + var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_transaction(this.__wbg_ptr, ptr0, ptr1, isLikeNone(verbosity) ? 3 : verbosity, ptr2, len2); + return ret; } /** - * JS function for speculative transfer transaction. + * Puts a deploy using the provided options. + * + * # Arguments + * + * * `deploy` - The `Deploy` object to be sent. + * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. + * * `rpc_address` - An optional string specifying the rpc address to use for the request. + * + * # Returns + * + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the deploy process. + * @param {Deploy} deploy + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + put_deploy(deploy, verbosity, rpc_address) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + return ret; + } + /** + * JavaScript Alias for `put_deploy`. + * @param {Deploy} deploy + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + account_put_deploy(deploy, verbosity, rpc_address) { + _assertClass(deploy, Deploy); + var ptr0 = deploy.__destroy_into_raw(); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_account_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); + return ret; + } + /** + * JS function for transaction transferring funds. * * # Arguments * * * `maybe_source` - Optional transfer source uref. * * `target_account` - The target account. * * `amount` - The amount to transfer. + * * `transaction_params` - The transaction parameters. * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `transaction_params` - The transactionment parameters. * * `verbosity` - The verbosity level for logging (optional). * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {URef | undefined} maybe_source + * @param {string} target_account + * @param {string} amount + * @param {TransactionStrParams} transaction_params + * @param {string | undefined} [maybe_id] + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { + let ptr0 = 0; + if (!isLikeNone(maybe_source)) { + _assertClass(maybe_source, URef); + ptr0 = maybe_source.__destroy_into_raw(); + } + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + _assertClass(transaction_params, TransactionStrParams); + var ptr3 = transaction_params.__destroy_into_raw(); + var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len4 = WASM_VECTOR_LEN; + var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + return ret; + } + /** + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * Legacy alias + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} + */ + watchDeploy(events_url, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_watchDeploy(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + return Watcher.__wrap(ret); + } + /** + * Creates a new Watcher instance to watch deploys (JavaScript-friendly). + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A `Watcher` instance. + * @param {string} events_url + * @param {number | undefined} [timeout_duration] + * @returns {Watcher} + */ + watchTransaction(events_url, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_watchTransaction(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + return Watcher.__wrap(ret); + } + /** + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * Legacy alias + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `deploy_hash` - The deploy hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} deploy_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} + */ + waitDeploy(events_url, deploy_hash, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(deploy_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_waitDeploy(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + return ret; + } + /** + * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). + * + * # Arguments + * + * * `events_url` - The URL to monitor for transaction events. + * * `target_hash` - The transaction hash to wait for. + * * `timeout_duration` - An optional timeout duration in seconds. + * + * # Returns + * + * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. + * @param {string} events_url + * @param {string} target_hash + * @param {number | undefined} [timeout_duration] + * @returns {Promise>} + */ + waitTransaction(events_url, target_hash, timeout_duration) { + const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_waitTransaction(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); + return ret; + } + /** + * Calls a smart contract entry point with the specified parameters and returns the result. + * + * # Arguments + * + * * `transaction_params` - Transaction parameters. + * * `builder_params` - Transaction Builder parameters. + * * `rpc_address` - An optional rpc address to send the request to. + * + * # Returns + * + * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the call. + * @param {TransactionBuilderParams} builder_params * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - speculative_transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { - let ptr0 = 0; - if (!isLikeNone(maybe_source)) { - _assertClass(maybe_source, URef); - ptr0 = maybe_source.__destroy_into_raw(); - } - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; + call_entrypoint(builder_params, transaction_params, rpc_address) { + _assertClass(builder_params, TransactionBuilderParams); + var ptr0 = builder_params.__destroy_into_raw(); _assertClass(transaction_params, TransactionStrParams); - var ptr3 = transaction_params.__destroy_into_raw(); - var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len4 = WASM_VECTOR_LEN; - var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_speculative_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + var ptr1 = transaction_params.__destroy_into_raw(); + var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + const ret = wasm.sdk_call_entrypoint(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); return ret; } /** - * Installs a smart contract with the specified parameters and returns the result. + * Calls a smart contract entry point with the specified parameters and returns the result. * * # Arguments * @@ -6981,14 +7197,14 @@ export class SDK { * * # Errors * - * Returns a `JsError` if there is an error during the installation. + * Returns a `JsError` if there is an error during the call. * @param {DeployStrParams} deploy_params * @param {SessionStrParams} session_params * @param {string} payment_amount * @param {string | undefined} [rpc_address] * @returns {Promise} */ - install_deploy(deploy_params, session_params, payment_amount, rpc_address) { + call_entrypoint_deploy(deploy_params, session_params, payment_amount, rpc_address) { _assertClass(deploy_params, DeployStrParams); var ptr0 = deploy_params.__destroy_into_raw(); _assertClass(session_params, SessionStrParams); @@ -6997,119 +7213,199 @@ export class SDK { const len2 = WASM_VECTOR_LEN; var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_install_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + const ret = wasm.sdk_call_entrypoint_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); return ret; } /** - * Parses deploy options from a JsValue. + * This function allows executing a deploy speculatively. * * # Arguments * - * * `options` - A JsValue containing deploy options to be parsed. + * * `deploy_params` - Deployment parameters for the deploy. + * * `session_params` - Session parameters for the deploy. + * * `payment_params` - Payment parameters for the deploy. + * * `verbosity` - Optional verbosity level. + * * `rpc_address` - Optional rpc address. * * # Returns * - * Parsed deploy options as a `GetDeployOptions` struct. + * A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + speculative_deploy(deploy_params, session_params, payment_params, verbosity, rpc_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); + return ret; + } + /** + * JS function for transferring funds. + * + * # Arguments + * + * * `amount` - The amount to transfer. + * * `target_account` - The target account. + * * `transfer_id` - An optional transfer ID (defaults to a random number). + * * `deploy_params` - The deployment parameters. + * * `payment_params` - The payment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). + * + * # Returns + * + * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, rpc_address) { + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + return ret; + } + /** + * Parses block transfers options from a JsValue. + * + * # Arguments + * + * * `options` - A JsValue containing block transfers options to be parsed. + * + * # Returns + * + * Parsed block transfers options as a `GetBlockTransfersOptions` struct. * @param {any} options - * @returns {getDeployOptions} + * @returns {getBlockTransfersOptions} */ - get_deploy_options(options) { - const ret = wasm.sdk_get_deploy_options(this.__wbg_ptr, options); + get_block_transfers_options(options) { + const ret = wasm.sdk_get_block_transfers_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getDeployOptions.__wrap(ret[0]); + return getBlockTransfersOptions.__wrap(ret[0]); } /** - * Retrieves deploy information using the provided options. + * Retrieves block transfers information using the provided options. * * # Arguments * - * * `options` - An optional `GetDeployOptions` struct containing retrieval options. + * * `options` - An optional `GetBlockTransfersOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetDeployResult` or an error. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `GetBlockTransfersResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} */ - get_deploy(options) { + get_block_transfers(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getDeployOptions); + _assertClass(options, getBlockTransfersOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_deploy(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_block_transfers(this.__wbg_ptr, ptr0); return ret; } /** - * Retrieves deploy information using the provided options, alias for `get_deploy`. - * @param {getDeployOptions | undefined} [options] - * @returns {Promise} + * @param {getBlockTransfersOptions | undefined} [options] + * @returns {Promise} */ - info_get_deploy(options) { + chain_get_block_transfers(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getDeployOptions); + _assertClass(options, getBlockTransfersOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_info_get_deploy(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_chain_get_block_transfers(this.__wbg_ptr, ptr0); return ret; } /** - * Parses transaction options from a JsValue. + * Parses era summary options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing transaction options to be parsed. + * * `options` - A JsValue containing era summary options to be parsed. * * # Returns * - * Parsed transaction options as a `GetTransactionOptions` struct. + * Parsed era summary options as a `GetEraSummaryOptions` struct. * @param {any} options - * @returns {getTransactionOptions} + * @returns {getEraSummaryOptions} */ - get_transaction_options(options) { - const ret = wasm.sdk_get_transaction_options(this.__wbg_ptr, options); + get_era_summary_options(options) { + const ret = wasm.sdk_get_era_summary_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getTransactionOptions.__wrap(ret[0]); + return getEraSummaryOptions.__wrap(ret[0]); } /** - * Retrieves transaction information using the provided options. + * Retrieves era summary information using the provided options. * * # Arguments * - * * `options` - An optional `GetTransactionOptions` struct containing retrieval options. + * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetTransactionResult` or an error. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} */ - get_transaction(options) { + get_era_summary(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getTransactionOptions); + _assertClass(options, getEraSummaryOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_transaction(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_get_era_summary(this.__wbg_ptr, ptr0); return ret; } /** - * Retrieves transaction information using the provided options, alias for `get_transaction`. - * @param {getTransactionOptions | undefined} [options] - * @returns {Promise} + * @param {getEraSummaryOptions | undefined} [options] + * @returns {Promise} */ - info_get_transaction(options) { + chain_get_era_summary(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getTransactionOptions); + _assertClass(options, getEraSummaryOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_info_get_transaction(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_chain_get_era_summary(this.__wbg_ptr, ptr0); return ret; } /** @@ -7142,52 +7438,18 @@ export class SDK { return ret; } /** - * JavaScript Alias for `put_transaction`. - * @param {Transaction} transaction - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - account_put_transaction(transaction, verbosity, rpc_address) { - _assertClass(transaction, Transaction); - var ptr0 = transaction.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_account_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); - return ret; - } - /** - * Get options for speculative execution from a JavaScript value. - * @param {any} options - * @returns {getSpeculativeExecTxnOptions} - */ - get_speculative_exec_options(options) { - const ret = wasm.sdk_get_speculative_exec_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return getSpeculativeExecTxnOptions.__wrap(ret[0]); - } - /** - * JS function for speculative execution. - * - * # Arguments - * - * * `options` - The options for speculative execution. - * - * # Returns - * - * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. - * @param {getSpeculativeExecTxnOptions | undefined} [options] - * @returns {Promise} - */ - speculative_exec(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getSpeculativeExecTxnOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_speculative_exec(this.__wbg_ptr, ptr0); + * JavaScript Alias for `put_transaction`. + * @param {Transaction} transaction + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + account_put_transaction(transaction, verbosity, rpc_address) { + _assertClass(transaction, Transaction); + var ptr0 = transaction.__destroy_into_raw(); + var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_account_put_transaction(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); return ret; } /** @@ -7220,33 +7482,37 @@ export class SDK { return ret; } /** - * JS function for `make_transfer_transaction`. + * JS function for speculative transfer transaction. * * # Arguments * * * `maybe_source` - Optional transfer source uref. - * * `amount` - The transfer amount. - * * `target` - The target account. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - Optional transfer identifier. + * * `target_account` - The target account. + * * `amount` - The amount to transfer. + * * `maybe_id` - An optional transfer ID (defaults to a random number). + * * `transaction_params` - The transactionment parameters. + * * `verbosity` - The verbosity level for logging (optional). + * * `rpc_address` - The address of the node to connect to (optional). * * # Returns * - * A `Result` containing the created `Transaction` or a `JsError` in case of an error. + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. * @param {URef | undefined} maybe_source - * @param {string} target + * @param {string} target_account * @param {string} amount * @param {TransactionStrParams} transaction_params * @param {string | undefined} [maybe_id] - * @returns {Transaction} + * @param {Verbosity | undefined} [verbosity] + * @param {string | undefined} [rpc_address] + * @returns {Promise} */ - make_transfer_transaction(maybe_source, target, amount, transaction_params, maybe_id) { + speculative_transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { let ptr0 = 0; if (!isLikeNone(maybe_source)) { _assertClass(maybe_source, URef); ptr0 = maybe_source.__destroy_into_raw(); } - const ptr1 = passStringToWasm0(target, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len1 = WASM_VECTOR_LEN; const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len2 = WASM_VECTOR_LEN; @@ -7254,11 +7520,10 @@ export class SDK { var ptr3 = transaction_params.__destroy_into_raw(); var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len4 = WASM_VECTOR_LEN; - const ret = wasm.sdk_make_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return Transaction.__wrap(ret[0]); + var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len5 = WASM_VECTOR_LEN; + const ret = wasm.sdk_speculative_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); + return ret; } /** * Installs a smart contract with the specified parameters and returns the result. @@ -7292,7 +7557,7 @@ export class SDK { return ret; } /** - * JS function for transferring funds. + * JS function for speculative transfer. * * # Arguments * @@ -7306,7 +7571,7 @@ export class SDK { * * # Returns * - * A `Result` containing the result of the transfer or a `JsError` in case of an error. + * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. * @param {string} amount * @param {string} target_account * @param {string | undefined} transfer_id @@ -7314,9 +7579,9 @@ export class SDK { * @param {PaymentStrParams} payment_params * @param {Verbosity | undefined} [verbosity] * @param {string | undefined} [rpc_address] - * @returns {Promise} + * @returns {Promise} */ - transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, rpc_address) { + speculative_transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, rpc_address) { const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); const len0 = WASM_VECTOR_LEN; const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); @@ -7329,240 +7594,79 @@ export class SDK { var ptr4 = payment_params.__destroy_into_raw(); var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); - return ret; - } - /** - * Retrieves node status information using the provided options. - * - * # Arguments - * - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `GetNodeStatusResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - get_node_status(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_get_node_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - info_get_status(verbosity, rpc_address) { - var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_info_get_status(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity, ptr0, len0); - return ret; - } - /** - * Puts a deploy using the provided options. - * - * # Arguments - * - * * `deploy` - The `Deploy` object to be sent. - * * `verbosity` - An optional `Verbosity` level for controlling the output verbosity. - * * `rpc_address` - An optional string specifying the rpc address to use for the request. - * - * # Returns - * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the deploy process. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - put_deploy(deploy, verbosity, rpc_address) { - _assertClass(deploy, Deploy); - var ptr0 = deploy.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); - return ret; - } - /** - * JavaScript Alias for `put_deploy`. - * @param {Deploy} deploy - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - account_put_deploy(deploy, verbosity, rpc_address) { - _assertClass(deploy, Deploy); - var ptr0 = deploy.__destroy_into_raw(); - var ptr1 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_account_put_deploy(this.__wbg_ptr, ptr0, isLikeNone(verbosity) ? 3 : verbosity, ptr1, len1); - return ret; - } - /** - * Parses query balance options from a JsValue. - * - * # Arguments - * - * * `options` - A JsValue containing query balance options to be parsed. - * - * # Returns - * - * Parsed query balance options as a `QueryBalanceDetailsOptions` struct. - * @param {any} options - * @returns {queryBalanceDetailsOptions} - */ - query_balance_details_options(options) { - const ret = wasm.sdk_query_balance_details_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); - } - return queryBalanceDetailsOptions.__wrap(ret[0]); - } - /** - * Retrieves balance information using the provided options. - * - * # Arguments - * - * * `options` - An optional `QueryBalanceDetailsOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `QueryBalanceDetailsResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceDetailsOptions | undefined} [options] - * @returns {Promise} - */ - query_balance_details(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, queryBalanceDetailsOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_query_balance_details(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_speculative_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); return ret; } /** - * Parses query global state options from a JsValue. + * Parses block options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing query global state options to be parsed. + * * `options` - A JsValue containing block options to be parsed. * * # Returns * - * Parsed query global state options as a `QueryGlobalStateOptions` struct. + * Parsed block options as a `GetBlockOptions` struct. * @param {any} options - * @returns {queryGlobalStateOptions} + * @returns {getBlockOptions} */ - query_global_state_options(options) { - const ret = wasm.sdk_query_global_state_options(this.__wbg_ptr, options); + get_block_options(options) { + const ret = wasm.sdk_get_block_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return queryGlobalStateOptions.__wrap(ret[0]); - } - /** - * Retrieves global state information using the provided options. - * - * # Arguments - * - * * `options` - An optional `QueryGlobalStateOptions` struct containing retrieval options. - * - * # Returns - * - * A `Result` containing either a `QueryGlobalStateResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryGlobalStateOptions | undefined} [options] - * @returns {Promise} - */ - query_global_state(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, queryGlobalStateOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_query_global_state(this.__wbg_ptr, ptr0); - return ret; + return getBlockOptions.__wrap(ret[0]); } /** - * Calls a smart contract entry point with the specified parameters and returns the result. + * Retrieves block information using the provided options. * * # Arguments * - * * `deploy_params` - The deploy parameters. - * * `session_params` - The session parameters. - * * `payment_amount` - The payment amount as a string. - * * `rpc_address` - An optional rpc address to send the request to. + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the call. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {string} payment_amount - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - call_entrypoint_deploy(deploy_params, session_params, payment_amount, rpc_address) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_call_entrypoint_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); - return ret; - } - /** - * Deserialize query_contract_key_options from a JavaScript object. - * @param {any} options - * @returns {queryContractKeyOptions} + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - query_contract_key_options(options) { - const ret = wasm.sdk_query_contract_key_options(this.__wbg_ptr, options); - if (ret[2]) { - throw takeFromExternrefTable0(ret[1]); + get_block(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getBlockOptions); + ptr0 = options.__destroy_into_raw(); } - return queryContractKeyOptions.__wrap(ret[0]); + const ret = wasm.sdk_get_block(this.__wbg_ptr, ptr0); + return ret; } /** - * JavaScript function for query_contract_key with deserialized options. - * @param {queryContractKeyOptions | undefined} [options] - * @returns {Promise} + * JavaScript Alias for the `get_block`. + * + * # Arguments + * + * * `options` - An optional `GetBlockOptions` struct containing retrieval options. + * + * # Returns + * + * A `Result` containing either a `GetBlockResult` or a `JsError` in case of an error. + * + * # Errors + * + * Returns a `JsError` if there is an error during the retrieval process. + * @param {getBlockOptions | undefined} [options] + * @returns {Promise} */ - query_contract_key(options) { + chain_get_block(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, queryContractKeyOptions); + _assertClass(options, getBlockOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_query_contract_key(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_chain_get_block(this.__wbg_ptr, ptr0); return ret; } /** @@ -7638,413 +7742,303 @@ export class SDK { return ret; } /** - * JS function for transaction transferring funds. - * - * # Arguments - * - * * `maybe_source` - Optional transfer source uref. - * * `target_account` - The target account. - * * `amount` - The amount to transfer. - * * `transaction_params` - The transaction parameters. - * * `maybe_id` - An optional transfer ID (defaults to a random number). - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the transfer or a `JsError` in case of an error. - * @param {URef | undefined} maybe_source - * @param {string} target_account - * @param {string} amount - * @param {TransactionStrParams} transaction_params - * @param {string | undefined} [maybe_id] - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - transfer_transaction(maybe_source, target_account, amount, transaction_params, maybe_id, verbosity, rpc_address) { - let ptr0 = 0; - if (!isLikeNone(maybe_source)) { - _assertClass(maybe_source, URef); - ptr0 = maybe_source.__destroy_into_raw(); - } - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ptr2 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len2 = WASM_VECTOR_LEN; - _assertClass(transaction_params, TransactionStrParams); - var ptr3 = transaction_params.__destroy_into_raw(); - var ptr4 = isLikeNone(maybe_id) ? 0 : passStringToWasm0(maybe_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len4 = WASM_VECTOR_LEN; - var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_transfer_transaction(this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, ptr3, ptr4, len4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); - return ret; - } - /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). - * Legacy alias - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} - */ - watchDeploy(events_url, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_watchDeploy(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return Watcher.__wrap(ret); - } - /** - * Creates a new Watcher instance to watch deploys (JavaScript-friendly). - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A `Watcher` instance. - * @param {string} events_url - * @param {number | undefined} [timeout_duration] - * @returns {Watcher} - */ - watchTransaction(events_url, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ret = wasm.sdk_watchTransaction(this.__wbg_ptr, ptr0, len0, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return Watcher.__wrap(ret); - } - /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). - * Legacy alias - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `deploy_hash` - The deploy hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} deploy_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} - */ - waitDeploy(events_url, deploy_hash, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(deploy_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_waitDeploy(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return ret; - } - /** - * Waits for a deploy event to be processed asynchronously (JavaScript-friendly). - * - * # Arguments - * - * * `events_url` - The URL to monitor for transaction events. - * * `target_hash` - The transaction hash to wait for. - * * `timeout_duration` - An optional timeout duration in seconds. - * - * # Returns - * - * A JavaScript `Promise` resolving to either the processed `EventParseResult` or an error message. - * @param {string} events_url - * @param {string} target_hash - * @param {number | undefined} [timeout_duration] - * @returns {Promise>} - */ - waitTransaction(events_url, target_hash, timeout_duration) { - const ptr0 = passStringToWasm0(events_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(target_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - const ret = wasm.sdk_waitTransaction(this.__wbg_ptr, ptr0, len0, ptr1, len1, !isLikeNone(timeout_duration), isLikeNone(timeout_duration) ? 0 : timeout_duration); - return ret; - } - /** - * This function allows executing a deploy speculatively. - * - * # Arguments - * - * * `deploy_params` - Deployment parameters for the deploy. - * * `session_params` - Session parameters for the deploy. - * * `payment_params` - Payment parameters for the deploy. - * * `verbosity` - Optional verbosity level. - * * `rpc_address` - Optional rpc address. - * - * # Returns - * - * A `Result` containing either a `SpeculativeExecResult` or a `JsError` in case of an error. - * @param {DeployStrParams} deploy_params - * @param {SessionStrParams} session_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - speculative_deploy(deploy_params, session_params, payment_params, verbosity, rpc_address) { - _assertClass(deploy_params, DeployStrParams); - var ptr0 = deploy_params.__destroy_into_raw(); - _assertClass(session_params, SessionStrParams); - var ptr1 = session_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr2 = payment_params.__destroy_into_raw(); - var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len3 = WASM_VECTOR_LEN; - const ret = wasm.sdk_speculative_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, isLikeNone(verbosity) ? 3 : verbosity, ptr3, len3); - return ret; - } - /** - * JS function for speculative transfer. - * - * # Arguments - * - * * `amount` - The amount to transfer. - * * `target_account` - The target account. - * * `transfer_id` - An optional transfer ID (defaults to a random number). - * * `deploy_params` - The deployment parameters. - * * `payment_params` - The payment parameters. - * * `verbosity` - The verbosity level for logging (optional). - * * `rpc_address` - The address of the node to connect to (optional). - * - * # Returns - * - * A `Result` containing the result of the speculative transfer or a `JsError` in case of an error. - * @param {string} amount - * @param {string} target_account - * @param {string | undefined} transfer_id - * @param {DeployStrParams} deploy_params - * @param {PaymentStrParams} payment_params - * @param {Verbosity | undefined} [verbosity] - * @param {string | undefined} [rpc_address] - * @returns {Promise} - */ - speculative_transfer(amount, target_account, transfer_id, deploy_params, payment_params, verbosity, rpc_address) { - const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len0 = WASM_VECTOR_LEN; - const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - _assertClass(deploy_params, DeployStrParams); - var ptr3 = deploy_params.__destroy_into_raw(); - _assertClass(payment_params, PaymentStrParams); - var ptr4 = payment_params.__destroy_into_raw(); - var ptr5 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len5 = WASM_VECTOR_LEN; - const ret = wasm.sdk_speculative_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(verbosity) ? 3 : verbosity, ptr5, len5); - return ret; - } - /** - * Parses auction info options from a JsValue. + * Parses query balance options from a JsValue. * * # Arguments * - * * `options` - A JsValue containing auction info options to be parsed. + * * `options` - A JsValue containing query balance options to be parsed. * * # Returns * - * Result containing parsed auction info options as a `GetAuctionInfoOptions` struct, - * or a `JsError` if deserialization fails. + * Parsed query balance options as a `QueryBalanceOptions` struct. * @param {any} options - * @returns {getAuctionInfoOptions} + * @returns {queryBalanceOptions} */ - get_auction_info_options(options) { - const ret = wasm.sdk_get_auction_info_options(this.__wbg_ptr, options); + query_balance_options(options) { + const ret = wasm.sdk_query_balance_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getAuctionInfoOptions.__wrap(ret[0]); + return queryBalanceOptions.__wrap(ret[0]); } /** - * Retrieves auction information using the provided options. + * Retrieves balance information using the provided options. * * # Arguments * - * * `options` - An optional `GetAuctionInfoOptions` struct containing retrieval options. + * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. * * # Returns * - * A `Result` containing either a `GetAuctionInfoResult` or a `JsError` in case of an error. + * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. * * # Errors * * Returns a `JsError` if there is an error during the retrieval process. - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} + * @param {queryBalanceOptions | undefined} [options] + * @returns {Promise} */ - get_auction_info(options) { + query_balance(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getAuctionInfoOptions); + _assertClass(options, queryBalanceOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_auction_info(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_query_balance(this.__wbg_ptr, ptr0); return ret; } /** - * @param {getAuctionInfoOptions | undefined} [options] - * @returns {Promise} + * Get options for speculative execution from a JavaScript value. + * @param {any} options + * @returns {getSpeculativeExecTxnOptions} */ - state_get_auction_info_js_alias(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getAuctionInfoOptions); - ptr0 = options.__destroy_into_raw(); + get_speculative_exec_options(options) { + const ret = wasm.sdk_get_speculative_exec_options(this.__wbg_ptr, options); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); } - const ret = wasm.sdk_state_get_auction_info_js_alias(this.__wbg_ptr, ptr0); - return ret; + return getSpeculativeExecTxnOptions.__wrap(ret[0]); } /** - * Parses era summary options from a JsValue. + * JS function for speculative execution. * * # Arguments * - * * `options` - A JsValue containing era summary options to be parsed. + * * `options` - The options for speculative execution. * * # Returns * - * Parsed era summary options as a `GetEraSummaryOptions` struct. + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecTxnOptions | undefined} [options] + * @returns {Promise} + */ + speculative_exec(options) { + let ptr0 = 0; + if (!isLikeNone(options)) { + _assertClass(options, getSpeculativeExecTxnOptions); + ptr0 = options.__destroy_into_raw(); + } + const ret = wasm.sdk_speculative_exec(this.__wbg_ptr, ptr0); + return ret; + } + /** + * Get options for speculative execution from a JavaScript value. * @param {any} options - * @returns {getEraSummaryOptions} + * @returns {getSpeculativeExecDeployOptions} */ - get_era_summary_options(options) { - const ret = wasm.sdk_get_era_summary_options(this.__wbg_ptr, options); + get_speculative_exec_deploy_options(options) { + const ret = wasm.sdk_get_speculative_exec_deploy_options(this.__wbg_ptr, options); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return getEraSummaryOptions.__wrap(ret[0]); + return getSpeculativeExecDeployOptions.__wrap(ret[0]); } /** - * Retrieves era summary information using the provided options. + * JS function for speculative execution. * * # Arguments * - * * `options` - An optional `GetEraSummaryOptions` struct containing retrieval options. + * * `options` - The options for speculative execution. * * # Returns * - * A `Result` containing either a `GetEraSummaryResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * A `Result` containing the result of the speculative execution or a `JsError` in case of an error. + * @param {getSpeculativeExecDeployOptions | undefined} [options] + * @returns {Promise} */ - get_era_summary(options) { + speculative_exec_deploy(options) { let ptr0 = 0; if (!isLikeNone(options)) { - _assertClass(options, getEraSummaryOptions); + _assertClass(options, getSpeculativeExecDeployOptions); ptr0 = options.__destroy_into_raw(); } - const ret = wasm.sdk_get_era_summary(this.__wbg_ptr, ptr0); + const ret = wasm.sdk_speculative_exec_deploy(this.__wbg_ptr, ptr0); return ret; } /** - * @param {getEraSummaryOptions | undefined} [options] - * @returns {Promise} + * JS function for `make_deploy`. + * + * # Arguments + * + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_params` - The payment parameters. + * + * # Returns + * + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} */ - chain_get_era_summary(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, getEraSummaryOptions); - ptr0 = options.__destroy_into_raw(); + make_deploy(deploy_params, session_params, payment_params) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr2 = payment_params.__destroy_into_raw(); + const ret = wasm.sdk_make_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2); + if (ret[2]) { + throw takeFromExternrefTable0(ret[1]); } - const ret = wasm.sdk_chain_get_era_summary(this.__wbg_ptr, ptr0); - return ret; + return Deploy.__wrap(ret[0]); } /** - * Parses query balance options from a JsValue. + * JS function for `make_transfer`. * * # Arguments * - * * `options` - A JsValue containing query balance options to be parsed. + * * `amount` - The transfer amount. + * * `target_account` - The target account. + * * `transfer_id` - Optional transfer identifier. + * * `deploy_params` - The deploy parameters. + * * `payment_params` - The payment parameters. * * # Returns * - * Parsed query balance options as a `QueryBalanceOptions` struct. - * @param {any} options - * @returns {queryBalanceOptions} + * A `Result` containing the created `Deploy` or a `JsError` in case of an error. + * @param {string} amount + * @param {string} target_account + * @param {string | undefined} transfer_id + * @param {DeployStrParams} deploy_params + * @param {PaymentStrParams} payment_params + * @returns {Deploy} */ - query_balance_options(options) { - const ret = wasm.sdk_query_balance_options(this.__wbg_ptr, options); + make_transfer(amount, target_account, transfer_id, deploy_params, payment_params) { + const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + const ptr1 = passStringToWasm0(target_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + var ptr2 = isLikeNone(transfer_id) ? 0 : passStringToWasm0(transfer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len2 = WASM_VECTOR_LEN; + _assertClass(deploy_params, DeployStrParams); + var ptr3 = deploy_params.__destroy_into_raw(); + _assertClass(payment_params, PaymentStrParams); + var ptr4 = payment_params.__destroy_into_raw(); + const ret = wasm.sdk_make_transfer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4); if (ret[2]) { throw takeFromExternrefTable0(ret[1]); } - return queryBalanceOptions.__wrap(ret[0]); + return Deploy.__wrap(ret[0]); } /** - * Retrieves balance information using the provided options. + * JS function for `sign_transaction`. * * # Arguments * - * * `options` - An optional `QueryBalanceOptions` struct containing retrieval options. + * * `transaction` - The transaction to sign. + * * `secret_key` - The secret key for signing. * * # Returns * - * A `Result` containing either a `QueryBalanceResult` or a `JsError` in case of an error. - * - * # Errors - * - * Returns a `JsError` if there is an error during the retrieval process. - * @param {queryBalanceOptions | undefined} [options] - * @returns {Promise} + * The signed `Transaction`. + * @param {Transaction} transaction + * @param {string} secret_key + * @returns {Transaction} */ - query_balance(options) { - let ptr0 = 0; - if (!isLikeNone(options)) { - _assertClass(options, queryBalanceOptions); - ptr0 = options.__destroy_into_raw(); - } - const ret = wasm.sdk_query_balance(this.__wbg_ptr, ptr0); - return ret; + sign_transaction(transaction, secret_key) { + _assertClass(transaction, Transaction); + var ptr0 = transaction.__destroy_into_raw(); + const ptr1 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len1 = WASM_VECTOR_LEN; + const ret = wasm.sdk_sign_transaction(this.__wbg_ptr, ptr0, ptr1, len1); + return Transaction.__wrap(ret); } /** - * Calls a smart contract entry point with the specified parameters and returns the result. + * Installs a smart contract with the specified parameters and returns the result. * * # Arguments * - * * `transaction_params` - Transaction parameters. - * * `builder_params` - Transaction Builder parameters. + * * `deploy_params` - The deploy parameters. + * * `session_params` - The session parameters. + * * `payment_amount` - The payment amount as a string. * * `rpc_address` - An optional rpc address to send the request to. * * # Returns * - * A `Result` containing either a `PutTransactionResult` or a `JsError` in case of an error. + * A `Result` containing either a `PutDeployResult` or a `JsError` in case of an error. * * # Errors * - * Returns a `JsError` if there is an error during the call. - * @param {TransactionBuilderParams} builder_params - * @param {TransactionStrParams} transaction_params + * Returns a `JsError` if there is an error during the installation. + * @param {DeployStrParams} deploy_params + * @param {SessionStrParams} session_params + * @param {string} payment_amount + * @param {string | undefined} [rpc_address] + * @returns {Promise} + */ + install_deploy(deploy_params, session_params, payment_amount, rpc_address) { + _assertClass(deploy_params, DeployStrParams); + var ptr0 = deploy_params.__destroy_into_raw(); + _assertClass(session_params, SessionStrParams); + var ptr1 = session_params.__destroy_into_raw(); + const ptr2 = passStringToWasm0(payment_amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len2 = WASM_VECTOR_LEN; + var ptr3 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len3 = WASM_VECTOR_LEN; + const ret = wasm.sdk_install_deploy(this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3); + return ret; + } + /** + * @param {string | undefined} [rpc_address] + * @param {Verbosity | undefined} [verbosity] + */ + constructor(rpc_address, verbosity) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_new(ptr0, len0, isLikeNone(verbosity) ? 3 : verbosity); + this.__wbg_ptr = ret >>> 0; + SDKFinalization.register(this, this.__wbg_ptr, this); + return this; + } + /** + * @param {string | undefined} [rpc_address] + * @returns {string} + */ + getRPCAddress(rpc_address) { + let deferred2_0; + let deferred2_1; + try { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_getRPCAddress(this.__wbg_ptr, ptr0, len0); + deferred2_0 = ret[0]; + deferred2_1 = ret[1]; + return getStringFromWasm0(ret[0], ret[1]); + } finally { + wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); + } + } + /** * @param {string | undefined} [rpc_address] - * @returns {Promise} */ - call_entrypoint(builder_params, transaction_params, rpc_address) { - _assertClass(builder_params, TransactionBuilderParams); - var ptr0 = builder_params.__destroy_into_raw(); - _assertClass(transaction_params, TransactionStrParams); - var ptr1 = transaction_params.__destroy_into_raw(); - var ptr2 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len2 = WASM_VECTOR_LEN; - const ret = wasm.sdk_call_entrypoint(this.__wbg_ptr, ptr0, ptr1, ptr2, len2); + setRPCAddress(rpc_address) { + var ptr0 = isLikeNone(rpc_address) ? 0 : passStringToWasm0(rpc_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len0 = WASM_VECTOR_LEN; + const ret = wasm.sdk_setRPCAddress(this.__wbg_ptr, ptr0, len0); + if (ret[1]) { + throw takeFromExternrefTable0(ret[0]); + } + } + /** + * @param {Verbosity | undefined} [verbosity] + * @returns {Verbosity} + */ + getVerbosity(verbosity) { + const ret = wasm.sdk_getVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); return ret; } + /** + * @param {Verbosity | undefined} [verbosity] + */ + setVerbosity(verbosity) { + const ret = wasm.sdk_setVerbosity(this.__wbg_ptr, isLikeNone(verbosity) ? 3 : verbosity); + if (ret[1]) { + throw takeFromExternrefTable0(ret[0]); + } + } } const SessionStrParamsFinalization = (typeof FinalizationRegistry === 'undefined') @@ -8454,7 +8448,7 @@ export class SpeculativeExecTxnResult { * @returns {BlockHash} */ get block_hash() { - const ret = wasm.speculativeexectxnresult_block_hash(this.__wbg_ptr); + const ret = wasm.speculativeexecresult_block_hash(this.__wbg_ptr); return BlockHash.__wrap(ret); } /** @@ -10751,7 +10745,7 @@ export class getAuctionInfoOptions { * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getaccountoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -10763,7 +10757,7 @@ export class getAuctionInfoOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getaccountoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -11083,13 +11077,13 @@ export class getBlockTransfersOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -11101,20 +11095,20 @@ export class getBlockTransfersOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } /** * @returns {string | undefined} @@ -11134,7 +11128,7 @@ export class getBlockTransfersOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } } @@ -11566,7 +11560,7 @@ export class getEraInfoOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_geterainfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} @@ -11604,20 +11598,20 @@ export class getEraInfoOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_geterainfooptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_geterainfooptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_geterainfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } @@ -11666,13 +11660,13 @@ export class getEraSummaryOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getauctioninfooptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblocktransfersoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -11684,7 +11678,7 @@ export class getEraSummaryOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getauctioninfooptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getblocktransfersoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -11704,20 +11698,20 @@ export class getEraSummaryOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getauctioninfooptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblocktransfersoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getauctioninfooptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblocktransfersoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getauctioninfooptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getblocktransfersoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } @@ -11876,7 +11870,7 @@ export class getSpeculativeExecTxnOptions { set transaction_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getspeculativeexectxnoptions_transaction_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getspeculativeexecdeployoptions_deploy_as_string(this.__wbg_ptr, ptr0, len0); } /** * The transaction to execute. @@ -11918,14 +11912,14 @@ export class getSpeculativeExecTxnOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getspeculativeexectxnoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getspeculativeexecdeployoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * The verbosity level for logging. * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getspeculativeexectxnoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** @@ -11933,7 +11927,7 @@ export class getSpeculativeExecTxnOptions { * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getspeculativeexectxnoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getspeculativeexecdeployoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } @@ -11982,13 +11976,13 @@ export class getStateRootHashOptions { set maybe_block_id_as_string(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getstateroothashoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblockoptions_maybe_block_id_as_string(this.__wbg_ptr, ptr0, len0); } /** * @returns {BlockIdentifier | undefined} */ get maybe_block_identifier() { - const ret = wasm.__wbg_get_getstateroothashoptions_maybe_block_identifier(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblockoptions_maybe_block_identifier(this.__wbg_ptr); return ret === 0 ? undefined : BlockIdentifier.__wrap(ret); } /** @@ -12000,7 +11994,7 @@ export class getStateRootHashOptions { _assertClass(arg0, BlockIdentifier); ptr0 = arg0.__destroy_into_raw(); } - wasm.__wbg_set_getstateroothashoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); + wasm.__wbg_set_getblockoptions_maybe_block_identifier(this.__wbg_ptr, ptr0); } /** * @returns {string | undefined} @@ -12020,20 +12014,20 @@ export class getStateRootHashOptions { set rpc_address(arg0) { var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - wasm.__wbg_set_getstateroothashoptions_rpc_address(this.__wbg_ptr, ptr0, len0); + wasm.__wbg_set_getblockoptions_rpc_address(this.__wbg_ptr, ptr0, len0); } /** * @returns {Verbosity | undefined} */ get verbosity() { - const ret = wasm.__wbg_get_getstateroothashoptions_verbosity(this.__wbg_ptr); + const ret = wasm.__wbg_get_getblockoptions_verbosity(this.__wbg_ptr); return ret === 3 ? undefined : ret; } /** * @param {Verbosity | undefined} [arg0] */ set verbosity(arg0) { - wasm.__wbg_set_getstateroothashoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); + wasm.__wbg_set_getblockoptions_verbosity(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0); } } @@ -13062,68 +13056,32 @@ function __wbg_get_imports() { const ret = getStringFromWasm0(arg0, arg1); return ret; }; - imports.wbg.__wbg_puttransactionresult_new = function(arg0) { - const ret = PutTransactionResult.__wrap(arg0); - return ret; - }; - imports.wbg.__wbg_geterasummaryresult_new = function(arg0) { - const ret = GetEraSummaryResult.__wrap(arg0); - return ret; - }; - imports.wbg.__wbg_getnodestatusresult_new = function(arg0) { - const ret = GetNodeStatusResult.__wrap(arg0); - return ret; - }; - imports.wbg.__wbg_putdeployresult_new = function(arg0) { - const ret = PutDeployResult.__wrap(arg0); + imports.wbg.__wbg_getblocktransfersresult_new = function(arg0) { + const ret = GetBlockTransfersResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getVersion_821280958b37ff1f = function() { return handleError(function (arg0) { - const ret = arg0.getVersion(); - return ret; - }, arguments) }; imports.wbg.__wbindgen_error_new = function(arg0, arg1) { const ret = new Error(getStringFromWasm0(arg0, arg1)); return ret; }; - imports.wbg.__wbindgen_string_get = function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'string' ? obj : undefined; - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_getaddressableentityresult_new = function(arg0) { - const ret = GetAddressableEntityResult.__wrap(arg0); - return ret; - }; - imports.wbg.__wbg_getdeployresult_new = function(arg0) { - const ret = GetDeployResult.__wrap(arg0); - return ret; - }; imports.wbg.__wbg_speculativeexectxnresult_new = function(arg0) { const ret = SpeculativeExecTxnResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getchainspecresult_new = function(arg0) { - const ret = GetChainspecResult.__wrap(arg0); - return ret; - }; - imports.wbg.__wbg_speculativeexecresult_new = function(arg0) { - const ret = SpeculativeExecResult.__wrap(arg0); + imports.wbg.__wbg_getnodestatusresult_new = function(arg0) { + const ret = GetNodeStatusResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getaccountresult_new = function(arg0) { - const ret = GetAccountResult.__wrap(arg0); + imports.wbg.__wbg_getdeployresult_new = function(arg0) { + const ret = GetDeployResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getvalidatorchangesresult_new = function(arg0) { - const ret = GetValidatorChangesResult.__wrap(arg0); + imports.wbg.__wbg_getbalanceresult_new = function(arg0) { + const ret = GetBalanceResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_listrpcsresult_new = function(arg0) { - const ret = ListRpcsResult.__wrap(arg0); + imports.wbg.__wbg_puttransactionresult_new = function(arg0) { + const ret = PutTransactionResult.__wrap(arg0); return ret; }; imports.wbg.__wbg_getauctioninforesult_new = function(arg0) { @@ -13134,24 +13092,32 @@ function __wbg_get_imports() { const ret = GetEraInfoResult.__wrap(arg0); return ret; }; + imports.wbg.__wbg_geterasummaryresult_new = function(arg0) { + const ret = GetEraSummaryResult.__wrap(arg0); + return ret; + }; imports.wbg.__wbg_getpeersresult_new = function(arg0) { const ret = GetPeersResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_deploy_new = function(arg0) { - const ret = Deploy.__wrap(arg0); + imports.wbg.__wbg_getaddressableentityresult_new = function(arg0) { + const ret = GetAddressableEntityResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getblockresult_new = function(arg0) { - const ret = GetBlockResult.__wrap(arg0); + imports.wbg.__wbg_listrpcsresult_new = function(arg0) { + const ret = ListRpcsResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_gettransactionresult_new = function(arg0) { - const ret = GetTransactionResult.__wrap(arg0); + imports.wbg.__wbg_putdeployresult_new = function(arg0) { + const ret = PutDeployResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_isConnected_f84ffbccb9898623 = function() { return handleError(function (arg0) { - const ret = arg0.isConnected(); + imports.wbg.__wbg_queryglobalstateresult_new = function(arg0) { + const ret = QueryGlobalStateResult.__wrap(arg0); + return ret; + }; + imports.wbg.__wbg_disconnectFromSite_2d2501f4e00e57c8 = function() { return handleError(function (arg0) { + const ret = arg0.disconnectFromSite(); return ret; }, arguments) }; imports.wbg.__wbindgen_boolean_get = function(arg0) { @@ -13159,46 +13125,74 @@ function __wbg_get_imports() { const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; return ret; }; - imports.wbg.__wbg_queryglobalstateresult_new = function(arg0) { - const ret = QueryGlobalStateResult.__wrap(arg0); + imports.wbg.__wbg_speculativeexecresult_new = function(arg0) { + const ret = SpeculativeExecResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_disconnectFromSite_2d2501f4e00e57c8 = function() { return handleError(function (arg0) { - const ret = arg0.disconnectFromSite(); + imports.wbg.__wbg_getchainspecresult_new = function(arg0) { + const ret = GetChainspecResult.__wrap(arg0); return ret; - }, arguments) }; - imports.wbg.__wbg_requestSwitchAccount_0e44115ee2041c5e = function() { return handleError(function (arg0) { - const ret = arg0.requestSwitchAccount(); + }; + imports.wbg.__wbg_getblockresult_new = function(arg0) { + const ret = GetBlockResult.__wrap(arg0); return ret; - }, arguments) }; + }; imports.wbg.__wbg_getdictionaryitemresult_new = function(arg0) { const ret = GetDictionaryItemResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getbalanceresult_new = function(arg0) { - const ret = GetBalanceResult.__wrap(arg0); + imports.wbg.__wbg_getaccountresult_new = function(arg0) { + const ret = GetAccountResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_querybalancedetailsresult_new = function(arg0) { - const ret = QueryBalanceDetailsResult.__wrap(arg0); + imports.wbg.__wbg_getstateroothashresult_new = function(arg0) { + const ret = GetStateRootHashResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_querybalanceresult_new = function(arg0) { - const ret = QueryBalanceResult.__wrap(arg0); + imports.wbg.__wbg_getvalidatorchangesresult_new = function(arg0) { + const ret = GetValidatorChangesResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getstateroothashresult_new = function(arg0) { - const ret = GetStateRootHashResult.__wrap(arg0); + imports.wbg.__wbg_gettransactionresult_new = function(arg0) { + const ret = GetTransactionResult.__wrap(arg0); return ret; }; - imports.wbg.__wbg_getblocktransfersresult_new = function(arg0) { - const ret = GetBlockTransfersResult.__wrap(arg0); + imports.wbg.__wbg_getVersion_821280958b37ff1f = function() { return handleError(function (arg0) { + const ret = arg0.getVersion(); return ret; + }, arguments) }; + imports.wbg.__wbindgen_string_get = function(arg0, arg1) { + const obj = arg1; + const ret = typeof(obj) === 'string' ? obj : undefined; + var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + var len1 = WASM_VECTOR_LEN; + getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); + getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); }; imports.wbg.__wbg_transaction_new = function(arg0) { const ret = Transaction.__wrap(arg0); return ret; }; + imports.wbg.__wbg_deploy_new = function(arg0) { + const ret = Deploy.__wrap(arg0); + return ret; + }; + imports.wbg.__wbg_requestSwitchAccount_0e44115ee2041c5e = function() { return handleError(function (arg0) { + const ret = arg0.requestSwitchAccount(); + return ret; + }, arguments) }; + imports.wbg.__wbg_querybalancedetailsresult_new = function(arg0) { + const ret = QueryBalanceDetailsResult.__wrap(arg0); + return ret; + }; + imports.wbg.__wbg_querybalanceresult_new = function(arg0) { + const ret = QueryBalanceResult.__wrap(arg0); + return ret; + }; + imports.wbg.__wbg_isConnected_f84ffbccb9898623 = function() { return handleError(function (arg0) { + const ret = arg0.isConnected(); + return ret; + }, arguments) }; imports.wbg.__wbg_signMessage_c2bf40612e99c084 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { const ret = arg0.signMessage(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); return ret; @@ -13211,6 +13205,16 @@ function __wbg_get_imports() { const ret = arg0.getActivePublicKey(); return ret; }, arguments) }; + imports.wbg.__wbg_messages_new = function(arg0) { + const ret = Messages.__wrap(arg0); + return ret; + }; + imports.wbg.__wbg_error_d52bf4e1868fa715 = function(arg0, arg1) { + console.error(getStringFromWasm0(arg0, arg1)); + }; + imports.wbg.__wbg_log_5199e4d2d51afa95 = function(arg0, arg1) { + console.log(getStringFromWasm0(arg0, arg1)); + }; imports.wbg.__wbindgen_cb_drop = function(arg0) { const obj = arg0.original; if (obj.cnt-- == 1) { @@ -13220,54 +13224,36 @@ function __wbg_get_imports() { const ret = false; return ret; }; - imports.wbg.__wbg_messages_new = function(arg0) { - const ret = Messages.__wrap(arg0); + imports.wbg.__wbg_subscription_unwrap = function(arg0) { + const ret = Subscription.__unwrap(arg0); return ret; }; - imports.wbg.__wbindgen_is_undefined = function(arg0) { - const ret = arg0 === undefined; + imports.wbg.__wbg_messages_unwrap = function(arg0) { + const ret = Messages.__unwrap(arg0); return ret; }; - imports.wbg.__wbg_error_d52bf4e1868fa715 = function(arg0, arg1) { - console.error(getStringFromWasm0(arg0, arg1)); + imports.wbg.__wbg_CasperWalletProvider_e342cf6a96cfbb6c = typeof CasperWalletProvider == 'function' ? CasperWalletProvider : notDefined('CasperWalletProvider'); + imports.wbg.__wbindgen_is_null = function(arg0) { + const ret = arg0 === null; + return ret; }; - imports.wbg.__wbg_log_5199e4d2d51afa95 = function(arg0, arg1) { - console.log(getStringFromWasm0(arg0, arg1)); + imports.wbg.__wbindgen_is_undefined = function(arg0) { + const ret = arg0 === undefined; + return ret; }; imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) { const ret = arg0 === arg1; return ret; }; - imports.wbg.__wbg_CasperWalletProvider_e342cf6a96cfbb6c = typeof CasperWalletProvider == 'function' ? CasperWalletProvider : notDefined('CasperWalletProvider'); imports.wbg.__wbg_sign_5740ada8ba2ef8c3 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { const ret = arg0.sign(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); return ret; }, arguments) }; - imports.wbg.__wbg_messages_unwrap = function(arg0) { - const ret = Messages.__unwrap(arg0); - return ret; - }; - imports.wbg.__wbg_subscription_unwrap = function(arg0) { - const ret = Subscription.__unwrap(arg0); - return ret; - }; - imports.wbg.__wbindgen_is_null = function(arg0) { - const ret = arg0 === null; - return ret; - }; imports.wbg.__wbg_fetch_f8d735ba6fe1b719 = typeof fetch == 'function' ? fetch : notDefined('fetch'); - imports.wbg.__wbg_getReader_584431a478f1339c = function() { return handleError(function (arg0) { + imports.wbg.__wbg_getReader_7a604d2d7b2f6e3e = function() { return handleError(function (arg0) { const ret = arg0.getReader(); return ret; }, arguments) }; - imports.wbg.__wbg_done_510de141aaf69a99 = function(arg0) { - const ret = arg0.done; - return ret; - }; - imports.wbg.__wbg_value_3ef4965e9c7085be = function(arg0) { - const ret = arg0.value; - return ret; - }; imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) { const ret = arg0.queueMicrotask; return ret; @@ -13306,6 +13292,14 @@ function __wbg_get_imports() { imports.wbg.__wbg_abort_c57daab47a6c1215 = function(arg0) { arg0.abort(); }; + imports.wbg.__wbg_getdone_38a59a1c17131633 = function(arg0) { + const ret = arg0.done; + return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; + }; + imports.wbg.__wbg_getvalue_674bb48c8380247b = function(arg0) { + const ret = arg0.value; + return ret; + }; imports.wbg.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) { const ret = arg0.fetch(arg1); return ret; @@ -13625,12 +13619,12 @@ function __wbg_get_imports() { const ret = wasm.memory; return ret; }; - imports.wbg.__wbindgen_closure_wrapper5641 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1011, __wbg_adapter_36); + imports.wbg.__wbindgen_closure_wrapper5591 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1018, __wbg_adapter_36); return ret; }; - imports.wbg.__wbindgen_closure_wrapper5694 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1025, __wbg_adapter_39); + imports.wbg.__wbindgen_closure_wrapper5628 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 1028, __wbg_adapter_39); return ret; }; imports.wbg.__wbindgen_init_externref_table = function() { diff --git a/pkg/casper_rust_wasm_sdk_bg.wasm b/pkg/casper_rust_wasm_sdk_bg.wasm index e05d64ee..352a3724 100644 Binary files a/pkg/casper_rust_wasm_sdk_bg.wasm and b/pkg/casper_rust_wasm_sdk_bg.wasm differ diff --git a/pkg/casper_rust_wasm_sdk_bg.wasm.d.ts b/pkg/casper_rust_wasm_sdk_bg.wasm.d.ts index 8f8e19fa..de3698bd 100644 --- a/pkg/casper_rust_wasm_sdk_bg.wasm.d.ts +++ b/pkg/casper_rust_wasm_sdk_bg.wasm.d.ts @@ -1,383 +1,14 @@ /* tslint:disable */ /* eslint-disable */ export const memory: WebAssembly.Memory; -export function __wbg_urefaddr_free(a: number, b: number): void; -export function urefaddr_new(a: number, b: number): Array; +export function __wbg_peerentry_free(a: number, b: number): void; +export function peerentry_node_id(a: number): Array; +export function peerentry_address(a: number): Array; export function __wbg_blockidentifier_free(a: number, b: number): void; export function blockidentifier_new(a: number): number; export function blockidentifier_from_hash(a: number): number; export function blockidentifier_fromHeight(a: number): number; export function blockidentifier_toJson(a: number): number; -export function __wbg_eraid_free(a: number, b: number): void; -export function eraid_new(a: number): number; -export function eraid_value(a: number): number; -export function __wbg_putdeployresult_free(a: number, b: number): void; -export function putdeployresult_api_version(a: number): number; -export function putdeployresult_deploy_hash(a: number): number; -export function putdeployresult_toJson(a: number): number; -export function sdk_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function __wbg_getchainspecresult_free(a: number, b: number): void; -export function getchainspecresult_api_version(a: number): number; -export function getchainspecresult_chainspec_bytes(a: number): number; -export function getchainspecresult_toJson(a: number): number; -export function sdk_get_chainspec(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_chainspec(a: number, b: number, c: number, d: number): number; -export function __wbg_getdictionaryitemresult_free(a: number, b: number): void; -export function getdictionaryitemresult_api_version(a: number): number; -export function getdictionaryitemresult_dictionary_key(a: number): Array; -export function getdictionaryitemresult_stored_value(a: number): number; -export function getdictionaryitemresult_merkle_proof(a: number): Array; -export function getdictionaryitemresult_toJson(a: number): number; -export function __wbg_getdictionaryitemoptions_free(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_getdictionaryitemoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getdictionaryitemoptions_state_root_hash(a: number): number; -export function __wbg_set_getdictionaryitemoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_dictionary_item_params(a: number): number; -export function __wbg_set_getdictionaryitemoptions_dictionary_item_params(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_dictionary_item_identifier(a: number): number; -export function __wbg_set_getdictionaryitemoptions_dictionary_item_identifier(a: number, b: number): void; -export function __wbg_get_getdictionaryitemoptions_rpc_address(a: number): Array; -export function __wbg_set_getdictionaryitemoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getdictionaryitemoptions_verbosity(a: number): number; -export function __wbg_set_getdictionaryitemoptions_verbosity(a: number, b: number): void; -export function sdk_get_dictionary_item_options(a: number, b: number): Array; -export function sdk_get_dictionary_item(a: number, b: number): number; -export function sdk_state_get_dictionary_item(a: number, b: number): number; -export function __wbg_getaddressableentityresult_free(a: number, b: number): void; -export function getaddressableentityresult_api_version(a: number): number; -export function getaddressableentityresult_entity_result(a: number): number; -export function getaddressableentityresult_merkle_proof(a: number): Array; -export function getaddressableentityresult_toJson(a: number): number; -export function __wbg_getentityoptions_free(a: number, b: number): void; -export function __wbg_get_getentityoptions_entity_identifier(a: number): number; -export function __wbg_set_getentityoptions_entity_identifier(a: number, b: number): void; -export function __wbg_get_getentityoptions_entity_identifier_as_string(a: number): Array; -export function __wbg_set_getentityoptions_entity_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getentityoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getentityoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getentityoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getentityoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getentityoptions_rpc_address(a: number): Array; -export function __wbg_set_getentityoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getentityoptions_verbosity(a: number): number; -export function __wbg_set_getentityoptions_verbosity(a: number, b: number): void; -export function sdk_get_entity_options(a: number, b: number): Array; -export function sdk_get_entity(a: number, b: number): number; -export function sdk_state_get_entity(a: number, b: number): number; -export function __wbg_getpeersresult_free(a: number, b: number): void; -export function getpeersresult_api_version(a: number): number; -export function getpeersresult_peers(a: number): number; -export function getpeersresult_toJson(a: number): number; -export function sdk_get_peers(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_peers(a: number, b: number, c: number, d: number): number; -export function __wbg_getvalidatorchangesresult_free(a: number, b: number): void; -export function getvalidatorchangesresult_api_version(a: number): number; -export function getvalidatorchangesresult_changes(a: number): number; -export function getvalidatorchangesresult_toJson(a: number): number; -export function sdk_get_validator_changes(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_validator_change(a: number, b: number, c: number, d: number): number; -export function __wbg_listrpcsresult_free(a: number, b: number): void; -export function listrpcsresult_api_version(a: number): number; -export function listrpcsresult_name(a: number): Array; -export function listrpcsresult_schema(a: number): number; -export function listrpcsresult_toJson(a: number): number; -export function sdk_list_rpcs(a: number, b: number, c: number, d: number): number; -export function sdk_sign_transaction(a: number, b: number, c: number, d: number): number; -export function sdk_query_contract_dict_options(a: number, b: number): Array; -export function sdk_query_contract_dict(a: number, b: number): number; -export function __wbg_get_querycontractdictoptions_dictionary_item_params(a: number): number; -export function __wbg_get_querycontractdictoptions_dictionary_item_identifier(a: number): number; -export function __wbg_set_querycontractdictoptions_verbosity(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_state_root_hash(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_set_querycontractdictoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_querycontractdictoptions_free(a: number, b: number): void; -export function __wbg_get_querycontractdictoptions_state_root_hash(a: number): number; -export function __wbg_get_querycontractdictoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_get_querycontractdictoptions_rpc_address(a: number): Array; -export function __wbg_get_querycontractdictoptions_verbosity(a: number): number; -export function __wbg_set_querycontractdictoptions_dictionary_item_params(a: number, b: number): void; -export function __wbg_set_querycontractdictoptions_dictionary_item_identifier(a: number, b: number): void; -export function __wbg_accessrights_free(a: number, b: number): void; -export function accessrights_NONE(): number; -export function accessrights_READ(): number; -export function accessrights_WRITE(): number; -export function accessrights_ADD(): number; -export function accessrights_READ_ADD(): number; -export function accessrights_READ_WRITE(): number; -export function accessrights_ADD_WRITE(): number; -export function accessrights_READ_ADD_WRITE(): number; -export function accessrights_new(a: number): Array; -export function accessrights_from_bits(a: number, b: number, c: number): number; -export function accessrights_is_readable(a: number): number; -export function accessrights_is_writeable(a: number): number; -export function accessrights_is_addable(a: number): number; -export function accessrights_is_none(a: number): number; -export function __wbg_entityaddr_free(a: number, b: number): void; -export function entityaddr_fromFormattedStr(a: number, b: number): Array; -export function entityaddr_toFormattedString(a: number): Array; -export function entityaddr_toHexString(a: number): Array; -export function entityaddr_toJson(a: number): number; -export function __wbg_addressableentityhash_free(a: number, b: number): void; -export function addressableentityhash_new_js_alias(a: number, b: number): Array; -export function addressableentityhash_fromFormattedStr(a: number, b: number): Array; -export function addressableentityhash_toFormattedString(a: number): Array; -export function addressableentityhash_fromUint8Array(a: number, b: number): number; -export function contracthash_new_js_alias(a: number, b: number): Array; -export function contracthash_fromFormattedStr(a: number, b: number): Array; -export function contracthash_toFormattedString(a: number): Array; -export function contracthash_fromUint8Array(a: number, b: number): number; -export function __wbg_deploy_free(a: number, b: number): void; -export function deploy_new(a: number): number; -export function deploy_toJson(a: number): number; -export function deploy_withPaymentAndSession(a: number, b: number, c: number): Array; -export function deploy_withTransfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): Array; -export function deploy_withTTL(a: number, b: number, c: number, d: number, e: number): number; -export function deploy_withTimestamp(a: number, b: number, c: number, d: number, e: number): number; -export function deploy_withChainName(a: number, b: number, c: number, d: number, e: number): number; -export function deploy_withAccount(a: number, b: number, c: number, d: number): number; -export function deploy_withEntryPointName(a: number, b: number, c: number, d: number, e: number): number; -export function deploy_withHash(a: number, b: number, c: number, d: number): number; -export function deploy_withPackageHash(a: number, b: number, c: number, d: number): number; -export function deploy_withModuleBytes(a: number, b: number, c: number, d: number): number; -export function deploy_withSecretKey(a: number, b: number, c: number): number; -export function deploy_withStandardPayment(a: number, b: number, c: number, d: number, e: number): number; -export function deploy_withPayment(a: number, b: number, c: number, d: number): number; -export function deploy_withSession(a: number, b: number, c: number, d: number): number; -export function deploy_validateDeploySize(a: number): number; -export function deploy_isValid(a: number): number; -export function deploy_hash(a: number): number; -export function deploy_hasValidHash(a: number): number; -export function deploy_isExpired(a: number): number; -export function deploy_sign(a: number, b: number, c: number): number; -export function deploy_approvalsHash(a: number): number; -export function deploy_approvals(a: number): number; -export function deploy_isTransfer(a: number): number; -export function deploy_isStandardPayment(a: number, b: number): number; -export function deploy_isStoredContract(a: number): number; -export function deploy_isStoredContractPackage(a: number): number; -export function deploy_isModuleBytes(a: number): number; -export function deploy_isByName(a: number): number; -export function deploy_byName(a: number): Array; -export function deploy_entryPointName(a: number): Array; -export function deploy_addSignature(a: number, b: number, c: number, d: number, e: number): number; -export function deploy_TTL(a: number): Array; -export function deploy_timestamp(a: number): Array; -export function deploy_chainName(a: number): Array; -export function deploy_account(a: number): Array; -export function deploy_paymentAmount(a: number, b: number): Array; -export function deploy_args(a: number): number; -export function deploy_addArg(a: number, b: number, c: number, d: number): Array; -export function __wbg_paymentstrparams_free(a: number, b: number): void; -export function paymentstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number): number; -export function paymentstrparams_payment_amount(a: number): Array; -export function paymentstrparams_set_payment_amount(a: number, b: number, c: number): void; -export function paymentstrparams_payment_hash(a: number): Array; -export function paymentstrparams_set_payment_hash(a: number, b: number, c: number): void; -export function paymentstrparams_payment_name(a: number): Array; -export function paymentstrparams_set_payment_name(a: number, b: number, c: number): void; -export function paymentstrparams_payment_package_hash(a: number): Array; -export function paymentstrparams_set_payment_package_hash(a: number, b: number, c: number): void; -export function paymentstrparams_payment_package_name(a: number): Array; -export function paymentstrparams_set_payment_package_name(a: number, b: number, c: number): void; -export function paymentstrparams_payment_path(a: number): Array; -export function paymentstrparams_set_payment_path(a: number, b: number, c: number): void; -export function paymentstrparams_payment_args_simple(a: number): number; -export function paymentstrparams_set_payment_args_simple(a: number, b: number): void; -export function paymentstrparams_payment_args_json(a: number): Array; -export function paymentstrparams_set_payment_args_json(a: number, b: number, c: number): void; -export function paymentstrparams_payment_version(a: number): Array; -export function paymentstrparams_set_payment_version(a: number, b: number, c: number): void; -export function paymentstrparams_payment_entry_point(a: number): Array; -export function paymentstrparams_set_payment_entry_point(a: number, b: number, c: number): void; -export function __wbg_key_free(a: number, b: number): void; -export function key_new(a: number): Array; -export function key_toJson(a: number): number; -export function key_fromURef(a: number): number; -export function key_fromDeployInfo(a: number): number; -export function key_fromAccount(a: number): number; -export function key_fromHash(a: number): number; -export function key_fromTransfer(a: number, b: number): number; -export function key_fromEraInfo(a: number): number; -export function key_fromBalance(a: number): number; -export function key_fromBid(a: number): number; -export function key_fromWithdraw(a: number): number; -export function key_fromDictionaryAddr(a: number): number; -export function key_asDictionaryAddr(a: number): number; -export function key_fromSystemEntityRegistry(): number; -export function key_fromEraSummary(): number; -export function key_fromUnbond(a: number): number; -export function key_fromChainspecRegistry(): number; -export function key_fromChecksumRegistry(): number; -export function key_toFormattedString(a: number): Array; -export function key_fromFormattedString(a: number, b: number): Array; -export function key_fromDictionaryKey(a: number, b: number, c: number): number; -export function key_isDictionaryKey(a: number): number; -export function key_intoAccount(a: number): number; -export function key_intoHash(a: number): number; -export function key_asBalance(a: number): number; -export function key_intoURef(a: number): number; -export function key_urefToHash(a: number): number; -export function key_withdrawToUnbond(a: number): number; -export function __wbg_transfertarget_free(a: number, b: number): void; -export function transfertarget_new(a: number, b: number, c: number, d: number): number; -export function __wbg_transactionbuilderparams_free(a: number, b: number): void; -export function transactionbuilderparams_newSession(a: number, b: number): number; -export function transactionbuilderparams_newTransfer(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function transactionbuilderparams_newInvocableEntity(a: number, b: number, c: number): number; -export function transactionbuilderparams_newInvocableEntityAlias(a: number, b: number, c: number, d: number): number; -export function transactionbuilderparams_newPackage(a: number, b: number, c: number, d: number, e: number): number; -export function transactionbuilderparams_newPackageAlias(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function transactionbuilderparams_newAddBid(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function transactionbuilderparams_newDelegate(a: number, b: number, c: number, d: number): number; -export function transactionbuilderparams_newUndelegate(a: number, b: number, c: number, d: number): number; -export function transactionbuilderparams_newRedelegate(a: number, b: number, c: number, d: number, e: number): number; -export function transactionbuilderparams_newWithdrawBid(a: number, b: number, c: number): number; -export function transactionbuilderparams_kind(a: number): number; -export function transactionbuilderparams_set_kind(a: number, b: number): void; -export function transactionbuilderparams_transaction_bytes(a: number): number; -export function transactionbuilderparams_set_transaction_bytes(a: number, b: number): void; -export function transactionbuilderparams_maybe_source(a: number): number; -export function transactionbuilderparams_set_maybe_source(a: number, b: number): void; -export function transactionbuilderparams_target(a: number): number; -export function transactionbuilderparams_set_target(a: number, b: number): void; -export function transactionbuilderparams_amount(a: number): Array; -export function transactionbuilderparams_set_amount(a: number, b: number, c: number): void; -export function transactionbuilderparams_maybe_id(a: number): Array; -export function transactionbuilderparams_set_maybe_id(a: number, b: number): void; -export function transactionbuilderparams_entity_hash(a: number): number; -export function transactionbuilderparams_set_entity_hash(a: number, b: number): void; -export function transactionbuilderparams_entity_alias(a: number): Array; -export function transactionbuilderparams_set_entity_alias(a: number, b: number, c: number): void; -export function transactionbuilderparams_entry_point(a: number): Array; -export function transactionbuilderparams_set_entry_point(a: number, b: number, c: number): void; -export function transactionbuilderparams_package_hash(a: number): number; -export function transactionbuilderparams_set_package_hash(a: number, b: number): void; -export function transactionbuilderparams_package_alias(a: number): Array; -export function transactionbuilderparams_set_package_alias(a: number, b: number, c: number): void; -export function transactionbuilderparams_public_key(a: number): number; -export function transactionbuilderparams_set_public_key(a: number, b: number): void; -export function transactionbuilderparams_delegation_rate(a: number): number; -export function transactionbuilderparams_set_delegation_rate(a: number, b: number): void; -export function transactionbuilderparams_delegator(a: number): number; -export function transactionbuilderparams_set_delegator(a: number, b: number): void; -export function transactionbuilderparams_validator(a: number): number; -export function transactionbuilderparams_set_validator(a: number, b: number): void; -export function transactionbuilderparams_new_validator(a: number): number; -export function transactionbuilderparams_set_new_validator(a: number, b: number): void; -export function transactionbuilderparams_minimum_delegation_amount(a: number): Array; -export function transactionbuilderparams_set_minimum_delegation_amount(a: number, b: number): void; -export function transactionbuilderparams_maximum_delegation_amount(a: number): Array; -export function transactionbuilderparams_set_maximum_delegation_amount(a: number, b: number): void; -export function transactionbuilderparams_is_install_upgrade(a: number): number; -export function transactionbuilderparams_set_is_install_upgrade(a: number, b: number): void; -export function __wbg_getblockresult_free(a: number, b: number): void; -export function getblockresult_api_version(a: number): number; -export function getblockresult_block(a: number): number; -export function getblockresult_toJson(a: number): number; -export function __wbg_getblockoptions_free(a: number, b: number): void; -export function __wbg_get_getblockoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getblockoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getblockoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getblockoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getblockoptions_rpc_address(a: number): Array; -export function __wbg_set_getblockoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getblockoptions_verbosity(a: number): number; -export function __wbg_set_getblockoptions_verbosity(a: number, b: number): void; -export function sdk_get_block_options(a: number, b: number): Array; -export function sdk_get_block(a: number, b: number): number; -export function sdk_chain_get_block(a: number, b: number): number; -export function __wbg_getblocktransfersresult_free(a: number, b: number): void; -export function getblocktransfersresult_api_version(a: number): number; -export function getblocktransfersresult_block_hash(a: number): number; -export function getblocktransfersresult_transfers(a: number): number; -export function getblocktransfersresult_toJson(a: number): number; -export function sdk_get_block_transfers_options(a: number, b: number): Array; -export function sdk_get_block_transfers(a: number, b: number): number; -export function sdk_chain_get_block_transfers(a: number, b: number): number; -export function __wbg_speculativeexecresult_free(a: number, b: number): void; -export function speculativeexecresult_api_version(a: number): number; -export function speculativeexecresult_block_hash(a: number): number; -export function speculativeexecresult_execution_result(a: number): number; -export function speculativeexecresult_toJson(a: number): number; -export function __wbg_getspeculativeexecdeployoptions_free(a: number, b: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_deploy_as_string(a: number): Array; -export function __wbg_set_getspeculativeexecdeployoptions_deploy_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_deploy(a: number): number; -export function __wbg_set_getspeculativeexecdeployoptions_deploy(a: number, b: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_rpc_address(a: number): Array; -export function __wbg_set_getspeculativeexecdeployoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getspeculativeexecdeployoptions_verbosity(a: number): number; -export function __wbg_set_getspeculativeexecdeployoptions_verbosity(a: number, b: number): void; -export function sdk_get_speculative_exec_deploy_options(a: number, b: number): Array; -export function sdk_speculative_exec_deploy(a: number, b: number): number; -export function __wbg_puttransactionresult_free(a: number, b: number): void; -export function puttransactionresult_api_version(a: number): number; -export function puttransactionresult_transaction_hash(a: number): number; -export function puttransactionresult_toJson(a: number): number; -export function sdk_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_make_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; -export function sdk_sign_deploy(a: number, b: number, c: number, d: number): number; -export function __wbg_sdk_free(a: number, b: number): void; -export function sdk_new(a: number, b: number, c: number): number; -export function sdk_getRPCAddress(a: number, b: number, c: number): Array; -export function sdk_setRPCAddress(a: number, b: number, c: number): Array; -export function sdk_getVerbosity(a: number, b: number): number; -export function sdk_setVerbosity(a: number, b: number): Array; -export function hexToString(a: number, b: number): Array; -export function hexToUint8Array(a: number, b: number): Array; -export function uint8ArrayToBytes(a: number): number; -export function motesToCSPR(a: number, b: number): Array; -export function jsonPrettyPrint(a: number, b: number): Array; -export function publicKeyFromSecretKey(a: number, b: number): Array; -export function generateSecretKey(): Array; -export function generateSecretKey_secp256k1(): Array; -export function accountHashToBase64Key(a: number, b: number): Array; -export function getTimestamp(): number; -export function encodeLowerBlake2b(a: number, b: number): number; -export function makeDictionaryItemKey(a: number, b: number, c: number): Array; -export function __wbg_get_getblocktransfersoptions_maybe_block_identifier(a: number): number; -export function __wbg_getblocktransfersoptions_free(a: number, b: number): void; -export function __wbg_set_getblocktransfersoptions_verbosity(a: number, b: number): void; -export function __wbg_set_getblocktransfersoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_getblocktransfersoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getblocktransfersoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_get_getblocktransfersoptions_rpc_address(a: number): Array; -export function __wbg_get_getblocktransfersoptions_verbosity(a: number): number; -export function __wbg_set_getblocktransfersoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_contracthash_free(a: number, b: number): void; -export function __wbg_transferaddr_free(a: number, b: number): void; -export function transferaddr_new(a: number, b: number): Array; -export function __wbg_bytes_free(a: number, b: number): void; -export function bytes_new(): number; -export function bytes_fromUint8Array(a: number): number; -export function __wbg_argssimple_free(a: number, b: number): void; -export function __wbg_signatureresponse_free(a: number, b: number): void; -export function signatureresponse_is_cancelled(a: number): number; -export function signatureresponse_get_signature_hex(a: number): Array; -export function signatureresponse_get_signature(a: number): Array; -export function __wbg_getaccountresult_free(a: number, b: number): void; -export function getaccountresult_api_version(a: number): number; -export function getaccountresult_account(a: number): number; -export function getaccountresult_merkle_proof(a: number): Array; -export function getaccountresult_toJson(a: number): number; -export function __wbg_getaccountoptions_free(a: number, b: number): void; -export function __wbg_get_getaccountoptions_account_identifier(a: number): number; -export function __wbg_set_getaccountoptions_account_identifier(a: number, b: number): void; -export function __wbg_get_getaccountoptions_account_identifier_as_string(a: number): Array; -export function __wbg_set_getaccountoptions_account_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getaccountoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getaccountoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getaccountoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getaccountoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getaccountoptions_rpc_address(a: number): Array; -export function __wbg_set_getaccountoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getaccountoptions_verbosity(a: number): number; -export function __wbg_set_getaccountoptions_verbosity(a: number, b: number): void; -export function sdk_get_account_options(a: number, b: number): Array; -export function sdk_get_account(a: number, b: number): number; -export function sdk_state_get_account_info(a: number, b: number): number; export function __wbg_getbalanceresult_free(a: number, b: number): void; export function getbalanceresult_api_version(a: number): number; export function getbalanceresult_balance_value(a: number): number; @@ -399,42 +30,80 @@ export function __wbg_set_getbalanceoptions_verbosity(a: number, b: number): voi export function sdk_get_balance_options(a: number, b: number): Array; export function sdk_get_balance(a: number, b: number): number; export function sdk_state_get_balance(a: number, b: number): number; -export function __wbg_geterainforesult_free(a: number, b: number): void; -export function geterainforesult_api_version(a: number): number; -export function geterainforesult_era_summary(a: number): number; -export function geterainforesult_toJson(a: number): number; -export function __wbg_geterainfooptions_free(a: number, b: number): void; -export function __wbg_get_geterainfooptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_geterainfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_geterainfooptions_rpc_address(a: number): Array; -export function __wbg_set_geterainfooptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_geterainfooptions_verbosity(a: number): number; -export function __wbg_set_geterainfooptions_verbosity(a: number, b: number): void; -export function sdk_get_era_info_options(a: number, b: number): Array; -export function sdk_get_era_info(a: number, b: number): number; -export function sdk_chain_get_era_info_by_switch_block(a: number, b: number): number; -export function sdk_make_deploy(a: number, b: number, c: number, d: number): Array; -export function sdk_make_transaction(a: number, b: number, c: number): Array; -export function __wbg_get_geterainfooptions_maybe_block_identifier(a: number): number; -export function __wbg_set_geterainfooptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_peerentry_free(a: number, b: number): void; -export function peerentry_node_id(a: number): Array; -export function peerentry_address(a: number): Array; -export function sdk_speculative_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function sdk_install_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function __wbg_casperwallet_free(a: number, b: number): void; -export function casperwallet_new(): number; -export function casperwallet_signDeploy(a: number, b: number, c: number, d: number): number; -export function casperwallet_signTransaction(a: number, b: number, c: number, d: number): number; -export function casperwallet_signDeployHash(a: number, b: number, c: number, d: number, e: number): number; -export function casperwallet_signTransactionHash(a: number, b: number, c: number, d: number, e: number): number; -export function casperwallet_signMessage(a: number, b: number, c: number, d: number, e: number): number; -export function casperwallet_connect(a: number): number; -export function casperwallet_disconnect(a: number): number; -export function casperwallet_isConnected(a: number): number; -export function casperwallet_getVersion(a: number): number; -export function casperwallet_getActivePublicKey(a: number): number; -export function casperwallet_switchAccount(a: number): number; +export function __wbg_querybalancedetailsresult_free(a: number, b: number): void; +export function querybalancedetailsresult_api_version(a: number): number; +export function querybalancedetailsresult_total_balance(a: number): number; +export function querybalancedetailsresult_available_balance(a: number): number; +export function querybalancedetailsresult_total_balance_proof(a: number): number; +export function querybalancedetailsresult_holds(a: number): number; +export function querybalancedetailsresult_toJson(a: number): number; +export function __wbg_querybalancedetailsoptions_free(a: number, b: number): void; +export function __wbg_get_querybalancedetailsoptions_purse_identifier_as_string(a: number): Array; +export function __wbg_set_querybalancedetailsoptions_purse_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querybalancedetailsoptions_purse_identifier(a: number): number; +export function __wbg_set_querybalancedetailsoptions_purse_identifier(a: number, b: number): void; +export function __wbg_get_querybalancedetailsoptions_global_state_identifier(a: number): number; +export function __wbg_set_querybalancedetailsoptions_global_state_identifier(a: number, b: number): void; +export function __wbg_get_querybalancedetailsoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_set_querybalancedetailsoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querybalancedetailsoptions_state_root_hash(a: number): number; +export function __wbg_set_querybalancedetailsoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_querybalancedetailsoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_querybalancedetailsoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querybalancedetailsoptions_rpc_address(a: number): Array; +export function __wbg_set_querybalancedetailsoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_querybalancedetailsoptions_verbosity(a: number): number; +export function __wbg_set_querybalancedetailsoptions_verbosity(a: number, b: number): void; +export function sdk_query_balance_details_options(a: number, b: number): Array; +export function sdk_query_balance_details(a: number, b: number): number; +export function __wbg_queryglobalstateresult_free(a: number, b: number): void; +export function queryglobalstateresult_api_version(a: number): number; +export function queryglobalstateresult_block_header(a: number): number; +export function queryglobalstateresult_stored_value(a: number): number; +export function queryglobalstateresult_merkle_proof(a: number): Array; +export function queryglobalstateresult_toJson(a: number): number; +export function __wbg_queryglobalstateoptions_free(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_global_state_identifier(a: number): number; +export function __wbg_set_queryglobalstateoptions_global_state_identifier(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_state_root_hash(a: number): number; +export function __wbg_set_queryglobalstateoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_key_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_key_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_key(a: number): number; +export function __wbg_set_queryglobalstateoptions_key(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_path_as_string(a: number): Array; +export function __wbg_set_queryglobalstateoptions_path_as_string(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_path(a: number): number; +export function __wbg_set_queryglobalstateoptions_path(a: number, b: number): void; +export function __wbg_get_queryglobalstateoptions_rpc_address(a: number): Array; +export function __wbg_set_queryglobalstateoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_queryglobalstateoptions_verbosity(a: number): number; +export function __wbg_set_queryglobalstateoptions_verbosity(a: number, b: number): void; +export function sdk_query_global_state_options(a: number, b: number): Array; +export function sdk_query_global_state(a: number, b: number): number; +export function __wbg_querycontractkeyoptions_free(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_entity_identifier(a: number): number; +export function __wbg_set_querycontractkeyoptions_entity_identifier(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_querycontractkeyoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_path(a: number): number; +export function __wbg_set_querycontractkeyoptions_path(a: number, b: number): void; +export function __wbg_get_querycontractkeyoptions_rpc_address(a: number): Array; +export function __wbg_set_querycontractkeyoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_verbosity(a: number): number; +export function __wbg_set_querycontractkeyoptions_verbosity(a: number, b: number): void; +export function sdk_query_contract_key_options(a: number, b: number): Array; +export function sdk_query_contract_key(a: number, b: number): number; +export function __wbg_set_querycontractkeyoptions_entity_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querycontractkeyoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querycontractkeyoptions_path_as_string(a: number, b: number, c: number): void; +export function __wbg_get_querycontractkeyoptions_entity_identifier_as_string(a: number): Array; +export function __wbg_get_querycontractkeyoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_querycontractkeyoptions_path_as_string(a: number): Array; export function __wbg_accounthash_free(a: number, b: number): void; export function accounthash_new_js_alias(a: number, b: number): Array; export function accounthash_fromFormattedStr(a: number, b: number): Array; @@ -443,10 +112,6 @@ export function accounthash_toFormattedString(a: number): Array; export function accounthash_toHexString(a: number): Array; export function accounthash_fromUint8Array(a: number, b: number): number; export function accounthash_toJson(a: number): number; -export function blockhash_new_js_alias(a: number, b: number): Array; -export function blockhash_fromDigest(a: number): Array; -export function blockhash_toJson(a: number): number; -export function blockhash_toString(a: number): Array; export function __wbg_deploystrparams_free(a: number, b: number): void; export function deploystrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; export function deploystrparams_secret_key(a: number): Array; @@ -494,16 +159,42 @@ export function dictionaryitemidentifier_newFromEntityInfo(a: number, b: number, export function dictionaryitemidentifier_newFromSeedUref(a: number, b: number, c: number, d: number): Array; export function dictionaryitemidentifier_newFromDictionaryKey(a: number, b: number): Array; export function dictionaryitemidentifier_toJson(a: number): number; -export function __wbg_entityidentifier_free(a: number, b: number): void; -export function entityidentifier_fromFormattedStr(a: number, b: number): Array; -export function entityidentifier_fromPublicKey(a: number): number; -export function entityidentifier_fromAccountHash(a: number): number; -export function entityidentifier_fromEntityAddr(a: number): number; -export function entityidentifier_toJson(a: number): number; +export function __wbg_key_free(a: number, b: number): void; +export function key_new(a: number): Array; +export function key_toJson(a: number): number; +export function key_fromURef(a: number): number; +export function key_fromDeployInfo(a: number): number; +export function key_fromAccount(a: number): number; +export function key_fromHash(a: number): number; +export function key_fromTransfer(a: number, b: number): number; +export function key_fromEraInfo(a: number): number; +export function key_fromBalance(a: number): number; +export function key_fromBid(a: number): number; +export function key_fromWithdraw(a: number): number; +export function key_fromDictionaryAddr(a: number): number; +export function key_asDictionaryAddr(a: number): number; +export function key_fromSystemEntityRegistry(): number; +export function key_fromEraSummary(): number; +export function key_fromUnbond(a: number): number; +export function key_fromChainspecRegistry(): number; +export function key_fromChecksumRegistry(): number; +export function key_toFormattedString(a: number): Array; +export function key_fromFormattedString(a: number, b: number): Array; +export function key_fromDictionaryKey(a: number, b: number, c: number): number; +export function key_isDictionaryKey(a: number): number; +export function key_intoAccount(a: number): number; +export function key_intoHash(a: number): number; +export function key_asBalance(a: number): number; +export function key_intoURef(a: number): number; +export function key_urefToHash(a: number): number; +export function key_withdrawToUnbond(a: number): number; export function packagehash_new_js_alias(a: number, b: number): Array; export function packagehash_fromFormattedStr(a: number, b: number): Array; export function packagehash_toFormattedString(a: number): Array; export function packagehash_fromUint8Array(a: number, b: number): number; +export function __wbg_purseidentifier_free(a: number, b: number): void; +export function purseidentifier_fromPublicKey(a: number): number; +export function purseidentifier_fromAccountHash(a: number): number; export function purseidentifier_fromURef(a: number): number; export function purseidentifier_toJson(a: number): number; export function __wbg_transaction_free(a: number, b: number): void; @@ -618,327 +309,579 @@ export function __wbg_set_gettransactionoptions_transaction_hash(a: number, b: n export function sdk_get_transaction_options(a: number, b: number): Array; export function sdk_get_transaction(a: number, b: number): number; export function sdk_info_get_transaction(a: number, b: number): number; +export function sdk_make_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; +export function __wbg_gettransactionoptions_free(a: number, b: number): void; +export function __wbg_set_gettransactionoptions_verbosity(a: number, b: number): void; +export function __wbg_set_gettransactionoptions_transaction_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_set_gettransactionoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_gettransactionoptions_finalized_approvals(a: number): number; +export function __wbg_set_gettransactionoptions_finalized_approvals(a: number, b: number): void; +export function __wbg_get_gettransactionoptions_transaction_hash_as_string(a: number): Array; +export function __wbg_get_gettransactionoptions_rpc_address(a: number): Array; +export function __wbg_get_gettransactionoptions_verbosity(a: number): number; +export function __wbg_packagehash_free(a: number, b: number): void; +export function __wbg_uref_free(a: number, b: number): void; +export function __wbg_accessrights_free(a: number, b: number): void; +export function accessrights_NONE(): number; +export function accessrights_READ(): number; +export function accessrights_WRITE(): number; +export function accessrights_ADD(): number; +export function accessrights_READ_ADD(): number; +export function accessrights_READ_WRITE(): number; +export function accessrights_ADD_WRITE(): number; +export function accessrights_READ_ADD_WRITE(): number; +export function accessrights_new(a: number): Array; +export function accessrights_from_bits(a: number, b: number, c: number): number; +export function accessrights_is_readable(a: number): number; +export function accessrights_is_writeable(a: number): number; +export function accessrights_is_addable(a: number): number; +export function accessrights_is_none(a: number): number; +export function __wbg_transferaddr_free(a: number, b: number): void; +export function transferaddr_new(a: number, b: number): Array; +export function __wbg_getchainspecresult_free(a: number, b: number): void; +export function getchainspecresult_api_version(a: number): number; +export function getchainspecresult_chainspec_bytes(a: number): number; +export function getchainspecresult_toJson(a: number): number; +export function sdk_get_chainspec(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_chainspec(a: number, b: number, c: number, d: number): number; +export function __wbg_getdictionaryitemresult_free(a: number, b: number): void; +export function getdictionaryitemresult_api_version(a: number): number; +export function getdictionaryitemresult_dictionary_key(a: number): Array; +export function getdictionaryitemresult_stored_value(a: number): number; +export function getdictionaryitemresult_merkle_proof(a: number): Array; +export function getdictionaryitemresult_toJson(a: number): number; +export function __wbg_getdictionaryitemoptions_free(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_set_getdictionaryitemoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getdictionaryitemoptions_state_root_hash(a: number): number; +export function __wbg_set_getdictionaryitemoptions_state_root_hash(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_dictionary_item_params(a: number): number; +export function __wbg_set_getdictionaryitemoptions_dictionary_item_params(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_dictionary_item_identifier(a: number): number; +export function __wbg_set_getdictionaryitemoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_get_getdictionaryitemoptions_rpc_address(a: number): Array; +export function __wbg_set_getdictionaryitemoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getdictionaryitemoptions_verbosity(a: number): number; +export function __wbg_set_getdictionaryitemoptions_verbosity(a: number, b: number): void; +export function sdk_get_dictionary_item_options(a: number, b: number): Array; +export function sdk_get_dictionary_item(a: number, b: number): number; +export function sdk_state_get_dictionary_item(a: number, b: number): number; +export function __wbg_getaddressableentityresult_free(a: number, b: number): void; +export function getaddressableentityresult_api_version(a: number): number; +export function getaddressableentityresult_entity_result(a: number): number; +export function getaddressableentityresult_merkle_proof(a: number): Array; +export function getaddressableentityresult_toJson(a: number): number; +export function __wbg_getentityoptions_free(a: number, b: number): void; +export function __wbg_get_getentityoptions_entity_identifier(a: number): number; +export function __wbg_set_getentityoptions_entity_identifier(a: number, b: number): void; +export function __wbg_get_getentityoptions_entity_identifier_as_string(a: number): Array; +export function __wbg_set_getentityoptions_entity_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getentityoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getentityoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getentityoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getentityoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getentityoptions_rpc_address(a: number): Array; +export function __wbg_set_getentityoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getentityoptions_verbosity(a: number): number; +export function __wbg_set_getentityoptions_verbosity(a: number, b: number): void; +export function sdk_get_entity_options(a: number, b: number): Array; +export function sdk_get_entity(a: number, b: number): number; +export function sdk_state_get_entity(a: number, b: number): number; +export function __wbg_getnodestatusresult_free(a: number, b: number): void; +export function getnodestatusresult_api_version(a: number): number; +export function getnodestatusresult_chainspec_name(a: number): Array; +export function getnodestatusresult_starting_state_root_hash(a: number): number; +export function getnodestatusresult_peers(a: number): number; +export function getnodestatusresult_last_added_block_info(a: number): number; +export function getnodestatusresult_our_public_signing_key(a: number): number; +export function getnodestatusresult_round_length(a: number): number; +export function getnodestatusresult_next_upgrade(a: number): number; +export function getnodestatusresult_build_version(a: number): Array; +export function getnodestatusresult_uptime(a: number): number; +export function getnodestatusresult_reactor_state(a: number): number; +export function getnodestatusresult_last_progress(a: number): number; +export function getnodestatusresult_available_block_range(a: number): number; +export function getnodestatusresult_block_sync(a: number): number; +export function getnodestatusresult_toJson(a: number): number; +export function sdk_get_node_status(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_status(a: number, b: number, c: number, d: number): number; +export function __wbg_getpeersresult_free(a: number, b: number): void; +export function getpeersresult_api_version(a: number): number; +export function getpeersresult_peers(a: number): number; +export function getpeersresult_toJson(a: number): number; +export function sdk_get_peers(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_peers(a: number, b: number, c: number, d: number): number; +export function __wbg_getvalidatorchangesresult_free(a: number, b: number): void; +export function getvalidatorchangesresult_api_version(a: number): number; +export function getvalidatorchangesresult_changes(a: number): number; +export function getvalidatorchangesresult_toJson(a: number): number; +export function sdk_get_validator_changes(a: number, b: number, c: number, d: number): number; +export function sdk_info_get_validator_change(a: number, b: number, c: number, d: number): number; +export function __wbg_listrpcsresult_free(a: number, b: number): void; +export function listrpcsresult_api_version(a: number): number; +export function listrpcsresult_name(a: number): Array; +export function listrpcsresult_schema(a: number): number; +export function listrpcsresult_toJson(a: number): number; +export function sdk_list_rpcs(a: number, b: number, c: number, d: number): number; +export function sdk_sign_deploy(a: number, b: number, c: number, d: number): number; +export function sdk_query_contract_dict_options(a: number, b: number): Array; +export function sdk_query_contract_dict(a: number, b: number): number; +export function __wbg_get_querycontractdictoptions_dictionary_item_params(a: number): number; +export function __wbg_get_querycontractdictoptions_dictionary_item_identifier(a: number): number; +export function __wbg_set_querycontractdictoptions_verbosity(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_state_root_hash(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_state_root_hash_as_string(a: number, b: number, c: number): void; +export function __wbg_set_querycontractdictoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_querycontractdictoptions_free(a: number, b: number): void; +export function __wbg_get_querycontractdictoptions_state_root_hash(a: number): number; +export function __wbg_get_querycontractdictoptions_state_root_hash_as_string(a: number): Array; +export function __wbg_get_querycontractdictoptions_rpc_address(a: number): Array; +export function __wbg_get_querycontractdictoptions_verbosity(a: number): number; +export function __wbg_set_querycontractdictoptions_dictionary_item_params(a: number, b: number): void; +export function __wbg_set_querycontractdictoptions_dictionary_item_identifier(a: number, b: number): void; +export function __wbg_urefaddr_free(a: number, b: number): void; +export function urefaddr_new(a: number, b: number): Array; +export function __wbg_bytes_free(a: number, b: number): void; +export function bytes_new(): number; +export function bytes_fromUint8Array(a: number): number; +export function __wbg_argssimple_free(a: number, b: number): void; +export function __wbg_signatureresponse_free(a: number, b: number): void; +export function signatureresponse_is_cancelled(a: number): number; +export function signatureresponse_get_signature_hex(a: number): Array; +export function signatureresponse_get_signature(a: number): Array; +export function __wbg_putdeployresult_free(a: number, b: number): void; +export function putdeployresult_api_version(a: number): number; +export function putdeployresult_deploy_hash(a: number): number; +export function putdeployresult_toJson(a: number): number; +export function sdk_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_getaccountresult_free(a: number, b: number): void; +export function getaccountresult_api_version(a: number): number; +export function getaccountresult_account(a: number): number; +export function getaccountresult_merkle_proof(a: number): Array; +export function getaccountresult_toJson(a: number): number; +export function __wbg_getaccountoptions_free(a: number, b: number): void; +export function __wbg_get_getaccountoptions_account_identifier(a: number): number; +export function __wbg_set_getaccountoptions_account_identifier(a: number, b: number): void; +export function __wbg_get_getaccountoptions_account_identifier_as_string(a: number): Array; +export function __wbg_set_getaccountoptions_account_identifier_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getaccountoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getaccountoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getaccountoptions_rpc_address(a: number): Array; +export function __wbg_set_getaccountoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getaccountoptions_verbosity(a: number): number; +export function __wbg_set_getaccountoptions_verbosity(a: number, b: number): void; +export function sdk_get_account_options(a: number, b: number): Array; +export function sdk_get_account(a: number, b: number): number; +export function sdk_state_get_account_info(a: number, b: number): number; +export function __wbg_getauctioninforesult_free(a: number, b: number): void; +export function getauctioninforesult_api_version(a: number): number; +export function getauctioninforesult_auction_state(a: number): number; +export function getauctioninforesult_toJson(a: number): number; +export function __wbg_getauctioninfooptions_free(a: number, b: number): void; +export function __wbg_get_getauctioninfooptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getauctioninfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getauctioninfooptions_rpc_address(a: number): Array; +export function __wbg_set_getauctioninfooptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getauctioninfooptions_verbosity(a: number): number; +export function __wbg_set_getauctioninfooptions_verbosity(a: number, b: number): void; +export function sdk_get_auction_info_options(a: number, b: number): Array; +export function sdk_get_auction_info(a: number, b: number): number; +export function sdk_state_get_auction_info_js_alias(a: number, b: number): number; +export function __wbg_geterainforesult_free(a: number, b: number): void; +export function geterainforesult_api_version(a: number): number; +export function geterainforesult_era_summary(a: number): number; +export function geterainforesult_toJson(a: number): number; +export function sdk_get_era_info_options(a: number, b: number): Array; +export function sdk_get_era_info(a: number, b: number): number; +export function sdk_chain_get_era_info_by_switch_block(a: number, b: number): number; +export function sdk_make_transaction(a: number, b: number, c: number): Array; +export function __wbg_get_getauctioninfooptions_maybe_block_identifier(a: number): number; +export function __wbg_get_geterainfooptions_maybe_block_identifier(a: number): number; +export function __wbg_geterainfooptions_free(a: number, b: number): void; +export function __wbg_set_geterainfooptions_verbosity(a: number, b: number): void; +export function __wbg_set_geterainfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_geterainfooptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_geterainfooptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_geterainfooptions_rpc_address(a: number): Array; +export function __wbg_get_geterainfooptions_verbosity(a: number): number; +export function __wbg_set_getauctioninfooptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_set_geterainfooptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_puttransactionresult_free(a: number, b: number): void; +export function puttransactionresult_api_version(a: number): number; +export function puttransactionresult_transaction_hash(a: number): number; +export function puttransactionresult_toJson(a: number): number; +export function sdk_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function __wbg_casperwallet_free(a: number, b: number): void; +export function casperwallet_new(): number; +export function casperwallet_signDeploy(a: number, b: number, c: number, d: number): number; +export function casperwallet_signTransaction(a: number, b: number, c: number, d: number): number; +export function casperwallet_signDeployHash(a: number, b: number, c: number, d: number, e: number): number; +export function casperwallet_signTransactionHash(a: number, b: number, c: number, d: number, e: number): number; +export function casperwallet_signMessage(a: number, b: number, c: number, d: number, e: number): number; +export function casperwallet_connect(a: number): number; +export function casperwallet_disconnect(a: number): number; +export function casperwallet_isConnected(a: number): number; +export function casperwallet_getVersion(a: number): number; +export function casperwallet_getActivePublicKey(a: number): number; +export function casperwallet_switchAccount(a: number): number; +export function __wbg_accountidentifier_free(a: number, b: number): void; +export function accountidentifier_fromFormattedStr(a: number, b: number): Array; +export function accountidentifier_fromPublicKey(a: number): number; +export function accountidentifier_fromAccountHash(a: number): number; +export function accountidentifier_toJson(a: number): number; +export function hashaddr_new(a: number, b: number): Array; +export function hashaddr_toBytes(a: number): Array; +export function hashaddr_toHexString(a: number): Array; +export function __wbg_contractpackagehash_free(a: number, b: number): void; +export function contractpackagehash_new_js_alias(a: number, b: number): Array; +export function contractpackagehash_fromFormattedStr(a: number, b: number): Array; +export function contractpackagehash_toFormattedString(a: number): Array; +export function contractpackagehash_fromUint8Array(a: number, b: number): number; +export function deployhash_new_js_alias(a: number, b: number): Array; +export function deployhash_fromDigest(a: number): Array; +export function deployhash_toJson(a: number): number; +export function deployhash_toString(a: number): Array; +export function __wbg_dictionaryitemstrparams_free(a: number, b: number): void; +export function dictionaryitemstrparams_new(): number; +export function dictionaryitemstrparams_setAccountNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setContractNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setEntityNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; +export function dictionaryitemstrparams_setUref(a: number, b: number, c: number, d: number, e: number): void; +export function dictionaryitemstrparams_setDictionary(a: number, b: number, c: number): void; +export function dictionaryitemstrparams_toJson(a: number): number; +export function digest_new_js_alias(a: number, b: number): Array; +export function digest_fromString(a: number, b: number): Array; +export function digest_fromRaw(a: number, b: number): Array; +export function digest_toJson(a: number): number; +export function digest_toString(a: number): Array; +export function __wbg_path_free(a: number, b: number): void; +export function path_new(a: number): number; +export function path_fromArray(a: number): number; +export function path_toJson(a: number): number; +export function path_toString(a: number): Array; +export function path_is_empty(a: number): number; +export function publickey_new_js_alias(a: number, b: number): Array; +export function publickey_fromUint8Array(a: number, b: number): Array; +export function publickey_toAccountHash(a: number): number; +export function publickey_toPurseUref(a: number): number; +export function publickey_toJson(a: number): number; +export function sdk_put_deploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_account_put_deploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function sdk_watchDeploy(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_watchTransaction(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_waitDeploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_waitTransaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_watcher_free(a: number, b: number): void; +export function watcher_new(a: number, b: number, c: number, d: number): number; +export function watcher_subscribe(a: number, b: number, c: number): Array; +export function watcher_unsubscribe(a: number, b: number, c: number): void; +export function watcher_start(a: number): number; +export function watcher_stop(a: number): void; +export function __wbg_subscription_free(a: number, b: number): void; +export function __wbg_get_subscription_eventHandlerFn(a: number): number; +export function __wbg_set_subscription_eventHandlerFn(a: number, b: number): void; +export function subscription_new(a: number, b: number, c: number): number; +export function __wbg_failure_free(a: number, b: number): void; +export function __wbg_get_failure_cost(a: number): Array; +export function __wbg_set_failure_cost(a: number, b: number, c: number): void; +export function __wbg_get_failure_error_message(a: number): Array; +export function __wbg_set_failure_error_message(a: number, b: number, c: number): void; +export function __wbg_version2_free(a: number, b: number): void; +export function __wbg_get_version2_error_message(a: number): Array; +export function __wbg_set_version2_error_message(a: number, b: number, c: number): void; +export function __wbg_executionresult_free(a: number, b: number): void; +export function __wbg_get_executionresult_Success(a: number): number; +export function __wbg_set_executionresult_Success(a: number, b: number): void; +export function __wbg_get_executionresult_Failure(a: number): number; +export function __wbg_set_executionresult_Failure(a: number, b: number): void; +export function __wbg_hashstring_free(a: number, b: number): void; +export function hashstring_Deploy(a: number): Array; +export function hashstring_toString(a: number): Array; +export function __wbg_messages_free(a: number, b: number): void; +export function __wbg_set_messages_entity_hash(a: number, b: number, c: number): void; +export function __wbg_get_messages_message(a: number): number; +export function __wbg_set_messages_message(a: number, b: number): void; +export function __wbg_get_messages_topic_name(a: number): Array; +export function __wbg_set_messages_topic_name(a: number, b: number, c: number): void; +export function __wbg_get_messages_topic_name_hash(a: number): Array; +export function __wbg_set_messages_topic_name_hash(a: number, b: number, c: number): void; +export function __wbg_get_messages_topic_index(a: number): number; +export function __wbg_set_messages_topic_index(a: number, b: number): void; +export function __wbg_get_messages_block_index(a: number): number; +export function __wbg_set_messages_block_index(a: number, b: number): void; +export function __wbg_transactionprocessed_free(a: number, b: number): void; +export function __wbg_get_transactionprocessed_hash(a: number): number; +export function __wbg_set_transactionprocessed_hash(a: number, b: number): void; +export function __wbg_get_transactionprocessed_initiator_addr(a: number): number; +export function __wbg_set_transactionprocessed_initiator_addr(a: number, b: number): void; +export function __wbg_get_transactionprocessed_timestamp(a: number): Array; +export function __wbg_set_transactionprocessed_timestamp(a: number, b: number, c: number): void; +export function __wbg_set_transactionprocessed_ttl(a: number, b: number, c: number): void; +export function __wbg_get_transactionprocessed_execution_result(a: number): number; +export function __wbg_set_transactionprocessed_execution_result(a: number, b: number): void; +export function __wbg_get_transactionprocessed_messages(a: number): Array; +export function __wbg_set_transactionprocessed_messages(a: number, b: number, c: number): void; +export function __wbg_body_free(a: number, b: number): void; +export function __wbg_get_body_transaction_processed(a: number): number; +export function __wbg_set_body_transaction_processed(a: number, b: number): void; +export function body_get_deploy_processed(a: number): number; +export function __wbg_eventparseresult_free(a: number, b: number): void; +export function __wbg_get_eventparseresult_err(a: number): Array; +export function __wbg_set_eventparseresult_err(a: number, b: number, c: number): void; +export function __wbg_get_eventparseresult_body(a: number): number; +export function __wbg_set_eventparseresult_body(a: number, b: number): void; +export function sdk_call_entrypoint(a: number, b: number, c: number, d: number, e: number): number; +export function sdk_call_entrypoint_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_payment_free(a: number, b: number): void; +export function __wbg_publickeystring_free(a: number, b: number): void; +export function __wbg_message_free(a: number, b: number): void; +export function __wbg_get_version2_initiator(a: number): number; +export function accountidentifier_new(a: number, b: number): Array; +export function __wbg_set_subscription_targetHash(a: number, b: number, c: number): void; +export function __wbg_set_version2_limit(a: number, b: number, c: number): void; +export function __wbg_set_payment_source(a: number, b: number, c: number): void; +export function __wbg_set_hashstring_hash(a: number, b: number, c: number): void; +export function __wbg_set_publickeystring_PublicKey(a: number, b: number, c: number): void; +export function __wbg_set_message_String(a: number, b: number, c: number): void; +export function __wbg_set_version2_consumed(a: number, b: number, c: number): void; +export function __wbg_set_version2_cost(a: number, b: number, c: number): void; +export function __wbg_set_transactionprocessed_block_hash(a: number, b: number, c: number): void; +export function body_get_transaction_processed(a: number): number; +export function hashstring_Version1(a: number): Array; +export function __wbg_set_version2_initiator(a: number, b: number): void; +export function __wbg_hashaddr_free(a: number, b: number): void; +export function __wbg_deployhash_free(a: number, b: number): void; +export function __wbg_digest_free(a: number, b: number): void; +export function __wbg_publickey_free(a: number, b: number): void; +export function __wbg_get_subscription_targetHash(a: number): Array; +export function __wbg_get_version2_limit(a: number): Array; +export function __wbg_get_payment_source(a: number): Array; +export function __wbg_get_hashstring_hash(a: number): Array; +export function __wbg_get_publickeystring_PublicKey(a: number): Array; +export function __wbg_get_message_String(a: number): Array; +export function __wbg_get_messages_entity_hash(a: number): Array; +export function __wbg_get_version2_cost(a: number): Array; +export function __wbg_get_version2_consumed(a: number): Array; +export function __wbg_get_transactionprocessed_ttl(a: number): Array; +export function __wbg_get_transactionprocessed_block_hash(a: number): Array; +export function sdk_speculative_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function sdk_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function __wbg_getblocktransfersresult_free(a: number, b: number): void; +export function getblocktransfersresult_api_version(a: number): number; +export function getblocktransfersresult_block_hash(a: number): number; +export function getblocktransfersresult_transfers(a: number): number; +export function getblocktransfersresult_toJson(a: number): number; +export function __wbg_getblocktransfersoptions_free(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getblocktransfersoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getblocktransfersoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getblocktransfersoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_verbosity(a: number): number; +export function __wbg_set_getblocktransfersoptions_verbosity(a: number, b: number): void; +export function __wbg_get_getblocktransfersoptions_rpc_address(a: number): Array; +export function __wbg_set_getblocktransfersoptions_rpc_address(a: number, b: number, c: number): void; +export function sdk_get_block_transfers_options(a: number, b: number): Array; +export function sdk_get_block_transfers(a: number, b: number): number; +export function sdk_chain_get_block_transfers(a: number, b: number): number; +export function __wbg_geterasummaryresult_free(a: number, b: number): void; +export function geterasummaryresult_api_version(a: number): number; +export function geterasummaryresult_era_summary(a: number): number; +export function geterasummaryresult_toJson(a: number): number; +export function sdk_get_era_summary_options(a: number, b: number): Array; +export function sdk_get_era_summary(a: number, b: number): number; +export function sdk_chain_get_era_summary(a: number, b: number): number; export function sdk_put_transaction(a: number, b: number, c: number, d: number, e: number): number; export function sdk_account_put_transaction(a: number, b: number, c: number, d: number, e: number): number; -export function __wbg_speculativeexectxnresult_free(a: number, b: number): void; -export function speculativeexectxnresult_api_version(a: number): number; -export function speculativeexectxnresult_block_hash(a: number): number; -export function speculativeexectxnresult_execution_result(a: number): number; -export function speculativeexectxnresult_toJson(a: number): number; -export function __wbg_getspeculativeexectxnoptions_free(a: number, b: number): void; -export function __wbg_get_getspeculativeexectxnoptions_transaction_as_string(a: number): Array; -export function __wbg_set_getspeculativeexectxnoptions_transaction_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getspeculativeexectxnoptions_transaction(a: number): number; -export function __wbg_set_getspeculativeexectxnoptions_transaction(a: number, b: number): void; -export function __wbg_get_getspeculativeexectxnoptions_rpc_address(a: number): Array; -export function __wbg_set_getspeculativeexectxnoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getspeculativeexectxnoptions_verbosity(a: number): number; -export function __wbg_set_getspeculativeexectxnoptions_verbosity(a: number, b: number): void; -export function sdk_get_speculative_exec_options(a: number, b: number): Array; -export function sdk_speculative_exec(a: number, b: number): number; export function sdk_speculative_transaction(a: number, b: number, c: number, d: number, e: number, f: number): number; -export function sdk_make_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; +export function sdk_speculative_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; export function sdk_install(a: number, b: number, c: number, d: number, e: number): number; -export function __wbg_gettransactionoptions_free(a: number, b: number): void; -export function __wbg_set_gettransactionoptions_verbosity(a: number, b: number): void; -export function __wbg_set_gettransactionoptions_transaction_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_set_gettransactionoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_gettransactionoptions_finalized_approvals(a: number): number; -export function purseidentifier_fromPublicKey(a: number): number; -export function purseidentifier_fromAccountHash(a: number): number; -export function __wbg_set_gettransactionoptions_finalized_approvals(a: number, b: number): void; -export function __wbg_get_gettransactionoptions_transaction_hash_as_string(a: number): Array; -export function __wbg_get_gettransactionoptions_rpc_address(a: number): Array; -export function __wbg_get_gettransactionoptions_verbosity(a: number): number; -export function __wbg_blockhash_free(a: number, b: number): void; -export function __wbg_packagehash_free(a: number, b: number): void; -export function __wbg_purseidentifier_free(a: number, b: number): void; -export function __wbg_uref_free(a: number, b: number): void; -export function entityidentifier_new_js_alias(a: number, b: number): Array; -export function __wbg_dictionaryaddr_free(a: number, b: number): void; +export function __wbg_get_geterasummaryoptions_maybe_block_identifier(a: number): number; +export function __wbg_geterasummaryoptions_free(a: number, b: number): void; +export function __wbg_set_geterasummaryoptions_verbosity(a: number, b: number): void; +export function __wbg_set_geterasummaryoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_geterasummaryoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_geterasummaryoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_geterasummaryoptions_rpc_address(a: number): Array; +export function __wbg_get_geterasummaryoptions_verbosity(a: number): number; +export function __wbg_set_geterasummaryoptions_maybe_block_identifier(a: number, b: number): void; export function dictionaryaddr_new(a: number, b: number): Array; +export function __wbg_entityaddr_free(a: number, b: number): void; +export function entityaddr_fromFormattedStr(a: number, b: number): Array; +export function entityaddr_toFormattedString(a: number): Array; +export function entityaddr_toHexString(a: number): Array; +export function entityaddr_toJson(a: number): number; +export function __wbg_addressableentityhash_free(a: number, b: number): void; +export function addressableentityhash_new_js_alias(a: number, b: number): Array; +export function addressableentityhash_fromFormattedStr(a: number, b: number): Array; +export function addressableentityhash_toFormattedString(a: number): Array; +export function addressableentityhash_fromUint8Array(a: number, b: number): number; +export function blockhash_new_js_alias(a: number, b: number): Array; +export function blockhash_fromDigest(a: number): Array; +export function blockhash_toJson(a: number): number; +export function blockhash_toString(a: number): Array; +export function contracthash_new_js_alias(a: number, b: number): Array; +export function contracthash_fromFormattedStr(a: number, b: number): Array; +export function contracthash_toFormattedString(a: number): Array; +export function contracthash_fromUint8Array(a: number, b: number): number; +export function __wbg_deploy_free(a: number, b: number): void; +export function deploy_new(a: number): number; +export function deploy_toJson(a: number): number; +export function deploy_withPaymentAndSession(a: number, b: number, c: number): Array; +export function deploy_withTransfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): Array; +export function deploy_withTTL(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withTimestamp(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withChainName(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withAccount(a: number, b: number, c: number, d: number): number; +export function deploy_withEntryPointName(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withHash(a: number, b: number, c: number, d: number): number; +export function deploy_withPackageHash(a: number, b: number, c: number, d: number): number; +export function deploy_withModuleBytes(a: number, b: number, c: number, d: number): number; +export function deploy_withSecretKey(a: number, b: number, c: number): number; +export function deploy_withStandardPayment(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_withPayment(a: number, b: number, c: number, d: number): number; +export function deploy_withSession(a: number, b: number, c: number, d: number): number; +export function deploy_validateDeploySize(a: number): number; +export function deploy_isValid(a: number): number; +export function deploy_hash(a: number): number; +export function deploy_hasValidHash(a: number): number; +export function deploy_isExpired(a: number): number; +export function deploy_sign(a: number, b: number, c: number): number; +export function deploy_approvalsHash(a: number): number; +export function deploy_approvals(a: number): number; +export function deploy_isTransfer(a: number): number; +export function deploy_isStandardPayment(a: number, b: number): number; +export function deploy_isStoredContract(a: number): number; +export function deploy_isStoredContractPackage(a: number): number; +export function deploy_isModuleBytes(a: number): number; +export function deploy_isByName(a: number): number; +export function deploy_byName(a: number): Array; +export function deploy_entryPointName(a: number): Array; +export function deploy_addSignature(a: number, b: number, c: number, d: number, e: number): number; +export function deploy_TTL(a: number): Array; +export function deploy_timestamp(a: number): Array; +export function deploy_chainName(a: number): Array; +export function deploy_account(a: number): Array; +export function deploy_paymentAmount(a: number, b: number): Array; +export function deploy_args(a: number): number; +export function deploy_addArg(a: number, b: number, c: number, d: number): Array; +export function __wbg_paymentstrparams_free(a: number, b: number): void; +export function paymentstrparams_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number): number; +export function paymentstrparams_payment_amount(a: number): Array; +export function paymentstrparams_set_payment_amount(a: number, b: number, c: number): void; +export function paymentstrparams_payment_hash(a: number): Array; +export function paymentstrparams_set_payment_hash(a: number, b: number, c: number): void; +export function paymentstrparams_payment_name(a: number): Array; +export function paymentstrparams_set_payment_name(a: number, b: number, c: number): void; +export function paymentstrparams_payment_package_hash(a: number): Array; +export function paymentstrparams_set_payment_package_hash(a: number, b: number, c: number): void; +export function paymentstrparams_payment_package_name(a: number): Array; +export function paymentstrparams_set_payment_package_name(a: number, b: number, c: number): void; +export function paymentstrparams_payment_path(a: number): Array; +export function paymentstrparams_set_payment_path(a: number, b: number, c: number): void; +export function paymentstrparams_payment_args_simple(a: number): number; +export function paymentstrparams_set_payment_args_simple(a: number, b: number): void; +export function paymentstrparams_payment_args_json(a: number): Array; +export function paymentstrparams_set_payment_args_json(a: number, b: number, c: number): void; +export function paymentstrparams_payment_version(a: number): Array; +export function paymentstrparams_set_payment_version(a: number, b: number, c: number): void; +export function paymentstrparams_payment_entry_point(a: number): Array; +export function paymentstrparams_set_payment_entry_point(a: number, b: number, c: number): void; +export function __wbg_entityidentifier_free(a: number, b: number): void; +export function entityidentifier_fromFormattedStr(a: number, b: number): Array; +export function entityidentifier_fromPublicKey(a: number): number; +export function entityidentifier_fromAccountHash(a: number): number; +export function entityidentifier_fromEntityAddr(a: number): number; +export function entityidentifier_toJson(a: number): number; +export function __wbg_eraid_free(a: number, b: number): void; +export function eraid_new(a: number): number; +export function eraid_value(a: number): number; export function __wbg_globalstateidentifier_free(a: number, b: number): void; export function globalstateidentifier_new(a: number): number; export function globalstateidentifier_fromBlockHash(a: number): number; export function globalstateidentifier_fromBlockHeight(a: number): number; export function globalstateidentifier_fromStateRootHash(a: number): number; export function globalstateidentifier_toJson(a: number): number; -export function sdk_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function __wbg_getnodestatusresult_free(a: number, b: number): void; -export function getnodestatusresult_api_version(a: number): number; -export function getnodestatusresult_chainspec_name(a: number): Array; -export function getnodestatusresult_starting_state_root_hash(a: number): number; -export function getnodestatusresult_peers(a: number): number; -export function getnodestatusresult_last_added_block_info(a: number): number; -export function getnodestatusresult_our_public_signing_key(a: number): number; -export function getnodestatusresult_round_length(a: number): number; -export function getnodestatusresult_next_upgrade(a: number): number; -export function getnodestatusresult_build_version(a: number): Array; -export function getnodestatusresult_uptime(a: number): number; -export function getnodestatusresult_reactor_state(a: number): number; -export function getnodestatusresult_last_progress(a: number): number; -export function getnodestatusresult_available_block_range(a: number): number; -export function getnodestatusresult_block_sync(a: number): number; -export function getnodestatusresult_toJson(a: number): number; -export function sdk_get_node_status(a: number, b: number, c: number, d: number): number; -export function sdk_info_get_status(a: number, b: number, c: number, d: number): number; -export function sdk_put_deploy(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_account_put_deploy(a: number, b: number, c: number, d: number, e: number): number; -export function __wbg_querybalancedetailsresult_free(a: number, b: number): void; -export function querybalancedetailsresult_api_version(a: number): number; -export function querybalancedetailsresult_total_balance(a: number): number; -export function querybalancedetailsresult_available_balance(a: number): number; -export function querybalancedetailsresult_total_balance_proof(a: number): number; -export function querybalancedetailsresult_holds(a: number): number; -export function querybalancedetailsresult_toJson(a: number): number; -export function __wbg_querybalancedetailsoptions_free(a: number, b: number): void; -export function __wbg_get_querybalancedetailsoptions_purse_identifier_as_string(a: number): Array; -export function __wbg_set_querybalancedetailsoptions_purse_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querybalancedetailsoptions_purse_identifier(a: number): number; -export function __wbg_set_querybalancedetailsoptions_purse_identifier(a: number, b: number): void; -export function __wbg_get_querybalancedetailsoptions_global_state_identifier(a: number): number; -export function __wbg_set_querybalancedetailsoptions_global_state_identifier(a: number, b: number): void; -export function __wbg_get_querybalancedetailsoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_querybalancedetailsoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querybalancedetailsoptions_state_root_hash(a: number): number; -export function __wbg_set_querybalancedetailsoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_querybalancedetailsoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_querybalancedetailsoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querybalancedetailsoptions_rpc_address(a: number): Array; -export function __wbg_set_querybalancedetailsoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_querybalancedetailsoptions_verbosity(a: number): number; -export function __wbg_set_querybalancedetailsoptions_verbosity(a: number, b: number): void; -export function sdk_query_balance_details_options(a: number, b: number): Array; -export function sdk_query_balance_details(a: number, b: number): number; -export function __wbg_queryglobalstateresult_free(a: number, b: number): void; -export function queryglobalstateresult_api_version(a: number): number; -export function queryglobalstateresult_block_header(a: number): number; -export function queryglobalstateresult_stored_value(a: number): number; -export function queryglobalstateresult_merkle_proof(a: number): Array; -export function queryglobalstateresult_toJson(a: number): number; -export function __wbg_queryglobalstateoptions_free(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_global_state_identifier(a: number): number; -export function __wbg_set_queryglobalstateoptions_global_state_identifier(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_state_root_hash_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_state_root_hash_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_state_root_hash(a: number): number; -export function __wbg_set_queryglobalstateoptions_state_root_hash(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_key_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_key_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_key(a: number): number; -export function __wbg_set_queryglobalstateoptions_key(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_path_as_string(a: number): Array; -export function __wbg_set_queryglobalstateoptions_path_as_string(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_path(a: number): number; -export function __wbg_set_queryglobalstateoptions_path(a: number, b: number): void; -export function __wbg_get_queryglobalstateoptions_rpc_address(a: number): Array; -export function __wbg_set_queryglobalstateoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_queryglobalstateoptions_verbosity(a: number): number; -export function __wbg_set_queryglobalstateoptions_verbosity(a: number, b: number): void; -export function sdk_query_global_state_options(a: number, b: number): Array; -export function sdk_query_global_state(a: number, b: number): number; -export function sdk_call_entrypoint_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function __wbg_querycontractkeyoptions_free(a: number, b: number): void; -export function __wbg_get_querycontractkeyoptions_entity_identifier(a: number): number; -export function __wbg_set_querycontractkeyoptions_entity_identifier(a: number, b: number): void; -export function __wbg_get_querycontractkeyoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_querycontractkeyoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_querycontractkeyoptions_path(a: number): number; -export function __wbg_set_querycontractkeyoptions_path(a: number, b: number): void; -export function __wbg_get_querycontractkeyoptions_rpc_address(a: number): Array; -export function __wbg_set_querycontractkeyoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_querycontractkeyoptions_verbosity(a: number): number; -export function __wbg_set_querycontractkeyoptions_verbosity(a: number, b: number): void; -export function sdk_query_contract_key_options(a: number, b: number): Array; -export function sdk_query_contract_key(a: number, b: number): number; -export function __wbg_set_querycontractkeyoptions_entity_identifier_as_string(a: number, b: number, c: number): void; -export function __wbg_set_querycontractkeyoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_querycontractkeyoptions_path_as_string(a: number, b: number, c: number): void; -export function __wbg_get_querycontractkeyoptions_entity_identifier_as_string(a: number): Array; -export function __wbg_get_querycontractkeyoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_get_querycontractkeyoptions_path_as_string(a: number): Array; -export function __wbg_accountidentifier_free(a: number, b: number): void; -export function accountidentifier_fromFormattedStr(a: number, b: number): Array; -export function accountidentifier_fromPublicKey(a: number): number; -export function accountidentifier_fromAccountHash(a: number): number; -export function accountidentifier_toJson(a: number): number; -export function hashaddr_new(a: number, b: number): Array; -export function hashaddr_toBytes(a: number): Array; -export function hashaddr_toHexString(a: number): Array; -export function __wbg_contractpackagehash_free(a: number, b: number): void; -export function contractpackagehash_new_js_alias(a: number, b: number): Array; -export function contractpackagehash_fromFormattedStr(a: number, b: number): Array; -export function contractpackagehash_toFormattedString(a: number): Array; -export function contractpackagehash_fromUint8Array(a: number, b: number): number; -export function deployhash_new_js_alias(a: number, b: number): Array; -export function deployhash_fromDigest(a: number): Array; -export function deployhash_toJson(a: number): number; -export function deployhash_toString(a: number): Array; -export function __wbg_dictionaryitemstrparams_free(a: number, b: number): void; -export function dictionaryitemstrparams_new(): number; -export function dictionaryitemstrparams_setAccountNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; -export function dictionaryitemstrparams_setContractNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; -export function dictionaryitemstrparams_setEntityNamedKey(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void; -export function dictionaryitemstrparams_setUref(a: number, b: number, c: number, d: number, e: number): void; -export function dictionaryitemstrparams_setDictionary(a: number, b: number, c: number): void; -export function dictionaryitemstrparams_toJson(a: number): number; -export function digest_new_js_alias(a: number, b: number): Array; -export function digest_fromString(a: number, b: number): Array; -export function digest_fromRaw(a: number, b: number): Array; -export function digest_toJson(a: number): number; -export function __wbg_path_free(a: number, b: number): void; -export function path_new(a: number): number; -export function path_fromArray(a: number): number; -export function path_toJson(a: number): number; -export function path_toString(a: number): Array; -export function path_is_empty(a: number): number; -export function publickey_new_js_alias(a: number, b: number): Array; -export function publickey_fromUint8Array(a: number, b: number): Array; -export function publickey_toAccountHash(a: number): number; -export function publickey_toPurseUref(a: number): number; -export function publickey_toJson(a: number): number; +export function __wbg_transfertarget_free(a: number, b: number): void; +export function transfertarget_new(a: number, b: number, c: number, d: number): number; +export function __wbg_transactionbuilderparams_free(a: number, b: number): void; +export function transactionbuilderparams_newSession(a: number, b: number): number; +export function transactionbuilderparams_newTransfer(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function transactionbuilderparams_newInvocableEntity(a: number, b: number, c: number): number; +export function transactionbuilderparams_newInvocableEntityAlias(a: number, b: number, c: number, d: number): number; +export function transactionbuilderparams_newPackage(a: number, b: number, c: number, d: number, e: number): number; +export function transactionbuilderparams_newPackageAlias(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function transactionbuilderparams_newAddBid(a: number, b: number, c: number, d: number, e: number, f: number): number; +export function transactionbuilderparams_newDelegate(a: number, b: number, c: number, d: number): number; +export function transactionbuilderparams_newUndelegate(a: number, b: number, c: number, d: number): number; +export function transactionbuilderparams_newRedelegate(a: number, b: number, c: number, d: number, e: number): number; +export function transactionbuilderparams_newWithdrawBid(a: number, b: number, c: number): number; +export function transactionbuilderparams_kind(a: number): number; +export function transactionbuilderparams_set_kind(a: number, b: number): void; +export function transactionbuilderparams_transaction_bytes(a: number): number; +export function transactionbuilderparams_set_transaction_bytes(a: number, b: number): void; +export function transactionbuilderparams_maybe_source(a: number): number; +export function transactionbuilderparams_set_maybe_source(a: number, b: number): void; +export function transactionbuilderparams_target(a: number): number; +export function transactionbuilderparams_set_target(a: number, b: number): void; +export function transactionbuilderparams_amount(a: number): Array; +export function transactionbuilderparams_set_amount(a: number, b: number, c: number): void; +export function transactionbuilderparams_maybe_id(a: number): Array; +export function transactionbuilderparams_set_maybe_id(a: number, b: number): void; +export function transactionbuilderparams_entity_hash(a: number): number; +export function transactionbuilderparams_set_entity_hash(a: number, b: number): void; +export function transactionbuilderparams_entity_alias(a: number): Array; +export function transactionbuilderparams_set_entity_alias(a: number, b: number, c: number): void; +export function transactionbuilderparams_entry_point(a: number): Array; +export function transactionbuilderparams_set_entry_point(a: number, b: number, c: number): void; +export function transactionbuilderparams_package_hash(a: number): number; +export function transactionbuilderparams_set_package_hash(a: number, b: number): void; +export function transactionbuilderparams_package_alias(a: number): Array; +export function transactionbuilderparams_set_package_alias(a: number, b: number, c: number): void; +export function transactionbuilderparams_public_key(a: number): number; +export function transactionbuilderparams_set_public_key(a: number, b: number): void; +export function transactionbuilderparams_delegation_rate(a: number): number; +export function transactionbuilderparams_set_delegation_rate(a: number, b: number): void; +export function transactionbuilderparams_delegator(a: number): number; +export function transactionbuilderparams_set_delegator(a: number, b: number): void; +export function transactionbuilderparams_validator(a: number): number; +export function transactionbuilderparams_set_validator(a: number, b: number): void; +export function transactionbuilderparams_new_validator(a: number): number; +export function transactionbuilderparams_set_new_validator(a: number, b: number): void; +export function transactionbuilderparams_minimum_delegation_amount(a: number): Array; +export function transactionbuilderparams_set_minimum_delegation_amount(a: number, b: number): void; +export function transactionbuilderparams_maximum_delegation_amount(a: number): Array; +export function transactionbuilderparams_set_maximum_delegation_amount(a: number, b: number): void; +export function transactionbuilderparams_is_install_upgrade(a: number): number; +export function transactionbuilderparams_set_is_install_upgrade(a: number, b: number): void; +export function sdk_speculative_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; +export function __wbg_getblockresult_free(a: number, b: number): void; +export function getblockresult_api_version(a: number): number; +export function getblockresult_block(a: number): number; +export function getblockresult_toJson(a: number): number; +export function __wbg_getblockoptions_free(a: number, b: number): void; +export function __wbg_get_getblockoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_set_getblockoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getblockoptions_maybe_block_identifier(a: number): number; +export function __wbg_set_getblockoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_get_getblockoptions_rpc_address(a: number): Array; +export function __wbg_set_getblockoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getblockoptions_verbosity(a: number): number; +export function __wbg_set_getblockoptions_verbosity(a: number, b: number): void; +export function sdk_get_block_options(a: number, b: number): Array; +export function sdk_get_block(a: number, b: number): number; +export function sdk_chain_get_block(a: number, b: number): number; export function __wbg_getstateroothashresult_free(a: number, b: number): void; export function getstateroothashresult_api_version(a: number): number; export function getstateroothashresult_state_root_hash(a: number): number; export function getstateroothashresult_state_root_hash_as_string(a: number): Array; +export function getstateroothashresult_toString(a: number): Array; export function getstateroothashresult_toJson(a: number): number; -export function __wbg_getstateroothashoptions_free(a: number, b: number): void; -export function __wbg_get_getstateroothashoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getstateroothashoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getstateroothashoptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getstateroothashoptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getstateroothashoptions_rpc_address(a: number): Array; -export function __wbg_set_getstateroothashoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getstateroothashoptions_verbosity(a: number): number; -export function __wbg_set_getstateroothashoptions_verbosity(a: number, b: number): void; export function sdk_get_state_root_hash_options(a: number, b: number): Array; export function sdk_get_state_root_hash(a: number, b: number): number; export function sdk_chain_get_state_root_hash(a: number, b: number): number; -export function sdk_transfer_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function sdk_watchDeploy(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_watchTransaction(a: number, b: number, c: number, d: number, e: number): number; -export function sdk_waitDeploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_waitTransaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function __wbg_watcher_free(a: number, b: number): void; -export function watcher_new(a: number, b: number, c: number, d: number): number; -export function watcher_subscribe(a: number, b: number, c: number): Array; -export function watcher_unsubscribe(a: number, b: number, c: number): void; -export function watcher_start(a: number): number; -export function watcher_stop(a: number): void; -export function __wbg_subscription_free(a: number, b: number): void; -export function __wbg_get_subscription_eventHandlerFn(a: number): number; -export function __wbg_set_subscription_eventHandlerFn(a: number, b: number): void; -export function subscription_new(a: number, b: number, c: number): number; -export function __wbg_failure_free(a: number, b: number): void; -export function __wbg_get_failure_cost(a: number): Array; -export function __wbg_set_failure_cost(a: number, b: number, c: number): void; -export function __wbg_get_failure_error_message(a: number): Array; -export function __wbg_set_failure_error_message(a: number, b: number, c: number): void; -export function __wbg_version2_free(a: number, b: number): void; -export function __wbg_get_version2_error_message(a: number): Array; -export function __wbg_set_version2_error_message(a: number, b: number, c: number): void; -export function __wbg_executionresult_free(a: number, b: number): void; -export function __wbg_get_executionresult_Success(a: number): number; -export function __wbg_set_executionresult_Success(a: number, b: number): void; -export function __wbg_get_executionresult_Failure(a: number): number; -export function __wbg_set_executionresult_Failure(a: number, b: number): void; -export function __wbg_hashstring_free(a: number, b: number): void; -export function hashstring_Deploy(a: number): Array; -export function hashstring_toString(a: number): Array; -export function __wbg_messages_free(a: number, b: number): void; -export function __wbg_set_messages_entity_hash(a: number, b: number, c: number): void; -export function __wbg_get_messages_message(a: number): number; -export function __wbg_set_messages_message(a: number, b: number): void; -export function __wbg_get_messages_topic_name(a: number): Array; -export function __wbg_set_messages_topic_name(a: number, b: number, c: number): void; -export function __wbg_get_messages_topic_name_hash(a: number): Array; -export function __wbg_set_messages_topic_name_hash(a: number, b: number, c: number): void; -export function __wbg_get_messages_topic_index(a: number): number; -export function __wbg_set_messages_topic_index(a: number, b: number): void; -export function __wbg_get_messages_block_index(a: number): number; -export function __wbg_set_messages_block_index(a: number, b: number): void; -export function __wbg_transactionprocessed_free(a: number, b: number): void; -export function __wbg_get_transactionprocessed_hash(a: number): number; -export function __wbg_set_transactionprocessed_hash(a: number, b: number): void; -export function __wbg_get_transactionprocessed_initiator_addr(a: number): number; -export function __wbg_set_transactionprocessed_initiator_addr(a: number, b: number): void; -export function __wbg_get_transactionprocessed_timestamp(a: number): Array; -export function __wbg_set_transactionprocessed_timestamp(a: number, b: number, c: number): void; -export function __wbg_set_transactionprocessed_ttl(a: number, b: number, c: number): void; -export function __wbg_get_transactionprocessed_execution_result(a: number): number; -export function __wbg_set_transactionprocessed_execution_result(a: number, b: number): void; -export function __wbg_get_transactionprocessed_messages(a: number): Array; -export function __wbg_set_transactionprocessed_messages(a: number, b: number, c: number): void; -export function __wbg_body_free(a: number, b: number): void; -export function __wbg_get_body_transaction_processed(a: number): number; -export function __wbg_set_body_transaction_processed(a: number, b: number): void; -export function body_get_deploy_processed(a: number): number; -export function __wbg_eventparseresult_free(a: number, b: number): void; -export function __wbg_get_eventparseresult_err(a: number): Array; -export function __wbg_set_eventparseresult_err(a: number, b: number, c: number): void; -export function __wbg_get_eventparseresult_body(a: number): number; -export function __wbg_set_eventparseresult_body(a: number, b: number): void; -export function __wbg_payment_free(a: number, b: number): void; -export function __wbg_publickeystring_free(a: number, b: number): void; -export function __wbg_message_free(a: number, b: number): void; -export function __wbg_get_version2_initiator(a: number): number; -export function getstateroothashresult_toString(a: number): Array; -export function accountidentifier_new(a: number, b: number): Array; -export function __wbg_set_subscription_targetHash(a: number, b: number, c: number): void; -export function __wbg_set_version2_limit(a: number, b: number, c: number): void; -export function __wbg_set_payment_source(a: number, b: number, c: number): void; -export function __wbg_set_hashstring_hash(a: number, b: number, c: number): void; -export function __wbg_set_publickeystring_PublicKey(a: number, b: number, c: number): void; -export function __wbg_set_message_String(a: number, b: number, c: number): void; -export function __wbg_set_version2_consumed(a: number, b: number, c: number): void; -export function __wbg_set_version2_cost(a: number, b: number, c: number): void; -export function __wbg_set_transactionprocessed_block_hash(a: number, b: number, c: number): void; -export function body_get_transaction_processed(a: number): number; -export function hashstring_Version1(a: number): Array; -export function __wbg_set_version2_initiator(a: number, b: number): void; -export function __wbg_hashaddr_free(a: number, b: number): void; -export function __wbg_deployhash_free(a: number, b: number): void; -export function __wbg_digest_free(a: number, b: number): void; -export function __wbg_publickey_free(a: number, b: number): void; -export function __wbg_get_subscription_targetHash(a: number): Array; -export function __wbg_get_version2_limit(a: number): Array; -export function __wbg_get_payment_source(a: number): Array; -export function __wbg_get_hashstring_hash(a: number): Array; -export function __wbg_get_publickeystring_PublicKey(a: number): Array; -export function __wbg_get_message_String(a: number): Array; -export function __wbg_get_messages_entity_hash(a: number): Array; -export function __wbg_get_version2_cost(a: number): Array; -export function __wbg_get_version2_consumed(a: number): Array; -export function __wbg_get_transactionprocessed_ttl(a: number): Array; -export function __wbg_get_transactionprocessed_block_hash(a: number): Array; -export function digest_toString(a: number): Array; -export function sdk_speculative_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; -export function sdk_speculative_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number; -export function __wbg_getauctioninforesult_free(a: number, b: number): void; -export function getauctioninforesult_api_version(a: number): number; -export function getauctioninforesult_auction_state(a: number): number; -export function getauctioninforesult_toJson(a: number): number; -export function __wbg_getauctioninfooptions_free(a: number, b: number): void; -export function __wbg_get_getauctioninfooptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_set_getauctioninfooptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_get_getauctioninfooptions_maybe_block_identifier(a: number): number; -export function __wbg_set_getauctioninfooptions_maybe_block_identifier(a: number, b: number): void; -export function __wbg_get_getauctioninfooptions_rpc_address(a: number): Array; -export function __wbg_set_getauctioninfooptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_getauctioninfooptions_verbosity(a: number): number; -export function __wbg_set_getauctioninfooptions_verbosity(a: number, b: number): void; -export function sdk_get_auction_info_options(a: number, b: number): Array; -export function sdk_get_auction_info(a: number, b: number): number; -export function sdk_state_get_auction_info_js_alias(a: number, b: number): number; -export function __wbg_geterasummaryresult_free(a: number, b: number): void; -export function geterasummaryresult_api_version(a: number): number; -export function geterasummaryresult_era_summary(a: number): number; -export function geterasummaryresult_toJson(a: number): number; -export function sdk_get_era_summary_options(a: number, b: number): Array; -export function sdk_get_era_summary(a: number, b: number): number; -export function sdk_chain_get_era_summary(a: number, b: number): number; export function __wbg_querybalanceresult_free(a: number, b: number): void; export function querybalanceresult_api_version(a: number): number; export function querybalanceresult_balance(a: number): number; @@ -962,39 +905,96 @@ export function __wbg_get_querybalanceoptions_verbosity(a: number): number; export function __wbg_set_querybalanceoptions_verbosity(a: number, b: number): void; export function sdk_query_balance_options(a: number, b: number): Array; export function sdk_query_balance(a: number, b: number): number; -export function sdk_call_entrypoint(a: number, b: number, c: number, d: number, e: number): number; -export function __wbg_get_geterasummaryoptions_maybe_block_identifier(a: number): number; -export function __wbg_geterasummaryoptions_free(a: number, b: number): void; -export function __wbg_set_geterasummaryoptions_verbosity(a: number, b: number): void; -export function __wbg_set_geterasummaryoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; -export function __wbg_set_geterasummaryoptions_rpc_address(a: number, b: number, c: number): void; -export function __wbg_get_geterasummaryoptions_maybe_block_id_as_string(a: number): Array; -export function __wbg_get_geterasummaryoptions_rpc_address(a: number): Array; -export function __wbg_get_geterasummaryoptions_verbosity(a: number): number; -export function __wbg_set_geterasummaryoptions_maybe_block_identifier(a: number, b: number): void; +export function speculativeexectxnresult_api_version(a: number): number; +export function speculativeexectxnresult_execution_result(a: number): number; +export function speculativeexectxnresult_toJson(a: number): number; +export function __wbg_getspeculativeexectxnoptions_free(a: number, b: number): void; +export function __wbg_get_getspeculativeexectxnoptions_transaction(a: number): number; +export function __wbg_set_getspeculativeexectxnoptions_transaction(a: number, b: number): void; +export function sdk_get_speculative_exec_options(a: number, b: number): Array; +export function sdk_speculative_exec(a: number, b: number): number; +export function __wbg_speculativeexecresult_free(a: number, b: number): void; +export function speculativeexecresult_api_version(a: number): number; +export function speculativeexecresult_block_hash(a: number): number; +export function speculativeexecresult_execution_result(a: number): number; +export function speculativeexecresult_toJson(a: number): number; +export function __wbg_getspeculativeexecdeployoptions_free(a: number, b: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_deploy_as_string(a: number): Array; +export function __wbg_set_getspeculativeexecdeployoptions_deploy_as_string(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_deploy(a: number): number; +export function __wbg_set_getspeculativeexecdeployoptions_deploy(a: number, b: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_rpc_address(a: number): Array; +export function __wbg_set_getspeculativeexecdeployoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getspeculativeexecdeployoptions_verbosity(a: number): number; +export function __wbg_set_getspeculativeexecdeployoptions_verbosity(a: number, b: number): void; +export function sdk_get_speculative_exec_deploy_options(a: number, b: number): Array; +export function sdk_speculative_exec_deploy(a: number, b: number): number; +export function sdk_make_deploy(a: number, b: number, c: number, d: number): Array; +export function sdk_make_transfer(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): Array; +export function sdk_sign_transaction(a: number, b: number, c: number, d: number): number; +export function sdk_install_deploy(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number; +export function __wbg_sdk_free(a: number, b: number): void; +export function sdk_new(a: number, b: number, c: number): number; +export function sdk_getRPCAddress(a: number, b: number, c: number): Array; +export function sdk_setRPCAddress(a: number, b: number, c: number): Array; +export function sdk_getVerbosity(a: number, b: number): number; +export function sdk_setVerbosity(a: number, b: number): Array; +export function hexToString(a: number, b: number): Array; +export function hexToUint8Array(a: number, b: number): Array; +export function uint8ArrayToBytes(a: number): number; +export function motesToCSPR(a: number, b: number): Array; +export function jsonPrettyPrint(a: number, b: number): Array; +export function publicKeyFromSecretKey(a: number, b: number): Array; +export function generateSecretKey(): Array; +export function generateSecretKey_secp256k1(): Array; +export function accountHashToBase64Key(a: number, b: number): Array; +export function getTimestamp(): number; +export function encodeLowerBlake2b(a: number, b: number): number; +export function makeDictionaryItemKey(a: number, b: number, c: number): Array; +export function __wbg_get_getstateroothashoptions_maybe_block_identifier(a: number): number; +export function __wbg_getstateroothashoptions_free(a: number, b: number): void; +export function __wbg_set_getstateroothashoptions_verbosity(a: number, b: number): void; +export function __wbg_set_getspeculativeexectxnoptions_verbosity(a: number, b: number): void; +export function __wbg_set_getstateroothashoptions_maybe_block_id_as_string(a: number, b: number, c: number): void; +export function __wbg_set_getstateroothashoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_set_getspeculativeexectxnoptions_transaction_as_string(a: number, b: number, c: number): void; +export function __wbg_set_getspeculativeexectxnoptions_rpc_address(a: number, b: number, c: number): void; +export function __wbg_get_getstateroothashoptions_maybe_block_id_as_string(a: number): Array; +export function __wbg_get_getstateroothashoptions_rpc_address(a: number): Array; +export function __wbg_get_getspeculativeexectxnoptions_transaction_as_string(a: number): Array; +export function __wbg_get_getspeculativeexectxnoptions_rpc_address(a: number): Array; +export function __wbg_get_getstateroothashoptions_verbosity(a: number): number; +export function __wbg_get_getspeculativeexectxnoptions_verbosity(a: number): number; +export function __wbg_set_getstateroothashoptions_maybe_block_identifier(a: number, b: number): void; +export function __wbg_speculativeexectxnresult_free(a: number, b: number): void; +export function __wbg_dictionaryaddr_free(a: number, b: number): void; +export function __wbg_blockhash_free(a: number, b: number): void; +export function __wbg_contracthash_free(a: number, b: number): void; +export function speculativeexectxnresult_block_hash(a: number): number; +export function entityidentifier_new_js_alias(a: number, b: number): Array; export function __wbg_intounderlyingbytesource_free(a: number, b: number): void; -export function intounderlyingbytesource_type(a: number): Array; +export function intounderlyingbytesource_type(a: number): number; export function intounderlyingbytesource_autoAllocateChunkSize(a: number): number; export function intounderlyingbytesource_start(a: number, b: number): void; export function intounderlyingbytesource_pull(a: number, b: number): number; export function intounderlyingbytesource_cancel(a: number): void; -export function __wbg_intounderlyingsource_free(a: number, b: number): void; -export function intounderlyingsource_pull(a: number, b: number): number; -export function intounderlyingsource_cancel(a: number): void; export function __wbg_intounderlyingsink_free(a: number, b: number): void; export function intounderlyingsink_write(a: number, b: number): number; export function intounderlyingsink_close(a: number): number; export function intounderlyingsink_abort(a: number, b: number): number; +export function __wbg_intounderlyingsource_free(a: number, b: number): void; +export function intounderlyingsource_pull(a: number, b: number): number; +export function intounderlyingsource_cancel(a: number): void; export function __wbindgen_malloc(a: number, b: number): number; export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number; export const __wbindgen_export_2: WebAssembly.Table; export const __wbindgen_export_3: WebAssembly.Table; -export function closure1010_externref_shim(a: number, b: number, c: number): void; -export function closure1024_externref_shim(a: number, b: number, c: number): void; -export function __externref_table_dealloc(a: number): void; +export function closure1017_externref_shim(a: number, b: number, c: number): void; +export function closure1027_externref_shim(a: number, b: number, c: number): void; export function __wbindgen_free(a: number, b: number, c: number): void; +export function __externref_table_dealloc(a: number): void; export function __externref_table_alloc(): number; -export function __wbindgen_exn_store(a: number): void; export function __externref_drop_slice(a: number, b: number): void; -export function closure1570_externref_shim(a: number, b: number, c: number, d: number): void; +export function __wbindgen_exn_store(a: number): void; +export function closure1586_externref_shim(a: number, b: number, c: number, d: number): void; export function __wbindgen_start(): void; diff --git a/src/types/account_hash.rs b/src/types/account_hash.rs index 47dffac0..dd72022d 100644 --- a/src/types/account_hash.rs +++ b/src/types/account_hash.rs @@ -1,9 +1,13 @@ use super::{public_key::PublicKey, sdk_error::SdkError}; +use blake2::{ + digest::{Update, VariableOutput}, + VarBlake2b, +}; use casper_types::account::ACCOUNT_HASH_LENGTH; +use casper_types::BLAKE2B_DIGEST_LENGTH; use casper_types::{ account::AccountHash as _AccountHash, bytesrepr::{self, FromBytes, ToBytes}, - crypto, }; #[cfg(target_arch = "wasm32")] use gloo_utils::format::JsValueSerdeExt; @@ -43,6 +47,18 @@ impl AccountHash { })?; Ok(Self(account_hash)) } + + fn custom_blake2b>(data: T) -> [u8; BLAKE2B_DIGEST_LENGTH] { + let mut result = [0u8; BLAKE2B_DIGEST_LENGTH]; + let mut hasher = VarBlake2b::new(BLAKE2B_DIGEST_LENGTH) + .expect("Failed to create Blake2b hasher with the specified length"); + + hasher.update(data); + hasher.finalize_variable(|res| { + result.copy_from_slice(res); + }); + result + } } #[wasm_bindgen] @@ -71,7 +87,8 @@ impl AccountHash { #[wasm_bindgen(js_name = "fromPublicKey")] pub fn from_public_key(public_key: PublicKey) -> AccountHash { - let account_hash = _AccountHash::from_public_key(&(public_key.into()), crypto::blake2b); + let account_hash = + _AccountHash::from_public_key(&(public_key.into()), Self::custom_blake2b); Self(account_hash) }