@miden-sdk/miden-sdk 0.15.4 → 0.15.5

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 +16 -0
  2. package/dist/mt/{Cargo-DjVnfWKi.js → Cargo-C001gt8g.js} +237 -76
  3. package/dist/mt/Cargo-C001gt8g.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 +60 -0
  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-C001gt8g-B8wBADUI.js} +237 -76
  14. package/dist/mt/workers/Cargo-C001gt8g-B8wBADUI.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 +238 -76
  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-CR1mzjgg.js} +235 -75
  22. package/dist/st/Cargo-CR1mzjgg.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 +60 -0
  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-CR1mzjgg-DeDmKA4W.js} +235 -75
  32. package/dist/st/workers/Cargo-CR1mzjgg-DeDmKA4W.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 +236 -75
  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 CargoC001gt8g; });
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
@@ -16910,6 +16910,97 @@ class MerklePath {
16910
16910
  }
16911
16911
  if (Symbol.dispose) MerklePath.prototype[Symbol.dispose] = MerklePath.prototype.free;
16912
16912
 
16913
+ /**
16914
+ * Targets a note at a public network account so the operator auto-consumes it.
16915
+ *
16916
+ * A note is a network note when it is `Public` and carries a valid
16917
+ * `NetworkAccountTarget` attachment (see `Note.isNetworkNote`).
16918
+ */
16919
+ class NetworkAccountTarget {
16920
+ static __wrap(ptr) {
16921
+ ptr = ptr >>> 0;
16922
+ const obj = Object.create(NetworkAccountTarget.prototype);
16923
+ obj.__wbg_ptr = ptr;
16924
+ NetworkAccountTargetFinalization.register(obj, obj.__wbg_ptr, obj);
16925
+ return obj;
16926
+ }
16927
+ __destroy_into_raw() {
16928
+ const ptr = this.__wbg_ptr;
16929
+ this.__wbg_ptr = 0;
16930
+ NetworkAccountTargetFinalization.unregister(this);
16931
+ return ptr;
16932
+ }
16933
+ free() {
16934
+ const ptr = this.__destroy_into_raw();
16935
+ wasm.__wbg_networkaccounttarget_free(ptr, 0);
16936
+ }
16937
+ /**
16938
+ * Returns the note execution hint.
16939
+ * @returns {NoteExecutionHint}
16940
+ */
16941
+ executionHint() {
16942
+ const ret = wasm.networkaccounttarget_executionHint(this.__wbg_ptr);
16943
+ return NoteExecutionHint.__wrap(ret);
16944
+ }
16945
+ /**
16946
+ * Decodes a `NoteAttachment` back into a `NetworkAccountTarget`.
16947
+ *
16948
+ * # Errors
16949
+ * Errors if the attachment is not a valid network-account-target attachment.
16950
+ * @param {NoteAttachment} attachment
16951
+ * @returns {NetworkAccountTarget}
16952
+ */
16953
+ static fromAttachment(attachment) {
16954
+ _assertClass(attachment, NoteAttachment);
16955
+ const ret = wasm.networkaccounttarget_fromAttachment(attachment.__wbg_ptr);
16956
+ if (ret[2]) {
16957
+ throw takeFromExternrefTable0(ret[1]);
16958
+ }
16959
+ return NetworkAccountTarget.__wrap(ret[0]);
16960
+ }
16961
+ /**
16962
+ * Creates a target for the given network account. `executionHint` defaults
16963
+ * to `NoteExecutionHint.always()`.
16964
+ *
16965
+ * # Errors
16966
+ * Errors if `account_id` is not a public account.
16967
+ * @param {AccountId} account_id
16968
+ * @param {NoteExecutionHint | null} [execution_hint]
16969
+ */
16970
+ constructor(account_id, execution_hint) {
16971
+ _assertClass(account_id, AccountId);
16972
+ let ptr0 = 0;
16973
+ if (!isLikeNone(execution_hint)) {
16974
+ _assertClass(execution_hint, NoteExecutionHint);
16975
+ ptr0 = execution_hint.__destroy_into_raw();
16976
+ }
16977
+ const ret = wasm.networkaccounttarget_new(account_id.__wbg_ptr, ptr0);
16978
+ if (ret[2]) {
16979
+ throw takeFromExternrefTable0(ret[1]);
16980
+ }
16981
+ this.__wbg_ptr = ret[0] >>> 0;
16982
+ NetworkAccountTargetFinalization.register(this, this.__wbg_ptr, this);
16983
+ return this;
16984
+ }
16985
+ /**
16986
+ * Returns the targeted network account id.
16987
+ * @returns {AccountId}
16988
+ */
16989
+ targetId() {
16990
+ const ret = wasm.accountreader_accountId(this.__wbg_ptr);
16991
+ return AccountId.__wrap(ret);
16992
+ }
16993
+ /**
16994
+ * Encodes this target as a `NoteAttachment`.
16995
+ * @returns {NoteAttachment}
16996
+ */
16997
+ toAttachment() {
16998
+ const ret = wasm.networkaccounttarget_toAttachment(this.__wbg_ptr);
16999
+ return NoteAttachment.__wrap(ret);
17000
+ }
17001
+ }
17002
+ if (Symbol.dispose) NetworkAccountTarget.prototype[Symbol.dispose] = NetworkAccountTarget.prototype.free;
17003
+
16913
17004
  /**
16914
17005
  * The identifier of a Miden network.
16915
17006
  */
@@ -17103,6 +17194,16 @@ class Note {
17103
17194
  const ret = wasm.note_assets(this.__wbg_ptr);
17104
17195
  return NoteAssets.__wrap(ret);
17105
17196
  }
