@miden-sdk/miden-sdk 0.15.3 → 0.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +85 -0
  2. package/dist/mt/{Cargo-D2qNRrNR.js → Cargo-C001gt8g.js} +587 -90
  3. package/dist/mt/Cargo-C001gt8g.js.map +1 -0
  4. package/dist/mt/api-types.d.ts +189 -0
  5. package/dist/mt/assets/miden_client_web.wasm +0 -0
  6. package/dist/mt/crates/miden_client_web.d.ts +153 -3
  7. package/dist/mt/docs-entry.d.ts +3 -0
  8. package/dist/mt/eager.js +1 -1
  9. package/dist/mt/index.d.ts +3 -0
  10. package/dist/mt/index.js +302 -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-C001gt8g-B8wBADUI.js} +587 -90
  15. package/dist/mt/workers/Cargo-C001gt8g-B8wBADUI.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 +589 -90
  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-CR1mzjgg.js} +593 -98
  23. package/dist/st/Cargo-CR1mzjgg.js.map +1 -0
  24. package/dist/st/api-types.d.ts +189 -0
  25. package/dist/st/assets/miden_client_web.wasm +0 -0
  26. package/dist/st/crates/miden_client_web.d.ts +153 -3
  27. package/dist/st/docs-entry.d.ts +3 -0
  28. package/dist/st/eager.js +1 -1
  29. package/dist/st/index.d.ts +3 -0
  30. package/dist/st/index.js +302 -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-CR1mzjgg-DeDmKA4W.js} +593 -98
  34. package/dist/st/workers/Cargo-CR1mzjgg-DeDmKA4W.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 +595 -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 +4 -0
  41. package/js/resources/transactions.js +289 -12
  42. package/js/standalone.js +61 -0
  43. package/package.json +4 -4
  44. package/dist/mt/Cargo-D2qNRrNR.js.map +0 -1
  45. package/dist/mt/workers/Cargo-D2qNRrNR-n_GEbq73.js.map +0 -1
  46. package/dist/st/Cargo-BP7-0qVT.js.map +0 -1
  47. 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 CargoC001gt8g; });
9
9
  // The Cargo glue's __wbg_init TLA is stripped by the rollup build to
10
10
  // prevent blocking WKWebView module evaluation. Call it explicitly here
11
11
  // with the WASM URL that the Cargo glue pre-resolves (relative to its
@@ -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
  *
@@ -16667,6 +16910,97 @@ class MerklePath {
16667
16910
  }
16668
16911
  if (Symbol.dispose) MerklePath.prototype[Symbol.dispose] = MerklePath.prototype.free;
16669
16912
 
16913
+ /**
16914
+ * Targets a note at a public network account so the operator auto-consumes it.
16915
+ *
16916
+ * A note is a network note when it is `Public` and carries a valid
16917
+ * `NetworkAccountTarget` attachment (see `Note.isNetworkNote`).
16918
+ */
16919
+ class NetworkAccountTarget {
16920
+ static __wrap(ptr) {
16921
+ ptr = ptr >>> 0;
16922
+ const obj = Object.create(NetworkAccountTarget.prototype);
16923
+ obj.__wbg_ptr = ptr;
16924
+ NetworkAccountTargetFinalization.register(obj, obj.__wbg_ptr, obj);
16925
+ return obj;
16926
+ }
16927
+ __destroy_into_raw() {
16928
+ const ptr = this.__wbg_ptr;
16929
+ this.__wbg_ptr = 0;
16930
+ NetworkAccountTargetFinalization.unregister(this);
16931
+ return ptr;
16932
+ }
16933
+ free() {
16934
+ const ptr = this.__destroy_into_raw();
16935
+ wasm.__wbg_networkaccounttarget_free(ptr, 0);
16936
+ }
16937
+ /**
16938
+ * Returns the note execution hint.
16939
+ * @returns {NoteExecutionHint}
16940
+ */
16941
+ executionHint() {
16942
+ const ret = wasm.networkaccounttarget_executionHint(this.__wbg_ptr);
16943
+ return NoteExecutionHint.__wrap(ret);
16944
+ }
16945
+ /**
16946
+ * Decodes a `NoteAttachment` back into a `NetworkAccountTarget`.
16947
+ *
16948
+ * # Errors
16949
+ * Errors if the attachment is not a valid network-account-target attachment.
16950
+ * @param {NoteAttachment} attachment
16951
+ * @returns {NetworkAccountTarget}
16952
+ */
16953
+ static fromAttachment(attachment) {
16954
+ _assertClass(attachment, NoteAttachment);
16955
+ const ret = wasm.networkaccounttarget_fromAttachment(attachment.__wbg_ptr);
16956
+ if (ret[2]) {
16957
+ throw takeFromExternrefTable0(ret[1]);
16958
+ }
16959
+ return NetworkAccountTarget.__wrap(ret[0]);
16960
+ }
16961
+ /**
16962
+ * Creates a target for the given network account. `executionHint` defaults
16963
+ * to `NoteExecutionHint.always()`.
16964
+ *
16965
+ * # Errors
16966
+ * Errors if `account_id` is not a public account.
16967
+ * @param {AccountId} account_id
16968
+ * @param {NoteExecutionHint | null} [execution_hint]
16969
+ */
16970
+ constructor(account_id, execution_hint) {
16971
+ _assertClass(account_id, AccountId);
16972
+ let ptr0 = 0;
16973
+ if (!isLikeNone(execution_hint)) {
16974
+ _assertClass(execution_hint, NoteExecutionHint);
16975
+ ptr0 = execution_hint.__destroy_into_raw();
16976
+ }
16977
+ const ret = wasm.networkaccounttarget_new(account_id.__wbg_ptr, ptr0);
16978
+ if (ret[2]) {
16979
+ throw takeFromExternrefTable0(ret[1]);
16980
+ }
16981
+ this.__wbg_ptr = ret[0] >>> 0;
16982
+ NetworkAccountTargetFinalization.register(this, this.__wbg_ptr, this);
16983
+ return this;
16984
+ }
16985
+ /**
16986
+ * Returns the targeted network account id.
16987
+ * @returns {AccountId}
16988
+ */
16989
+ targetId() {
16990
+ const ret = wasm.accountreader_accountId(this.__wbg_ptr);
16991
+ return AccountId.__wrap(ret);
16992
+ }
16993
+ /**
16994
+ * Encodes this target as a `NoteAttachment`.
16995
+ * @returns {NoteAttachment}
16996
+ */
16997
+ toAttachment() {
16998
+ const ret = wasm.networkaccounttarget_toAttachment(this.__wbg_ptr);
16999
+ return NoteAttachment.__wrap(ret);
17000
+ }
17001
+ }
17002
+ if (Symbol.dispose) NetworkAccountTarget.prototype[Symbol.dispose] = NetworkAccountTarget.prototype.free;
17003
+
16670
17004
  /**
16671
17005
  * The identifier of a Miden network.
16672
17006
  */
@@ -16860,6 +17194,16 @@ class Note {
16860
17194
  const ret = wasm.note_assets(this.__wbg_ptr);
16861
17195
  return NoteAssets.__wrap(ret);
16862
17196
  }
