@miden-sdk/miden-sdk 0.15.4 → 0.15.6

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 (45) hide show
  1. package/README.md +29 -0
  2. package/dist/mt/{Cargo-DjVnfWKi.js → Cargo-mvyTli7g.js} +364 -88
  3. package/dist/mt/Cargo-mvyTli7g.js.map +1 -0
  4. package/dist/mt/api-types.d.ts +59 -0
  5. package/dist/mt/assets/miden_client_web.wasm +0 -0
  6. package/dist/mt/crates/miden_client_web.d.ts +108 -1
  7. package/dist/mt/docs-entry.d.ts +1 -0
  8. package/dist/mt/eager.js +1 -1
  9. package/dist/mt/index.js +92 -1
  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-DjVnfWKi-DvLbB_Zb.js → Cargo-mvyTli7g-BwMMSyoq.js} +364 -88
  14. package/dist/mt/workers/Cargo-mvyTli7g-BwMMSyoq.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 +365 -88
  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-Cwpuvlbc.js → Cargo-Cysp4vto.js} +371 -96
  22. package/dist/st/Cargo-Cysp4vto.js.map +1 -0
  23. package/dist/st/api-types.d.ts +59 -0
  24. package/dist/st/assets/miden_client_web.wasm +0 -0
  25. package/dist/st/crates/miden_client_web.d.ts +108 -1
  26. package/dist/st/docs-entry.d.ts +1 -0
  27. package/dist/st/eager.js +1 -1
  28. package/dist/st/index.js +92 -1
  29. package/dist/st/index.js.map +1 -1
  30. package/dist/st/wasm.js +1 -1
  31. package/dist/st/workers/{Cargo-Cwpuvlbc-B0V_MEMU.js → Cargo-Cysp4vto-BIw-TeJn.js} +371 -96
  32. package/dist/st/workers/Cargo-Cysp4vto-BIw-TeJn.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 +372 -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 +3 -0
  39. package/js/resources/transactions.js +91 -0
  40. package/js/standalone.js +61 -0
  41. package/package.json +4 -4
  42. package/dist/mt/Cargo-DjVnfWKi.js.map +0 -1
  43. package/dist/mt/workers/Cargo-DjVnfWKi-DvLbB_Zb.js.map +0 -1
  44. package/dist/st/Cargo-Cwpuvlbc.js.map +0 -1
  45. package/dist/st/workers/Cargo-Cwpuvlbc-B0V_MEMU.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 CargoDjVnfWKi; });
8
+ wasmModule = await Promise.resolve().then(function () { return CargoMvyTli7g; });
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);
@@ -11468,6 +11502,17 @@ class Account {
11468
11502
  const ret = wasm.account_isFaucet(this.__wbg_ptr);
11469
11503
  return ret !== 0;
11470
11504
  }