17197
+ /**
17198
+ * Returns the note's attachments.
17199
+ * @returns {NoteAttachment[]}
17200
+ */
17201
+ attachments() {
17202
+ const ret = wasm.note_attachments(this.__wbg_ptr);
17203
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
17204
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
17205
+ return v1;
17206
+ }
17106
17207
  /**
17107
17208
  * Returns the commitment to the note (its ID).
17108
17209
  *
@@ -17204,6 +17305,15 @@ class Note {
17204
17305
  const ret = wasm.note_commitment(this.__wbg_ptr);
17205
17306
  return NoteId.__wrap(ret);
17206
17307
  }
17308
+ /**
17309
+ * Returns true if the note is a network note (public + a valid
17310
+ * `NetworkAccountTarget` attachment).
17311
+ * @returns {boolean}
17312
+ */
17313
+ isNetworkNote() {
17314
+ const ret = wasm.note_isNetworkNote(this.__wbg_ptr);
17315
+ return ret !== 0;
17316
+ }
17207
17317
  /**
17208
17318
  * Returns the public metadata associated with the note.
17209
17319
  * @returns {NoteMetadata}
@@ -17263,6 +17373,30 @@ class Note {
17263
17373
  const ret = wasm.note_serialize(this.__wbg_ptr);
17264
17374
  return ret;
17265
17375
  }
17376
+ /**
17377
+ * Creates a note carrying the provided attachments, using the metadata's
17378
+ * sender / note type / tag (attachments on the metadata itself are ignored).
17379
+ *
17380
+ * # Errors
17381
+ * Errors if the attachment set is invalid (too many attachments or words).
17382
+ * @param {NoteAssets} note_assets
17383
+ * @param {NoteMetadata} note_metadata
17384
+ * @param {NoteRecipient} note_recipient
17385
+ * @param {NoteAttachment[]} attachments
17386
+ * @returns {Note}
17387
+ */
17388
+ static withAttachments(note_assets, note_metadata, note_recipient, attachments) {
17389
+ _assertClass(note_assets, NoteAssets);
17390
+ _assertClass(note_metadata, NoteMetadata);
17391
+ _assertClass(note_recipient, NoteRecipient);
17392
+ const ptr0 = passArrayJsValueToWasm0(attachments, wasm.__wbindgen_malloc);
17393
+ const len0 = WASM_VECTOR_LEN;
17394
+ const ret = wasm.note_withAttachments(note_assets.__wbg_ptr, note_metadata.__wbg_ptr, note_recipient.__wbg_ptr, ptr0, len0);
17395
+ if (ret[2]) {
17396
+ throw takeFromExternrefTable0(ret[1]);
17397
+ }
17398
+ return Note.__wrap(ret[0]);
17399
+ }
17266
17400
  }
17267
17401
  if (Symbol.dispose) Note.prototype[Symbol.dispose] = Note.prototype.free;
17268
17402
 
@@ -17530,6 +17664,12 @@ class NoteAttachment {
17530
17664
  NoteAttachmentFinalization.register(obj, obj.__wbg_ptr, obj);
17531
17665
  return obj;
17532
17666
  }
