@miden-sdk/miden-sdk 0.15.3 → 0.15.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.
Files changed (46) hide show
  1. package/README.md +69 -0
  2. package/dist/mt/{Cargo-D2qNRrNR.js → Cargo-DjVnfWKi.js} +424 -88
  3. package/dist/mt/Cargo-DjVnfWKi.js.map +1 -0
  4. package/dist/mt/api-types.d.ts +130 -0
  5. package/dist/mt/assets/miden_client_web.wasm +0 -0
  6. package/dist/mt/crates/miden_client_web.d.ts +93 -3
  7. package/dist/mt/docs-entry.d.ts +2 -0
  8. package/dist/mt/eager.js +1 -1
  9. package/dist/mt/index.d.ts +3 -0
  10. package/dist/mt/index.js +211 -13
  11. package/dist/mt/index.js.map +1 -1
  12. package/dist/mt/wasm.js +1 -1
  13. package/dist/mt/workerHelpers.js +1 -1
  14. package/dist/mt/workers/{Cargo-D2qNRrNR-n_GEbq73.js → Cargo-DjVnfWKi-DvLbB_Zb.js} +424 -88
  15. package/dist/mt/workers/Cargo-DjVnfWKi-DvLbB_Zb.js.map +1 -0
  16. package/dist/mt/workers/assets/miden_client_web.wasm +0 -0
  17. package/dist/mt/workers/web-client-methods-worker.js +425 -88
  18. package/dist/mt/workers/web-client-methods-worker.js.map +1 -1
  19. package/dist/mt/workers/web-client-methods-worker.module.js +1 -1
  20. package/dist/mt/workers/web-client-methods-worker.module.js.map +1 -1
  21. package/dist/mt/workers/workerHelpers.js +1 -1
  22. package/dist/st/{Cargo-BP7-0qVT.js → Cargo-Cwpuvlbc.js} +433 -98
  23. package/dist/st/Cargo-Cwpuvlbc.js.map +1 -0
  24. package/dist/st/api-types.d.ts +130 -0
  25. package/dist/st/assets/miden_client_web.wasm +0 -0
  26. package/dist/st/crates/miden_client_web.d.ts +93 -3
  27. package/dist/st/docs-entry.d.ts +2 -0
  28. package/dist/st/eager.js +1 -1
  29. package/dist/st/index.d.ts +3 -0
  30. package/dist/st/index.js +211 -13
  31. package/dist/st/index.js.map +1 -1
  32. package/dist/st/wasm.js +1 -1
  33. package/dist/st/workers/{Cargo-BP7-0qVT-CmfAy6bf.js → Cargo-Cwpuvlbc-B0V_MEMU.js} +433 -98
  34. package/dist/st/workers/Cargo-Cwpuvlbc-B0V_MEMU.js.map +1 -0
  35. package/dist/st/workers/assets/miden_client_web.wasm +0 -0
  36. package/dist/st/workers/web-client-methods-worker.js +434 -98
  37. package/dist/st/workers/web-client-methods-worker.js.map +1 -1
  38. package/dist/st/workers/web-client-methods-worker.module.js +1 -1
  39. package/dist/st/workers/web-client-methods-worker.module.js.map +1 -1
  40. package/js/node-index.js +1 -0
  41. package/js/resources/transactions.js +198 -12
  42. package/package.json +4 -4
  43. package/dist/mt/Cargo-D2qNRrNR.js.map +0 -1
  44. package/dist/mt/workers/Cargo-D2qNRrNR-n_GEbq73.js.map +0 -1
  45. package/dist/st/Cargo-BP7-0qVT.js.map +0 -1
  46. package/dist/st/workers/Cargo-BP7-0qVT-CmfAy6bf.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 CargoD2qNRrNR; });
8
+ wasmModule = await Promise.resolve().then(function () { return CargoDjVnfWKi; });
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
@@ -9467,6 +9467,7 @@ async function applyTransactionDelta(dbId, accountId, nonce, updatedSlots, chang
9467
9467
  }
9468
9468
  catch (error) {
9469
9469
  logWebStoreError(error, `Error applying transaction delta`);
9470
+ throw error;
9470
9471
  }
9471
9472
  }
9472
9473
  async function archiveAndReplaceStorageSlots(db, accountId, nonce, newSlots) {
@@ -9705,6 +9706,7 @@ async function applyFullAccountState(dbId, accountState) {
9705
9706
  }
9706
9707
  catch (error) {
9707
9708
  logWebStoreError(error, `Error applying full account state`);
9709
+ throw error;
9708
9710
  }
9709
9711
  }
9710
9712
  async function upsertAccountRecord(dbId, accountId, codeRoot, storageRoot, vaultRoot, nonce, committed, commitment, accountSeed, watched) {
@@ -10626,6 +10628,7 @@ async function upsertInputNote(dbId, detailsCommitment, noteId, assets, attachme
10626
10628
  }
10627
10629
  catch (error) {
10628
10630
  logWebStoreError(error, `Error inserting note: ${detailsCommitment}`);
10631
+ throw error;
10629
10632
  }
10630
10633
  };
10631
10634
  return db.dexie.transaction("rw", db.inputNotes, db.notesScripts, doWork);
@@ -10709,6 +10712,7 @@ async function upsertOutputNote(dbId, detailsCommitment, noteId, assets, attachm
10709
10712
  }
10710
10713
  catch (error) {
10711
10714
  logWebStoreError(error, `Error inserting note: ${detailsCommitment}`);
10715
+ throw error;
10712
10716
  }
10713
10717
  };
10714
10718
  return db.dexie.transaction("rw", db.outputNotes, db.notesScripts, doWork);
@@ -10951,6 +10955,7 @@ async function insertTransactionScript(dbId, scriptRoot, txScript, tx) {
10951
10955
  }
10952
10956
  catch (error) {
10953
10957
  logWebStoreError(error, "Failed to insert transaction script");
10958
+ throw error;
10954
10959
  }
10955
10960
  }
10956
10961
  async function upsertTransactionRecord(dbId, transactionId, details, blockNum, statusVariant, status, scriptRoot, tx) {
@@ -10968,8 +10973,82 @@ async function upsertTransactionRecord(dbId, transactionId, details, blockNum, s
10968
10973
  }
10969
10974
  catch (err) {
10970
10975
  logWebStoreError(err, "Failed to insert proven transaction data");
10976
+ throw err;
10971
10977
  }
10972
10978
  }