11505
+ /**
11506
+ * Returns true if this is a network account.
11507
+ *
11508
+ * A network account is a public account whose storage
11509
+ * carries the standardized network-account note-script allowlist slot.
11510
+ * @returns {boolean}
11511
+ */
11512
+ isNetworkAccount() {
11513
+ const ret = wasm.account_isNetworkAccount(this.__wbg_ptr);
11514
+ return ret !== 0;
11515
+ }
11471
11516
  /**
11472
11517
  * Returns true if the account has not yet been committed to the chain.
11473
11518
  * @returns {boolean}
@@ -11500,6 +11545,20 @@ class Account {
11500
11545
  const ret = wasm.account_isRegularAccount(this.__wbg_ptr);
11501
11546
  return ret !== 0;
11502
11547
  }
11548
+ /**
11549
+ * Returns the note-script roots this network account is allowed to
11550
+ * consume, or `undefined` if this is not a network account.
11551
+ * @returns {Word[] | undefined}
11552
+ */
11553
+ networkNoteAllowlist() {
11554
+ const ret = wasm.account_networkNoteAllowlist(this.__wbg_ptr);
11555
+ let v1;
11556
+ if (ret[0] !== 0) {
11557
+ v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
11558
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
11559
+ }
11560
+ return v1;
11561
+ }
11503
11562
  /**
11504
11563
  * Returns the account nonce, which is incremented on every state update.
11505
11564
  * @returns {Felt}
@@ -11879,6 +11938,42 @@ class AccountComponent {
11879
11938
  }
11880
11939
  return AccountComponent.__wrap(ret[0]);
11881
11940
  }
11941
+ /**
11942
+ * Builds the auth component for a network account.
11943
+ *
11944
+ * A network account is a public account carrying this component: its
11945
+ * note-script allowlist is the standardized storage slot the node's
11946
+ * network-transaction builder inspects to identify the account as a network
11947
+ * account and route matching notes to it for auto-consumption. The account
11948
+ * may only consume notes whose script root is in `allowedNoteScriptRoots`
11949
+ * (obtain a root via `NoteScript.root()`).
11950
+ *
11951
+ * `allowedTxScriptRoots` optionally allowlists transaction script roots
11952
+ * (from `TransactionScript.root()`) the account will execute. When omitted
11953
+ * or empty, the account permits no transaction scripts and deploys and
11954
+ * advances via scriptless transactions only. Allowlist a script root only
11955
+ * if the script's effect is safe for *every* possible input: a root pins
11956
+ * the script's code but not its arguments or advice inputs, which the
11957
+ * (arbitrary) transaction submitter controls.
11958
+ *
11959
+ * # Errors
11960
+ * Errors if `allowedNoteScriptRoots` is empty: a network account with no
11961
+ * allowlisted note scripts could never consume a note.
11962
+ * @param {Word[]} allowed_note_script_roots
11963
+ * @param {Word[] | null} [allowed_tx_script_roots]
11964
+ * @returns {AccountComponent}
11965
+ */
11966
+ static createNetworkAuth(allowed_note_script_roots, allowed_tx_script_roots) {
11967
+ const ptr0 = passArrayJsValueToWasm0(allowed_note_script_roots, wasm.__wbindgen_malloc);
11968
+ const len0 = WASM_VECTOR_LEN;
11969
+ var ptr1 = isLikeNone(allowed_tx_script_roots) ? 0 : passArrayJsValueToWasm0(allowed_tx_script_roots, wasm.__wbindgen_malloc);
11970
+ var len1 = WASM_VECTOR_LEN;
11971
+ const ret = wasm.accountcomponent_createNetworkAuth(ptr0, len0, ptr1, len1);
11972
+ if (ret[2]) {
11973
+ throw takeFromExternrefTable0(ret[1]);
11974
+ }
11975
+ return AccountComponent.__wrap(ret[0]);
11976
+ }
11882
11977
  /**
11883
11978
  * Creates an account component from a compiled library and storage slots.
11884
11979
  * @param {Library} library
@@ -14067,7 +14162,7 @@ class CodeBuilder {
14067
14162
  * Given a Library Path, and a source code, turn it into a Library.
14068
14163
  * E.g. A path library can be `miden::my_contract`. When turned into a library,
14069
14164
  * this can be used from another script with an import statement, following the
14070
- * previous example: `use miden::my_contract'.
14165
+ * previous example: `use miden::my_contract`.
14071
14166
  * @param {string} library_path
14072
14167
  * @param {string} source_code
14073
14168
  * @returns {Library}
@@ -15624,6 +15719,16 @@ class InputNoteRecord {
15624
15719
  const ret = wasm.inputnoterecord_isConsumed(this.__wbg_ptr);
15625
15720
  return ret !== 0;
15626
15721
  }
15722
+ /**
15723
+ * Returns true while the note's on-chain inclusion is still unsettled
15724
+ * (`Expected` or `Unverified`), i.e. while sync is the mechanism that can
15725
+ * advance this record.
15726
+ * @returns {boolean}
15727
+ */
15728
+ isInclusionPending() {
15729
+ const ret = wasm.inputnoterecord_isInclusionPending(this.__wbg_ptr);
15730
+ return ret !== 0;
15731
+ }
15627
15732
  /**
15628
15733
  * Returns true if the note is currently being processed.
15629
15734
  * @returns {boolean}
@@ -16910,6 +17015,97 @@ class MerklePath {
16910
17015
  }
16911
17016
  if (Symbol.dispose) MerklePath.prototype[Symbol.dispose] = MerklePath.prototype.free;
16912
17017
 
17018
+ /**
17019
+ * Targets a note at a public network account so the operator auto-consumes it.
17020
+ *
17021
+ * A note is a network note when it is `Public` and carries a valid
17022
+ * `NetworkAccountTarget` attachment (see `Note.isNetworkNote`).
17023
+ */
17024
+ class NetworkAccountTarget {
17025
+ static __wrap(ptr) {
17026
+ ptr = ptr >>> 0;
17027
+ const obj = Object.create(NetworkAccountTarget.prototype);
17028
+ obj.__wbg_ptr = ptr;
17029
+ NetworkAccountTargetFinalization.register(obj, obj.__wbg_ptr, obj);
17030
+ return obj;
17031
+ }
17032
+ __destroy_into_raw() {
17033
+ const ptr = this.__wbg_ptr;
17034
+ this.__wbg_ptr = 0;
17035
+ NetworkAccountTargetFinalization.unregister(this);
17036
+ return ptr;
17037
+ }
17038
+ free() {
17039
+ const ptr = this.__destroy_into_raw();
17040
+ wasm.__wbg_networkaccounttarget_free(ptr, 0);
17041
+ }
17042
+ /**
17043
+ * Returns the note execution hint.
17044
+ * @returns {NoteExecutionHint}
17045
+ */
17046
+ executionHint() {
17047
+ const ret = wasm.networkaccounttarget_executionHint(this.__wbg_ptr);
17048
+ return NoteExecutionHint.__wrap(ret);
17049
+ }
17050
+ /**
17051
+ * Decodes a `NoteAttachment` back into a `NetworkAccountTarget`.
17052
+ *
17053
+ * # Errors
17054
+ * Errors if the attachment is not a valid network-account-target attachment.
17055
+ * @param {NoteAttachment} attachment
17056
+ * @returns {NetworkAccountTarget}
17057
+ */
17058
+ static fromAttachment(attachment) {
17059
+ _assertClass(attachment, NoteAttachment);
17060
+ const ret = wasm.networkaccounttarget_fromAttachment(attachment.__wbg_ptr);
17061
+ if (ret[2]) {
17062
+ throw takeFromExternrefTable0(ret[1]);
17063
+ }
17064
+ return NetworkAccountTarget.__wrap(ret[0]);
17065
+ }
17066
+ /**
17067
+ * Creates a target for the given network account. `executionHint` defaults
17068
+ * to `NoteExecutionHint.always()`.
17069
+ *
17070
+ * # Errors
17071
+ * Errors if `account_id` is not a public account.
17072
+ * @param {AccountId} account_id
17073
+ * @param {NoteExecutionHint | null} [execution_hint]
17074
+ */
17075
+ constructor(account_id, execution_hint) {
17076
+ _assertClass(account_id, AccountId);
17077
+ let ptr0 = 0;
17078
+ if (!isLikeNone(execution_hint)) {
17079
+ _assertClass(execution_hint, NoteExecutionHint);
17080
+ ptr0 = execution_hint.__destroy_into_raw();
17081
+ }
17082
+ const ret = wasm.networkaccounttarget_new(account_id.__wbg_ptr, ptr0);
17083
+ if (ret[2]) {
17084
+ throw takeFromExternrefTable0(ret[1]);
17085
+ }
17086
+ this.__wbg_ptr = ret[0] >>> 0;
17087
+ NetworkAccountTargetFinalization.register(this, this.__wbg_ptr, this);
17088
+ return this;
17089
+ }
17090
+ /**
17091
+ * Returns the targeted network account id.
17092
+ * @returns {AccountId}
17093
+ */
17094
+ targetId() {
17095
+ const ret = wasm.accountreader_accountId(this.__wbg_ptr);
17096
+ return AccountId.__wrap(ret);
17097
+ }
17098
+ /**
17099
+ * Encodes this target as a `NoteAttachment`.
17100
+ * @returns {NoteAttachment}
17101
+ */
17102
+ toAttachment() {
17103
+ const ret = wasm.networkaccounttarget_toAttachment(this.__wbg_ptr);
17104
+ return NoteAttachment.__wrap(ret);
17105
+ }
17106
+ }
17107
+ if (Symbol.dispose) NetworkAccountTarget.prototype[Symbol.dispose] = NetworkAccountTarget.prototype.free;
17108
+
16913
17109
  /**
16914
17110
  * The identifier of a Miden network.
16915
17111
  */
@@ -17103,6 +17299,16 @@ class Note {
17103
17299
  const ret = wasm.note_assets(this.__wbg_ptr);
17104
17300
  return NoteAssets.__wrap(ret);
17105
17301
  }
