@miden-sdk/miden-sdk 0.15.5 → 0.15.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +28 -0
  2. package/dist/mt/{Cargo-C001gt8g.js → Cargo-CnGom-_z.js} +244 -86
  3. package/dist/mt/Cargo-CnGom-_z.js.map +1 -0
  4. package/dist/mt/api-types.d.ts +120 -0
  5. package/dist/mt/assets/miden_client_web.wasm +0 -0
  6. package/dist/mt/crates/miden_client_web.d.ts +80 -1
  7. package/dist/mt/docs-entry.d.ts +3 -0
  8. package/dist/mt/eager.js +1 -1
  9. package/dist/mt/index.js +252 -5
  10. package/dist/mt/index.js.map +1 -1
  11. package/dist/mt/wasm.js +1 -1
  12. package/dist/mt/workerHelpers.js +1 -1
  13. package/dist/mt/workers/{Cargo-C001gt8g-B8wBADUI.js → Cargo-CnGom-_z-X_3VwTbo.js} +244 -86
  14. package/dist/mt/workers/Cargo-CnGom-_z-X_3VwTbo.js.map +1 -0
  15. package/dist/mt/workers/assets/miden_client_web.wasm +0 -0
  16. package/dist/mt/workers/web-client-methods-worker.js +245 -86
  17. package/dist/mt/workers/web-client-methods-worker.js.map +1 -1
  18. package/dist/mt/workers/web-client-methods-worker.module.js +1 -1
  19. package/dist/mt/workers/web-client-methods-worker.module.js.map +1 -1
  20. package/dist/mt/workers/workerHelpers.js +1 -1
  21. package/dist/st/{Cargo-CR1mzjgg.js → Cargo-DR9fiMbE.js} +253 -96
  22. package/dist/st/Cargo-DR9fiMbE.js.map +1 -0
  23. package/dist/st/api-types.d.ts +120 -0
  24. package/dist/st/assets/miden_client_web.wasm +0 -0
  25. package/dist/st/crates/miden_client_web.d.ts +80 -1
  26. package/dist/st/docs-entry.d.ts +3 -0
  27. package/dist/st/eager.js +1 -1
  28. package/dist/st/index.js +252 -5
  29. package/dist/st/index.js.map +1 -1
  30. package/dist/st/wasm.js +1 -1
  31. package/dist/st/workers/{Cargo-CR1mzjgg-DeDmKA4W.js → Cargo-DR9fiMbE-C0G0clA_.js} +253 -96
  32. package/dist/st/workers/Cargo-DR9fiMbE-C0G0clA_.js.map +1 -0
  33. package/dist/st/workers/assets/miden_client_web.wasm +0 -0
  34. package/dist/st/workers/web-client-methods-worker.js +254 -96
  35. package/dist/st/workers/web-client-methods-worker.js.map +1 -1
  36. package/dist/st/workers/web-client-methods-worker.module.js +1 -1
  37. package/dist/st/workers/web-client-methods-worker.module.js.map +1 -1
  38. package/js/node-index.js +1 -0
  39. package/js/resources/transactions.js +251 -4
  40. package/package.json +4 -4
  41. package/dist/mt/Cargo-C001gt8g.js.map +0 -1
  42. package/dist/mt/workers/Cargo-C001gt8g-B8wBADUI.js.map +0 -1
  43. package/dist/st/Cargo-CR1mzjgg.js.map +0 -1
  44. package/dist/st/workers/Cargo-CR1mzjgg-DeDmKA4W.js.map +0 -1
