@miden-sdk/miden-sdk 0.14.3 → 0.14.4

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.
@@ -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 CargoDanGIA8; });
8
+ wasmModule = await Promise.resolve().then(function () { return CargoBwjf7IkR; });
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
@@ -250,12 +250,14 @@ const methodHandlers = {
250
250
 
251
251
  const prover = proverPayload
252
252
  ? wasm.TransactionProver.deserialize(proverPayload)
253
- : undefined;
254
-
255
- const proven = await wasmWebClient.proveTransaction(
256
- transactionResult,
257
- prover
258
- );
253
+ : null;
254
+
255
+ const proven = prover
256
+ ? await wasmWebClient.proveTransactionWithProver(
257
+ transactionResult,
258
+ prover
259
+ )
260
+ : await wasmWebClient.proveTransaction(transactionResult);
259
261
  const serializedProven = proven.serialize();
260
262
  return serializedProven.buffer;
261
263
  },
@@ -308,7 +310,7 @@ const methodHandlers = {
308
310
  // Deserialize the prover from the serialized payload
309
311
  const prover = proverPayload
310
312
  ? wasm.TransactionProver.deserialize(proverPayload)
311
- : undefined;
313
+ : null;
312
314
 
313
315
  const result = await wasmWebClient.executeTransaction(
314
316
  accountId,
@@ -317,7 +319,9 @@ const methodHandlers = {
317
319
 
318
320
  const transactionId = result.id().toHex();
319
321
 
320
- const proven = await wasmWebClient.proveTransaction(result, prover);
322
+ const proven = prover
323
+ ? await wasmWebClient.proveTransactionWithProver(result, prover)
324
+ : await wasmWebClient.proveTransaction(result);
321
325
  const submissionHeight = await wasmWebClient.submitProvenTransaction(
322
326
  proven,
323
327
  result
@@ -12770,6 +12774,19 @@ class BlockHeader {
12770
12774
  const ret = wasm.blockheader_commitment(this.__wbg_ptr);
12771
12775
  return Word.__wrap(ret);
12772
12776
  }
12777
+ /**
12778
+ * Returns the account ID of the fungible faucet whose assets are accepted as the native
12779
+ * asset of the blockchain (i.e. the asset used for paying transaction verification fees).
12780
+ *
12781
+ * This is stored on-chain as part of the block's fee parameters, which means consumers can
12782
+ * discover the native faucet by reading any block header rather than hardcoding it per
12783
+ * network.
12784
+ * @returns {AccountId}
12785
+ */
12786
+ nativeAssetId() {
12787
+ const ret = wasm.blockheader_nativeAssetId(this.__wbg_ptr);
12788
+ return AccountId.__wrap(ret);
12789
+ }
12773
12790
  /**
12774
12791
  * Returns the note commitment root.
12775
12792
  * @returns {Word}
@@ -21886,6 +21903,35 @@ class WebClient {
21886
21903
  }
21887
21904
  return WebKeystoreApi.__wrap(ret[0]);
21888
21905
  }
21906
+ /**
21907
+ * Returns the raw JS value that the most recent sign-callback invocation
21908
+ * threw, or `null` if the last sign call succeeded (or no call has
21909
+ * happened yet).
21910
+ *
21911
+ * Combined with the serialized-call discipline enforced at the JS
21912
+ * `WebClient` wrapper, this lets a caller that caught a failed
21913
+ * `executeTransaction` / `submitNewTransaction` recover the original
21914
+ * JS error the signing callback threw — preserving any structured
21915
+ * metadata (e.g. a `reason: 'locked'` property) that the kernel-level
21916
+ * `auth::request` diagnostic would otherwise have erased.
21917
+ *
21918
+ * # Usage (TS)
21919
+ * ```ts
21920
+ * try {
21921
+ * await client.submitNewTransaction(acc, req);
21922
+ * } catch (e) {
21923
+ * const authErr = client.lastAuthError();
21924
+ * if (authErr && authErr.reason === 'locked') {
21925
+ * // wait for unlock, then retry
21926
+ * }
21927
+ * }
21928
+ * ```
21929
+ * @returns {any}
21930
+ */
21931
+ lastAuthError() {
21932
+ const ret = wasm.webclient_lastAuthError(this.__wbg_ptr);
21933
+ return ret;
21934
+ }
21889
21935
  /**
21890
21936
  * Returns all the existing setting keys from the store.
21891
21937
  * @returns {Promise<string[]>}
@@ -22038,20 +22084,32 @@ class WebClient {
22038
22084
  }
22039
22085
  }
22040
22086
  /**
22041
- * Generates a transaction proof using either the provided prover or the client's default
22042
- * prover if none is supplied.
22087
+ * Generates a transaction proof using the client's default (local) prover.
22043
22088
  * @param {TransactionResult} transaction_result
22044
- * @param {TransactionProver | null} [prover]
22045
22089
  * @returns {Promise<ProvenTransaction>}
22046
22090
  */
22047
- proveTransaction(transaction_result, prover) {
22091
+ proveTransaction(transaction_result) {
22048
22092
  _assertClass(transaction_result, TransactionResult);
22049
- let ptr0 = 0;
22050
- if (!isLikeNone(prover)) {
22051
- _assertClass(prover, TransactionProver);
22052
- ptr0 = prover.__destroy_into_raw();
22053
- }
22054
- const ret = wasm.webclient_proveTransaction(this.__wbg_ptr, transaction_result.__wbg_ptr, ptr0);
22093
+ const ret = wasm.webclient_proveTransaction(this.__wbg_ptr, transaction_result.__wbg_ptr);
22094
+ return ret;
22095
+ }
22096
+ /**
22097
+ * Generates a transaction proof using the provided prover.
22098
+ *
22099
+ * Takes the prover by reference so the JS-side handle is NOT consumed
22100
+ * by wasm-bindgen. Taking `TransactionProver` by value would transfer
22101
+ * ownership on each call, invalidating the JS object's internal WASM
22102
+ * handle; after one use, subsequent calls from JS would pass a dangling
22103
+ * handle that wasm-bindgen interprets as `None`, silently falling back
22104
+ * to the local prover.
22105
+ * @param {TransactionResult} transaction_result
22106
+ * @param {TransactionProver} prover
22107
+ * @returns {Promise<ProvenTransaction>}
22108
+ */
22109
+ proveTransactionWithProver(transaction_result, prover) {
22110
+ _assertClass(transaction_result, TransactionResult);
22111
+ _assertClass(prover, TransactionProver);
22112
+ const ret = wasm.webclient_proveTransactionWithProver(this.__wbg_ptr, transaction_result.__wbg_ptr, prover.__wbg_ptr);
22055
22113
  return ret;
22056
22114
  }
22057
22115
  /**
@@ -22654,7 +22712,7 @@ function __wbg_get_imports() {
22654
22712
  const ret = AccountStorage.__wrap(arg0);
22655
22713
  return ret;
22656
22714
  },
22657
- __wbg_addNoteTag_11ef04a2021426ef: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
22715
+ __wbg_addNoteTag_698909ab9460b85a: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
22658
22716
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
22659
22717
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
22660
22718
  let v1;
@@ -22677,15 +22735,15 @@ function __wbg_get_imports() {
22677
22735
  __wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
22678
22736
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
22679
22737
  }, arguments); },
22680
- __wbg_applyFullAccountState_06104a9f7cd6301c: function(arg0, arg1, arg2) {
22738
+ __wbg_applyFullAccountState_eade9faa19596125: function(arg0, arg1, arg2) {
22681
22739
  const ret = applyFullAccountState(getStringFromWasm0(arg0, arg1), JsAccountUpdate.__wrap(arg2));
22682
22740
  return ret;
22683
22741
  },
22684
- __wbg_applyStateSync_f03ce7a14d83ae1a: function(arg0, arg1, arg2) {
22742
+ __wbg_applyStateSync_9564c858a70c99b8: function(arg0, arg1, arg2) {
22685
22743
  const ret = applyStateSync(getStringFromWasm0(arg0, arg1), JsStateSyncUpdate.__wrap(arg2));
22686
22744
  return ret;
22687
22745
  },
22688
- __wbg_applyTransactionDelta_45aa0540549a17a5: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20) {
22746
+ __wbg_applyTransactionDelta_9628eb6590c0ceb1: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20) {
22689
22747
  let deferred0_0;
22690
22748
  let deferred0_1;
22691
22749
  let deferred1_0;
@@ -22820,7 +22878,7 @@ function __wbg_get_imports() {
22820
22878
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22821
22879
  }
22822
22880
  },
22823
- __wbg_exportStore_1d052c59453b2e6b: function(arg0, arg1) {
22881
+ __wbg_exportStore_a67b45413c960e8c: function(arg0, arg1) {
22824
22882
  const ret = exportStore(getStringFromWasm0(arg0, arg1));
22825
22883
  return ret;
22826
22884
  },
@@ -22852,7 +22910,7 @@ function __wbg_get_imports() {
22852
22910
  const ret = FetchedNote.__wrap(arg0);
22853
22911
  return ret;
22854
22912
  },
22855
- __wbg_forceImportStore_40b29b3a8e166d8f: function(arg0, arg1, arg2) {
22913
+ __wbg_forceImportStore_eb9f85ecf3af7d43: function(arg0, arg1, arg2) {
22856
22914
  const ret = forceImportStore(getStringFromWasm0(arg0, arg1), arg2);
22857
22915
  return ret;
22858
22916
  },
@@ -22872,7 +22930,7 @@ function __wbg_get_imports() {
22872
22930
  const ret = FungibleAssetDeltaItem.__wrap(arg0);
22873
22931
  return ret;
22874
22932
  },
22875
- __wbg_getAccountAddresses_926ab3560c2a9431: function(arg0, arg1, arg2, arg3) {
22933
+ __wbg_getAccountAddresses_51afaacf9f52c77a: function(arg0, arg1, arg2, arg3) {
22876
22934
  let deferred0_0;
22877
22935
  let deferred0_1;
22878
22936
  try {
@@ -22884,7 +22942,7 @@ function __wbg_get_imports() {
22884
22942
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22885
22943
  }
22886
22944
  },
22887
- __wbg_getAccountAuthByPubKeyCommitment_6180aad0a5b10e89: function(arg0, arg1, arg2, arg3) {
22945
+ __wbg_getAccountAuthByPubKeyCommitment_3d1eeae52f97e127: function(arg0, arg1, arg2, arg3) {
22888
22946
  let deferred0_0;
22889
22947
  let deferred0_1;
22890
22948
  try {
@@ -22896,7 +22954,7 @@ function __wbg_get_imports() {
22896
22954
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22897
22955
  }
22898
22956
  },
22899
- __wbg_getAccountCode_7282ed4c1b060f31: function(arg0, arg1, arg2, arg3) {
22957
+ __wbg_getAccountCode_84b1542a2d9efa6e: function(arg0, arg1, arg2, arg3) {
22900
22958
  let deferred0_0;
22901
22959
  let deferred0_1;
22902
22960
  try {
@@ -22908,7 +22966,7 @@ function __wbg_get_imports() {
22908
22966
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22909
22967
  }
22910
22968
  },
22911
- __wbg_getAccountHeaderByCommitment_c7ead40688213791: function(arg0, arg1, arg2, arg3) {
22969
+ __wbg_getAccountHeaderByCommitment_5be294a0512143cb: function(arg0, arg1, arg2, arg3) {
22912
22970
  let deferred0_0;
22913
22971
  let deferred0_1;
22914
22972
  try {
@@ -22920,7 +22978,7 @@ function __wbg_get_imports() {
22920
22978
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22921
22979
  }
22922
22980
  },
22923
- __wbg_getAccountHeader_33832f0bcfdb6862: function(arg0, arg1, arg2, arg3) {
22981
+ __wbg_getAccountHeader_a9304a0079f4e254: function(arg0, arg1, arg2, arg3) {
22924
22982
  let deferred0_0;
22925
22983
  let deferred0_1;
22926
22984
  try {
@@ -22932,7 +22990,7 @@ function __wbg_get_imports() {
22932
22990
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22933
22991
  }
22934
22992
  },
22935
- __wbg_getAccountIdByKeyCommitment_c6133713d0d915a2: function(arg0, arg1, arg2, arg3) {
22993
+ __wbg_getAccountIdByKeyCommitment_adfd1a18dc9eff3d: function(arg0, arg1, arg2, arg3) {
22936
22994
  let deferred0_0;
22937
22995
  let deferred0_1;
22938
22996
  try {
@@ -22944,11 +23002,11 @@ function __wbg_get_imports() {
22944
23002
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22945
23003
  }
22946
23004
  },
22947
- __wbg_getAccountIds_cee939c57cc6b89e: function(arg0, arg1) {
23005
+ __wbg_getAccountIds_2b769482d9d22c91: function(arg0, arg1) {
22948
23006
  const ret = getAccountIds(getStringFromWasm0(arg0, arg1));
22949
23007
  return ret;
22950
23008
  },
22951
- __wbg_getAccountStorageMaps_e0d0a1db17eec3dc: function(arg0, arg1, arg2, arg3) {
23009
+ __wbg_getAccountStorageMaps_8315b00d0eb2f171: function(arg0, arg1, arg2, arg3) {
22952
23010
  let deferred0_0;
22953
23011
  let deferred0_1;
22954
23012
  try {
@@ -22960,7 +23018,7 @@ function __wbg_get_imports() {
22960
23018
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22961
23019
  }
22962
23020
  },
22963
- __wbg_getAccountStorage_c167b8bb7e6786e9: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23021
+ __wbg_getAccountStorage_15977a4f6e04fd64: function(arg0, arg1, arg2, arg3, arg4, arg5) {
22964
23022
  let deferred0_0;
22965
23023
  let deferred0_1;
22966
23024
  try {
@@ -22974,7 +23032,7 @@ function __wbg_get_imports() {
22974
23032
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22975
23033
  }
22976
23034
  },
22977
- __wbg_getAccountVaultAssets_deebdbadff97833e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23035
+ __wbg_getAccountVaultAssets_a97760310afd4d4b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
22978
23036
  let deferred0_0;
22979
23037
  let deferred0_1;
22980
23038
  try {
@@ -22988,23 +23046,23 @@ function __wbg_get_imports() {
22988
23046
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22989
23047
  }
22990
23048
  },
22991
- __wbg_getAllAccountHeaders_8ee29c6d72075e33: function(arg0, arg1) {
23049
+ __wbg_getAllAccountHeaders_be49e1d4ba8290ab: function(arg0, arg1) {
22992
23050
  const ret = getAllAccountHeaders(getStringFromWasm0(arg0, arg1));
22993
23051
  return ret;
22994
23052
  },
22995
- __wbg_getBlockHeaders_249b6687b100f621: function(arg0, arg1, arg2, arg3) {
23053
+ __wbg_getBlockHeaders_17f4a78b0b73a04f: function(arg0, arg1, arg2, arg3) {
22996
23054
  var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
22997
23055
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
22998
23056
  const ret = getBlockHeaders(getStringFromWasm0(arg0, arg1), v0);
22999
23057
  return ret;
23000
23058
  },
23001
- __wbg_getForeignAccountCode_5e4e8d9037c06238: function(arg0, arg1, arg2, arg3) {
23059
+ __wbg_getForeignAccountCode_1b334242465029b9: function(arg0, arg1, arg2, arg3) {
23002
23060
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
23003
23061
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
23004
23062
  const ret = getForeignAccountCode(getStringFromWasm0(arg0, arg1), v0);
23005
23063
  return ret;
23006
23064
  },
23007
- __wbg_getInputNoteByOffset_a6c99499b09a1b98: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
23065
+ __wbg_getInputNoteByOffset_b159a98e6585d580: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
23008
23066
  let deferred1_0;
23009
23067
  let deferred1_1;
23010
23068
  try {
@@ -23018,25 +23076,25 @@ function __wbg_get_imports() {
23018
23076
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
23019
23077
  }
23020
23078
  },
23021
- __wbg_getInputNotesFromIds_f17b728faada1f3c: function(arg0, arg1, arg2, arg3) {
23079
+ __wbg_getInputNotesFromIds_9244d0972946d1e9: function(arg0, arg1, arg2, arg3) {
23022
23080
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
23023
23081
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
23024
23082
  const ret = getInputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
23025
23083
  return ret;
23026
23084
  },
23027
- __wbg_getInputNotesFromNullifiers_f562e855551c6d5d: function(arg0, arg1, arg2, arg3) {
23085
+ __wbg_getInputNotesFromNullifiers_20a275b6054e2675: function(arg0, arg1, arg2, arg3) {
23028
23086
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
23029
23087
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
23030
23088
  const ret = getInputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
23031
23089
  return ret;
23032
23090
  },
23033
- __wbg_getInputNotes_3678c3a165fe6fb7: function(arg0, arg1, arg2, arg3) {
23091
+ __wbg_getInputNotes_3c02639073a27a1b: function(arg0, arg1, arg2, arg3) {
23034
23092
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
23035
23093
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
23036
23094
  const ret = getInputNotes(getStringFromWasm0(arg0, arg1), v0);
23037
23095
  return ret;
23038
23096
  },
23039
- __wbg_getKeyCommitmentsByAccountId_62a1ded159bb6e85: function(arg0, arg1, arg2, arg3) {
23097
+ __wbg_getKeyCommitmentsByAccountId_b0f7dfe5f184268b: function(arg0, arg1, arg2, arg3) {
23040
23098
  let deferred0_0;
23041
23099
  let deferred0_1;
23042
23100
  try {
@@ -23048,7 +23106,7 @@ function __wbg_get_imports() {
23048
23106
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23049
23107
  }
23050
23108
  },
23051
- __wbg_getNoteScript_61487cdb7895a70f: function(arg0, arg1, arg2, arg3) {
23109
+ __wbg_getNoteScript_867d54f06c81e941: function(arg0, arg1, arg2, arg3) {
23052
23110
  let deferred0_0;
23053
23111
  let deferred0_1;
23054
23112
  try {
@@ -23060,33 +23118,33 @@ function __wbg_get_imports() {
23060
23118
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23061
23119
  }
23062
23120
  },
23063
- __wbg_getNoteTags_0c26db177ae89c88: function(arg0, arg1) {
23121
+ __wbg_getNoteTags_9873a6e080e3852e: function(arg0, arg1) {
23064
23122
  const ret = getNoteTags(getStringFromWasm0(arg0, arg1));
23065
23123
  return ret;
23066
23124
  },
23067
- __wbg_getOutputNotesFromIds_9051d7dc5189798a: function(arg0, arg1, arg2, arg3) {
23125
+ __wbg_getOutputNotesFromIds_39d02b7c705b516a: function(arg0, arg1, arg2, arg3) {
23068
23126
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
23069
23127
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
23070
23128
  const ret = getOutputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
23071
23129
  return ret;
23072
23130
  },
23073
- __wbg_getOutputNotesFromNullifiers_1e5c4da17a47cf06: function(arg0, arg1, arg2, arg3) {
23131
+ __wbg_getOutputNotesFromNullifiers_d1ae3200c43e2f6c: function(arg0, arg1, arg2, arg3) {
23074
23132
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
23075
23133
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
23076
23134
  const ret = getOutputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
23077
23135
  return ret;
23078
23136
  },
23079
- __wbg_getOutputNotes_9e17595e613f9c01: function(arg0, arg1, arg2, arg3) {
23137
+ __wbg_getOutputNotes_bb6846291f45a6d5: function(arg0, arg1, arg2, arg3) {
23080
23138
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
23081
23139
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
23082
23140
  const ret = getOutputNotes(getStringFromWasm0(arg0, arg1), v0);
23083
23141
  return ret;
23084
23142
  },
23085
- __wbg_getPartialBlockchainNodesAll_9014a51f02bbd53d: function(arg0, arg1) {
23143
+ __wbg_getPartialBlockchainNodesAll_94c7cf9fe9cbfce1: function(arg0, arg1) {
23086
23144
  const ret = getPartialBlockchainNodesAll(getStringFromWasm0(arg0, arg1));
23087
23145
  return ret;
23088
23146
  },
23089
- __wbg_getPartialBlockchainNodesUpToInOrderIndex_0254610e7caf6ed7: function(arg0, arg1, arg2, arg3) {
23147
+ __wbg_getPartialBlockchainNodesUpToInOrderIndex_4f5ca17c3f5dc6d6: function(arg0, arg1, arg2, arg3) {
23090
23148
  let deferred0_0;
23091
23149
  let deferred0_1;
23092
23150
  try {
@@ -23098,13 +23156,13 @@ function __wbg_get_imports() {
23098
23156
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23099
23157
  }
23100
23158
  },
23101
- __wbg_getPartialBlockchainNodes_216afeff33c3f62a: function(arg0, arg1, arg2, arg3) {
23159
+ __wbg_getPartialBlockchainNodes_ae379fc78bb9f182: function(arg0, arg1, arg2, arg3) {
23102
23160
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
23103
23161
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
23104
23162
  const ret = getPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0);
23105
23163
  return ret;
23106
23164
  },
23107
- __wbg_getPartialBlockchainPeaksByBlockNum_1d5f843144fafd89: function(arg0, arg1, arg2) {
23165
+ __wbg_getPartialBlockchainPeaksByBlockNum_3aabada7ce71eee3: function(arg0, arg1, arg2) {
23108
23166
  const ret = getPartialBlockchainPeaksByBlockNum(getStringFromWasm0(arg0, arg1), arg2 >>> 0);
23109
23167
  return ret;
23110
23168
  },
@@ -23115,7 +23173,7 @@ function __wbg_get_imports() {
23115
23173
  const ret = arg0.getReader();
23116
23174
  return ret;
23117
23175
  }, arguments); },
23118
- __wbg_getSetting_6042192ea6a1bf9d: function(arg0, arg1, arg2, arg3) {
23176
+ __wbg_getSetting_186df2c955123498: function(arg0, arg1, arg2, arg3) {
23119
23177
  let deferred0_0;
23120
23178
  let deferred0_1;
23121
23179
  try {
@@ -23127,7 +23185,7 @@ function __wbg_get_imports() {
23127
23185
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23128
23186
  }
23129
23187
  },
23130
- __wbg_getSyncHeight_e6eb57509633e416: function(arg0, arg1) {
23188
+ __wbg_getSyncHeight_bb8554ff55ffbf9f: function(arg0, arg1) {
23131
23189
  const ret = getSyncHeight(getStringFromWasm0(arg0, arg1));
23132
23190
  return ret;
23133
23191
  },
@@ -23135,15 +23193,15 @@ function __wbg_get_imports() {
23135
23193
  const ret = arg0.getTime();
23136
23194
  return ret;
23137
23195
  },
23138
- __wbg_getTrackedBlockHeaderNumbers_10c6744062bd7dbd: function(arg0, arg1) {
23196
+ __wbg_getTrackedBlockHeaderNumbers_f816d2d4d27342c3: function(arg0, arg1) {
23139
23197
  const ret = getTrackedBlockHeaderNumbers(getStringFromWasm0(arg0, arg1));
23140
23198
  return ret;
23141
23199
  },
23142
- __wbg_getTrackedBlockHeaders_95c6dcc2ffd76496: function(arg0, arg1) {
23200
+ __wbg_getTrackedBlockHeaders_f283e0da82bfc822: function(arg0, arg1) {
23143
23201
  const ret = getTrackedBlockHeaders(getStringFromWasm0(arg0, arg1));
23144
23202
  return ret;
23145
23203
  },
23146
- __wbg_getTransactions_5bae4cee1f2f5d61: function(arg0, arg1, arg2, arg3) {
23204
+ __wbg_getTransactions_1bd61b628e179d02: function(arg0, arg1, arg2, arg3) {
23147
23205
  let deferred0_0;
23148
23206
  let deferred0_1;
23149
23207
  try {
@@ -23155,7 +23213,7 @@ function __wbg_get_imports() {
23155
23213
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23156
23214
  }
23157
23215
  },
23158
- __wbg_getUnspentInputNoteNullifiers_c8d95cbd1b29253b: function(arg0, arg1) {
23216
+ __wbg_getUnspentInputNoteNullifiers_d62daa144f0c3fe5: function(arg0, arg1) {
23159
23217
  const ret = getUnspentInputNoteNullifiers(getStringFromWasm0(arg0, arg1));
23160
23218
  return ret;
23161
23219
  },
@@ -23199,7 +23257,7 @@ function __wbg_get_imports() {
23199
23257
  const ret = InputNoteRecord.__wrap(arg0);
23200
23258
  return ret;
23201
23259
  },
23202
- __wbg_insertAccountAddress_de3f0be5aade3edb: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23260
+ __wbg_insertAccountAddress_74f0e4c7a639254e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23203
23261
  let deferred0_0;
23204
23262
  let deferred0_1;
23205
23263
  try {
@@ -23213,7 +23271,7 @@ function __wbg_get_imports() {
23213
23271
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23214
23272
  }
23215
23273
  },
23216
- __wbg_insertAccountAuth_8d37e0d14f5d22b1: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23274
+ __wbg_insertAccountAuth_3c33b553fe5c8c05: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23217
23275
  let deferred0_0;
23218
23276
  let deferred0_1;
23219
23277
  let deferred1_0;
@@ -23230,7 +23288,7 @@ function __wbg_get_imports() {
23230
23288
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
23231
23289
  }
23232
23290
  },
23233
- __wbg_insertAccountKeyMapping_1e78156f0d9819cc: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23291
+ __wbg_insertAccountKeyMapping_d2a0b817a8140e6e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23234
23292
  let deferred0_0;
23235
23293
  let deferred0_1;
23236
23294
  let deferred1_0;
@@ -23247,7 +23305,7 @@ function __wbg_get_imports() {
23247
23305
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
23248
23306
  }
23249
23307
  },
23250
- __wbg_insertBlockHeader_b2f6b48025b26202: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
23308
+ __wbg_insertBlockHeader_bcda8bc22e77cf32: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
23251
23309
  var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
23252
23310
  wasm.__wbindgen_free(arg3, arg4 * 1, 1);
23253
23311
  var v1 = getArrayU8FromWasm0(arg5, arg6).slice();
@@ -23255,7 +23313,7 @@ function __wbg_get_imports() {
23255
23313
  const ret = insertBlockHeader(getStringFromWasm0(arg0, arg1), arg2 >>> 0, v0, v1, arg7 !== 0);
23256
23314
  return ret;
23257
23315
  },
23258
- __wbg_insertPartialBlockchainNodes_b3da456780837be0: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23316
+ __wbg_insertPartialBlockchainNodes_135515caa8cd47bd: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23259
23317
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
23260
23318
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
23261
23319
  var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
@@ -23263,7 +23321,7 @@ function __wbg_get_imports() {
23263
23321
  const ret = insertPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0, v1);
23264
23322
  return ret;
23265
23323
  },
23266
- __wbg_insertSetting_327278750a8e8389: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23324
+ __wbg_insertSetting_fe1899c3024e1e38: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23267
23325
  let deferred0_0;
23268
23326
  let deferred0_1;
23269
23327
  try {
@@ -23277,7 +23335,7 @@ function __wbg_get_imports() {
23277
23335
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23278
23336
  }
23279
23337
  },
23280
- __wbg_insertTransactionScript_4289837b45dd2e6b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23338
+ __wbg_insertTransactionScript_310aca4fb4647d32: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23281
23339
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
23282
23340
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
23283
23341
  let v1;
@@ -23370,11 +23428,11 @@ function __wbg_get_imports() {
23370
23428
  const ret = arg0.length;
23371
23429
  return ret;
23372
23430
  },
23373
- __wbg_listSettingKeys_c697458b11d26274: function(arg0, arg1) {
23431
+ __wbg_listSettingKeys_384288a044f385de: function(arg0, arg1) {
23374
23432
  const ret = listSettingKeys(getStringFromWasm0(arg0, arg1));
23375
23433
  return ret;
23376
23434
  },
23377
- __wbg_lockAccount_7e4b2eaef4b9c0ae: function(arg0, arg1, arg2, arg3) {
23435
+ __wbg_lockAccount_a60d709094c45b53: function(arg0, arg1, arg2, arg3) {
23378
23436
  let deferred0_0;
23379
23437
  let deferred0_1;
23380
23438
  try {
@@ -23565,7 +23623,7 @@ function __wbg_get_imports() {
23565
23623
  const ret = NoteTag.__unwrap(arg0);
23566
23624
  return ret;
23567
23625
  },
23568
- __wbg_openDatabase_f82f982d13ff7823: function(arg0, arg1, arg2, arg3) {
23626
+ __wbg_openDatabase_4c3b292fbda4fc9b: function(arg0, arg1, arg2, arg3) {
23569
23627
  const ret = openDatabase(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
23570
23628
  return ret;
23571
23629
  },
@@ -23596,7 +23654,7 @@ function __wbg_get_imports() {
23596
23654
  const ret = ProvenTransaction.__wrap(arg0);
23597
23655
  return ret;
23598
23656
  },
23599
- __wbg_pruneAccountHistory_17467a4cfcb3099b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23657
+ __wbg_pruneAccountHistory_862dcd6254067486: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23600
23658
  let deferred0_0;
23601
23659
  let deferred0_1;
23602
23660
  let deferred1_0;
@@ -23613,7 +23671,7 @@ function __wbg_get_imports() {
23613
23671
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
23614
23672
  }
23615
23673
  },
23616
- __wbg_pruneIrrelevantBlocks_2fe3ae3b6757dae5: function(arg0, arg1) {
23674
+ __wbg_pruneIrrelevantBlocks_5d9d0b791bc84bbd: function(arg0, arg1) {
23617
23675
  const ret = pruneIrrelevantBlocks(getStringFromWasm0(arg0, arg1));
23618
23676
  return ret;
23619
23677
  },
@@ -23631,13 +23689,13 @@ function __wbg_get_imports() {
23631
23689
  __wbg_releaseLock_aa5846c2494b3032: function(arg0) {
23632
23690
  arg0.releaseLock();
23633
23691
  },
23634
- __wbg_removeAccountAddress_a099b08cd765b1fe: function(arg0, arg1, arg2, arg3) {
23692
+ __wbg_removeAccountAddress_b55c1b0cd60d92df: function(arg0, arg1, arg2, arg3) {
23635
23693
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
23636
23694
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
23637
23695
  const ret = removeAccountAddress(getStringFromWasm0(arg0, arg1), v0);
23638
23696
  return ret;
23639
23697
  },
23640
- __wbg_removeAccountAuth_c3eba3ecad64781a: function(arg0, arg1, arg2, arg3) {
23698
+ __wbg_removeAccountAuth_3fb9058cee274111: function(arg0, arg1, arg2, arg3) {
23641
23699
  let deferred0_0;
23642
23700
  let deferred0_1;
23643
23701
  try {
@@ -23649,7 +23707,7 @@ function __wbg_get_imports() {
23649
23707
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23650
23708
  }
23651
23709
  },
23652
- __wbg_removeAllMappingsForKey_c1d444d71e38a4b4: function(arg0, arg1, arg2, arg3) {
23710
+ __wbg_removeAllMappingsForKey_66ff5b0d6f9c2bd6: function(arg0, arg1, arg2, arg3) {
23653
23711
  let deferred0_0;
23654
23712
  let deferred0_1;
23655
23713
  try {
@@ -23661,7 +23719,7 @@ function __wbg_get_imports() {
23661
23719
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23662
23720
  }
23663
23721
  },
23664
- __wbg_removeNoteTag_07746f6aa221d3c6: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
23722
+ __wbg_removeNoteTag_0a14e1372f23806f: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
23665
23723
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
23666
23724
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
23667
23725
  let v1;
@@ -23677,7 +23735,7 @@ function __wbg_get_imports() {
23677
23735
  const ret = removeNoteTag(getStringFromWasm0(arg0, arg1), v0, v1, v2);
23678
23736
  return ret;
23679
23737
  },
23680
- __wbg_removeSetting_ed28cefbd3c96fdb: function(arg0, arg1, arg2, arg3) {
23738
+ __wbg_removeSetting_6bcea18b3e8da9e4: function(arg0, arg1, arg2, arg3) {
23681
23739
  let deferred0_0;
23682
23740
  let deferred0_1;
23683
23741
  try {
@@ -23869,13 +23927,13 @@ function __wbg_get_imports() {
23869
23927
  const ret = TransactionSummary.__wrap(arg0);
23870
23928
  return ret;
23871
23929
  },
23872
- __wbg_undoAccountStates_f537fe1c071a86ac: function(arg0, arg1, arg2, arg3) {
23930
+ __wbg_undoAccountStates_772949347567310a: function(arg0, arg1, arg2, arg3) {
23873
23931
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
23874
23932
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
23875
23933
  const ret = undoAccountStates(getStringFromWasm0(arg0, arg1), v0);
23876
23934
  return ret;
23877
23935
  },
23878
- __wbg_upsertAccountCode_cc05c6891e7d67cc: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23936
+ __wbg_upsertAccountCode_5aeef852ebb4eea3: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23879
23937
  let deferred0_0;
23880
23938
  let deferred0_1;
23881
23939
  try {
@@ -23889,7 +23947,7 @@ function __wbg_get_imports() {
23889
23947
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23890
23948
  }
23891
23949
  },
23892
- __wbg_upsertAccountRecord_cf92f5b6aa4078a0: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) {
23950
+ __wbg_upsertAccountRecord_e857a604366533d6: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) {
23893
23951
  let deferred0_0;
23894
23952
  let deferred0_1;
23895
23953
  let deferred1_0;
@@ -23931,7 +23989,7 @@ function __wbg_get_imports() {
23931
23989
  wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
23932
23990
  }
23933
23991
  },
23934
- __wbg_upsertAccountStorage_8afbfc3a0abe8fb8: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23992
+ __wbg_upsertAccountStorage_cadea80cad14d44e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
23935
23993
  let deferred0_0;
23936
23994
  let deferred0_1;
23937
23995
  try {
@@ -23945,7 +24003,7 @@ function __wbg_get_imports() {
23945
24003
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23946
24004
  }
23947
24005
  },
23948
- __wbg_upsertForeignAccountCode_84c9acf06fa513ab: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
24006
+ __wbg_upsertForeignAccountCode_0ff2a287e6afee27: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
23949
24007
  let deferred0_0;
23950
24008
  let deferred0_1;
23951
24009
  let deferred2_0;
@@ -23964,7 +24022,7 @@ function __wbg_get_imports() {
23964
24022
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
23965
24023
  }
23966
24024
  },
23967
- __wbg_upsertInputNote_f2059d78cbceeb16: 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) {
24025
+ __wbg_upsertInputNote_7e5a34ad5a5f84cf: 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) {
23968
24026
  let deferred0_0;
23969
24027
  let deferred0_1;
23970
24028
  let deferred4_0;
@@ -24006,7 +24064,7 @@ function __wbg_get_imports() {
24006
24064
  wasm.__wbindgen_free(deferred7_0, deferred7_1, 1);
24007
24065
  }
24008
24066
  },
24009
- __wbg_upsertNoteScript_64659c0e516bb6eb: function(arg0, arg1, arg2, arg3, arg4, arg5) {
24067
+ __wbg_upsertNoteScript_bf2e3cd8091e4d8e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
24010
24068
  let deferred0_0;
24011
24069
  let deferred0_1;
24012
24070
  try {
@@ -24020,7 +24078,7 @@ function __wbg_get_imports() {
24020
24078
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24021
24079
  }
24022
24080
  },
24023
- __wbg_upsertOutputNote_5b4fc218cd85a558: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) {
24081
+ __wbg_upsertOutputNote_6680c25bcf1c6752: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) {
24024
24082
  let deferred0_0;
24025
24083
  let deferred0_1;
24026
24084
  let deferred2_0;
@@ -24048,7 +24106,7 @@ function __wbg_get_imports() {
24048
24106
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
24049
24107
  }
24050
24108
  },
24051
- __wbg_upsertStorageMapEntries_78d89c536a6ba418: function(arg0, arg1, arg2, arg3, arg4, arg5) {
24109
+ __wbg_upsertStorageMapEntries_3599951ef72300cc: function(arg0, arg1, arg2, arg3, arg4, arg5) {
24052
24110
  let deferred0_0;
24053
24111
  let deferred0_1;
24054
24112
  try {
@@ -24062,7 +24120,7 @@ function __wbg_get_imports() {
24062
24120
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24063
24121
  }
24064
24122
  },
24065
- __wbg_upsertTransactionRecord_fb53cbffc8f38bd3: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
24123
+ __wbg_upsertTransactionRecord_5306c0b813a1cef4: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
24066
24124
  let deferred0_0;
24067
24125
  let deferred0_1;
24068
24126
  try {
@@ -24083,7 +24141,7 @@ function __wbg_get_imports() {
24083
24141
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24084
24142
  }
24085
24143
  },
24086
- __wbg_upsertVaultAssets_7369708ff470bcda: function(arg0, arg1, arg2, arg3, arg4, arg5) {
24144
+ __wbg_upsertVaultAssets_66ef95ec9c1a13ce: function(arg0, arg1, arg2, arg3, arg4, arg5) {
24087
24145
  let deferred0_0;
24088
24146
  let deferred0_1;
24089
24147
  try {
@@ -24114,12 +24172,12 @@ function __wbg_get_imports() {
24114
24172
  return ret;
24115
24173
  },
24116
24174
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
24117
- // Cast intrinsic for `Closure(Closure { dtor_idx: 354, function: Function { arguments: [Externref], shim_idx: 694, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
24175
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 357, function: Function { arguments: [Externref], shim_idx: 694, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
24118
24176
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h63c5411e996b99a1, wasm_bindgen__convert__closures_____invoke__h7e8251e1da901d4a);
24119
24177
  return ret;
24120
24178
  },
24121
24179
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
24122
- // Cast intrinsic for `Closure(Closure { dtor_idx: 354, function: Function { arguments: [], shim_idx: 355, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
24180
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 357, function: Function { arguments: [], shim_idx: 358, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
24123
24181
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h63c5411e996b99a1, wasm_bindgen__convert__closures_____invoke__h0a299fbe94173cc9);
24124
24182
  return ret;
24125
24183
  },
@@ -25036,7 +25094,7 @@ async function __wbg_init(module_or_path) {
25036
25094
 
25037
25095
  const module$1 = new URL("assets/miden_client_web.wasm", self.location.href);
25038
25096
 
25039
- var CargoDanGIA8 = /*#__PURE__*/Object.freeze({
25097
+ var CargoBwjf7IkR = /*#__PURE__*/Object.freeze({
25040
25098
  __proto__: null,
25041
25099
  Account: Account,
25042
25100
  AccountArray: AccountArray,