@miden-sdk/miden-sdk 0.13.2 → 0.13.3

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.
@@ -8684,7 +8684,7 @@ async function upsertAccountCode(dbId, codeRoot, code) {
8684
8684
  logWebStoreError(error, `Error inserting code with root: ${codeRoot}`);
8685
8685
  }
8686
8686
  }
8687
- async function upsertAccountStorage(dbId, storageSlots) {
8687
+ async function upsertAccountStorage(dbId, storageSlots, tx) {
8688
8688
  try {
8689
8689
  const db = getDatabase(dbId);
8690
8690
  let processedSlots = storageSlots.map((slot) => {
@@ -8695,13 +8695,13 @@ async function upsertAccountStorage(dbId, storageSlots) {
8695
8695
  slotType: slot.slotType,
8696
8696
  };
8697
8697
  });
8698
- await db.accountStorages.bulkPut(processedSlots);
8698
+ await (tx || db).accountStorages.bulkPut(processedSlots);
8699
8699
  }
8700
8700
  catch (error) {
8701
8701
  logWebStoreError(error, `Error inserting storage slots`);
8702
8702
  }
8703
8703
  }
8704
- async function upsertStorageMapEntries(dbId, entries) {
8704
+ async function upsertStorageMapEntries(dbId, entries, tx) {
8705
8705
  try {
8706
8706
  const db = getDatabase(dbId);
8707
8707
  let processedEntries = entries.map((entry) => {
@@ -8711,13 +8711,13 @@ async function upsertStorageMapEntries(dbId, entries) {
8711
8711
  value: entry.value,
8712
8712
  };
8713
8713
  });
8714
- await db.storageMapEntries.bulkPut(processedEntries);
8714
+ await (tx || db).storageMapEntries.bulkPut(processedEntries);
8715
8715
  }
8716
8716
  catch (error) {
8717
8717
  logWebStoreError(error, `Error inserting storage map entries`);
8718
8718
  }
8719
8719
  }
8720
- async function upsertVaultAssets(dbId, assets) {
8720
+ async function upsertVaultAssets(dbId, assets, tx) {
8721
8721
  try {
8722
8722
  const db = getDatabase(dbId);
8723
8723
  let processedAssets = assets.map((asset) => {
@@ -8728,13 +8728,13 @@ async function upsertVaultAssets(dbId, assets) {
8728
8728
  asset: asset.asset,
8729
8729
  };
8730
8730
  });
8731
- await db.accountAssets.bulkPut(processedAssets);
8731
+ await (tx || db).accountAssets.bulkPut(processedAssets);
8732
8732
  }
8733
8733
  catch (error) {
8734
8734
  logWebStoreError(error, `Error inserting assets`);
8735
8735
  }
8736
8736
  }
8737
- async function upsertAccountRecord(dbId, accountId, codeRoot, storageRoot, vaultRoot, nonce, committed, commitment, accountSeed) {
8737
+ async function upsertAccountRecord(dbId, accountId, codeRoot, storageRoot, vaultRoot, nonce, committed, commitment, accountSeed, tx) {
8738
8738
  try {
8739
8739
  const db = getDatabase(dbId);
8740
8740
  const data = {
@@ -8748,8 +8748,8 @@ async function upsertAccountRecord(dbId, accountId, codeRoot, storageRoot, vault
8748
8748
  accountCommitment: commitment,
8749
8749
  locked: false,
8750
8750
  };
8751
- await db.accounts.put(data);
8752
- await db.trackedAccounts.put({ id: accountId });
8751
+ await (tx || db).accounts.put(data);
8752
+ await (tx || db).trackedAccounts.put({ id: accountId });
8753
8753
  }
8754
8754
  catch (error) {
8755
8755
  logWebStoreError(error, `Error inserting account: ${accountId}`);
@@ -9253,9 +9253,9 @@ async function getNoteScript(dbId, scriptRoot) {
9253
9253
  logWebStoreError(err, "Failed to get note script from root");
9254
9254
  }
9255
9255
  }
9256
- async function upsertInputNote(dbId, noteId, assets, serialNumber, inputs, scriptRoot, serializedNoteScript, nullifier, serializedCreatedAt, stateDiscriminant, state) {
9256
+ async function upsertInputNote(dbId, noteId, assets, serialNumber, inputs, scriptRoot, serializedNoteScript, nullifier, serializedCreatedAt, stateDiscriminant, state, tx) {
9257
9257
  const db = getDatabase(dbId);
9258
- return db.dexie.transaction("rw", db.inputNotes, db.notesScripts, async (tx) => {
9258
+ const doWork = async (t) => {
9259
9259
  try {
9260
9260
  const data = {
9261
9261
  noteId,
@@ -9268,21 +9268,24 @@ async function upsertInputNote(dbId, noteId, assets, serialNumber, inputs, scrip
9268
9268
  stateDiscriminant,
9269
9269
  serializedCreatedAt,
9270
9270
  };
9271
- await tx.inputNotes.put(data);
9271
+ await t.inputNotes.put(data);
9272
9272
  const noteScriptData = {
9273
9273
  scriptRoot,
9274
9274
  serializedNoteScript,
9275
9275
  };
9276
- await tx.notesScripts.put(noteScriptData);
9276
+ await t.notesScripts.put(noteScriptData);
9277
9277
  }
9278
9278
  catch (error) {
9279
9279
  logWebStoreError(error, `Error inserting note: ${noteId}`);
9280
9280
  }
9281
- });
9281
+ };
9282
+ if (tx)
9283
+ return doWork(tx);
9284
+ return db.dexie.transaction("rw", db.inputNotes, db.notesScripts, doWork);
9282
9285
  }
9283
- async function upsertOutputNote(dbId, noteId, assets, recipientDigest, metadata, nullifier, expectedHeight, stateDiscriminant, state) {
9286
+ async function upsertOutputNote(dbId, noteId, assets, recipientDigest, metadata, nullifier, expectedHeight, stateDiscriminant, state, tx) {
9284
9287
  const db = getDatabase(dbId);
9285
- return db.dexie.transaction("rw", db.outputNotes, db.notesScripts, async (tx) => {
9288
+ const doWork = async (t) => {
9286
9289
  try {
9287
9290
  const data = {
9288
9291
  noteId,
@@ -9294,12 +9297,15 @@ async function upsertOutputNote(dbId, noteId, assets, recipientDigest, metadata,
9294
9297
  stateDiscriminant,
9295
9298
  state,
9296
9299
  };
9297
- await tx.outputNotes.put(data);
9300
+ await t.outputNotes.put(data);
9298
9301
  }
9299
9302
  catch (error) {
9300
9303
  logWebStoreError(error, `Error inserting note: ${noteId}`);
9301
9304
  }
9302
- });
9305
+ };
9306
+ if (tx)
9307
+ return doWork(tx);
9308
+ return db.dexie.transaction("rw", db.outputNotes, db.notesScripts, doWork);
9303
9309
  }
9304
9310
  async function processInputNotes(dbId, notes) {
9305
9311
  const db = getDatabase(dbId);
@@ -9497,7 +9503,7 @@ async function getTransactions(dbId, filter) {
9497
9503
  logWebStoreError(err, "Failed to get transactions");
9498
9504
  }
9499
9505
  }
9500
- async function insertTransactionScript(dbId, scriptRoot, txScript) {
9506
+ async function insertTransactionScript(dbId, scriptRoot, txScript, tx) {
9501
9507
  try {
9502
9508
  const db = getDatabase(dbId);
9503
9509
  const scriptRootArray = new Uint8Array(scriptRoot);
@@ -9506,13 +9512,13 @@ async function insertTransactionScript(dbId, scriptRoot, txScript) {
9506
9512
  scriptRoot: scriptRootBase64,
9507
9513
  txScript: mapOption(txScript, (txScript) => new Uint8Array(txScript)),
9508
9514
  };
9509
- await db.transactionScripts.put(data);
9515
+ await (tx || db).transactionScripts.put(data);
9510
9516
  }
9511
9517
  catch (error) {
9512
9518
  logWebStoreError(error, "Failed to insert transaction script");
9513
9519
  }
9514
9520
  }
9515
- async function upsertTransactionRecord(dbId, transactionId, details, blockNum, statusVariant, status, scriptRoot) {
9521
+ async function upsertTransactionRecord(dbId, transactionId, details, blockNum, statusVariant, status, scriptRoot, tx) {
9516
9522
  try {
9517
9523
  const db = getDatabase(dbId);
9518
9524
  const data = {
@@ -9523,7 +9529,7 @@ async function upsertTransactionRecord(dbId, transactionId, details, blockNum, s
9523
9529
  statusVariant,
9524
9530
  status,
9525
9531
  };
9526
- await db.transactions.put(data);
9532
+ await (tx || db).transactions.put(data);
9527
9533
  }
9528
9534
  catch (err) {
9529
9535
  logWebStoreError(err, "Failed to insert proven transaction data");
@@ -9602,29 +9608,6 @@ async function applyStateSync(dbId, stateUpdate) {
9602
9608
  const { blockNum, flattenedNewBlockHeaders, flattenedPartialBlockChainPeaks, newBlockNums, blockHasRelevantNotes, serializedNodeIds, serializedNodes, committedNoteIds, serializedInputNotes, serializedOutputNotes, accountUpdates, transactionUpdates, } = stateUpdate;
9603
9609
  const newBlockHeaders = reconstructFlattenedVec(flattenedNewBlockHeaders);
9604
9610
  const partialBlockchainPeaks = reconstructFlattenedVec(flattenedPartialBlockChainPeaks);
9605
- let inputNotesWriteOp = Promise.all(serializedInputNotes.map((note) => {
9606
- return upsertInputNote(dbId, note.noteId, note.noteAssets, note.serialNumber, note.inputs, note.noteScriptRoot, note.noteScript, note.nullifier, note.createdAt, note.stateDiscriminant, note.state);
9607
- }));
9608
- let outputNotesWriteOp = Promise.all(serializedOutputNotes.map((note) => {
9609
- return upsertOutputNote(dbId, note.noteId, note.noteAssets, note.recipientDigest, note.metadata, note.nullifier, note.expectedHeight, note.stateDiscriminant, note.state);
9610
- }));
9611
- let transactionWriteOp = Promise.all(transactionUpdates.map((transactionRecord) => {
9612
- let promises = [
9613
- upsertTransactionRecord(dbId, transactionRecord.id, transactionRecord.details, transactionRecord.blockNum, transactionRecord.statusVariant, transactionRecord.status, transactionRecord.scriptRoot),
9614
- ];
9615
- if (transactionRecord.scriptRoot && transactionRecord.txScript) {
9616
- promises.push(insertTransactionScript(dbId, transactionRecord.scriptRoot, transactionRecord.txScript));
9617
- }
9618
- return Promise.all(promises);
9619
- }));
9620
- let accountUpdatesWriteOp = Promise.all(accountUpdates.flatMap((accountUpdate) => {
9621
- return [
9622
- upsertAccountStorage(dbId, accountUpdate.storageSlots),
9623
- upsertStorageMapEntries(dbId, accountUpdate.storageMapEntries),
9624
- upsertVaultAssets(dbId, accountUpdate.assets),
9625
- upsertAccountRecord(dbId, accountUpdate.accountId, accountUpdate.codeRoot, accountUpdate.storageRoot, accountUpdate.assetVaultRoot, accountUpdate.nonce, accountUpdate.committed, accountUpdate.accountCommitment, accountUpdate.accountSeed),
9626
- ];
9627
- }));
9628
9611
  const tablesToAccess = [
9629
9612
  db.stateSync,
9630
9613
  db.inputNotes,
@@ -9633,28 +9616,61 @@ async function applyStateSync(dbId, stateUpdate) {
9633
9616
  db.blockHeaders,
9634
9617
  db.partialBlockchainNodes,
9635
9618
  db.tags,
9619
+ db.notesScripts,
9620
+ db.accountStorages,
9621
+ db.storageMapEntries,
9622
+ db.accountAssets,
9623
+ db.accounts,
9624
+ db.trackedAccounts,
9625
+ db.transactionScripts,
9636
9626
  ];
9637
- return await db.dexie.transaction("rw", tablesToAccess, async (tx) => {
9627
+ return await db.dexie.transaction("rw", tablesToAccess, async () => {
9628
+ // Within a Dexie transaction callback, db.tableName operations are
9629
+ // automatically routed through the active transaction. We do NOT pass
9630
+ // the tx parameter because its table accessors are unreliable at runtime.
9631
+ let inputNotesWriteOp = Promise.all(serializedInputNotes.map((note) => {
9632
+ return upsertInputNote(dbId, note.noteId, note.noteAssets, note.serialNumber, note.inputs, note.noteScriptRoot, note.noteScript, note.nullifier, note.createdAt, note.stateDiscriminant, note.state);
9633
+ }));
9634
+ let outputNotesWriteOp = Promise.all(serializedOutputNotes.map((note) => {
9635
+ return upsertOutputNote(dbId, note.noteId, note.noteAssets, note.recipientDigest, note.metadata, note.nullifier, note.expectedHeight, note.stateDiscriminant, note.state);
9636
+ }));
9637
+ let transactionWriteOp = Promise.all(transactionUpdates.map((transactionRecord) => {
9638
+ let promises = [
9639
+ upsertTransactionRecord(dbId, transactionRecord.id, transactionRecord.details, transactionRecord.blockNum, transactionRecord.statusVariant, transactionRecord.status, transactionRecord.scriptRoot),
9640
+ ];
9641
+ if (transactionRecord.scriptRoot && transactionRecord.txScript) {
9642
+ promises.push(insertTransactionScript(dbId, transactionRecord.scriptRoot, transactionRecord.txScript));
9643
+ }
9644
+ return Promise.all(promises);
9645
+ }));
9646
+ let accountUpdatesWriteOp = Promise.all(accountUpdates.flatMap((accountUpdate) => {
9647
+ return [
9648
+ upsertAccountStorage(dbId, accountUpdate.storageSlots),
9649
+ upsertStorageMapEntries(dbId, accountUpdate.storageMapEntries),
9650
+ upsertVaultAssets(dbId, accountUpdate.assets),
9651
+ upsertAccountRecord(dbId, accountUpdate.accountId, accountUpdate.codeRoot, accountUpdate.storageRoot, accountUpdate.assetVaultRoot, accountUpdate.nonce, accountUpdate.committed, accountUpdate.accountCommitment, accountUpdate.accountSeed),
9652
+ ];
9653
+ }));
9638
9654
  await Promise.all([
9639
9655
  inputNotesWriteOp,
9640
9656
  outputNotesWriteOp,
9641
9657
  transactionWriteOp,
9642
9658
  accountUpdatesWriteOp,
9643
- updateSyncHeight(tx, blockNum),
9644
- updatePartialBlockchainNodes(tx, serializedNodeIds, serializedNodes),
9645
- updateCommittedNoteTags(tx, committedNoteIds),
9659
+ updateSyncHeight(db, blockNum),
9660
+ updatePartialBlockchainNodes(db, serializedNodeIds, serializedNodes),
9661
+ updateCommittedNoteTags(db, committedNoteIds),
9646
9662
  Promise.all(newBlockHeaders.map((newBlockHeader, i) => {
9647
- return updateBlockHeader(tx, newBlockNums[i], newBlockHeader, partialBlockchainPeaks[i], blockHasRelevantNotes[i] == 1);
9663
+ return updateBlockHeader(db, newBlockNums[i], newBlockHeader, partialBlockchainPeaks[i], blockHasRelevantNotes[i] == 1);
9648
9664
  })),
9649
9665
  ]);
9650
9666
  });
9651
9667
  }
9652
- async function updateSyncHeight(tx, blockNum) {
9668
+ async function updateSyncHeight(db, blockNum) {
9653
9669
  try {
9654
9670
  // Only update if moving forward to prevent race conditions
9655
- const current = await tx.stateSync.get(1);
9671
+ const current = await db.stateSync.get(1);
9656
9672
  if (!current || current.blockNum < blockNum) {
9657
- await tx.stateSync.update(1, {
9673
+ await db.stateSync.update(1, {
9658
9674
  blockNum: blockNum,
9659
9675
  });
9660
9676
  }
@@ -9663,7 +9679,7 @@ async function updateSyncHeight(tx, blockNum) {
9663
9679
  logWebStoreError(error, "Failed to update sync height");
9664
9680
  }
9665
9681
  }
9666
- async function updateBlockHeader(tx, blockNum, blockHeader, partialBlockchainPeaks, hasClientNotes) {
9682
+ async function updateBlockHeader(db, blockNum, blockHeader, partialBlockchainPeaks, hasClientNotes) {
9667
9683
  try {
9668
9684
  const data = {
9669
9685
  blockNum: blockNum,
@@ -9671,16 +9687,16 @@ async function updateBlockHeader(tx, blockNum, blockHeader, partialBlockchainPea
9671
9687
  partialBlockchainPeaks,
9672
9688
  hasClientNotes: hasClientNotes.toString(),
9673
9689
  };
9674
- const existingBlockHeader = await tx.blockHeaders.get(blockNum);
9690
+ const existingBlockHeader = await db.blockHeaders.get(blockNum);
9675
9691
  if (!existingBlockHeader) {
9676
- await tx.blockHeaders.add(data);
9692
+ await db.blockHeaders.add(data);
9677
9693
  }
9678
9694
  }
9679
9695
  catch (err) {
9680
9696
  logWebStoreError(err, "Failed to insert block header");
9681
9697
  }
9682
9698
  }
9683
- async function updatePartialBlockchainNodes(tx, nodeIndexes, nodes) {
9699
+ async function updatePartialBlockchainNodes(db, nodeIndexes, nodes) {
9684
9700
  try {
9685
9701
  if (nodeIndexes.length !== nodes.length) {
9686
9702
  throw new Error("nodeIndexes and nodes arrays must be of the same length");
@@ -9693,20 +9709,17 @@ async function updatePartialBlockchainNodes(tx, nodeIndexes, nodes) {
9693
9709
  node: node,
9694
9710
  }));
9695
9711
  // Use bulkPut to add/overwrite the entries
9696
- await tx.partialBlockchainNodes.bulkPut(data);
9712
+ await db.partialBlockchainNodes.bulkPut(data);
9697
9713
  }
9698
9714
  catch (err) {
9699
9715
  logWebStoreError(err, "Failed to update partial blockchain nodes");
9700
9716
  }
9701
9717
  }
9702
- async function updateCommittedNoteTags(tx, inputNoteIds) {
9718
+ async function updateCommittedNoteTags(db, inputNoteIds) {
9703
9719
  try {
9704
9720
  for (let i = 0; i < inputNoteIds.length; i++) {
9705
9721
  const noteId = inputNoteIds[i];
9706
- await tx.tags
9707
- .where("source_note_id")
9708
- .equals(noteId)
9709
- .delete();
9722
+ await db.tags.where("source_note_id").equals(noteId).delete();
9710
9723
  }
9711
9724
  }
9712
9725
  catch (error) {
@@ -10055,16 +10068,16 @@ function passArray32ToWasm0(arg, malloc) {
10055
10068
  WASM_VECTOR_LEN = arg.length;
10056
10069
  return ptr;
10057
10070
  }
10058
- function wasm_bindgen__convert__closures_____invoke__h7f2f16b42e050c5a(arg0, arg1) {
10059
- wasm.wasm_bindgen__convert__closures_____invoke__h7f2f16b42e050c5a(arg0, arg1);
10071
+ function wasm_bindgen__convert__closures_____invoke__heeb0fc86dc7920bf(arg0, arg1) {
10072
+ wasm.wasm_bindgen__convert__closures_____invoke__heeb0fc86dc7920bf(arg0, arg1);
10060
10073
  }
10061
10074
 
10062
- function wasm_bindgen__convert__closures_____invoke__h1c9b4cf1925e32c7(arg0, arg1, arg2) {
10063
- wasm.wasm_bindgen__convert__closures_____invoke__h1c9b4cf1925e32c7(arg0, arg1, arg2);
10075
+ function wasm_bindgen__convert__closures_____invoke__he82daa046546ece0(arg0, arg1, arg2) {
10076
+ wasm.wasm_bindgen__convert__closures_____invoke__he82daa046546ece0(arg0, arg1, arg2);
10064
10077
  }
10065
10078
 
10066
- function wasm_bindgen__convert__closures_____invoke__hc1b2d8f71c961ea5(arg0, arg1, arg2, arg3) {
10067
- wasm.wasm_bindgen__convert__closures_____invoke__hc1b2d8f71c961ea5(arg0, arg1, arg2, arg3);
10079
+ function wasm_bindgen__convert__closures_____invoke__hc1a779b8d126d408(arg0, arg1, arg2, arg3) {
10080
+ wasm.wasm_bindgen__convert__closures_____invoke__hc1a779b8d126d408(arg0, arg1, arg2, arg3);
10068
10081
  }
10069
10082
 
10070
10083
  /**
@@ -22305,7 +22318,7 @@ function __wbg_get_imports() {
22305
22318
  const ret = AccountId.__unwrap(arg0);
22306
22319
  return ret;
22307
22320
  };
22308
- imports.wbg.__wbg_addNoteTag_36a9b3a230080f29 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
22321
+ imports.wbg.__wbg_addNoteTag_a8745b66ffeb82d7 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
22309
22322
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
22310
22323
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
22311
22324
  let v1;
@@ -22324,7 +22337,7 @@ function __wbg_get_imports() {
22324
22337
  imports.wbg.__wbg_append_b577eb3a177bc0fa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
22325
22338
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
22326
22339
  }, arguments) };
22327
- imports.wbg.__wbg_applyStateSync_5911ed6b53c144fe = function(arg0, arg1, arg2) {
22340
+ imports.wbg.__wbg_applyStateSync_3f016cc4f8ec24de = function(arg0, arg1, arg2) {
22328
22341
  const ret = applyStateSync(getStringFromWasm0(arg0, arg1), JsStateSyncUpdate.__wrap(arg2));
22329
22342
  return ret;
22330
22343
  };
@@ -22412,7 +22425,7 @@ function __wbg_get_imports() {
22412
22425
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22413
22426
  }
22414
22427
  };
22415
- imports.wbg.__wbg_exportStore_09aa10c2adfc1bde = function(arg0, arg1) {
22428
+ imports.wbg.__wbg_exportStore_066bdf561b5f9e22 = function(arg0, arg1) {
22416
22429
  const ret = exportStore(getStringFromWasm0(arg0, arg1));
22417
22430
  return ret;
22418
22431
  };
@@ -22440,7 +22453,7 @@ function __wbg_get_imports() {
22440
22453
  const ret = FetchedNote.__wrap(arg0);
22441
22454
  return ret;
22442
22455
  };
22443
- imports.wbg.__wbg_forceImportStore_ecb1618e350db737 = function(arg0, arg1, arg2) {
22456
+ imports.wbg.__wbg_forceImportStore_28e6646b7a9539c7 = function(arg0, arg1, arg2) {
22444
22457
  const ret = forceImportStore(getStringFromWasm0(arg0, arg1), arg2);
22445
22458
  return ret;
22446
22459
  };
@@ -22460,7 +22473,7 @@ function __wbg_get_imports() {
22460
22473
  const ret = FungibleAssetDeltaItem.__wrap(arg0);
22461
22474
  return ret;
22462
22475
  };
22463
- imports.wbg.__wbg_getAccountAddresses_acf5e4a7b88d492c = function(arg0, arg1, arg2, arg3) {
22476
+ imports.wbg.__wbg_getAccountAddresses_ebb68e2ac39c194a = function(arg0, arg1, arg2, arg3) {
22464
22477
  let deferred0_0;
22465
22478
  let deferred0_1;
22466
22479
  try {
@@ -22472,7 +22485,7 @@ function __wbg_get_imports() {
22472
22485
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22473
22486
  }
22474
22487
  };
22475
- imports.wbg.__wbg_getAccountAuthByPubKeyCommitment_72419e162909d295 = function(arg0, arg1, arg2, arg3) {
22488
+ imports.wbg.__wbg_getAccountAuthByPubKeyCommitment_193227793e8e204a = function(arg0, arg1, arg2, arg3) {
22476
22489
  let deferred0_0;
22477
22490
  let deferred0_1;
22478
22491
  try {
@@ -22484,7 +22497,7 @@ function __wbg_get_imports() {
22484
22497
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22485
22498
  }
22486
22499
  };
22487
- imports.wbg.__wbg_getAccountCode_713fbab091170aff = function(arg0, arg1, arg2, arg3) {
22500
+ imports.wbg.__wbg_getAccountCode_bb412d40194090fa = function(arg0, arg1, arg2, arg3) {
22488
22501
  let deferred0_0;
22489
22502
  let deferred0_1;
22490
22503
  try {
@@ -22496,7 +22509,7 @@ function __wbg_get_imports() {
22496
22509
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22497
22510
  }
22498
22511
  };
22499
- imports.wbg.__wbg_getAccountHeaderByCommitment_619349808c32ba9b = function(arg0, arg1, arg2, arg3) {
22512
+ imports.wbg.__wbg_getAccountHeaderByCommitment_31435d4b07e464ea = function(arg0, arg1, arg2, arg3) {
22500
22513
  let deferred0_0;
22501
22514
  let deferred0_1;
22502
22515
  try {
@@ -22508,7 +22521,7 @@ function __wbg_get_imports() {
22508
22521
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22509
22522
  }
22510
22523
  };
22511
- imports.wbg.__wbg_getAccountHeader_cd401bd145942cd8 = function(arg0, arg1, arg2, arg3) {
22524
+ imports.wbg.__wbg_getAccountHeader_90015b56a15b80c8 = function(arg0, arg1, arg2, arg3) {
22512
22525
  let deferred0_0;
22513
22526
  let deferred0_1;
22514
22527
  try {
@@ -22520,17 +22533,17 @@ function __wbg_get_imports() {
22520
22533
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22521
22534
  }
22522
22535
  };
22523
- imports.wbg.__wbg_getAccountIds_30474b04e16d81e5 = function(arg0, arg1) {
22536
+ imports.wbg.__wbg_getAccountIds_5b2c3aa3f1906eec = function(arg0, arg1) {
22524
22537
  const ret = getAccountIds(getStringFromWasm0(arg0, arg1));
22525
22538
  return ret;
22526
22539
  };
22527
- imports.wbg.__wbg_getAccountStorageMaps_d495953590a7b337 = function(arg0, arg1, arg2, arg3) {
22540
+ imports.wbg.__wbg_getAccountStorageMaps_6bbe4736e79934d3 = function(arg0, arg1, arg2, arg3) {
22528
22541
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
22529
22542
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
22530
22543
  const ret = getAccountStorageMaps(getStringFromWasm0(arg0, arg1), v0);
22531
22544
  return ret;
22532
22545
  };
22533
- imports.wbg.__wbg_getAccountStorage_887165c39f2591f4 = function(arg0, arg1, arg2, arg3) {
22546
+ imports.wbg.__wbg_getAccountStorage_6cb8fece94f178b3 = function(arg0, arg1, arg2, arg3) {
22534
22547
  let deferred0_0;
22535
22548
  let deferred0_1;
22536
22549
  try {
@@ -22542,7 +22555,7 @@ function __wbg_get_imports() {
22542
22555
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22543
22556
  }
22544
22557
  };
22545
- imports.wbg.__wbg_getAccountVaultAssets_25319f8a92b83bc0 = function(arg0, arg1, arg2, arg3) {
22558
+ imports.wbg.__wbg_getAccountVaultAssets_3253f55590492f0b = function(arg0, arg1, arg2, arg3) {
22546
22559
  let deferred0_0;
22547
22560
  let deferred0_1;
22548
22561
  try {
@@ -22554,41 +22567,41 @@ function __wbg_get_imports() {
22554
22567
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22555
22568
  }
22556
22569
  };
22557
- imports.wbg.__wbg_getAllAccountHeaders_a7e2932002d7749a = function(arg0, arg1) {
22570
+ imports.wbg.__wbg_getAllAccountHeaders_93679dce24547830 = function(arg0, arg1) {
22558
22571
  const ret = getAllAccountHeaders(getStringFromWasm0(arg0, arg1));
22559
22572
  return ret;
22560
22573
  };
22561
- imports.wbg.__wbg_getBlockHeaders_8da2ef7fe9c717ee = function(arg0, arg1, arg2, arg3) {
22574
+ imports.wbg.__wbg_getBlockHeaders_3fbd9cdf811cbe25 = function(arg0, arg1, arg2, arg3) {
22562
22575
  var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
22563
22576
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
22564
22577
  const ret = getBlockHeaders(getStringFromWasm0(arg0, arg1), v0);
22565
22578
  return ret;
22566
22579
  };
22567
- imports.wbg.__wbg_getForeignAccountCode_697bdf449fba9350 = function(arg0, arg1, arg2, arg3) {
22580
+ imports.wbg.__wbg_getForeignAccountCode_696276e0e0c51ce8 = function(arg0, arg1, arg2, arg3) {
22568
22581
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
22569
22582
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
22570
22583
  const ret = getForeignAccountCode(getStringFromWasm0(arg0, arg1), v0);
22571
22584
  return ret;
22572
22585
  };
22573
- imports.wbg.__wbg_getInputNotesFromIds_9950237274faada8 = function(arg0, arg1, arg2, arg3) {
22586
+ imports.wbg.__wbg_getInputNotesFromIds_79e52d9337e773df = function(arg0, arg1, arg2, arg3) {
22574
22587
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
22575
22588
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
22576
22589
  const ret = getInputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
22577
22590
  return ret;
22578
22591
  };
22579
- imports.wbg.__wbg_getInputNotesFromNullifiers_f89974583b6d794f = function(arg0, arg1, arg2, arg3) {
22592
+ imports.wbg.__wbg_getInputNotesFromNullifiers_603c45406ba197c2 = function(arg0, arg1, arg2, arg3) {
22580
22593
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
22581
22594
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
22582
22595
  const ret = getInputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
22583
22596
  return ret;
22584
22597
  };
22585
- imports.wbg.__wbg_getInputNotes_e0a7dbc58476a25a = function(arg0, arg1, arg2, arg3) {
22598
+ imports.wbg.__wbg_getInputNotes_83784b1c31234049 = function(arg0, arg1, arg2, arg3) {
22586
22599
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
22587
22600
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
22588
22601
  const ret = getInputNotes(getStringFromWasm0(arg0, arg1), v0);
22589
22602
  return ret;
22590
22603
  };
22591
- imports.wbg.__wbg_getNoteScript_3975abbf5f8f33aa = function(arg0, arg1, arg2, arg3) {
22604
+ imports.wbg.__wbg_getNoteScript_f27f8dcc5bedb153 = function(arg0, arg1, arg2, arg3) {
22592
22605
  let deferred0_0;
22593
22606
  let deferred0_1;
22594
22607
  try {
@@ -22600,33 +22613,33 @@ function __wbg_get_imports() {
22600
22613
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22601
22614
  }
22602
22615
  };
22603
- imports.wbg.__wbg_getNoteTags_bc287f199056e1d7 = function(arg0, arg1) {
22616
+ imports.wbg.__wbg_getNoteTags_a0410f211e34f248 = function(arg0, arg1) {
22604
22617
  const ret = getNoteTags(getStringFromWasm0(arg0, arg1));
22605
22618
  return ret;
22606
22619
  };
22607
- imports.wbg.__wbg_getOutputNotesFromIds_d1b7c72c1af12887 = function(arg0, arg1, arg2, arg3) {
22620
+ imports.wbg.__wbg_getOutputNotesFromIds_ceddc610a35951aa = function(arg0, arg1, arg2, arg3) {
22608
22621
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
22609
22622
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
22610
22623
  const ret = getOutputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
22611
22624
  return ret;
22612
22625
  };
22613
- imports.wbg.__wbg_getOutputNotesFromNullifiers_6b72ce61080b4e92 = function(arg0, arg1, arg2, arg3) {
22626
+ imports.wbg.__wbg_getOutputNotesFromNullifiers_f5575b42c86d0dca = function(arg0, arg1, arg2, arg3) {
22614
22627
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
22615
22628
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
22616
22629
  const ret = getOutputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
22617
22630
  return ret;
22618
22631
  };
22619
- imports.wbg.__wbg_getOutputNotes_509851025e02f555 = function(arg0, arg1, arg2, arg3) {
22632
+ imports.wbg.__wbg_getOutputNotes_5bcdd295390716ec = function(arg0, arg1, arg2, arg3) {
22620
22633
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
22621
22634
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
22622
22635
  const ret = getOutputNotes(getStringFromWasm0(arg0, arg1), v0);
22623
22636
  return ret;
22624
22637
  };
22625
- imports.wbg.__wbg_getPartialBlockchainNodesAll_fb38c99fdb4eef63 = function(arg0, arg1) {
22638
+ imports.wbg.__wbg_getPartialBlockchainNodesAll_e3c830d26a11b58b = function(arg0, arg1) {
22626
22639
  const ret = getPartialBlockchainNodesAll(getStringFromWasm0(arg0, arg1));
22627
22640
  return ret;
22628
22641
  };
22629
- imports.wbg.__wbg_getPartialBlockchainNodesUpToInOrderIndex_4fb56f8d3ca27080 = function(arg0, arg1, arg2, arg3) {
22642
+ imports.wbg.__wbg_getPartialBlockchainNodesUpToInOrderIndex_05138831b7a7dcce = function(arg0, arg1, arg2, arg3) {
22630
22643
  let deferred0_0;
22631
22644
  let deferred0_1;
22632
22645
  try {
@@ -22638,13 +22651,13 @@ function __wbg_get_imports() {
22638
22651
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22639
22652
  }
22640
22653
  };
22641
- imports.wbg.__wbg_getPartialBlockchainNodes_171d28e8a649b223 = function(arg0, arg1, arg2, arg3) {
22654
+ imports.wbg.__wbg_getPartialBlockchainNodes_1d2fa2f902e323a4 = function(arg0, arg1, arg2, arg3) {
22642
22655
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
22643
22656
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
22644
22657
  const ret = getPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0);
22645
22658
  return ret;
22646
22659
  };
22647
- imports.wbg.__wbg_getPartialBlockchainPeaksByBlockNum_94700fe3aec84b4f = function(arg0, arg1, arg2) {
22660
+ imports.wbg.__wbg_getPartialBlockchainPeaksByBlockNum_36302d979c2dbfdc = function(arg0, arg1, arg2) {
22648
22661
  const ret = getPartialBlockchainPeaksByBlockNum(getStringFromWasm0(arg0, arg1), arg2 >>> 0);
22649
22662
  return ret;
22650
22663
  };
@@ -22655,7 +22668,7 @@ function __wbg_get_imports() {
22655
22668
  const ret = arg0.getReader();
22656
22669
  return ret;
22657
22670
  }, arguments) };
22658
- imports.wbg.__wbg_getSetting_745e88439317f2d7 = function(arg0, arg1, arg2, arg3) {
22671
+ imports.wbg.__wbg_getSetting_ce90ae0b231b4c88 = function(arg0, arg1, arg2, arg3) {
22659
22672
  let deferred0_0;
22660
22673
  let deferred0_1;
22661
22674
  try {
@@ -22667,7 +22680,7 @@ function __wbg_get_imports() {
22667
22680
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22668
22681
  }
22669
22682
  };
22670
- imports.wbg.__wbg_getSyncHeight_a365265831082983 = function(arg0, arg1) {
22683
+ imports.wbg.__wbg_getSyncHeight_2ac9928d08147d5d = function(arg0, arg1) {
22671
22684
  const ret = getSyncHeight(getStringFromWasm0(arg0, arg1));
22672
22685
  return ret;
22673
22686
  };
@@ -22675,11 +22688,11 @@ function __wbg_get_imports() {
22675
22688
  const ret = arg0.getTime();
22676
22689
  return ret;
22677
22690
  };
22678
- imports.wbg.__wbg_getTrackedBlockHeaders_90a4d430709fb850 = function(arg0, arg1) {
22691
+ imports.wbg.__wbg_getTrackedBlockHeaders_a2c33991ed3b5e43 = function(arg0, arg1) {
22679
22692
  const ret = getTrackedBlockHeaders(getStringFromWasm0(arg0, arg1));
22680
22693
  return ret;
22681
22694
  };
22682
- imports.wbg.__wbg_getTransactions_b2243c8411ada843 = function(arg0, arg1, arg2, arg3) {
22695
+ imports.wbg.__wbg_getTransactions_2ed2303fed279ee5 = function(arg0, arg1, arg2, arg3) {
22683
22696
  let deferred0_0;
22684
22697
  let deferred0_1;
22685
22698
  try {
@@ -22691,7 +22704,7 @@ function __wbg_get_imports() {
22691
22704
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22692
22705
  }
22693
22706
  };
22694
- imports.wbg.__wbg_getUnspentInputNoteNullifiers_d5797c41bb809a93 = function(arg0, arg1) {
22707
+ imports.wbg.__wbg_getUnspentInputNoteNullifiers_4cc9ce3a64026165 = function(arg0, arg1) {
22695
22708
  const ret = getUnspentInputNoteNullifiers(getStringFromWasm0(arg0, arg1));
22696
22709
  return ret;
22697
22710
  };
@@ -22735,7 +22748,7 @@ function __wbg_get_imports() {
22735
22748
  const ret = InputNoteRecord.__wrap(arg0);
22736
22749
  return ret;
22737
22750
  };
22738
- imports.wbg.__wbg_insertAccountAddress_545bbaa727fd6e9b = function(arg0, arg1, arg2, arg3, arg4, arg5) {
22751
+ imports.wbg.__wbg_insertAccountAddress_875f6d60d9fb4f4f = function(arg0, arg1, arg2, arg3, arg4, arg5) {
22739
22752
  let deferred0_0;
22740
22753
  let deferred0_1;
22741
22754
  try {
@@ -22749,7 +22762,7 @@ function __wbg_get_imports() {
22749
22762
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22750
22763
  }
22751
22764
  };
22752
- imports.wbg.__wbg_insertAccountAuth_955f4f00947515ac = function(arg0, arg1, arg2, arg3, arg4, arg5) {
22765
+ imports.wbg.__wbg_insertAccountAuth_9f716dc6b4c27341 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
22753
22766
  let deferred0_0;
22754
22767
  let deferred0_1;
22755
22768
  let deferred1_0;
@@ -22766,7 +22779,7 @@ function __wbg_get_imports() {
22766
22779
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22767
22780
  }
22768
22781
  };
22769
- imports.wbg.__wbg_insertBlockHeader_320387bfa1fe0310 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
22782
+ imports.wbg.__wbg_insertBlockHeader_d6d09194674c0e1a = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
22770
22783
  var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
22771
22784
  wasm.__wbindgen_free(arg3, arg4 * 1, 1);
22772
22785
  var v1 = getArrayU8FromWasm0(arg5, arg6).slice();
@@ -22774,7 +22787,7 @@ function __wbg_get_imports() {
22774
22787
  const ret = insertBlockHeader(getStringFromWasm0(arg0, arg1), arg2 >>> 0, v0, v1, arg7 !== 0);
22775
22788
  return ret;
22776
22789
  };
22777
- imports.wbg.__wbg_insertPartialBlockchainNodes_a666301af3c01e81 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
22790
+ imports.wbg.__wbg_insertPartialBlockchainNodes_b5dcaa7201ce8be7 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
22778
22791
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
22779
22792
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
22780
22793
  var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
@@ -22782,7 +22795,7 @@ function __wbg_get_imports() {
22782
22795
  const ret = insertPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0, v1);
22783
22796
  return ret;
22784
22797
  };
22785
- imports.wbg.__wbg_insertSetting_901185d26c6f8f81 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
22798
+ imports.wbg.__wbg_insertSetting_9977ccce2e13d584 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
22786
22799
  let deferred0_0;
22787
22800
  let deferred0_1;
22788
22801
  try {
@@ -22796,7 +22809,7 @@ function __wbg_get_imports() {
22796
22809
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
22797
22810
  }
22798
22811
  };
22799
- imports.wbg.__wbg_insertTransactionScript_c7e6a73bde9e19b9 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
22812
+ imports.wbg.__wbg_insertTransactionScript_388a80a4875ee8b1 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
22800
22813
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
22801
22814
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
22802
22815
  let v1;
@@ -22889,11 +22902,11 @@ function __wbg_get_imports() {
22889
22902
  const ret = arg0.length;
22890
22903
  return ret;
22891
22904
  };
22892
- imports.wbg.__wbg_listSettingKeys_25ae9c291867b667 = function(arg0, arg1) {
22905
+ imports.wbg.__wbg_listSettingKeys_5fc3ed72c1ce8456 = function(arg0, arg1) {
22893
22906
  const ret = listSettingKeys(getStringFromWasm0(arg0, arg1));
22894
22907
  return ret;
22895
22908
  };
22896
- imports.wbg.__wbg_lockAccount_84fc501f1d888956 = function(arg0, arg1, arg2, arg3) {
22909
+ imports.wbg.__wbg_lockAccount_6e1909200f2ef547 = function(arg0, arg1, arg2, arg3) {
22897
22910
  let deferred0_0;
22898
22911
  let deferred0_1;
22899
22912
  try {
@@ -22965,7 +22978,7 @@ function __wbg_get_imports() {
22965
22978
  const a = state0.a;
22966
22979
  state0.a = 0;
22967
22980
  try {
22968
- return wasm_bindgen__convert__closures_____invoke__hc1b2d8f71c961ea5(a, state0.b, arg0, arg1);
22981
+ return wasm_bindgen__convert__closures_____invoke__hc1a779b8d126d408(a, state0.b, arg0, arg1);
22969
22982
  } finally {
22970
22983
  state0.a = a;
22971
22984
  }
@@ -23080,7 +23093,7 @@ function __wbg_get_imports() {
23080
23093
  const ret = NoteTag.__unwrap(arg0);
23081
23094
  return ret;
23082
23095
  };
23083
- imports.wbg.__wbg_openDatabase_7f52a11a39f56828 = function(arg0, arg1, arg2, arg3) {
23096
+ imports.wbg.__wbg_openDatabase_a26c56bc2b9d2bd7 = function(arg0, arg1, arg2, arg3) {
23084
23097
  const ret = openDatabase(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
23085
23098
  return ret;
23086
23099
  };
@@ -23115,7 +23128,7 @@ function __wbg_get_imports() {
23115
23128
  const ret = ProvenTransaction.__wrap(arg0);
23116
23129
  return ret;
23117
23130
  };
23118
- imports.wbg.__wbg_pruneIrrelevantBlocks_91be09ef60da8fca = function(arg0, arg1) {
23131
+ imports.wbg.__wbg_pruneIrrelevantBlocks_7f548204530f1730 = function(arg0, arg1) {
23119
23132
  const ret = pruneIrrelevantBlocks(getStringFromWasm0(arg0, arg1));
23120
23133
  return ret;
23121
23134
  };
@@ -23133,13 +23146,13 @@ function __wbg_get_imports() {
23133
23146
  imports.wbg.__wbg_releaseLock_5d0b5a68887b891d = function(arg0) {
23134
23147
  arg0.releaseLock();
23135
23148
  };
23136
- imports.wbg.__wbg_removeAccountAddress_0be04b67afdf3a85 = function(arg0, arg1, arg2, arg3) {
23149
+ imports.wbg.__wbg_removeAccountAddress_f5002a8a242e247b = function(arg0, arg1, arg2, arg3) {
23137
23150
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
23138
23151
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
23139
23152
  const ret = removeAccountAddress(getStringFromWasm0(arg0, arg1), v0);
23140
23153
  return ret;
23141
23154
  };
23142
- imports.wbg.__wbg_removeNoteTag_8ddbdaea69469423 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
23155
+ imports.wbg.__wbg_removeNoteTag_1519ac73c52ebda7 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
23143
23156
  var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
23144
23157
  wasm.__wbindgen_free(arg2, arg3 * 1, 1);
23145
23158
  let v1;
@@ -23155,7 +23168,7 @@ function __wbg_get_imports() {
23155
23168
  const ret = removeNoteTag(getStringFromWasm0(arg0, arg1), v0, v1, v2);
23156
23169
  return ret;
23157
23170
  };
23158
- imports.wbg.__wbg_removeSetting_63743c406eef117c = function(arg0, arg1, arg2, arg3) {
23171
+ imports.wbg.__wbg_removeSetting_496c33258dc8010b = function(arg0, arg1, arg2, arg3) {
23159
23172
  let deferred0_0;
23160
23173
  let deferred0_1;
23161
23174
  try {
@@ -23331,13 +23344,13 @@ function __wbg_get_imports() {
23331
23344
  const ret = TransactionSummary.__wrap(arg0);
23332
23345
  return ret;
23333
23346
  };
23334
- imports.wbg.__wbg_undoAccountStates_f5554bb003f13692 = function(arg0, arg1, arg2, arg3) {
23347
+ imports.wbg.__wbg_undoAccountStates_c99fd44eeb465bbc = function(arg0, arg1, arg2, arg3) {
23335
23348
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
23336
23349
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
23337
23350
  const ret = undoAccountStates(getStringFromWasm0(arg0, arg1), v0);
23338
23351
  return ret;
23339
23352
  };
23340
- imports.wbg.__wbg_upsertAccountCode_12d4eb5c8bacf10c = function(arg0, arg1, arg2, arg3, arg4, arg5) {
23353
+ imports.wbg.__wbg_upsertAccountCode_93d987a13558f47e = function(arg0, arg1, arg2, arg3, arg4, arg5) {
23341
23354
  let deferred0_0;
23342
23355
  let deferred0_1;
23343
23356
  try {
@@ -23351,7 +23364,7 @@ function __wbg_get_imports() {
23351
23364
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23352
23365
  }
23353
23366
  };
23354
- imports.wbg.__wbg_upsertAccountRecord_dc25a22137088c14 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) {
23367
+ imports.wbg.__wbg_upsertAccountRecord_7d4b1d720e3d01b1 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) {
23355
23368
  let deferred0_0;
23356
23369
  let deferred0_1;
23357
23370
  let deferred1_0;
@@ -23393,13 +23406,13 @@ function __wbg_get_imports() {
23393
23406
  wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
23394
23407
  }
23395
23408
  };
23396
- imports.wbg.__wbg_upsertAccountStorage_76e20044853be836 = function(arg0, arg1, arg2, arg3) {
23409
+ imports.wbg.__wbg_upsertAccountStorage_b052880ae1c5474d = function(arg0, arg1, arg2, arg3) {
23397
23410
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
23398
23411
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
23399
23412
  const ret = upsertAccountStorage(getStringFromWasm0(arg0, arg1), v0);
23400
23413
  return ret;
23401
23414
  };
23402
- imports.wbg.__wbg_upsertForeignAccountCode_b99d94a6205e2760 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
23415
+ imports.wbg.__wbg_upsertForeignAccountCode_e52f8dedc85ecfb0 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
23403
23416
  let deferred0_0;
23404
23417
  let deferred0_1;
23405
23418
  let deferred2_0;
@@ -23418,7 +23431,7 @@ function __wbg_get_imports() {
23418
23431
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
23419
23432
  }
23420
23433
  };
23421
- imports.wbg.__wbg_upsertInputNote_f967ab2b5ad80dae = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20) {
23434
+ imports.wbg.__wbg_upsertInputNote_0f6e05c703ddab86 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20) {
23422
23435
  let deferred0_0;
23423
23436
  let deferred0_1;
23424
23437
  let deferred4_0;
@@ -23455,7 +23468,7 @@ function __wbg_get_imports() {
23455
23468
  wasm.__wbindgen_free(deferred7_0, deferred7_1, 1);
23456
23469
  }
23457
23470
  };
23458
- imports.wbg.__wbg_upsertNoteScript_9534ea0e71ddd4fa = function(arg0, arg1, arg2, arg3, arg4, arg5) {
23471
+ imports.wbg.__wbg_upsertNoteScript_a6cec902733d9dcc = function(arg0, arg1, arg2, arg3, arg4, arg5) {
23459
23472
  let deferred0_0;
23460
23473
  let deferred0_1;
23461
23474
  try {
@@ -23469,7 +23482,7 @@ function __wbg_get_imports() {
23469
23482
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23470
23483
  }
23471
23484
  };
23472
- imports.wbg.__wbg_upsertOutputNote_fc020d4f29b395af = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) {
23485
+ imports.wbg.__wbg_upsertOutputNote_82642c2543f188e3 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) {
23473
23486
  let deferred0_0;
23474
23487
  let deferred0_1;
23475
23488
  let deferred2_0;
@@ -23497,13 +23510,13 @@ function __wbg_get_imports() {
23497
23510
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
23498
23511
  }
23499
23512
  };
23500
- imports.wbg.__wbg_upsertStorageMapEntries_999cbe72def78559 = function(arg0, arg1, arg2, arg3) {
23513
+ imports.wbg.__wbg_upsertStorageMapEntries_82a80fefc896ac66 = function(arg0, arg1, arg2, arg3) {
23501
23514
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
23502
23515
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
23503
23516
  const ret = upsertStorageMapEntries(getStringFromWasm0(arg0, arg1), v0);
23504
23517
  return ret;
23505
23518
  };
23506
- imports.wbg.__wbg_upsertTransactionRecord_f51cc1953cebb30f = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
23519
+ imports.wbg.__wbg_upsertTransactionRecord_4c937ed22d06b60e = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
23507
23520
  let deferred0_0;
23508
23521
  let deferred0_1;
23509
23522
  try {
@@ -23524,7 +23537,7 @@ function __wbg_get_imports() {
23524
23537
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
23525
23538
  }
23526
23539
  };
23527
- imports.wbg.__wbg_upsertVaultAssets_8955c2db97bbdb4e = function(arg0, arg1, arg2, arg3) {
23540
+ imports.wbg.__wbg_upsertVaultAssets_1636a5dbdd108db3 = function(arg0, arg1, arg2, arg3) {
23528
23541
  var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
23529
23542
  wasm.__wbindgen_free(arg2, arg3 * 4, 4);
23530
23543
  const ret = upsertVaultAssets(getStringFromWasm0(arg0, arg1), v0);
@@ -23593,7 +23606,7 @@ function __wbg_get_imports() {
23593
23606
  };
23594
23607
  imports.wbg.__wbindgen_cast_7475132e74620297 = function(arg0, arg1) {
23595
23608
  // Cast intrinsic for `Closure(Closure { dtor_idx: 619, function: Function { arguments: [Externref], shim_idx: 624, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
23596
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5a25b698288a0281, wasm_bindgen__convert__closures_____invoke__h1c9b4cf1925e32c7);
23609
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h7b3bde8ac9c48786, wasm_bindgen__convert__closures_____invoke__he82daa046546ece0);
23597
23610
  return ret;
23598
23611
  };
23599
23612
  imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
@@ -23612,7 +23625,7 @@ function __wbg_get_imports() {
23612
23625
  };
23613
23626
  imports.wbg.__wbindgen_cast_c22f63a81a5a9b13 = function(arg0, arg1) {
23614
23627
  // Cast intrinsic for `Closure(Closure { dtor_idx: 619, function: Function { arguments: [], shim_idx: 620, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
23615
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5a25b698288a0281, wasm_bindgen__convert__closures_____invoke__h7f2f16b42e050c5a);
23628
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h7b3bde8ac9c48786, wasm_bindgen__convert__closures_____invoke__heeb0fc86dc7920bf);
23616
23629
  return ret;
23617
23630
  };
23618
23631
  imports.wbg.__wbindgen_cast_c2fa6e7fab31a723 = function(arg0, arg1) {
@@ -23712,4 +23725,4 @@ const module = new URL("assets/miden_client_web.wasm", import.meta.url);
23712
23725
  await __wbg_init({ module_or_path: module });
23713
23726
 
23714
23727
  export { Account, AccountArray, AccountBuilder, AccountBuilderResult, AccountCode, AccountComponent, AccountComponentCode, AccountDelta, AccountFile, AccountHeader, AccountId, AccountIdArray, AccountInterface, AccountStorage, AccountStorageDelta, AccountStorageMode, AccountStorageRequirements, AccountType, AccountVaultDelta, Address, AdviceInputs, AdviceMap, AssetVault, AuthFalcon512RpoMultisigConfig, AuthScheme, AuthSecretKey, BasicFungibleFaucetComponent, BlockHeader, CodeBuilder, CommittedNote, ConsumableNoteRecord, Endpoint, ExecutedTransaction, Felt, FeltArray, FetchedAccount, FetchedNote, FlattenedU8Vec, ForeignAccount, ForeignAccountArray, FungibleAsset, FungibleAssetDelta, FungibleAssetDeltaItem, GetProceduresResultItem, InputNote, InputNoteRecord, InputNoteState, InputNotes, IntoUnderlyingByteSource, IntoUnderlyingSink, IntoUnderlyingSource, JsAccountUpdate, JsStateSyncUpdate, JsStorageMapEntry, JsStorageSlot, JsVaultAsset, Library, MerklePath, NetworkId, NetworkType, Note, NoteAndArgs, NoteAndArgsArray, NoteAssets, NoteAttachment, NoteAttachmentKind, NoteAttachmentScheme, NoteConsumability, NoteConsumptionStatus, NoteDetails, NoteDetailsAndTag, NoteDetailsAndTagArray, NoteExecutionHint, NoteFile, NoteFilter, NoteFilterTypes, NoteHeader, NoteId, NoteIdAndArgs, NoteIdAndArgsArray, NoteInclusionProof, NoteInputs, NoteLocation, NoteMetadata, NoteRecipient, NoteRecipientArray, NoteScript, NoteSyncInfo, NoteTag, NoteType, OutputNote, OutputNoteArray, OutputNoteRecord, OutputNoteState, OutputNotes, OutputNotesArray, Package, PartialNote, ProcedureThreshold, Program, ProvenTransaction, PublicKey, RpcClient, Rpo256, SerializedInputNoteData, SerializedOutputNoteData, SerializedTransactionData, Signature, SigningInputs, SigningInputsType, SlotAndKeys, SparseMerklePath, StorageMap, StorageSlot, StorageSlotArray, SyncSummary, TestUtils, TokenSymbol, TransactionArgs, TransactionFilter, TransactionId, TransactionProver, TransactionRecord, TransactionRequest, TransactionRequestBuilder, TransactionResult, TransactionScript, TransactionScriptInputPair, TransactionScriptInputPairArray, TransactionStatus, TransactionStoreUpdate, TransactionSummary, WebClient, Word, createAuthFalcon512RpoMultisig, initSync, setupLogging };
23715
- //# sourceMappingURL=Cargo-e77f9a02.js.map
23728
+ //# sourceMappingURL=Cargo-0ed69232.js.map