17302
+ /**
17303
+ * Returns the note's attachments.
17304
+ * @returns {NoteAttachment[]}
17305
+ */
17306
+ attachments() {
17307
+ const ret = wasm.note_attachments(this.__wbg_ptr);
17308
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
17309
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
17310
+ return v1;
17311
+ }
17106
17312
  /**
17107
17313
  * Returns the commitment to the note (its ID).
17108
17314
  *
@@ -17204,6 +17410,15 @@ class Note {
17204
17410
  const ret = wasm.note_commitment(this.__wbg_ptr);
17205
17411
  return NoteId.__wrap(ret);
17206
17412
  }
17413
+ /**
17414
+ * Returns true if the note is a network note (public + a valid
17415
+ * `NetworkAccountTarget` attachment).
17416
+ * @returns {boolean}
17417
+ */
17418
+ isNetworkNote() {
17419
+ const ret = wasm.note_isNetworkNote(this.__wbg_ptr);
17420
+ return ret !== 0;
17421
+ }
17207
17422
  /**
17208
17423
  * Returns the public metadata associated with the note.
17209
17424
  * @returns {NoteMetadata}
@@ -17263,6 +17478,30 @@ class Note {
17263
17478
  const ret = wasm.note_serialize(this.__wbg_ptr);
17264
17479
  return ret;
17265
17480
  }
17481
+ /**
17482
+ * Creates a note carrying the provided attachments, using the metadata's
17483
+ * sender / note type / tag (attachments on the metadata itself are ignored).
17484
+ *
17485
+ * # Errors
17486
+ * Errors if the attachment set is invalid (too many attachments or words).
17487
+ * @param {NoteAssets} note_assets
17488
+ * @param {NoteMetadata} note_metadata
17489
+ * @param {NoteRecipient} note_recipient
17490
+ * @param {NoteAttachment[]} attachments
17491
+ * @returns {Note}
17492
+ */
17493
+ static withAttachments(note_assets, note_metadata, note_recipient, attachments) {
17494
+ _assertClass(note_assets, NoteAssets);
17495
+ _assertClass(note_metadata, NoteMetadata);
17496
+ _assertClass(note_recipient, NoteRecipient);
17497
+ const ptr0 = passArrayJsValueToWasm0(attachments, wasm.__wbindgen_malloc);
17498
+ const len0 = WASM_VECTOR_LEN;
17499
+ const ret = wasm.note_withAttachments(note_assets.__wbg_ptr, note_metadata.__wbg_ptr, note_recipient.__wbg_ptr, ptr0, len0);
17500
+ if (ret[2]) {
17501
+ throw takeFromExternrefTable0(ret[1]);
17502
+ }
17503
+ return Note.__wrap(ret[0]);
17504
+ }
17266
17505
  }
17267
17506
  if (Symbol.dispose) Note.prototype[Symbol.dispose] = Note.prototype.free;
17268
17507
 
@@ -17530,6 +17769,12 @@ class NoteAttachment {
17530
17769
  NoteAttachmentFinalization.register(obj, obj.__wbg_ptr, obj);
17531
17770
  return obj;
17532
17771
  }