10979
+ /**
10980
+ * Applies a batch of transaction updates atomically inside a single Dexie transaction.
10981
+ *
10982
+ * All sub-operations that internally call `db.dexie.transaction()` are auto-joined by Dexie
10983
+ * as nested sub-transactions when run inside this parent transaction, provided the parent
10984
+ * scope is a superset of every sub-transaction scope.
10985
+ */
10986
+ async function applyTransactionBatch(dbId, payloads) {
10987
+ const db = getDatabase(dbId);
10988
+ await db.dexie.transaction("rw", [
10989
+ db.transactions,
10990
+ db.transactionScripts,
10991
+ db.latestAccountStorages,
10992
+ db.historicalAccountStorages,
10993
+ db.latestStorageMapEntries,
10994
+ db.historicalStorageMapEntries,
10995
+ db.latestAccountAssets,
10996
+ db.historicalAccountAssets,
10997
+ db.latestAccountHeaders,
10998
+ db.historicalAccountHeaders,
10999
+ db.inputNotes,
11000
+ db.outputNotes,
11001
+ db.notesScripts,
11002
+ db.tags,
11003
+ ], async () => {
11004
+ for (const payload of payloads) {
11005
+ // 1. Insert the transaction record (script first, then record)
11006
+ const rec = payload.transactionRecord;
11007
+ if (rec.scriptRoot && rec.txScript) {
11008
+ await insertTransactionScript(dbId, rec.scriptRoot, rec.txScript);
11009
+ }
11010
+ await upsertTransactionRecord(dbId, rec.id, rec.details, rec.blockNum, rec.statusVariant, rec.status, rec.scriptRoot);
11011
+ // 2. Apply account state (full or delta)
11012
+ const acct = payload.accountState;
11013
+ if (acct.kind === "full") {
11014
+ await applyFullAccountState(dbId, acct.account);
11015
+ }
11016
+ else {
11017
+ await applyTransactionDelta(dbId, acct.accountId, acct.nonce, acct.updatedSlots, acct.changedMapEntries, acct.changedAssets, acct.codeRoot, acct.storageRoot, acct.vaultRoot, acct.committed, acct.commitment);
11018
+ }
11019
+ // 3. Upsert input and output notes
11020
+ for (const note of payload.inputNotes) {
11021
+ await upsertInputNote(dbId, note.detailsCommitment, note.noteId, note.noteAssets, note.attachments, note.serialNumber, note.inputs, note.noteScriptRoot, note.noteScript, note.nullifier, note.createdAt, note.stateDiscriminant, note.state, note.consumedBlockHeight ?? null, note.consumedTxOrder ?? null, note.consumerAccountId ?? null);
11022
+ }
11023
+ for (const note of payload.outputNotes) {
11024
+ await upsertOutputNote(dbId, note.detailsCommitment, note.noteId, note.noteAssets, note.attachments, note.recipientDigest, note.metadata, note.nullifier, note.expectedHeight, note.stateDiscriminant, note.state);
11025
+ }
11026
+ // 4. Add note tags (deduplicated within the transaction)
11027
+ for (const tagEntry of payload.tags) {
11028
+ const tagArray = new Uint8Array(tagEntry.tag);
11029
+ const tagBase64 = uint8ArrayToBase64(tagArray);
11030
+ const sourceNoteId = tagEntry.sourceNoteId ?? "";
11031
+ const sourceAccountId = tagEntry.sourceAccountId ?? "";
11032
+ const sourceSubscriptionKey = tagEntry.sourceSubscriptionKey ?? "";
11033
+ // Check for existing tag to avoid duplicates (mirrors the Rust add_note_tag logic).
11034
+ // sourceSubscriptionKey is unindexed, so filter on it in memory — distinct
11035
+ // subscriptions may share a tag and must remain separate rows.
11036
+ const existing = await db.tags
11037
+ .where({ tag: tagBase64, sourceNoteId, sourceAccountId })
11038
+ .filter((t) => (t.sourceSubscriptionKey ?? "") === sourceSubscriptionKey)
11039
+ .first();
11040
+ if (!existing) {
11041
+ await db.tags.add({
11042
+ tag: tagBase64,
11043
+ sourceNoteId,
11044
+ sourceAccountId,
11045
+ sourceSubscriptionKey,
11046
+ });
11047
+ }
11048
+ }
11049
+ }
11050
+ });
11051
+ }
10973
11052
 