@@ -5,7 +5,7 @@
5
5
  async function loadWasm() {
6
6
  let wasmModule;
7
7
  if (!undefined || (undefined && !undefined.SSR)) {
8
- wasmModule = await Promise.resolve().then(function () { return CargoCR1mzjgg; });
8
+ wasmModule = await Promise.resolve().then(function () { return CargoDR9fiMbE; });
9
9
  // The Cargo glue's __wbg_init TLA is stripped by the rollup build to
10
10
  // prevent blocking WKWebView module evaluation. Call it explicitly here
11
11
  // with the WASM URL that the Cargo glue pre-resolves (relative to its
@@ -8893,7 +8893,9 @@ function indexes(...items) {
8893
8893
  return items.join(",");
8894
8894
  }
8895
8895
  /** V1 baseline schema. Extracted as a constant because once migrations are enabled, this must
8896
- * never be modified — all schema changes should go through new version blocks instead. */
8896
+ * never be modified — all schema changes should go through new version blocks instead.
8897
+ * Exported for migration tests, which seed a physical v1 database before opening it with the
8898
+ * current version chain. */
8897
8899
  const V1_STORES = {
8898
8900
  [Table.AccountCode]: indexes("root"),
8899
8901
  [Table.LatestAccountStorage]: indexes("[accountId+slotName]", "accountId"),
@@ -8948,11 +8950,12 @@ class MidenDatabase {
8948
8950
  this.dexie = new Dexie(network);
8949
8951
  // --- Schema versioning ---
8950
8952
  //
8951
- // NOTE: The migration system is not currently in use. The Miden network
8952
- // resets on every upgrade, so the database is nuked whenever the client
8953
- // version changes (see ensureClientVersion). Once the network stabilizes
8954
- // and data can be preserved across upgrades, the version-change nuke will
8955
- // be removed and migrations will take over.
8953
+ // NOTE: Migrations coexist with the client-version nuke: the database is
8954
+ // still nuked on major/minor client-version changes (network resets see
8955
+ // ensureClientVersion), while Dexie version blocks below handle schema and
8956
+ // data fixes for stores that survive patch upgrades. Once the network
8957
+ // stabilizes and data can be preserved across all upgrades, the
8958
+ // version-change nuke will be removed and migrations alone will take over.
8956
8959
  //
8957
8960
  // v1 is the baseline schema. To add a migration:
8958
8961
  // 1. Add a .version(N+1).stores({...}).upgrade(tx => {...}) block below.
@@ -8984,12 +8987,43 @@ class MidenDatabase {
8984
8987
  // Note: The `populate` hook (below the version blocks) only fires on
8985
8988
  // first database creation, NOT during upgrades.
8986
8989
  //
8987
- // To enable migrations (stop nuking the DB on version change):
8988
- // 1. Remove the nuke logic in ensureClientVersion (close/delete/open).
8989
- // Just persist the new version instead.
8990
- // 2. Freeze V1_STORES never modify it again.
8991
- // 3. Add version(2+) blocks below for all schema changes going forward.
8990
+ // Version blocks exist below, so V1_STORES is frozen never modify it;
8991
+ // add a new version block instead. To retire the nuke entirely (once data
8992
+ // must survive major/minor upgrades), remove the close/delete/open logic
8993
+ // in ensureClientVersion and just persist the new version there.
8992
8994
  this.dexie.version(1).stores(V1_STORES);
8995
+ // v2 (miden-client 0.15.4): prune note tags leaked by output-note
8996
+ // registration. Mirrors sqlite-store migration
8997
+ // `0002_prune_output_note_tags.sql`. Clients built against miden-client
8998
+ // < 0.15.4 registered a `Note`-sourced tag for every output note a
8999
+ // transaction created, but sync cleanup only removes tags of committed
9000
+ // *input* notes — leaking one `tags` row per created note. The client no
9001
+ // longer registers those tags; this upgrade deletes the rows already
9002
+ // leaked. A tag is kept while an inclusion-pending input note
9003
+ // (Expected = 0, Unverified = 1 — the mirror of
9004
+ // `InputNoteRecord::is_inclusion_pending`) still needs it.
9005
+ //
9006
+ // This data-only fix coexists with the version-change nuke above: the
9007
+ // nuke covers major/minor client upgrades (network resets), while this
9008
+ // upgrade runs for stores preserved across patch upgrades.
9009
+ this.dexie
9010
+ .version(2)
9011
+ .stores({})
9012
+ .upgrade(async (tx) => {
9013
+ const outputNoteCommitments = new Set(await tx.outputNotes.toCollection().primaryKeys());
9014
+ if (outputNoteCommitments.size === 0) {
9015
+ return;
9016
+ }
9017
+ const pendingInputNoteCommitments = new Set(await tx.inputNotes
9018
+ .where("stateDiscriminant")
9019
+ .anyOf([0, 1])
9020
+ .primaryKeys());
9021
+ await tx.tags
9022
+ .filter((tag) => !!tag.sourceNoteId &&
9023
+ outputNoteCommitments.has(tag.sourceNoteId) &&
9024
+ !pendingInputNoteCommitments.has(tag.sourceNoteId))
9025
+ .delete();
9026
+ });
8993
9027
  this.accountCodes = this.dexie.table(Table.AccountCode);
8994
9028
  this.latestAccountStorages = this.dexie.table(Table.LatestAccountStorage);
8995
9029
  this.historicalAccountStorages = this.dexie.table(Table.HistoricalAccountStorage);
@@ -11369,6 +11403,17 @@ class Account {
11369
11403
  const ret = wasm.account_isFaucet(this.__wbg_ptr);
11370
11404
  return ret !== 0;
11371
11405
  }
11406
+ /**
11407
+ * Returns true if this is a network account.
11408
+ *
11409
+ * A network account is a public account whose storage
11410
+ * carries the standardized network-account note-script allowlist slot.
11411
+ * @returns {boolean}
11412
+ */
11413
+ isNetworkAccount() {
11414
+ const ret = wasm.account_isNetworkAccount(this.__wbg_ptr);
11415
+ return ret !== 0;
11416
+ }
11372
11417
  /**
11373
11418
  * Returns true if the account has not yet been committed to the chain.
11374
11419
  * @returns {boolean}
@@ -11401,6 +11446,20 @@ class Account {
11401
11446
  const ret = wasm.account_isRegularAccount(this.__wbg_ptr);
11402
11447
  return ret !== 0;
11403
11448
  }
11449
+ /**
11450
+ * Returns the note-script roots this network account is allowed to
11451
+ * consume, or `undefined` if this is not a network account.
11452
+ * @returns {Word[] | undefined}
11453
+ */
11454
+ networkNoteAllowlist() {
11455
+ const ret = wasm.account_networkNoteAllowlist(this.__wbg_ptr);
11456
+ let v1;
11457
+ if (ret[0] !== 0) {
11458
+ v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
11459
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
11460
+ }
11461
+ return v1;
11462
+ }
11404
11463
  /**
11405
11464
  * Returns the account nonce, which is incremented on every state update.
11406
11465
  * @returns {Felt}
@@ -11780,6 +11839,42 @@ class AccountComponent {
11780
11839
  }
11781
11840
  return AccountComponent.__wrap(ret[0]);
11782
11841
  }
11842
+ /**
11843
+ * Builds the auth component for a network account.
11844
+ *
11845
+ * A network account is a public account carrying this component: its
11846
+ * note-script allowlist is the standardized storage slot the node's
11847
+ * network-transaction builder inspects to identify the account as a network
11848
+ * account and route matching notes to it for auto-consumption. The account
11849
+ * may only consume notes whose script root is in `allowedNoteScriptRoots`
11850
+ * (obtain a root via `NoteScript.root()`).
11851
+ *
11852
+ * `allowedTxScriptRoots` optionally allowlists transaction script roots
11853
+ * (from `TransactionScript.root()`) the account will execute. When omitted
11854
+ * or empty, the account permits no transaction scripts and deploys and
11855
+ * advances via scriptless transactions only. Allowlist a script root only
11856
+ * if the script's effect is safe for *every* possible input: a root pins
11857
+ * the script's code but not its arguments or advice inputs, which the
11858
+ * (arbitrary) transaction submitter controls.
11859
+ *
11860
+ * # Errors
11861
+ * Errors if `allowedNoteScriptRoots` is empty: a network account with no
11862
+ * allowlisted note scripts could never consume a note.
11863
+ * @param {Word[]} allowed_note_script_roots
11864
+ * @param {Word[] | null} [allowed_tx_script_roots]
11865
+ * @returns {AccountComponent}
11866
+ */
11867
+ static createNetworkAuth(allowed_note_script_roots, allowed_tx_script_roots) {
11868
+ const ptr0 = passArrayJsValueToWasm0(allowed_note_script_roots, wasm.__wbindgen_malloc);
11869
+ const len0 = WASM_VECTOR_LEN;
11870
+ var ptr1 = isLikeNone(allowed_tx_script_roots) ? 0 : passArrayJsValueToWasm0(allowed_tx_script_roots, wasm.__wbindgen_malloc);
11871
+ var len1 = WASM_VECTOR_LEN;
11872
+ const ret = wasm.accountcomponent_createNetworkAuth(ptr0, len0, ptr1, len1);
11873
+ if (ret[2]) {
11874
+ throw takeFromExternrefTable0(ret[1]);
11875
+ }
11876
+ return AccountComponent.__wrap(ret[0]);
11877
+ }
11783
11878
  /**
11784
11879
  * Creates an account component from a compiled library and storage slots.
11785
11880
  * @param {Library} library
@@ -13377,6 +13472,26 @@ class AdviceMap {
13377
13472
  }
13378
13473
  if (Symbol.dispose) AdviceMap.prototype[Symbol.dispose] = AdviceMap.prototype.free;
13379
13474
 
13475
+ /**
13476
+ * Whether a faucet's asset callbacks run when an asset is added to an account or a note.
13477
+ *
13478
+ * The flag is part of an asset's vault key, so two assets from the same faucet with different
13479
+ * flags occupy different vault slots and do not merge. Assets minted by a faucet that registers
13480
+ * transfer policies carry `Enabled`; everything else carries `Disabled`.
13481
+ * @enum {0 | 1}
13482
+ */
13483
+ const AssetCallbackFlag = Object.freeze({
13484
+ /**
13485
+ * The faucet's callbacks are not invoked for this asset. This is the default for an asset
13486
+ * built via the `FungibleAsset` constructor.
13487
+ */
13488
+ Disabled: 0, "0": "Disabled",
13489
+ /**
13490
+ * The faucet's callbacks are invoked before this asset is added to an account or a note.
13491
+ */
13492
+ Enabled: 1, "1": "Enabled",
13493
+ });
13494
+
13380
13495
  /**
13381
13496
  * A container for an unlimited number of assets.
13382
13497
  *
@@ -13968,7 +14083,7 @@ class CodeBuilder {
13968
14083
  * Given a Library Path, and a source code, turn it into a Library.
13969
14084
  * E.g. A path library can be `miden::my_contract`. When turned into a library,
13970
14085
  * this can be used from another script with an import statement, following the
13971
- * previous example: `use miden::my_contract'.
14086
+ * previous example: `use miden::my_contract`.
13972
14087
  * @param {string} library_path
13973
14088
  * @param {string} source_code
13974
14089
  * @returns {Library}
@@ -15119,6 +15234,14 @@ class FungibleAsset {
15119
15234
  const ret = wasm.fungibleasset_amount(this.__wbg_ptr);
15120
15235
  return BigInt.asUintN(64, ret);
15121
15236
  }
15237
+ /**
15238
+ * Returns whether this asset invokes its faucet's callbacks.
15239
+ * @returns {AssetCallbackFlag}
15240
+ */
15241
+ callbacks() {
15242
+ const ret = wasm.fungibleasset_callbacks(this.__wbg_ptr);
15243
+ return ret;
15244
+ }
15122
15245
  /**
15123
15246
  * Returns the faucet account that minted this asset.
15124
15247
  * @returns {AccountId}
@@ -15150,6 +15273,20 @@ class FungibleAsset {
15150
15273
  FungibleAssetFinalization.register(this, this.__wbg_ptr, this);
15151
15274
  return this;
15152
15275
  }
15276
+ /**
15277
+ * Returns a copy of this asset carrying the given callback flag.
15278
+ *
15279
+ * The flag is part of the asset's vault key, so it must match the flag the issuing faucet
15280
+ * applies — an asset built with the wrong flag addresses a different vault slot than the one
15281
+ * holding the balance. The constructor always produces `Disabled`; pass `Enabled` only for
15282
+ * assets from a faucet that registers transfer policies.
15283
+ * @param {AssetCallbackFlag} callbacks
15284
+ * @returns {FungibleAsset}
15285
+ */
15286
+ withCallbacks(callbacks) {
15287
+ const ret = wasm.fungibleasset_withCallbacks(this.__wbg_ptr, callbacks);
15288
+ return FungibleAsset.__wrap(ret);
15289
+ }
15153
15290
  }
15154
15291
  if (Symbol.dispose) FungibleAsset.prototype[Symbol.dispose] = FungibleAsset.prototype.free;
15155
15292
 
@@ -15525,6 +15662,16 @@ class InputNoteRecord {
15525
15662
  const ret = wasm.inputnoterecord_isConsumed(this.__wbg_ptr);
15526
15663
  return ret !== 0;
15527
15664
  }
15665
+ /**
15666
+ * Returns true while the note's on-chain inclusion is still unsettled
15667
+ * (`Expected` or `Unverified`), i.e. while sync is the mechanism that can
15668
+ * advance this record.
15669
+ * @returns {boolean}
15670
+ */
15671
+ isInclusionPending() {
15672
+ const ret = wasm.inputnoterecord_isInclusionPending(this.__wbg_ptr);
15673
+ return ret !== 0;
15674
+ }
15528
15675
  /**
15529
15676
  * Returns true if the note is currently being processed.
15530
15677
  * @returns {boolean}
@@ -19536,6 +19683,16 @@ class OutputNoteRecord {
19536
19683
  const ret = wasm.outputnoterecord_isConsumed(this.__wbg_ptr);
19537
19684
  return ret !== 0;
19538
19685
  }
19686
+ /**
19687
+ * Returns true while the note's on-chain inclusion is still unsettled
19688
+ * (`ExpectedFull` or `ExpectedPartial`), i.e. while sync is the mechanism
19689
+ * that can advance this record.
19690
+ * @returns {boolean}
19691
+ */
19692
+ isInclusionPending() {
19693
+ const ret = wasm.outputnoterecord_isInclusionPending(this.__wbg_ptr);
19694
+ return ret !== 0;
19695
+ }
19539
19696
  /**
19540
19697
  * Returns the note metadata.
19541
19698
  * @returns {NoteMetadata}
@@ -24772,7 +24929,7 @@ function __wbg_get_imports() {
24772
24929
  const ret = AccountStorage.__wrap(arg0);
24773
24930
  return ret;
24774
24931
  },
24775
- __wbg_addNoteTag_edac9aa5d53fd295: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
24932
+ __wbg_addNoteTag_94ee2f838ec544dc: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
24776
24933
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
24777
24934
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
24778
24935
  let v1;
@@ -24800,25 +24957,25 @@ function __wbg_get_imports() {
24800
24957
  __wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
24801
24958
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
24802
24959
  }, arguments); },
24803
- __wbg_applyFullAccountState_efa7cec371ac287f: function(arg0, arg1, arg2) {
24960
+ __wbg_applyFullAccountState_43caa7474baffc0b: function(arg0, arg1, arg2) {
24804
24961
  const ret = applyFullAccountState(getStringFromWasm0(arg0, arg1), JsAccountUpdate.__wrap(arg2));
24805
24962
  return ret;
24806
24963
  },
24807
- __wbg_applySettingsMutations_8eb27567fe3a997b: function(arg0, arg1, arg2, arg3) {
24964
+ __wbg_applySettingsMutations_5de1d94023be9157: function(arg0, arg1, arg2, arg3) {
24808
24965
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24809
24966
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24810
24967
  const ret = applySettingsMutations(getStringFromWasm0(arg0, arg1), v0);
24811
24968
  return ret;
24812
24969
  },
24813
- __wbg_applyStateSync_ce27298bc75b7b18: function(arg0, arg1, arg2) {
24970
+ __wbg_applyStateSync_189438332d96496e: function(arg0, arg1, arg2) {
24814
24971
  const ret = applyStateSync(getStringFromWasm0(arg0, arg1), JsStateSyncUpdate.__wrap(arg2));
24815
24972
  return ret;
24816
24973
  },
24817
- __wbg_applyTransactionBatch_b47dd46bbb97dd34: function(arg0, arg1, arg2) {
24974
+ __wbg_applyTransactionBatch_c300ed1fee34127a: function(arg0, arg1, arg2) {
24818
24975
  const ret = applyTransactionBatch(getStringFromWasm0(arg0, arg1), arg2);
24819
24976
  return ret;
24820
24977
  },
24821
- __wbg_applyTransactionDelta_9f7f77d353e0bd2d: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20) {
24978
+ __wbg_applyTransactionDelta_88c7fcff9175e58e: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20) {
24822
24979
  let deferred0_0;
24823
24980
  let deferred0_1;
24824
24981
  let deferred1_0;
@@ -24957,7 +25114,7 @@ function __wbg_get_imports() {
24957
25114
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24958
25115
  }
24959
25116
  },
24960
- __wbg_exportStore_9f8eb55269435a47: function(arg0, arg1) {
25117
+ __wbg_exportStore_cf4d695fbf6de143: function(arg0, arg1) {
24961
25118
  const ret = exportStore(getStringFromWasm0(arg0, arg1));
24962
25119
  return ret;
24963
25120
  },
@@ -24989,7 +25146,7 @@ function __wbg_get_imports() {
24989
25146
  const ret = FetchedNote.__wrap(arg0);
24990
25147
  return ret;
24991
25148
  },
24992
- __wbg_forceImportStore_fd9750b9b72150d8: function(arg0, arg1, arg2) {
25149
+ __wbg_forceImportStore_c50115d19ee606c7: function(arg0, arg1, arg2) {
24993
25150
  const ret = forceImportStore(getStringFromWasm0(arg0, arg1), arg2);
24994
25151
  return ret;
24995
25152
  },
@@ -25013,7 +25170,7 @@ function __wbg_get_imports() {
25013
25170
  const ret = FungibleAssetDeltaItem.__wrap(arg0);
25014
25171
  return ret;
25015
25172
  },
25016
- __wbg_getAccountAddresses_53c75fc6f0afab26: function(arg0, arg1, arg2, arg3) {
25173
+ __wbg_getAccountAddresses_cbd727101b08a9f6: function(arg0, arg1, arg2, arg3) {
25017
25174
  let deferred0_0;
25018
25175
  let deferred0_1;
25019
25176
  try {
@@ -25025,7 +25182,7 @@ function __wbg_get_imports() {
25025
25182
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25026
25183
  }
25027
25184
  },
25028
- __wbg_getAccountAuthByPubKeyCommitment_45e209a5e814d994: function(arg0, arg1, arg2, arg3) {
25185
+ __wbg_getAccountAuthByPubKeyCommitment_bb937a852fc252bc: function(arg0, arg1, arg2, arg3) {
25029
25186
  let deferred0_0;
25030
25187
  let deferred0_1;
25031
25188
  try {
@@ -25037,7 +25194,7 @@ function __wbg_get_imports() {
25037
25194
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25038
25195
  }
25039
25196
  },
25040
- __wbg_getAccountCode_e79bed526fe5ef58: function(arg0, arg1, arg2, arg3) {
25197
+ __wbg_getAccountCode_3cc0ae7a622f54fc: function(arg0, arg1, arg2, arg3) {
25041
25198
  let deferred0_0;
25042
25199
  let deferred0_1;
25043
25200
  try {
@@ -25049,7 +25206,7 @@ function __wbg_get_imports() {
25049
25206
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25050
25207
  }
25051
25208
  },
25052
- __wbg_getAccountHeaderByCommitment_6f5840b801ef9054: function(arg0, arg1, arg2, arg3) {
25209
+ __wbg_getAccountHeaderByCommitment_9944282b839bf9b6: function(arg0, arg1, arg2, arg3) {
25053
25210
  let deferred0_0;
25054
25211
  let deferred0_1;
25055
25212
  try {
@@ -25061,7 +25218,7 @@ function __wbg_get_imports() {
25061
25218
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25062
25219
  }
25063
25220
  },
25064
- __wbg_getAccountHeader_5f4fc27de3d1d2be: function(arg0, arg1, arg2, arg3) {
25221
+ __wbg_getAccountHeader_84fb6f83a11e9cea: function(arg0, arg1, arg2, arg3) {
25065
25222
  let deferred0_0;
25066
25223
  let deferred0_1;
25067
25224
  try {
@@ -25073,7 +25230,7 @@ function __wbg_get_imports() {
25073
25230
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25074
25231
  }
25075
25232
  },
25076
- __wbg_getAccountIdByKeyCommitment_446e9389ad387c83: function(arg0, arg1, arg2, arg3) {
25233
+ __wbg_getAccountIdByKeyCommitment_f993328b4b855b21: function(arg0, arg1, arg2, arg3) {
25077
25234
  let deferred0_0;
25078
25235
  let deferred0_1;
25079
25236
  try {
@@ -25085,11 +25242,11 @@ function __wbg_get_imports() {
25085
25242
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25086
25243
  }
25087
25244
  },
25088
- __wbg_getAccountIds_1adc911b0d8d0f6e: function(arg0, arg1) {
25245
+ __wbg_getAccountIds_e80dceb4cc97875f: function(arg0, arg1) {
25089
25246
  const ret = getAccountIds(getStringFromWasm0(arg0, arg1));
25090
25247
  return ret;
25091
25248
  },
25092
- __wbg_getAccountStorageMaps_3767caa8d97db0a1: function(arg0, arg1, arg2, arg3) {
25249
+ __wbg_getAccountStorageMaps_e36e581a33dc958a: function(arg0, arg1, arg2, arg3) {
25093
25250
  let deferred0_0;
25094
25251
  let deferred0_1;
25095
25252
  try {
@@ -25101,7 +25258,7 @@ function __wbg_get_imports() {
25101
25258
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25102
25259
  }
25103
25260
  },
25104
- __wbg_getAccountStorage_07aa2760664b2bec: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25261
+ __wbg_getAccountStorage_50de137ac49bdf17: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25105
25262
  let deferred0_0;
25106
25263
  let deferred0_1;
25107
25264
  try {
@@ -25115,7 +25272,7 @@ function __wbg_get_imports() {
25115
25272
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25116
25273
  }
25117
25274
  },
25118
- __wbg_getAccountVaultAssets_2f19d55ae4ed7c0b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25275
+ __wbg_getAccountVaultAssets_30c74124867dbf56: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25119
25276
  let deferred0_0;
25120
25277
  let deferred0_1;
25121
25278
  try {
@@ -25129,27 +25286,27 @@ function __wbg_get_imports() {
25129
25286
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25130
25287
  }
25131
25288
  },
25132
- __wbg_getAllAccountHeaders_8ed6029ae1742504: function(arg0, arg1) {
25289
+ __wbg_getAllAccountHeaders_b3e3ae880833a8cc: function(arg0, arg1) {
25133
25290
  const ret = getAllAccountHeaders(getStringFromWasm0(arg0, arg1));
25134
25291
  return ret;
25135
25292
  },
25136
- __wbg_getBlockHeaders_06f7b42ae978e531: function(arg0, arg1, arg2, arg3) {
25293
+ __wbg_getBlockHeaders_8fa268d7fb3d3c28: function(arg0, arg1, arg2, arg3) {
25137
25294
  var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
25138
25295
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25139
25296
  const ret = getBlockHeaders(getStringFromWasm0(arg0, arg1), v0);
25140
25297
  return ret;
25141
25298
  },
25142
- __wbg_getCurrentBlockchainPeaks_a04a5ec6cd7f88af: function(arg0, arg1) {
25299
+ __wbg_getCurrentBlockchainPeaks_ea97e8dd83a3db2f: function(arg0, arg1) {
25143
25300
  const ret = getCurrentBlockchainPeaks(getStringFromWasm0(arg0, arg1));
25144
25301
  return ret;
25145
25302
  },
25146
- __wbg_getForeignAccountCode_de89bd207484f570: function(arg0, arg1, arg2, arg3) {
25303
+ __wbg_getForeignAccountCode_7de2117da915f4be: function(arg0, arg1, arg2, arg3) {
25147
25304
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25148
25305
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25149
25306
  const ret = getForeignAccountCode(getStringFromWasm0(arg0, arg1), v0);
25150
25307
  return ret;
25151
25308
  },
25152
- __wbg_getInputNoteByOffset_9cfe153b53135065: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
25309
+ __wbg_getInputNoteByOffset_1cd4bd9db2e38694: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
25153
25310
  let deferred1_0;
25154
25311
  let deferred1_1;
25155
25312
  try {
@@ -25163,31 +25320,31 @@ function __wbg_get_imports() {
25163
25320
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25164
25321
  }
25165
25322
  },
25166
- __wbg_getInputNotesFromDetailsCommitments_4e49a566390c4337: function(arg0, arg1, arg2, arg3) {
25323
+ __wbg_getInputNotesFromDetailsCommitments_334d006c0e228205: function(arg0, arg1, arg2, arg3) {
25167
25324
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25168
25325
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25169
25326
  const ret = getInputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
25170
25327
  return ret;
25171
25328
  },
25172
- __wbg_getInputNotesFromIds_f506cabce8dfdec7: function(arg0, arg1, arg2, arg3) {
25329
+ __wbg_getInputNotesFromIds_bbaec98ba444d49e: function(arg0, arg1, arg2, arg3) {
25173
25330
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25174
25331
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25175
25332
  const ret = getInputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
25176
25333
  return ret;
25177
25334
  },
25178
- __wbg_getInputNotesFromNullifiers_25b0f807fd619f35: function(arg0, arg1, arg2, arg3) {
25335
+ __wbg_getInputNotesFromNullifiers_dde5b06918045f75: function(arg0, arg1, arg2, arg3) {
25179
25336
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25180
25337
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25181
25338
  const ret = getInputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
25182
25339
  return ret;
25183
25340
  },
25184
- __wbg_getInputNotes_d90894b55f0432de: function(arg0, arg1, arg2, arg3) {
25341
+ __wbg_getInputNotes_02d3daccecb4c763: function(arg0, arg1, arg2, arg3) {
25185
25342
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25186
25343
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25187
25344
  const ret = getInputNotes(getStringFromWasm0(arg0, arg1), v0);
25188
25345
  return ret;
25189
25346
  },
25190
- __wbg_getKeyCommitmentsByAccountId_c53d31eba565285f: function(arg0, arg1, arg2, arg3) {
25347
+ __wbg_getKeyCommitmentsByAccountId_de5d140392884430: function(arg0, arg1, arg2, arg3) {
25191
25348
  let deferred0_0;
25192
25349
  let deferred0_1;
25193
25350
  try {
@@ -25199,7 +25356,7 @@ function __wbg_get_imports() {
25199
25356
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25200
25357
  }
25201
25358
  },
25202
- __wbg_getNoteScript_a74641b7b9a2b11a: function(arg0, arg1, arg2, arg3) {
25359
+ __wbg_getNoteScript_bc2ab9b3b789361a: function(arg0, arg1, arg2, arg3) {
25203
25360
  let deferred0_0;
25204
25361
  let deferred0_1;
25205
25362
  try {
@@ -25211,39 +25368,39 @@ function __wbg_get_imports() {
25211
25368
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25212
25369
  }
25213
25370
  },
25214
- __wbg_getNoteTags_6351357c7199175a: function(arg0, arg1) {
25371
+ __wbg_getNoteTags_34a8fb7ffdde9e33: function(arg0, arg1) {
25215
25372
  const ret = getNoteTags(getStringFromWasm0(arg0, arg1));
25216
25373
  return ret;
25217
25374
  },
25218
- __wbg_getOutputNotesFromDetailsCommitments_a4550ac8ebbd9770: function(arg0, arg1, arg2, arg3) {
25375
+ __wbg_getOutputNotesFromDetailsCommitments_6e202d70d207d37f: function(arg0, arg1, arg2, arg3) {
25219
25376
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25220
25377
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25221
25378
  const ret = getOutputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
25222
25379
  return ret;
25223
25380
  },
25224
- __wbg_getOutputNotesFromIds_d72b067679ade695: function(arg0, arg1, arg2, arg3) {
25381
+ __wbg_getOutputNotesFromIds_2b07a4ef2fa3fdd9: function(arg0, arg1, arg2, arg3) {
25225
25382
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25226
25383
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25227
25384
  const ret = getOutputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
25228
25385
  return ret;
25229
25386
  },
25230
- __wbg_getOutputNotesFromNullifiers_17b258e816c39ed0: function(arg0, arg1, arg2, arg3) {
25387
+ __wbg_getOutputNotesFromNullifiers_f59492590ecad477: function(arg0, arg1, arg2, arg3) {
25231
25388
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25232
25389
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25233
25390
  const ret = getOutputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
25234
25391
  return ret;
25235
25392
  },
25236
- __wbg_getOutputNotes_1473c985e0449439: function(arg0, arg1, arg2, arg3) {
25393
+ __wbg_getOutputNotes_7ddd237b643a22e2: function(arg0, arg1, arg2, arg3) {
25237
25394
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25238
25395
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25239
25396
  const ret = getOutputNotes(getStringFromWasm0(arg0, arg1), v0);
25240
25397
  return ret;
25241
25398
  },
25242
- __wbg_getPartialBlockchainNodesAll_e17f47fa0b31d95e: function(arg0, arg1) {
25399
+ __wbg_getPartialBlockchainNodesAll_e2e8c0d62a978ef1: function(arg0, arg1) {
25243
25400
  const ret = getPartialBlockchainNodesAll(getStringFromWasm0(arg0, arg1));
25244
25401
  return ret;
25245
25402
  },
25246
- __wbg_getPartialBlockchainNodesUpToInOrderIndex_43f6babd6387a967: function(arg0, arg1, arg2, arg3) {
25403
+ __wbg_getPartialBlockchainNodesUpToInOrderIndex_2f8e8d802df6ede2: function(arg0, arg1, arg2, arg3) {
25247
25404
  let deferred0_0;
25248
25405
  let deferred0_1;
25249
25406
  try {
@@ -25255,7 +25412,7 @@ function __wbg_get_imports() {
25255
25412
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25256
25413
  }
25257
25414
  },
25258
- __wbg_getPartialBlockchainNodes_753ab364036ee659: function(arg0, arg1, arg2, arg3) {
25415
+ __wbg_getPartialBlockchainNodes_4505db840ba96409: function(arg0, arg1, arg2, arg3) {
25259
25416
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25260
25417
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25261
25418
  const ret = getPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0);
@@ -25268,7 +25425,7 @@ function __wbg_get_imports() {
25268
25425
  const ret = arg0.getReader();
25269
25426
  return ret;
25270
25427
  }, arguments); },
25271
- __wbg_getSetting_6d181107da0b79d8: function(arg0, arg1, arg2, arg3) {
25428
+ __wbg_getSetting_62039934dd52148a: function(arg0, arg1, arg2, arg3) {
25272
25429
  let deferred0_0;
25273
25430
  let deferred0_1;
25274
25431
  try {
@@ -25280,7 +25437,7 @@ function __wbg_get_imports() {
25280
25437
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25281
25438
  }
25282
25439
  },
25283
- __wbg_getSyncHeight_dc5e0c277d3350d0: function(arg0, arg1) {
25440
+ __wbg_getSyncHeight_1c355e9af8a6c5c1: function(arg0, arg1) {
25284
25441
  const ret = getSyncHeight(getStringFromWasm0(arg0, arg1));
25285
25442
  return ret;
25286
25443
  },
@@ -25288,15 +25445,15 @@ function __wbg_get_imports() {
25288
25445
  const ret = arg0.getTime();
25289
25446
  return ret;
25290
25447
  },
25291
- __wbg_getTrackedBlockHeaderNumbers_897214e329b5ea0c: function(arg0, arg1) {
25448
+ __wbg_getTrackedBlockHeaderNumbers_1127c2c0de9e8f2d: function(arg0, arg1) {
25292
25449
  const ret = getTrackedBlockHeaderNumbers(getStringFromWasm0(arg0, arg1));
25293
25450
  return ret;
25294
25451
  },
25295
- __wbg_getTrackedBlockHeaders_dcef57272c508785: function(arg0, arg1) {
25452
+ __wbg_getTrackedBlockHeaders_0c9acbd5575e41f1: function(arg0, arg1) {
25296
25453
  const ret = getTrackedBlockHeaders(getStringFromWasm0(arg0, arg1));
25297
25454
  return ret;
25298
25455
  },
25299
- __wbg_getTransactions_47df1ec1a429e0f9: function(arg0, arg1, arg2, arg3) {
25456
+ __wbg_getTransactions_71b6f120136d4406: function(arg0, arg1, arg2, arg3) {
25300
25457
  let deferred0_0;
25301
25458
  let deferred0_1;
25302
25459
  try {
@@ -25308,7 +25465,7 @@ function __wbg_get_imports() {
25308
25465
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25309
25466
  }
25310
25467
  },
25311
- __wbg_getUnspentInputNoteNullifiers_a41c87a9f48d5fdf: function(arg0, arg1) {
25468
+ __wbg_getUnspentInputNoteNullifiers_ac153627e18848ab: function(arg0, arg1) {
25312
25469
  const ret = getUnspentInputNoteNullifiers(getStringFromWasm0(arg0, arg1));
25313
25470
  return ret;
25314
25471
  },
@@ -25352,7 +25509,7 @@ function __wbg_get_imports() {
25352
25509
  const ret = InputNoteRecord.__wrap(arg0);
25353
25510
  return ret;
25354
25511
  },
25355
- __wbg_insertAccountAddress_1e4667af2c92224c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25512
+ __wbg_insertAccountAddress_15069fe099e1619e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25356
25513
  let deferred0_0;
25357
25514
  let deferred0_1;
25358
25515
  try {
@@ -25366,7 +25523,7 @@ function __wbg_get_imports() {
25366
25523
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25367
25524
  }
25368
25525
  },
25369
- __wbg_insertAccountAuth_d471abfc7c33077a: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25526
+ __wbg_insertAccountAuth_d0cb9c2601ea7324: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25370
25527
  let deferred0_0;
25371
25528
  let deferred0_1;
25372
25529
  let deferred1_0;
@@ -25383,7 +25540,7 @@ function __wbg_get_imports() {
25383
25540
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25384
25541
  }
25385
25542
  },
25386
- __wbg_insertAccountKeyMapping_b4e7262fd4dc4273: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25543
+ __wbg_insertAccountKeyMapping_995e470bad5ead0b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25387
25544
  let deferred0_0;
25388
25545
  let deferred0_1;
25389
25546
  let deferred1_0;
@@ -25400,13 +25557,13 @@ function __wbg_get_imports() {
25400
25557
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25401
25558
  }
25402
25559
  },
25403
- __wbg_insertBlockHeader_282dd85fef7536b7: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25560
+ __wbg_insertBlockHeader_e5a6e2ded97f2403: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25404
25561
  var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
25405
25562
  wasm.__wbindgen_free(arg3, arg4 * 1, 1);
25406
25563
  const ret = insertBlockHeader(getStringFromWasm0(arg0, arg1), arg2 >>> 0, v0, arg5 !== 0);
25407
25564
  return ret;
25408
25565
  },
25409
- __wbg_insertPartialBlockchainNodes_574aa9138d3a0e84: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25566
+ __wbg_insertPartialBlockchainNodes_d6d5d926855e4d21: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25410
25567
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25411
25568
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25412
25569
  var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
@@ -25414,7 +25571,7 @@ function __wbg_get_imports() {
25414
25571
  const ret = insertPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0, v1);
25415
25572
  return ret;
25416
25573
  },
25417
- __wbg_insertSetting_eec786c0b0995552: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25574
+ __wbg_insertSetting_0b89216c93defa8f: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25418
25575
  let deferred0_0;
25419
25576
  let deferred0_1;
25420
25577
  try {
@@ -25428,7 +25585,7 @@ function __wbg_get_imports() {
25428
25585
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25429
25586
  }
25430
25587
  },
25431
- __wbg_insertTransactionScript_881ef7ad3becb554: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25588
+ __wbg_insertTransactionScript_25a8761c16b219bb: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25432
25589
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25433
25590
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25434
25591
  let v1;
@@ -25525,11 +25682,11 @@ function __wbg_get_imports() {
25525
25682
  const ret = arg0.length;
25526
25683
  return ret;
25527
25684
  },
25528
- __wbg_listSettingKeys_23baa5fe89fe0300: function(arg0, arg1) {
25685
+ __wbg_listSettingKeys_2b136b1269935560: function(arg0, arg1) {
25529
25686
  const ret = listSettingKeys(getStringFromWasm0(arg0, arg1));
25530
25687
  return ret;
25531
25688
  },
25532
- __wbg_lockAccount_f83587d5772bcc3c: function(arg0, arg1, arg2, arg3) {
25689
+ __wbg_lockAccount_77845432e7766df6: function(arg0, arg1, arg2, arg3) {
25533
25690
  let deferred0_0;
25534
25691
  let deferred0_1;
25535
25692
  try {
@@ -25617,7 +25774,7 @@ function __wbg_get_imports() {
25617
25774
  const a = state0.a;
25618
25775
  state0.a = 0;
25619
25776
  try {
25620
- return wasm_bindgen__convert__closures_____invoke__h21e75c0ad5fdcd28(a, state0.b, arg0, arg1);
25777
+ return wasm_bindgen_8d8dd5a992b1207e___convert__closures_____invoke___wasm_bindgen_8d8dd5a992b1207e___JsValue__wasm_bindgen_8d8dd5a992b1207e___JsValue_____(a, state0.b, arg0, arg1);
25621
25778
  } finally {
25622
25779
  state0.a = a;
25623
25780
  }
@@ -25732,7 +25889,7 @@ function __wbg_get_imports() {
25732
25889
  const ret = NoteTag.__unwrap(arg0);
25733
25890
  return ret;
25734
25891
  },
25735
- __wbg_openDatabase_dade7696599cc268: function(arg0, arg1, arg2, arg3) {
25892
+ __wbg_openDatabase_2f30006b5f901ff6: function(arg0, arg1, arg2, arg3) {
25736
25893
  const ret = openDatabase(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
25737
25894
  return ret;
25738
25895
  },
@@ -25763,7 +25920,7 @@ function __wbg_get_imports() {
25763
25920
  const ret = ProvenTransaction.__wrap(arg0);
25764
25921
  return ret;
25765
25922
  },
25766
- __wbg_pruneAccountHistory_4b805f8ee1a03061: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25923
+ __wbg_pruneAccountHistory_f92187e012bea002: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25767
25924
  let deferred0_0;
25768
25925
  let deferred0_1;
25769
25926
  let deferred1_0;
@@ -25780,7 +25937,7 @@ function __wbg_get_imports() {
25780
25937
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25781
25938
  }
25782
25939
  },
25783
- __wbg_pruneIrrelevantBlocks_8bd4b5b8b6e87516: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25940
+ __wbg_pruneIrrelevantBlocks_802f17c51c071490: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25784
25941
  var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
25785
25942
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25786
25943
  var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
@@ -25810,13 +25967,13 @@ function __wbg_get_imports() {
25810
25967
  __wbg_releaseLock_aa5846c2494b3032: function(arg0) {
25811
25968
  arg0.releaseLock();
25812
25969
  },
25813
- __wbg_removeAccountAddress_a5929a2b59fde92e: function(arg0, arg1, arg2, arg3) {
25970
+ __wbg_removeAccountAddress_26bf46414ef4d36b: function(arg0, arg1, arg2, arg3) {
25814
25971
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25815
25972
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25816
25973
  const ret = removeAccountAddress(getStringFromWasm0(arg0, arg1), v0);
25817
25974
  return ret;
25818
25975
  },
25819
- __wbg_removeAccountAuth_7fd68774c7763092: function(arg0, arg1, arg2, arg3) {
25976
+ __wbg_removeAccountAuth_eee531cc8fc556ab: function(arg0, arg1, arg2, arg3) {
25820
25977
  let deferred0_0;
25821
25978
  let deferred0_1;
25822
25979
  try {
@@ -25828,7 +25985,7 @@ function __wbg_get_imports() {
25828
25985
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25829
25986
  }
25830
25987
  },
25831
- __wbg_removeAllMappingsForKey_f33d5693234e701e: function(arg0, arg1, arg2, arg3) {
25988
+ __wbg_removeAllMappingsForKey_bb2ce4d992b13353: function(arg0, arg1, arg2, arg3) {
25832
25989
  let deferred0_0;
25833
25990
  let deferred0_1;
25834
25991
  try {
@@ -25840,7 +25997,7 @@ function __wbg_get_imports() {
25840
25997
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25841
25998
  }
25842
25999
  },
25843
- __wbg_removeNoteTag_04d1db037df7f461: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
26000
+ __wbg_removeNoteTag_ce18a2071a471486: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
25844
26001
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25845
26002
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25846
26003
  let v1;
@@ -25861,7 +26018,7 @@ function __wbg_get_imports() {
25861
26018
  const ret = removeNoteTag(getStringFromWasm0(arg0, arg1), v0, v1, v2, v3);
25862
26019
  return ret;
25863
26020
  },
25864
- __wbg_removeSetting_a53a2a6a735eb18c: function(arg0, arg1, arg2, arg3) {
26021
+ __wbg_removeSetting_a6764e1ec62f8c0f: function(arg0, arg1, arg2, arg3) {
25865
26022
  let deferred0_0;
25866
26023
  let deferred0_1;
25867
26024
  try {
@@ -26064,13 +26221,13 @@ function __wbg_get_imports() {
26064
26221
  const ret = TransactionSummary.__wrap(arg0);
26065
26222
  return ret;
26066
26223
  },
26067
- __wbg_undoAccountStates_cb4dbf5c6f4d06e9: function(arg0, arg1, arg2, arg3) {
26224
+ __wbg_undoAccountStates_829a6daf4a392818: function(arg0, arg1, arg2, arg3) {
26068
26225
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
26069
26226
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
26070
26227
  const ret = undoAccountStates(getStringFromWasm0(arg0, arg1), v0);
26071
26228
  return ret;
26072
26229
  },
26073
- __wbg_upsertAccountCode_796427764c9198f0: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26230
+ __wbg_upsertAccountCode_f24cee98a5bbbfe5: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26074
26231
  let deferred0_0;
26075
26232
  let deferred0_1;
26076
26233
  try {
@@ -26084,7 +26241,7 @@ function __wbg_get_imports() {
26084
26241
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26085
26242
  }
26086
26243
  },
26087
- __wbg_upsertAccountRecord_0a876f8ec19f47bb: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) {
26244
+ __wbg_upsertAccountRecord_f616812a7dd3d5a1: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) {
26088
26245
  let deferred0_0;
26089
26246
  let deferred0_1;
26090
26247
  let deferred1_0;
@@ -26126,7 +26283,7 @@ function __wbg_get_imports() {
26126
26283
  wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
26127
26284
  }
26128
26285
  },
26129
- __wbg_upsertAccountStorage_8bde852e4a19d8df: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26286
+ __wbg_upsertAccountStorage_4f3a4494f26975fb: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26130
26287
  let deferred0_0;
26131
26288
  let deferred0_1;
26132
26289
  try {
@@ -26140,7 +26297,7 @@ function __wbg_get_imports() {
26140
26297
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26141
26298
  }
26142
26299
  },
26143
- __wbg_upsertForeignAccountCode_e1fba6198defc496: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
26300
+ __wbg_upsertForeignAccountCode_6595b4d97e610669: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
26144
26301
  let deferred0_0;
26145
26302
  let deferred0_1;
26146
26303
  let deferred2_0;
@@ -26159,7 +26316,7 @@ function __wbg_get_imports() {
26159
26316
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
26160
26317
  }
26161
26318
  },
26162
- __wbg_upsertInputNote_4aa6814b400ee6a6: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20, arg21, arg22, arg23, arg24, arg25, arg26, arg27, arg28) {
26319
+ __wbg_upsertInputNote_850c7540f297f4d4: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20, arg21, arg22, arg23, arg24, arg25, arg26, arg27, arg28) {
26163
26320
  let deferred0_0;
26164
26321
  let deferred0_1;
26165
26322
  let deferred6_0;
@@ -26208,7 +26365,7 @@ function __wbg_get_imports() {
26208
26365
  wasm.__wbindgen_free(deferred9_0, deferred9_1, 1);
26209
26366
  }
26210
26367
  },
26211
- __wbg_upsertNoteScript_03dd7b732ab40d80: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26368
+ __wbg_upsertNoteScript_d946217575ba5025: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26212
26369
  let deferred0_0;
26213
26370
  let deferred0_1;
26214
26371
  try {
@@ -26222,7 +26379,7 @@ function __wbg_get_imports() {
26222
26379
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26223
26380
  }
26224
26381
  },
26225
- __wbg_upsertOutputNote_6625bc60ec9e00c7: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) {
26382
+ __wbg_upsertOutputNote_907da49377d56a48: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) {
26226
26383
  let deferred0_0;
26227
26384
  let deferred0_1;
26228
26385
  let deferred1_0;
@@ -26257,7 +26414,7 @@ function __wbg_get_imports() {
26257
26414
  wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
26258
26415
  }
26259
26416
  },
26260
- __wbg_upsertStorageMapEntries_03e99b5c83445616: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26417
+ __wbg_upsertStorageMapEntries_6bf2d15ad885daf0: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26261
26418
  let deferred0_0;
26262
26419
  let deferred0_1;
26263
26420
  try {
@@ -26271,7 +26428,7 @@ function __wbg_get_imports() {
26271
26428
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26272
26429
  }
26273
26430
  },
26274
- __wbg_upsertTransactionRecord_a5888dce53039ce9: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
26431
+ __wbg_upsertTransactionRecord_0b4dbeb561124c59: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
26275
26432
  let deferred0_0;
26276
26433
  let deferred0_1;
26277
26434
  try {
@@ -26292,7 +26449,7 @@ function __wbg_get_imports() {
26292
26449
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26293
26450
  }
26294
26451
  },
26295
- __wbg_upsertVaultAssets_c9a6f9534551a55b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26452
+ __wbg_upsertVaultAssets_55f07579c9e0113e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26296
26453
  let deferred0_0;
26297
26454
  let deferred0_1;
26298
26455
  try {
@@ -26323,13 +26480,13 @@ function __wbg_get_imports() {
26323
26480
  return ret;
26324
26481
  },
26325
26482
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
26326
- // Cast intrinsic for `Closure(Closure { dtor_idx: 444, function: Function { arguments: [Externref], shim_idx: 815, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26327
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h33c4d85b7d47d9b3, wasm_bindgen__convert__closures_____invoke__hdea2f04753d42788);
26483
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 427, function: Function { arguments: [Externref], shim_idx: 815, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26484
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_8d8dd5a992b1207e___closure__destroy___dyn_core_9b3796e30d99ddb7___ops__function__FnMut__wasm_bindgen_8d8dd5a992b1207e___JsValue____Output_______, wasm_bindgen_8d8dd5a992b1207e___convert__closures_____invoke___wasm_bindgen_8d8dd5a992b1207e___JsValue_____);
26328
26485
  return ret;
26329
26486
  },
26330
26487
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
26331
- // Cast intrinsic for `Closure(Closure { dtor_idx: 444, function: Function { arguments: [], shim_idx: 445, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26332
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h33c4d85b7d47d9b3, wasm_bindgen__convert__closures_____invoke__h26b611bba5136db9);
26488
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 427, function: Function { arguments: [], shim_idx: 428, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26489
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_8d8dd5a992b1207e___closure__destroy___dyn_core_9b3796e30d99ddb7___ops__function__FnMut__wasm_bindgen_8d8dd5a992b1207e___JsValue____Output_______, wasm_bindgen_8d8dd5a992b1207e___convert__closures_____invoke______);
26333
26490
  return ret;
26334
26491
  },
26335
26492
  __wbindgen_cast_0000000000000003: function(arg0) {
@@ -26445,16 +26602,16 @@ function __wbg_get_imports() {
26445
26602
  };
26446
26603
  }
26447
26604
 
26448
- function wasm_bindgen__convert__closures_____invoke__h26b611bba5136db9(arg0, arg1) {
26449
- wasm.wasm_bindgen__convert__closures_____invoke__h26b611bba5136db9(arg0, arg1);
26605
+ function wasm_bindgen_8d8dd5a992b1207e___convert__closures_____invoke______(arg0, arg1) {
26606
+ wasm.wasm_bindgen_8d8dd5a992b1207e___convert__closures_____invoke______(arg0, arg1);
26450
26607
  }
26451
26608
 
26452
- function wasm_bindgen__convert__closures_____invoke__hdea2f04753d42788(arg0, arg1, arg2) {
26453
- wasm.wasm_bindgen__convert__closures_____invoke__hdea2f04753d42788(arg0, arg1, arg2);
26609
+ function wasm_bindgen_8d8dd5a992b1207e___convert__closures_____invoke___wasm_bindgen_8d8dd5a992b1207e___JsValue_____(arg0, arg1, arg2) {
26610
+ wasm.wasm_bindgen_8d8dd5a992b1207e___convert__closures_____invoke___wasm_bindgen_8d8dd5a992b1207e___JsValue_____(arg0, arg1, arg2);
26454
26611
  }
26455
26612
 
26456
- function wasm_bindgen__convert__closures_____invoke__h21e75c0ad5fdcd28(arg0, arg1, arg2, arg3) {
26457
- wasm.wasm_bindgen__convert__closures_____invoke__h21e75c0ad5fdcd28(arg0, arg1, arg2, arg3);
26613
+ function wasm_bindgen_8d8dd5a992b1207e___convert__closures_____invoke___wasm_bindgen_8d8dd5a992b1207e___JsValue__wasm_bindgen_8d8dd5a992b1207e___JsValue_____(arg0, arg1, arg2, arg3) {
26614
+ wasm.wasm_bindgen_8d8dd5a992b1207e___convert__closures_____invoke___wasm_bindgen_8d8dd5a992b1207e___JsValue__wasm_bindgen_8d8dd5a992b1207e___JsValue_____(arg0, arg1, arg2, arg3);
26458
26615
  }
26459
26616
 
26460
26617
 
@@ -27275,7 +27432,7 @@ async function __wbg_init(module_or_path) {
27275
27432
 
27276
27433
  const module$1 = new URL("assets/miden_client_web.wasm", self.location.href);
27277
27434
 
27278
- var CargoCR1mzjgg = /*#__PURE__*/Object.freeze({
27435
+ var CargoDR9fiMbE = /*#__PURE__*/Object.freeze({
27279
27436
  __proto__: null,
27280
27437
  Account: Account,
27281
27438
  AccountArray: AccountArray,
@@ -27302,6 +27459,7 @@ var CargoCR1mzjgg = /*#__PURE__*/Object.freeze({
27302
27459
  Address: Address,
27303
27460
  AdviceInputs: AdviceInputs,
27304
27461
  AdviceMap: AdviceMap,
27462
+ AssetCallbackFlag: AssetCallbackFlag,
27305
27463
  AssetVault: AssetVault,
27306
27464
  AuthFalcon512RpoMultisigConfig: AuthFalcon512RpoMultisigConfig,
27307
27465
  AuthScheme: AuthScheme,