17772
+ static __unwrap(jsValue) {
17773
+ if (!(jsValue instanceof NoteAttachment)) {
17774
+ return 0;
17775
+ }
17776
+ return jsValue.__destroy_into_raw();
17777
+ }
17533
17778
  __destroy_into_raw() {
17534
17779
  const ptr = this.__wbg_ptr;
17535
17780
  this.__wbg_ptr = 0;
@@ -18760,6 +19005,19 @@ class NoteRecipient {
18760
19005
  const ret = wasm.accountheader_storageCommitment(this.__wbg_ptr);
18761
19006
  return Word.__wrap(ret);
18762
19007
  }
19008
+ /**
19009
+ * Creates a recipient from a script and storage, generating a fresh random
19010
+ * serial number (the secret that prevents double-spends).
19011
+ * @param {NoteScript} note_script
19012
+ * @param {NoteStorage} storage
19013
+ * @returns {NoteRecipient}
19014
+ */
19015
+ static fromScript(note_script, storage) {
19016
+ _assertClass(note_script, NoteScript);
19017
+ _assertClass(storage, NoteStorage);
19018
+ const ret = wasm.noterecipient_fromScript(note_script.__wbg_ptr, storage.__wbg_ptr);
19019
+ return NoteRecipient.__wrap(ret);
19020
+ }
18763
19021
  /**
18764
19022
  * Creates a note recipient from its serial number, script, and storage.
18765
19023
  * @param {Word} serial_num
@@ -19482,6 +19740,16 @@ class OutputNoteRecord {
19482
19740
  const ret = wasm.outputnoterecord_isConsumed(this.__wbg_ptr);
19483
19741
  return ret !== 0;
19484
19742
  }
19743
+ /**
19744
+ * Returns true while the note's on-chain inclusion is still unsettled
19745
+ * (`ExpectedFull` or `ExpectedPartial`), i.e. while sync is the mechanism
19746
+ * that can advance this record.
19747
+ * @returns {boolean}
19748
+ */
19749
+ isInclusionPending() {
19750
+ const ret = wasm.outputnoterecord_isInclusionPending(this.__wbg_ptr);
19751
+ return ret !== 0;
19752
+ }
19485
19753
  /**
19486
19754
  * Returns the note metadata.
19487
19755
  * @returns {NoteMetadata}
@@ -24840,7 +25108,7 @@ function __wbg_get_imports(memory) {
24840
25108
  const ret = AccountStorage.__wrap(arg0);
24841
25109
  return ret;
24842
25110
  },
24843
- __wbg_addNoteTag_c9e7d0b19a1ff17c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
25111
+ __wbg_addNoteTag_c1d851535ec0e098: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
24844
25112
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
24845
25113
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
24846
25114
  let v1;
@@ -24868,25 +25136,25 @@ function __wbg_get_imports(memory) {
24868
25136
  __wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
24869
25137
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
24870
25138
  }, arguments); },
24871
- __wbg_applyFullAccountState_01b8235561567534: function(arg0, arg1, arg2) {
25139
+ __wbg_applyFullAccountState_a76a7cf1d93a9554: function(arg0, arg1, arg2) {
24872
25140
  const ret = applyFullAccountState(getStringFromWasm0(arg0, arg1), JsAccountUpdate.__wrap(arg2));
24873
25141
  return ret;
24874
25142
  },
24875
- __wbg_applySettingsMutations_c70b3f973d7125bf: function(arg0, arg1, arg2, arg3) {
25143
+ __wbg_applySettingsMutations_e98dbb5827d3ec93: function(arg0, arg1, arg2, arg3) {
24876
25144
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24877
25145
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24878
25146
  const ret = applySettingsMutations(getStringFromWasm0(arg0, arg1), v0);
24879
25147
  return ret;
24880
25148
  },
24881
- __wbg_applyStateSync_2aab7a3f6871f365: function(arg0, arg1, arg2) {
25149
+ __wbg_applyStateSync_c365f1affe42d064: function(arg0, arg1, arg2) {
24882
25150
  const ret = applyStateSync(getStringFromWasm0(arg0, arg1), JsStateSyncUpdate.__wrap(arg2));
24883
25151
  return ret;
24884
25152
  },
24885
- __wbg_applyTransactionBatch_ff6324c1b699e0bc: function(arg0, arg1, arg2) {
25153
+ __wbg_applyTransactionBatch_0b07b42c93c25447: function(arg0, arg1, arg2) {
24886
25154
  const ret = applyTransactionBatch(getStringFromWasm0(arg0, arg1), arg2);
24887
25155
  return ret;
24888
25156
  },
24889
- __wbg_applyTransactionDelta_0bb2bf313e438504: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20) {
25157
+ __wbg_applyTransactionDelta_93fac37bf6e15192: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20) {
24890
25158
  let deferred0_0;
24891
25159
  let deferred0_1;
24892
25160
  let deferred1_0;
@@ -25037,7 +25305,7 @@ function __wbg_get_imports(memory) {
25037
25305
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25038
25306
  }
25039
25307
  },
25040
- __wbg_exportStore_a3251a108aa7b844: function(arg0, arg1) {
25308
+ __wbg_exportStore_ca32cf4c9f46f56b: function(arg0, arg1) {
25041
25309
  const ret = exportStore(getStringFromWasm0(arg0, arg1));
25042
25310
  return ret;
25043
25311
  },
@@ -25069,7 +25337,7 @@ function __wbg_get_imports(memory) {
25069
25337
  const ret = FetchedNote.__wrap(arg0);
25070
25338
  return ret;
25071
25339
  },
25072
- __wbg_forceImportStore_cefb1d26c504a17a: function(arg0, arg1, arg2) {
25340
+ __wbg_forceImportStore_8bb9e5bbca5e1513: function(arg0, arg1, arg2) {
25073
25341
  const ret = forceImportStore(getStringFromWasm0(arg0, arg1), arg2);
25074
25342
  return ret;
25075
25343
  },
@@ -25093,7 +25361,7 @@ function __wbg_get_imports(memory) {
25093
25361
  const ret = FungibleAssetDeltaItem.__wrap(arg0);
25094
25362
  return ret;
25095
25363
  },
25096
- __wbg_getAccountAddresses_6bda8d40b7d06085: function(arg0, arg1, arg2, arg3) {
25364
+ __wbg_getAccountAddresses_d068c1e15e7a3f69: function(arg0, arg1, arg2, arg3) {
25097
25365
  let deferred0_0;
25098
25366
  let deferred0_1;
25099
25367
  try {
@@ -25105,7 +25373,7 @@ function __wbg_get_imports(memory) {
25105
25373
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25106
25374
  }
25107
25375
  },
25108
- __wbg_getAccountAuthByPubKeyCommitment_3e272c0653b69f25: function(arg0, arg1, arg2, arg3) {
25376
+ __wbg_getAccountAuthByPubKeyCommitment_8f67fb0e63c7bd2e: function(arg0, arg1, arg2, arg3) {
25109
25377
  let deferred0_0;
25110
25378
  let deferred0_1;
25111
25379
  try {
@@ -25117,7 +25385,7 @@ function __wbg_get_imports(memory) {
25117
25385
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25118
25386
  }
25119
25387
  },
25120
- __wbg_getAccountCode_66c23e814ccb0b75: function(arg0, arg1, arg2, arg3) {
25388
+ __wbg_getAccountCode_c9e87e9228f99d8a: function(arg0, arg1, arg2, arg3) {
25121
25389
  let deferred0_0;
25122
25390
  let deferred0_1;
25123
25391
  try {
@@ -25129,7 +25397,7 @@ function __wbg_get_imports(memory) {
25129
25397
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25130
25398
  }
25131
25399
  },
25132
- __wbg_getAccountHeaderByCommitment_e77460136385053d: function(arg0, arg1, arg2, arg3) {
25400
+ __wbg_getAccountHeaderByCommitment_918253bae03e21bd: function(arg0, arg1, arg2, arg3) {
25133
25401
  let deferred0_0;
25134
25402
  let deferred0_1;
25135
25403
  try {
@@ -25141,7 +25409,7 @@ function __wbg_get_imports(memory) {
25141
25409
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25142
25410
  }
25143
25411
  },
25144
- __wbg_getAccountHeader_1087552d17a99751: function(arg0, arg1, arg2, arg3) {
25412
+ __wbg_getAccountHeader_19a4cbeb88903833: function(arg0, arg1, arg2, arg3) {
25145
25413
  let deferred0_0;
25146
25414
  let deferred0_1;
25147
25415
  try {
@@ -25153,7 +25421,7 @@ function __wbg_get_imports(memory) {
25153
25421
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25154
25422
  }
25155
25423
  },
25156
- __wbg_getAccountIdByKeyCommitment_7e1292d010257f58: function(arg0, arg1, arg2, arg3) {
25424
+ __wbg_getAccountIdByKeyCommitment_2461fd858ac229a5: function(arg0, arg1, arg2, arg3) {
25157
25425
  let deferred0_0;
25158
25426
  let deferred0_1;
25159
25427
  try {
@@ -25165,11 +25433,11 @@ function __wbg_get_imports(memory) {
25165
25433
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25166
25434
  }
25167
25435
  },
25168
- __wbg_getAccountIds_aa202a56a3aa2095: function(arg0, arg1) {
25436
+ __wbg_getAccountIds_6ce312ac9bfb1b31: function(arg0, arg1) {
25169
25437
  const ret = getAccountIds(getStringFromWasm0(arg0, arg1));
25170
25438
  return ret;
25171
25439
  },
25172
- __wbg_getAccountStorageMaps_83fcada97acbc4d3: function(arg0, arg1, arg2, arg3) {
25440
+ __wbg_getAccountStorageMaps_18420aab10cd69bd: function(arg0, arg1, arg2, arg3) {
25173
25441
  let deferred0_0;
25174
25442
  let deferred0_1;
25175
25443
  try {
@@ -25181,7 +25449,7 @@ function __wbg_get_imports(memory) {
25181
25449
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25182
25450
  }
25183
25451
  },
25184
- __wbg_getAccountStorage_7da5087b3d6719c9: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25452
+ __wbg_getAccountStorage_ffe7596409c9223c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25185
25453
  let deferred0_0;
25186
25454
  let deferred0_1;
25187
25455
  try {
@@ -25195,7 +25463,7 @@ function __wbg_get_imports(memory) {
25195
25463
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25196
25464
  }
25197
25465
  },
25198
- __wbg_getAccountVaultAssets_a7f15cd5706a07f0: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25466
+ __wbg_getAccountVaultAssets_af709bb72685df4c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25199
25467
  let deferred0_0;
25200
25468
  let deferred0_1;
25201
25469
  try {
@@ -25209,27 +25477,27 @@ function __wbg_get_imports(memory) {
25209
25477
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25210
25478
  }
25211
25479
  },
25212
- __wbg_getAllAccountHeaders_20b2442034a1d33a: function(arg0, arg1) {
25480
+ __wbg_getAllAccountHeaders_41895be7c409b88e: function(arg0, arg1) {
25213
25481
  const ret = getAllAccountHeaders(getStringFromWasm0(arg0, arg1));
25214
25482
  return ret;
25215
25483
  },
25216
- __wbg_getBlockHeaders_14c17869ac14ff20: function(arg0, arg1, arg2, arg3) {
25484
+ __wbg_getBlockHeaders_5fd7167f134e5843: function(arg0, arg1, arg2, arg3) {
25217
25485
  var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
25218
25486
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25219
25487
  const ret = getBlockHeaders(getStringFromWasm0(arg0, arg1), v0);
25220
25488
  return ret;
25221
25489
  },
25222
- __wbg_getCurrentBlockchainPeaks_f25ec9bf8fbcfb01: function(arg0, arg1) {
25490
+ __wbg_getCurrentBlockchainPeaks_0d572807e1e9e2ae: function(arg0, arg1) {
25223
25491
  const ret = getCurrentBlockchainPeaks(getStringFromWasm0(arg0, arg1));
25224
25492
  return ret;
25225
25493
  },
25226
- __wbg_getForeignAccountCode_aa888a2e4d67c198: function(arg0, arg1, arg2, arg3) {
25494
+ __wbg_getForeignAccountCode_844c11a17626e563: function(arg0, arg1, arg2, arg3) {
25227
25495
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25228
25496
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25229
25497
  const ret = getForeignAccountCode(getStringFromWasm0(arg0, arg1), v0);
25230
25498
  return ret;
25231
25499
  },
25232
- __wbg_getInputNoteByOffset_28a7b0db364e3661: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
25500
+ __wbg_getInputNoteByOffset_9ab1440d682c55fb: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
25233
25501
  let deferred1_0;
25234
25502
  let deferred1_1;
25235
25503
  try {
@@ -25243,31 +25511,31 @@ function __wbg_get_imports(memory) {
25243
25511
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25244
25512
  }
25245
25513
  },
25246
- __wbg_getInputNotesFromDetailsCommitments_cd9aae9ebea29ae8: function(arg0, arg1, arg2, arg3) {
25514
+ __wbg_getInputNotesFromDetailsCommitments_0d7a37a6d01eab53: function(arg0, arg1, arg2, arg3) {
25247
25515
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25248
25516
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25249
25517
  const ret = getInputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
25250
25518
  return ret;
25251
25519
  },
25252
- __wbg_getInputNotesFromIds_2ac71ad2b96eacdc: function(arg0, arg1, arg2, arg3) {
25520
+ __wbg_getInputNotesFromIds_27c39054c73a044b: function(arg0, arg1, arg2, arg3) {
25253
25521
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25254
25522
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25255
25523
  const ret = getInputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
25256
25524
  return ret;
25257
25525
  },
25258
- __wbg_getInputNotesFromNullifiers_784b00260b622e0a: function(arg0, arg1, arg2, arg3) {
25526
+ __wbg_getInputNotesFromNullifiers_301cdfb81aa319a7: function(arg0, arg1, arg2, arg3) {
25259
25527
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25260
25528
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25261
25529
  const ret = getInputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
25262
25530
  return ret;
25263
25531
  },
25264
- __wbg_getInputNotes_554b394a036cce35: function(arg0, arg1, arg2, arg3) {
25532
+ __wbg_getInputNotes_7d1b39ca9e78db47: function(arg0, arg1, arg2, arg3) {
25265
25533
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25266
25534
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25267
25535
  const ret = getInputNotes(getStringFromWasm0(arg0, arg1), v0);
25268
25536
  return ret;
25269
25537
  },
25270
- __wbg_getKeyCommitmentsByAccountId_dc8ddc1944776f77: function(arg0, arg1, arg2, arg3) {
25538
+ __wbg_getKeyCommitmentsByAccountId_81ce3e1041e3bed0: function(arg0, arg1, arg2, arg3) {
25271
25539
  let deferred0_0;
25272
25540
  let deferred0_1;
25273
25541
  try {
@@ -25279,7 +25547,7 @@ function __wbg_get_imports(memory) {
25279
25547
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25280
25548
  }
25281
25549
  },
25282
- __wbg_getNoteScript_fb7f3a8b5693efd3: function(arg0, arg1, arg2, arg3) {
25550
+ __wbg_getNoteScript_5be6f18daf0b0cff: function(arg0, arg1, arg2, arg3) {
25283
25551
  let deferred0_0;
25284
25552
  let deferred0_1;
25285
25553
  try {
@@ -25291,39 +25559,39 @@ function __wbg_get_imports(memory) {
25291
25559
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25292
25560
  }
25293
25561
  },
25294
- __wbg_getNoteTags_e58900169fc93b17: function(arg0, arg1) {
25562
+ __wbg_getNoteTags_43e80680e54bade8: function(arg0, arg1) {
25295
25563
  const ret = getNoteTags(getStringFromWasm0(arg0, arg1));
25296
25564
  return ret;
25297
25565
  },
25298
- __wbg_getOutputNotesFromDetailsCommitments_b67eef4a469d243f: function(arg0, arg1, arg2, arg3) {
25566
+ __wbg_getOutputNotesFromDetailsCommitments_68e3dca9188e3f99: function(arg0, arg1, arg2, arg3) {
25299
25567
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25300
25568
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25301
25569
  const ret = getOutputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
25302
25570
  return ret;
25303
25571
  },
25304
- __wbg_getOutputNotesFromIds_3e2e083d5e6307b4: function(arg0, arg1, arg2, arg3) {
25572
+ __wbg_getOutputNotesFromIds_768649a70e0c7bfb: function(arg0, arg1, arg2, arg3) {
25305
25573
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25306
25574
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25307
25575
  const ret = getOutputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
25308
25576
  return ret;
25309
25577
  },
25310
- __wbg_getOutputNotesFromNullifiers_f80d6022e4d273ae: function(arg0, arg1, arg2, arg3) {
25578
+ __wbg_getOutputNotesFromNullifiers_c7ed92290ce3947a: function(arg0, arg1, arg2, arg3) {
25311
25579
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25312
25580
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25313
25581
  const ret = getOutputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
25314
25582
  return ret;
25315
25583
  },
25316
- __wbg_getOutputNotes_edbf80cf7cd0b908: function(arg0, arg1, arg2, arg3) {
25584
+ __wbg_getOutputNotes_b3ad1953a5193c80: function(arg0, arg1, arg2, arg3) {
25317
25585
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25318
25586
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25319
25587
  const ret = getOutputNotes(getStringFromWasm0(arg0, arg1), v0);
25320
25588
  return ret;
25321
25589
  },
25322
- __wbg_getPartialBlockchainNodesAll_c415a12245c31d24: function(arg0, arg1) {
25590
+ __wbg_getPartialBlockchainNodesAll_6834180a437e7c63: function(arg0, arg1) {
25323
25591
  const ret = getPartialBlockchainNodesAll(getStringFromWasm0(arg0, arg1));
25324
25592
  return ret;
25325
25593
  },
25326
- __wbg_getPartialBlockchainNodesUpToInOrderIndex_13c0f9e58345c3dd: function(arg0, arg1, arg2, arg3) {
25594
+ __wbg_getPartialBlockchainNodesUpToInOrderIndex_94dc7d751d77e648: function(arg0, arg1, arg2, arg3) {
25327
25595
  let deferred0_0;
25328
25596
  let deferred0_1;
25329
25597
  try {
@@ -25335,7 +25603,7 @@ function __wbg_get_imports(memory) {
25335
25603
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25336
25604
  }
25337
25605
  },
25338
- __wbg_getPartialBlockchainNodes_65b845ff2a25659c: function(arg0, arg1, arg2, arg3) {
25606
+ __wbg_getPartialBlockchainNodes_af5bd7d7471ef114: function(arg0, arg1, arg2, arg3) {
25339
25607
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25340
25608
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25341
25609
  const ret = getPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0);
@@ -25348,7 +25616,7 @@ function __wbg_get_imports(memory) {
25348
25616
  const ret = arg0.getReader();
25349
25617
  return ret;
25350
25618
  }, arguments); },
25351
- __wbg_getSetting_652a441d00c2ff02: function(arg0, arg1, arg2, arg3) {
25619
+ __wbg_getSetting_f06b2891fbabc9cf: function(arg0, arg1, arg2, arg3) {
25352
25620
  let deferred0_0;
25353
25621
  let deferred0_1;
25354
25622
  try {
@@ -25360,7 +25628,7 @@ function __wbg_get_imports(memory) {
25360
25628
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25361
25629
  }
25362
25630
  },
25363
- __wbg_getSyncHeight_47274f9a308f2ea0: function(arg0, arg1) {
25631
+ __wbg_getSyncHeight_d79b93a5d88a10be: function(arg0, arg1) {
25364
25632
  const ret = getSyncHeight(getStringFromWasm0(arg0, arg1));
25365
25633
  return ret;
25366
25634
  },
@@ -25368,15 +25636,15 @@ function __wbg_get_imports(memory) {
25368
25636
  const ret = arg0.getTime();
25369
25637
  return ret;
25370
25638
  },
25371
- __wbg_getTrackedBlockHeaderNumbers_7f699d8776e5342e: function(arg0, arg1) {
25639
+ __wbg_getTrackedBlockHeaderNumbers_f0d5e2f2232551cc: function(arg0, arg1) {
25372
25640
  const ret = getTrackedBlockHeaderNumbers(getStringFromWasm0(arg0, arg1));
25373
25641
  return ret;
25374
25642
  },
25375
- __wbg_getTrackedBlockHeaders_9257cc5c828b3847: function(arg0, arg1) {
25643
+ __wbg_getTrackedBlockHeaders_db61d3cc39ec8dba: function(arg0, arg1) {
25376
25644
  const ret = getTrackedBlockHeaders(getStringFromWasm0(arg0, arg1));
25377
25645
  return ret;
25378
25646
  },
25379
- __wbg_getTransactions_042b4178983dd070: function(arg0, arg1, arg2, arg3) {
25647
+ __wbg_getTransactions_00723f63af87e326: function(arg0, arg1, arg2, arg3) {
25380
25648
  let deferred0_0;
25381
25649
  let deferred0_1;
25382
25650
  try {
@@ -25388,7 +25656,7 @@ function __wbg_get_imports(memory) {
25388
25656
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25389
25657
  }
25390
25658
  },
25391
- __wbg_getUnspentInputNoteNullifiers_af62c37e3bf9a116: function(arg0, arg1) {
25659
+ __wbg_getUnspentInputNoteNullifiers_5352631c6015d6e5: function(arg0, arg1) {
25392
25660
  const ret = getUnspentInputNoteNullifiers(getStringFromWasm0(arg0, arg1));
25393
25661
  return ret;
25394
25662
  },
@@ -25432,7 +25700,7 @@ function __wbg_get_imports(memory) {
25432
25700
  const ret = InputNoteRecord.__wrap(arg0);
25433
25701
  return ret;
25434
25702
  },
25435
- __wbg_insertAccountAddress_9750679ae673f231: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25703
+ __wbg_insertAccountAddress_a8f49a2f8f6ff0f1: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25436
25704
  let deferred0_0;
25437
25705
  let deferred0_1;
25438
25706
  try {
@@ -25446,7 +25714,7 @@ function __wbg_get_imports(memory) {
25446
25714
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25447
25715
  }
25448
25716
  },
25449
- __wbg_insertAccountAuth_4468784a0311c9e3: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25717
+ __wbg_insertAccountAuth_3a2314a58a464f90: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25450
25718
  let deferred0_0;
25451
25719
  let deferred0_1;
25452
25720
  let deferred1_0;
@@ -25463,7 +25731,7 @@ function __wbg_get_imports(memory) {
25463
25731
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25464
25732
  }
25465
25733
  },
25466
- __wbg_insertAccountKeyMapping_1018a4c4e3136ea9: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25734
+ __wbg_insertAccountKeyMapping_72c6d4d8b9306667: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25467
25735
  let deferred0_0;
25468
25736
  let deferred0_1;
25469
25737
  let deferred1_0;
@@ -25480,13 +25748,13 @@ function __wbg_get_imports(memory) {
25480
25748
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25481
25749
  }
25482
25750
  },
25483
- __wbg_insertBlockHeader_5f9db8fbf493cd05: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25751
+ __wbg_insertBlockHeader_305b039a9623ae0f: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25484
25752
  var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
25485
25753
  wasm.__wbindgen_free(arg3, arg4 * 1, 1);
25486
25754
  const ret = insertBlockHeader(getStringFromWasm0(arg0, arg1), arg2 >>> 0, v0, arg5 !== 0);
25487
25755
  return ret;
25488
25756
  },
25489
- __wbg_insertPartialBlockchainNodes_3bac74a5a63676ec: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25757
+ __wbg_insertPartialBlockchainNodes_cf3566f492028425: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25490
25758
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25491
25759
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25492
25760
  var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
@@ -25494,7 +25762,7 @@ function __wbg_get_imports(memory) {
25494
25762
  const ret = insertPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0, v1);
25495
25763
  return ret;
25496
25764
  },
25497
- __wbg_insertSetting_3f9497eda301dd4d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25765
+ __wbg_insertSetting_0f1cae5afcfb4023: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25498
25766
  let deferred0_0;
25499
25767
  let deferred0_1;
25500
25768
  try {
@@ -25508,7 +25776,7 @@ function __wbg_get_imports(memory) {
25508
25776
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25509
25777
  }
25510
25778
  },
25511
- __wbg_insertTransactionScript_d77dd4730b830b16: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25779
+ __wbg_insertTransactionScript_254698ca99f13bdb: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25512
25780
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25513
25781
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25514
25782
  let v1;
@@ -25615,11 +25883,11 @@ function __wbg_get_imports(memory) {
25615
25883
  const ret = arg0.length;
25616
25884
  return ret;
25617
25885
  },
25618
- __wbg_listSettingKeys_e6be00ae9be0f390: function(arg0, arg1) {
25886
+ __wbg_listSettingKeys_b640b6ed3b2ceee7: function(arg0, arg1) {
25619
25887
  const ret = listSettingKeys(getStringFromWasm0(arg0, arg1));
25620
25888
  return ret;
25621
25889
  },
25622
- __wbg_lockAccount_59fe96d1d24657e7: function(arg0, arg1, arg2, arg3) {
25890
+ __wbg_lockAccount_e19bdabd557a9bac: function(arg0, arg1, arg2, arg3) {
25623
25891
  let deferred0_0;
25624
25892
  let deferred0_1;
25625
25893
  try {
@@ -25778,6 +26046,10 @@ function __wbg_get_imports(memory) {
25778
26046
  const ret = NoteAttachment.__wrap(arg0);
25779
26047
  return ret;
25780
26048
  },
26049
+ __wbg_noteattachment_unwrap: function(arg0) {
26050
+ const ret = NoteAttachment.__unwrap(arg0);
26051
+ return ret;
26052
+ },
25781
26053
  __wbg_noteconsumability_new: function(arg0) {
25782
26054
  const ret = NoteConsumability.__wrap(arg0);
25783
26055
  return ret;
@@ -25834,7 +26106,7 @@ function __wbg_get_imports(memory) {
25834
26106
  const ret = Array.of(arg0, arg1, arg2);
25835
26107
  return ret;
25836
26108
  },
25837
- __wbg_openDatabase_d434e531abab67a4: function(arg0, arg1, arg2, arg3) {
26109
+ __wbg_openDatabase_9a8fbeb3ab124c9d: function(arg0, arg1, arg2, arg3) {
25838
26110
  const ret = openDatabase(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
25839
26111
  return ret;
25840
26112
  },
@@ -25868,7 +26140,7 @@ function __wbg_get_imports(memory) {
25868
26140
  const ret = ProvenTransaction.__wrap(arg0);
25869
26141
  return ret;
25870
26142
  },
25871
- __wbg_pruneAccountHistory_601cf8b7deb90730: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26143
+ __wbg_pruneAccountHistory_6f68d5203b34624d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25872
26144
  let deferred0_0;
25873
26145
  let deferred0_1;
25874
26146
  let deferred1_0;
@@ -25885,7 +26157,7 @@ function __wbg_get_imports(memory) {
25885
26157
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25886
26158
  }
25887
26159
  },
25888
- __wbg_pruneIrrelevantBlocks_6dfe3f86e818875b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26160
+ __wbg_pruneIrrelevantBlocks_f67204a16f7b32f3: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25889
26161
  var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
25890
26162
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25891
26163
  var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
@@ -25915,13 +26187,13 @@ function __wbg_get_imports(memory) {
25915
26187
  __wbg_releaseLock_aa5846c2494b3032: function(arg0) {
25916
26188
  arg0.releaseLock();
25917
26189
  },
25918
- __wbg_removeAccountAddress_4f2f68a69c6824ba: function(arg0, arg1, arg2, arg3) {
26190
+ __wbg_removeAccountAddress_c96456170da6ac29: function(arg0, arg1, arg2, arg3) {
25919
26191
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25920
26192
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25921
26193
  const ret = removeAccountAddress(getStringFromWasm0(arg0, arg1), v0);
25922
26194
  return ret;
25923
26195
  },
25924
- __wbg_removeAccountAuth_270323d61dcc5a1c: function(arg0, arg1, arg2, arg3) {
26196
+ __wbg_removeAccountAuth_514a8e1ee9bc6293: function(arg0, arg1, arg2, arg3) {
25925
26197
  let deferred0_0;
25926
26198
  let deferred0_1;
25927
26199
  try {
@@ -25933,7 +26205,7 @@ function __wbg_get_imports(memory) {
25933
26205
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25934
26206
  }
25935
26207
  },
25936
- __wbg_removeAllMappingsForKey_0cd82b003ec78640: function(arg0, arg1, arg2, arg3) {
26208
+ __wbg_removeAllMappingsForKey_18e793a295ac2226: function(arg0, arg1, arg2, arg3) {
25937
26209
  let deferred0_0;
25938
26210
  let deferred0_1;
25939
26211
  try {
@@ -25945,7 +26217,7 @@ function __wbg_get_imports(memory) {
25945
26217
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25946
26218
  }
25947
26219
  },
25948
- __wbg_removeNoteTag_99bf10aa95385cdd: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
26220
+ __wbg_removeNoteTag_8ae01f5c65dc9174: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
25949
26221
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25950
26222
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25951
26223
  let v1;
@@ -25966,7 +26238,7 @@ function __wbg_get_imports(memory) {
25966
26238
  const ret = removeNoteTag(getStringFromWasm0(arg0, arg1), v0, v1, v2, v3);
25967
26239
  return ret;
25968
26240
  },
25969
- __wbg_removeSetting_435793c919df62ea: function(arg0, arg1, arg2, arg3) {
26241
+ __wbg_removeSetting_5bec82500774f6cf: function(arg0, arg1, arg2, arg3) {
25970
26242
  let deferred0_0;
25971
26243
  let deferred0_1;
25972
26244
  try {
@@ -26176,13 +26448,13 @@ function __wbg_get_imports(memory) {
26176
26448
  const ret = TransactionSummary.__wrap(arg0);
26177
26449
  return ret;
26178
26450
  },
26179
- __wbg_undoAccountStates_bc8f443bd3fee100: function(arg0, arg1, arg2, arg3) {
26451
+ __wbg_undoAccountStates_b7f5bc8db7e5f7d9: function(arg0, arg1, arg2, arg3) {
26180
26452
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
26181
26453
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
26182
26454
  const ret = undoAccountStates(getStringFromWasm0(arg0, arg1), v0);
26183
26455
  return ret;
26184
26456
  },
26185
- __wbg_upsertAccountCode_2988cd68796aacef: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26457
+ __wbg_upsertAccountCode_2885d4bc1584e8e8: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26186
26458
  let deferred0_0;
26187
26459
  let deferred0_1;
26188
26460
  try {
@@ -26196,7 +26468,7 @@ function __wbg_get_imports(memory) {
26196
26468
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26197
26469
  }
26198
26470
  },
26199
- __wbg_upsertAccountRecord_124cfe8dc72ff46f: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) {
26471
+ __wbg_upsertAccountRecord_c3aa685ee4dcc3de: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) {
26200
26472
  let deferred0_0;
26201
26473
  let deferred0_1;
26202
26474
  let deferred1_0;
@@ -26238,7 +26510,7 @@ function __wbg_get_imports(memory) {
26238
26510
  wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
26239
26511
  }
26240
26512
  },
26241
- __wbg_upsertAccountStorage_b7e55e69d8c649ff: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26513
+ __wbg_upsertAccountStorage_e482e77a7e281260: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26242
26514
  let deferred0_0;
26243
26515
  let deferred0_1;
26244
26516
  try {
@@ -26252,7 +26524,7 @@ function __wbg_get_imports(memory) {
26252
26524
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26253
26525
  }
26254
26526
  },
26255
- __wbg_upsertForeignAccountCode_321f8c2b6560540f: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
26527
+ __wbg_upsertForeignAccountCode_9aa9b862b6a7e789: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
26256
26528
  let deferred0_0;
26257
26529
  let deferred0_1;
26258
26530
  let deferred2_0;
@@ -26271,7 +26543,7 @@ function __wbg_get_imports(memory) {
26271
26543
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
26272
26544
  }
26273
26545
  },
26274
- __wbg_upsertInputNote_f54fb501eea97448: 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) {
26546
+ __wbg_upsertInputNote_e10948a629bcee16: 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) {
26275
26547
  let deferred0_0;
26276
26548
  let deferred0_1;
26277
26549
  let deferred6_0;
@@ -26320,7 +26592,7 @@ function __wbg_get_imports(memory) {
26320
26592
  wasm.__wbindgen_free(deferred9_0, deferred9_1, 1);
26321
26593
  }
26322
26594
  },
26323
- __wbg_upsertNoteScript_96ab2ba0a90f1446: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26595
+ __wbg_upsertNoteScript_7e9a616d8a143614: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26324
26596
  let deferred0_0;
26325
26597
  let deferred0_1;
26326
26598
  try {
@@ -26334,7 +26606,7 @@ function __wbg_get_imports(memory) {
26334
26606
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26335
26607
  }
26336
26608
  },
26337
- __wbg_upsertOutputNote_ab3683633a3f1acb: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) {
26609
+ __wbg_upsertOutputNote_1194e3f5dcc3d4f1: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) {
26338
26610
  let deferred0_0;
26339
26611
  let deferred0_1;
26340
26612
  let deferred1_0;
@@ -26369,7 +26641,7 @@ function __wbg_get_imports(memory) {
26369
26641
  wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
26370
26642
  }
26371
26643
  },
26372
- __wbg_upsertStorageMapEntries_5f86e7cc367f03c1: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26644
+ __wbg_upsertStorageMapEntries_82d953e23dee24ed: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26373
26645
  let deferred0_0;
26374
26646
  let deferred0_1;
26375
26647
  try {
@@ -26383,7 +26655,7 @@ function __wbg_get_imports(memory) {
26383
26655
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26384
26656
  }
26385
26657
  },
26386
- __wbg_upsertTransactionRecord_dc6cf6e7c6196905: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
26658
+ __wbg_upsertTransactionRecord_24154d95069d63bd: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
26387
26659
  let deferred0_0;
26388
26660
  let deferred0_1;
26389
26661
  try {
@@ -26404,7 +26676,7 @@ function __wbg_get_imports(memory) {
26404
26676
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26405
26677
  }
26406
26678
  },
26407
- __wbg_upsertVaultAssets_b09b89783ef95fbe: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26679
+ __wbg_upsertVaultAssets_e982e767b7e6001a: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26408
26680
  let deferred0_0;
26409
26681
  let deferred0_1;
26410
26682
  try {
@@ -26447,17 +26719,17 @@ function __wbg_get_imports(memory) {
26447
26719
  return ret;
26448
26720
  },
26449
26721
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
26450
- // Cast intrinsic for `Closure(Closure { dtor_idx: 126, function: Function { arguments: [Externref], shim_idx: 127, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26722
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 128, function: Function { arguments: [Externref], shim_idx: 129, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26451
26723
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_8294944b14acb139___closure__destroy___dyn_core_91ed24bc3d45dfd0___ops__function__FnMut__wasm_bindgen_8294944b14acb139___JsValue____Output_______, wasm_bindgen_8294944b14acb139___convert__closures_____invoke___wasm_bindgen_8294944b14acb139___JsValue_____);
26452
26724
  return ret;
26453
26725
  },
26454
26726
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
26455
- // Cast intrinsic for `Closure(Closure { dtor_idx: 126, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 127, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26727
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 128, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 129, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26456
26728
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_8294944b14acb139___closure__destroy___dyn_core_91ed24bc3d45dfd0___ops__function__FnMut__wasm_bindgen_8294944b14acb139___JsValue____Output_______, wasm_bindgen_8294944b14acb139___convert__closures_____invoke___wasm_bindgen_8294944b14acb139___JsValue_____);
26457
26729
  return ret;
26458
26730
  },
26459
26731
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
26460
- // Cast intrinsic for `Closure(Closure { dtor_idx: 126, function: Function { arguments: [], shim_idx: 452, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26732
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 128, function: Function { arguments: [], shim_idx: 454, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26461
26733
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_8294944b14acb139___closure__destroy___dyn_core_91ed24bc3d45dfd0___ops__function__FnMut__wasm_bindgen_8294944b14acb139___JsValue____Output_______, wasm_bindgen_8294944b14acb139___convert__closures_____invoke______);
26462
26734
  return ret;
26463
26735
  },
@@ -26798,6 +27070,9 @@ const LibraryFinalization = (typeof FinalizationRegistry === 'undefined')
26798
27070
  const MerklePathFinalization = (typeof FinalizationRegistry === 'undefined')
26799
27071
  ? { register: () => {}, unregister: () => {} }
26800
27072
  : new FinalizationRegistry(ptr => wasm.__wbg_merklepath_free(ptr >>> 0, 1));
27073
+ const NetworkAccountTargetFinalization = (typeof FinalizationRegistry === 'undefined')
27074
+ ? { register: () => {}, unregister: () => {} }
27075
+ : new FinalizationRegistry(ptr => wasm.__wbg_networkaccounttarget_free(ptr >>> 0, 1));
26801
27076
  const NetworkIdFinalization = (typeof FinalizationRegistry === 'undefined')
26802
27077
  ? { register: () => {}, unregister: () => {} }
26803
27078
  : new FinalizationRegistry(ptr => wasm.__wbg_networkid_free(ptr >>> 0, 1));
@@ -27487,6 +27762,7 @@ var index = /*#__PURE__*/Object.freeze({
27487
27762
  JsVaultAsset: JsVaultAsset,
27488
27763
  Library: Library,
27489
27764
  MerklePath: MerklePath,
27765
+ NetworkAccountTarget: NetworkAccountTarget,
27490
27766
  NetworkId: NetworkId,
27491
27767
  NetworkNoteStatusInfo: NetworkNoteStatusInfo,
27492
27768
  NetworkType: NetworkType,
@@ -27591,7 +27867,7 @@ var index = /*#__PURE__*/Object.freeze({
27591
27867
 
27592
27868
  const module$1 = new URL("assets/miden_client_web.wasm", self.location.href);
27593
27869
 
27594
- var CargoDjVnfWKi = /*#__PURE__*/Object.freeze({
27870
+ var CargoMvyTli7g = /*#__PURE__*/Object.freeze({
27595
27871
  __proto__: null,
27596
27872
  Account: Account,
27597
27873
  AccountArray: AccountArray,
@@ -27656,6 +27932,7 @@ var CargoDjVnfWKi = /*#__PURE__*/Object.freeze({
27656
27932
  JsVaultAsset: JsVaultAsset,
27657
27933
  Library: Library,
27658
27934
  MerklePath: MerklePath,
27935
+ NetworkAccountTarget: NetworkAccountTarget,
27659
27936
  NetworkId: NetworkId,
27660
27937
  NetworkNoteStatusInfo: NetworkNoteStatusInfo,
27661
27938
  NetworkType: NetworkType,