17197
+ /**
17198
+ * Returns the note's attachments.
17199
+ * @returns {NoteAttachment[]}
17200
+ */
17201
+ attachments() {
17202
+ const ret = wasm.note_attachments(this.__wbg_ptr);
17203
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
17204
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
17205
+ return v1;
17206
+ }
16863
17207
  /**
16864
17208
  * Returns the commitment to the note (its ID).
16865
17209
  *
@@ -16873,6 +17217,32 @@ class Note {
16873
17217
  const ret = wasm.note_commitment(this.__wbg_ptr);
16874
17218
  return Word.__wrap(ret);
16875
17219
  }
17220
+ /**
17221
+ * Builds a B2AGG (Bridge-to-AggLayer) note that bridges the given assets out to another
17222
+ * network via the `AggLayer`.
17223
+ *
17224
+ * The note is always public and is consumed by `bridge_account`, which burns the assets so
17225
+ * they can be claimed on the destination network at `destination_address` (an Ethereum
17226
+ * address on the AggLayer-assigned `destination_network`). The assets must be fungible assets
17227
+ * issued by a network faucet.
17228
+ * @param {AccountId} sender
17229
+ * @param {AccountId} bridge_account
17230
+ * @param {NoteAssets} assets
17231
+ * @param {number} destination_network
17232
+ * @param {EthAddress} destination_address
17233
+ * @returns {Note}
17234
+ */
17235
+ static createB2AggNote(sender, bridge_account, assets, destination_network, destination_address) {
17236
+ _assertClass(sender, AccountId);
17237
+ _assertClass(bridge_account, AccountId);
17238
+ _assertClass(assets, NoteAssets);
17239
+ _assertClass(destination_address, EthAddress);
17240
+ const ret = wasm.note_createB2AggNote(sender.__wbg_ptr, bridge_account.__wbg_ptr, assets.__wbg_ptr, destination_network, destination_address.__wbg_ptr);
17241
+ if (ret[2]) {
17242
+ throw takeFromExternrefTable0(ret[1]);
17243
+ }
17244
+ return Note.__wrap(ret[0]);
17245
+ }
16876
17246
  /**
16877
17247
  * Builds a P2IDE note that can be reclaimed or timelocked based on block heights.
16878
17248
  * @param {AccountId} sender
@@ -16935,6 +17305,15 @@ class Note {
16935
17305
  const ret = wasm.note_commitment(this.__wbg_ptr);
16936
17306
  return NoteId.__wrap(ret);
16937
17307
  }
17308
+ /**
17309
+ * Returns true if the note is a network note (public + a valid
17310
+ * `NetworkAccountTarget` attachment).
17311
+ * @returns {boolean}
17312
+ */
17313
+ isNetworkNote() {
17314
+ const ret = wasm.note_isNetworkNote(this.__wbg_ptr);
17315
+ return ret !== 0;
17316
+ }
16938
17317
  /**
16939
17318
  * Returns the public metadata associated with the note.
16940
17319
  * @returns {NoteMetadata}
@@ -16994,6 +17373,30 @@ class Note {
16994
17373
  const ret = wasm.note_serialize(this.__wbg_ptr);
16995
17374
  return ret;
16996
17375
  }
17376
+ /**
17377
+ * Creates a note carrying the provided attachments, using the metadata's
17378
+ * sender / note type / tag (attachments on the metadata itself are ignored).
17379
+ *
17380
+ * # Errors
17381
+ * Errors if the attachment set is invalid (too many attachments or words).
17382
+ * @param {NoteAssets} note_assets
17383
+ * @param {NoteMetadata} note_metadata
17384
+ * @param {NoteRecipient} note_recipient
17385
+ * @param {NoteAttachment[]} attachments
17386
+ * @returns {Note}
17387
+ */
17388
+ static withAttachments(note_assets, note_metadata, note_recipient, attachments) {
17389
+ _assertClass(note_assets, NoteAssets);
17390
+ _assertClass(note_metadata, NoteMetadata);
17391
+ _assertClass(note_recipient, NoteRecipient);
17392
+ const ptr0 = passArrayJsValueToWasm0(attachments, wasm.__wbindgen_malloc);
17393
+ const len0 = WASM_VECTOR_LEN;
17394
+ const ret = wasm.note_withAttachments(note_assets.__wbg_ptr, note_metadata.__wbg_ptr, note_recipient.__wbg_ptr, ptr0, len0);
17395
+ if (ret[2]) {
17396
+ throw takeFromExternrefTable0(ret[1]);
17397
+ }
17398
+ return Note.__wrap(ret[0]);
17399
+ }
16997
17400
  }
16998
17401
  if (Symbol.dispose) Note.prototype[Symbol.dispose] = Note.prototype.free;
16999
17402
 
@@ -17261,6 +17664,12 @@ class NoteAttachment {
17261
17664
  NoteAttachmentFinalization.register(obj, obj.__wbg_ptr, obj);
17262
17665
  return obj;
17263
17666
  }