17667
+ static __unwrap(jsValue) {
17668
+ if (!(jsValue instanceof NoteAttachment)) {
17669
+ return 0;
17670
+ }
17671
+ return jsValue.__destroy_into_raw();
17672
+ }
17533
17673
  __destroy_into_raw() {
17534
17674
  const ptr = this.__wbg_ptr;
17535
17675
  this.__wbg_ptr = 0;
@@ -18760,6 +18900,19 @@ class NoteRecipient {
18760
18900
  const ret = wasm.accountheader_storageCommitment(this.__wbg_ptr);
18761
18901
  return Word.__wrap(ret);
18762
18902
  }
18903
+ /**
18904
+ * Creates a recipient from a script and storage, generating a fresh random
18905
+ * serial number (the secret that prevents double-spends).
18906
+ * @param {NoteScript} note_script
18907
+ * @param {NoteStorage} storage
18908
+ * @returns {NoteRecipient}
18909
+ */
18910
+ static fromScript(note_script, storage) {
18911
+ _assertClass(note_script, NoteScript);
18912
+ _assertClass(storage, NoteStorage);
18913
+ const ret = wasm.noterecipient_fromScript(note_script.__wbg_ptr, storage.__wbg_ptr);
18914
+ return NoteRecipient.__wrap(ret);
18915
+ }
18763
18916
  /**
18764
18917
  * Creates a note recipient from its serial number, script, and storage.
18765
18918
  * @param {Word} serial_num
@@ -24840,7 +24993,7 @@ function __wbg_get_imports(memory) {
24840
24993
  const ret = AccountStorage.__wrap(arg0);
24841
24994
  return ret;
24842
24995
  },
24843
- __wbg_addNoteTag_c9e7d0b19a1ff17c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
24996
+ __wbg_addNoteTag_edac9aa5d53fd295: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
24844
24997
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
24845
24998
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
24846
24999
  let v1;
@@ -24868,25 +25021,25 @@ function __wbg_get_imports(memory) {
24868
25021
  __wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
24869
25022
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
24870
25023
  }, arguments); },
24871
- __wbg_applyFullAccountState_01b8235561567534: function(arg0, arg1, arg2) {
25024
+ __wbg_applyFullAccountState_efa7cec371ac287f: function(arg0, arg1, arg2) {
24872
25025
  const ret = applyFullAccountState(getStringFromWasm0(arg0, arg1), JsAccountUpdate.__wrap(arg2));
24873
25026
  return ret;
24874
25027
  },
24875
- __wbg_applySettingsMutations_c70b3f973d7125bf: function(arg0, arg1, arg2, arg3) {
25028
+ __wbg_applySettingsMutations_8eb27567fe3a997b: function(arg0, arg1, arg2, arg3) {
24876
25029
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24877
25030
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24878
25031
  const ret = applySettingsMutations(getStringFromWasm0(arg0, arg1), v0);
24879
25032
  return ret;
24880
25033
  },
24881
- __wbg_applyStateSync_2aab7a3f6871f365: function(arg0, arg1, arg2) {
25034
+ __wbg_applyStateSync_ce27298bc75b7b18: function(arg0, arg1, arg2) {
24882
25035
  const ret = applyStateSync(getStringFromWasm0(arg0, arg1), JsStateSyncUpdate.__wrap(arg2));
24883
25036
  return ret;
24884
25037
  },
24885
- __wbg_applyTransactionBatch_ff6324c1b699e0bc: function(arg0, arg1, arg2) {
25038
+ __wbg_applyTransactionBatch_b47dd46bbb97dd34: function(arg0, arg1, arg2) {
24886
25039
  const ret = applyTransactionBatch(getStringFromWasm0(arg0, arg1), arg2);
24887
25040
  return ret;
24888
25041
  },
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) {
25042
+ __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) {
24890
25043
  let deferred0_0;
24891
25044
  let deferred0_1;
24892
25045
  let deferred1_0;
@@ -25037,7 +25190,7 @@ function __wbg_get_imports(memory) {
25037
25190
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25038
25191
  }
25039
25192
  },
25040
- __wbg_exportStore_a3251a108aa7b844: function(arg0, arg1) {
25193
+ __wbg_exportStore_9f8eb55269435a47: function(arg0, arg1) {
25041
25194
  const ret = exportStore(getStringFromWasm0(arg0, arg1));
25042
25195
  return ret;
25043
25196
  },
@@ -25069,7 +25222,7 @@ function __wbg_get_imports(memory) {
25069
25222
  const ret = FetchedNote.__wrap(arg0);
25070
25223
  return ret;
25071
25224
  },
25072
- __wbg_forceImportStore_cefb1d26c504a17a: function(arg0, arg1, arg2) {
25225
+ __wbg_forceImportStore_fd9750b9b72150d8: function(arg0, arg1, arg2) {
25073
25226
  const ret = forceImportStore(getStringFromWasm0(arg0, arg1), arg2);
25074
25227
  return ret;
25075
25228
  },
@@ -25093,7 +25246,7 @@ function __wbg_get_imports(memory) {
25093
25246
  const ret = FungibleAssetDeltaItem.__wrap(arg0);
25094
25247
  return ret;
25095
25248
  },
25096
- __wbg_getAccountAddresses_6bda8d40b7d06085: function(arg0, arg1, arg2, arg3) {
25249
+ __wbg_getAccountAddresses_53c75fc6f0afab26: function(arg0, arg1, arg2, arg3) {
25097
25250
  let deferred0_0;
25098
25251
  let deferred0_1;
25099
25252
  try {
@@ -25105,7 +25258,7 @@ function __wbg_get_imports(memory) {
25105
25258
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25106
25259
  }
25107
25260
  },
25108
- __wbg_getAccountAuthByPubKeyCommitment_3e272c0653b69f25: function(arg0, arg1, arg2, arg3) {
25261
+ __wbg_getAccountAuthByPubKeyCommitment_45e209a5e814d994: function(arg0, arg1, arg2, arg3) {
25109
25262
  let deferred0_0;
25110
25263
  let deferred0_1;
25111
25264
  try {
@@ -25117,7 +25270,7 @@ function __wbg_get_imports(memory) {
25117
25270
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25118
25271
  }
25119
25272
  },
25120
- __wbg_getAccountCode_66c23e814ccb0b75: function(arg0, arg1, arg2, arg3) {
25273
+ __wbg_getAccountCode_e79bed526fe5ef58: function(arg0, arg1, arg2, arg3) {
25121
25274
  let deferred0_0;
25122
25275
  let deferred0_1;
25123
25276
  try {
@@ -25129,7 +25282,7 @@ function __wbg_get_imports(memory) {
25129
25282
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25130
25283
  }
25131
25284
  },
25132
- __wbg_getAccountHeaderByCommitment_e77460136385053d: function(arg0, arg1, arg2, arg3) {
25285
+ __wbg_getAccountHeaderByCommitment_6f5840b801ef9054: function(arg0, arg1, arg2, arg3) {
25133
25286
  let deferred0_0;
25134
25287
  let deferred0_1;
25135
25288
  try {
@@ -25141,7 +25294,7 @@ function __wbg_get_imports(memory) {
25141
25294
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25142
25295
  }
25143
25296
  },
25144
- __wbg_getAccountHeader_1087552d17a99751: function(arg0, arg1, arg2, arg3) {
25297
+ __wbg_getAccountHeader_5f4fc27de3d1d2be: function(arg0, arg1, arg2, arg3) {
25145
25298
  let deferred0_0;
25146
25299
  let deferred0_1;
25147
25300
  try {
@@ -25153,7 +25306,7 @@ function __wbg_get_imports(memory) {
25153
25306
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25154
25307
  }
25155
25308
  },
25156
- __wbg_getAccountIdByKeyCommitment_7e1292d010257f58: function(arg0, arg1, arg2, arg3) {
25309
+ __wbg_getAccountIdByKeyCommitment_446e9389ad387c83: function(arg0, arg1, arg2, arg3) {
25157
25310
  let deferred0_0;
25158
25311
  let deferred0_1;
25159
25312
  try {
@@ -25165,11 +25318,11 @@ function __wbg_get_imports(memory) {
25165
25318
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25166
25319
  }
25167
25320
  },
25168
- __wbg_getAccountIds_aa202a56a3aa2095: function(arg0, arg1) {
25321
+ __wbg_getAccountIds_1adc911b0d8d0f6e: function(arg0, arg1) {
25169
25322
  const ret = getAccountIds(getStringFromWasm0(arg0, arg1));
25170
25323
  return ret;
25171
25324
  },
25172
- __wbg_getAccountStorageMaps_83fcada97acbc4d3: function(arg0, arg1, arg2, arg3) {
25325
+ __wbg_getAccountStorageMaps_3767caa8d97db0a1: function(arg0, arg1, arg2, arg3) {
25173
25326
  let deferred0_0;
25174
25327
  let deferred0_1;
25175
25328
  try {
@@ -25181,7 +25334,7 @@ function __wbg_get_imports(memory) {
25181
25334
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25182
25335
  }
25183
25336
  },
25184
- __wbg_getAccountStorage_7da5087b3d6719c9: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25337
+ __wbg_getAccountStorage_07aa2760664b2bec: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25185
25338
  let deferred0_0;
25186
25339
  let deferred0_1;
25187
25340
  try {
@@ -25195,7 +25348,7 @@ function __wbg_get_imports(memory) {
25195
25348
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25196
25349
  }
25197
25350
  },
25198
- __wbg_getAccountVaultAssets_a7f15cd5706a07f0: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25351
+ __wbg_getAccountVaultAssets_2f19d55ae4ed7c0b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25199
25352
  let deferred0_0;
25200
25353
  let deferred0_1;
25201
25354
  try {
@@ -25209,27 +25362,27 @@ function __wbg_get_imports(memory) {
25209
25362
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25210
25363
  }
25211
25364
  },
25212
- __wbg_getAllAccountHeaders_20b2442034a1d33a: function(arg0, arg1) {
25365
+ __wbg_getAllAccountHeaders_8ed6029ae1742504: function(arg0, arg1) {
25213
25366
  const ret = getAllAccountHeaders(getStringFromWasm0(arg0, arg1));
25214
25367
  return ret;
25215
25368
  },
25216
- __wbg_getBlockHeaders_14c17869ac14ff20: function(arg0, arg1, arg2, arg3) {
25369
+ __wbg_getBlockHeaders_06f7b42ae978e531: function(arg0, arg1, arg2, arg3) {
25217
25370
  var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
25218
25371
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25219
25372
  const ret = getBlockHeaders(getStringFromWasm0(arg0, arg1), v0);
25220
25373
  return ret;
25221
25374
  },
25222
- __wbg_getCurrentBlockchainPeaks_f25ec9bf8fbcfb01: function(arg0, arg1) {
25375
+ __wbg_getCurrentBlockchainPeaks_a04a5ec6cd7f88af: function(arg0, arg1) {
25223
25376
  const ret = getCurrentBlockchainPeaks(getStringFromWasm0(arg0, arg1));
25224
25377
  return ret;
25225
25378
  },
25226
- __wbg_getForeignAccountCode_aa888a2e4d67c198: function(arg0, arg1, arg2, arg3) {
25379
+ __wbg_getForeignAccountCode_de89bd207484f570: function(arg0, arg1, arg2, arg3) {
25227
25380
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25228
25381
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25229
25382
  const ret = getForeignAccountCode(getStringFromWasm0(arg0, arg1), v0);
25230
25383
  return ret;
25231
25384
  },
25232
- __wbg_getInputNoteByOffset_28a7b0db364e3661: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
25385
+ __wbg_getInputNoteByOffset_9cfe153b53135065: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
25233
25386
  let deferred1_0;
25234
25387
  let deferred1_1;
25235
25388
  try {
@@ -25243,31 +25396,31 @@ function __wbg_get_imports(memory) {
25243
25396
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25244
25397
  }
25245
25398
  },
25246
- __wbg_getInputNotesFromDetailsCommitments_cd9aae9ebea29ae8: function(arg0, arg1, arg2, arg3) {
25399
+ __wbg_getInputNotesFromDetailsCommitments_4e49a566390c4337: function(arg0, arg1, arg2, arg3) {
25247
25400
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25248
25401
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25249
25402
  const ret = getInputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
25250
25403
  return ret;
25251
25404
  },
25252
- __wbg_getInputNotesFromIds_2ac71ad2b96eacdc: function(arg0, arg1, arg2, arg3) {
25405
+ __wbg_getInputNotesFromIds_f506cabce8dfdec7: function(arg0, arg1, arg2, arg3) {
25253
25406
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25254
25407
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25255
25408
  const ret = getInputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
25256
25409
  return ret;
25257
25410
  },
25258
- __wbg_getInputNotesFromNullifiers_784b00260b622e0a: function(arg0, arg1, arg2, arg3) {
25411
+ __wbg_getInputNotesFromNullifiers_25b0f807fd619f35: function(arg0, arg1, arg2, arg3) {
25259
25412
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25260
25413
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25261
25414
  const ret = getInputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
25262
25415
  return ret;
25263
25416
  },
25264
- __wbg_getInputNotes_554b394a036cce35: function(arg0, arg1, arg2, arg3) {
25417
+ __wbg_getInputNotes_d90894b55f0432de: function(arg0, arg1, arg2, arg3) {
25265
25418
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25266
25419
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25267
25420
  const ret = getInputNotes(getStringFromWasm0(arg0, arg1), v0);
25268
25421
  return ret;
25269
25422
  },
25270
- __wbg_getKeyCommitmentsByAccountId_dc8ddc1944776f77: function(arg0, arg1, arg2, arg3) {
25423
+ __wbg_getKeyCommitmentsByAccountId_c53d31eba565285f: function(arg0, arg1, arg2, arg3) {
25271
25424
  let deferred0_0;
25272
25425
  let deferred0_1;
25273
25426
  try {
@@ -25279,7 +25432,7 @@ function __wbg_get_imports(memory) {
25279
25432
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25280
25433
  }
25281
25434
  },
25282
- __wbg_getNoteScript_fb7f3a8b5693efd3: function(arg0, arg1, arg2, arg3) {
25435
+ __wbg_getNoteScript_a74641b7b9a2b11a: function(arg0, arg1, arg2, arg3) {
25283
25436
  let deferred0_0;
25284
25437
  let deferred0_1;
25285
25438
  try {
@@ -25291,39 +25444,39 @@ function __wbg_get_imports(memory) {
25291
25444
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25292
25445
  }
25293
25446
  },
25294
- __wbg_getNoteTags_e58900169fc93b17: function(arg0, arg1) {
25447
+ __wbg_getNoteTags_6351357c7199175a: function(arg0, arg1) {
25295
25448
  const ret = getNoteTags(getStringFromWasm0(arg0, arg1));
25296
25449
  return ret;
25297
25450
  },
25298
- __wbg_getOutputNotesFromDetailsCommitments_b67eef4a469d243f: function(arg0, arg1, arg2, arg3) {
25451
+ __wbg_getOutputNotesFromDetailsCommitments_a4550ac8ebbd9770: function(arg0, arg1, arg2, arg3) {
25299
25452
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25300
25453
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25301
25454
  const ret = getOutputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
25302
25455
  return ret;
25303
25456
  },
25304
- __wbg_getOutputNotesFromIds_3e2e083d5e6307b4: function(arg0, arg1, arg2, arg3) {
25457
+ __wbg_getOutputNotesFromIds_d72b067679ade695: function(arg0, arg1, arg2, arg3) {
25305
25458
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25306
25459
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25307
25460
  const ret = getOutputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
25308
25461
  return ret;
25309
25462
  },
25310
- __wbg_getOutputNotesFromNullifiers_f80d6022e4d273ae: function(arg0, arg1, arg2, arg3) {
25463
+ __wbg_getOutputNotesFromNullifiers_17b258e816c39ed0: function(arg0, arg1, arg2, arg3) {
25311
25464
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25312
25465
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25313
25466
  const ret = getOutputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
25314
25467
  return ret;
25315
25468
  },
25316
- __wbg_getOutputNotes_edbf80cf7cd0b908: function(arg0, arg1, arg2, arg3) {
25469
+ __wbg_getOutputNotes_1473c985e0449439: function(arg0, arg1, arg2, arg3) {
25317
25470
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25318
25471
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25319
25472
  const ret = getOutputNotes(getStringFromWasm0(arg0, arg1), v0);
25320
25473
  return ret;
25321
25474
  },
25322
- __wbg_getPartialBlockchainNodesAll_c415a12245c31d24: function(arg0, arg1) {
25475
+ __wbg_getPartialBlockchainNodesAll_e17f47fa0b31d95e: function(arg0, arg1) {
25323
25476
  const ret = getPartialBlockchainNodesAll(getStringFromWasm0(arg0, arg1));
25324
25477
  return ret;
25325
25478
  },
25326
- __wbg_getPartialBlockchainNodesUpToInOrderIndex_13c0f9e58345c3dd: function(arg0, arg1, arg2, arg3) {
25479
+ __wbg_getPartialBlockchainNodesUpToInOrderIndex_43f6babd6387a967: function(arg0, arg1, arg2, arg3) {
25327
25480
  let deferred0_0;
25328
25481
  let deferred0_1;
25329
25482
  try {
@@ -25335,7 +25488,7 @@ function __wbg_get_imports(memory) {
25335
25488
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25336
25489
  }
25337
25490
  },
25338
- __wbg_getPartialBlockchainNodes_65b845ff2a25659c: function(arg0, arg1, arg2, arg3) {
25491
+ __wbg_getPartialBlockchainNodes_753ab364036ee659: function(arg0, arg1, arg2, arg3) {
25339
25492
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25340
25493
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25341
25494
  const ret = getPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0);
@@ -25348,7 +25501,7 @@ function __wbg_get_imports(memory) {
25348
25501
  const ret = arg0.getReader();
25349
25502
  return ret;
25350
25503
  }, arguments); },
25351
- __wbg_getSetting_652a441d00c2ff02: function(arg0, arg1, arg2, arg3) {
25504
+ __wbg_getSetting_6d181107da0b79d8: function(arg0, arg1, arg2, arg3) {
25352
25505
  let deferred0_0;
25353
25506
  let deferred0_1;
25354
25507
  try {
@@ -25360,7 +25513,7 @@ function __wbg_get_imports(memory) {
25360
25513
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25361
25514
  }
25362
25515
  },
25363
- __wbg_getSyncHeight_47274f9a308f2ea0: function(arg0, arg1) {
25516
+ __wbg_getSyncHeight_dc5e0c277d3350d0: function(arg0, arg1) {
25364
25517
  const ret = getSyncHeight(getStringFromWasm0(arg0, arg1));
25365
25518
  return ret;
25366
25519
  },
@@ -25368,15 +25521,15 @@ function __wbg_get_imports(memory) {
25368
25521
  const ret = arg0.getTime();
25369
25522
  return ret;
25370
25523
  },
25371
- __wbg_getTrackedBlockHeaderNumbers_7f699d8776e5342e: function(arg0, arg1) {
25524
+ __wbg_getTrackedBlockHeaderNumbers_897214e329b5ea0c: function(arg0, arg1) {
25372
25525
  const ret = getTrackedBlockHeaderNumbers(getStringFromWasm0(arg0, arg1));
25373
25526
  return ret;
25374
25527
  },
25375
- __wbg_getTrackedBlockHeaders_9257cc5c828b3847: function(arg0, arg1) {
25528
+ __wbg_getTrackedBlockHeaders_dcef57272c508785: function(arg0, arg1) {
25376
25529
  const ret = getTrackedBlockHeaders(getStringFromWasm0(arg0, arg1));
25377
25530
  return ret;
25378
25531
  },
25379
- __wbg_getTransactions_042b4178983dd070: function(arg0, arg1, arg2, arg3) {
25532
+ __wbg_getTransactions_47df1ec1a429e0f9: function(arg0, arg1, arg2, arg3) {
25380
25533
  let deferred0_0;
25381
25534
  let deferred0_1;
25382
25535
  try {
@@ -25388,7 +25541,7 @@ function __wbg_get_imports(memory) {
25388
25541
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25389
25542
  }
25390
25543
  },
25391
- __wbg_getUnspentInputNoteNullifiers_af62c37e3bf9a116: function(arg0, arg1) {
25544
+ __wbg_getUnspentInputNoteNullifiers_a41c87a9f48d5fdf: function(arg0, arg1) {
25392
25545
  const ret = getUnspentInputNoteNullifiers(getStringFromWasm0(arg0, arg1));
25393
25546
  return ret;
25394
25547
  },
@@ -25432,7 +25585,7 @@ function __wbg_get_imports(memory) {
25432
25585
  const ret = InputNoteRecord.__wrap(arg0);
25433
25586
  return ret;
25434
25587
  },
25435
- __wbg_insertAccountAddress_9750679ae673f231: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25588
+ __wbg_insertAccountAddress_1e4667af2c92224c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25436
25589
  let deferred0_0;
25437
25590
  let deferred0_1;
25438
25591
  try {
@@ -25446,7 +25599,7 @@ function __wbg_get_imports(memory) {
25446
25599
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25447
25600
  }
25448
25601
  },
25449
- __wbg_insertAccountAuth_4468784a0311c9e3: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25602
+ __wbg_insertAccountAuth_d471abfc7c33077a: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25450
25603
  let deferred0_0;
25451
25604
  let deferred0_1;
25452
25605
  let deferred1_0;
@@ -25463,7 +25616,7 @@ function __wbg_get_imports(memory) {
25463
25616
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25464
25617
  }
25465
25618
  },
25466
- __wbg_insertAccountKeyMapping_1018a4c4e3136ea9: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25619
+ __wbg_insertAccountKeyMapping_b4e7262fd4dc4273: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25467
25620
  let deferred0_0;
25468
25621
  let deferred0_1;
25469
25622
  let deferred1_0;
@@ -25480,13 +25633,13 @@ function __wbg_get_imports(memory) {
25480
25633
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25481
25634
  }
25482
25635
  },
25483
- __wbg_insertBlockHeader_5f9db8fbf493cd05: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25636
+ __wbg_insertBlockHeader_282dd85fef7536b7: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25484
25637
  var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
25485
25638
  wasm.__wbindgen_free(arg3, arg4 * 1, 1);
25486
25639
  const ret = insertBlockHeader(getStringFromWasm0(arg0, arg1), arg2 >>> 0, v0, arg5 !== 0);
25487
25640
  return ret;
25488
25641
  },
25489
- __wbg_insertPartialBlockchainNodes_3bac74a5a63676ec: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25642
+ __wbg_insertPartialBlockchainNodes_574aa9138d3a0e84: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25490
25643
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25491
25644
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25492
25645
  var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
@@ -25494,7 +25647,7 @@ function __wbg_get_imports(memory) {
25494
25647
  const ret = insertPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0, v1);
25495
25648
  return ret;
25496
25649
  },
25497
- __wbg_insertSetting_3f9497eda301dd4d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25650
+ __wbg_insertSetting_eec786c0b0995552: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25498
25651
  let deferred0_0;
25499
25652
  let deferred0_1;
25500
25653
  try {
@@ -25508,7 +25661,7 @@ function __wbg_get_imports(memory) {
25508
25661
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25509
25662
  }
25510
25663
  },
25511
- __wbg_insertTransactionScript_d77dd4730b830b16: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25664
+ __wbg_insertTransactionScript_881ef7ad3becb554: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25512
25665
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25513
25666
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25514
25667
  let v1;
@@ -25615,11 +25768,11 @@ function __wbg_get_imports(memory) {
25615
25768
  const ret = arg0.length;
25616
25769
  return ret;
25617
25770
  },
25618
- __wbg_listSettingKeys_e6be00ae9be0f390: function(arg0, arg1) {
25771
+ __wbg_listSettingKeys_23baa5fe89fe0300: function(arg0, arg1) {
25619
25772
  const ret = listSettingKeys(getStringFromWasm0(arg0, arg1));
25620
25773
  return ret;
25621
25774
  },
25622
- __wbg_lockAccount_59fe96d1d24657e7: function(arg0, arg1, arg2, arg3) {
25775
+ __wbg_lockAccount_f83587d5772bcc3c: function(arg0, arg1, arg2, arg3) {
25623
25776
  let deferred0_0;
25624
25777
  let deferred0_1;
25625
25778
  try {
@@ -25778,6 +25931,10 @@ function __wbg_get_imports(memory) {
25778
25931
  const ret = NoteAttachment.__wrap(arg0);
25779
25932
  return ret;
25780
25933
  },
25934
+ __wbg_noteattachment_unwrap: function(arg0) {
25935
+ const ret = NoteAttachment.__unwrap(arg0);
25936
+ return ret;
25937
+ },
25781
25938
  __wbg_noteconsumability_new: function(arg0) {
25782
25939
  const ret = NoteConsumability.__wrap(arg0);
25783
25940
  return ret;
@@ -25834,7 +25991,7 @@ function __wbg_get_imports(memory) {
25834
25991
  const ret = Array.of(arg0, arg1, arg2);
25835
25992
  return ret;
25836
25993
  },
25837
- __wbg_openDatabase_d434e531abab67a4: function(arg0, arg1, arg2, arg3) {
25994
+ __wbg_openDatabase_dade7696599cc268: function(arg0, arg1, arg2, arg3) {
25838
25995
  const ret = openDatabase(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
25839
25996
  return ret;
25840
25997
  },
@@ -25868,7 +26025,7 @@ function __wbg_get_imports(memory) {
25868
26025
  const ret = ProvenTransaction.__wrap(arg0);
25869
26026
  return ret;
25870
26027
  },
25871
- __wbg_pruneAccountHistory_601cf8b7deb90730: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26028
+ __wbg_pruneAccountHistory_4b805f8ee1a03061: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25872
26029
  let deferred0_0;
25873
26030
  let deferred0_1;
25874
26031
  let deferred1_0;
@@ -25885,7 +26042,7 @@ function __wbg_get_imports(memory) {
25885
26042
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25886
26043
  }
25887
26044
  },
25888
- __wbg_pruneIrrelevantBlocks_6dfe3f86e818875b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26045
+ __wbg_pruneIrrelevantBlocks_8bd4b5b8b6e87516: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25889
26046
  var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
25890
26047
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25891
26048
  var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
@@ -25915,13 +26072,13 @@ function __wbg_get_imports(memory) {
25915
26072
  __wbg_releaseLock_aa5846c2494b3032: function(arg0) {
25916
26073
  arg0.releaseLock();
25917
26074
  },
25918
- __wbg_removeAccountAddress_4f2f68a69c6824ba: function(arg0, arg1, arg2, arg3) {
26075
+ __wbg_removeAccountAddress_a5929a2b59fde92e: function(arg0, arg1, arg2, arg3) {
25919
26076
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25920
26077
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25921
26078
  const ret = removeAccountAddress(getStringFromWasm0(arg0, arg1), v0);
25922
26079
  return ret;
25923
26080
  },
25924
- __wbg_removeAccountAuth_270323d61dcc5a1c: function(arg0, arg1, arg2, arg3) {
26081
+ __wbg_removeAccountAuth_7fd68774c7763092: function(arg0, arg1, arg2, arg3) {
25925
26082
  let deferred0_0;
25926
26083
  let deferred0_1;
25927
26084
  try {
@@ -25933,7 +26090,7 @@ function __wbg_get_imports(memory) {
25933
26090
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25934
26091
  }
25935
26092
  },
25936
- __wbg_removeAllMappingsForKey_0cd82b003ec78640: function(arg0, arg1, arg2, arg3) {
26093
+ __wbg_removeAllMappingsForKey_f33d5693234e701e: function(arg0, arg1, arg2, arg3) {
25937
26094
  let deferred0_0;
25938
26095
  let deferred0_1;
25939
26096
  try {
@@ -25945,7 +26102,7 @@ function __wbg_get_imports(memory) {
25945
26102
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25946
26103
  }
25947
26104
  },
25948
- __wbg_removeNoteTag_99bf10aa95385cdd: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
26105
+ __wbg_removeNoteTag_04d1db037df7f461: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
25949
26106
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25950
26107
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25951
26108
  let v1;
@@ -25966,7 +26123,7 @@ function __wbg_get_imports(memory) {
25966
26123
  const ret = removeNoteTag(getStringFromWasm0(arg0, arg1), v0, v1, v2, v3);
25967
26124
  return ret;
25968
26125
  },
25969
- __wbg_removeSetting_435793c919df62ea: function(arg0, arg1, arg2, arg3) {
26126
+ __wbg_removeSetting_a53a2a6a735eb18c: function(arg0, arg1, arg2, arg3) {
25970
26127
  let deferred0_0;
25971
26128
  let deferred0_1;
25972
26129
  try {
@@ -26176,13 +26333,13 @@ function __wbg_get_imports(memory) {
26176
26333
  const ret = TransactionSummary.__wrap(arg0);
26177
26334
  return ret;
26178
26335
  },
26179
- __wbg_undoAccountStates_bc8f443bd3fee100: function(arg0, arg1, arg2, arg3) {
26336
+ __wbg_undoAccountStates_cb4dbf5c6f4d06e9: function(arg0, arg1, arg2, arg3) {
26180
26337
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
26181
26338
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
26182
26339
  const ret = undoAccountStates(getStringFromWasm0(arg0, arg1), v0);
26183
26340
  return ret;
26184
26341
  },
26185
- __wbg_upsertAccountCode_2988cd68796aacef: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26342
+ __wbg_upsertAccountCode_796427764c9198f0: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26186
26343
  let deferred0_0;
26187
26344
  let deferred0_1;
26188
26345
  try {
@@ -26196,7 +26353,7 @@ function __wbg_get_imports(memory) {
26196
26353
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26197
26354
  }
26198
26355
  },
26199
- __wbg_upsertAccountRecord_124cfe8dc72ff46f: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) {
26356
+ __wbg_upsertAccountRecord_0a876f8ec19f47bb: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) {
26200
26357
  let deferred0_0;
26201
26358
  let deferred0_1;
26202
26359
  let deferred1_0;
@@ -26238,7 +26395,7 @@ function __wbg_get_imports(memory) {
26238
26395
  wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
26239
26396
  }
26240
26397
  },
26241
- __wbg_upsertAccountStorage_b7e55e69d8c649ff: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26398
+ __wbg_upsertAccountStorage_8bde852e4a19d8df: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26242
26399
  let deferred0_0;
26243
26400
  let deferred0_1;
26244
26401
  try {
@@ -26252,7 +26409,7 @@ function __wbg_get_imports(memory) {
26252
26409
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26253
26410
  }
26254
26411
  },
26255
- __wbg_upsertForeignAccountCode_321f8c2b6560540f: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
26412
+ __wbg_upsertForeignAccountCode_e1fba6198defc496: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
26256
26413
  let deferred0_0;
26257
26414
  let deferred0_1;
26258
26415
  let deferred2_0;
@@ -26271,7 +26428,7 @@ function __wbg_get_imports(memory) {
26271
26428
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
26272
26429
  }
26273
26430
  },
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) {
26431
+ __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) {
26275
26432
  let deferred0_0;
26276
26433
  let deferred0_1;
26277
26434
  let deferred6_0;
@@ -26320,7 +26477,7 @@ function __wbg_get_imports(memory) {
26320
26477
  wasm.__wbindgen_free(deferred9_0, deferred9_1, 1);
26321
26478
  }
26322
26479
  },
26323
- __wbg_upsertNoteScript_96ab2ba0a90f1446: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26480
+ __wbg_upsertNoteScript_03dd7b732ab40d80: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26324
26481
  let deferred0_0;
26325
26482
  let deferred0_1;
26326
26483
  try {
@@ -26334,7 +26491,7 @@ function __wbg_get_imports(memory) {
26334
26491
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26335
26492
  }
26336
26493
  },
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) {
26494
+ __wbg_upsertOutputNote_6625bc60ec9e00c7: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) {
26338
26495
  let deferred0_0;
26339
26496
  let deferred0_1;
26340
26497
  let deferred1_0;
@@ -26369,7 +26526,7 @@ function __wbg_get_imports(memory) {
26369
26526
  wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
26370
26527
  }
26371
26528
  },
26372
- __wbg_upsertStorageMapEntries_5f86e7cc367f03c1: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26529
+ __wbg_upsertStorageMapEntries_03e99b5c83445616: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26373
26530
  let deferred0_0;
26374
26531
  let deferred0_1;
26375
26532
  try {
@@ -26383,7 +26540,7 @@ function __wbg_get_imports(memory) {
26383
26540
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26384
26541
  }
26385
26542
  },
26386
- __wbg_upsertTransactionRecord_dc6cf6e7c6196905: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
26543
+ __wbg_upsertTransactionRecord_a5888dce53039ce9: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
26387
26544
  let deferred0_0;
26388
26545
  let deferred0_1;
26389
26546
  try {
@@ -26404,7 +26561,7 @@ function __wbg_get_imports(memory) {
26404
26561
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26405
26562
  }
26406
26563
  },
26407
- __wbg_upsertVaultAssets_b09b89783ef95fbe: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26564
+ __wbg_upsertVaultAssets_c9a6f9534551a55b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26408
26565
  let deferred0_0;
26409
26566
  let deferred0_1;
26410
26567
  try {
@@ -26447,17 +26604,17 @@ function __wbg_get_imports(memory) {
26447
26604
  return ret;
26448
26605
  },
26449
26606
  __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`.
26607
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 129, function: Function { arguments: [Externref], shim_idx: 130, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26451
26608
  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
26609
  return ret;
26453
26610
  },
26454
26611
  __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`.
26612
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 129, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 130, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26456
26613
  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
26614
  return ret;
26458
26615
  },
26459
26616
  __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`.
26617
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 129, function: Function { arguments: [], shim_idx: 453, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26461
26618
  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
26619
  return ret;
26463
26620
  },
@@ -26798,6 +26955,9 @@ const LibraryFinalization = (typeof FinalizationRegistry === 'undefined')
26798
26955
  const MerklePathFinalization = (typeof FinalizationRegistry === 'undefined')
26799
26956
  ? { register: () => {}, unregister: () => {} }
26800
26957
  : new FinalizationRegistry(ptr => wasm.__wbg_merklepath_free(ptr >>> 0, 1));
26958
+ const NetworkAccountTargetFinalization = (typeof FinalizationRegistry === 'undefined')
26959
+ ? { register: () => {}, unregister: () => {} }
26960
+ : new FinalizationRegistry(ptr => wasm.__wbg_networkaccounttarget_free(ptr >>> 0, 1));
26801
26961
  const NetworkIdFinalization = (typeof FinalizationRegistry === 'undefined')
26802
26962
  ? { register: () => {}, unregister: () => {} }
26803
26963
  : new FinalizationRegistry(ptr => wasm.__wbg_networkid_free(ptr >>> 0, 1));
@@ -27487,6 +27647,7 @@ var index = /*#__PURE__*/Object.freeze({
27487
27647
  JsVaultAsset: JsVaultAsset,
27488
27648
  Library: Library,
27489
27649
  MerklePath: MerklePath,
27650
+ NetworkAccountTarget: NetworkAccountTarget,
27490
27651
  NetworkId: NetworkId,
27491
27652
  NetworkNoteStatusInfo: NetworkNoteStatusInfo,
27492
27653
  NetworkType: NetworkType,
@@ -27591,7 +27752,7 @@ var index = /*#__PURE__*/Object.freeze({
27591
27752
 
27592
27753
  const module$1 = new URL("assets/miden_client_web.wasm", self.location.href);
27593
27754
 
27594
- var CargoDjVnfWKi = /*#__PURE__*/Object.freeze({
27755
+ var CargoC001gt8g = /*#__PURE__*/Object.freeze({
27595
27756
  __proto__: null,
27596
27757
  Account: Account,
27597
27758
  AccountArray: AccountArray,
@@ -27656,6 +27817,7 @@ var CargoDjVnfWKi = /*#__PURE__*/Object.freeze({
27656
27817
  JsVaultAsset: JsVaultAsset,
27657
27818
  Library: Library,
27658
27819
  MerklePath: MerklePath,
27820
+ NetworkAccountTarget: NetworkAccountTarget,
27659
27821
  NetworkId: NetworkId,
27660
27822
  NetworkNoteStatusInfo: NetworkNoteStatusInfo,
27661
27823
  NetworkType: NetworkType,