10974
11053
  async function getNoteTags(dbId) {
10975
11054
  try {
@@ -13678,10 +13757,13 @@ class AuthSecretKey {
13678
13757
  if (Symbol.dispose) AuthSecretKey.prototype[Symbol.dispose] = AuthSecretKey.prototype.free;
13679
13758
 
13680
13759
  /**
13681
- * Provides metadata for a basic fungible faucet account component.
13760
+ * Provides metadata for a fungible faucet account component.
13682
13761
  *
13683
- * Reads the on-chain [`FungibleFaucet`] component for the account, which holds the
13684
- * per-token info (symbol/decimals/maxSupply).
13762
+ * Reads the on-chain `FungibleFaucet` component for the account, which holds the per-token
13763
+ * info (symbol, decimals, supply, and the descriptive metadata). The same component backs both
13764
+ * "basic" public faucets and network-style faucets — in the current protocol the distinction is
13765
+ * a function of the surrounding account configuration (account type, auth, access control), not
13766
+ * of the faucet component itself — so this reads metadata from either kind of faucet account.
13685
13767
  */
13686
13768
  class BasicFungibleFaucetComponent {
13687
13769
  static __wrap(ptr) {
@@ -13709,6 +13791,32 @@ class BasicFungibleFaucetComponent {
13709
13791
  const ret = wasm.basicfungiblefaucetcomponent_decimals(this.__wbg_ptr);
13710
13792
  return ret;
13711
13793
  }
13794
+ /**
13795
+ * Returns the optional free-form token description, or `undefined` when unset.
13796
+ * @returns {string | undefined}
13797
+ */
13798
+ description() {
13799
+ const ret = wasm.basicfungiblefaucetcomponent_description(this.__wbg_ptr);
13800
+ let v1;
13801
+ if (ret[0] !== 0) {
13802
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
13803
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
13804
+ }
13805
+ return v1;
13806
+ }
13807
+ /**
13808
+ * Returns the optional external link (e.g. project website), or `undefined` when unset.
13809
+ * @returns {string | undefined}
13810
+ */
13811
+ externalLink() {
13812
+ const ret = wasm.basicfungiblefaucetcomponent_externalLink(this.__wbg_ptr);
13813
+ let v1;
13814
+ if (ret[0] !== 0) {
13815
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
13816
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
13817
+ }
13818
+ return v1;
13819
+ }
13712
13820
  /**
13713
13821
  * Extracts faucet metadata from an account.
13714
13822
  * @param {Account} account
@@ -13723,6 +13831,19 @@ class BasicFungibleFaucetComponent {
13723
13831
  }
13724
13832
  return BasicFungibleFaucetComponent.__wrap(ret[0]);
13725
13833
  }
13834
+ /**
13835
+ * Returns the optional token logo URI, or `undefined` when unset.
13836
+ * @returns {string | undefined}
13837
+ */
13838
+ logoUri() {
13839
+ const ret = wasm.basicfungiblefaucetcomponent_logoUri(this.__wbg_ptr);
13840
+ let v1;
13841
+ if (ret[0] !== 0) {
13842
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
13843
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
13844
+ }
13845
+ return v1;
13846
+ }
13726
13847
  /**
13727
13848
  * Returns the maximum token supply.
13728
13849
  * @returns {Felt}
@@ -13739,6 +13860,30 @@ class BasicFungibleFaucetComponent {
13739
13860
  const ret = wasm.basicfungiblefaucetcomponent_symbol(this.__wbg_ptr);
13740
13861
  return TokenSymbol.__wrap(ret);
13741
13862
  }
13863
+ /**
13864
+ * Returns the human-readable token name.
13865
+ * @returns {string}
13866
+ */
13867
+ tokenName() {
13868
+ let deferred1_0;
13869
+ let deferred1_1;
13870
+ try {
13871
+ const ret = wasm.basicfungiblefaucetcomponent_tokenName(this.__wbg_ptr);
13872
+ deferred1_0 = ret[0];
13873
+ deferred1_1 = ret[1];
13874
+ return getStringFromWasm0(ret[0], ret[1]);
13875
+ } finally {
13876
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
13877
+ }
13878
+ }
13879
+ /**
13880
+ * Returns the current token supply (the amount minted so far).
13881
+ * @returns {Felt}
13882
+ */
13883
+ tokenSupply() {
13884
+ const ret = wasm.basicfungiblefaucetcomponent_tokenSupply(this.__wbg_ptr);
13885
+ return Felt.__wrap(ret);
13886
+ }
13742
13887
  }
13743
13888
  if (Symbol.dispose) BasicFungibleFaucetComponent.prototype[Symbol.dispose] = BasicFungibleFaucetComponent.prototype.free;
13744
13889
 
@@ -14306,6 +14451,104 @@ class Endpoint {
14306
14451
  }
14307
14452
  if (Symbol.dispose) Endpoint.prototype[Symbol.dispose] = Endpoint.prototype.free;
14308
14453
 
14454
+ /**
14455
+ * A 20-byte Ethereum address, used as the destination of an `AggLayer` bridge-out (B2AGG) note.
14456
+ *
14457
+ * Construct one from a hex string with [`EthAddress::from_hex`] (the `0x` prefix is optional) or
14458
+ * from raw bytes with [`EthAddress::from_bytes`]. The canonical lowercase, `0x`-prefixed hex form
14459
+ * is available via [`EthAddress::to_hex`] (also exposed as `toString`).
14460
+ */
14461
+ class EthAddress {
14462
+ static __wrap(ptr) {
14463
+ ptr = ptr >>> 0;
14464
+ const obj = Object.create(EthAddress.prototype);
14465
+ obj.__wbg_ptr = ptr;
14466
+ EthAddressFinalization.register(obj, obj.__wbg_ptr, obj);
14467
+ return obj;
14468
+ }
14469
+ __destroy_into_raw() {
14470
+ const ptr = this.__wbg_ptr;
14471
+ this.__wbg_ptr = 0;
14472
+ EthAddressFinalization.unregister(this);
14473
+ return ptr;
14474
+ }
14475
+ free() {
14476
+ const ptr = this.__destroy_into_raw();
14477
+ wasm.__wbg_ethaddress_free(ptr, 0);
14478
+ }
14479
+ /**
14480
+ * Builds an Ethereum address from its raw 20-byte big-endian representation.
14481
+ *
14482
+ * Returns an error if the input is not exactly 20 bytes long.
14483
+ * @param {Uint8Array} bytes
14484
+ * @returns {EthAddress}
14485
+ */
14486
+ static fromBytes(bytes) {
14487
+ const ret = wasm.ethaddress_fromBytes(bytes);
14488
+ if (ret[2]) {
14489
+ throw takeFromExternrefTable0(ret[1]);
14490
+ }
14491
+ return EthAddress.__wrap(ret[0]);
14492
+ }
14493
+ /**
14494
+ * Builds an Ethereum address from a hex string (with or without the `0x` prefix).
14495
+ *
14496
+ * Returns an error if the string is not valid hex or does not encode exactly 20 bytes.
14497
+ * @param {string} hex
14498
+ * @returns {EthAddress}
14499
+ */
14500
+ static fromHex(hex) {
14501
+ const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
14502
+ const len0 = WASM_VECTOR_LEN;
14503
+ const ret = wasm.ethaddress_fromHex(ptr0, len0);
14504
+ if (ret[2]) {
14505
+ throw takeFromExternrefTable0(ret[1]);
14506
+ }
14507
+ return EthAddress.__wrap(ret[0]);
14508
+ }
14509
+ /**
14510
+ * Returns the raw 20-byte big-endian representation of the address.
14511
+ * @returns {Uint8Array}
14512
+ */
14513
+ toBytes() {
14514
+ const ret = wasm.ethaddress_toBytes(this.__wbg_ptr);
14515
+ return ret;
14516
+ }
14517
+ /**
14518
+ * Returns the canonical lowercase, `0x`-prefixed hex representation of the address.
14519
+ * @returns {string}
14520
+ */
14521
+ toHex() {
14522
+ let deferred1_0;
14523
+ let deferred1_1;
14524
+ try {
14525
+ const ret = wasm.ethaddress_toHex(this.__wbg_ptr);
14526
+ deferred1_0 = ret[0];
14527
+ deferred1_1 = ret[1];
14528
+ return getStringFromWasm0(ret[0], ret[1]);
14529
+ } finally {
14530
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
14531
+ }
14532
+ }
14533
+ /**
14534
+ * Returns the canonical lowercase, `0x`-prefixed hex representation of the address.
14535
+ * @returns {string}
14536
+ */
14537
+ toString() {
14538
+ let deferred1_0;
14539
+ let deferred1_1;
14540
+ try {
14541
+ const ret = wasm.ethaddress_toString(this.__wbg_ptr);
14542
+ deferred1_0 = ret[0];
14543
+ deferred1_1 = ret[1];
14544
+ return getStringFromWasm0(ret[0], ret[1]);
14545
+ } finally {
14546
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
14547
+ }
14548
+ }
14549
+ }
14550
+ if (Symbol.dispose) EthAddress.prototype[Symbol.dispose] = EthAddress.prototype.free;
14551
+
14309
14552
  /**
14310
14553
  * Describes the result of executing a transaction program for the Miden protocol.
14311
14554
  *
@@ -16873,6 +17116,32 @@ class Note {
16873
17116
  const ret = wasm.note_commitment(this.__wbg_ptr);
16874
17117
  return Word.__wrap(ret);
16875
17118
  }
17119
+ /**
17120
+ * Builds a B2AGG (Bridge-to-AggLayer) note that bridges the given assets out to another
17121
+ * network via the `AggLayer`.
17122
+ *
17123
+ * The note is always public and is consumed by `bridge_account`, which burns the assets so
17124
+ * they can be claimed on the destination network at `destination_address` (an Ethereum
17125
+ * address on the AggLayer-assigned `destination_network`). The assets must be fungible assets
17126
+ * issued by a network faucet.
17127
+ * @param {AccountId} sender
17128
+ * @param {AccountId} bridge_account
17129
+ * @param {NoteAssets} assets
17130
+ * @param {number} destination_network
17131
+ * @param {EthAddress} destination_address
17132
+ * @returns {Note}
17133
+ */
17134
+ static createB2AggNote(sender, bridge_account, assets, destination_network, destination_address) {
17135
+ _assertClass(sender, AccountId);
17136
+ _assertClass(bridge_account, AccountId);
17137
+ _assertClass(assets, NoteAssets);
17138
+ _assertClass(destination_address, EthAddress);
17139
+ const ret = wasm.note_createB2AggNote(sender.__wbg_ptr, bridge_account.__wbg_ptr, assets.__wbg_ptr, destination_network, destination_address.__wbg_ptr);
17140
+ if (ret[2]) {
17141
+ throw takeFromExternrefTable0(ret[1]);
17142
+ }
17143
+ return Note.__wrap(ret[0]);
17144
+ }
16876
17145
  /**
16877
17146
  * Builds a P2IDE note that can be reclaimed or timelocked based on block heights.
16878
17147
  * @param {AccountId} sender
@@ -23616,6 +23885,30 @@ class WebClient {
23616
23885
  const ret = wasm.webclient_newAccountWithSecretKey(this.__wbg_ptr, account.__wbg_ptr, secret_key.__wbg_ptr);
23617
23886
  return ret;
23618
23887
  }
23888
+ /**
23889
+ * Builds a transaction request that bridges a fungible asset out to another network via the
23890
+ * `AggLayer`.
23891
+ *
23892
+ * The request emits a single public B2AGG (Bridge-to-AggLayer) note holding `amount` units of
23893
+ * the `faucet_id` asset. The note is consumed by `bridge_account_id`, which burns the asset so
23894
+ * it can be claimed at `destination_address` (an Ethereum address) on the AggLayer-assigned
23895
+ * `destination_network`.
23896
+ * @param {AccountId} sender_account_id
23897
+ * @param {AccountId} bridge_account_id
23898
+ * @param {AccountId} faucet_id
23899
+ * @param {bigint} amount
23900
+ * @param {number} destination_network
23901
+ * @param {EthAddress} destination_address
23902
+ * @returns {Promise<TransactionRequest>}
23903
+ */
23904
+ newB2AggTransactionRequest(sender_account_id, bridge_account_id, faucet_id, amount, destination_network, destination_address) {
23905
+ _assertClass(sender_account_id, AccountId);
23906
+ _assertClass(bridge_account_id, AccountId);
23907
+ _assertClass(faucet_id, AccountId);
23908
+ _assertClass(destination_address, EthAddress);
23909
+ const ret = wasm.webclient_newB2AggTransactionRequest(this.__wbg_ptr, sender_account_id.__wbg_ptr, bridge_account_id.__wbg_ptr, faucet_id.__wbg_ptr, amount, destination_network, destination_address.__wbg_ptr);
23910
+ return ret;
23911
+ }
23619
23912
  /**
23620
23913
  * @param {Note[]} list_of_notes
23621
23914
  * @returns {TransactionRequest}
@@ -23909,6 +24202,25 @@ class WebClient {
23909
24202
  const ret = wasm.webclient_submitNewTransaction(this.__wbg_ptr, account_id.__wbg_ptr, transaction_request.__wbg_ptr);
23910
24203
  return ret;
23911
24204
  }
24205
+ /**
24206
+ * Executes a batch of transactions against the specified account, proves them individually
24207
+ * and as a batch, submits the batch to the network, and atomically applies the per-tx
24208
+ * updates to the local store. Returns the block number the batch was accepted into.
24209
+ *
24210
+ * All transactions must target the same local account — the `account_id` argument.
24211
+ * Each element of `transaction_requests` is the serialized-bytes form of a
24212
+ * `TransactionRequest` (obtained via `tx_request.serialize()`)
24213
+ * @param {AccountId} account_id
24214
+ * @param {Uint8Array[]} transaction_requests
24215
+ * @returns {Promise<number>}
24216
+ */
24217
+ submitNewTransactionBatch(account_id, transaction_requests) {
24218
+ _assertClass(account_id, AccountId);
24219
+ const ptr0 = passArrayJsValueToWasm0(transaction_requests, wasm.__wbindgen_malloc);
24220
+ const len0 = WASM_VECTOR_LEN;
24221
+ const ret = wasm.webclient_submitNewTransactionBatch(this.__wbg_ptr, account_id.__wbg_ptr, ptr0, len0);
24222
+ return ret;
24223
+ }
23912
24224
  /**
23913
24225
  * Executes a transaction specified by the request against the specified account, proves it
23914
24226
  * with the user provided prover, submits it to the network, and updates the local database.
@@ -24528,7 +24840,7 @@ function __wbg_get_imports(memory) {
24528
24840
  const ret = AccountStorage.__wrap(arg0);
24529
24841
  return ret;
24530
24842
  },
24531
- __wbg_addNoteTag_1c8f882e522a5424: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
24843
+ __wbg_addNoteTag_c9e7d0b19a1ff17c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
24532
24844
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
24533
24845
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
24534
24846
  let v1;
@@ -24556,21 +24868,25 @@ function __wbg_get_imports(memory) {
24556
24868
  __wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
24557
24869
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
24558
24870
  }, arguments); },
24559
- __wbg_applyFullAccountState_ba8793f04d3ef7fb: function(arg0, arg1, arg2) {
24871
+ __wbg_applyFullAccountState_01b8235561567534: function(arg0, arg1, arg2) {
24560
24872
  const ret = applyFullAccountState(getStringFromWasm0(arg0, arg1), JsAccountUpdate.__wrap(arg2));
24561
24873
  return ret;
24562
24874
  },
24563
- __wbg_applySettingsMutations_555ec6e5c58ffc5b: function(arg0, arg1, arg2, arg3) {
24875
+ __wbg_applySettingsMutations_c70b3f973d7125bf: function(arg0, arg1, arg2, arg3) {
24564
24876
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24565
24877
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24566
24878
  const ret = applySettingsMutations(getStringFromWasm0(arg0, arg1), v0);
24567
24879
  return ret;
24568
24880
  },
24569
- __wbg_applyStateSync_d6a6d78e0278d43d: function(arg0, arg1, arg2) {
24881
+ __wbg_applyStateSync_2aab7a3f6871f365: function(arg0, arg1, arg2) {
24570
24882
  const ret = applyStateSync(getStringFromWasm0(arg0, arg1), JsStateSyncUpdate.__wrap(arg2));
24571
24883
  return ret;
24572
24884
  },
24573
- __wbg_applyTransactionDelta_f6e5feb33a6156f4: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20) {
24885
+ __wbg_applyTransactionBatch_ff6324c1b699e0bc: function(arg0, arg1, arg2) {
24886
+ const ret = applyTransactionBatch(getStringFromWasm0(arg0, arg1), arg2);
24887
+ return ret;
24888
+ },
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) {
24574
24890
  let deferred0_0;
24575
24891
  let deferred0_1;
24576
24892
  let deferred1_0;
@@ -24721,7 +25037,7 @@ function __wbg_get_imports(memory) {
24721
25037
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24722
25038
  }
24723
25039
  },
24724
- __wbg_exportStore_2755c29774f1398d: function(arg0, arg1) {
25040
+ __wbg_exportStore_a3251a108aa7b844: function(arg0, arg1) {
24725
25041
  const ret = exportStore(getStringFromWasm0(arg0, arg1));
24726
25042
  return ret;
24727
25043
  },
@@ -24753,7 +25069,7 @@ function __wbg_get_imports(memory) {
24753
25069
  const ret = FetchedNote.__wrap(arg0);
24754
25070
  return ret;
24755
25071
  },
24756
- __wbg_forceImportStore_4b6749610cf2fca2: function(arg0, arg1, arg2) {
25072
+ __wbg_forceImportStore_cefb1d26c504a17a: function(arg0, arg1, arg2) {
24757
25073
  const ret = forceImportStore(getStringFromWasm0(arg0, arg1), arg2);
24758
25074
  return ret;
24759
25075
  },
@@ -24761,6 +25077,10 @@ function __wbg_get_imports(memory) {
24761
25077
  const ret = ForeignAccount.__unwrap(arg0);
24762
25078
  return ret;
24763
25079
  },
25080
+ __wbg_from_bddd64e7d5ff6941: function(arg0) {
25081
+ const ret = Array.from(arg0);
25082
+ return ret;
25083
+ },
24764
25084
  __wbg_fungibleasset_new: function(arg0) {
24765
25085
  const ret = FungibleAsset.__wrap(arg0);
24766
25086
  return ret;
@@ -24773,7 +25093,7 @@ function __wbg_get_imports(memory) {
24773
25093
  const ret = FungibleAssetDeltaItem.__wrap(arg0);
24774
25094
  return ret;
24775
25095
  },
24776
- __wbg_getAccountAddresses_4c6e8d82b86bd4db: function(arg0, arg1, arg2, arg3) {
25096
+ __wbg_getAccountAddresses_6bda8d40b7d06085: function(arg0, arg1, arg2, arg3) {
24777
25097
  let deferred0_0;
24778
25098
  let deferred0_1;
24779
25099
  try {
@@ -24785,7 +25105,7 @@ function __wbg_get_imports(memory) {
24785
25105
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24786
25106
  }
24787
25107
  },
24788
- __wbg_getAccountAuthByPubKeyCommitment_526c174dcf167d1d: function(arg0, arg1, arg2, arg3) {
25108
+ __wbg_getAccountAuthByPubKeyCommitment_3e272c0653b69f25: function(arg0, arg1, arg2, arg3) {
24789
25109
  let deferred0_0;
24790
25110
  let deferred0_1;
24791
25111
  try {
@@ -24797,7 +25117,7 @@ function __wbg_get_imports(memory) {
24797
25117
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24798
25118
  }
24799
25119
  },
24800
- __wbg_getAccountCode_4b1a8b44c07f16ec: function(arg0, arg1, arg2, arg3) {
25120
+ __wbg_getAccountCode_66c23e814ccb0b75: function(arg0, arg1, arg2, arg3) {
24801
25121
  let deferred0_0;
24802
25122
  let deferred0_1;
24803
25123
  try {
@@ -24809,7 +25129,7 @@ function __wbg_get_imports(memory) {
24809
25129
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24810
25130
  }
24811
25131
  },
24812
- __wbg_getAccountHeaderByCommitment_7d00957336fa1aa0: function(arg0, arg1, arg2, arg3) {
25132
+ __wbg_getAccountHeaderByCommitment_e77460136385053d: function(arg0, arg1, arg2, arg3) {
24813
25133
  let deferred0_0;
24814
25134
  let deferred0_1;
24815
25135
  try {
@@ -24821,7 +25141,7 @@ function __wbg_get_imports(memory) {
24821
25141
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24822
25142
  }
24823
25143
  },
24824
- __wbg_getAccountHeader_a379be70d1e4cfbd: function(arg0, arg1, arg2, arg3) {
25144
+ __wbg_getAccountHeader_1087552d17a99751: function(arg0, arg1, arg2, arg3) {
24825
25145
  let deferred0_0;
24826
25146
  let deferred0_1;
24827
25147
  try {
@@ -24833,7 +25153,7 @@ function __wbg_get_imports(memory) {
24833
25153
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24834
25154
  }
24835
25155
  },
24836
- __wbg_getAccountIdByKeyCommitment_20a98231f254e16b: function(arg0, arg1, arg2, arg3) {
25156
+ __wbg_getAccountIdByKeyCommitment_7e1292d010257f58: function(arg0, arg1, arg2, arg3) {
24837
25157
  let deferred0_0;
24838
25158
  let deferred0_1;
24839
25159
  try {
@@ -24845,11 +25165,11 @@ function __wbg_get_imports(memory) {
24845
25165
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24846
25166
  }
24847
25167
  },
24848
- __wbg_getAccountIds_15b2e8a5c2f9f448: function(arg0, arg1) {
25168
+ __wbg_getAccountIds_aa202a56a3aa2095: function(arg0, arg1) {
24849
25169
  const ret = getAccountIds(getStringFromWasm0(arg0, arg1));
24850
25170
  return ret;
24851
25171
  },
24852
- __wbg_getAccountStorageMaps_7a6581bdaa528f5b: function(arg0, arg1, arg2, arg3) {
25172
+ __wbg_getAccountStorageMaps_83fcada97acbc4d3: function(arg0, arg1, arg2, arg3) {
24853
25173
  let deferred0_0;
24854
25174
  let deferred0_1;
24855
25175
  try {
@@ -24861,7 +25181,7 @@ function __wbg_get_imports(memory) {
24861
25181
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24862
25182
  }
24863
25183
  },
24864
- __wbg_getAccountStorage_81c375a1a2d33378: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25184
+ __wbg_getAccountStorage_7da5087b3d6719c9: function(arg0, arg1, arg2, arg3, arg4, arg5) {
24865
25185
  let deferred0_0;
24866
25186
  let deferred0_1;
24867
25187
  try {
@@ -24875,7 +25195,7 @@ function __wbg_get_imports(memory) {
24875
25195
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24876
25196
  }
24877
25197
  },
24878
- __wbg_getAccountVaultAssets_d7b806e2ad386b3b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25198
+ __wbg_getAccountVaultAssets_a7f15cd5706a07f0: function(arg0, arg1, arg2, arg3, arg4, arg5) {
24879
25199
  let deferred0_0;
24880
25200
  let deferred0_1;
24881
25201
  try {
@@ -24889,27 +25209,27 @@ function __wbg_get_imports(memory) {
24889
25209
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24890
25210
  }
24891
25211
  },
24892
- __wbg_getAllAccountHeaders_e9ce4e33075edb27: function(arg0, arg1) {
25212
+ __wbg_getAllAccountHeaders_20b2442034a1d33a: function(arg0, arg1) {
24893
25213
  const ret = getAllAccountHeaders(getStringFromWasm0(arg0, arg1));
24894
25214
  return ret;
24895
25215
  },
24896
- __wbg_getBlockHeaders_6ffc387a5b74f1ff: function(arg0, arg1, arg2, arg3) {
25216
+ __wbg_getBlockHeaders_14c17869ac14ff20: function(arg0, arg1, arg2, arg3) {
24897
25217
  var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
24898
25218
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24899
25219
  const ret = getBlockHeaders(getStringFromWasm0(arg0, arg1), v0);
24900
25220
  return ret;
24901
25221
  },
24902
- __wbg_getCurrentBlockchainPeaks_4f515c084e8dc019: function(arg0, arg1) {
25222
+ __wbg_getCurrentBlockchainPeaks_f25ec9bf8fbcfb01: function(arg0, arg1) {
24903
25223
  const ret = getCurrentBlockchainPeaks(getStringFromWasm0(arg0, arg1));
24904
25224
  return ret;
24905
25225
  },
24906
- __wbg_getForeignAccountCode_80e1c0d6bec20b20: function(arg0, arg1, arg2, arg3) {
25226
+ __wbg_getForeignAccountCode_aa888a2e4d67c198: function(arg0, arg1, arg2, arg3) {
24907
25227
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24908
25228
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24909
25229
  const ret = getForeignAccountCode(getStringFromWasm0(arg0, arg1), v0);
24910
25230
  return ret;
24911
25231
  },
24912
- __wbg_getInputNoteByOffset_52dacd9771fd7c73: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
25232
+ __wbg_getInputNoteByOffset_28a7b0db364e3661: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
24913
25233
  let deferred1_0;
24914
25234
  let deferred1_1;
24915
25235
  try {
@@ -24923,31 +25243,31 @@ function __wbg_get_imports(memory) {
24923
25243
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
24924
25244
  }
24925
25245
  },
24926
- __wbg_getInputNotesFromDetailsCommitments_b6639133948088e6: function(arg0, arg1, arg2, arg3) {
25246
+ __wbg_getInputNotesFromDetailsCommitments_cd9aae9ebea29ae8: function(arg0, arg1, arg2, arg3) {
24927
25247
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24928
25248
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24929
25249
  const ret = getInputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
24930
25250
  return ret;
24931
25251
  },
24932
- __wbg_getInputNotesFromIds_1dc711511af25436: function(arg0, arg1, arg2, arg3) {
25252
+ __wbg_getInputNotesFromIds_2ac71ad2b96eacdc: function(arg0, arg1, arg2, arg3) {
24933
25253
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24934
25254
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24935
25255
  const ret = getInputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
24936
25256
  return ret;
24937
25257
  },
24938
- __wbg_getInputNotesFromNullifiers_de68d7a980a7a6ac: function(arg0, arg1, arg2, arg3) {
25258
+ __wbg_getInputNotesFromNullifiers_784b00260b622e0a: function(arg0, arg1, arg2, arg3) {
24939
25259
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24940
25260
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24941
25261
  const ret = getInputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
24942
25262
  return ret;
24943
25263
  },
24944
- __wbg_getInputNotes_e6991526618c5e3b: function(arg0, arg1, arg2, arg3) {
25264
+ __wbg_getInputNotes_554b394a036cce35: function(arg0, arg1, arg2, arg3) {
24945
25265
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
24946
25266
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
24947
25267
  const ret = getInputNotes(getStringFromWasm0(arg0, arg1), v0);
24948
25268
  return ret;
24949
25269
  },
24950
- __wbg_getKeyCommitmentsByAccountId_b16d7689e99f36cb: function(arg0, arg1, arg2, arg3) {
25270
+ __wbg_getKeyCommitmentsByAccountId_dc8ddc1944776f77: function(arg0, arg1, arg2, arg3) {
24951
25271
  let deferred0_0;
24952
25272
  let deferred0_1;
24953
25273
  try {
@@ -24959,7 +25279,7 @@ function __wbg_get_imports(memory) {
24959
25279
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24960
25280
  }
24961
25281
  },
24962
- __wbg_getNoteScript_6d54def9cedaab5b: function(arg0, arg1, arg2, arg3) {
25282
+ __wbg_getNoteScript_fb7f3a8b5693efd3: function(arg0, arg1, arg2, arg3) {
24963
25283
  let deferred0_0;
24964
25284
  let deferred0_1;
24965
25285
  try {
@@ -24971,39 +25291,39 @@ function __wbg_get_imports(memory) {
24971
25291
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24972
25292
  }
24973
25293
  },
24974
- __wbg_getNoteTags_4a9f0532a43e9ab4: function(arg0, arg1) {
25294
+ __wbg_getNoteTags_e58900169fc93b17: function(arg0, arg1) {
24975
25295
  const ret = getNoteTags(getStringFromWasm0(arg0, arg1));
24976
25296
  return ret;
24977
25297
  },
24978
- __wbg_getOutputNotesFromDetailsCommitments_b65d8c4d56515cdc: function(arg0, arg1, arg2, arg3) {
25298
+ __wbg_getOutputNotesFromDetailsCommitments_b67eef4a469d243f: function(arg0, arg1, arg2, arg3) {
24979
25299
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24980
25300
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24981
25301
  const ret = getOutputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
24982
25302
  return ret;
24983
25303
  },
24984
- __wbg_getOutputNotesFromIds_e4e43ea7ee10ce3b: function(arg0, arg1, arg2, arg3) {
25304
+ __wbg_getOutputNotesFromIds_3e2e083d5e6307b4: function(arg0, arg1, arg2, arg3) {
24985
25305
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24986
25306
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24987
25307
  const ret = getOutputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
24988
25308
  return ret;
24989
25309
  },
24990
- __wbg_getOutputNotesFromNullifiers_5793389b5326d141: function(arg0, arg1, arg2, arg3) {
25310
+ __wbg_getOutputNotesFromNullifiers_f80d6022e4d273ae: function(arg0, arg1, arg2, arg3) {
24991
25311
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24992
25312
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24993
25313
  const ret = getOutputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
24994
25314
  return ret;
24995
25315
  },
24996
- __wbg_getOutputNotes_dc82d3565d3003c8: function(arg0, arg1, arg2, arg3) {
25316
+ __wbg_getOutputNotes_edbf80cf7cd0b908: function(arg0, arg1, arg2, arg3) {
24997
25317
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
24998
25318
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
24999
25319
  const ret = getOutputNotes(getStringFromWasm0(arg0, arg1), v0);
25000
25320
  return ret;
25001
25321
  },
25002
- __wbg_getPartialBlockchainNodesAll_85f7172793d8eb4f: function(arg0, arg1) {
25322
+ __wbg_getPartialBlockchainNodesAll_c415a12245c31d24: function(arg0, arg1) {
25003
25323
  const ret = getPartialBlockchainNodesAll(getStringFromWasm0(arg0, arg1));
25004
25324
  return ret;
25005
25325
  },
25006
- __wbg_getPartialBlockchainNodesUpToInOrderIndex_655882ac21085fa7: function(arg0, arg1, arg2, arg3) {
25326
+ __wbg_getPartialBlockchainNodesUpToInOrderIndex_13c0f9e58345c3dd: function(arg0, arg1, arg2, arg3) {
25007
25327
  let deferred0_0;
25008
25328
  let deferred0_1;
25009
25329
  try {
@@ -25015,7 +25335,7 @@ function __wbg_get_imports(memory) {
25015
25335
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25016
25336
  }
25017
25337
  },
25018
- __wbg_getPartialBlockchainNodes_87b3768321d70002: function(arg0, arg1, arg2, arg3) {
25338
+ __wbg_getPartialBlockchainNodes_65b845ff2a25659c: function(arg0, arg1, arg2, arg3) {
25019
25339
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25020
25340
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25021
25341
  const ret = getPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0);
@@ -25028,7 +25348,7 @@ function __wbg_get_imports(memory) {
25028
25348
  const ret = arg0.getReader();
25029
25349
  return ret;
25030
25350
  }, arguments); },
25031
- __wbg_getSetting_e9042efc55b18bbb: function(arg0, arg1, arg2, arg3) {
25351
+ __wbg_getSetting_652a441d00c2ff02: function(arg0, arg1, arg2, arg3) {
25032
25352
  let deferred0_0;
25033
25353
  let deferred0_1;
25034
25354
  try {
@@ -25040,7 +25360,7 @@ function __wbg_get_imports(memory) {
25040
25360
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25041
25361
  }
25042
25362
  },
25043
- __wbg_getSyncHeight_52e3dd3c6a2a9643: function(arg0, arg1) {
25363
+ __wbg_getSyncHeight_47274f9a308f2ea0: function(arg0, arg1) {
25044
25364
  const ret = getSyncHeight(getStringFromWasm0(arg0, arg1));
25045
25365
  return ret;
25046
25366
  },
@@ -25048,15 +25368,15 @@ function __wbg_get_imports(memory) {
25048
25368
  const ret = arg0.getTime();
25049
25369
  return ret;
25050
25370
  },
25051
- __wbg_getTrackedBlockHeaderNumbers_0e827a6fbace9440: function(arg0, arg1) {
25371
+ __wbg_getTrackedBlockHeaderNumbers_7f699d8776e5342e: function(arg0, arg1) {
25052
25372
  const ret = getTrackedBlockHeaderNumbers(getStringFromWasm0(arg0, arg1));
25053
25373
  return ret;
25054
25374
  },
25055
- __wbg_getTrackedBlockHeaders_aec6fdccb131fcc4: function(arg0, arg1) {
25375
+ __wbg_getTrackedBlockHeaders_9257cc5c828b3847: function(arg0, arg1) {
25056
25376
  const ret = getTrackedBlockHeaders(getStringFromWasm0(arg0, arg1));
25057
25377
  return ret;
25058
25378
  },
25059
- __wbg_getTransactions_a5e46e592ec6567b: function(arg0, arg1, arg2, arg3) {
25379
+ __wbg_getTransactions_042b4178983dd070: function(arg0, arg1, arg2, arg3) {
25060
25380
  let deferred0_0;
25061
25381
  let deferred0_1;
25062
25382
  try {
@@ -25068,7 +25388,7 @@ function __wbg_get_imports(memory) {
25068
25388
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25069
25389
  }
25070
25390
  },
25071
- __wbg_getUnspentInputNoteNullifiers_0753945c0300356f: function(arg0, arg1) {
25391
+ __wbg_getUnspentInputNoteNullifiers_af62c37e3bf9a116: function(arg0, arg1) {
25072
25392
  const ret = getUnspentInputNoteNullifiers(getStringFromWasm0(arg0, arg1));
25073
25393
  return ret;
25074
25394
  },
@@ -25112,7 +25432,7 @@ function __wbg_get_imports(memory) {
25112
25432
  const ret = InputNoteRecord.__wrap(arg0);
25113
25433
  return ret;
25114
25434
  },
25115
- __wbg_insertAccountAddress_0d293c362728e99b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25435
+ __wbg_insertAccountAddress_9750679ae673f231: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25116
25436
  let deferred0_0;
25117
25437
  let deferred0_1;
25118
25438
  try {
@@ -25126,7 +25446,7 @@ function __wbg_get_imports(memory) {
25126
25446
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25127
25447
  }
25128
25448
  },
25129
- __wbg_insertAccountAuth_be13c8ed59e28915: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25449
+ __wbg_insertAccountAuth_4468784a0311c9e3: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25130
25450
  let deferred0_0;
25131
25451
  let deferred0_1;
25132
25452
  let deferred1_0;
@@ -25143,7 +25463,7 @@ function __wbg_get_imports(memory) {
25143
25463
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25144
25464
  }
25145
25465
  },
25146
- __wbg_insertAccountKeyMapping_e21f0da8ff1a235d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25466
+ __wbg_insertAccountKeyMapping_1018a4c4e3136ea9: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25147
25467
  let deferred0_0;
25148
25468
  let deferred0_1;
25149
25469
  let deferred1_0;
@@ -25160,13 +25480,13 @@ function __wbg_get_imports(memory) {
25160
25480
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25161
25481
  }
25162
25482
  },
25163
- __wbg_insertBlockHeader_0fd9441e660932f4: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25483
+ __wbg_insertBlockHeader_5f9db8fbf493cd05: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25164
25484
  var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
25165
25485
  wasm.__wbindgen_free(arg3, arg4 * 1, 1);
25166
25486
  const ret = insertBlockHeader(getStringFromWasm0(arg0, arg1), arg2 >>> 0, v0, arg5 !== 0);
25167
25487
  return ret;
25168
25488
  },
25169
- __wbg_insertPartialBlockchainNodes_41ca6874a5cf6e1c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25489
+ __wbg_insertPartialBlockchainNodes_3bac74a5a63676ec: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25170
25490
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25171
25491
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25172
25492
  var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
@@ -25174,7 +25494,7 @@ function __wbg_get_imports(memory) {
25174
25494
  const ret = insertPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0, v1);
25175
25495
  return ret;
25176
25496
  },
25177
- __wbg_insertSetting_36744f044c3bb7e7: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25497
+ __wbg_insertSetting_3f9497eda301dd4d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25178
25498
  let deferred0_0;
25179
25499
  let deferred0_1;
25180
25500
  try {
@@ -25188,7 +25508,7 @@ function __wbg_get_imports(memory) {
25188
25508
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25189
25509
  }
25190
25510
  },
25191
- __wbg_insertTransactionScript_3940a90473bfede6: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25511
+ __wbg_insertTransactionScript_d77dd4730b830b16: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25192
25512
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25193
25513
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25194
25514
  let v1;
@@ -25295,11 +25615,11 @@ function __wbg_get_imports(memory) {
25295
25615
  const ret = arg0.length;
25296
25616
  return ret;
25297
25617
  },
25298
- __wbg_listSettingKeys_0b73fd5d86306685: function(arg0, arg1) {
25618
+ __wbg_listSettingKeys_e6be00ae9be0f390: function(arg0, arg1) {
25299
25619
  const ret = listSettingKeys(getStringFromWasm0(arg0, arg1));
25300
25620
  return ret;
25301
25621
  },
25302
- __wbg_lockAccount_2e7498cedc727430: function(arg0, arg1, arg2, arg3) {
25622
+ __wbg_lockAccount_59fe96d1d24657e7: function(arg0, arg1, arg2, arg3) {
25303
25623
  let deferred0_0;
25304
25624
  let deferred0_1;
25305
25625
  try {
@@ -25514,7 +25834,7 @@ function __wbg_get_imports(memory) {
25514
25834
  const ret = Array.of(arg0, arg1, arg2);
25515
25835
  return ret;
25516
25836
  },
25517
- __wbg_openDatabase_408b68d01263c8d9: function(arg0, arg1, arg2, arg3) {
25837
+ __wbg_openDatabase_d434e531abab67a4: function(arg0, arg1, arg2, arg3) {
25518
25838
  const ret = openDatabase(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
25519
25839
  return ret;
25520
25840
  },
@@ -25548,7 +25868,7 @@ function __wbg_get_imports(memory) {
25548
25868
  const ret = ProvenTransaction.__wrap(arg0);
25549
25869
  return ret;
25550
25870
  },
25551
- __wbg_pruneAccountHistory_e4591ff16590fc39: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25871
+ __wbg_pruneAccountHistory_601cf8b7deb90730: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25552
25872
  let deferred0_0;
25553
25873
  let deferred0_1;
25554
25874
  let deferred1_0;
@@ -25565,7 +25885,7 @@ function __wbg_get_imports(memory) {
25565
25885
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25566
25886
  }
25567
25887
  },
25568
- __wbg_pruneIrrelevantBlocks_b4bbb376dc014b6b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25888
+ __wbg_pruneIrrelevantBlocks_6dfe3f86e818875b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25569
25889
  var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
25570
25890
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25571
25891
  var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
@@ -25577,6 +25897,10 @@ function __wbg_get_imports(memory) {
25577
25897
  const ret = PswapLineageRecord.__wrap(arg0);
25578
25898
  return ret;
25579
25899
  },
25900
+ __wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
25901
+ const ret = arg0.push(arg1);
25902
+ return ret;
25903
+ },
25580
25904
  __wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
25581
25905
  const ret = arg0.queueMicrotask;
25582
25906
  return ret;
@@ -25591,13 +25915,13 @@ function __wbg_get_imports(memory) {
25591
25915
  __wbg_releaseLock_aa5846c2494b3032: function(arg0) {
25592
25916
  arg0.releaseLock();
25593
25917
  },
25594
- __wbg_removeAccountAddress_4c833638d59fd8d7: function(arg0, arg1, arg2, arg3) {
25918
+ __wbg_removeAccountAddress_4f2f68a69c6824ba: function(arg0, arg1, arg2, arg3) {
25595
25919
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25596
25920
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25597
25921
  const ret = removeAccountAddress(getStringFromWasm0(arg0, arg1), v0);
25598
25922
  return ret;
25599
25923
  },
25600
- __wbg_removeAccountAuth_536aea861f769be5: function(arg0, arg1, arg2, arg3) {
25924
+ __wbg_removeAccountAuth_270323d61dcc5a1c: function(arg0, arg1, arg2, arg3) {
25601
25925
  let deferred0_0;
25602
25926
  let deferred0_1;
25603
25927
  try {
@@ -25609,7 +25933,7 @@ function __wbg_get_imports(memory) {
25609
25933
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25610
25934
  }
25611
25935
  },
25612
- __wbg_removeAllMappingsForKey_1ad4056391b6e556: function(arg0, arg1, arg2, arg3) {
25936
+ __wbg_removeAllMappingsForKey_0cd82b003ec78640: function(arg0, arg1, arg2, arg3) {
25613
25937
  let deferred0_0;
25614
25938
  let deferred0_1;
25615
25939
  try {
@@ -25621,7 +25945,7 @@ function __wbg_get_imports(memory) {
25621
25945
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25622
25946
  }
25623
25947
  },
25624
- __wbg_removeNoteTag_25df6a90ad8692ed: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
25948
+ __wbg_removeNoteTag_99bf10aa95385cdd: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
25625
25949
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25626
25950
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25627
25951
  let v1;
@@ -25642,7 +25966,7 @@ function __wbg_get_imports(memory) {
25642
25966
  const ret = removeNoteTag(getStringFromWasm0(arg0, arg1), v0, v1, v2, v3);
25643
25967
  return ret;
25644
25968
  },
25645
- __wbg_removeSetting_ebdcd55495cb1017: function(arg0, arg1, arg2, arg3) {
25969
+ __wbg_removeSetting_435793c919df62ea: function(arg0, arg1, arg2, arg3) {
25646
25970
  let deferred0_0;
25647
25971
  let deferred0_1;
25648
25972
  try {
@@ -25693,6 +26017,9 @@ function __wbg_get_imports(memory) {
25693
26017
  const ret = setTimeout(arg0, arg1);
25694
26018
  return ret;
25695
26019
  }, arguments); },
26020
+ __wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
26021
+ arg0[arg1] = arg2;
26022
+ },
25696
26023
  __wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
25697
26024
  const ret = Reflect.set(arg0, arg1, arg2);
25698
26025
  return ret;
@@ -25849,13 +26176,13 @@ function __wbg_get_imports(memory) {
25849
26176
  const ret = TransactionSummary.__wrap(arg0);
25850
26177
  return ret;
25851
26178
  },
25852
- __wbg_undoAccountStates_7a7c5a8838aa3845: function(arg0, arg1, arg2, arg3) {
26179
+ __wbg_undoAccountStates_bc8f443bd3fee100: function(arg0, arg1, arg2, arg3) {
25853
26180
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25854
26181
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25855
26182
  const ret = undoAccountStates(getStringFromWasm0(arg0, arg1), v0);
25856
26183
  return ret;
25857
26184
  },
25858
- __wbg_upsertAccountCode_79526a78b7676971: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26185
+ __wbg_upsertAccountCode_2988cd68796aacef: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25859
26186
  let deferred0_0;
25860
26187
  let deferred0_1;
25861
26188
  try {
@@ -25869,7 +26196,7 @@ function __wbg_get_imports(memory) {
25869
26196
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25870
26197
  }
25871
26198
  },
25872
- __wbg_upsertAccountRecord_78ef5ee5891c4407: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) {
26199
+ __wbg_upsertAccountRecord_124cfe8dc72ff46f: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) {
25873
26200
  let deferred0_0;
25874
26201
  let deferred0_1;
25875
26202
  let deferred1_0;
@@ -25911,7 +26238,7 @@ function __wbg_get_imports(memory) {
25911
26238
  wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
25912
26239
  }
25913
26240
  },
25914
- __wbg_upsertAccountStorage_cb0450465224b3a3: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26241
+ __wbg_upsertAccountStorage_b7e55e69d8c649ff: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25915
26242
  let deferred0_0;
25916
26243
  let deferred0_1;
25917
26244
  try {
@@ -25925,7 +26252,7 @@ function __wbg_get_imports(memory) {
25925
26252
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25926
26253
  }
25927
26254
  },
25928
- __wbg_upsertForeignAccountCode_8f058e14b39d0aa5: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
26255
+ __wbg_upsertForeignAccountCode_321f8c2b6560540f: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
25929
26256
  let deferred0_0;
25930
26257
  let deferred0_1;
25931
26258
  let deferred2_0;
@@ -25944,7 +26271,7 @@ function __wbg_get_imports(memory) {
25944
26271
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
25945
26272
  }
25946
26273
  },
25947
- __wbg_upsertInputNote_88a3d72329020306: 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) {
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) {
25948
26275
  let deferred0_0;
25949
26276
  let deferred0_1;
25950
26277
  let deferred6_0;
@@ -25993,7 +26320,7 @@ function __wbg_get_imports(memory) {
25993
26320
  wasm.__wbindgen_free(deferred9_0, deferred9_1, 1);
25994
26321
  }
25995
26322
  },
25996
- __wbg_upsertNoteScript_ee5a46681df483c4: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26323
+ __wbg_upsertNoteScript_96ab2ba0a90f1446: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25997
26324
  let deferred0_0;
25998
26325
  let deferred0_1;
25999
26326
  try {
@@ -26007,7 +26334,7 @@ function __wbg_get_imports(memory) {
26007
26334
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26008
26335
  }
26009
26336
  },
26010
- __wbg_upsertOutputNote_d85873588c0ff0d1: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) {
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) {
26011
26338
  let deferred0_0;
26012
26339
  let deferred0_1;
26013
26340
  let deferred1_0;
@@ -26042,7 +26369,7 @@ function __wbg_get_imports(memory) {
26042
26369
  wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
26043
26370
  }
26044
26371
  },
26045
- __wbg_upsertStorageMapEntries_f69072278033a28a: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26372
+ __wbg_upsertStorageMapEntries_5f86e7cc367f03c1: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26046
26373
  let deferred0_0;
26047
26374
  let deferred0_1;
26048
26375
  try {
@@ -26056,7 +26383,7 @@ function __wbg_get_imports(memory) {
26056
26383
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26057
26384
  }
26058
26385
  },
26059
- __wbg_upsertTransactionRecord_d141b6ccd2a2532e: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
26386
+ __wbg_upsertTransactionRecord_dc6cf6e7c6196905: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
26060
26387
  let deferred0_0;
26061
26388
  let deferred0_1;
26062
26389
  try {
@@ -26077,7 +26404,7 @@ function __wbg_get_imports(memory) {
26077
26404
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26078
26405
  }
26079
26406
  },
26080
- __wbg_upsertVaultAssets_316fc3763a4f0e4d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26407
+ __wbg_upsertVaultAssets_b09b89783ef95fbe: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26081
26408
  let deferred0_0;
26082
26409
  let deferred0_1;
26083
26410
  try {
@@ -26130,7 +26457,7 @@ function __wbg_get_imports(memory) {
26130
26457
  return ret;
26131
26458
  },
26132
26459
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
26133
- // Cast intrinsic for `Closure(Closure { dtor_idx: 126, function: Function { arguments: [], shim_idx: 451, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26460
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 126, function: Function { arguments: [], shim_idx: 452, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26134
26461
  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______);
26135
26462
  return ret;
26136
26463
  },
@@ -26140,86 +26467,91 @@ function __wbg_get_imports(memory) {
26140
26467
  return ret;
26141
26468
  },
26142
26469
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
26470
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
26471
+ const ret = getArrayU8FromWasm0(arg0, arg1);
26472
+ return ret;
26473
+ },
26474
+ __wbindgen_cast_0000000000000006: function(arg0, arg1) {
26143
26475
  // Cast intrinsic for `Ref(String) -> Externref`.
26144
26476
  const ret = getStringFromWasm0(arg0, arg1);
26145
26477
  return ret;
26146
26478
  },
26147
- __wbindgen_cast_0000000000000006: function(arg0) {
26479
+ __wbindgen_cast_0000000000000007: function(arg0) {
26148
26480
  // Cast intrinsic for `U64 -> Externref`.
26149
26481
  const ret = BigInt.asUintN(64, arg0);
26150
26482
  return ret;
26151
26483
  },
26152
- __wbindgen_cast_0000000000000007: function(arg0, arg1) {
26484
+ __wbindgen_cast_0000000000000008: function(arg0, arg1) {
26153
26485
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26154
26486
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26155
26487
  // Cast intrinsic for `Vector(NamedExternref("AccountHeader")) -> Externref`.
26156
26488
  const ret = v0;
26157
26489
  return ret;
26158
26490
  },
26159
- __wbindgen_cast_0000000000000008: function(arg0, arg1) {
26491
+ __wbindgen_cast_0000000000000009: function(arg0, arg1) {
26160
26492
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26161
26493
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26162
26494
  // Cast intrinsic for `Vector(NamedExternref("Address")) -> Externref`.
26163
26495
  const ret = v0;
26164
26496
  return ret;
26165
26497
  },
26166
- __wbindgen_cast_0000000000000009: function(arg0, arg1) {
26498
+ __wbindgen_cast_000000000000000a: function(arg0, arg1) {
26167
26499
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26168
26500
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26169
26501
  // Cast intrinsic for `Vector(NamedExternref("ConsumableNoteRecord")) -> Externref`.
26170
26502
  const ret = v0;
26171
26503
  return ret;
26172
26504
  },
26173
- __wbindgen_cast_000000000000000a: function(arg0, arg1) {
26505
+ __wbindgen_cast_000000000000000b: function(arg0, arg1) {
26174
26506
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26175
26507
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26176
26508
  // Cast intrinsic for `Vector(NamedExternref("FetchedNote")) -> Externref`.
26177
26509
  const ret = v0;
26178
26510
  return ret;
26179
26511
  },
26180
- __wbindgen_cast_000000000000000b: function(arg0, arg1) {
26512
+ __wbindgen_cast_000000000000000c: function(arg0, arg1) {
26181
26513
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26182
26514
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26183
26515
  // Cast intrinsic for `Vector(NamedExternref("InputNoteRecord")) -> Externref`.
26184
26516
  const ret = v0;
26185
26517
  return ret;
26186
26518
  },
26187
- __wbindgen_cast_000000000000000c: function(arg0, arg1) {
26519
+ __wbindgen_cast_000000000000000d: function(arg0, arg1) {
26188
26520
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26189
26521
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26190
26522
  // Cast intrinsic for `Vector(NamedExternref("OutputNoteRecord")) -> Externref`.
26191
26523
  const ret = v0;
26192
26524
  return ret;
26193
26525
  },
26194
- __wbindgen_cast_000000000000000d: function(arg0, arg1) {
26526
+ __wbindgen_cast_000000000000000e: function(arg0, arg1) {
26195
26527
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26196
26528
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26197
26529
  // Cast intrinsic for `Vector(NamedExternref("PswapLineageRecord")) -> Externref`.
26198
26530
  const ret = v0;
26199
26531
  return ret;
26200
26532
  },
26201
- __wbindgen_cast_000000000000000e: function(arg0, arg1) {
26533
+ __wbindgen_cast_000000000000000f: function(arg0, arg1) {
26202
26534
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26203
26535
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26204
26536
  // Cast intrinsic for `Vector(NamedExternref("TransactionRecord")) -> Externref`.
26205
26537
  const ret = v0;
26206
26538
  return ret;
26207
26539
  },
26208
- __wbindgen_cast_000000000000000f: function(arg0, arg1) {
26540
+ __wbindgen_cast_0000000000000010: function(arg0, arg1) {
26209
26541
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26210
26542
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26211
26543
  // Cast intrinsic for `Vector(NamedExternref("Word")) -> Externref`.
26212
26544
  const ret = v0;
26213
26545
  return ret;
26214
26546
  },
26215
- __wbindgen_cast_0000000000000010: function(arg0, arg1) {
26547
+ __wbindgen_cast_0000000000000011: function(arg0, arg1) {
26216
26548
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26217
26549
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26218
26550
  // Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
26219
26551
  const ret = v0;
26220
26552
  return ret;
26221
26553
  },
26222
- __wbindgen_cast_0000000000000011: function(arg0, arg1) {
26554
+ __wbindgen_cast_0000000000000012: function(arg0, arg1) {
26223
26555
  var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
26224
26556
  wasm.__wbindgen_free(arg0, arg1 * 1, 1);
26225
26557
  // Cast intrinsic for `Vector(U8) -> Externref`.
@@ -26385,6 +26717,9 @@ const ConsumableNoteRecordFinalization = (typeof FinalizationRegistry === 'undef
26385
26717
  const EndpointFinalization = (typeof FinalizationRegistry === 'undefined')
26386
26718
  ? { register: () => {}, unregister: () => {} }
26387
26719
  : new FinalizationRegistry(ptr => wasm.__wbg_endpoint_free(ptr >>> 0, 1));
26720
+ const EthAddressFinalization = (typeof FinalizationRegistry === 'undefined')
26721
+ ? { register: () => {}, unregister: () => {} }
26722
+ : new FinalizationRegistry(ptr => wasm.__wbg_ethaddress_free(ptr >>> 0, 1));
26388
26723
  const ExecutedTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
26389
26724
  ? { register: () => {}, unregister: () => {} }
26390
26725
  : new FinalizationRegistry(ptr => wasm.__wbg_executedtransaction_free(ptr >>> 0, 1));
@@ -27124,6 +27459,7 @@ var index = /*#__PURE__*/Object.freeze({
27124
27459
  CommittedNote: CommittedNote,
27125
27460
  ConsumableNoteRecord: ConsumableNoteRecord,
27126
27461
  Endpoint: Endpoint,
27462
+ EthAddress: EthAddress,
27127
27463
  ExecutedTransaction: ExecutedTransaction,
27128
27464
  Felt: Felt,
27129
27465
  FeltArray: FeltArray,
@@ -27255,7 +27591,7 @@ var index = /*#__PURE__*/Object.freeze({
27255
27591
 
27256
27592
  const module$1 = new URL("assets/miden_client_web.wasm", self.location.href);
27257
27593
 
27258
- var CargoD2qNRrNR = /*#__PURE__*/Object.freeze({
27594
+ var CargoDjVnfWKi = /*#__PURE__*/Object.freeze({
27259
27595
  __proto__: null,
27260
27596
  Account: Account,
27261
27597
  AccountArray: AccountArray,
@@ -27292,6 +27628,7 @@ var CargoD2qNRrNR = /*#__PURE__*/Object.freeze({
27292
27628
  CommittedNote: CommittedNote,
27293
27629
  ConsumableNoteRecord: ConsumableNoteRecord,
27294
27630
  Endpoint: Endpoint,
27631
+ EthAddress: EthAddress,
27295
27632
  ExecutedTransaction: ExecutedTransaction,
27296
27633
  Felt: Felt,
27297
27634
  FeltArray: FeltArray,