17667
+ static __unwrap(jsValue) {
17668
+ if (!(jsValue instanceof NoteAttachment)) {
17669
+ return 0;
17670
+ }
17671
+ return jsValue.__destroy_into_raw();
17672
+ }
17264
17673
  __destroy_into_raw() {
17265
17674
  const ptr = this.__wbg_ptr;
17266
17675
  this.__wbg_ptr = 0;
@@ -18491,6 +18900,19 @@ class NoteRecipient {
18491
18900
  const ret = wasm.accountheader_storageCommitment(this.__wbg_ptr);
18492
18901
  return Word.__wrap(ret);
18493
18902
  }
18903
+ /**
18904
+ * Creates a recipient from a script and storage, generating a fresh random
18905
+ * serial number (the secret that prevents double-spends).
18906
+ * @param {NoteScript} note_script
18907
+ * @param {NoteStorage} storage
18908
+ * @returns {NoteRecipient}
18909
+ */
18910
+ static fromScript(note_script, storage) {
18911
+ _assertClass(note_script, NoteScript);
18912
+ _assertClass(storage, NoteStorage);
18913
+ const ret = wasm.noterecipient_fromScript(note_script.__wbg_ptr, storage.__wbg_ptr);
18914
+ return NoteRecipient.__wrap(ret);
18915
+ }
18494
18916
  /**
18495
18917
  * Creates a note recipient from its serial number, script, and storage.
18496
18918
  * @param {Word} serial_num
@@ -23616,6 +24038,30 @@ class WebClient {
23616
24038
  const ret = wasm.webclient_newAccountWithSecretKey(this.__wbg_ptr, account.__wbg_ptr, secret_key.__wbg_ptr);
23617
24039
  return ret;
23618
24040
  }
24041
+ /**
24042
+ * Builds a transaction request that bridges a fungible asset out to another network via the
24043
+ * `AggLayer`.
24044
+ *
24045
+ * The request emits a single public B2AGG (Bridge-to-AggLayer) note holding `amount` units of
24046
+ * the `faucet_id` asset. The note is consumed by `bridge_account_id`, which burns the asset so
24047
+ * it can be claimed at `destination_address` (an Ethereum address) on the AggLayer-assigned
24048
+ * `destination_network`.
24049
+ * @param {AccountId} sender_account_id
24050
+ * @param {AccountId} bridge_account_id
24051
+ * @param {AccountId} faucet_id
24052
+ * @param {bigint} amount
24053
+ * @param {number} destination_network
24054
+ * @param {EthAddress} destination_address
24055
+ * @returns {Promise<TransactionRequest>}
24056
+ */
24057
+ newB2AggTransactionRequest(sender_account_id, bridge_account_id, faucet_id, amount, destination_network, destination_address) {
24058
+ _assertClass(sender_account_id, AccountId);
24059
+ _assertClass(bridge_account_id, AccountId);
24060
+ _assertClass(faucet_id, AccountId);
24061
+ _assertClass(destination_address, EthAddress);
24062
+ 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);
24063
+ return ret;
24064
+ }
23619
24065
  /**
23620
24066
  * @param {Note[]} list_of_notes
23621
24067
  * @returns {TransactionRequest}
@@ -23909,6 +24355,25 @@ class WebClient {
23909
24355
  const ret = wasm.webclient_submitNewTransaction(this.__wbg_ptr, account_id.__wbg_ptr, transaction_request.__wbg_ptr);
23910
24356
  return ret;
23911
24357
  }
24358
+ /**
24359
+ * Executes a batch of transactions against the specified account, proves them individually
24360
+ * and as a batch, submits the batch to the network, and atomically applies the per-tx
24361
+ * updates to the local store. Returns the block number the batch was accepted into.
24362
+ *
24363
+ * All transactions must target the same local account — the `account_id` argument.
24364
+ * Each element of `transaction_requests` is the serialized-bytes form of a
24365
+ * `TransactionRequest` (obtained via `tx_request.serialize()`)
24366
+ * @param {AccountId} account_id
24367
+ * @param {Uint8Array[]} transaction_requests
24368
+ * @returns {Promise<number>}
24369
+ */
24370
+ submitNewTransactionBatch(account_id, transaction_requests) {
24371
+ _assertClass(account_id, AccountId);
24372
+ const ptr0 = passArrayJsValueToWasm0(transaction_requests, wasm.__wbindgen_malloc);
24373
+ const len0 = WASM_VECTOR_LEN;
24374
+ const ret = wasm.webclient_submitNewTransactionBatch(this.__wbg_ptr, account_id.__wbg_ptr, ptr0, len0);
24375
+ return ret;
24376
+ }
23912
24377
  /**
23913
24378
  * Executes a transaction specified by the request against the specified account, proves it
23914
24379
  * with the user provided prover, submits it to the network, and updates the local database.
@@ -24528,7 +24993,7 @@ function __wbg_get_imports(memory) {
24528
24993
  const ret = AccountStorage.__wrap(arg0);
24529
24994
  return ret;
24530
24995
  },
24531
- __wbg_addNoteTag_1c8f882e522a5424: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
24996
+ __wbg_addNoteTag_edac9aa5d53fd295: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
24532
24997
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
24533
24998
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
24534
24999
  let v1;
@@ -24556,21 +25021,25 @@ function __wbg_get_imports(memory) {
24556
25021
  __wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
24557
25022
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
24558
25023
  }, arguments); },
24559
- __wbg_applyFullAccountState_ba8793f04d3ef7fb: function(arg0, arg1, arg2) {
25024
+ __wbg_applyFullAccountState_efa7cec371ac287f: function(arg0, arg1, arg2) {
24560
25025
  const ret = applyFullAccountState(getStringFromWasm0(arg0, arg1), JsAccountUpdate.__wrap(arg2));
24561
25026
  return ret;
24562
25027
  },
24563
- __wbg_applySettingsMutations_555ec6e5c58ffc5b: function(arg0, arg1, arg2, arg3) {
25028
+ __wbg_applySettingsMutations_8eb27567fe3a997b: function(arg0, arg1, arg2, arg3) {
24564
25029
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24565
25030
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24566
25031
  const ret = applySettingsMutations(getStringFromWasm0(arg0, arg1), v0);
24567
25032
  return ret;
24568
25033
  },
24569
- __wbg_applyStateSync_d6a6d78e0278d43d: function(arg0, arg1, arg2) {
25034
+ __wbg_applyStateSync_ce27298bc75b7b18: function(arg0, arg1, arg2) {
24570
25035
  const ret = applyStateSync(getStringFromWasm0(arg0, arg1), JsStateSyncUpdate.__wrap(arg2));
24571
25036
  return ret;
24572
25037
  },
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) {
25038
+ __wbg_applyTransactionBatch_b47dd46bbb97dd34: function(arg0, arg1, arg2) {
25039
+ const ret = applyTransactionBatch(getStringFromWasm0(arg0, arg1), arg2);
25040
+ return ret;
25041
+ },
25042
+ __wbg_applyTransactionDelta_9f7f77d353e0bd2d: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20) {
24574
25043
  let deferred0_0;
24575
25044
  let deferred0_1;
24576
25045
  let deferred1_0;
@@ -24721,7 +25190,7 @@ function __wbg_get_imports(memory) {
24721
25190
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24722
25191
  }
24723
25192
  },
24724
- __wbg_exportStore_2755c29774f1398d: function(arg0, arg1) {
25193
+ __wbg_exportStore_9f8eb55269435a47: function(arg0, arg1) {
24725
25194
  const ret = exportStore(getStringFromWasm0(arg0, arg1));
24726
25195
  return ret;
24727
25196
  },
@@ -24753,7 +25222,7 @@ function __wbg_get_imports(memory) {
24753
25222
  const ret = FetchedNote.__wrap(arg0);
24754
25223
  return ret;
24755
25224
  },
24756
- __wbg_forceImportStore_4b6749610cf2fca2: function(arg0, arg1, arg2) {
25225
+ __wbg_forceImportStore_fd9750b9b72150d8: function(arg0, arg1, arg2) {
24757
25226
  const ret = forceImportStore(getStringFromWasm0(arg0, arg1), arg2);
24758
25227
  return ret;
24759
25228
  },
@@ -24761,6 +25230,10 @@ function __wbg_get_imports(memory) {
24761
25230
  const ret = ForeignAccount.__unwrap(arg0);
24762
25231
  return ret;
24763
25232
  },
25233
+ __wbg_from_bddd64e7d5ff6941: function(arg0) {
25234
+ const ret = Array.from(arg0);
25235
+ return ret;
25236
+ },
24764
25237
  __wbg_fungibleasset_new: function(arg0) {
24765
25238
  const ret = FungibleAsset.__wrap(arg0);
24766
25239
  return ret;
@@ -24773,7 +25246,7 @@ function __wbg_get_imports(memory) {
24773
25246
  const ret = FungibleAssetDeltaItem.__wrap(arg0);
24774
25247
  return ret;
24775
25248
  },
24776
- __wbg_getAccountAddresses_4c6e8d82b86bd4db: function(arg0, arg1, arg2, arg3) {
25249
+ __wbg_getAccountAddresses_53c75fc6f0afab26: function(arg0, arg1, arg2, arg3) {
24777
25250
  let deferred0_0;
24778
25251
  let deferred0_1;
24779
25252
  try {
@@ -24785,7 +25258,7 @@ function __wbg_get_imports(memory) {
24785
25258
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24786
25259
  }
24787
25260
  },
24788
- __wbg_getAccountAuthByPubKeyCommitment_526c174dcf167d1d: function(arg0, arg1, arg2, arg3) {
25261
+ __wbg_getAccountAuthByPubKeyCommitment_45e209a5e814d994: function(arg0, arg1, arg2, arg3) {
24789
25262
  let deferred0_0;
24790
25263
  let deferred0_1;
24791
25264
  try {
@@ -24797,7 +25270,7 @@ function __wbg_get_imports(memory) {
24797
25270
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24798
25271
  }
24799
25272
  },
24800
- __wbg_getAccountCode_4b1a8b44c07f16ec: function(arg0, arg1, arg2, arg3) {
25273
+ __wbg_getAccountCode_e79bed526fe5ef58: function(arg0, arg1, arg2, arg3) {
24801
25274
  let deferred0_0;
24802
25275
  let deferred0_1;
24803
25276
  try {
@@ -24809,7 +25282,7 @@ function __wbg_get_imports(memory) {
24809
25282
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24810
25283
  }
24811
25284
  },
24812
- __wbg_getAccountHeaderByCommitment_7d00957336fa1aa0: function(arg0, arg1, arg2, arg3) {
25285
+ __wbg_getAccountHeaderByCommitment_6f5840b801ef9054: function(arg0, arg1, arg2, arg3) {
24813
25286
  let deferred0_0;
24814
25287
  let deferred0_1;
24815
25288
  try {
@@ -24821,7 +25294,7 @@ function __wbg_get_imports(memory) {
24821
25294
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24822
25295
  }
24823
25296
  },
24824
- __wbg_getAccountHeader_a379be70d1e4cfbd: function(arg0, arg1, arg2, arg3) {
25297
+ __wbg_getAccountHeader_5f4fc27de3d1d2be: function(arg0, arg1, arg2, arg3) {
24825
25298
  let deferred0_0;
24826
25299
  let deferred0_1;
24827
25300
  try {
@@ -24833,7 +25306,7 @@ function __wbg_get_imports(memory) {
24833
25306
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24834
25307
  }
24835
25308
  },
24836
- __wbg_getAccountIdByKeyCommitment_20a98231f254e16b: function(arg0, arg1, arg2, arg3) {
25309
+ __wbg_getAccountIdByKeyCommitment_446e9389ad387c83: function(arg0, arg1, arg2, arg3) {
24837
25310
  let deferred0_0;
24838
25311
  let deferred0_1;
24839
25312
  try {
@@ -24845,11 +25318,11 @@ function __wbg_get_imports(memory) {
24845
25318
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24846
25319
  }
24847
25320
  },
24848
- __wbg_getAccountIds_15b2e8a5c2f9f448: function(arg0, arg1) {
25321
+ __wbg_getAccountIds_1adc911b0d8d0f6e: function(arg0, arg1) {
24849
25322
  const ret = getAccountIds(getStringFromWasm0(arg0, arg1));
24850
25323
  return ret;
24851
25324
  },
24852
- __wbg_getAccountStorageMaps_7a6581bdaa528f5b: function(arg0, arg1, arg2, arg3) {
25325
+ __wbg_getAccountStorageMaps_3767caa8d97db0a1: function(arg0, arg1, arg2, arg3) {
24853
25326
  let deferred0_0;
24854
25327
  let deferred0_1;
24855
25328
  try {
@@ -24861,7 +25334,7 @@ function __wbg_get_imports(memory) {
24861
25334
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24862
25335
  }
24863
25336
  },
24864
- __wbg_getAccountStorage_81c375a1a2d33378: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25337
+ __wbg_getAccountStorage_07aa2760664b2bec: function(arg0, arg1, arg2, arg3, arg4, arg5) {
24865
25338
  let deferred0_0;
24866
25339
  let deferred0_1;
24867
25340
  try {
@@ -24875,7 +25348,7 @@ function __wbg_get_imports(memory) {
24875
25348
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24876
25349
  }
24877
25350
  },
24878
- __wbg_getAccountVaultAssets_d7b806e2ad386b3b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25351
+ __wbg_getAccountVaultAssets_2f19d55ae4ed7c0b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
24879
25352
  let deferred0_0;
24880
25353
  let deferred0_1;
24881
25354
  try {
@@ -24889,27 +25362,27 @@ function __wbg_get_imports(memory) {
24889
25362
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24890
25363
  }
24891
25364
  },
24892
- __wbg_getAllAccountHeaders_e9ce4e33075edb27: function(arg0, arg1) {
25365
+ __wbg_getAllAccountHeaders_8ed6029ae1742504: function(arg0, arg1) {
24893
25366
  const ret = getAllAccountHeaders(getStringFromWasm0(arg0, arg1));
24894
25367
  return ret;
24895
25368
  },
24896
- __wbg_getBlockHeaders_6ffc387a5b74f1ff: function(arg0, arg1, arg2, arg3) {
25369
+ __wbg_getBlockHeaders_06f7b42ae978e531: function(arg0, arg1, arg2, arg3) {
24897
25370
  var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
24898
25371
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24899
25372
  const ret = getBlockHeaders(getStringFromWasm0(arg0, arg1), v0);
24900
25373
  return ret;
24901
25374
  },
24902
- __wbg_getCurrentBlockchainPeaks_4f515c084e8dc019: function(arg0, arg1) {
25375
+ __wbg_getCurrentBlockchainPeaks_a04a5ec6cd7f88af: function(arg0, arg1) {
24903
25376
  const ret = getCurrentBlockchainPeaks(getStringFromWasm0(arg0, arg1));
24904
25377
  return ret;
24905
25378
  },
24906
- __wbg_getForeignAccountCode_80e1c0d6bec20b20: function(arg0, arg1, arg2, arg3) {
25379
+ __wbg_getForeignAccountCode_de89bd207484f570: function(arg0, arg1, arg2, arg3) {
24907
25380
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24908
25381
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24909
25382
  const ret = getForeignAccountCode(getStringFromWasm0(arg0, arg1), v0);
24910
25383
  return ret;
24911
25384
  },
24912
- __wbg_getInputNoteByOffset_52dacd9771fd7c73: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
25385
+ __wbg_getInputNoteByOffset_9cfe153b53135065: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
24913
25386
  let deferred1_0;
24914
25387
  let deferred1_1;
24915
25388
  try {
@@ -24923,31 +25396,31 @@ function __wbg_get_imports(memory) {
24923
25396
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
24924
25397
  }
24925
25398
  },
24926
- __wbg_getInputNotesFromDetailsCommitments_b6639133948088e6: function(arg0, arg1, arg2, arg3) {
25399
+ __wbg_getInputNotesFromDetailsCommitments_4e49a566390c4337: function(arg0, arg1, arg2, arg3) {
24927
25400
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24928
25401
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24929
25402
  const ret = getInputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
24930
25403
  return ret;
24931
25404
  },
24932
- __wbg_getInputNotesFromIds_1dc711511af25436: function(arg0, arg1, arg2, arg3) {
25405
+ __wbg_getInputNotesFromIds_f506cabce8dfdec7: function(arg0, arg1, arg2, arg3) {
24933
25406
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24934
25407
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24935
25408
  const ret = getInputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
24936
25409
  return ret;
24937
25410
  },
24938
- __wbg_getInputNotesFromNullifiers_de68d7a980a7a6ac: function(arg0, arg1, arg2, arg3) {
25411
+ __wbg_getInputNotesFromNullifiers_25b0f807fd619f35: function(arg0, arg1, arg2, arg3) {
24939
25412
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24940
25413
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24941
25414
  const ret = getInputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
24942
25415
  return ret;
24943
25416
  },
24944
- __wbg_getInputNotes_e6991526618c5e3b: function(arg0, arg1, arg2, arg3) {
25417
+ __wbg_getInputNotes_d90894b55f0432de: function(arg0, arg1, arg2, arg3) {
24945
25418
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
24946
25419
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
24947
25420
  const ret = getInputNotes(getStringFromWasm0(arg0, arg1), v0);
24948
25421
  return ret;
24949
25422
  },
24950
- __wbg_getKeyCommitmentsByAccountId_b16d7689e99f36cb: function(arg0, arg1, arg2, arg3) {
25423
+ __wbg_getKeyCommitmentsByAccountId_c53d31eba565285f: function(arg0, arg1, arg2, arg3) {
24951
25424
  let deferred0_0;
24952
25425
  let deferred0_1;
24953
25426
  try {
@@ -24959,7 +25432,7 @@ function __wbg_get_imports(memory) {
24959
25432
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24960
25433
  }
24961
25434
  },
24962
- __wbg_getNoteScript_6d54def9cedaab5b: function(arg0, arg1, arg2, arg3) {
25435
+ __wbg_getNoteScript_a74641b7b9a2b11a: function(arg0, arg1, arg2, arg3) {
24963
25436
  let deferred0_0;
24964
25437
  let deferred0_1;
24965
25438
  try {
@@ -24971,39 +25444,39 @@ function __wbg_get_imports(memory) {
24971
25444
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
24972
25445
  }
24973
25446
  },
24974
- __wbg_getNoteTags_4a9f0532a43e9ab4: function(arg0, arg1) {
25447
+ __wbg_getNoteTags_6351357c7199175a: function(arg0, arg1) {
24975
25448
  const ret = getNoteTags(getStringFromWasm0(arg0, arg1));
24976
25449
  return ret;
24977
25450
  },
24978
- __wbg_getOutputNotesFromDetailsCommitments_b65d8c4d56515cdc: function(arg0, arg1, arg2, arg3) {
25451
+ __wbg_getOutputNotesFromDetailsCommitments_a4550ac8ebbd9770: function(arg0, arg1, arg2, arg3) {
24979
25452
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24980
25453
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24981
25454
  const ret = getOutputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
24982
25455
  return ret;
24983
25456
  },
24984
- __wbg_getOutputNotesFromIds_e4e43ea7ee10ce3b: function(arg0, arg1, arg2, arg3) {
25457
+ __wbg_getOutputNotesFromIds_d72b067679ade695: function(arg0, arg1, arg2, arg3) {
24985
25458
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24986
25459
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24987
25460
  const ret = getOutputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
24988
25461
  return ret;
24989
25462
  },
24990
- __wbg_getOutputNotesFromNullifiers_5793389b5326d141: function(arg0, arg1, arg2, arg3) {
25463
+ __wbg_getOutputNotesFromNullifiers_17b258e816c39ed0: function(arg0, arg1, arg2, arg3) {
24991
25464
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
24992
25465
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
24993
25466
  const ret = getOutputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
24994
25467
  return ret;
24995
25468
  },
24996
- __wbg_getOutputNotes_dc82d3565d3003c8: function(arg0, arg1, arg2, arg3) {
25469
+ __wbg_getOutputNotes_1473c985e0449439: function(arg0, arg1, arg2, arg3) {
24997
25470
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
24998
25471
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
24999
25472
  const ret = getOutputNotes(getStringFromWasm0(arg0, arg1), v0);
25000
25473
  return ret;
25001
25474
  },
25002
- __wbg_getPartialBlockchainNodesAll_85f7172793d8eb4f: function(arg0, arg1) {
25475
+ __wbg_getPartialBlockchainNodesAll_e17f47fa0b31d95e: function(arg0, arg1) {
25003
25476
  const ret = getPartialBlockchainNodesAll(getStringFromWasm0(arg0, arg1));
25004
25477
  return ret;
25005
25478
  },
25006
- __wbg_getPartialBlockchainNodesUpToInOrderIndex_655882ac21085fa7: function(arg0, arg1, arg2, arg3) {
25479
+ __wbg_getPartialBlockchainNodesUpToInOrderIndex_43f6babd6387a967: function(arg0, arg1, arg2, arg3) {
25007
25480
  let deferred0_0;
25008
25481
  let deferred0_1;
25009
25482
  try {
@@ -25015,7 +25488,7 @@ function __wbg_get_imports(memory) {
25015
25488
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25016
25489
  }
25017
25490
  },
25018
- __wbg_getPartialBlockchainNodes_87b3768321d70002: function(arg0, arg1, arg2, arg3) {
25491
+ __wbg_getPartialBlockchainNodes_753ab364036ee659: function(arg0, arg1, arg2, arg3) {
25019
25492
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25020
25493
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25021
25494
  const ret = getPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0);
@@ -25028,7 +25501,7 @@ function __wbg_get_imports(memory) {
25028
25501
  const ret = arg0.getReader();
25029
25502
  return ret;
25030
25503
  }, arguments); },
25031
- __wbg_getSetting_e9042efc55b18bbb: function(arg0, arg1, arg2, arg3) {
25504
+ __wbg_getSetting_6d181107da0b79d8: function(arg0, arg1, arg2, arg3) {
25032
25505
  let deferred0_0;
25033
25506
  let deferred0_1;
25034
25507
  try {
@@ -25040,7 +25513,7 @@ function __wbg_get_imports(memory) {
25040
25513
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25041
25514
  }
25042
25515
  },
25043
- __wbg_getSyncHeight_52e3dd3c6a2a9643: function(arg0, arg1) {
25516
+ __wbg_getSyncHeight_dc5e0c277d3350d0: function(arg0, arg1) {
25044
25517
  const ret = getSyncHeight(getStringFromWasm0(arg0, arg1));
25045
25518
  return ret;
25046
25519
  },
@@ -25048,15 +25521,15 @@ function __wbg_get_imports(memory) {
25048
25521
  const ret = arg0.getTime();
25049
25522
  return ret;
25050
25523
  },
25051
- __wbg_getTrackedBlockHeaderNumbers_0e827a6fbace9440: function(arg0, arg1) {
25524
+ __wbg_getTrackedBlockHeaderNumbers_897214e329b5ea0c: function(arg0, arg1) {
25052
25525
  const ret = getTrackedBlockHeaderNumbers(getStringFromWasm0(arg0, arg1));
25053
25526
  return ret;
25054
25527
  },
25055
- __wbg_getTrackedBlockHeaders_aec6fdccb131fcc4: function(arg0, arg1) {
25528
+ __wbg_getTrackedBlockHeaders_dcef57272c508785: function(arg0, arg1) {
25056
25529
  const ret = getTrackedBlockHeaders(getStringFromWasm0(arg0, arg1));
25057
25530
  return ret;
25058
25531
  },
25059
- __wbg_getTransactions_a5e46e592ec6567b: function(arg0, arg1, arg2, arg3) {
25532
+ __wbg_getTransactions_47df1ec1a429e0f9: function(arg0, arg1, arg2, arg3) {
25060
25533
  let deferred0_0;
25061
25534
  let deferred0_1;
25062
25535
  try {
@@ -25068,7 +25541,7 @@ function __wbg_get_imports(memory) {
25068
25541
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25069
25542
  }
25070
25543
  },
25071
- __wbg_getUnspentInputNoteNullifiers_0753945c0300356f: function(arg0, arg1) {
25544
+ __wbg_getUnspentInputNoteNullifiers_a41c87a9f48d5fdf: function(arg0, arg1) {
25072
25545
  const ret = getUnspentInputNoteNullifiers(getStringFromWasm0(arg0, arg1));
25073
25546
  return ret;
25074
25547
  },
@@ -25112,7 +25585,7 @@ function __wbg_get_imports(memory) {
25112
25585
  const ret = InputNoteRecord.__wrap(arg0);
25113
25586
  return ret;
25114
25587
  },
25115
- __wbg_insertAccountAddress_0d293c362728e99b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25588
+ __wbg_insertAccountAddress_1e4667af2c92224c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25116
25589
  let deferred0_0;
25117
25590
  let deferred0_1;
25118
25591
  try {
@@ -25126,7 +25599,7 @@ function __wbg_get_imports(memory) {
25126
25599
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25127
25600
  }
25128
25601
  },
25129
- __wbg_insertAccountAuth_be13c8ed59e28915: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25602
+ __wbg_insertAccountAuth_d471abfc7c33077a: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25130
25603
  let deferred0_0;
25131
25604
  let deferred0_1;
25132
25605
  let deferred1_0;
@@ -25143,7 +25616,7 @@ function __wbg_get_imports(memory) {
25143
25616
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25144
25617
  }
25145
25618
  },
25146
- __wbg_insertAccountKeyMapping_e21f0da8ff1a235d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25619
+ __wbg_insertAccountKeyMapping_b4e7262fd4dc4273: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25147
25620
  let deferred0_0;
25148
25621
  let deferred0_1;
25149
25622
  let deferred1_0;
@@ -25160,13 +25633,13 @@ function __wbg_get_imports(memory) {
25160
25633
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25161
25634
  }
25162
25635
  },
25163
- __wbg_insertBlockHeader_0fd9441e660932f4: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25636
+ __wbg_insertBlockHeader_282dd85fef7536b7: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25164
25637
  var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
25165
25638
  wasm.__wbindgen_free(arg3, arg4 * 1, 1);
25166
25639
  const ret = insertBlockHeader(getStringFromWasm0(arg0, arg1), arg2 >>> 0, v0, arg5 !== 0);
25167
25640
  return ret;
25168
25641
  },
25169
- __wbg_insertPartialBlockchainNodes_41ca6874a5cf6e1c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25642
+ __wbg_insertPartialBlockchainNodes_574aa9138d3a0e84: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25170
25643
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25171
25644
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25172
25645
  var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
@@ -25174,7 +25647,7 @@ function __wbg_get_imports(memory) {
25174
25647
  const ret = insertPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0, v1);
25175
25648
  return ret;
25176
25649
  },
25177
- __wbg_insertSetting_36744f044c3bb7e7: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25650
+ __wbg_insertSetting_eec786c0b0995552: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25178
25651
  let deferred0_0;
25179
25652
  let deferred0_1;
25180
25653
  try {
@@ -25188,7 +25661,7 @@ function __wbg_get_imports(memory) {
25188
25661
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25189
25662
  }
25190
25663
  },
25191
- __wbg_insertTransactionScript_3940a90473bfede6: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25664
+ __wbg_insertTransactionScript_881ef7ad3becb554: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25192
25665
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25193
25666
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25194
25667
  let v1;
@@ -25295,11 +25768,11 @@ function __wbg_get_imports(memory) {
25295
25768
  const ret = arg0.length;
25296
25769
  return ret;
25297
25770
  },
25298
- __wbg_listSettingKeys_0b73fd5d86306685: function(arg0, arg1) {
25771
+ __wbg_listSettingKeys_23baa5fe89fe0300: function(arg0, arg1) {
25299
25772
  const ret = listSettingKeys(getStringFromWasm0(arg0, arg1));
25300
25773
  return ret;
25301
25774
  },
25302
- __wbg_lockAccount_2e7498cedc727430: function(arg0, arg1, arg2, arg3) {
25775
+ __wbg_lockAccount_f83587d5772bcc3c: function(arg0, arg1, arg2, arg3) {
25303
25776
  let deferred0_0;
25304
25777
  let deferred0_1;
25305
25778
  try {
@@ -25458,6 +25931,10 @@ function __wbg_get_imports(memory) {
25458
25931
  const ret = NoteAttachment.__wrap(arg0);
25459
25932
  return ret;
25460
25933
  },
25934
+ __wbg_noteattachment_unwrap: function(arg0) {
25935
+ const ret = NoteAttachment.__unwrap(arg0);
25936
+ return ret;
25937
+ },
25461
25938
  __wbg_noteconsumability_new: function(arg0) {
25462
25939
  const ret = NoteConsumability.__wrap(arg0);
25463
25940
  return ret;
@@ -25514,7 +25991,7 @@ function __wbg_get_imports(memory) {
25514
25991
  const ret = Array.of(arg0, arg1, arg2);
25515
25992
  return ret;
25516
25993
  },
25517
- __wbg_openDatabase_408b68d01263c8d9: function(arg0, arg1, arg2, arg3) {
25994
+ __wbg_openDatabase_dade7696599cc268: function(arg0, arg1, arg2, arg3) {
25518
25995
  const ret = openDatabase(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
25519
25996
  return ret;
25520
25997
  },
@@ -25548,7 +26025,7 @@ function __wbg_get_imports(memory) {
25548
26025
  const ret = ProvenTransaction.__wrap(arg0);
25549
26026
  return ret;
25550
26027
  },
25551
- __wbg_pruneAccountHistory_e4591ff16590fc39: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26028
+ __wbg_pruneAccountHistory_4b805f8ee1a03061: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25552
26029
  let deferred0_0;
25553
26030
  let deferred0_1;
25554
26031
  let deferred1_0;
@@ -25565,7 +26042,7 @@ function __wbg_get_imports(memory) {
25565
26042
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
25566
26043
  }
25567
26044
  },
25568
- __wbg_pruneIrrelevantBlocks_b4bbb376dc014b6b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26045
+ __wbg_pruneIrrelevantBlocks_8bd4b5b8b6e87516: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25569
26046
  var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
25570
26047
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25571
26048
  var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
@@ -25577,6 +26054,10 @@ function __wbg_get_imports(memory) {
25577
26054
  const ret = PswapLineageRecord.__wrap(arg0);
25578
26055
  return ret;
25579
26056
  },
26057
+ __wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
26058
+ const ret = arg0.push(arg1);
26059
+ return ret;
26060
+ },
25580
26061
  __wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
25581
26062
  const ret = arg0.queueMicrotask;
25582
26063
  return ret;
@@ -25591,13 +26072,13 @@ function __wbg_get_imports(memory) {
25591
26072
  __wbg_releaseLock_aa5846c2494b3032: function(arg0) {
25592
26073
  arg0.releaseLock();
25593
26074
  },
25594
- __wbg_removeAccountAddress_4c833638d59fd8d7: function(arg0, arg1, arg2, arg3) {
26075
+ __wbg_removeAccountAddress_a5929a2b59fde92e: function(arg0, arg1, arg2, arg3) {
25595
26076
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25596
26077
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25597
26078
  const ret = removeAccountAddress(getStringFromWasm0(arg0, arg1), v0);
25598
26079
  return ret;
25599
26080
  },
25600
- __wbg_removeAccountAuth_536aea861f769be5: function(arg0, arg1, arg2, arg3) {
26081
+ __wbg_removeAccountAuth_7fd68774c7763092: function(arg0, arg1, arg2, arg3) {
25601
26082
  let deferred0_0;
25602
26083
  let deferred0_1;
25603
26084
  try {
@@ -25609,7 +26090,7 @@ function __wbg_get_imports(memory) {
25609
26090
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25610
26091
  }
25611
26092
  },
25612
- __wbg_removeAllMappingsForKey_1ad4056391b6e556: function(arg0, arg1, arg2, arg3) {
26093
+ __wbg_removeAllMappingsForKey_f33d5693234e701e: function(arg0, arg1, arg2, arg3) {
25613
26094
  let deferred0_0;
25614
26095
  let deferred0_1;
25615
26096
  try {
@@ -25621,7 +26102,7 @@ function __wbg_get_imports(memory) {
25621
26102
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25622
26103
  }
25623
26104
  },
25624
- __wbg_removeNoteTag_25df6a90ad8692ed: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
26105
+ __wbg_removeNoteTag_04d1db037df7f461: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
25625
26106
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
25626
26107
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
25627
26108
  let v1;
@@ -25642,7 +26123,7 @@ function __wbg_get_imports(memory) {
25642
26123
  const ret = removeNoteTag(getStringFromWasm0(arg0, arg1), v0, v1, v2, v3);
25643
26124
  return ret;
25644
26125
  },
25645
- __wbg_removeSetting_ebdcd55495cb1017: function(arg0, arg1, arg2, arg3) {
26126
+ __wbg_removeSetting_a53a2a6a735eb18c: function(arg0, arg1, arg2, arg3) {
25646
26127
  let deferred0_0;
25647
26128
  let deferred0_1;
25648
26129
  try {
@@ -25693,6 +26174,9 @@ function __wbg_get_imports(memory) {
25693
26174
  const ret = setTimeout(arg0, arg1);
25694
26175
  return ret;
25695
26176
  }, arguments); },
26177
+ __wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
26178
+ arg0[arg1] = arg2;
26179
+ },
25696
26180
  __wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
25697
26181
  const ret = Reflect.set(arg0, arg1, arg2);
25698
26182
  return ret;
@@ -25849,13 +26333,13 @@ function __wbg_get_imports(memory) {
25849
26333
  const ret = TransactionSummary.__wrap(arg0);
25850
26334
  return ret;
25851
26335
  },
25852
- __wbg_undoAccountStates_7a7c5a8838aa3845: function(arg0, arg1, arg2, arg3) {
26336
+ __wbg_undoAccountStates_cb4dbf5c6f4d06e9: function(arg0, arg1, arg2, arg3) {
25853
26337
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
25854
26338
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
25855
26339
  const ret = undoAccountStates(getStringFromWasm0(arg0, arg1), v0);
25856
26340
  return ret;
25857
26341
  },
25858
- __wbg_upsertAccountCode_79526a78b7676971: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26342
+ __wbg_upsertAccountCode_796427764c9198f0: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25859
26343
  let deferred0_0;
25860
26344
  let deferred0_1;
25861
26345
  try {
@@ -25869,7 +26353,7 @@ function __wbg_get_imports(memory) {
25869
26353
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25870
26354
  }
25871
26355
  },
25872
- __wbg_upsertAccountRecord_78ef5ee5891c4407: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) {
26356
+ __wbg_upsertAccountRecord_0a876f8ec19f47bb: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) {
25873
26357
  let deferred0_0;
25874
26358
  let deferred0_1;
25875
26359
  let deferred1_0;
@@ -25911,7 +26395,7 @@ function __wbg_get_imports(memory) {
25911
26395
  wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
25912
26396
  }
25913
26397
  },
25914
- __wbg_upsertAccountStorage_cb0450465224b3a3: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26398
+ __wbg_upsertAccountStorage_8bde852e4a19d8df: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25915
26399
  let deferred0_0;
25916
26400
  let deferred0_1;
25917
26401
  try {
@@ -25925,7 +26409,7 @@ function __wbg_get_imports(memory) {
25925
26409
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
25926
26410
  }
25927
26411
  },
25928
- __wbg_upsertForeignAccountCode_8f058e14b39d0aa5: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
26412
+ __wbg_upsertForeignAccountCode_e1fba6198defc496: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
25929
26413
  let deferred0_0;
25930
26414
  let deferred0_1;
25931
26415
  let deferred2_0;
@@ -25944,7 +26428,7 @@ function __wbg_get_imports(memory) {
25944
26428
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
25945
26429
  }
25946
26430
  },
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) {
26431
+ __wbg_upsertInputNote_4aa6814b400ee6a6: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20, arg21, arg22, arg23, arg24, arg25, arg26, arg27, arg28) {
25948
26432
  let deferred0_0;
25949
26433
  let deferred0_1;
25950
26434
  let deferred6_0;
@@ -25993,7 +26477,7 @@ function __wbg_get_imports(memory) {
25993
26477
  wasm.__wbindgen_free(deferred9_0, deferred9_1, 1);
25994
26478
  }
25995
26479
  },
25996
- __wbg_upsertNoteScript_ee5a46681df483c4: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26480
+ __wbg_upsertNoteScript_03dd7b732ab40d80: function(arg0, arg1, arg2, arg3, arg4, arg5) {
25997
26481
  let deferred0_0;
25998
26482
  let deferred0_1;
25999
26483
  try {
@@ -26007,7 +26491,7 @@ function __wbg_get_imports(memory) {
26007
26491
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26008
26492
  }
26009
26493
  },
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) {
26494
+ __wbg_upsertOutputNote_6625bc60ec9e00c7: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) {
26011
26495
  let deferred0_0;
26012
26496
  let deferred0_1;
26013
26497
  let deferred1_0;
@@ -26042,7 +26526,7 @@ function __wbg_get_imports(memory) {
26042
26526
  wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
26043
26527
  }
26044
26528
  },
26045
- __wbg_upsertStorageMapEntries_f69072278033a28a: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26529
+ __wbg_upsertStorageMapEntries_03e99b5c83445616: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26046
26530
  let deferred0_0;
26047
26531
  let deferred0_1;
26048
26532
  try {
@@ -26056,7 +26540,7 @@ function __wbg_get_imports(memory) {
26056
26540
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26057
26541
  }
26058
26542
  },
26059
- __wbg_upsertTransactionRecord_d141b6ccd2a2532e: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
26543
+ __wbg_upsertTransactionRecord_a5888dce53039ce9: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
26060
26544
  let deferred0_0;
26061
26545
  let deferred0_1;
26062
26546
  try {
@@ -26077,7 +26561,7 @@ function __wbg_get_imports(memory) {
26077
26561
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
26078
26562
  }
26079
26563
  },
26080
- __wbg_upsertVaultAssets_316fc3763a4f0e4d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26564
+ __wbg_upsertVaultAssets_c9a6f9534551a55b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
26081
26565
  let deferred0_0;
26082
26566
  let deferred0_1;
26083
26567
  try {
@@ -26120,17 +26604,17 @@ function __wbg_get_imports(memory) {
26120
26604
  return ret;
26121
26605
  },
26122
26606
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
26123
- // Cast intrinsic for `Closure(Closure { dtor_idx: 126, function: Function { arguments: [Externref], shim_idx: 127, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26607
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 129, function: Function { arguments: [Externref], shim_idx: 130, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26124
26608
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_8294944b14acb139___closure__destroy___dyn_core_91ed24bc3d45dfd0___ops__function__FnMut__wasm_bindgen_8294944b14acb139___JsValue____Output_______, wasm_bindgen_8294944b14acb139___convert__closures_____invoke___wasm_bindgen_8294944b14acb139___JsValue_____);
26125
26609
  return ret;
26126
26610
  },
26127
26611
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
26128
- // Cast intrinsic for `Closure(Closure { dtor_idx: 126, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 127, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26612
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 129, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 130, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26129
26613
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_8294944b14acb139___closure__destroy___dyn_core_91ed24bc3d45dfd0___ops__function__FnMut__wasm_bindgen_8294944b14acb139___JsValue____Output_______, wasm_bindgen_8294944b14acb139___convert__closures_____invoke___wasm_bindgen_8294944b14acb139___JsValue_____);
26130
26614
  return ret;
26131
26615
  },
26132
26616
  __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`.
26617
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 129, function: Function { arguments: [], shim_idx: 453, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
26134
26618
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_8294944b14acb139___closure__destroy___dyn_core_91ed24bc3d45dfd0___ops__function__FnMut__wasm_bindgen_8294944b14acb139___JsValue____Output_______, wasm_bindgen_8294944b14acb139___convert__closures_____invoke______);
26135
26619
  return ret;
26136
26620
  },
@@ -26140,86 +26624,91 @@ function __wbg_get_imports(memory) {
26140
26624
  return ret;
26141
26625
  },
26142
26626
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
26627
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
26628
+ const ret = getArrayU8FromWasm0(arg0, arg1);
26629
+ return ret;
26630
+ },
26631
+ __wbindgen_cast_0000000000000006: function(arg0, arg1) {
26143
26632
  // Cast intrinsic for `Ref(String) -> Externref`.
26144
26633
  const ret = getStringFromWasm0(arg0, arg1);
26145
26634
  return ret;
26146
26635
  },
26147
- __wbindgen_cast_0000000000000006: function(arg0) {
26636
+ __wbindgen_cast_0000000000000007: function(arg0) {
26148
26637
  // Cast intrinsic for `U64 -> Externref`.
26149
26638
  const ret = BigInt.asUintN(64, arg0);
26150
26639
  return ret;
26151
26640
  },
26152
- __wbindgen_cast_0000000000000007: function(arg0, arg1) {
26641
+ __wbindgen_cast_0000000000000008: function(arg0, arg1) {
26153
26642
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26154
26643
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26155
26644
  // Cast intrinsic for `Vector(NamedExternref("AccountHeader")) -> Externref`.
26156
26645
  const ret = v0;
26157
26646
  return ret;
26158
26647
  },
26159
- __wbindgen_cast_0000000000000008: function(arg0, arg1) {
26648
+ __wbindgen_cast_0000000000000009: function(arg0, arg1) {
26160
26649
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26161
26650
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26162
26651
  // Cast intrinsic for `Vector(NamedExternref("Address")) -> Externref`.
26163
26652
  const ret = v0;
26164
26653
  return ret;
26165
26654
  },
26166
- __wbindgen_cast_0000000000000009: function(arg0, arg1) {
26655
+ __wbindgen_cast_000000000000000a: function(arg0, arg1) {
26167
26656
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26168
26657
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26169
26658
  // Cast intrinsic for `Vector(NamedExternref("ConsumableNoteRecord")) -> Externref`.
26170
26659
  const ret = v0;
26171
26660
  return ret;
26172
26661
  },
26173
- __wbindgen_cast_000000000000000a: function(arg0, arg1) {
26662
+ __wbindgen_cast_000000000000000b: function(arg0, arg1) {
26174
26663
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26175
26664
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26176
26665
  // Cast intrinsic for `Vector(NamedExternref("FetchedNote")) -> Externref`.
26177
26666
  const ret = v0;
26178
26667
  return ret;
26179
26668
  },
26180
- __wbindgen_cast_000000000000000b: function(arg0, arg1) {
26669
+ __wbindgen_cast_000000000000000c: function(arg0, arg1) {
26181
26670
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26182
26671
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26183
26672
  // Cast intrinsic for `Vector(NamedExternref("InputNoteRecord")) -> Externref`.
26184
26673
  const ret = v0;
26185
26674
  return ret;
26186
26675
  },
26187
- __wbindgen_cast_000000000000000c: function(arg0, arg1) {
26676
+ __wbindgen_cast_000000000000000d: function(arg0, arg1) {
26188
26677
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26189
26678
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26190
26679
  // Cast intrinsic for `Vector(NamedExternref("OutputNoteRecord")) -> Externref`.
26191
26680
  const ret = v0;
26192
26681
  return ret;
26193
26682
  },
26194
- __wbindgen_cast_000000000000000d: function(arg0, arg1) {
26683
+ __wbindgen_cast_000000000000000e: function(arg0, arg1) {
26195
26684
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26196
26685
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26197
26686
  // Cast intrinsic for `Vector(NamedExternref("PswapLineageRecord")) -> Externref`.
26198
26687
  const ret = v0;
26199
26688
  return ret;
26200
26689
  },
26201
- __wbindgen_cast_000000000000000e: function(arg0, arg1) {
26690
+ __wbindgen_cast_000000000000000f: function(arg0, arg1) {
26202
26691
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26203
26692
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26204
26693
  // Cast intrinsic for `Vector(NamedExternref("TransactionRecord")) -> Externref`.
26205
26694
  const ret = v0;
26206
26695
  return ret;
26207
26696
  },
26208
- __wbindgen_cast_000000000000000f: function(arg0, arg1) {
26697
+ __wbindgen_cast_0000000000000010: function(arg0, arg1) {
26209
26698
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26210
26699
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26211
26700
  // Cast intrinsic for `Vector(NamedExternref("Word")) -> Externref`.
26212
26701
  const ret = v0;
26213
26702
  return ret;
26214
26703
  },
26215
- __wbindgen_cast_0000000000000010: function(arg0, arg1) {
26704
+ __wbindgen_cast_0000000000000011: function(arg0, arg1) {
26216
26705
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
26217
26706
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
26218
26707
  // Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
26219
26708
  const ret = v0;
26220
26709
  return ret;
26221
26710
  },
26222
- __wbindgen_cast_0000000000000011: function(arg0, arg1) {
26711
+ __wbindgen_cast_0000000000000012: function(arg0, arg1) {
26223
26712
  var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
26224
26713
  wasm.__wbindgen_free(arg0, arg1 * 1, 1);
26225
26714
  // Cast intrinsic for `Vector(U8) -> Externref`.
@@ -26385,6 +26874,9 @@ const ConsumableNoteRecordFinalization = (typeof FinalizationRegistry === 'undef
26385
26874
  const EndpointFinalization = (typeof FinalizationRegistry === 'undefined')
26386
26875
  ? { register: () => {}, unregister: () => {} }
26387
26876
  : new FinalizationRegistry(ptr => wasm.__wbg_endpoint_free(ptr >>> 0, 1));
26877
+ const EthAddressFinalization = (typeof FinalizationRegistry === 'undefined')
26878
+ ? { register: () => {}, unregister: () => {} }
26879
+ : new FinalizationRegistry(ptr => wasm.__wbg_ethaddress_free(ptr >>> 0, 1));
26388
26880
  const ExecutedTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
26389
26881
  ? { register: () => {}, unregister: () => {} }
26390
26882
  : new FinalizationRegistry(ptr => wasm.__wbg_executedtransaction_free(ptr >>> 0, 1));
@@ -26463,6 +26955,9 @@ const LibraryFinalization = (typeof FinalizationRegistry === 'undefined')
26463
26955
  const MerklePathFinalization = (typeof FinalizationRegistry === 'undefined')
26464
26956
  ? { register: () => {}, unregister: () => {} }
26465
26957
  : new FinalizationRegistry(ptr => wasm.__wbg_merklepath_free(ptr >>> 0, 1));
26958
+ const NetworkAccountTargetFinalization = (typeof FinalizationRegistry === 'undefined')
26959
+ ? { register: () => {}, unregister: () => {} }
26960
+ : new FinalizationRegistry(ptr => wasm.__wbg_networkaccounttarget_free(ptr >>> 0, 1));
26466
26961
  const NetworkIdFinalization = (typeof FinalizationRegistry === 'undefined')
26467
26962
  ? { register: () => {}, unregister: () => {} }
26468
26963
  : new FinalizationRegistry(ptr => wasm.__wbg_networkid_free(ptr >>> 0, 1));
@@ -27124,6 +27619,7 @@ var index = /*#__PURE__*/Object.freeze({
27124
27619
  CommittedNote: CommittedNote,
27125
27620
  ConsumableNoteRecord: ConsumableNoteRecord,
27126
27621
  Endpoint: Endpoint,
27622
+ EthAddress: EthAddress,
27127
27623
  ExecutedTransaction: ExecutedTransaction,
27128
27624
  Felt: Felt,
27129
27625
  FeltArray: FeltArray,
@@ -27151,6 +27647,7 @@ var index = /*#__PURE__*/Object.freeze({
27151
27647
  JsVaultAsset: JsVaultAsset,
27152
27648
  Library: Library,
27153
27649
  MerklePath: MerklePath,
27650
+ NetworkAccountTarget: NetworkAccountTarget,
27154
27651
  NetworkId: NetworkId,
27155
27652
  NetworkNoteStatusInfo: NetworkNoteStatusInfo,
27156
27653
  NetworkType: NetworkType,
@@ -27255,7 +27752,7 @@ var index = /*#__PURE__*/Object.freeze({
27255
27752
 
27256
27753
  const module$1 = new URL("assets/miden_client_web.wasm", self.location.href);
27257
27754
 
27258
- var CargoD2qNRrNR = /*#__PURE__*/Object.freeze({
27755
+ var CargoC001gt8g = /*#__PURE__*/Object.freeze({
27259
27756
  __proto__: null,
27260
27757
  Account: Account,
27261
27758
  AccountArray: AccountArray,
@@ -27292,6 +27789,7 @@ var CargoD2qNRrNR = /*#__PURE__*/Object.freeze({
27292
27789
  CommittedNote: CommittedNote,
27293
27790
  ConsumableNoteRecord: ConsumableNoteRecord,
27294
27791
  Endpoint: Endpoint,
27792
+ EthAddress: EthAddress,
27295
27793
  ExecutedTransaction: ExecutedTransaction,
27296
27794
  Felt: Felt,
27297
27795
  FeltArray: FeltArray,
@@ -27319,6 +27817,7 @@ var CargoD2qNRrNR = /*#__PURE__*/Object.freeze({
27319
27817
  JsVaultAsset: JsVaultAsset,
27320
27818
  Library: Library,
27321
27819
  MerklePath: MerklePath,
27820
+ NetworkAccountTarget: NetworkAccountTarget,
27322
27821
  NetworkId: NetworkId,
27323
27822
  NetworkNoteStatusInfo: NetworkNoteStatusInfo,
27324
27823
  NetworkType: NetworkType,