@miden-sdk/miden-sdk 0.15.7 → 0.16.0-alpha.1
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.
- package/README.md +0 -152
- package/dist/mt/{Cargo-CnGom-_z.js → Cargo-DKsyWYgG.js} +700 -1245
- package/dist/mt/Cargo-DKsyWYgG.js.map +1 -0
- package/dist/mt/api-types.d.ts +38 -370
- package/dist/mt/assets/miden_client_web.wasm +0 -0
- package/dist/mt/crates/miden_client_web.d.ts +179 -402
- package/dist/mt/docs-entry.d.ts +3 -9
- package/dist/mt/eager.js +1 -1
- package/dist/mt/index.d.ts +0 -3
- package/dist/mt/index.js +53 -701
- package/dist/mt/index.js.map +1 -1
- package/dist/mt/wasm.js +1 -1
- package/dist/mt/workerHelpers.js +1 -1
- package/dist/mt/workers/{Cargo-CnGom-_z-X_3VwTbo.js → Cargo-DKsyWYgG-DfOhgt23.js} +700 -1245
- package/dist/mt/workers/Cargo-DKsyWYgG-DfOhgt23.js.map +1 -0
- package/dist/mt/workers/assets/miden_client_web.wasm +0 -0
- package/dist/mt/workers/web-client-methods-worker.js +703 -1251
- package/dist/mt/workers/web-client-methods-worker.js.map +1 -1
- package/dist/mt/workers/web-client-methods-worker.module.js +1 -1
- package/dist/mt/workers/web-client-methods-worker.module.js.map +1 -1
- package/dist/mt/workers/workerHelpers.js +1 -1
- package/dist/st/{Cargo-DR9fiMbE.js → Cargo-LwITdlzJ.js} +695 -1237
- package/dist/st/Cargo-LwITdlzJ.js.map +1 -0
- package/dist/st/api-types.d.ts +38 -370
- package/dist/st/assets/miden_client_web.wasm +0 -0
- package/dist/st/crates/miden_client_web.d.ts +179 -402
- package/dist/st/docs-entry.d.ts +3 -9
- package/dist/st/eager.js +1 -1
- package/dist/st/index.d.ts +0 -3
- package/dist/st/index.js +53 -701
- package/dist/st/index.js.map +1 -1
- package/dist/st/wasm.js +1 -1
- package/dist/st/workers/{Cargo-DR9fiMbE-C0G0clA_.js → Cargo-LwITdlzJ-Dyl2bCwN.js} +695 -1237
- package/dist/st/workers/Cargo-LwITdlzJ-Dyl2bCwN.js.map +1 -0
- package/dist/st/workers/assets/miden_client_web.wasm +0 -0
- package/dist/st/workers/web-client-methods-worker.js +698 -1243
- package/dist/st/workers/web-client-methods-worker.js.map +1 -1
- package/dist/st/workers/web-client-methods-worker.module.js +1 -1
- package/dist/st/workers/web-client-methods-worker.module.js.map +1 -1
- package/js/client.js +2 -4
- package/js/node/client-factory.js +4 -11
- package/js/node/napi-compat.js +1 -0
- package/js/node-index.js +11 -11
- package/js/resources/compiler.js +23 -12
- package/js/resources/transactions.js +24 -540
- package/js/standalone.js +3 -61
- package/package.json +4 -4
- package/dist/mt/Cargo-CnGom-_z.js.map +0 -1
- package/dist/mt/workers/Cargo-CnGom-_z-X_3VwTbo.js.map +0 -1
- package/dist/st/Cargo-DR9fiMbE.js.map +0 -1
- package/dist/st/workers/Cargo-DR9fiMbE-C0G0clA_.js.map +0 -1
- package/js/resources/pswap.js +0 -132
|
@@ -8197,6 +8197,42 @@ const logWebStoreError = (error, errorContext) => {
|
|
|
8197
8197
|
}
|
|
8198
8198
|
throw error;
|
|
8199
8199
|
};
|
|
8200
|
+
// Partial blockchain (MMR) authentication nodes are part of the local
|
|
8201
|
+
// `PartialMmr` state. Once a node index is known its value is fixed, so a
|
|
8202
|
+
// later write with the same index but a different value indicates a buggy or
|
|
8203
|
+
// malicious sync path. Insert nodes that are missing, accept writes that match
|
|
8204
|
+
// the stored value, and reject conflicting writes so the known-good value is
|
|
8205
|
+
// never silently overwritten.
|
|
8206
|
+
const putPartialBlockchainNodesNoOverwrite = async (table, data) => {
|
|
8207
|
+
// Collapse duplicate indexes within the same batch up front: identical
|
|
8208
|
+
// copies are deduplicated (a repeated index would otherwise make `bulkAdd`
|
|
8209
|
+
// throw a key-collision error), and copies that disagree are rejected.
|
|
8210
|
+
const unique = new Map();
|
|
8211
|
+
for (const entry of data) {
|
|
8212
|
+
const seen = unique.get(entry.id);
|
|
8213
|
+
if (seen !== undefined && seen.node !== entry.node) {
|
|
8214
|
+
throw new Error(`Conflicting partial blockchain node ${entry.id} within the same write`);
|
|
8215
|
+
}
|
|
8216
|
+
unique.set(entry.id, entry);
|
|
8217
|
+
}
|
|
8218
|
+
const records = [...unique.values()];
|
|
8219
|
+
const existing = await table.bulkGet(records.map((entry) => entry.id));
|
|
8220
|
+
const toAdd = [];
|
|
8221
|
+
for (let i = 0; i < records.length; i++) {
|
|
8222
|
+
const current = existing[i];
|
|
8223
|
+
if (current === undefined) {
|
|
8224
|
+
toAdd.push(records[i]);
|
|
8225
|
+
}
|
|
8226
|
+
else if (current.node !== records[i].node) {
|
|
8227
|
+
throw new Error(`Refusing to overwrite partial blockchain node ${records[i].id}: ` +
|
|
8228
|
+
`stored value differs from the new value`);
|
|
8229
|
+
}
|
|
8230
|
+
// current.node === records[i].node: already stored, nothing to do.
|
|
8231
|
+
}
|
|
8232
|
+
if (toAdd.length > 0) {
|
|
8233
|
+
await table.bulkAdd(toAdd);
|
|
8234
|
+
}
|
|
8235
|
+
};
|
|
8200
8236
|
const uint8ArrayToBase64 = (bytes) => {
|
|
8201
8237
|
const binary = bytes.reduce((acc, byte) => acc + String.fromCharCode(byte), "");
|
|
8202
8238
|
return btoa(binary);
|
|
@@ -8253,7 +8289,7 @@ var Table;
|
|
|
8253
8289
|
Table["InputNotes"] = "inputNotes";
|
|
8254
8290
|
Table["OutputNotes"] = "outputNotes";
|
|
8255
8291
|
Table["NotesScripts"] = "notesScripts";
|
|
8256
|
-
Table["
|
|
8292
|
+
Table["BlockchainCheckpoint"] = "blockchainCheckpoint";
|
|
8257
8293
|
Table["BlockHeaders"] = "blockHeaders";
|
|
8258
8294
|
Table["PartialBlockchainNodes"] = "partialBlockchainNodes";
|
|
8259
8295
|
Table["Tags"] = "tags";
|
|
@@ -8264,9 +8300,7 @@ function indexes(...items) {
|
|
|
8264
8300
|
return items.join(",");
|
|
8265
8301
|
}
|
|
8266
8302
|
/** V1 baseline schema. Extracted as a constant because once migrations are enabled, this must
|
|
8267
|
-
* never be modified — all schema changes should go through new version blocks instead.
|
|
8268
|
-
* Exported for migration tests, which seed a physical v1 database before opening it with the
|
|
8269
|
-
* current version chain. */
|
|
8303
|
+
* never be modified — all schema changes should go through new version blocks instead. */
|
|
8270
8304
|
const V1_STORES = {
|
|
8271
8305
|
[Table.AccountCode]: indexes("root"),
|
|
8272
8306
|
[Table.LatestAccountStorage]: indexes("[accountId+slotName]", "accountId"),
|
|
@@ -8285,7 +8319,7 @@ const V1_STORES = {
|
|
|
8285
8319
|
[Table.InputNotes]: indexes("detailsCommitment", "noteId", "nullifier", "stateDiscriminant", "[consumedBlockHeight+consumedTxOrder+noteId]"),
|
|
8286
8320
|
[Table.OutputNotes]: indexes("detailsCommitment", "noteId", "recipientDigest", "stateDiscriminant", "nullifier"),
|
|
8287
8321
|
[Table.NotesScripts]: indexes("scriptRoot"),
|
|
8288
|
-
[Table.
|
|
8322
|
+
[Table.BlockchainCheckpoint]: indexes("id"),
|
|
8289
8323
|
[Table.BlockHeaders]: indexes("blockNum", "hasClientNotes"),
|
|
8290
8324
|
[Table.PartialBlockchainNodes]: indexes("id"),
|
|
8291
8325
|
[Table.Tags]: indexes("id++", "tag", "sourceNoteId", "sourceAccountId"),
|
|
@@ -8311,7 +8345,7 @@ class MidenDatabase {
|
|
|
8311
8345
|
inputNotes;
|
|
8312
8346
|
outputNotes;
|
|
8313
8347
|
notesScripts;
|
|
8314
|
-
|
|
8348
|
+
blockchainCheckpoint;
|
|
8315
8349
|
blockHeaders;
|
|
8316
8350
|
partialBlockchainNodes;
|
|
8317
8351
|
tags;
|
|
@@ -8321,12 +8355,11 @@ class MidenDatabase {
|
|
|
8321
8355
|
this.dexie = new Dexie(network);
|
|
8322
8356
|
// --- Schema versioning ---
|
|
8323
8357
|
//
|
|
8324
|
-
// NOTE:
|
|
8325
|
-
//
|
|
8326
|
-
//
|
|
8327
|
-
// data
|
|
8328
|
-
//
|
|
8329
|
-
// version-change nuke will be removed and migrations alone will take over.
|
|
8358
|
+
// NOTE: The migration system is not currently in use. The Miden network
|
|
8359
|
+
// resets on every upgrade, so the database is nuked whenever the client
|
|
8360
|
+
// version changes (see ensureClientVersion). Once the network stabilizes
|
|
8361
|
+
// and data can be preserved across upgrades, the version-change nuke will
|
|
8362
|
+
// be removed and migrations will take over.
|
|
8330
8363
|
//
|
|
8331
8364
|
// v1 is the baseline schema. To add a migration:
|
|
8332
8365
|
// 1. Add a .version(N+1).stores({...}).upgrade(tx => {...}) block below.
|
|
@@ -8358,43 +8391,12 @@ class MidenDatabase {
|
|
|
8358
8391
|
// Note: The `populate` hook (below the version blocks) only fires on
|
|
8359
8392
|
// first database creation, NOT during upgrades.
|
|
8360
8393
|
//
|
|
8361
|
-
//
|
|
8362
|
-
//
|
|
8363
|
-
//
|
|
8364
|
-
//
|
|
8394
|
+
// To enable migrations (stop nuking the DB on version change):
|
|
8395
|
+
// 1. Remove the nuke logic in ensureClientVersion (close/delete/open).
|
|
8396
|
+
// Just persist the new version instead.
|
|
8397
|
+
// 2. Freeze V1_STORES — never modify it again.
|
|
8398
|
+
// 3. Add version(2+) blocks below for all schema changes going forward.
|
|
8365
8399
|
this.dexie.version(1).stores(V1_STORES);
|
|
8366
|
-
// v2 (miden-client 0.15.4): prune note tags leaked by output-note
|
|
8367
|
-
// registration. Mirrors sqlite-store migration
|
|
8368
|
-
// `0002_prune_output_note_tags.sql`. Clients built against miden-client
|
|
8369
|
-
// < 0.15.4 registered a `Note`-sourced tag for every output note a
|
|
8370
|
-
// transaction created, but sync cleanup only removes tags of committed
|
|
8371
|
-
// *input* notes — leaking one `tags` row per created note. The client no
|
|
8372
|
-
// longer registers those tags; this upgrade deletes the rows already
|
|
8373
|
-
// leaked. A tag is kept while an inclusion-pending input note
|
|
8374
|
-
// (Expected = 0, Unverified = 1 — the mirror of
|
|
8375
|
-
// `InputNoteRecord::is_inclusion_pending`) still needs it.
|
|
8376
|
-
//
|
|
8377
|
-
// This data-only fix coexists with the version-change nuke above: the
|
|
8378
|
-
// nuke covers major/minor client upgrades (network resets), while this
|
|
8379
|
-
// upgrade runs for stores preserved across patch upgrades.
|
|
8380
|
-
this.dexie
|
|
8381
|
-
.version(2)
|
|
8382
|
-
.stores({})
|
|
8383
|
-
.upgrade(async (tx) => {
|
|
8384
|
-
const outputNoteCommitments = new Set(await tx.outputNotes.toCollection().primaryKeys());
|
|
8385
|
-
if (outputNoteCommitments.size === 0) {
|
|
8386
|
-
return;
|
|
8387
|
-
}
|
|
8388
|
-
const pendingInputNoteCommitments = new Set(await tx.inputNotes
|
|
8389
|
-
.where("stateDiscriminant")
|
|
8390
|
-
.anyOf([0, 1])
|
|
8391
|
-
.primaryKeys());
|
|
8392
|
-
await tx.tags
|
|
8393
|
-
.filter((tag) => !!tag.sourceNoteId &&
|
|
8394
|
-
outputNoteCommitments.has(tag.sourceNoteId) &&
|
|
8395
|
-
!pendingInputNoteCommitments.has(tag.sourceNoteId))
|
|
8396
|
-
.delete();
|
|
8397
|
-
});
|
|
8398
8400
|
this.accountCodes = this.dexie.table(Table.AccountCode);
|
|
8399
8401
|
this.latestAccountStorages = this.dexie.table(Table.LatestAccountStorage);
|
|
8400
8402
|
this.historicalAccountStorages = this.dexie.table(Table.HistoricalAccountStorage);
|
|
@@ -8412,16 +8414,20 @@ class MidenDatabase {
|
|
|
8412
8414
|
this.inputNotes = this.dexie.table(Table.InputNotes);
|
|
8413
8415
|
this.outputNotes = this.dexie.table(Table.OutputNotes);
|
|
8414
8416
|
this.notesScripts = this.dexie.table(Table.NotesScripts);
|
|
8415
|
-
this.
|
|
8417
|
+
this.blockchainCheckpoint = this.dexie.table(Table.BlockchainCheckpoint);
|
|
8416
8418
|
this.blockHeaders = this.dexie.table(Table.BlockHeaders);
|
|
8417
8419
|
this.partialBlockchainNodes = this.dexie.table(Table.PartialBlockchainNodes);
|
|
8418
8420
|
this.tags = this.dexie.table(Table.Tags);
|
|
8419
8421
|
this.foreignAccountCode = this.dexie.table(Table.ForeignAccountCode);
|
|
8420
8422
|
this.settings = this.dexie.table(Table.Settings);
|
|
8421
8423
|
this.dexie.on("populate", () => {
|
|
8422
|
-
this.
|
|
8423
|
-
.put({
|
|
8424
|
-
|
|
8424
|
+
this.blockchainCheckpoint
|
|
8425
|
+
.put({
|
|
8426
|
+
id: 1,
|
|
8427
|
+
blockNum: 0,
|
|
8428
|
+
partialBlockchainPeaks: new Uint8Array(),
|
|
8429
|
+
})
|
|
8430
|
+
/* v8 ignore next 2 — populate blockchainCheckpoint failure requires fake-indexeddb to simulate a write error, not modelable in unit tests */
|
|
8425
8431
|
.catch((err) => logWebStoreError(err, "Failed to populate DB"));
|
|
8426
8432
|
});
|
|
8427
8433
|
}
|
|
@@ -8747,7 +8753,7 @@ async function upsertVaultAssets(dbId, accountId, assets) {
|
|
|
8747
8753
|
logWebStoreError(error, `Error inserting assets`);
|
|
8748
8754
|
}
|
|
8749
8755
|
}
|
|
8750
|
-
async function
|
|
8756
|
+
async function applyAccountPatch(dbId, accountId, nonce, updatedSlots, changedMapEntries, changedAssets, codeRoot, storageRoot, vaultRoot, committed, commitment) {
|
|
8751
8757
|
try {
|
|
8752
8758
|
const db = getDatabase(dbId);
|
|
8753
8759
|
await db.dexie.transaction("rw", [
|
|
@@ -8760,7 +8766,8 @@ async function applyTransactionDelta(dbId, accountId, nonce, updatedSlots, chang
|
|
|
8760
8766
|
db.latestAccountHeaders,
|
|
8761
8767
|
db.historicalAccountHeaders,
|
|
8762
8768
|
], async () => {
|
|
8763
|
-
|
|
8769
|
+
const resetMapSlots = new Set();
|
|
8770
|
+
// Apply storage patch: read old → archive → write/delete final state.
|
|
8764
8771
|
for (const slot of updatedSlots) {
|
|
8765
8772
|
const oldSlot = await db.latestAccountStorages
|
|
8766
8773
|
.where("[accountId+slotName]")
|
|
@@ -8773,12 +8780,44 @@ async function applyTransactionDelta(dbId, accountId, nonce, updatedSlots, chang
|
|
|
8773
8780
|
oldSlotValue: oldSlot?.slotValue ?? null,
|
|
8774
8781
|
slotType: slot.slotType,
|
|
8775
8782
|
});
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8783
|
+
// A created map is a replacement (a remove followed by create can merge to Create),
|
|
8784
|
+
// while a removed map must drop every persisted entry. Archive those entries so account
|
|
8785
|
+
// rollback can restore them.
|
|
8786
|
+
if (slot.slotType === 1 &&
|
|
8787
|
+
(slot.patchOperation === 0 || slot.patchOperation === 2)) {
|
|
8788
|
+
resetMapSlots.add(slot.slotName);
|
|
8789
|
+
const oldMapEntries = await db.latestStorageMapEntries
|
|
8790
|
+
.where("[accountId+slotName]")
|
|
8791
|
+
.equals([accountId, slot.slotName])
|
|
8792
|
+
.toArray();
|
|
8793
|
+
for (const entry of oldMapEntries) {
|
|
8794
|
+
await db.historicalStorageMapEntries.put({
|
|
8795
|
+
accountId,
|
|
8796
|
+
replacedAtNonce: nonce,
|
|
8797
|
+
slotName: entry.slotName,
|
|
8798
|
+
key: entry.key,
|
|
8799
|
+
oldValue: entry.value,
|
|
8800
|
+
});
|
|
8801
|
+
}
|
|
8802
|
+
await db.latestStorageMapEntries
|
|
8803
|
+
.where("[accountId+slotName]")
|
|
8804
|
+
.equals([accountId, slot.slotName])
|
|
8805
|
+
.delete();
|
|
8806
|
+
}
|
|
8807
|
+
if (slot.patchOperation === 2) {
|
|
8808
|
+
await db.latestAccountStorages
|
|
8809
|
+
.where("[accountId+slotName]")
|
|
8810
|
+
.equals([accountId, slot.slotName])
|
|
8811
|
+
.delete();
|
|
8812
|
+
}
|
|
8813
|
+
else {
|
|
8814
|
+
await db.latestAccountStorages.put({
|
|
8815
|
+
accountId,
|
|
8816
|
+
slotName: slot.slotName,
|
|
8817
|
+
slotValue: slot.slotValue,
|
|
8818
|
+
slotType: slot.slotType,
|
|
8819
|
+
});
|
|
8820
|
+
}
|
|
8782
8821
|
}
|
|
8783
8822
|
// Process map entries: read old → archive → update latest
|
|
8784
8823
|
for (const entry of changedMapEntries) {
|
|
@@ -8786,13 +8825,30 @@ async function applyTransactionDelta(dbId, accountId, nonce, updatedSlots, chang
|
|
|
8786
8825
|
.where("[accountId+slotName+key]")
|
|
8787
8826
|
.equals([accountId, entry.slotName, entry.key])
|
|
8788
8827
|
.first();
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8828
|
+
if (resetMapSlots.has(entry.slotName)) {
|
|
8829
|
+
const archivedEntry = await db.historicalStorageMapEntries
|
|
8830
|
+
.where("[accountId+replacedAtNonce+slotName+key]")
|
|
8831
|
+
.equals([accountId, nonce, entry.slotName, entry.key])
|
|
8832
|
+
.first();
|
|
8833
|
+
if (archivedEntry === undefined) {
|
|
8834
|
+
await db.historicalStorageMapEntries.put({
|
|
8835
|
+
accountId,
|
|
8836
|
+
replacedAtNonce: nonce,
|
|
8837
|
+
slotName: entry.slotName,
|
|
8838
|
+
key: entry.key,
|
|
8839
|
+
oldValue: null,
|
|
8840
|
+
});
|
|
8841
|
+
}
|
|
8842
|
+
}
|
|
8843
|
+
else {
|
|
8844
|
+
await db.historicalStorageMapEntries.put({
|
|
8845
|
+
accountId,
|
|
8846
|
+
replacedAtNonce: nonce,
|
|
8847
|
+
slotName: entry.slotName,
|
|
8848
|
+
key: entry.key,
|
|
8849
|
+
oldValue: oldEntry?.value ?? null,
|
|
8850
|
+
});
|
|
8851
|
+
}
|
|
8796
8852
|
// "" means removal
|
|
8797
8853
|
if (entry.value === "") {
|
|
8798
8854
|
await db.latestStorageMapEntries
|
|
@@ -8872,7 +8928,6 @@ async function applyTransactionDelta(dbId, accountId, nonce, updatedSlots, chang
|
|
|
8872
8928
|
}
|
|
8873
8929
|
catch (error) {
|
|
8874
8930
|
logWebStoreError(error, `Error applying transaction delta`);
|
|
8875
|
-
throw error;
|
|
8876
8931
|
}
|
|
8877
8932
|
}
|
|
8878
8933
|
async function archiveAndReplaceStorageSlots(db, accountId, nonce, newSlots) {
|
|
@@ -9111,7 +9166,6 @@ async function applyFullAccountState(dbId, accountState) {
|
|
|
9111
9166
|
}
|
|
9112
9167
|
catch (error) {
|
|
9113
9168
|
logWebStoreError(error, `Error applying full account state`);
|
|
9114
|
-
throw error;
|
|
9115
9169
|
}
|
|
9116
9170
|
}
|
|
9117
9171
|
async function upsertAccountRecord(dbId, accountId, codeRoot, storageRoot, vaultRoot, nonce, committed, commitment, accountSeed, watched) {
|
|
@@ -9516,33 +9570,36 @@ async function getAccountIdByKeyCommitment(dbId, pubKeyCommitmentHex) {
|
|
|
9516
9570
|
}
|
|
9517
9571
|
}
|
|
9518
9572
|
|
|
9519
|
-
async function insertBlockHeader(dbId, blockNum, header, hasClientNotes) {
|
|
9573
|
+
async function insertBlockHeader(dbId, blockNum, header, hasClientNotes, nodeIds, nodes) {
|
|
9520
9574
|
try {
|
|
9521
9575
|
const db = getDatabase(dbId);
|
|
9522
|
-
|
|
9576
|
+
if (nodeIds.length !== nodes.length) {
|
|
9577
|
+
throw new Error("nodeIds and nodes arrays must be of the same length");
|
|
9578
|
+
}
|
|
9579
|
+
const headerData = {
|
|
9523
9580
|
blockNum: blockNum,
|
|
9524
9581
|
header,
|
|
9525
9582
|
hasClientNotes: hasClientNotes.toString(),
|
|
9526
9583
|
};
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
//
|
|
9532
|
-
//
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
if
|
|
9544
|
-
|
|
9545
|
-
|
|
9584
|
+
const nodeData = nodes.map((node, index) => ({
|
|
9585
|
+
id: Number(nodeIds[index]),
|
|
9586
|
+
node: node,
|
|
9587
|
+
}));
|
|
9588
|
+
// Persist the header and its MMR nodes in one transaction so a header is never stored
|
|
9589
|
+
// without the nodes that rebuild its `PartialMmr` (mirrors miden-client's atomic insert).
|
|
9590
|
+
await db.dexie.transaction("rw", db.blockHeaders, db.partialBlockchainNodes, async () => {
|
|
9591
|
+
// Header: INSERT OR IGNORE, then one-way upgrade `has_client_notes` to true (load-bearing:
|
|
9592
|
+
// `get_tracked_block_header_numbers` filters on it to seed forest-node tracking).
|
|
9593
|
+
await db.blockHeaders.add(headerData).catch(async (err) => {
|
|
9594
|
+
if (!isConstraintError(err))
|
|
9595
|
+
throw err;
|
|
9596
|
+
if (hasClientNotes) {
|
|
9597
|
+
await db.blockHeaders.update(blockNum, { hasClientNotes: "true" });
|
|
9598
|
+
}
|
|
9599
|
+
});
|
|
9600
|
+
// Nodes: insert-if-missing with overwrite protection; a conflicting value throws and
|
|
9601
|
+
// aborts the transaction, rolling back the header write too.
|
|
9602
|
+
await putPartialBlockchainNodesNoOverwrite(db.partialBlockchainNodes, nodeData);
|
|
9546
9603
|
});
|
|
9547
9604
|
}
|
|
9548
9605
|
catch (err) {
|
|
@@ -9554,25 +9611,6 @@ function isConstraintError(err) {
|
|
|
9554
9611
|
const e = err;
|
|
9555
9612
|
return e?.name === "ConstraintError" || e?.inner?.name === "ConstraintError";
|
|
9556
9613
|
}
|
|
9557
|
-
async function insertPartialBlockchainNodes(dbId, ids, nodes) {
|
|
9558
|
-
try {
|
|
9559
|
-
const db = getDatabase(dbId);
|
|
9560
|
-
if (ids.length !== nodes.length) {
|
|
9561
|
-
throw new Error("ids and nodes arrays must be of the same length");
|
|
9562
|
-
}
|
|
9563
|
-
if (ids.length === 0) {
|
|
9564
|
-
return;
|
|
9565
|
-
}
|
|
9566
|
-
const data = nodes.map((node, index) => ({
|
|
9567
|
-
id: Number(ids[index]),
|
|
9568
|
-
node: node,
|
|
9569
|
-
}));
|
|
9570
|
-
await db.partialBlockchainNodes.bulkPut(data);
|
|
9571
|
-
}
|
|
9572
|
-
catch (err) {
|
|
9573
|
-
logWebStoreError(err, "Failed to insert partial blockchain nodes");
|
|
9574
|
-
}
|
|
9575
|
-
}
|
|
9576
9614
|
async function getBlockHeaders(dbId, blockNumbers) {
|
|
9577
9615
|
try {
|
|
9578
9616
|
const db = getDatabase(dbId);
|
|
@@ -9630,33 +9668,6 @@ async function getTrackedBlockHeaderNumbers(dbId) {
|
|
|
9630
9668
|
logWebStoreError(err, "Failed to get tracked block header numbers");
|
|
9631
9669
|
}
|
|
9632
9670
|
}
|
|
9633
|
-
/**
|
|
9634
|
-
* Returns the blockchain peaks at the current sync height. Peaks live on the
|
|
9635
|
-
* `blockHeaders` row at `stateSync.blockNum` — the block that was the chain
|
|
9636
|
-
* tip when its sync ran. Returns `{ blockNum, peaks: undefined }` if the
|
|
9637
|
-
* stateSync row is missing or if that block was inserted via backfill
|
|
9638
|
-
* (which leaves `partialBlockchainPeaks` unset).
|
|
9639
|
-
*/
|
|
9640
|
-
async function getCurrentBlockchainPeaks(dbId) {
|
|
9641
|
-
try {
|
|
9642
|
-
const db = getDatabase(dbId);
|
|
9643
|
-
const stateSyncRow = await db.stateSync.get(1);
|
|
9644
|
-
if (stateSyncRow == undefined) {
|
|
9645
|
-
return { blockNum: 0, peaks: undefined };
|
|
9646
|
-
}
|
|
9647
|
-
const header = await db.blockHeaders.get(stateSyncRow.blockNum);
|
|
9648
|
-
if (header == undefined || header.partialBlockchainPeaks == undefined) {
|
|
9649
|
-
return { blockNum: stateSyncRow.blockNum, peaks: undefined };
|
|
9650
|
-
}
|
|
9651
|
-
return {
|
|
9652
|
-
blockNum: stateSyncRow.blockNum,
|
|
9653
|
-
peaks: uint8ArrayToBase64(header.partialBlockchainPeaks),
|
|
9654
|
-
};
|
|
9655
|
-
}
|
|
9656
|
-
catch (err) {
|
|
9657
|
-
logWebStoreError(err, "Failed to get current blockchain peaks");
|
|
9658
|
-
}
|
|
9659
|
-
}
|
|
9660
9671
|
async function getPartialBlockchainNodesAll(dbId) {
|
|
9661
9672
|
try {
|
|
9662
9673
|
const db = getDatabase(dbId);
|
|
@@ -9698,9 +9709,9 @@ async function pruneIrrelevantBlocks(dbId, blocksToUntrack, nodeIdsToRemove) {
|
|
|
9698
9709
|
try {
|
|
9699
9710
|
const db = getDatabase(dbId);
|
|
9700
9711
|
const numericNodeIds = nodeIdsToRemove.map(Number);
|
|
9701
|
-
const syncHeight = await db.
|
|
9712
|
+
const syncHeight = await db.blockchainCheckpoint.get(1);
|
|
9702
9713
|
if (syncHeight == undefined) {
|
|
9703
|
-
throw Error("SyncHeight is undefined -- is the
|
|
9714
|
+
throw Error("SyncHeight is undefined -- is the blockchain_checkpoint table empty?");
|
|
9704
9715
|
}
|
|
9705
9716
|
await db.dexie.transaction("rw", db.blockHeaders, db.partialBlockchainNodes, async () => {
|
|
9706
9717
|
// 1. Delete stale MMR authentication nodes.
|
|
@@ -10033,7 +10044,6 @@ async function upsertInputNote(dbId, detailsCommitment, noteId, assets, attachme
|
|
|
10033
10044
|
}
|
|
10034
10045
|
catch (error) {
|
|
10035
10046
|
logWebStoreError(error, `Error inserting note: ${detailsCommitment}`);
|
|
10036
|
-
throw error;
|
|
10037
10047
|
}
|
|
10038
10048
|
};
|
|
10039
10049
|
return db.dexie.transaction("rw", db.inputNotes, db.notesScripts, doWork);
|
|
@@ -10117,7 +10127,6 @@ async function upsertOutputNote(dbId, detailsCommitment, noteId, assets, attachm
|
|
|
10117
10127
|
}
|
|
10118
10128
|
catch (error) {
|
|
10119
10129
|
logWebStoreError(error, `Error inserting note: ${detailsCommitment}`);
|
|
10120
|
-
throw error;
|
|
10121
10130
|
}
|
|
10122
10131
|
};
|
|
10123
10132
|
return db.dexie.transaction("rw", db.outputNotes, db.notesScripts, doWork);
|
|
@@ -10360,7 +10369,6 @@ async function insertTransactionScript(dbId, scriptRoot, txScript, tx) {
|
|
|
10360
10369
|
}
|
|
10361
10370
|
catch (error) {
|
|
10362
10371
|
logWebStoreError(error, "Failed to insert transaction script");
|
|
10363
|
-
throw error;
|
|
10364
10372
|
}
|
|
10365
10373
|
}
|
|
10366
10374
|
async function upsertTransactionRecord(dbId, transactionId, details, blockNum, statusVariant, status, scriptRoot, tx) {
|
|
@@ -10378,82 +10386,8 @@ async function upsertTransactionRecord(dbId, transactionId, details, blockNum, s
|
|
|
10378
10386
|
}
|
|
10379
10387
|
catch (err) {
|
|
10380
10388
|
logWebStoreError(err, "Failed to insert proven transaction data");
|
|
10381
|
-
throw err;
|
|
10382
10389
|
}
|
|
10383
10390
|
}
|
|
10384
|
-
/**
|
|
10385
|
-
* Applies a batch of transaction updates atomically inside a single Dexie transaction.
|
|
10386
|
-
*
|
|
10387
|
-
* All sub-operations that internally call `db.dexie.transaction()` are auto-joined by Dexie
|
|
10388
|
-
* as nested sub-transactions when run inside this parent transaction, provided the parent
|
|
10389
|
-
* scope is a superset of every sub-transaction scope.
|
|
10390
|
-
*/
|
|
10391
|
-
async function applyTransactionBatch(dbId, payloads) {
|
|
10392
|
-
const db = getDatabase(dbId);
|
|
10393
|
-
await db.dexie.transaction("rw", [
|
|
10394
|
-
db.transactions,
|
|
10395
|
-
db.transactionScripts,
|
|
10396
|
-
db.latestAccountStorages,
|
|
10397
|
-
db.historicalAccountStorages,
|
|
10398
|
-
db.latestStorageMapEntries,
|
|
10399
|
-
db.historicalStorageMapEntries,
|
|
10400
|
-
db.latestAccountAssets,
|
|
10401
|
-
db.historicalAccountAssets,
|
|
10402
|
-
db.latestAccountHeaders,
|
|
10403
|
-
db.historicalAccountHeaders,
|
|
10404
|
-
db.inputNotes,
|
|
10405
|
-
db.outputNotes,
|
|
10406
|
-
db.notesScripts,
|
|
10407
|
-
db.tags,
|
|
10408
|
-
], async () => {
|
|
10409
|
-
for (const payload of payloads) {
|
|
10410
|
-
// 1. Insert the transaction record (script first, then record)
|
|
10411
|
-
const rec = payload.transactionRecord;
|
|
10412
|
-
if (rec.scriptRoot && rec.txScript) {
|
|
10413
|
-
await insertTransactionScript(dbId, rec.scriptRoot, rec.txScript);
|
|
10414
|
-
}
|
|
10415
|
-
await upsertTransactionRecord(dbId, rec.id, rec.details, rec.blockNum, rec.statusVariant, rec.status, rec.scriptRoot);
|
|
10416
|
-
// 2. Apply account state (full or delta)
|
|
10417
|
-
const acct = payload.accountState;
|
|
10418
|
-
if (acct.kind === "full") {
|
|
10419
|
-
await applyFullAccountState(dbId, acct.account);
|
|
10420
|
-
}
|
|
10421
|
-
else {
|
|
10422
|
-
await applyTransactionDelta(dbId, acct.accountId, acct.nonce, acct.updatedSlots, acct.changedMapEntries, acct.changedAssets, acct.codeRoot, acct.storageRoot, acct.vaultRoot, acct.committed, acct.commitment);
|
|
10423
|
-
}
|
|
10424
|
-
// 3. Upsert input and output notes
|
|
10425
|
-
for (const note of payload.inputNotes) {
|
|
10426
|
-
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);
|
|
10427
|
-
}
|
|
10428
|
-
for (const note of payload.outputNotes) {
|
|
10429
|
-
await upsertOutputNote(dbId, note.detailsCommitment, note.noteId, note.noteAssets, note.attachments, note.recipientDigest, note.metadata, note.nullifier, note.expectedHeight, note.stateDiscriminant, note.state);
|
|
10430
|
-
}
|
|
10431
|
-
// 4. Add note tags (deduplicated within the transaction)
|
|
10432
|
-
for (const tagEntry of payload.tags) {
|
|
10433
|
-
const tagArray = new Uint8Array(tagEntry.tag);
|
|
10434
|
-
const tagBase64 = uint8ArrayToBase64(tagArray);
|
|
10435
|
-
const sourceNoteId = tagEntry.sourceNoteId ?? "";
|
|
10436
|
-
const sourceAccountId = tagEntry.sourceAccountId ?? "";
|
|
10437
|
-
const sourceSubscriptionKey = tagEntry.sourceSubscriptionKey ?? "";
|
|
10438
|
-
// Check for existing tag to avoid duplicates (mirrors the Rust add_note_tag logic).
|
|
10439
|
-
// sourceSubscriptionKey is unindexed, so filter on it in memory — distinct
|
|
10440
|
-
// subscriptions may share a tag and must remain separate rows.
|
|
10441
|
-
const existing = await db.tags
|
|
10442
|
-
.where({ tag: tagBase64, sourceNoteId, sourceAccountId })
|
|
10443
|
-
.filter((t) => (t.sourceSubscriptionKey ?? "") === sourceSubscriptionKey)
|
|
10444
|
-
.first();
|
|
10445
|
-
if (!existing) {
|
|
10446
|
-
await db.tags.add({
|
|
10447
|
-
tag: tagBase64,
|
|
10448
|
-
sourceNoteId,
|
|
10449
|
-
sourceAccountId,
|
|
10450
|
-
sourceSubscriptionKey,
|
|
10451
|
-
});
|
|
10452
|
-
}
|
|
10453
|
-
}
|
|
10454
|
-
}
|
|
10455
|
-
});
|
|
10456
|
-
}
|
|
10457
10391
|
|
|
10458
10392
|
async function getNoteTags(dbId) {
|
|
10459
10393
|
try {
|
|
@@ -10479,7 +10413,7 @@ async function getNoteTags(dbId) {
|
|
|
10479
10413
|
async function getSyncHeight(dbId) {
|
|
10480
10414
|
try {
|
|
10481
10415
|
const db = getDatabase(dbId);
|
|
10482
|
-
const record = await db.
|
|
10416
|
+
const record = await db.blockchainCheckpoint.get(1);
|
|
10483
10417
|
if (record) {
|
|
10484
10418
|
let data = {
|
|
10485
10419
|
blockNum: record.blockNum,
|
|
@@ -10494,6 +10428,25 @@ async function getSyncHeight(dbId) {
|
|
|
10494
10428
|
logWebStoreError(error, "Error fetching sync height");
|
|
10495
10429
|
}
|
|
10496
10430
|
}
|
|
10431
|
+
async function getCurrentBlockchainPeaks(dbId) {
|
|
10432
|
+
try {
|
|
10433
|
+
const db = getDatabase(dbId);
|
|
10434
|
+
const record = await db.blockchainCheckpoint.get(1);
|
|
10435
|
+
if (!record || record.partialBlockchainPeaks.length === 0) {
|
|
10436
|
+
return {
|
|
10437
|
+
blockNum: record?.blockNum ?? 0,
|
|
10438
|
+
peaks: uint8ArrayToBase64(new Uint8Array()),
|
|
10439
|
+
};
|
|
10440
|
+
}
|
|
10441
|
+
return {
|
|
10442
|
+
blockNum: record.blockNum,
|
|
10443
|
+
peaks: uint8ArrayToBase64(record.partialBlockchainPeaks),
|
|
10444
|
+
};
|
|
10445
|
+
}
|
|
10446
|
+
catch (error) {
|
|
10447
|
+
logWebStoreError(error, "Error fetching current blockchain peaks");
|
|
10448
|
+
}
|
|
10449
|
+
}
|
|
10497
10450
|
async function addNoteTag(dbId, tag, sourceNoteId, sourceAccountId, sourceSubscriptionKey) {
|
|
10498
10451
|
try {
|
|
10499
10452
|
const db = getDatabase(dbId);
|
|
@@ -10534,10 +10487,10 @@ async function removeNoteTag(dbId, tag, sourceNoteId, sourceAccountId, sourceSub
|
|
|
10534
10487
|
}
|
|
10535
10488
|
async function applyStateSync(dbId, stateUpdate) {
|
|
10536
10489
|
const db = getDatabase(dbId);
|
|
10537
|
-
const { blockNum, flattenedNewBlockHeaders,
|
|
10490
|
+
const { blockNum, flattenedNewBlockHeaders, newPeaks, newBlockNums, blockHasRelevantNotes, serializedNodeIds, serializedNodes, committedNoteTagSources, serializedInputNotes, serializedOutputNotes, accountUpdates, transactionUpdates, } = stateUpdate;
|
|
10538
10491
|
const newBlockHeaders = reconstructFlattenedVec(flattenedNewBlockHeaders);
|
|
10539
10492
|
const tablesToAccess = [
|
|
10540
|
-
db.
|
|
10493
|
+
db.blockchainCheckpoint,
|
|
10541
10494
|
db.inputNotes,
|
|
10542
10495
|
db.outputNotes,
|
|
10543
10496
|
db.notesScripts,
|
|
@@ -10585,46 +10538,41 @@ async function applyStateSync(dbId, stateUpdate) {
|
|
|
10585
10538
|
accountCommitment: accountUpdate.accountCommitment,
|
|
10586
10539
|
accountSeed: accountUpdate.accountSeed,
|
|
10587
10540
|
}))),
|
|
10588
|
-
updateSyncHeight(tx, blockNum),
|
|
10541
|
+
updateSyncHeight(tx, blockNum, newPeaks),
|
|
10589
10542
|
updatePartialBlockchainNodes(tx, serializedNodeIds, serializedNodes),
|
|
10590
10543
|
updateCommittedNoteTags(tx, committedNoteTagSources),
|
|
10591
10544
|
Promise.all(newBlockHeaders.map((newBlockHeader, i) => {
|
|
10592
|
-
|
|
10593
|
-
// blockNum matches the new sync height). That row is always
|
|
10594
|
-
// present in this iteration because `partial_blockchain_updates`
|
|
10595
|
-
// includes the chain tip header by construction.
|
|
10596
|
-
// TODO: potentially move this to be under the sync state info table
|
|
10597
|
-
// as currently done in SQLite
|
|
10598
|
-
const peaks = newBlockNums[i] === blockNum ? partialBlockchainPeaks : undefined;
|
|
10599
|
-
return updateBlockHeader(tx, newBlockNums[i], newBlockHeader, blockHasRelevantNotes[i] == 1, peaks);
|
|
10545
|
+
return updateBlockHeader(tx, newBlockNums[i], newBlockHeader, blockHasRelevantNotes[i] == 1);
|
|
10600
10546
|
})),
|
|
10601
10547
|
]);
|
|
10602
10548
|
});
|
|
10603
10549
|
}
|
|
10604
|
-
|
|
10605
|
-
* Advances `stateSync.blockNum` only when moving forward. Mirrors SQLite's
|
|
10606
|
-
* `UPDATE blockchain_checkpoint ... WHERE block_num < ?`.
|
|
10607
|
-
*/
|
|
10608
|
-
async function updateSyncHeight(tx, blockNum) {
|
|
10550
|
+
async function updateSyncHeight(tx, blockNum, newPeaks) {
|
|
10609
10551
|
try {
|
|
10610
|
-
|
|
10552
|
+
// Only update if moving forward to prevent race conditions.
|
|
10553
|
+
// Peaks travel with blockNum: skipping the height update also skips the
|
|
10554
|
+
// peaks update, by design — a backward-going sync must not overwrite the
|
|
10555
|
+
// newer peaks with older ones.
|
|
10556
|
+
const current = await tx.blockchainCheckpoint.get(1);
|
|
10611
10557
|
if (!current || current.blockNum < blockNum) {
|
|
10612
|
-
await tx.
|
|
10558
|
+
await tx.blockchainCheckpoint.update(1, {
|
|
10613
10559
|
blockNum: blockNum,
|
|
10560
|
+
partialBlockchainPeaks: newPeaks,
|
|
10614
10561
|
});
|
|
10615
10562
|
}
|
|
10616
10563
|
}
|
|
10617
10564
|
catch (error) {
|
|
10565
|
+
// logWebStoreError always re-throws, so a failure here aborts the whole
|
|
10566
|
+
// Dexie rw transaction rather than silently committing a partial update.
|
|
10618
10567
|
logWebStoreError(error, "Failed to update sync height");
|
|
10619
10568
|
}
|
|
10620
10569
|
}
|
|
10621
|
-
async function updateBlockHeader(tx, blockNum, blockHeader, hasClientNotes
|
|
10570
|
+
async function updateBlockHeader(tx, blockNum, blockHeader, hasClientNotes) {
|
|
10622
10571
|
try {
|
|
10623
10572
|
const data = {
|
|
10624
10573
|
blockNum: blockNum,
|
|
10625
10574
|
header: blockHeader,
|
|
10626
10575
|
hasClientNotes: hasClientNotes.toString(),
|
|
10627
|
-
...(partialBlockchainPeaks !== undefined && { partialBlockchainPeaks }),
|
|
10628
10576
|
};
|
|
10629
10577
|
const existingBlockHeader = await tx.blockHeaders.get(blockNum);
|
|
10630
10578
|
if (!existingBlockHeader) {
|
|
@@ -10648,8 +10596,9 @@ async function updatePartialBlockchainNodes(tx, nodeIndexes, nodes) {
|
|
|
10648
10596
|
id: Number(nodeIndexes[index]),
|
|
10649
10597
|
node: node,
|
|
10650
10598
|
}));
|
|
10651
|
-
//
|
|
10652
|
-
await tx
|
|
10599
|
+
// Insert missing nodes and reject conflicting writes
|
|
10600
|
+
await putPartialBlockchainNodesNoOverwrite(tx
|
|
10601
|
+
.partialBlockchainNodes, data);
|
|
10653
10602
|
}
|
|
10654
10603
|
catch (err) {
|
|
10655
10604
|
logWebStoreError(err, "Failed to update partial blockchain nodes");
|
|
@@ -10873,17 +10822,6 @@ class Account {
|
|
|
10873
10822
|
const ret = wasm.account_isFaucet(this.__wbg_ptr);
|
|
10874
10823
|
return ret !== 0;
|
|
10875
10824
|
}
|
|
10876
|
-
/**
|
|
10877
|
-
* Returns true if this is a network account.
|
|
10878
|
-
*
|
|
10879
|
-
* A network account is a public account whose storage
|
|
10880
|
-
* carries the standardized network-account note-script allowlist slot.
|
|
10881
|
-
* @returns {boolean}
|
|
10882
|
-
*/
|
|
10883
|
-
isNetworkAccount() {
|
|
10884
|
-
const ret = wasm.account_isNetworkAccount(this.__wbg_ptr);
|
|
10885
|
-
return ret !== 0;
|
|
10886
|
-
}
|
|
10887
10825
|
/**
|
|
10888
10826
|
* Returns true if the account has not yet been committed to the chain.
|
|
10889
10827
|
* @returns {boolean}
|
|
@@ -10916,20 +10854,6 @@ class Account {
|
|
|
10916
10854
|
const ret = wasm.account_isRegularAccount(this.__wbg_ptr);
|
|
10917
10855
|
return ret !== 0;
|
|
10918
10856
|
}
|
|
10919
|
-
/**
|
|
10920
|
-
* Returns the note-script roots this network account is allowed to
|
|
10921
|
-
* consume, or `undefined` if this is not a network account.
|
|
10922
|
-
* @returns {Word[] | undefined}
|
|
10923
|
-
*/
|
|
10924
|
-
networkNoteAllowlist() {
|
|
10925
|
-
const ret = wasm.account_networkNoteAllowlist(this.__wbg_ptr);
|
|
10926
|
-
let v1;
|
|
10927
|
-
if (ret[0] !== 0) {
|
|
10928
|
-
v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
10929
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
10930
|
-
}
|
|
10931
|
-
return v1;
|
|
10932
|
-
}
|
|
10933
10857
|
/**
|
|
10934
10858
|
* Returns the account nonce, which is incremented on every state update.
|
|
10935
10859
|
* @returns {Felt}
|
|
@@ -11283,6 +11207,18 @@ class AccountComponent {
|
|
|
11283
11207
|
}
|
|
11284
11208
|
return AccountComponent.__wrap(ret[0]);
|
|
11285
11209
|
}
|
|
11210
|
+
/**
|
|
11211
|
+
* Returns the exact compiled code used by this component.
|
|
11212
|
+
*
|
|
11213
|
+
* Link this code when compiling scripts that invoke the component. Rebuilding a library from
|
|
11214
|
+
* the original source can produce different procedure identities than the code installed on
|
|
11215
|
+
* the account.
|
|
11216
|
+
* @returns {AccountComponentCode}
|
|
11217
|
+
*/
|
|
11218
|
+
componentCode() {
|
|
11219
|
+
const ret = wasm.accountcomponent_componentCode(this.__wbg_ptr);
|
|
11220
|
+
return AccountComponentCode.__wrap(ret);
|
|
11221
|
+
}
|
|
11286
11222
|
/**
|
|
11287
11223
|
* @param {Word} commitment
|
|
11288
11224
|
* @param {AuthScheme} auth_scheme
|
|
@@ -11309,42 +11245,6 @@ class AccountComponent {
|
|
|
11309
11245
|
}
|
|
11310
11246
|
return AccountComponent.__wrap(ret[0]);
|
|
11311
11247
|
}
|
|
11312
|
-
/**
|
|
11313
|
-
* Builds the auth component for a network account.
|
|
11314
|
-
*
|
|
11315
|
-
* A network account is a public account carrying this component: its
|
|
11316
|
-
* note-script allowlist is the standardized storage slot the node's
|
|
11317
|
-
* network-transaction builder inspects to identify the account as a network
|
|
11318
|
-
* account and route matching notes to it for auto-consumption. The account
|
|
11319
|
-
* may only consume notes whose script root is in `allowedNoteScriptRoots`
|
|
11320
|
-
* (obtain a root via `NoteScript.root()`).
|
|
11321
|
-
*
|
|
11322
|
-
* `allowedTxScriptRoots` optionally allowlists transaction script roots
|
|
11323
|
-
* (from `TransactionScript.root()`) the account will execute. When omitted
|
|
11324
|
-
* or empty, the account permits no transaction scripts and deploys and
|
|
11325
|
-
* advances via scriptless transactions only. Allowlist a script root only
|
|
11326
|
-
* if the script's effect is safe for *every* possible input: a root pins
|
|
11327
|
-
* the script's code but not its arguments or advice inputs, which the
|
|
11328
|
-
* (arbitrary) transaction submitter controls.
|
|
11329
|
-
*
|
|
11330
|
-
* # Errors
|
|
11331
|
-
* Errors if `allowedNoteScriptRoots` is empty: a network account with no
|
|
11332
|
-
* allowlisted note scripts could never consume a note.
|
|
11333
|
-
* @param {Word[]} allowed_note_script_roots
|
|
11334
|
-
* @param {Word[] | null} [allowed_tx_script_roots]
|
|
11335
|
-
* @returns {AccountComponent}
|
|
11336
|
-
*/
|
|
11337
|
-
static createNetworkAuth(allowed_note_script_roots, allowed_tx_script_roots) {
|
|
11338
|
-
const ptr0 = passArrayJsValueToWasm0(allowed_note_script_roots, wasm.__wbindgen_malloc);
|
|
11339
|
-
const len0 = WASM_VECTOR_LEN;
|
|
11340
|
-
var ptr1 = isLikeNone(allowed_tx_script_roots) ? 0 : passArrayJsValueToWasm0(allowed_tx_script_roots, wasm.__wbindgen_malloc);
|
|
11341
|
-
var len1 = WASM_VECTOR_LEN;
|
|
11342
|
-
const ret = wasm.accountcomponent_createNetworkAuth(ptr0, len0, ptr1, len1);
|
|
11343
|
-
if (ret[2]) {
|
|
11344
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
11345
|
-
}
|
|
11346
|
-
return AccountComponent.__wrap(ret[0]);
|
|
11347
|
-
}
|
|
11348
11248
|
/**
|
|
11349
11249
|
* Creates an account component from a compiled library and storage slots.
|
|
11350
11250
|
* @param {Library} library
|
|
@@ -11471,8 +11371,10 @@ if (Symbol.dispose) AccountComponentCode.prototype[Symbol.dispose] = AccountComp
|
|
|
11471
11371
|
* `AccountDelta` stores the differences between two account states.
|
|
11472
11372
|
*
|
|
11473
11373
|
* The differences are represented as follows:
|
|
11474
|
-
* - `storage`: an `
|
|
11475
|
-
*
|
|
11374
|
+
* - `storage`: an `AccountStoragePatch` with the absolute final values of changed storage slots
|
|
11375
|
+
* (storage changes have identical semantics in the delta and patch models).
|
|
11376
|
+
* - `vault`: an `AccountVaultDelta` object that contains the relative changes to the account
|
|
11377
|
+
* vault.
|
|
11476
11378
|
* - `nonce`: if the nonce of the account has changed, the new nonce is stored here.
|
|
11477
11379
|
*/
|
|
11478
11380
|
class AccountDelta {
|
|
@@ -11538,12 +11440,12 @@ class AccountDelta {
|
|
|
11538
11440
|
return ret;
|
|
11539
11441
|
}
|
|
11540
11442
|
/**
|
|
11541
|
-
* Returns the storage
|
|
11542
|
-
* @returns {
|
|
11443
|
+
* Returns the storage patch (storage changes are absolute in both models).
|
|
11444
|
+
* @returns {AccountStoragePatch}
|
|
11543
11445
|
*/
|
|
11544
11446
|
storage() {
|
|
11545
11447
|
const ret = wasm.accountdelta_storage(this.__wbg_ptr);
|
|
11546
|
-
return
|
|
11448
|
+
return AccountStoragePatch.__wrap(ret);
|
|
11547
11449
|
}
|
|
11548
11450
|
/**
|
|
11549
11451
|
* Returns the vault delta.
|
|
@@ -11938,6 +11840,90 @@ const AccountInterface = Object.freeze({
|
|
|
11938
11840
|
BasicWallet: 0, "0": "BasicWallet",
|
|
11939
11841
|
});
|
|
11940
11842
|
|
|
11843
|
+
/**
|
|
11844
|
+
* Describes the new absolute account state produced by a transaction.
|
|
11845
|
+
*/
|
|
11846
|
+
class AccountPatch {
|
|
11847
|
+
static __wrap(ptr) {
|
|
11848
|
+
ptr = ptr >>> 0;
|
|
11849
|
+
const obj = Object.create(AccountPatch.prototype);
|
|
11850
|
+
obj.__wbg_ptr = ptr;
|
|
11851
|
+
AccountPatchFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
11852
|
+
return obj;
|
|
11853
|
+
}
|
|
11854
|
+
__destroy_into_raw() {
|
|
11855
|
+
const ptr = this.__wbg_ptr;
|
|
11856
|
+
this.__wbg_ptr = 0;
|
|
11857
|
+
AccountPatchFinalization.unregister(this);
|
|
11858
|
+
return ptr;
|
|
11859
|
+
}
|
|
11860
|
+
free() {
|
|
11861
|
+
const ptr = this.__destroy_into_raw();
|
|
11862
|
+
wasm.__wbg_accountpatch_free(ptr, 0);
|
|
11863
|
+
}
|
|
11864
|
+
/**
|
|
11865
|
+
* Deserializes an account patch from bytes.
|
|
11866
|
+
* @param {Uint8Array} bytes
|
|
11867
|
+
* @returns {AccountPatch}
|
|
11868
|
+
*/
|
|
11869
|
+
static deserialize(bytes) {
|
|
11870
|
+
const ret = wasm.accountpatch_deserialize(bytes);
|
|
11871
|
+
if (ret[2]) {
|
|
11872
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
11873
|
+
}
|
|
11874
|
+
return AccountPatch.__wrap(ret[0]);
|
|
11875
|
+
}
|
|
11876
|
+
/**
|
|
11877
|
+
* Returns the final nonce, or `None` if it was unchanged.
|
|
11878
|
+
* @returns {Felt | undefined}
|
|
11879
|
+
*/
|
|
11880
|
+
finalNonce() {
|
|
11881
|
+
const ret = wasm.accountpatch_finalNonce(this.__wbg_ptr);
|
|
11882
|
+
return ret === 0 ? undefined : Felt.__wrap(ret);
|
|
11883
|
+
}
|
|
11884
|
+
/**
|
|
11885
|
+
* Returns the affected account ID.
|
|
11886
|
+
* @returns {AccountId}
|
|
11887
|
+
*/
|
|
11888
|
+
id() {
|
|
11889
|
+
const ret = wasm.accountpatch_id(this.__wbg_ptr);
|
|
11890
|
+
return AccountId.__wrap(ret);
|
|
11891
|
+
}
|
|
11892
|
+
/**
|
|
11893
|
+
* Returns true if this patch contains no state changes.
|
|
11894
|
+
* @returns {boolean}
|
|
11895
|
+
*/
|
|
11896
|
+
isEmpty() {
|
|
11897
|
+
const ret = wasm.accountpatch_isEmpty(this.__wbg_ptr);
|
|
11898
|
+
return ret !== 0;
|
|
11899
|
+
}
|
|
11900
|
+
/**
|
|
11901
|
+
* Serializes the account patch into bytes.
|
|
11902
|
+
* @returns {Uint8Array}
|
|
11903
|
+
*/
|
|
11904
|
+
serialize() {
|
|
11905
|
+
const ret = wasm.accountpatch_serialize(this.__wbg_ptr);
|
|
11906
|
+
return ret;
|
|
11907
|
+
}
|
|
11908
|
+
/**
|
|
11909
|
+
* Returns the account storage patch.
|
|
11910
|
+
* @returns {AccountStoragePatch}
|
|
11911
|
+
*/
|
|
11912
|
+
storage() {
|
|
11913
|
+
const ret = wasm.accountpatch_storage(this.__wbg_ptr);
|
|
11914
|
+
return AccountStoragePatch.__wrap(ret);
|
|
11915
|
+
}
|
|
11916
|
+
/**
|
|
11917
|
+
* Returns the account vault patch.
|
|
11918
|
+
* @returns {AccountVaultPatch}
|
|
11919
|
+
*/
|
|
11920
|
+
vault() {
|
|
11921
|
+
const ret = wasm.accountpatch_vault(this.__wbg_ptr);
|
|
11922
|
+
return AccountVaultPatch.__wrap(ret);
|
|
11923
|
+
}
|
|
11924
|
+
}
|
|
11925
|
+
if (Symbol.dispose) AccountPatch.prototype[Symbol.dispose] = AccountPatch.prototype.free;
|
|
11926
|
+
|
|
11941
11927
|
/**
|
|
11942
11928
|
* Proof of existence of an account's state at a specific block number, as returned by the node.
|
|
11943
11929
|
*
|
|
@@ -12411,74 +12397,6 @@ class AccountStorage {
|
|
|
12411
12397
|
}
|
|
12412
12398
|
if (Symbol.dispose) AccountStorage.prototype[Symbol.dispose] = AccountStorage.prototype.free;
|
|
12413
12399
|
|
|
12414
|
-
/**
|
|
12415
|
-
* `AccountStorageDelta` stores the differences between two states of account storage.
|
|
12416
|
-
*
|
|
12417
|
-
* The delta consists of two maps:
|
|
12418
|
-
* - A map containing the updates to value storage slots. The keys in this map are indexes of the
|
|
12419
|
-
* updated storage slots and the values are the new values for these slots.
|
|
12420
|
-
* - A map containing updates to storage maps. The keys in this map are indexes of the updated
|
|
12421
|
-
* storage slots and the values are corresponding storage map delta objects.
|
|
12422
|
-
*/
|
|
12423
|
-
class AccountStorageDelta {
|
|
12424
|
-
static __wrap(ptr) {
|
|
12425
|
-
ptr = ptr >>> 0;
|
|
12426
|
-
const obj = Object.create(AccountStorageDelta.prototype);
|
|
12427
|
-
obj.__wbg_ptr = ptr;
|
|
12428
|
-
AccountStorageDeltaFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
12429
|
-
return obj;
|
|
12430
|
-
}
|
|
12431
|
-
__destroy_into_raw() {
|
|
12432
|
-
const ptr = this.__wbg_ptr;
|
|
12433
|
-
this.__wbg_ptr = 0;
|
|
12434
|
-
AccountStorageDeltaFinalization.unregister(this);
|
|
12435
|
-
return ptr;
|
|
12436
|
-
}
|
|
12437
|
-
free() {
|
|
12438
|
-
const ptr = this.__destroy_into_raw();
|
|
12439
|
-
wasm.__wbg_accountstoragedelta_free(ptr, 0);
|
|
12440
|
-
}
|
|
12441
|
-
/**
|
|
12442
|
-
* Deserializes a storage delta from bytes.
|
|
12443
|
-
* @param {Uint8Array} bytes
|
|
12444
|
-
* @returns {AccountStorageDelta}
|
|
12445
|
-
*/
|
|
12446
|
-
static deserialize(bytes) {
|
|
12447
|
-
const ret = wasm.accountstoragedelta_deserialize(bytes);
|
|
12448
|
-
if (ret[2]) {
|
|
12449
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
12450
|
-
}
|
|
12451
|
-
return AccountStorageDelta.__wrap(ret[0]);
|
|
12452
|
-
}
|
|
12453
|
-
/**
|
|
12454
|
-
* Returns true if no storage slots are changed.
|
|
12455
|
-
* @returns {boolean}
|
|
12456
|
-
*/
|
|
12457
|
-
isEmpty() {
|
|
12458
|
-
const ret = wasm.accountstoragedelta_isEmpty(this.__wbg_ptr);
|
|
12459
|
-
return ret !== 0;
|
|
12460
|
-
}
|
|
12461
|
-
/**
|
|
12462
|
-
* Serializes the storage delta into bytes.
|
|
12463
|
-
* @returns {Uint8Array}
|
|
12464
|
-
*/
|
|
12465
|
-
serialize() {
|
|
12466
|
-
const ret = wasm.accountstoragedelta_serialize(this.__wbg_ptr);
|
|
12467
|
-
return ret;
|
|
12468
|
-
}
|
|
12469
|
-
/**
|
|
12470
|
-
* Returns the new values for modified storage slots.
|
|
12471
|
-
* @returns {Word[]}
|
|
12472
|
-
*/
|
|
12473
|
-
values() {
|
|
12474
|
-
const ret = wasm.accountstoragedelta_values(this.__wbg_ptr);
|
|
12475
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
12476
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
12477
|
-
return v1;
|
|
12478
|
-
}
|
|
12479
|
-
}
|
|
12480
|
-
if (Symbol.dispose) AccountStorageDelta.prototype[Symbol.dispose] = AccountStorageDelta.prototype.free;
|
|
12481
|
-
|
|
12482
12400
|
/**
|
|
12483
12401
|
* Storage visibility mode for an account.
|
|
12484
12402
|
*
|
|
@@ -12561,8 +12479,70 @@ class AccountStorageMode {
|
|
|
12561
12479
|
}
|
|
12562
12480
|
if (Symbol.dispose) AccountStorageMode.prototype[Symbol.dispose] = AccountStorageMode.prototype.free;
|
|
12563
12481
|
|
|
12564
|
-
|
|
12565
|
-
|
|
12482
|
+
/**
|
|
12483
|
+
* Absolute updates to named account storage slots.
|
|
12484
|
+
*/
|
|
12485
|
+
class AccountStoragePatch {
|
|
12486
|
+
static __wrap(ptr) {
|
|
12487
|
+
ptr = ptr >>> 0;
|
|
12488
|
+
const obj = Object.create(AccountStoragePatch.prototype);
|
|
12489
|
+
obj.__wbg_ptr = ptr;
|
|
12490
|
+
AccountStoragePatchFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
12491
|
+
return obj;
|
|
12492
|
+
}
|
|
12493
|
+
__destroy_into_raw() {
|
|
12494
|
+
const ptr = this.__wbg_ptr;
|
|
12495
|
+
this.__wbg_ptr = 0;
|
|
12496
|
+
AccountStoragePatchFinalization.unregister(this);
|
|
12497
|
+
return ptr;
|
|
12498
|
+
}
|
|
12499
|
+
free() {
|
|
12500
|
+
const ptr = this.__destroy_into_raw();
|
|
12501
|
+
wasm.__wbg_accountstoragepatch_free(ptr, 0);
|
|
12502
|
+
}
|
|
12503
|
+
/**
|
|
12504
|
+
* Deserializes a storage patch from bytes.
|
|
12505
|
+
* @param {Uint8Array} bytes
|
|
12506
|
+
* @returns {AccountStoragePatch}
|
|
12507
|
+
*/
|
|
12508
|
+
static deserialize(bytes) {
|
|
12509
|
+
const ret = wasm.accountstoragepatch_deserialize(bytes);
|
|
12510
|
+
if (ret[2]) {
|
|
12511
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
12512
|
+
}
|
|
12513
|
+
return AccountStoragePatch.__wrap(ret[0]);
|
|
12514
|
+
}
|
|
12515
|
+
/**
|
|
12516
|
+
* Returns true if no storage slots are changed.
|
|
12517
|
+
* @returns {boolean}
|
|
12518
|
+
*/
|
|
12519
|
+
isEmpty() {
|
|
12520
|
+
const ret = wasm.accountstoragepatch_isEmpty(this.__wbg_ptr);
|
|
12521
|
+
return ret !== 0;
|
|
12522
|
+
}
|
|
12523
|
+
/**
|
|
12524
|
+
* Serializes the storage patch into bytes.
|
|
12525
|
+
* @returns {Uint8Array}
|
|
12526
|
+
*/
|
|
12527
|
+
serialize() {
|
|
12528
|
+
const ret = wasm.accountstoragepatch_serialize(this.__wbg_ptr);
|
|
12529
|
+
return ret;
|
|
12530
|
+
}
|
|
12531
|
+
/**
|
|
12532
|
+
* Returns the final values for created or updated value slots.
|
|
12533
|
+
* @returns {Word[]}
|
|
12534
|
+
*/
|
|
12535
|
+
values() {
|
|
12536
|
+
const ret = wasm.accountstoragepatch_values(this.__wbg_ptr);
|
|
12537
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
12538
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
12539
|
+
return v1;
|
|
12540
|
+
}
|
|
12541
|
+
}
|
|
12542
|
+
if (Symbol.dispose) AccountStoragePatch.prototype[Symbol.dispose] = AccountStoragePatch.prototype.free;
|
|
12543
|
+
|
|
12544
|
+
class AccountStorageRequirements {
|
|
12545
|
+
static __wrap(ptr) {
|
|
12566
12546
|
ptr = ptr >>> 0;
|
|
12567
12547
|
const obj = Object.create(AccountStorageRequirements.prototype);
|
|
12568
12548
|
obj.__wbg_ptr = ptr;
|
|
@@ -12704,6 +12684,86 @@ class AccountVaultDelta {
|
|
|
12704
12684
|
}
|
|
12705
12685
|
if (Symbol.dispose) AccountVaultDelta.prototype[Symbol.dispose] = AccountVaultDelta.prototype.free;
|
|
12706
12686
|
|
|
12687
|
+
/**
|
|
12688
|
+
* Absolute updates to account vault entries.
|
|
12689
|
+
*/
|
|
12690
|
+
class AccountVaultPatch {
|
|
12691
|
+
static __wrap(ptr) {
|
|
12692
|
+
ptr = ptr >>> 0;
|
|
12693
|
+
const obj = Object.create(AccountVaultPatch.prototype);
|
|
12694
|
+
obj.__wbg_ptr = ptr;
|
|
12695
|
+
AccountVaultPatchFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
12696
|
+
return obj;
|
|
12697
|
+
}
|
|
12698
|
+
__destroy_into_raw() {
|
|
12699
|
+
const ptr = this.__wbg_ptr;
|
|
12700
|
+
this.__wbg_ptr = 0;
|
|
12701
|
+
AccountVaultPatchFinalization.unregister(this);
|
|
12702
|
+
return ptr;
|
|
12703
|
+
}
|
|
12704
|
+
free() {
|
|
12705
|
+
const ptr = this.__destroy_into_raw();
|
|
12706
|
+
wasm.__wbg_accountvaultpatch_free(ptr, 0);
|
|
12707
|
+
}
|
|
12708
|
+
/**
|
|
12709
|
+
* Deserializes a vault patch from bytes.
|
|
12710
|
+
* @param {Uint8Array} bytes
|
|
12711
|
+
* @returns {AccountVaultPatch}
|
|
12712
|
+
*/
|
|
12713
|
+
static deserialize(bytes) {
|
|
12714
|
+
const ret = wasm.accountvaultpatch_deserialize(bytes);
|
|
12715
|
+
if (ret[2]) {
|
|
12716
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
12717
|
+
}
|
|
12718
|
+
return AccountVaultPatch.__wrap(ret[0]);
|
|
12719
|
+
}
|
|
12720
|
+
/**
|
|
12721
|
+
* Returns true if no vault entries are changed.
|
|
12722
|
+
* @returns {boolean}
|
|
12723
|
+
*/
|
|
12724
|
+
isEmpty() {
|
|
12725
|
+
const ret = wasm.accountstoragepatch_isEmpty(this.__wbg_ptr);
|
|
12726
|
+
return ret !== 0;
|
|
12727
|
+
}
|
|
12728
|
+
/**
|
|
12729
|
+
* Returns the number of changed vault entries.
|
|
12730
|
+
* @returns {number}
|
|
12731
|
+
*/
|
|
12732
|
+
numAssets() {
|
|
12733
|
+
const ret = wasm.accountvaultpatch_numAssets(this.__wbg_ptr);
|
|
12734
|
+
return ret >>> 0;
|
|
12735
|
+
}
|
|
12736
|
+
/**
|
|
12737
|
+
* Returns the IDs of removed assets as their canonical words.
|
|
12738
|
+
* @returns {Word[]}
|
|
12739
|
+
*/
|
|
12740
|
+
removedAssetIds() {
|
|
12741
|
+
const ret = wasm.accountvaultpatch_removedAssetIds(this.__wbg_ptr);
|
|
12742
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
12743
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
12744
|
+
return v1;
|
|
12745
|
+
}
|
|
12746
|
+
/**
|
|
12747
|
+
* Serializes the vault patch into bytes.
|
|
12748
|
+
* @returns {Uint8Array}
|
|
12749
|
+
*/
|
|
12750
|
+
serialize() {
|
|
12751
|
+
const ret = wasm.accountvaultpatch_serialize(this.__wbg_ptr);
|
|
12752
|
+
return ret;
|
|
12753
|
+
}
|
|
12754
|
+
/**
|
|
12755
|
+
* Returns fungible assets whose final balance was added or updated.
|
|
12756
|
+
* @returns {FungibleAsset[]}
|
|
12757
|
+
*/
|
|
12758
|
+
updatedFungibleAssets() {
|
|
12759
|
+
const ret = wasm.accountvaultpatch_updatedFungibleAssets(this.__wbg_ptr);
|
|
12760
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
12761
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
12762
|
+
return v1;
|
|
12763
|
+
}
|
|
12764
|
+
}
|
|
12765
|
+
if (Symbol.dispose) AccountVaultPatch.prototype[Symbol.dispose] = AccountVaultPatch.prototype.free;
|
|
12766
|
+
|
|
12707
12767
|
/**
|
|
12708
12768
|
* Representation of a Miden address (account ID plus routing parameters).
|
|
12709
12769
|
*/
|
|
@@ -12895,13 +12955,6 @@ if (Symbol.dispose) AdviceInputs.prototype[Symbol.dispose] = AdviceInputs.protot
|
|
|
12895
12955
|
* Map of advice values keyed by words for script execution.
|
|
12896
12956
|
*/
|
|
12897
12957
|
class AdviceMap {
|
|
12898
|
-
static __wrap(ptr) {
|
|
12899
|
-
ptr = ptr >>> 0;
|
|
12900
|
-
const obj = Object.create(AdviceMap.prototype);
|
|
12901
|
-
obj.__wbg_ptr = ptr;
|
|
12902
|
-
AdviceMapFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
12903
|
-
return obj;
|
|
12904
|
-
}
|
|
12905
12958
|
__destroy_into_raw() {
|
|
12906
12959
|
const ptr = this.__wbg_ptr;
|
|
12907
12960
|
this.__wbg_ptr = 0;
|
|
@@ -12942,26 +12995,6 @@ class AdviceMap {
|
|
|
12942
12995
|
}
|
|
12943
12996
|
if (Symbol.dispose) AdviceMap.prototype[Symbol.dispose] = AdviceMap.prototype.free;
|
|
12944
12997
|
|
|
12945
|
-
/**
|
|
12946
|
-
* Whether a faucet's asset callbacks run when an asset is added to an account or a note.
|
|
12947
|
-
*
|
|
12948
|
-
* The flag is part of an asset's vault key, so two assets from the same faucet with different
|
|
12949
|
-
* flags occupy different vault slots and do not merge. Assets minted by a faucet that registers
|
|
12950
|
-
* transfer policies carry `Enabled`; everything else carries `Disabled`.
|
|
12951
|
-
* @enum {0 | 1}
|
|
12952
|
-
*/
|
|
12953
|
-
const AssetCallbackFlag = Object.freeze({
|
|
12954
|
-
/**
|
|
12955
|
-
* The faucet's callbacks are not invoked for this asset. This is the default for an asset
|
|
12956
|
-
* built via the `FungibleAsset` constructor.
|
|
12957
|
-
*/
|
|
12958
|
-
Disabled: 0, "0": "Disabled",
|
|
12959
|
-
/**
|
|
12960
|
-
* The faucet's callbacks are invoked before this asset is added to an account or a note.
|
|
12961
|
-
*/
|
|
12962
|
-
Enabled: 1, "1": "Enabled",
|
|
12963
|
-
});
|
|
12964
|
-
|
|
12965
12998
|
/**
|
|
12966
12999
|
* A container for an unlimited number of assets.
|
|
12967
13000
|
*
|
|
@@ -13243,13 +13276,10 @@ class AuthSecretKey {
|
|
|
13243
13276
|
if (Symbol.dispose) AuthSecretKey.prototype[Symbol.dispose] = AuthSecretKey.prototype.free;
|
|
13244
13277
|
|
|
13245
13278
|
/**
|
|
13246
|
-
* Provides metadata for a fungible faucet account component.
|
|
13279
|
+
* Provides metadata for a basic fungible faucet account component.
|
|
13247
13280
|
*
|
|
13248
|
-
* Reads the on-chain `FungibleFaucet` component for the account, which holds the
|
|
13249
|
-
* info (symbol
|
|
13250
|
-
* "basic" public faucets and network-style faucets — in the current protocol the distinction is
|
|
13251
|
-
* a function of the surrounding account configuration (account type, auth, access control), not
|
|
13252
|
-
* of the faucet component itself — so this reads metadata from either kind of faucet account.
|
|
13281
|
+
* Reads the on-chain [`FungibleFaucet`] component for the account, which holds the
|
|
13282
|
+
* per-token info (symbol/decimals/maxSupply).
|
|
13253
13283
|
*/
|
|
13254
13284
|
class BasicFungibleFaucetComponent {
|
|
13255
13285
|
static __wrap(ptr) {
|
|
@@ -13277,32 +13307,6 @@ class BasicFungibleFaucetComponent {
|
|
|
13277
13307
|
const ret = wasm.basicfungiblefaucetcomponent_decimals(this.__wbg_ptr);
|
|
13278
13308
|
return ret;
|
|
13279
13309
|
}
|
|
13280
|
-
/**
|
|
13281
|
-
* Returns the optional free-form token description, or `undefined` when unset.
|
|
13282
|
-
* @returns {string | undefined}
|
|
13283
|
-
*/
|
|
13284
|
-
description() {
|
|
13285
|
-
const ret = wasm.basicfungiblefaucetcomponent_description(this.__wbg_ptr);
|
|
13286
|
-
let v1;
|
|
13287
|
-
if (ret[0] !== 0) {
|
|
13288
|
-
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
13289
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
13290
|
-
}
|
|
13291
|
-
return v1;
|
|
13292
|
-
}
|
|
13293
|
-
/**
|
|
13294
|
-
* Returns the optional external link (e.g. project website), or `undefined` when unset.
|
|
13295
|
-
* @returns {string | undefined}
|
|
13296
|
-
*/
|
|
13297
|
-
externalLink() {
|
|
13298
|
-
const ret = wasm.basicfungiblefaucetcomponent_externalLink(this.__wbg_ptr);
|
|
13299
|
-
let v1;
|
|
13300
|
-
if (ret[0] !== 0) {
|
|
13301
|
-
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
13302
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
13303
|
-
}
|
|
13304
|
-
return v1;
|
|
13305
|
-
}
|
|
13306
13310
|
/**
|
|
13307
13311
|
* Extracts faucet metadata from an account.
|
|
13308
13312
|
* @param {Account} account
|
|
@@ -13317,19 +13321,6 @@ class BasicFungibleFaucetComponent {
|
|
|
13317
13321
|
}
|
|
13318
13322
|
return BasicFungibleFaucetComponent.__wrap(ret[0]);
|
|
13319
13323
|
}
|
|
13320
|
-
/**
|
|
13321
|
-
* Returns the optional token logo URI, or `undefined` when unset.
|
|
13322
|
-
* @returns {string | undefined}
|
|
13323
|
-
*/
|
|
13324
|
-
logoUri() {
|
|
13325
|
-
const ret = wasm.basicfungiblefaucetcomponent_logoUri(this.__wbg_ptr);
|
|
13326
|
-
let v1;
|
|
13327
|
-
if (ret[0] !== 0) {
|
|
13328
|
-
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
13329
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
13330
|
-
}
|
|
13331
|
-
return v1;
|
|
13332
|
-
}
|
|
13333
13324
|
/**
|
|
13334
13325
|
* Returns the maximum token supply.
|
|
13335
13326
|
* @returns {Felt}
|
|
@@ -13346,30 +13337,6 @@ class BasicFungibleFaucetComponent {
|
|
|
13346
13337
|
const ret = wasm.basicfungiblefaucetcomponent_symbol(this.__wbg_ptr);
|
|
13347
13338
|
return TokenSymbol.__wrap(ret);
|
|
13348
13339
|
}
|
|
13349
|
-
/**
|
|
13350
|
-
* Returns the human-readable token name.
|
|
13351
|
-
* @returns {string}
|
|
13352
|
-
*/
|
|
13353
|
-
tokenName() {
|
|
13354
|
-
let deferred1_0;
|
|
13355
|
-
let deferred1_1;
|
|
13356
|
-
try {
|
|
13357
|
-
const ret = wasm.basicfungiblefaucetcomponent_tokenName(this.__wbg_ptr);
|
|
13358
|
-
deferred1_0 = ret[0];
|
|
13359
|
-
deferred1_1 = ret[1];
|
|
13360
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
13361
|
-
} finally {
|
|
13362
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
13363
|
-
}
|
|
13364
|
-
}
|
|
13365
|
-
/**
|
|
13366
|
-
* Returns the current token supply (the amount minted so far).
|
|
13367
|
-
* @returns {Felt}
|
|
13368
|
-
*/
|
|
13369
|
-
tokenSupply() {
|
|
13370
|
-
const ret = wasm.basicfungiblefaucetcomponent_tokenSupply(this.__wbg_ptr);
|
|
13371
|
-
return Felt.__wrap(ret);
|
|
13372
|
-
}
|
|
13373
13340
|
}
|
|
13374
13341
|
if (Symbol.dispose) BasicFungibleFaucetComponent.prototype[Symbol.dispose] = BasicFungibleFaucetComponent.prototype.free;
|
|
13375
13342
|
|
|
@@ -13430,7 +13397,7 @@ class BlockHeader {
|
|
|
13430
13397
|
* @returns {Word}
|
|
13431
13398
|
*/
|
|
13432
13399
|
commitment() {
|
|
13433
|
-
const ret = wasm.
|
|
13400
|
+
const ret = wasm.accountbuilderresult_seed(this.__wbg_ptr);
|
|
13434
13401
|
return Word.__wrap(ret);
|
|
13435
13402
|
}
|
|
13436
13403
|
/**
|
|
@@ -13475,7 +13442,7 @@ class BlockHeader {
|
|
|
13475
13442
|
* @returns {Word}
|
|
13476
13443
|
*/
|
|
13477
13444
|
proofCommitment() {
|
|
13478
|
-
const ret = wasm.
|
|
13445
|
+
const ret = wasm.accountbuilderresult_seed(this.__wbg_ptr);
|
|
13479
13446
|
return Word.__wrap(ret);
|
|
13480
13447
|
}
|
|
13481
13448
|
/**
|
|
@@ -13584,6 +13551,26 @@ class CodeBuilder {
|
|
|
13584
13551
|
}
|
|
13585
13552
|
return AccountComponentCode.__wrap(ret[0]);
|
|
13586
13553
|
}
|
|
13554
|
+
/**
|
|
13555
|
+
* Compiles account component code under an explicit module path.
|
|
13556
|
+
*
|
|
13557
|
+
* The module path is part of procedure identity in Miden Assembly 0.25. Callers that also
|
|
13558
|
+
* link this component into a transaction script must use the same path for both operations.
|
|
13559
|
+
* @param {string} component_path
|
|
13560
|
+
* @param {string} account_code
|
|
13561
|
+
* @returns {AccountComponentCode}
|
|
13562
|
+
*/
|
|
13563
|
+
compileAccountComponentCodeWithPath(component_path, account_code) {
|
|
13564
|
+
const ptr0 = passStringToWasm0(component_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
13565
|
+
const len0 = WASM_VECTOR_LEN;
|
|
13566
|
+
const ptr1 = passStringToWasm0(account_code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
13567
|
+
const len1 = WASM_VECTOR_LEN;
|
|
13568
|
+
const ret = wasm.codebuilder_compileAccountComponentCodeWithPath(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
13569
|
+
if (ret[2]) {
|
|
13570
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
13571
|
+
}
|
|
13572
|
+
return AccountComponentCode.__wrap(ret[0]);
|
|
13573
|
+
}
|
|
13587
13574
|
/**
|
|
13588
13575
|
* Given a Note Script's source code, compiles it with the available
|
|
13589
13576
|
* modules under this builder. Returns the compiled script.
|
|
@@ -13614,6 +13601,20 @@ class CodeBuilder {
|
|
|
13614
13601
|
}
|
|
13615
13602
|
return TransactionScript.__wrap(ret[0]);
|
|
13616
13603
|
}
|
|
13604
|
+
/**
|
|
13605
|
+
* Dynamically links the exact library installed by an account component.
|
|
13606
|
+
*
|
|
13607
|
+
* Use this for component procedures that are available on-chain and invoked with dynamic
|
|
13608
|
+
* calls, including foreign procedure invocation.
|
|
13609
|
+
* @param {AccountComponentCode} account_component_code
|
|
13610
|
+
*/
|
|
13611
|
+
linkDynamicAccountComponentCode(account_component_code) {
|
|
13612
|
+
_assertClass(account_component_code, AccountComponentCode);
|
|
13613
|
+
const ret = wasm.codebuilder_linkDynamicAccountComponentCode(this.__wbg_ptr, account_component_code.__wbg_ptr);
|
|
13614
|
+
if (ret[1]) {
|
|
13615
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
13616
|
+
}
|
|
13617
|
+
}
|
|
13617
13618
|
/**
|
|
13618
13619
|
* This is useful to dynamically link the {@link Library} of a foreign account
|
|
13619
13620
|
* that is invoked using foreign procedure invocation (FPI). Its code is available
|
|
@@ -13646,6 +13647,20 @@ class CodeBuilder {
|
|
|
13646
13647
|
throw takeFromExternrefTable0(ret[0]);
|
|
13647
13648
|
}
|
|
13648
13649
|
}
|
|
13650
|
+
/**
|
|
13651
|
+
* Statically links the exact library installed by an account component.
|
|
13652
|
+
*
|
|
13653
|
+
* This should be preferred over rebuilding the component source with `buildLibrary`, because
|
|
13654
|
+
* the installed component code is the source of truth for its procedure identities.
|
|
13655
|
+
* @param {AccountComponentCode} account_component_code
|
|
13656
|
+
*/
|
|
13657
|
+
linkStaticAccountComponentCode(account_component_code) {
|
|
13658
|
+
_assertClass(account_component_code, AccountComponentCode);
|
|
13659
|
+
const ret = wasm.codebuilder_linkStaticAccountComponentCode(this.__wbg_ptr, account_component_code.__wbg_ptr);
|
|
13660
|
+
if (ret[1]) {
|
|
13661
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
13662
|
+
}
|
|
13663
|
+
}
|
|
13649
13664
|
/**
|
|
13650
13665
|
* Statically links the given library.
|
|
13651
13666
|
*
|
|
@@ -13937,111 +13952,13 @@ class Endpoint {
|
|
|
13937
13952
|
}
|
|
13938
13953
|
if (Symbol.dispose) Endpoint.prototype[Symbol.dispose] = Endpoint.prototype.free;
|
|
13939
13954
|
|
|
13940
|
-
/**
|
|
13941
|
-
* A 20-byte Ethereum address, used as the destination of an `AggLayer` bridge-out (B2AGG) note.
|
|
13942
|
-
*
|
|
13943
|
-
* Construct one from a hex string with [`EthAddress::from_hex`] (the `0x` prefix is optional) or
|
|
13944
|
-
* from raw bytes with [`EthAddress::from_bytes`]. The canonical lowercase, `0x`-prefixed hex form
|
|
13945
|
-
* is available via [`EthAddress::to_hex`] (also exposed as `toString`).
|
|
13946
|
-
*/
|
|
13947
|
-
class EthAddress {
|
|
13948
|
-
static __wrap(ptr) {
|
|
13949
|
-
ptr = ptr >>> 0;
|
|
13950
|
-
const obj = Object.create(EthAddress.prototype);
|
|
13951
|
-
obj.__wbg_ptr = ptr;
|
|
13952
|
-
EthAddressFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
13953
|
-
return obj;
|
|
13954
|
-
}
|
|
13955
|
-
__destroy_into_raw() {
|
|
13956
|
-
const ptr = this.__wbg_ptr;
|
|
13957
|
-
this.__wbg_ptr = 0;
|
|
13958
|
-
EthAddressFinalization.unregister(this);
|
|
13959
|
-
return ptr;
|
|
13960
|
-
}
|
|
13961
|
-
free() {
|
|
13962
|
-
const ptr = this.__destroy_into_raw();
|
|
13963
|
-
wasm.__wbg_ethaddress_free(ptr, 0);
|
|
13964
|
-
}
|
|
13965
|
-
/**
|
|
13966
|
-
* Builds an Ethereum address from its raw 20-byte big-endian representation.
|
|
13967
|
-
*
|
|
13968
|
-
* Returns an error if the input is not exactly 20 bytes long.
|
|
13969
|
-
* @param {Uint8Array} bytes
|
|
13970
|
-
* @returns {EthAddress}
|
|
13971
|
-
*/
|
|
13972
|
-
static fromBytes(bytes) {
|
|
13973
|
-
const ret = wasm.ethaddress_fromBytes(bytes);
|
|
13974
|
-
if (ret[2]) {
|
|
13975
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
13976
|
-
}
|
|
13977
|
-
return EthAddress.__wrap(ret[0]);
|
|
13978
|
-
}
|
|
13979
|
-
/**
|
|
13980
|
-
* Builds an Ethereum address from a hex string (with or without the `0x` prefix).
|
|
13981
|
-
*
|
|
13982
|
-
* Returns an error if the string is not valid hex or does not encode exactly 20 bytes.
|
|
13983
|
-
* @param {string} hex
|
|
13984
|
-
* @returns {EthAddress}
|
|
13985
|
-
*/
|
|
13986
|
-
static fromHex(hex) {
|
|
13987
|
-
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
13988
|
-
const len0 = WASM_VECTOR_LEN;
|
|
13989
|
-
const ret = wasm.ethaddress_fromHex(ptr0, len0);
|
|
13990
|
-
if (ret[2]) {
|
|
13991
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
13992
|
-
}
|
|
13993
|
-
return EthAddress.__wrap(ret[0]);
|
|
13994
|
-
}
|
|
13995
|
-
/**
|
|
13996
|
-
* Returns the raw 20-byte big-endian representation of the address.
|
|
13997
|
-
* @returns {Uint8Array}
|
|
13998
|
-
*/
|
|
13999
|
-
toBytes() {
|
|
14000
|
-
const ret = wasm.ethaddress_toBytes(this.__wbg_ptr);
|
|
14001
|
-
return ret;
|
|
14002
|
-
}
|
|
14003
|
-
/**
|
|
14004
|
-
* Returns the canonical lowercase, `0x`-prefixed hex representation of the address.
|
|
14005
|
-
* @returns {string}
|
|
14006
|
-
*/
|
|
14007
|
-
toHex() {
|
|
14008
|
-
let deferred1_0;
|
|
14009
|
-
let deferred1_1;
|
|
14010
|
-
try {
|
|
14011
|
-
const ret = wasm.ethaddress_toHex(this.__wbg_ptr);
|
|
14012
|
-
deferred1_0 = ret[0];
|
|
14013
|
-
deferred1_1 = ret[1];
|
|
14014
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
14015
|
-
} finally {
|
|
14016
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
14017
|
-
}
|
|
14018
|
-
}
|
|
14019
|
-
/**
|
|
14020
|
-
* Returns the canonical lowercase, `0x`-prefixed hex representation of the address.
|
|
14021
|
-
* @returns {string}
|
|
14022
|
-
*/
|
|
14023
|
-
toString() {
|
|
14024
|
-
let deferred1_0;
|
|
14025
|
-
let deferred1_1;
|
|
14026
|
-
try {
|
|
14027
|
-
const ret = wasm.ethaddress_toString(this.__wbg_ptr);
|
|
14028
|
-
deferred1_0 = ret[0];
|
|
14029
|
-
deferred1_1 = ret[1];
|
|
14030
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
14031
|
-
} finally {
|
|
14032
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
14033
|
-
}
|
|
14034
|
-
}
|
|
14035
|
-
}
|
|
14036
|
-
if (Symbol.dispose) EthAddress.prototype[Symbol.dispose] = EthAddress.prototype.free;
|
|
14037
|
-
|
|
14038
13955
|
/**
|
|
14039
13956
|
* Describes the result of executing a transaction program for the Miden protocol.
|
|
14040
13957
|
*
|
|
14041
13958
|
* Executed transaction serves two primary purposes:
|
|
14042
13959
|
* - It contains a complete description of the effects of the transaction. Specifically, it
|
|
14043
|
-
* contains all output notes created as the result of the transaction and
|
|
14044
|
-
*
|
|
13960
|
+
* contains all output notes created as the result of the transaction and the absolute-valued
|
|
13961
|
+
* account patch produced by execution.
|
|
14045
13962
|
* - It contains all the information required to re-execute and prove the transaction in a
|
|
14046
13963
|
* stateless manner. This includes all public transaction inputs, but also all nondeterministic
|
|
14047
13964
|
* inputs that the host provided to Miden VM while executing the transaction (i.e., advice
|
|
@@ -14065,14 +13982,6 @@ class ExecutedTransaction {
|
|
|
14065
13982
|
const ptr = this.__destroy_into_raw();
|
|
14066
13983
|
wasm.__wbg_executedtransaction_free(ptr, 0);
|
|
14067
13984
|
}
|
|
14068
|
-
/**
|
|
14069
|
-
* Returns the account delta resulting from execution.
|
|
14070
|
-
* @returns {AccountDelta}
|
|
14071
|
-
*/
|
|
14072
|
-
accountDelta() {
|
|
14073
|
-
const ret = wasm.executedtransaction_accountDelta(this.__wbg_ptr);
|
|
14074
|
-
return AccountDelta.__wrap(ret);
|
|
14075
|
-
}
|
|
14076
13985
|
/**
|
|
14077
13986
|
* Returns the account the transaction was executed against.
|
|
14078
13987
|
* @returns {AccountId}
|
|
@@ -14081,6 +13990,14 @@ class ExecutedTransaction {
|
|
|
14081
13990
|
const ret = wasm.executedtransaction_accountId(this.__wbg_ptr);
|
|
14082
13991
|
return AccountId.__wrap(ret);
|
|
14083
13992
|
}
|
|
13993
|
+
/**
|
|
13994
|
+
* Returns the absolute account patch resulting from execution.
|
|
13995
|
+
* @returns {AccountPatch}
|
|
13996
|
+
*/
|
|
13997
|
+
accountPatch() {
|
|
13998
|
+
const ret = wasm.executedtransaction_accountPatch(this.__wbg_ptr);
|
|
13999
|
+
return AccountPatch.__wrap(ret);
|
|
14000
|
+
}
|
|
14084
14001
|
/**
|
|
14085
14002
|
* Returns the block header that included the transaction.
|
|
14086
14003
|
* @returns {BlockHeader}
|
|
@@ -14353,7 +14270,7 @@ class FetchedAccount {
|
|
|
14353
14270
|
* @returns {number}
|
|
14354
14271
|
*/
|
|
14355
14272
|
lastBlockNum() {
|
|
14356
|
-
const ret = wasm.
|
|
14273
|
+
const ret = wasm.fetchedaccount_lastBlockNum(this.__wbg_ptr);
|
|
14357
14274
|
return ret >>> 0;
|
|
14358
14275
|
}
|
|
14359
14276
|
}
|
|
@@ -14704,14 +14621,6 @@ class FungibleAsset {
|
|
|
14704
14621
|
const ret = wasm.fungibleasset_amount(this.__wbg_ptr);
|
|
14705
14622
|
return BigInt.asUintN(64, ret);
|
|
14706
14623
|
}
|
|
14707
|
-
/**
|
|
14708
|
-
* Returns whether this asset invokes its faucet's callbacks.
|
|
14709
|
-
* @returns {AssetCallbackFlag}
|
|
14710
|
-
*/
|
|
14711
|
-
callbacks() {
|
|
14712
|
-
const ret = wasm.fungibleasset_callbacks(this.__wbg_ptr);
|
|
14713
|
-
return ret;
|
|
14714
|
-
}
|
|
14715
14624
|
/**
|
|
14716
14625
|
* Returns the faucet account that minted this asset.
|
|
14717
14626
|
* @returns {AccountId}
|
|
@@ -14743,20 +14652,6 @@ class FungibleAsset {
|
|
|
14743
14652
|
FungibleAssetFinalization.register(this, this.__wbg_ptr, this);
|
|
14744
14653
|
return this;
|
|
14745
14654
|
}
|
|
14746
|
-
/**
|
|
14747
|
-
* Returns a copy of this asset carrying the given callback flag.
|
|
14748
|
-
*
|
|
14749
|
-
* The flag is part of the asset's vault key, so it must match the flag the issuing faucet
|
|
14750
|
-
* applies — an asset built with the wrong flag addresses a different vault slot than the one
|
|
14751
|
-
* holding the balance. The constructor always produces `Disabled`; pass `Enabled` only for
|
|
14752
|
-
* assets from a faucet that registers transfer policies.
|
|
14753
|
-
* @param {AssetCallbackFlag} callbacks
|
|
14754
|
-
* @returns {FungibleAsset}
|
|
14755
|
-
*/
|
|
14756
|
-
withCallbacks(callbacks) {
|
|
14757
|
-
const ret = wasm.fungibleasset_withCallbacks(this.__wbg_ptr, callbacks);
|
|
14758
|
-
return FungibleAsset.__wrap(ret);
|
|
14759
|
-
}
|
|
14760
14655
|
}
|
|
14761
14656
|
if (Symbol.dispose) FungibleAsset.prototype[Symbol.dispose] = FungibleAsset.prototype.free;
|
|
14762
14657
|
|
|
@@ -14821,7 +14716,7 @@ class FungibleAssetDelta {
|
|
|
14821
14716
|
* @returns {boolean}
|
|
14822
14717
|
*/
|
|
14823
14718
|
isEmpty() {
|
|
14824
|
-
const ret = wasm.
|
|
14719
|
+
const ret = wasm.accountstoragepatch_isEmpty(this.__wbg_ptr);
|
|
14825
14720
|
return ret !== 0;
|
|
14826
14721
|
}
|
|
14827
14722
|
/**
|
|
@@ -14829,7 +14724,7 @@ class FungibleAssetDelta {
|
|
|
14829
14724
|
* @returns {number}
|
|
14830
14725
|
*/
|
|
14831
14726
|
numAssets() {
|
|
14832
|
-
const ret = wasm.
|
|
14727
|
+
const ret = wasm.accountvaultpatch_numAssets(this.__wbg_ptr);
|
|
14833
14728
|
return ret >>> 0;
|
|
14834
14729
|
}
|
|
14835
14730
|
/**
|
|
@@ -15132,16 +15027,6 @@ class InputNoteRecord {
|
|
|
15132
15027
|
const ret = wasm.inputnoterecord_isConsumed(this.__wbg_ptr);
|
|
15133
15028
|
return ret !== 0;
|
|
15134
15029
|
}
|
|
15135
|
-
/**
|
|
15136
|
-
* Returns true while the note's on-chain inclusion is still unsettled
|
|
15137
|
-
* (`Expected` or `Unverified`), i.e. while sync is the mechanism that can
|
|
15138
|
-
* advance this record.
|
|
15139
|
-
* @returns {boolean}
|
|
15140
|
-
*/
|
|
15141
|
-
isInclusionPending() {
|
|
15142
|
-
const ret = wasm.inputnoterecord_isInclusionPending(this.__wbg_ptr);
|
|
15143
|
-
return ret !== 0;
|
|
15144
|
-
}
|
|
15145
15030
|
/**
|
|
15146
15031
|
* Returns true if the note is currently being processed.
|
|
15147
15032
|
* @returns {boolean}
|
|
@@ -15872,13 +15757,12 @@ class JsStateSyncUpdate {
|
|
|
15872
15757
|
return v1;
|
|
15873
15758
|
}
|
|
15874
15759
|
/**
|
|
15875
|
-
* Serialized MMR peaks at the new sync height
|
|
15876
|
-
*
|
|
15877
|
-
* `blockNum` matches `block_num`) and read back by `getCurrentBlockchainPeaks`.
|
|
15760
|
+
* Serialized MMR peaks at the new sync height. The only peaks persisted by the
|
|
15761
|
+
* client (peaks for intermediate note blocks are never read, so they are not stored).
|
|
15878
15762
|
* @returns {Uint8Array}
|
|
15879
15763
|
*/
|
|
15880
|
-
get
|
|
15881
|
-
const ret = wasm.
|
|
15764
|
+
get newPeaks() {
|
|
15765
|
+
const ret = wasm.__wbg_get_jsstatesyncupdate_newPeaks(this.__wbg_ptr);
|
|
15882
15766
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
15883
15767
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
15884
15768
|
return v1;
|
|
@@ -15991,15 +15875,14 @@ class JsStateSyncUpdate {
|
|
|
15991
15875
|
wasm.__wbg_set_jsstatesyncupdate_newBlockNums(this.__wbg_ptr, ptr0, len0);
|
|
15992
15876
|
}
|
|
15993
15877
|
/**
|
|
15994
|
-
* Serialized MMR peaks at the new sync height
|
|
15995
|
-
*
|
|
15996
|
-
* `blockNum` matches `block_num`) and read back by `getCurrentBlockchainPeaks`.
|
|
15878
|
+
* Serialized MMR peaks at the new sync height. The only peaks persisted by the
|
|
15879
|
+
* client (peaks for intermediate note blocks are never read, so they are not stored).
|
|
15997
15880
|
* @param {Uint8Array} arg0
|
|
15998
15881
|
*/
|
|
15999
|
-
set
|
|
15882
|
+
set newPeaks(arg0) {
|
|
16000
15883
|
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
16001
15884
|
const len0 = WASM_VECTOR_LEN;
|
|
16002
|
-
wasm.
|
|
15885
|
+
wasm.__wbg_set_jsstatesyncupdate_newPeaks(this.__wbg_ptr, ptr0, len0);
|
|
16003
15886
|
}
|
|
16004
15887
|
/**
|
|
16005
15888
|
* Input notes for this state update in serialized form.
|
|
@@ -16187,6 +16070,17 @@ class JsStorageSlot {
|
|
|
16187
16070
|
const ptr = this.__destroy_into_raw();
|
|
16188
16071
|
wasm.__wbg_jsstorageslot_free(ptr, 0);
|
|
16189
16072
|
}
|
|
16073
|
+
/**
|
|
16074
|
+
* The storage patch operation (create, update, or remove).
|
|
16075
|
+
*
|
|
16076
|
+
* Full-state writes do not inspect this field, but incremental writes use it to distinguish
|
|
16077
|
+
* map replacement/removal from an entry-wise update.
|
|
16078
|
+
* @returns {number}
|
|
16079
|
+
*/
|
|
16080
|
+
get patchOperation() {
|
|
16081
|
+
const ret = wasm.__wbg_get_jsstorageslot_patchOperation(this.__wbg_ptr);
|
|
16082
|
+
return ret;
|
|
16083
|
+
}
|
|
16190
16084
|
/**
|
|
16191
16085
|
* The name of the storage slot.
|
|
16192
16086
|
* @returns {string}
|
|
@@ -16227,6 +16121,16 @@ class JsStorageSlot {
|
|
|
16227
16121
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
16228
16122
|
}
|
|
16229
16123
|
}
|
|
16124
|
+
/**
|
|
16125
|
+
* The storage patch operation (create, update, or remove).
|
|
16126
|
+
*
|
|
16127
|
+
* Full-state writes do not inspect this field, but incremental writes use it to distinguish
|
|
16128
|
+
* map replacement/removal from an entry-wise update.
|
|
16129
|
+
* @param {number} arg0
|
|
16130
|
+
*/
|
|
16131
|
+
set patchOperation(arg0) {
|
|
16132
|
+
wasm.__wbg_set_jsstorageslot_patchOperation(this.__wbg_ptr, arg0);
|
|
16133
|
+
}
|
|
16230
16134
|
/**
|
|
16231
16135
|
* The name of the storage slot.
|
|
16232
16136
|
* @param {string} arg0
|
|
@@ -16428,97 +16332,6 @@ class MerklePath {
|
|
|
16428
16332
|
}
|
|
16429
16333
|
if (Symbol.dispose) MerklePath.prototype[Symbol.dispose] = MerklePath.prototype.free;
|
|
16430
16334
|
|
|
16431
|
-
/**
|
|
16432
|
-
* Targets a note at a public network account so the operator auto-consumes it.
|
|
16433
|
-
*
|
|
16434
|
-
* A note is a network note when it is `Public` and carries a valid
|
|
16435
|
-
* `NetworkAccountTarget` attachment (see `Note.isNetworkNote`).
|
|
16436
|
-
*/
|
|
16437
|
-
class NetworkAccountTarget {
|
|
16438
|
-
static __wrap(ptr) {
|
|
16439
|
-
ptr = ptr >>> 0;
|
|
16440
|
-
const obj = Object.create(NetworkAccountTarget.prototype);
|
|
16441
|
-
obj.__wbg_ptr = ptr;
|
|
16442
|
-
NetworkAccountTargetFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
16443
|
-
return obj;
|
|
16444
|
-
}
|
|
16445
|
-
__destroy_into_raw() {
|
|
16446
|
-
const ptr = this.__wbg_ptr;
|
|
16447
|
-
this.__wbg_ptr = 0;
|
|
16448
|
-
NetworkAccountTargetFinalization.unregister(this);
|
|
16449
|
-
return ptr;
|
|
16450
|
-
}
|
|
16451
|
-
free() {
|
|
16452
|
-
const ptr = this.__destroy_into_raw();
|
|
16453
|
-
wasm.__wbg_networkaccounttarget_free(ptr, 0);
|
|
16454
|
-
}
|
|
16455
|
-
/**
|
|
16456
|
-
* Returns the note execution hint.
|
|
16457
|
-
* @returns {NoteExecutionHint}
|
|
16458
|
-
*/
|
|
16459
|
-
executionHint() {
|
|
16460
|
-
const ret = wasm.networkaccounttarget_executionHint(this.__wbg_ptr);
|
|
16461
|
-
return NoteExecutionHint.__wrap(ret);
|
|
16462
|
-
}
|
|
16463
|
-
/**
|
|
16464
|
-
* Decodes a `NoteAttachment` back into a `NetworkAccountTarget`.
|
|
16465
|
-
*
|
|
16466
|
-
* # Errors
|
|
16467
|
-
* Errors if the attachment is not a valid network-account-target attachment.
|
|
16468
|
-
* @param {NoteAttachment} attachment
|
|
16469
|
-
* @returns {NetworkAccountTarget}
|
|
16470
|
-
*/
|
|
16471
|
-
static fromAttachment(attachment) {
|
|
16472
|
-
_assertClass(attachment, NoteAttachment);
|
|
16473
|
-
const ret = wasm.networkaccounttarget_fromAttachment(attachment.__wbg_ptr);
|
|
16474
|
-
if (ret[2]) {
|
|
16475
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
16476
|
-
}
|
|
16477
|
-
return NetworkAccountTarget.__wrap(ret[0]);
|
|
16478
|
-
}
|
|
16479
|
-
/**
|
|
16480
|
-
* Creates a target for the given network account. `executionHint` defaults
|
|
16481
|
-
* to `NoteExecutionHint.always()`.
|
|
16482
|
-
*
|
|
16483
|
-
* # Errors
|
|
16484
|
-
* Errors if `account_id` is not a public account.
|
|
16485
|
-
* @param {AccountId} account_id
|
|
16486
|
-
* @param {NoteExecutionHint | null} [execution_hint]
|
|
16487
|
-
*/
|
|
16488
|
-
constructor(account_id, execution_hint) {
|
|
16489
|
-
_assertClass(account_id, AccountId);
|
|
16490
|
-
let ptr0 = 0;
|
|
16491
|
-
if (!isLikeNone(execution_hint)) {
|
|
16492
|
-
_assertClass(execution_hint, NoteExecutionHint);
|
|
16493
|
-
ptr0 = execution_hint.__destroy_into_raw();
|
|
16494
|
-
}
|
|
16495
|
-
const ret = wasm.networkaccounttarget_new(account_id.__wbg_ptr, ptr0);
|
|
16496
|
-
if (ret[2]) {
|
|
16497
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
16498
|
-
}
|
|
16499
|
-
this.__wbg_ptr = ret[0] >>> 0;
|
|
16500
|
-
NetworkAccountTargetFinalization.register(this, this.__wbg_ptr, this);
|
|
16501
|
-
return this;
|
|
16502
|
-
}
|
|
16503
|
-
/**
|
|
16504
|
-
* Returns the targeted network account id.
|
|
16505
|
-
* @returns {AccountId}
|
|
16506
|
-
*/
|
|
16507
|
-
targetId() {
|
|
16508
|
-
const ret = wasm.accountreader_accountId(this.__wbg_ptr);
|
|
16509
|
-
return AccountId.__wrap(ret);
|
|
16510
|
-
}
|
|
16511
|
-
/**
|
|
16512
|
-
* Encodes this target as a `NoteAttachment`.
|
|
16513
|
-
* @returns {NoteAttachment}
|
|
16514
|
-
*/
|
|
16515
|
-
toAttachment() {
|
|
16516
|
-
const ret = wasm.networkaccounttarget_toAttachment(this.__wbg_ptr);
|
|
16517
|
-
return NoteAttachment.__wrap(ret);
|
|
16518
|
-
}
|
|
16519
|
-
}
|
|
16520
|
-
if (Symbol.dispose) NetworkAccountTarget.prototype[Symbol.dispose] = NetworkAccountTarget.prototype.free;
|
|
16521
|
-
|
|
16522
16335
|
/**
|
|
16523
16336
|
* The identifier of a Miden network.
|
|
16524
16337
|
*/
|
|
@@ -16712,16 +16525,6 @@ class Note {
|
|
|
16712
16525
|
const ret = wasm.note_assets(this.__wbg_ptr);
|
|
16713
16526
|
return NoteAssets.__wrap(ret);
|
|
16714
16527
|
}
|
|
16715
|
-
/**
|
|
16716
|
-
* Returns the note's attachments.
|
|
16717
|
-
* @returns {NoteAttachment[]}
|
|
16718
|
-
*/
|
|
16719
|
-
attachments() {
|
|
16720
|
-
const ret = wasm.note_attachments(this.__wbg_ptr);
|
|
16721
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
16722
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
16723
|
-
return v1;
|
|
16724
|
-
}
|
|
16725
16528
|
/**
|
|
16726
16529
|
* Returns the commitment to the note (its ID).
|
|
16727
16530
|
*
|
|
@@ -16731,35 +16534,9 @@ class Note {
|
|
|
16731
16534
|
* unchanged.
|
|
16732
16535
|
* @returns {Word}
|
|
16733
16536
|
*/
|
|
16734
|
-
commitment() {
|
|
16735
|
-
const ret = wasm.note_commitment(this.__wbg_ptr);
|
|
16736
|
-
return Word.__wrap(ret);
|
|
16737
|
-
}
|
|
16738
|
-
/**
|
|
16739
|
-
* Builds a B2AGG (Bridge-to-AggLayer) note that bridges the given assets out to another
|
|
16740
|
-
* network via the `AggLayer`.
|
|
16741
|
-
*
|
|
16742
|
-
* The note is always public and is consumed by `bridge_account`, which burns the assets so
|
|
16743
|
-
* they can be claimed on the destination network at `destination_address` (an Ethereum
|
|
16744
|
-
* address on the AggLayer-assigned `destination_network`). The assets must be fungible assets
|
|
16745
|
-
* issued by a network faucet.
|
|
16746
|
-
* @param {AccountId} sender
|
|
16747
|
-
* @param {AccountId} bridge_account
|
|
16748
|
-
* @param {NoteAssets} assets
|
|
16749
|
-
* @param {number} destination_network
|
|
16750
|
-
* @param {EthAddress} destination_address
|
|
16751
|
-
* @returns {Note}
|
|
16752
|
-
*/
|
|
16753
|
-
static createB2AggNote(sender, bridge_account, assets, destination_network, destination_address) {
|
|
16754
|
-
_assertClass(sender, AccountId);
|
|
16755
|
-
_assertClass(bridge_account, AccountId);
|
|
16756
|
-
_assertClass(assets, NoteAssets);
|
|
16757
|
-
_assertClass(destination_address, EthAddress);
|
|
16758
|
-
const ret = wasm.note_createB2AggNote(sender.__wbg_ptr, bridge_account.__wbg_ptr, assets.__wbg_ptr, destination_network, destination_address.__wbg_ptr);
|
|
16759
|
-
if (ret[2]) {
|
|
16760
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
16761
|
-
}
|
|
16762
|
-
return Note.__wrap(ret[0]);
|
|
16537
|
+
commitment() {
|
|
16538
|
+
const ret = wasm.note_commitment(this.__wbg_ptr);
|
|
16539
|
+
return Word.__wrap(ret);
|
|
16763
16540
|
}
|
|
16764
16541
|
/**
|
|
16765
16542
|
* Builds a P2IDE note that can be reclaimed or timelocked based on block heights.
|
|
@@ -16823,15 +16600,6 @@ class Note {
|
|
|
16823
16600
|
const ret = wasm.note_commitment(this.__wbg_ptr);
|
|
16824
16601
|
return NoteId.__wrap(ret);
|
|
16825
16602
|
}
|
|
16826
|
-
/**
|
|
16827
|
-
* Returns true if the note is a network note (public + a valid
|
|
16828
|
-
* `NetworkAccountTarget` attachment).
|
|
16829
|
-
* @returns {boolean}
|
|
16830
|
-
*/
|
|
16831
|
-
isNetworkNote() {
|
|
16832
|
-
const ret = wasm.note_isNetworkNote(this.__wbg_ptr);
|
|
16833
|
-
return ret !== 0;
|
|
16834
|
-
}
|
|
16835
16603
|
/**
|
|
16836
16604
|
* Returns the public metadata associated with the note.
|
|
16837
16605
|
* @returns {NoteMetadata}
|
|
@@ -16891,30 +16659,6 @@ class Note {
|
|
|
16891
16659
|
const ret = wasm.note_serialize(this.__wbg_ptr);
|
|
16892
16660
|
return ret;
|
|
16893
16661
|
}
|
|
16894
|
-
/**
|
|
16895
|
-
* Creates a note carrying the provided attachments, using the metadata's
|
|
16896
|
-
* sender / note type / tag (attachments on the metadata itself are ignored).
|
|
16897
|
-
*
|
|
16898
|
-
* # Errors
|
|
16899
|
-
* Errors if the attachment set is invalid (too many attachments or words).
|
|
16900
|
-
* @param {NoteAssets} note_assets
|
|
16901
|
-
* @param {NoteMetadata} note_metadata
|
|
16902
|
-
* @param {NoteRecipient} note_recipient
|
|
16903
|
-
* @param {NoteAttachment[]} attachments
|
|
16904
|
-
* @returns {Note}
|
|
16905
|
-
*/
|
|
16906
|
-
static withAttachments(note_assets, note_metadata, note_recipient, attachments) {
|
|
16907
|
-
_assertClass(note_assets, NoteAssets);
|
|
16908
|
-
_assertClass(note_metadata, NoteMetadata);
|
|
16909
|
-
_assertClass(note_recipient, NoteRecipient);
|
|
16910
|
-
const ptr0 = passArrayJsValueToWasm0(attachments, wasm.__wbindgen_malloc);
|
|
16911
|
-
const len0 = WASM_VECTOR_LEN;
|
|
16912
|
-
const ret = wasm.note_withAttachments(note_assets.__wbg_ptr, note_metadata.__wbg_ptr, note_recipient.__wbg_ptr, ptr0, len0);
|
|
16913
|
-
if (ret[2]) {
|
|
16914
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
16915
|
-
}
|
|
16916
|
-
return Note.__wrap(ret[0]);
|
|
16917
|
-
}
|
|
16918
16662
|
}
|
|
16919
16663
|
if (Symbol.dispose) Note.prototype[Symbol.dispose] = Note.prototype.free;
|
|
16920
16664
|
|
|
@@ -17182,12 +16926,6 @@ class NoteAttachment {
|
|
|
17182
16926
|
NoteAttachmentFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
17183
16927
|
return obj;
|
|
17184
16928
|
}
|
|
17185
|
-
static __unwrap(jsValue) {
|
|
17186
|
-
if (!(jsValue instanceof NoteAttachment)) {
|
|
17187
|
-
return 0;
|
|
17188
|
-
}
|
|
17189
|
-
return jsValue.__destroy_into_raw();
|
|
17190
|
-
}
|
|
17191
16929
|
__destroy_into_raw() {
|
|
17192
16930
|
const ptr = this.__wbg_ptr;
|
|
17193
16931
|
this.__wbg_ptr = 0;
|
|
@@ -17811,6 +17549,19 @@ class NoteFile {
|
|
|
17811
17549
|
}
|
|
17812
17550
|
return NoteFile.__wrap(ret[0]);
|
|
17813
17551
|
}
|
|
17552
|
+
/**
|
|
17553
|
+
* Creates an expected-note file with the sync hint required by miden-client 0.16.
|
|
17554
|
+
* @param {NoteDetails} note_details
|
|
17555
|
+
* @param {NoteTag} note_tag
|
|
17556
|
+
* @param {number} after_block_num
|
|
17557
|
+
* @returns {NoteFile}
|
|
17558
|
+
*/
|
|
17559
|
+
static fromExpectedNote(note_details, note_tag, after_block_num) {
|
|
17560
|
+
_assertClass(note_details, NoteDetails);
|
|
17561
|
+
_assertClass(note_tag, NoteTag);
|
|
17562
|
+
const ret = wasm.notefile_fromExpectedNote(note_details.__wbg_ptr, note_tag.__wbg_ptr, after_block_num);
|
|
17563
|
+
return NoteFile.__wrap(ret);
|
|
17564
|
+
}
|
|
17814
17565
|
/**
|
|
17815
17566
|
* Creates a `NoteFile` from an input note, preserving proof when available.
|
|
17816
17567
|
* @param {InputNote} note
|
|
@@ -17822,7 +17573,11 @@ class NoteFile {
|
|
|
17822
17573
|
return NoteFile.__wrap(ret);
|
|
17823
17574
|
}
|
|
17824
17575
|
/**
|
|
17825
|
-
* Creates a `NoteFile` from note details.
|
|
17576
|
+
* Creates a `NoteFile` from note details using a zero-valued sync hint.
|
|
17577
|
+
*
|
|
17578
|
+
* miden-client 0.16 requires every expected note to include a tag and an after-block hint.
|
|
17579
|
+
* This retains the old one-argument JS API by using block zero and the default tag. Prefer
|
|
17580
|
+
* [`from_expected_note`](Self::from_expected_note) when the real sync hint is available.
|
|
17826
17581
|
* @param {NoteDetails} note_details
|
|
17827
17582
|
* @returns {NoteFile}
|
|
17828
17583
|
*/
|
|
@@ -18418,19 +18173,6 @@ class NoteRecipient {
|
|
|
18418
18173
|
const ret = wasm.accountheader_storageCommitment(this.__wbg_ptr);
|
|
18419
18174
|
return Word.__wrap(ret);
|
|
18420
18175
|
}
|
|
18421
|
-
/**
|
|
18422
|
-
* Creates a recipient from a script and storage, generating a fresh random
|
|
18423
|
-
* serial number (the secret that prevents double-spends).
|
|
18424
|
-
* @param {NoteScript} note_script
|
|
18425
|
-
* @param {NoteStorage} storage
|
|
18426
|
-
* @returns {NoteRecipient}
|
|
18427
|
-
*/
|
|
18428
|
-
static fromScript(note_script, storage) {
|
|
18429
|
-
_assertClass(note_script, NoteScript);
|
|
18430
|
-
_assertClass(storage, NoteStorage);
|
|
18431
|
-
const ret = wasm.noterecipient_fromScript(note_script.__wbg_ptr, storage.__wbg_ptr);
|
|
18432
|
-
return NoteRecipient.__wrap(ret);
|
|
18433
|
-
}
|
|
18434
18176
|
/**
|
|
18435
18177
|
* Creates a note recipient from its serial number, script, and storage.
|
|
18436
18178
|
* @param {Word} serial_num
|
|
@@ -19118,7 +18860,7 @@ class OutputNoteRecord {
|
|
|
19118
18860
|
* @returns {number}
|
|
19119
18861
|
*/
|
|
19120
18862
|
expectedHeight() {
|
|
19121
|
-
const ret = wasm.
|
|
18863
|
+
const ret = wasm.blockheader_version(this.__wbg_ptr);
|
|
19122
18864
|
return ret >>> 0;
|
|
19123
18865
|
}
|
|
19124
18866
|
/**
|
|
@@ -19153,22 +18895,12 @@ class OutputNoteRecord {
|
|
|
19153
18895
|
const ret = wasm.outputnoterecord_isConsumed(this.__wbg_ptr);
|
|
19154
18896
|
return ret !== 0;
|
|
19155
18897
|
}
|
|
19156
|
-
/**
|
|
19157
|
-
* Returns true while the note's on-chain inclusion is still unsettled
|
|
19158
|
-
* (`ExpectedFull` or `ExpectedPartial`), i.e. while sync is the mechanism
|
|
19159
|
-
* that can advance this record.
|
|
19160
|
-
* @returns {boolean}
|
|
19161
|
-
*/
|
|
19162
|
-
isInclusionPending() {
|
|
19163
|
-
const ret = wasm.outputnoterecord_isInclusionPending(this.__wbg_ptr);
|
|
19164
|
-
return ret !== 0;
|
|
19165
|
-
}
|
|
19166
18898
|
/**
|
|
19167
18899
|
* Returns the note metadata.
|
|
19168
18900
|
* @returns {NoteMetadata}
|
|
19169
18901
|
*/
|
|
19170
18902
|
metadata() {
|
|
19171
|
-
const ret = wasm.
|
|
18903
|
+
const ret = wasm.outputnoterecord_metadata(this.__wbg_ptr);
|
|
19172
18904
|
return NoteMetadata.__wrap(ret);
|
|
19173
18905
|
}
|
|
19174
18906
|
/**
|
|
@@ -19541,7 +19273,7 @@ class ProvenTransaction {
|
|
|
19541
19273
|
* @returns {AccountId}
|
|
19542
19274
|
*/
|
|
19543
19275
|
accountId() {
|
|
19544
|
-
const ret = wasm.
|
|
19276
|
+
const ret = wasm.proventransaction_accountId(this.__wbg_ptr);
|
|
19545
19277
|
return AccountId.__wrap(ret);
|
|
19546
19278
|
}
|
|
19547
19279
|
/**
|
|
@@ -19569,7 +19301,7 @@ class ProvenTransaction {
|
|
|
19569
19301
|
* @returns {TransactionId}
|
|
19570
19302
|
*/
|
|
19571
19303
|
id() {
|
|
19572
|
-
const ret = wasm.
|
|
19304
|
+
const ret = wasm.proventransaction_id(this.__wbg_ptr);
|
|
19573
19305
|
return TransactionId.__wrap(ret);
|
|
19574
19306
|
}
|
|
19575
19307
|
/**
|
|
@@ -19587,7 +19319,7 @@ class ProvenTransaction {
|
|
|
19587
19319
|
* @returns {Word}
|
|
19588
19320
|
*/
|
|
19589
19321
|
refBlockCommitment() {
|
|
19590
|
-
const ret = wasm.
|
|
19322
|
+
const ret = wasm.proventransaction_refBlockCommitment(this.__wbg_ptr);
|
|
19591
19323
|
return Word.__wrap(ret);
|
|
19592
19324
|
}
|
|
19593
19325
|
/**
|
|
@@ -19609,119 +19341,6 @@ class ProvenTransaction {
|
|
|
19609
19341
|
}
|
|
19610
19342
|
if (Symbol.dispose) ProvenTransaction.prototype[Symbol.dispose] = ProvenTransaction.prototype.free;
|
|
19611
19343
|
|
|
19612
|
-
/**
|
|
19613
|
-
* Read-only view of one PSWAP order's chain state, exposed to JavaScript.
|
|
19614
|
-
* The mutable fields (remaining amounts, depth, tip, state) advance
|
|
19615
|
-
* round-by-round as fills are discovered during sync.
|
|
19616
|
-
*/
|
|
19617
|
-
class PswapLineageRecord {
|
|
19618
|
-
static __wrap(ptr) {
|
|
19619
|
-
ptr = ptr >>> 0;
|
|
19620
|
-
const obj = Object.create(PswapLineageRecord.prototype);
|
|
19621
|
-
obj.__wbg_ptr = ptr;
|
|
19622
|
-
PswapLineageRecordFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
19623
|
-
return obj;
|
|
19624
|
-
}
|
|
19625
|
-
__destroy_into_raw() {
|
|
19626
|
-
const ptr = this.__wbg_ptr;
|
|
19627
|
-
this.__wbg_ptr = 0;
|
|
19628
|
-
PswapLineageRecordFinalization.unregister(this);
|
|
19629
|
-
return ptr;
|
|
19630
|
-
}
|
|
19631
|
-
free() {
|
|
19632
|
-
const ptr = this.__destroy_into_raw();
|
|
19633
|
-
wasm.__wbg_pswaplineagerecord_free(ptr, 0);
|
|
19634
|
-
}
|
|
19635
|
-
/**
|
|
19636
|
-
* Account that created the order and receives every payback.
|
|
19637
|
-
* @returns {AccountId}
|
|
19638
|
-
*/
|
|
19639
|
-
creatorAccountId() {
|
|
19640
|
-
const ret = wasm.pswaplineagerecord_creatorAccountId(this.__wbg_ptr);
|
|
19641
|
-
return AccountId.__wrap(ret);
|
|
19642
|
-
}
|
|
19643
|
-
/**
|
|
19644
|
-
* Depth of the current tip: 0 for the original PSWAP, +1 per fill round.
|
|
19645
|
-
* @returns {number}
|
|
19646
|
-
*/
|
|
19647
|
-
currentDepth() {
|
|
19648
|
-
const ret = wasm.pswaplineagerecord_currentDepth(this.__wbg_ptr);
|
|
19649
|
-
return ret >>> 0;
|
|
19650
|
-
}
|
|
19651
|
-
/**
|
|
19652
|
-
* Note id of the current tip in the chain.
|
|
19653
|
-
* @returns {NoteId}
|
|
19654
|
-
*/
|
|
19655
|
-
currentTipNoteId() {
|
|
19656
|
-
const ret = wasm.pswaplineagerecord_currentTipNoteId(this.__wbg_ptr);
|
|
19657
|
-
return NoteId.__wrap(ret);
|
|
19658
|
-
}
|
|
19659
|
-
/**
|
|
19660
|
-
* Stable identifier shared by every note in the chain, as a decimal string.
|
|
19661
|
-
* @returns {string}
|
|
19662
|
-
*/
|
|
19663
|
-
orderId() {
|
|
19664
|
-
let deferred1_0;
|
|
19665
|
-
let deferred1_1;
|
|
19666
|
-
try {
|
|
19667
|
-
const ret = wasm.pswaplineagerecord_orderId(this.__wbg_ptr);
|
|
19668
|
-
deferred1_0 = ret[0];
|
|
19669
|
-
deferred1_1 = ret[1];
|
|
19670
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
19671
|
-
} finally {
|
|
19672
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
19673
|
-
}
|
|
19674
|
-
}
|
|
19675
|
-
/**
|
|
19676
|
-
* Offered amount still unfilled on the current tip. The offered faucet is
|
|
19677
|
-
* chain-invariant and recovered from the original PSWAP note when needed.
|
|
19678
|
-
* @returns {bigint}
|
|
19679
|
-
*/
|
|
19680
|
-
remainingOffered() {
|
|
19681
|
-
const ret = wasm.pswaplineagerecord_remainingOffered(this.__wbg_ptr);
|
|
19682
|
-
return BigInt.asUintN(64, ret);
|
|
19683
|
-
}
|
|
19684
|
-
/**
|
|
19685
|
-
* Requested amount still outstanding on the current tip. The requested
|
|
19686
|
-
* faucet is recovered from the original PSWAP note when needed.
|
|
19687
|
-
* @returns {bigint}
|
|
19688
|
-
*/
|
|
19689
|
-
remainingRequested() {
|
|
19690
|
-
const ret = wasm.pswaplineagerecord_remainingRequested(this.__wbg_ptr);
|
|
19691
|
-
return BigInt.asUintN(64, ret);
|
|
19692
|
-
}
|
|
19693
|
-
/**
|
|
19694
|
-
* Lifecycle state of the order.
|
|
19695
|
-
* @returns {PswapLineageState}
|
|
19696
|
-
*/
|
|
19697
|
-
state() {
|
|
19698
|
-
const ret = wasm.pswaplineagerecord_state(this.__wbg_ptr);
|
|
19699
|
-
return ret;
|
|
19700
|
-
}
|
|
19701
|
-
}
|
|
19702
|
-
if (Symbol.dispose) PswapLineageRecord.prototype[Symbol.dispose] = PswapLineageRecord.prototype.free;
|
|
19703
|
-
|
|
19704
|
-
/**
|
|
19705
|
-
* Lifecycle state of a PSWAP order.
|
|
19706
|
-
*
|
|
19707
|
-
* Discriminants match the on-disk encoding in the store.
|
|
19708
|
-
* @enum {0 | 1 | 2}
|
|
19709
|
-
*/
|
|
19710
|
-
const PswapLineageState = Object.freeze({
|
|
19711
|
-
/**
|
|
19712
|
-
* Still fillable and reclaimable.
|
|
19713
|
-
*/
|
|
19714
|
-
Active: 0, "0": "Active",
|
|
19715
|
-
/**
|
|
19716
|
-
* Fully filled. Terminal.
|
|
19717
|
-
*/
|
|
19718
|
-
FullyFilled: 1, "1": "FullyFilled",
|
|
19719
|
-
/**
|
|
19720
|
-
* Reclaimed by the creator. Terminal.
|
|
19721
|
-
*/
|
|
19722
|
-
Reclaimed: 2, "2": "Reclaimed",
|
|
19723
|
-
});
|
|
19724
|
-
|
|
19725
19344
|
class PublicKey {
|
|
19726
19345
|
static __wrap(ptr) {
|
|
19727
19346
|
ptr = ptr >>> 0;
|
|
@@ -20468,7 +20087,7 @@ class SerializedOutputNoteData {
|
|
|
20468
20087
|
set attachments(arg0) {
|
|
20469
20088
|
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
20470
20089
|
const len0 = WASM_VECTOR_LEN;
|
|
20471
|
-
wasm.
|
|
20090
|
+
wasm.__wbg_set_jsstatesyncupdate_newPeaks(this.__wbg_ptr, ptr0, len0);
|
|
20472
20091
|
}
|
|
20473
20092
|
/**
|
|
20474
20093
|
* @param {string} arg0
|
|
@@ -21213,7 +20832,7 @@ if (Symbol.dispose) StorageMapEntryJs.prototype[Symbol.dispose] = StorageMapEntr
|
|
|
21213
20832
|
* Information about storage map updates for an account, as returned by the
|
|
21214
20833
|
* `syncStorageMaps` RPC endpoint.
|
|
21215
20834
|
*
|
|
21216
|
-
* Contains the
|
|
20835
|
+
* Contains the storage map entries merged over the requested block range,
|
|
21217
20836
|
* along with the chain tip and last processed block number.
|
|
21218
20837
|
*/
|
|
21219
20838
|
class StorageMapInfo {
|
|
@@ -21264,8 +20883,8 @@ class StorageMapInfo {
|
|
|
21264
20883
|
if (Symbol.dispose) StorageMapInfo.prototype[Symbol.dispose] = StorageMapInfo.prototype.free;
|
|
21265
20884
|
|
|
21266
20885
|
/**
|
|
21267
|
-
* A
|
|
21268
|
-
*
|
|
20886
|
+
* A merged storage map entry containing the last processed block number, slot name, key, and
|
|
20887
|
+
* final value. The node no longer exposes the individual block number for each update.
|
|
21269
20888
|
*/
|
|
21270
20889
|
class StorageMapUpdate {
|
|
21271
20890
|
static __wrap(ptr) {
|
|
@@ -21286,7 +20905,7 @@ class StorageMapUpdate {
|
|
|
21286
20905
|
wasm.__wbg_storagemapupdate_free(ptr, 0);
|
|
21287
20906
|
}
|
|
21288
20907
|
/**
|
|
21289
|
-
* Returns the block number
|
|
20908
|
+
* Returns the last processed block number for the merged response.
|
|
21290
20909
|
* @returns {number}
|
|
21291
20910
|
*/
|
|
21292
20911
|
blockNum() {
|
|
@@ -22029,7 +21648,7 @@ class TransactionRecord {
|
|
|
22029
21648
|
* @returns {AccountId}
|
|
22030
21649
|
*/
|
|
22031
21650
|
accountId() {
|
|
22032
|
-
const ret = wasm.
|
|
21651
|
+
const ret = wasm.proventransaction_accountId(this.__wbg_ptr);
|
|
22033
21652
|
return AccountId.__wrap(ret);
|
|
22034
21653
|
}
|
|
22035
21654
|
/**
|
|
@@ -22077,7 +21696,7 @@ class TransactionRecord {
|
|
|
22077
21696
|
* @returns {Word}
|
|
22078
21697
|
*/
|
|
22079
21698
|
initAccountState() {
|
|
22080
|
-
const ret = wasm.
|
|
21699
|
+
const ret = wasm.transactionrecord_initAccountState(this.__wbg_ptr);
|
|
22081
21700
|
return Word.__wrap(ret);
|
|
22082
21701
|
}
|
|
22083
21702
|
/**
|
|
@@ -22142,14 +21761,6 @@ class TransactionRequest {
|
|
|
22142
21761
|
const ptr = this.__destroy_into_raw();
|
|
22143
21762
|
wasm.__wbg_transactionrequest_free(ptr, 0);
|
|
22144
21763
|
}
|
|
22145
|
-
/**
|
|
22146
|
-
* Returns a copy of the advice map carried by this request.
|
|
22147
|
-
* @returns {AdviceMap}
|
|
22148
|
-
*/
|
|
22149
|
-
adviceMap() {
|
|
22150
|
-
const ret = wasm.transactionrequest_adviceMap(this.__wbg_ptr);
|
|
22151
|
-
return AdviceMap.__wrap(ret);
|
|
22152
|
-
}
|
|
22153
21764
|
/**
|
|
22154
21765
|
* Returns the authentication argument if present.
|
|
22155
21766
|
* @returns {Word | undefined}
|
|
@@ -22196,20 +21807,6 @@ class TransactionRequest {
|
|
|
22196
21807
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
22197
21808
|
return v1;
|
|
22198
21809
|
}
|
|
22199
|
-
/**
|
|
22200
|
-
* Returns a copy of this request with `advice_map` merged into its advice map.
|
|
22201
|
-
*
|
|
22202
|
-
* Entries are merged with last-write-wins semantics: a key already present in the request is
|
|
22203
|
-
* overwritten by the value from `advice_map`. Use this to inject advice (e.g. a signature
|
|
22204
|
-
* produced by an external signer) after the request has already been built.
|
|
22205
|
-
* @param {AdviceMap} advice_map
|
|
22206
|
-
* @returns {TransactionRequest}
|
|
22207
|
-
*/
|
|
22208
|
-
extendAdviceMap(advice_map) {
|
|
22209
|
-
_assertClass(advice_map, AdviceMap);
|
|
22210
|
-
const ret = wasm.transactionrequest_extendAdviceMap(this.__wbg_ptr, advice_map.__wbg_ptr);
|
|
22211
|
-
return TransactionRequest.__wrap(ret);
|
|
22212
|
-
}
|
|
22213
21810
|
/**
|
|
22214
21811
|
* Returns the transaction script argument if present.
|
|
22215
21812
|
* @returns {Word | undefined}
|
|
@@ -22755,12 +22352,12 @@ class TransactionStoreUpdate {
|
|
|
22755
22352
|
wasm.__wbg_transactionstoreupdate_free(ptr, 0);
|
|
22756
22353
|
}
|
|
22757
22354
|
/**
|
|
22758
|
-
* Returns the account
|
|
22759
|
-
* @returns {
|
|
22355
|
+
* Returns the absolute account patch applied by the transaction.
|
|
22356
|
+
* @returns {AccountPatch}
|
|
22760
22357
|
*/
|
|
22761
|
-
|
|
22762
|
-
const ret = wasm.
|
|
22763
|
-
return
|
|
22358
|
+
accountPatch() {
|
|
22359
|
+
const ret = wasm.transactionstoreupdate_accountPatch(this.__wbg_ptr);
|
|
22360
|
+
return AccountPatch.__wrap(ret);
|
|
22764
22361
|
}
|
|
22765
22362
|
/**
|
|
22766
22363
|
* Returns the output notes created by the transaction.
|
|
@@ -22971,10 +22568,6 @@ class WebClient {
|
|
|
22971
22568
|
return ret;
|
|
22972
22569
|
}
|
|
22973
22570
|
/**
|
|
22974
|
-
* Persists a submitted transaction and returns its pre-apply
|
|
22975
|
-
* [`TransactionStoreUpdate`]. Routes through the high-level
|
|
22976
|
-
* `Client::apply_transaction` so registered observers (e.g. PSWAP
|
|
22977
|
-
* tracking) fire.
|
|
22978
22571
|
* @param {TransactionResult} transaction_result
|
|
22979
22572
|
* @param {number} submission_height
|
|
22980
22573
|
* @returns {Promise<TransactionStoreUpdate>}
|
|
@@ -22984,22 +22577,6 @@ class WebClient {
|
|
|
22984
22577
|
const ret = wasm.webclient_applyTransaction(this.__wbg_ptr, transaction_result.__wbg_ptr, submission_height);
|
|
22985
22578
|
return ret;
|
|
22986
22579
|
}
|
|
22987
|
-
/**
|
|
22988
|
-
* Builds a transaction reclaiming the unfilled offered asset on the current
|
|
22989
|
-
* tip of an Active lineage.
|
|
22990
|
-
*
|
|
22991
|
-
* `order_id` is the order's stable identifier as a decimal string. The
|
|
22992
|
-
* returned request flows into the same submit path as the other PSWAP
|
|
22993
|
-
* cancel transactions.
|
|
22994
|
-
* @param {string} order_id
|
|
22995
|
-
* @returns {Promise<TransactionRequest>}
|
|
22996
|
-
*/
|
|
22997
|
-
buildPswapCancelByOrder(order_id) {
|
|
22998
|
-
const ptr0 = passStringToWasm0(order_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
22999
|
-
const len0 = WASM_VECTOR_LEN;
|
|
23000
|
-
const ret = wasm.webclient_buildPswapCancelByOrder(this.__wbg_ptr, ptr0, len0);
|
|
23001
|
-
return ret;
|
|
23002
|
-
}
|
|
23003
22580
|
/**
|
|
23004
22581
|
* @param {NoteType} note_type
|
|
23005
22582
|
* @param {AccountId} offered_asset_faucet_id
|
|
@@ -23027,17 +22604,13 @@ class WebClient {
|
|
|
23027
22604
|
* * `store_name`: Optional name for the web store. If `None`, the store name defaults to
|
|
23028
22605
|
* `MidenClientDB_{network_id}`, where `network_id` is derived from the `node_url`.
|
|
23029
22606
|
* Explicitly setting this allows for creating multiple isolated clients.
|
|
23030
|
-
* * `debug_mode`: Optional flag to enable debug mode for transaction execution. When enabled,
|
|
23031
|
-
* the transaction executor records additional information useful for debugging. Defaults to
|
|
23032
|
-
* disabled.
|
|
23033
22607
|
* @param {string | null} [node_url]
|
|
23034
22608
|
* @param {string | null} [node_note_transport_url]
|
|
23035
22609
|
* @param {Uint8Array | null} [seed]
|
|
23036
22610
|
* @param {string | null} [store_name]
|
|
23037
|
-
* @param {boolean | null} [debug_mode]
|
|
23038
22611
|
* @returns {Promise<any>}
|
|
23039
22612
|
*/
|
|
23040
|
-
createClient(node_url, node_note_transport_url, seed, store_name
|
|
22613
|
+
createClient(node_url, node_note_transport_url, seed, store_name) {
|
|
23041
22614
|
var ptr0 = isLikeNone(node_url) ? 0 : passStringToWasm0(node_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
23042
22615
|
var len0 = WASM_VECTOR_LEN;
|
|
23043
22616
|
var ptr1 = isLikeNone(node_note_transport_url) ? 0 : passStringToWasm0(node_note_transport_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -23046,7 +22619,7 @@ class WebClient {
|
|
|
23046
22619
|
var len2 = WASM_VECTOR_LEN;
|
|
23047
22620
|
var ptr3 = isLikeNone(store_name) ? 0 : passStringToWasm0(store_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
23048
22621
|
var len3 = WASM_VECTOR_LEN;
|
|
23049
|
-
const ret = wasm.webclient_createClient(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3
|
|
22622
|
+
const ret = wasm.webclient_createClient(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
23050
22623
|
return ret;
|
|
23051
22624
|
}
|
|
23052
22625
|
/**
|
|
@@ -23062,8 +22635,6 @@ class WebClient {
|
|
|
23062
22635
|
* * `get_key_cb`: Callback to retrieve the secret key bytes for a given public key.
|
|
23063
22636
|
* * `insert_key_cb`: Callback to persist a secret key.
|
|
23064
22637
|
* * `sign_cb`: Callback to produce serialized signature bytes for the provided inputs.
|
|
23065
|
-
* * `debug_mode`: Optional flag to enable debug mode for transaction execution. Defaults to
|
|
23066
|
-
* disabled.
|
|
23067
22638
|
* @param {string | null} [node_url]
|
|
23068
22639
|
* @param {string | null} [node_note_transport_url]
|
|
23069
22640
|
* @param {Uint8Array | null} [seed]
|
|
@@ -23071,10 +22642,9 @@ class WebClient {
|
|
|
23071
22642
|
* @param {Function | null} [get_key_cb]
|
|
23072
22643
|
* @param {Function | null} [insert_key_cb]
|
|
23073
22644
|
* @param {Function | null} [sign_cb]
|
|
23074
|
-
* @param {boolean | null} [debug_mode]
|
|
23075
22645
|
* @returns {Promise<any>}
|
|
23076
22646
|
*/
|
|
23077
|
-
createClientWithExternalKeystore(node_url, node_note_transport_url, seed, store_name, get_key_cb, insert_key_cb, sign_cb
|
|
22647
|
+
createClientWithExternalKeystore(node_url, node_note_transport_url, seed, store_name, get_key_cb, insert_key_cb, sign_cb) {
|
|
23078
22648
|
var ptr0 = isLikeNone(node_url) ? 0 : passStringToWasm0(node_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
23079
22649
|
var len0 = WASM_VECTOR_LEN;
|
|
23080
22650
|
var ptr1 = isLikeNone(node_note_transport_url) ? 0 : passStringToWasm0(node_note_transport_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -23083,7 +22653,7 @@ class WebClient {
|
|
|
23083
22653
|
var len2 = WASM_VECTOR_LEN;
|
|
23084
22654
|
var ptr3 = isLikeNone(store_name) ? 0 : passStringToWasm0(store_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
23085
22655
|
var len3 = WASM_VECTOR_LEN;
|
|
23086
|
-
const ret = wasm.webclient_createClientWithExternalKeystore(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(get_key_cb) ? 0 : addToExternrefTable0(get_key_cb), isLikeNone(insert_key_cb) ? 0 : addToExternrefTable0(insert_key_cb), isLikeNone(sign_cb) ? 0 : addToExternrefTable0(sign_cb)
|
|
22656
|
+
const ret = wasm.webclient_createClientWithExternalKeystore(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(get_key_cb) ? 0 : addToExternrefTable0(get_key_cb), isLikeNone(insert_key_cb) ? 0 : addToExternrefTable0(insert_key_cb), isLikeNone(sign_cb) ? 0 : addToExternrefTable0(sign_cb));
|
|
23087
22657
|
return ret;
|
|
23088
22658
|
}
|
|
23089
22659
|
/**
|
|
@@ -23112,14 +22682,18 @@ class WebClient {
|
|
|
23112
22682
|
return ret;
|
|
23113
22683
|
}
|
|
23114
22684
|
/**
|
|
23115
|
-
* Executes a transaction and returns the `TransactionSummary
|
|
22685
|
+
* Executes a transaction and returns the `TransactionSummary` the account is being asked
|
|
22686
|
+
* to authorize.
|
|
23116
22687
|
*
|
|
23117
|
-
*
|
|
23118
|
-
*
|
|
23119
|
-
*
|
|
23120
|
-
*
|
|
22688
|
+
* The summary only exists while authorization is pending: when the auth procedure aborts
|
|
22689
|
+
* with the unauthorized event (e.g. a multisig below its signing threshold), the summary
|
|
22690
|
+
* built during execution is returned so it can be signed out-of-band. If the transaction
|
|
22691
|
+
* executes successfully it was already fully authorized, no summary is produced, and this
|
|
22692
|
+
* method returns an error with code `TRANSACTION_ALREADY_AUTHORIZED` — submit the
|
|
22693
|
+
* transaction with `execute` instead.
|
|
23121
22694
|
*
|
|
23122
22695
|
* # Errors
|
|
22696
|
+
* - If the transaction executes successfully (error code `TRANSACTION_ALREADY_AUTHORIZED`).
|
|
23123
22697
|
* - If there is an internal failure during execution.
|
|
23124
22698
|
* @param {AccountId} account_id
|
|
23125
22699
|
* @param {TransactionRequest} transaction_request
|
|
@@ -23343,37 +22917,6 @@ class WebClient {
|
|
|
23343
22917
|
const ret = wasm.webclient_getOutputNotes(this.__wbg_ptr, ptr0);
|
|
23344
22918
|
return ret;
|
|
23345
22919
|
}
|
|
23346
|
-
/**
|
|
23347
|
-
* Returns the lineage for one order, or `null` if not tracked.
|
|
23348
|
-
*
|
|
23349
|
-
* `order_id` is the order's stable identifier as a decimal string.
|
|
23350
|
-
* @param {string} order_id
|
|
23351
|
-
* @returns {Promise<PswapLineageRecord | undefined>}
|
|
23352
|
-
*/
|
|
23353
|
-
getPswapLineage(order_id) {
|
|
23354
|
-
const ptr0 = passStringToWasm0(order_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
23355
|
-
const len0 = WASM_VECTOR_LEN;
|
|
23356
|
-
const ret = wasm.webclient_getPswapLineage(this.__wbg_ptr, ptr0, len0);
|
|
23357
|
-
return ret;
|
|
23358
|
-
}
|
|
23359
|
-
/**
|
|
23360
|
-
* Returns every PSWAP lineage tracked by this client.
|
|
23361
|
-
* @returns {Promise<PswapLineageRecord[]>}
|
|
23362
|
-
*/
|
|
23363
|
-
getPswapLineages() {
|
|
23364
|
-
const ret = wasm.webclient_getPswapLineages(this.__wbg_ptr);
|
|
23365
|
-
return ret;
|
|
23366
|
-
}
|
|
23367
|
-
/**
|
|
23368
|
-
* Returns lineages created by a specific local account.
|
|
23369
|
-
* @param {AccountId} creator
|
|
23370
|
-
* @returns {Promise<PswapLineageRecord[]>}
|
|
23371
|
-
*/
|
|
23372
|
-
getPswapLineagesFor(creator) {
|
|
23373
|
-
_assertClass(creator, AccountId);
|
|
23374
|
-
const ret = wasm.webclient_getPswapLineagesFor(this.__wbg_ptr, creator.__wbg_ptr);
|
|
23375
|
-
return ret;
|
|
23376
|
-
}
|
|
23377
22920
|
/**
|
|
23378
22921
|
* Returns all public key commitments associated with the given account ID.
|
|
23379
22922
|
*
|
|
@@ -23437,10 +22980,10 @@ class WebClient {
|
|
|
23437
22980
|
/**
|
|
23438
22981
|
* Imports a note file and returns the imported note's identifier.
|
|
23439
22982
|
*
|
|
23440
|
-
* A note file that carries metadata — an explicit `NoteId` or a
|
|
23441
|
-
* with proof — resolves to a concrete `NoteId`, which is returned so
|
|
23442
|
-
* caller can look the note up with [`get_input_note`].
|
|
23443
|
-
*
|
|
22983
|
+
* A note file that carries metadata — an explicit `NoteId` or a committed
|
|
22984
|
+
* note with proof — resolves to a concrete `NoteId`, which is returned so
|
|
22985
|
+
* the caller can look the note up with [`get_input_note`]. An expected-note
|
|
22986
|
+
* file has no metadata and therefore no `NoteId` yet, so its
|
|
23444
22987
|
* metadata-independent details commitment is returned instead.
|
|
23445
22988
|
*
|
|
23446
22989
|
* Migration note (miden-client PR #2214): `Client::import_notes` now
|
|
@@ -23566,30 +23109,6 @@ class WebClient {
|
|
|
23566
23109
|
const ret = wasm.webclient_newAccountWithSecretKey(this.__wbg_ptr, account.__wbg_ptr, secret_key.__wbg_ptr);
|
|
23567
23110
|
return ret;
|
|
23568
23111
|
}
|
|
23569
|
-
/**
|
|
23570
|
-
* Builds a transaction request that bridges a fungible asset out to another network via the
|
|
23571
|
-
* `AggLayer`.
|
|
23572
|
-
*
|
|
23573
|
-
* The request emits a single public B2AGG (Bridge-to-AggLayer) note holding `amount` units of
|
|
23574
|
-
* the `faucet_id` asset. The note is consumed by `bridge_account_id`, which burns the asset so
|
|
23575
|
-
* it can be claimed at `destination_address` (an Ethereum address) on the AggLayer-assigned
|
|
23576
|
-
* `destination_network`.
|
|
23577
|
-
* @param {AccountId} sender_account_id
|
|
23578
|
-
* @param {AccountId} bridge_account_id
|
|
23579
|
-
* @param {AccountId} faucet_id
|
|
23580
|
-
* @param {bigint} amount
|
|
23581
|
-
* @param {number} destination_network
|
|
23582
|
-
* @param {EthAddress} destination_address
|
|
23583
|
-
* @returns {Promise<TransactionRequest>}
|
|
23584
|
-
*/
|
|
23585
|
-
newB2AggTransactionRequest(sender_account_id, bridge_account_id, faucet_id, amount, destination_network, destination_address) {
|
|
23586
|
-
_assertClass(sender_account_id, AccountId);
|
|
23587
|
-
_assertClass(bridge_account_id, AccountId);
|
|
23588
|
-
_assertClass(faucet_id, AccountId);
|
|
23589
|
-
_assertClass(destination_address, EthAddress);
|
|
23590
|
-
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);
|
|
23591
|
-
return ret;
|
|
23592
|
-
}
|
|
23593
23112
|
/**
|
|
23594
23113
|
* @param {Note[]} list_of_notes
|
|
23595
23114
|
* @returns {TransactionRequest}
|
|
@@ -23883,25 +23402,6 @@ class WebClient {
|
|
|
23883
23402
|
const ret = wasm.webclient_submitNewTransaction(this.__wbg_ptr, account_id.__wbg_ptr, transaction_request.__wbg_ptr);
|
|
23884
23403
|
return ret;
|
|
23885
23404
|
}
|
|
23886
|
-
/**
|
|
23887
|
-
* Executes a batch of transactions against the specified account, proves them individually
|
|
23888
|
-
* and as a batch, submits the batch to the network, and atomically applies the per-tx
|
|
23889
|
-
* updates to the local store. Returns the block number the batch was accepted into.
|
|
23890
|
-
*
|
|
23891
|
-
* All transactions must target the same local account — the `account_id` argument.
|
|
23892
|
-
* Each element of `transaction_requests` is the serialized-bytes form of a
|
|
23893
|
-
* `TransactionRequest` (obtained via `tx_request.serialize()`)
|
|
23894
|
-
* @param {AccountId} account_id
|
|
23895
|
-
* @param {Uint8Array[]} transaction_requests
|
|
23896
|
-
* @returns {Promise<number>}
|
|
23897
|
-
*/
|
|
23898
|
-
submitNewTransactionBatch(account_id, transaction_requests) {
|
|
23899
|
-
_assertClass(account_id, AccountId);
|
|
23900
|
-
const ptr0 = passArrayJsValueToWasm0(transaction_requests, wasm.__wbindgen_malloc);
|
|
23901
|
-
const len0 = WASM_VECTOR_LEN;
|
|
23902
|
-
const ret = wasm.webclient_submitNewTransactionBatch(this.__wbg_ptr, account_id.__wbg_ptr, ptr0, len0);
|
|
23903
|
-
return ret;
|
|
23904
|
-
}
|
|
23905
23405
|
/**
|
|
23906
23406
|
* Executes a transaction specified by the request against the specified account, proves it
|
|
23907
23407
|
* with the user provided prover, submits it to the network, and updates the local database.
|
|
@@ -24521,7 +24021,7 @@ function __wbg_get_imports(memory) {
|
|
|
24521
24021
|
const ret = AccountStorage.__wrap(arg0);
|
|
24522
24022
|
return ret;
|
|
24523
24023
|
},
|
|
24524
|
-
|
|
24024
|
+
__wbg_addNoteTag_1500aff2fa0d151c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
24525
24025
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
24526
24026
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
24527
24027
|
let v1;
|
|
@@ -24549,25 +24049,7 @@ function __wbg_get_imports(memory) {
|
|
|
24549
24049
|
__wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
24550
24050
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
24551
24051
|
}, arguments); },
|
|
24552
|
-
|
|
24553
|
-
const ret = applyFullAccountState(getStringFromWasm0(arg0, arg1), JsAccountUpdate.__wrap(arg2));
|
|
24554
|
-
return ret;
|
|
24555
|
-
},
|
|
24556
|
-
__wbg_applySettingsMutations_5de1d94023be9157: function(arg0, arg1, arg2, arg3) {
|
|
24557
|
-
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24558
|
-
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24559
|
-
const ret = applySettingsMutations(getStringFromWasm0(arg0, arg1), v0);
|
|
24560
|
-
return ret;
|
|
24561
|
-
},
|
|
24562
|
-
__wbg_applyStateSync_189438332d96496e: function(arg0, arg1, arg2) {
|
|
24563
|
-
const ret = applyStateSync(getStringFromWasm0(arg0, arg1), JsStateSyncUpdate.__wrap(arg2));
|
|
24564
|
-
return ret;
|
|
24565
|
-
},
|
|
24566
|
-
__wbg_applyTransactionBatch_c300ed1fee34127a: function(arg0, arg1, arg2) {
|
|
24567
|
-
const ret = applyTransactionBatch(getStringFromWasm0(arg0, arg1), arg2);
|
|
24568
|
-
return ret;
|
|
24569
|
-
},
|
|
24570
|
-
__wbg_applyTransactionDelta_88c7fcff9175e58e: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20) {
|
|
24052
|
+
__wbg_applyAccountPatch_ade374c1e2049a8e: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20) {
|
|
24571
24053
|
let deferred0_0;
|
|
24572
24054
|
let deferred0_1;
|
|
24573
24055
|
let deferred1_0;
|
|
@@ -24599,7 +24081,7 @@ function __wbg_get_imports(memory) {
|
|
|
24599
24081
|
deferred7_1 = arg17;
|
|
24600
24082
|
deferred8_0 = arg19;
|
|
24601
24083
|
deferred8_1 = arg20;
|
|
24602
|
-
const ret =
|
|
24084
|
+
const ret = applyAccountPatch(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), v2, v3, v4, getStringFromWasm0(arg12, arg13), getStringFromWasm0(arg14, arg15), getStringFromWasm0(arg16, arg17), arg18 !== 0, getStringFromWasm0(arg19, arg20));
|
|
24603
24085
|
return ret;
|
|
24604
24086
|
} finally {
|
|
24605
24087
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
@@ -24610,6 +24092,20 @@ function __wbg_get_imports(memory) {
|
|
|
24610
24092
|
wasm.__wbindgen_free(deferred8_0, deferred8_1, 1);
|
|
24611
24093
|
}
|
|
24612
24094
|
},
|
|
24095
|
+
__wbg_applyFullAccountState_f9562e4091c2eaf6: function(arg0, arg1, arg2) {
|
|
24096
|
+
const ret = applyFullAccountState(getStringFromWasm0(arg0, arg1), JsAccountUpdate.__wrap(arg2));
|
|
24097
|
+
return ret;
|
|
24098
|
+
},
|
|
24099
|
+
__wbg_applySettingsMutations_722d272d653902a1: function(arg0, arg1, arg2, arg3) {
|
|
24100
|
+
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24101
|
+
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24102
|
+
const ret = applySettingsMutations(getStringFromWasm0(arg0, arg1), v0);
|
|
24103
|
+
return ret;
|
|
24104
|
+
},
|
|
24105
|
+
__wbg_applyStateSync_4c25ec00de2f60bb: function(arg0, arg1, arg2) {
|
|
24106
|
+
const ret = applyStateSync(getStringFromWasm0(arg0, arg1), JsStateSyncUpdate.__wrap(arg2));
|
|
24107
|
+
return ret;
|
|
24108
|
+
},
|
|
24613
24109
|
__wbg_assetvault_new: function(arg0) {
|
|
24614
24110
|
const ret = AssetVault.__wrap(arg0);
|
|
24615
24111
|
return ret;
|
|
@@ -24718,7 +24214,7 @@ function __wbg_get_imports(memory) {
|
|
|
24718
24214
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24719
24215
|
}
|
|
24720
24216
|
},
|
|
24721
|
-
|
|
24217
|
+
__wbg_exportStore_3b84792dca9a9ef1: function(arg0, arg1) {
|
|
24722
24218
|
const ret = exportStore(getStringFromWasm0(arg0, arg1));
|
|
24723
24219
|
return ret;
|
|
24724
24220
|
},
|
|
@@ -24750,7 +24246,7 @@ function __wbg_get_imports(memory) {
|
|
|
24750
24246
|
const ret = FetchedNote.__wrap(arg0);
|
|
24751
24247
|
return ret;
|
|
24752
24248
|
},
|
|
24753
|
-
|
|
24249
|
+
__wbg_forceImportStore_6a4fb8bc450bbf4a: function(arg0, arg1, arg2) {
|
|
24754
24250
|
const ret = forceImportStore(getStringFromWasm0(arg0, arg1), arg2);
|
|
24755
24251
|
return ret;
|
|
24756
24252
|
},
|
|
@@ -24758,10 +24254,6 @@ function __wbg_get_imports(memory) {
|
|
|
24758
24254
|
const ret = ForeignAccount.__unwrap(arg0);
|
|
24759
24255
|
return ret;
|
|
24760
24256
|
},
|
|
24761
|
-
__wbg_from_bddd64e7d5ff6941: function(arg0) {
|
|
24762
|
-
const ret = Array.from(arg0);
|
|
24763
|
-
return ret;
|
|
24764
|
-
},
|
|
24765
24257
|
__wbg_fungibleasset_new: function(arg0) {
|
|
24766
24258
|
const ret = FungibleAsset.__wrap(arg0);
|
|
24767
24259
|
return ret;
|
|
@@ -24774,7 +24266,7 @@ function __wbg_get_imports(memory) {
|
|
|
24774
24266
|
const ret = FungibleAssetDeltaItem.__wrap(arg0);
|
|
24775
24267
|
return ret;
|
|
24776
24268
|
},
|
|
24777
|
-
|
|
24269
|
+
__wbg_getAccountAddresses_68ba5f3f8a9c7e15: function(arg0, arg1, arg2, arg3) {
|
|
24778
24270
|
let deferred0_0;
|
|
24779
24271
|
let deferred0_1;
|
|
24780
24272
|
try {
|
|
@@ -24786,7 +24278,7 @@ function __wbg_get_imports(memory) {
|
|
|
24786
24278
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24787
24279
|
}
|
|
24788
24280
|
},
|
|
24789
|
-
|
|
24281
|
+
__wbg_getAccountAuthByPubKeyCommitment_568661071566f307: function(arg0, arg1, arg2, arg3) {
|
|
24790
24282
|
let deferred0_0;
|
|
24791
24283
|
let deferred0_1;
|
|
24792
24284
|
try {
|
|
@@ -24798,7 +24290,7 @@ function __wbg_get_imports(memory) {
|
|
|
24798
24290
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24799
24291
|
}
|
|
24800
24292
|
},
|
|
24801
|
-
|
|
24293
|
+
__wbg_getAccountCode_14e446cd1a3f814f: function(arg0, arg1, arg2, arg3) {
|
|
24802
24294
|
let deferred0_0;
|
|
24803
24295
|
let deferred0_1;
|
|
24804
24296
|
try {
|
|
@@ -24810,7 +24302,7 @@ function __wbg_get_imports(memory) {
|
|
|
24810
24302
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24811
24303
|
}
|
|
24812
24304
|
},
|
|
24813
|
-
|
|
24305
|
+
__wbg_getAccountHeaderByCommitment_0e10e9ac733f359b: function(arg0, arg1, arg2, arg3) {
|
|
24814
24306
|
let deferred0_0;
|
|
24815
24307
|
let deferred0_1;
|
|
24816
24308
|
try {
|
|
@@ -24822,7 +24314,7 @@ function __wbg_get_imports(memory) {
|
|
|
24822
24314
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24823
24315
|
}
|
|
24824
24316
|
},
|
|
24825
|
-
|
|
24317
|
+
__wbg_getAccountHeader_ef6ad25115d9bd02: function(arg0, arg1, arg2, arg3) {
|
|
24826
24318
|
let deferred0_0;
|
|
24827
24319
|
let deferred0_1;
|
|
24828
24320
|
try {
|
|
@@ -24834,7 +24326,7 @@ function __wbg_get_imports(memory) {
|
|
|
24834
24326
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24835
24327
|
}
|
|
24836
24328
|
},
|
|
24837
|
-
|
|
24329
|
+
__wbg_getAccountIdByKeyCommitment_c0c17f1af8b92023: function(arg0, arg1, arg2, arg3) {
|
|
24838
24330
|
let deferred0_0;
|
|
24839
24331
|
let deferred0_1;
|
|
24840
24332
|
try {
|
|
@@ -24846,11 +24338,11 @@ function __wbg_get_imports(memory) {
|
|
|
24846
24338
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24847
24339
|
}
|
|
24848
24340
|
},
|
|
24849
|
-
|
|
24341
|
+
__wbg_getAccountIds_07de8c6f4a5ee883: function(arg0, arg1) {
|
|
24850
24342
|
const ret = getAccountIds(getStringFromWasm0(arg0, arg1));
|
|
24851
24343
|
return ret;
|
|
24852
24344
|
},
|
|
24853
|
-
|
|
24345
|
+
__wbg_getAccountStorageMaps_b16de6210ce82188: function(arg0, arg1, arg2, arg3) {
|
|
24854
24346
|
let deferred0_0;
|
|
24855
24347
|
let deferred0_1;
|
|
24856
24348
|
try {
|
|
@@ -24862,7 +24354,7 @@ function __wbg_get_imports(memory) {
|
|
|
24862
24354
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24863
24355
|
}
|
|
24864
24356
|
},
|
|
24865
|
-
|
|
24357
|
+
__wbg_getAccountStorage_c876ec60dbfa6cee: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24866
24358
|
let deferred0_0;
|
|
24867
24359
|
let deferred0_1;
|
|
24868
24360
|
try {
|
|
@@ -24876,7 +24368,7 @@ function __wbg_get_imports(memory) {
|
|
|
24876
24368
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24877
24369
|
}
|
|
24878
24370
|
},
|
|
24879
|
-
|
|
24371
|
+
__wbg_getAccountVaultAssets_479ef945dd51412a: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24880
24372
|
let deferred0_0;
|
|
24881
24373
|
let deferred0_1;
|
|
24882
24374
|
try {
|
|
@@ -24890,27 +24382,27 @@ function __wbg_get_imports(memory) {
|
|
|
24890
24382
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24891
24383
|
}
|
|
24892
24384
|
},
|
|
24893
|
-
|
|
24385
|
+
__wbg_getAllAccountHeaders_f78e678ad24296de: function(arg0, arg1) {
|
|
24894
24386
|
const ret = getAllAccountHeaders(getStringFromWasm0(arg0, arg1));
|
|
24895
24387
|
return ret;
|
|
24896
24388
|
},
|
|
24897
|
-
|
|
24389
|
+
__wbg_getBlockHeaders_a55990d3957c0d9d: function(arg0, arg1, arg2, arg3) {
|
|
24898
24390
|
var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
|
|
24899
24391
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24900
24392
|
const ret = getBlockHeaders(getStringFromWasm0(arg0, arg1), v0);
|
|
24901
24393
|
return ret;
|
|
24902
24394
|
},
|
|
24903
|
-
|
|
24395
|
+
__wbg_getCurrentBlockchainPeaks_b276a676a0f16d93: function(arg0, arg1) {
|
|
24904
24396
|
const ret = getCurrentBlockchainPeaks(getStringFromWasm0(arg0, arg1));
|
|
24905
24397
|
return ret;
|
|
24906
24398
|
},
|
|
24907
|
-
|
|
24399
|
+
__wbg_getForeignAccountCode_9f88c11936e9c43d: function(arg0, arg1, arg2, arg3) {
|
|
24908
24400
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24909
24401
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24910
24402
|
const ret = getForeignAccountCode(getStringFromWasm0(arg0, arg1), v0);
|
|
24911
24403
|
return ret;
|
|
24912
24404
|
},
|
|
24913
|
-
|
|
24405
|
+
__wbg_getInputNoteByOffset_d8ec28ef8b63a88f: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
24914
24406
|
let deferred1_0;
|
|
24915
24407
|
let deferred1_1;
|
|
24916
24408
|
try {
|
|
@@ -24924,31 +24416,31 @@ function __wbg_get_imports(memory) {
|
|
|
24924
24416
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
24925
24417
|
}
|
|
24926
24418
|
},
|
|
24927
|
-
|
|
24419
|
+
__wbg_getInputNotesFromDetailsCommitments_9590f42d9e96e86c: function(arg0, arg1, arg2, arg3) {
|
|
24928
24420
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24929
24421
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24930
24422
|
const ret = getInputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
|
|
24931
24423
|
return ret;
|
|
24932
24424
|
},
|
|
24933
|
-
|
|
24425
|
+
__wbg_getInputNotesFromIds_d290a8e093978eae: function(arg0, arg1, arg2, arg3) {
|
|
24934
24426
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24935
24427
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24936
24428
|
const ret = getInputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
|
|
24937
24429
|
return ret;
|
|
24938
24430
|
},
|
|
24939
|
-
|
|
24431
|
+
__wbg_getInputNotesFromNullifiers_2b5fa39ec52ecab6: function(arg0, arg1, arg2, arg3) {
|
|
24940
24432
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24941
24433
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24942
24434
|
const ret = getInputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
|
|
24943
24435
|
return ret;
|
|
24944
24436
|
},
|
|
24945
|
-
|
|
24437
|
+
__wbg_getInputNotes_1c76764676f21be5: function(arg0, arg1, arg2, arg3) {
|
|
24946
24438
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
24947
24439
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
24948
24440
|
const ret = getInputNotes(getStringFromWasm0(arg0, arg1), v0);
|
|
24949
24441
|
return ret;
|
|
24950
24442
|
},
|
|
24951
|
-
|
|
24443
|
+
__wbg_getKeyCommitmentsByAccountId_7962a39c985c54e5: function(arg0, arg1, arg2, arg3) {
|
|
24952
24444
|
let deferred0_0;
|
|
24953
24445
|
let deferred0_1;
|
|
24954
24446
|
try {
|
|
@@ -24960,7 +24452,7 @@ function __wbg_get_imports(memory) {
|
|
|
24960
24452
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24961
24453
|
}
|
|
24962
24454
|
},
|
|
24963
|
-
|
|
24455
|
+
__wbg_getNoteScript_b2cf59d7cf9d19e7: function(arg0, arg1, arg2, arg3) {
|
|
24964
24456
|
let deferred0_0;
|
|
24965
24457
|
let deferred0_1;
|
|
24966
24458
|
try {
|
|
@@ -24972,39 +24464,39 @@ function __wbg_get_imports(memory) {
|
|
|
24972
24464
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24973
24465
|
}
|
|
24974
24466
|
},
|
|
24975
|
-
|
|
24467
|
+
__wbg_getNoteTags_a45689c54d964e46: function(arg0, arg1) {
|
|
24976
24468
|
const ret = getNoteTags(getStringFromWasm0(arg0, arg1));
|
|
24977
24469
|
return ret;
|
|
24978
24470
|
},
|
|
24979
|
-
|
|
24471
|
+
__wbg_getOutputNotesFromDetailsCommitments_b15793905bc47309: function(arg0, arg1, arg2, arg3) {
|
|
24980
24472
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24981
24473
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24982
24474
|
const ret = getOutputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
|
|
24983
24475
|
return ret;
|
|
24984
24476
|
},
|
|
24985
|
-
|
|
24477
|
+
__wbg_getOutputNotesFromIds_d340ff4a6d4c5c8e: function(arg0, arg1, arg2, arg3) {
|
|
24986
24478
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24987
24479
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24988
24480
|
const ret = getOutputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
|
|
24989
24481
|
return ret;
|
|
24990
24482
|
},
|
|
24991
|
-
|
|
24483
|
+
__wbg_getOutputNotesFromNullifiers_48b112e53ca4eea7: function(arg0, arg1, arg2, arg3) {
|
|
24992
24484
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24993
24485
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24994
24486
|
const ret = getOutputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
|
|
24995
24487
|
return ret;
|
|
24996
24488
|
},
|
|
24997
|
-
|
|
24489
|
+
__wbg_getOutputNotes_2679465821c837b7: function(arg0, arg1, arg2, arg3) {
|
|
24998
24490
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
24999
24491
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
25000
24492
|
const ret = getOutputNotes(getStringFromWasm0(arg0, arg1), v0);
|
|
25001
24493
|
return ret;
|
|
25002
24494
|
},
|
|
25003
|
-
|
|
24495
|
+
__wbg_getPartialBlockchainNodesAll_9496498a665775d9: function(arg0, arg1) {
|
|
25004
24496
|
const ret = getPartialBlockchainNodesAll(getStringFromWasm0(arg0, arg1));
|
|
25005
24497
|
return ret;
|
|
25006
24498
|
},
|
|
25007
|
-
|
|
24499
|
+
__wbg_getPartialBlockchainNodesUpToInOrderIndex_2196a0e786754bd1: function(arg0, arg1, arg2, arg3) {
|
|
25008
24500
|
let deferred0_0;
|
|
25009
24501
|
let deferred0_1;
|
|
25010
24502
|
try {
|
|
@@ -25016,20 +24508,20 @@ function __wbg_get_imports(memory) {
|
|
|
25016
24508
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25017
24509
|
}
|
|
25018
24510
|
},
|
|
25019
|
-
|
|
24511
|
+
__wbg_getPartialBlockchainNodes_0a6c2a323b1f4caa: function(arg0, arg1, arg2, arg3) {
|
|
25020
24512
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
25021
24513
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
25022
24514
|
const ret = getPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0);
|
|
25023
24515
|
return ret;
|
|
25024
24516
|
},
|
|
25025
|
-
|
|
24517
|
+
__wbg_getRandomValues_90e56bff4f3b89fb: function() { return handleError(function (arg0) {
|
|
25026
24518
|
globalThis.crypto.getRandomValues(arg0);
|
|
25027
24519
|
}, arguments); },
|
|
25028
24520
|
__wbg_getReader_f47519d698a4505e: function() { return handleError(function (arg0) {
|
|
25029
24521
|
const ret = arg0.getReader();
|
|
25030
24522
|
return ret;
|
|
25031
24523
|
}, arguments); },
|
|
25032
|
-
|
|
24524
|
+
__wbg_getSetting_319d65b5a2e111a2: function(arg0, arg1, arg2, arg3) {
|
|
25033
24525
|
let deferred0_0;
|
|
25034
24526
|
let deferred0_1;
|
|
25035
24527
|
try {
|
|
@@ -25041,7 +24533,7 @@ function __wbg_get_imports(memory) {
|
|
|
25041
24533
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25042
24534
|
}
|
|
25043
24535
|
},
|
|
25044
|
-
|
|
24536
|
+
__wbg_getSyncHeight_94e6d0d761426ec9: function(arg0, arg1) {
|
|
25045
24537
|
const ret = getSyncHeight(getStringFromWasm0(arg0, arg1));
|
|
25046
24538
|
return ret;
|
|
25047
24539
|
},
|
|
@@ -25049,15 +24541,15 @@ function __wbg_get_imports(memory) {
|
|
|
25049
24541
|
const ret = arg0.getTime();
|
|
25050
24542
|
return ret;
|
|
25051
24543
|
},
|
|
25052
|
-
|
|
24544
|
+
__wbg_getTrackedBlockHeaderNumbers_5a8edd94c7b7613c: function(arg0, arg1) {
|
|
25053
24545
|
const ret = getTrackedBlockHeaderNumbers(getStringFromWasm0(arg0, arg1));
|
|
25054
24546
|
return ret;
|
|
25055
24547
|
},
|
|
25056
|
-
|
|
24548
|
+
__wbg_getTrackedBlockHeaders_3292740bff6c9b4c: function(arg0, arg1) {
|
|
25057
24549
|
const ret = getTrackedBlockHeaders(getStringFromWasm0(arg0, arg1));
|
|
25058
24550
|
return ret;
|
|
25059
24551
|
},
|
|
25060
|
-
|
|
24552
|
+
__wbg_getTransactions_0c5674a652c44917: function(arg0, arg1, arg2, arg3) {
|
|
25061
24553
|
let deferred0_0;
|
|
25062
24554
|
let deferred0_1;
|
|
25063
24555
|
try {
|
|
@@ -25069,7 +24561,7 @@ function __wbg_get_imports(memory) {
|
|
|
25069
24561
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25070
24562
|
}
|
|
25071
24563
|
},
|
|
25072
|
-
|
|
24564
|
+
__wbg_getUnspentInputNoteNullifiers_6c9d5852b42b8c73: function(arg0, arg1) {
|
|
25073
24565
|
const ret = getUnspentInputNoteNullifiers(getStringFromWasm0(arg0, arg1));
|
|
25074
24566
|
return ret;
|
|
25075
24567
|
},
|
|
@@ -25113,7 +24605,7 @@ function __wbg_get_imports(memory) {
|
|
|
25113
24605
|
const ret = InputNoteRecord.__wrap(arg0);
|
|
25114
24606
|
return ret;
|
|
25115
24607
|
},
|
|
25116
|
-
|
|
24608
|
+
__wbg_insertAccountAddress_36db2bb32e10fd9b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25117
24609
|
let deferred0_0;
|
|
25118
24610
|
let deferred0_1;
|
|
25119
24611
|
try {
|
|
@@ -25127,7 +24619,7 @@ function __wbg_get_imports(memory) {
|
|
|
25127
24619
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25128
24620
|
}
|
|
25129
24621
|
},
|
|
25130
|
-
|
|
24622
|
+
__wbg_insertAccountAuth_2763614f9c61eb99: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25131
24623
|
let deferred0_0;
|
|
25132
24624
|
let deferred0_1;
|
|
25133
24625
|
let deferred1_0;
|
|
@@ -25144,7 +24636,7 @@ function __wbg_get_imports(memory) {
|
|
|
25144
24636
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
25145
24637
|
}
|
|
25146
24638
|
},
|
|
25147
|
-
|
|
24639
|
+
__wbg_insertAccountKeyMapping_5440caed0fe18250: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25148
24640
|
let deferred0_0;
|
|
25149
24641
|
let deferred0_1;
|
|
25150
24642
|
let deferred1_0;
|
|
@@ -25161,21 +24653,17 @@ function __wbg_get_imports(memory) {
|
|
|
25161
24653
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
25162
24654
|
}
|
|
25163
24655
|
},
|
|
25164
|
-
|
|
24656
|
+
__wbg_insertBlockHeader_ca254bedd530d7a3: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
25165
24657
|
var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
|
|
25166
24658
|
wasm.__wbindgen_free(arg3, arg4 * 1, 1);
|
|
25167
|
-
|
|
25168
|
-
|
|
25169
|
-
|
|
25170
|
-
|
|
25171
|
-
|
|
25172
|
-
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
25173
|
-
var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
|
|
25174
|
-
wasm.__wbindgen_free(arg4, arg5 * 4, 4);
|
|
25175
|
-
const ret = insertPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0, v1);
|
|
24659
|
+
var v1 = getArrayJsValueFromWasm0(arg6, arg7).slice();
|
|
24660
|
+
wasm.__wbindgen_free(arg6, arg7 * 4, 4);
|
|
24661
|
+
var v2 = getArrayJsValueFromWasm0(arg8, arg9).slice();
|
|
24662
|
+
wasm.__wbindgen_free(arg8, arg9 * 4, 4);
|
|
24663
|
+
const ret = insertBlockHeader(getStringFromWasm0(arg0, arg1), arg2 >>> 0, v0, arg5 !== 0, v1, v2);
|
|
25176
24664
|
return ret;
|
|
25177
24665
|
},
|
|
25178
|
-
|
|
24666
|
+
__wbg_insertSetting_2b672c0bf3a3668d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25179
24667
|
let deferred0_0;
|
|
25180
24668
|
let deferred0_1;
|
|
25181
24669
|
try {
|
|
@@ -25189,7 +24677,7 @@ function __wbg_get_imports(memory) {
|
|
|
25189
24677
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25190
24678
|
}
|
|
25191
24679
|
},
|
|
25192
|
-
|
|
24680
|
+
__wbg_insertTransactionScript_f052607e004c23aa: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25193
24681
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
25194
24682
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
25195
24683
|
let v1;
|
|
@@ -25296,11 +24784,11 @@ function __wbg_get_imports(memory) {
|
|
|
25296
24784
|
const ret = arg0.length;
|
|
25297
24785
|
return ret;
|
|
25298
24786
|
},
|
|
25299
|
-
|
|
24787
|
+
__wbg_listSettingKeys_73b3c34ff51ee657: function(arg0, arg1) {
|
|
25300
24788
|
const ret = listSettingKeys(getStringFromWasm0(arg0, arg1));
|
|
25301
24789
|
return ret;
|
|
25302
24790
|
},
|
|
25303
|
-
|
|
24791
|
+
__wbg_lockAccount_a59ff3c777c9188c: function(arg0, arg1, arg2, arg3) {
|
|
25304
24792
|
let deferred0_0;
|
|
25305
24793
|
let deferred0_1;
|
|
25306
24794
|
try {
|
|
@@ -25459,10 +24947,6 @@ function __wbg_get_imports(memory) {
|
|
|
25459
24947
|
const ret = NoteAttachment.__wrap(arg0);
|
|
25460
24948
|
return ret;
|
|
25461
24949
|
},
|
|
25462
|
-
__wbg_noteattachment_unwrap: function(arg0) {
|
|
25463
|
-
const ret = NoteAttachment.__unwrap(arg0);
|
|
25464
|
-
return ret;
|
|
25465
|
-
},
|
|
25466
24950
|
__wbg_noteconsumability_new: function(arg0) {
|
|
25467
24951
|
const ret = NoteConsumability.__wrap(arg0);
|
|
25468
24952
|
return ret;
|
|
@@ -25519,7 +25003,7 @@ function __wbg_get_imports(memory) {
|
|
|
25519
25003
|
const ret = Array.of(arg0, arg1, arg2);
|
|
25520
25004
|
return ret;
|
|
25521
25005
|
},
|
|
25522
|
-
|
|
25006
|
+
__wbg_openDatabase_8ac110fce86d145e: function(arg0, arg1, arg2, arg3) {
|
|
25523
25007
|
const ret = openDatabase(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
25524
25008
|
return ret;
|
|
25525
25009
|
},
|
|
@@ -25553,7 +25037,7 @@ function __wbg_get_imports(memory) {
|
|
|
25553
25037
|
const ret = ProvenTransaction.__wrap(arg0);
|
|
25554
25038
|
return ret;
|
|
25555
25039
|
},
|
|
25556
|
-
|
|
25040
|
+
__wbg_pruneAccountHistory_c2e9f7b1d4846bc6: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25557
25041
|
let deferred0_0;
|
|
25558
25042
|
let deferred0_1;
|
|
25559
25043
|
let deferred1_0;
|
|
@@ -25570,7 +25054,7 @@ function __wbg_get_imports(memory) {
|
|
|
25570
25054
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
25571
25055
|
}
|
|
25572
25056
|
},
|
|
25573
|
-
|
|
25057
|
+
__wbg_pruneIrrelevantBlocks_33e6cf62a24f1f38: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25574
25058
|
var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
|
|
25575
25059
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
25576
25060
|
var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
|
|
@@ -25578,14 +25062,6 @@ function __wbg_get_imports(memory) {
|
|
|
25578
25062
|
const ret = pruneIrrelevantBlocks(getStringFromWasm0(arg0, arg1), v0, v1);
|
|
25579
25063
|
return ret;
|
|
25580
25064
|
},
|
|
25581
|
-
__wbg_pswaplineagerecord_new: function(arg0) {
|
|
25582
|
-
const ret = PswapLineageRecord.__wrap(arg0);
|
|
25583
|
-
return ret;
|
|
25584
|
-
},
|
|
25585
|
-
__wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
|
|
25586
|
-
const ret = arg0.push(arg1);
|
|
25587
|
-
return ret;
|
|
25588
|
-
},
|
|
25589
25065
|
__wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
|
|
25590
25066
|
const ret = arg0.queueMicrotask;
|
|
25591
25067
|
return ret;
|
|
@@ -25600,13 +25076,13 @@ function __wbg_get_imports(memory) {
|
|
|
25600
25076
|
__wbg_releaseLock_aa5846c2494b3032: function(arg0) {
|
|
25601
25077
|
arg0.releaseLock();
|
|
25602
25078
|
},
|
|
25603
|
-
|
|
25079
|
+
__wbg_removeAccountAddress_5cbeda1f06e27b96: function(arg0, arg1, arg2, arg3) {
|
|
25604
25080
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
25605
25081
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
25606
25082
|
const ret = removeAccountAddress(getStringFromWasm0(arg0, arg1), v0);
|
|
25607
25083
|
return ret;
|
|
25608
25084
|
},
|
|
25609
|
-
|
|
25085
|
+
__wbg_removeAccountAuth_825600c45bdd5aa3: function(arg0, arg1, arg2, arg3) {
|
|
25610
25086
|
let deferred0_0;
|
|
25611
25087
|
let deferred0_1;
|
|
25612
25088
|
try {
|
|
@@ -25618,7 +25094,7 @@ function __wbg_get_imports(memory) {
|
|
|
25618
25094
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25619
25095
|
}
|
|
25620
25096
|
},
|
|
25621
|
-
|
|
25097
|
+
__wbg_removeAllMappingsForKey_3f439269152ce6e0: function(arg0, arg1, arg2, arg3) {
|
|
25622
25098
|
let deferred0_0;
|
|
25623
25099
|
let deferred0_1;
|
|
25624
25100
|
try {
|
|
@@ -25630,7 +25106,7 @@ function __wbg_get_imports(memory) {
|
|
|
25630
25106
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25631
25107
|
}
|
|
25632
25108
|
},
|
|
25633
|
-
|
|
25109
|
+
__wbg_removeNoteTag_e2ea5486d35929ca: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
25634
25110
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
25635
25111
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
25636
25112
|
let v1;
|
|
@@ -25651,7 +25127,7 @@ function __wbg_get_imports(memory) {
|
|
|
25651
25127
|
const ret = removeNoteTag(getStringFromWasm0(arg0, arg1), v0, v1, v2, v3);
|
|
25652
25128
|
return ret;
|
|
25653
25129
|
},
|
|
25654
|
-
|
|
25130
|
+
__wbg_removeSetting_5fac6592df936024: function(arg0, arg1, arg2, arg3) {
|
|
25655
25131
|
let deferred0_0;
|
|
25656
25132
|
let deferred0_1;
|
|
25657
25133
|
try {
|
|
@@ -25702,9 +25178,6 @@ function __wbg_get_imports(memory) {
|
|
|
25702
25178
|
const ret = setTimeout(arg0, arg1);
|
|
25703
25179
|
return ret;
|
|
25704
25180
|
}, arguments); },
|
|
25705
|
-
__wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
|
|
25706
|
-
arg0[arg1] = arg2;
|
|
25707
|
-
},
|
|
25708
25181
|
__wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
|
|
25709
25182
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
25710
25183
|
return ret;
|
|
@@ -25861,13 +25334,13 @@ function __wbg_get_imports(memory) {
|
|
|
25861
25334
|
const ret = TransactionSummary.__wrap(arg0);
|
|
25862
25335
|
return ret;
|
|
25863
25336
|
},
|
|
25864
|
-
|
|
25337
|
+
__wbg_undoAccountStates_884490500595e8c1: function(arg0, arg1, arg2, arg3) {
|
|
25865
25338
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
25866
25339
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
25867
25340
|
const ret = undoAccountStates(getStringFromWasm0(arg0, arg1), v0);
|
|
25868
25341
|
return ret;
|
|
25869
25342
|
},
|
|
25870
|
-
|
|
25343
|
+
__wbg_upsertAccountCode_ce71ea974ae52d20: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25871
25344
|
let deferred0_0;
|
|
25872
25345
|
let deferred0_1;
|
|
25873
25346
|
try {
|
|
@@ -25881,7 +25354,7 @@ function __wbg_get_imports(memory) {
|
|
|
25881
25354
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25882
25355
|
}
|
|
25883
25356
|
},
|
|
25884
|
-
|
|
25357
|
+
__wbg_upsertAccountRecord_793d7ddc0ba72c6d: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) {
|
|
25885
25358
|
let deferred0_0;
|
|
25886
25359
|
let deferred0_1;
|
|
25887
25360
|
let deferred1_0;
|
|
@@ -25923,7 +25396,7 @@ function __wbg_get_imports(memory) {
|
|
|
25923
25396
|
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
25924
25397
|
}
|
|
25925
25398
|
},
|
|
25926
|
-
|
|
25399
|
+
__wbg_upsertAccountStorage_5e3e18f2388a4516: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25927
25400
|
let deferred0_0;
|
|
25928
25401
|
let deferred0_1;
|
|
25929
25402
|
try {
|
|
@@ -25937,7 +25410,7 @@ function __wbg_get_imports(memory) {
|
|
|
25937
25410
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25938
25411
|
}
|
|
25939
25412
|
},
|
|
25940
|
-
|
|
25413
|
+
__wbg_upsertForeignAccountCode_dc483b928e37841a: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
25941
25414
|
let deferred0_0;
|
|
25942
25415
|
let deferred0_1;
|
|
25943
25416
|
let deferred2_0;
|
|
@@ -25956,7 +25429,7 @@ function __wbg_get_imports(memory) {
|
|
|
25956
25429
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
25957
25430
|
}
|
|
25958
25431
|
},
|
|
25959
|
-
|
|
25432
|
+
__wbg_upsertInputNote_570ff0eb47e436a6: 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) {
|
|
25960
25433
|
let deferred0_0;
|
|
25961
25434
|
let deferred0_1;
|
|
25962
25435
|
let deferred6_0;
|
|
@@ -26005,7 +25478,7 @@ function __wbg_get_imports(memory) {
|
|
|
26005
25478
|
wasm.__wbindgen_free(deferred9_0, deferred9_1, 1);
|
|
26006
25479
|
}
|
|
26007
25480
|
},
|
|
26008
|
-
|
|
25481
|
+
__wbg_upsertNoteScript_478f10dbd569c41c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
26009
25482
|
let deferred0_0;
|
|
26010
25483
|
let deferred0_1;
|
|
26011
25484
|
try {
|
|
@@ -26019,7 +25492,7 @@ function __wbg_get_imports(memory) {
|
|
|
26019
25492
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
26020
25493
|
}
|
|
26021
25494
|
},
|
|
26022
|
-
|
|
25495
|
+
__wbg_upsertOutputNote_81d633e2913e530c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) {
|
|
26023
25496
|
let deferred0_0;
|
|
26024
25497
|
let deferred0_1;
|
|
26025
25498
|
let deferred1_0;
|
|
@@ -26054,7 +25527,7 @@ function __wbg_get_imports(memory) {
|
|
|
26054
25527
|
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
26055
25528
|
}
|
|
26056
25529
|
},
|
|
26057
|
-
|
|
25530
|
+
__wbg_upsertStorageMapEntries_6458946c680ec0cc: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
26058
25531
|
let deferred0_0;
|
|
26059
25532
|
let deferred0_1;
|
|
26060
25533
|
try {
|
|
@@ -26068,7 +25541,7 @@ function __wbg_get_imports(memory) {
|
|
|
26068
25541
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
26069
25542
|
}
|
|
26070
25543
|
},
|
|
26071
|
-
|
|
25544
|
+
__wbg_upsertTransactionRecord_5f48cbfd35e412bc: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
26072
25545
|
let deferred0_0;
|
|
26073
25546
|
let deferred0_1;
|
|
26074
25547
|
try {
|
|
@@ -26089,7 +25562,7 @@ function __wbg_get_imports(memory) {
|
|
|
26089
25562
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
26090
25563
|
}
|
|
26091
25564
|
},
|
|
26092
|
-
|
|
25565
|
+
__wbg_upsertVaultAssets_3d383338bd7746b0: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
26093
25566
|
let deferred0_0;
|
|
26094
25567
|
let deferred0_1;
|
|
26095
25568
|
try {
|
|
@@ -26132,17 +25605,17 @@ function __wbg_get_imports(memory) {
|
|
|
26132
25605
|
return ret;
|
|
26133
25606
|
},
|
|
26134
25607
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
26135
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
25608
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 116, function: Function { arguments: [Externref], shim_idx: 117, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
26136
25609
|
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_____);
|
|
26137
25610
|
return ret;
|
|
26138
25611
|
},
|
|
26139
25612
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
26140
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
25613
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 116, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 117, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
26141
25614
|
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_____);
|
|
26142
25615
|
return ret;
|
|
26143
25616
|
},
|
|
26144
25617
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
26145
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
25618
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 116, function: Function { arguments: [], shim_idx: 415, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
26146
25619
|
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______);
|
|
26147
25620
|
return ret;
|
|
26148
25621
|
},
|
|
@@ -26152,91 +25625,79 @@ function __wbg_get_imports(memory) {
|
|
|
26152
25625
|
return ret;
|
|
26153
25626
|
},
|
|
26154
25627
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
26155
|
-
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
26156
|
-
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
26157
|
-
return ret;
|
|
26158
|
-
},
|
|
26159
|
-
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
26160
25628
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
26161
25629
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
26162
25630
|
return ret;
|
|
26163
25631
|
},
|
|
26164
|
-
|
|
25632
|
+
__wbindgen_cast_0000000000000006: function(arg0) {
|
|
26165
25633
|
// Cast intrinsic for `U64 -> Externref`.
|
|
26166
25634
|
const ret = BigInt.asUintN(64, arg0);
|
|
26167
25635
|
return ret;
|
|
26168
25636
|
},
|
|
26169
|
-
|
|
25637
|
+
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
26170
25638
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
26171
25639
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
26172
25640
|
// Cast intrinsic for `Vector(NamedExternref("AccountHeader")) -> Externref`.
|
|
26173
25641
|
const ret = v0;
|
|
26174
25642
|
return ret;
|
|
26175
25643
|
},
|
|
26176
|
-
|
|
25644
|
+
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
26177
25645
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
26178
25646
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
26179
25647
|
// Cast intrinsic for `Vector(NamedExternref("Address")) -> Externref`.
|
|
26180
25648
|
const ret = v0;
|
|
26181
25649
|
return ret;
|
|
26182
25650
|
},
|
|
26183
|
-
|
|
25651
|
+
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
26184
25652
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
26185
25653
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
26186
25654
|
// Cast intrinsic for `Vector(NamedExternref("ConsumableNoteRecord")) -> Externref`.
|
|
26187
25655
|
const ret = v0;
|
|
26188
25656
|
return ret;
|
|
26189
25657
|
},
|
|
26190
|
-
|
|
25658
|
+
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
26191
25659
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
26192
25660
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
26193
25661
|
// Cast intrinsic for `Vector(NamedExternref("FetchedNote")) -> Externref`.
|
|
26194
25662
|
const ret = v0;
|
|
26195
25663
|
return ret;
|
|
26196
25664
|
},
|
|
26197
|
-
|
|
25665
|
+
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
26198
25666
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
26199
25667
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
26200
25668
|
// Cast intrinsic for `Vector(NamedExternref("InputNoteRecord")) -> Externref`.
|
|
26201
25669
|
const ret = v0;
|
|
26202
25670
|
return ret;
|
|
26203
25671
|
},
|
|
26204
|
-
|
|
25672
|
+
__wbindgen_cast_000000000000000c: function(arg0, arg1) {
|
|
26205
25673
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
26206
25674
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
26207
25675
|
// Cast intrinsic for `Vector(NamedExternref("OutputNoteRecord")) -> Externref`.
|
|
26208
25676
|
const ret = v0;
|
|
26209
25677
|
return ret;
|
|
26210
25678
|
},
|
|
26211
|
-
|
|
26212
|
-
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
26213
|
-
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
26214
|
-
// Cast intrinsic for `Vector(NamedExternref("PswapLineageRecord")) -> Externref`.
|
|
26215
|
-
const ret = v0;
|
|
26216
|
-
return ret;
|
|
26217
|
-
},
|
|
26218
|
-
__wbindgen_cast_000000000000000f: function(arg0, arg1) {
|
|
25679
|
+
__wbindgen_cast_000000000000000d: function(arg0, arg1) {
|
|
26219
25680
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
26220
25681
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
26221
25682
|
// Cast intrinsic for `Vector(NamedExternref("TransactionRecord")) -> Externref`.
|
|
26222
25683
|
const ret = v0;
|
|
26223
25684
|
return ret;
|
|
26224
25685
|
},
|
|
26225
|
-
|
|
25686
|
+
__wbindgen_cast_000000000000000e: function(arg0, arg1) {
|
|
26226
25687
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
26227
25688
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
26228
25689
|
// Cast intrinsic for `Vector(NamedExternref("Word")) -> Externref`.
|
|
26229
25690
|
const ret = v0;
|
|
26230
25691
|
return ret;
|
|
26231
25692
|
},
|
|
26232
|
-
|
|
25693
|
+
__wbindgen_cast_000000000000000f: function(arg0, arg1) {
|
|
26233
25694
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
26234
25695
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
26235
25696
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
26236
25697
|
const ret = v0;
|
|
26237
25698
|
return ret;
|
|
26238
25699
|
},
|
|
26239
|
-
|
|
25700
|
+
__wbindgen_cast_0000000000000010: function(arg0, arg1) {
|
|
26240
25701
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
26241
25702
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
26242
25703
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -26266,7 +25727,7 @@ function __wbg_get_imports(memory) {
|
|
|
26266
25727
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
26267
25728
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
26268
25729
|
},
|
|
26269
|
-
memory: memory || new WebAssembly.Memory({initial:
|
|
25730
|
+
memory: memory || new WebAssembly.Memory({initial:129,maximum:65536,shared:true}),
|
|
26270
25731
|
};
|
|
26271
25732
|
return {
|
|
26272
25733
|
__proto__: null,
|
|
@@ -26342,6 +25803,9 @@ const AccountIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
26342
25803
|
const AccountIdArrayFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26343
25804
|
? { register: () => {}, unregister: () => {} }
|
|
26344
25805
|
: new FinalizationRegistry(ptr => wasm.__wbg_accountidarray_free(ptr >>> 0, 1));
|
|
25806
|
+
const AccountPatchFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25807
|
+
? { register: () => {}, unregister: () => {} }
|
|
25808
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_accountpatch_free(ptr >>> 0, 1));
|
|
26345
25809
|
const AccountProofFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26346
25810
|
? { register: () => {}, unregister: () => {} }
|
|
26347
25811
|
: new FinalizationRegistry(ptr => wasm.__wbg_accountproof_free(ptr >>> 0, 1));
|
|
@@ -26354,18 +25818,21 @@ const AccountStatusFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
26354
25818
|
const AccountStorageFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26355
25819
|
? { register: () => {}, unregister: () => {} }
|
|
26356
25820
|
: new FinalizationRegistry(ptr => wasm.__wbg_accountstorage_free(ptr >>> 0, 1));
|
|
26357
|
-
const AccountStorageDeltaFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26358
|
-
? { register: () => {}, unregister: () => {} }
|
|
26359
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_accountstoragedelta_free(ptr >>> 0, 1));
|
|
26360
25821
|
const AccountStorageModeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26361
25822
|
? { register: () => {}, unregister: () => {} }
|
|
26362
25823
|
: new FinalizationRegistry(ptr => wasm.__wbg_accountstoragemode_free(ptr >>> 0, 1));
|
|
25824
|
+
const AccountStoragePatchFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25825
|
+
? { register: () => {}, unregister: () => {} }
|
|
25826
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_accountstoragepatch_free(ptr >>> 0, 1));
|
|
26363
25827
|
const AccountStorageRequirementsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26364
25828
|
? { register: () => {}, unregister: () => {} }
|
|
26365
25829
|
: new FinalizationRegistry(ptr => wasm.__wbg_accountstoragerequirements_free(ptr >>> 0, 1));
|
|
26366
25830
|
const AccountVaultDeltaFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26367
25831
|
? { register: () => {}, unregister: () => {} }
|
|
26368
25832
|
: new FinalizationRegistry(ptr => wasm.__wbg_accountvaultdelta_free(ptr >>> 0, 1));
|
|
25833
|
+
const AccountVaultPatchFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25834
|
+
? { register: () => {}, unregister: () => {} }
|
|
25835
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_accountvaultpatch_free(ptr >>> 0, 1));
|
|
26369
25836
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26370
25837
|
? { register: () => {}, unregister: () => {} }
|
|
26371
25838
|
: new FinalizationRegistry(ptr => wasm.__wbg_address_free(ptr >>> 0, 1));
|
|
@@ -26402,9 +25869,6 @@ const ConsumableNoteRecordFinalization = (typeof FinalizationRegistry === 'undef
|
|
|
26402
25869
|
const EndpointFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26403
25870
|
? { register: () => {}, unregister: () => {} }
|
|
26404
25871
|
: new FinalizationRegistry(ptr => wasm.__wbg_endpoint_free(ptr >>> 0, 1));
|
|
26405
|
-
const EthAddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26406
|
-
? { register: () => {}, unregister: () => {} }
|
|
26407
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_ethaddress_free(ptr >>> 0, 1));
|
|
26408
25872
|
const ExecutedTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26409
25873
|
? { register: () => {}, unregister: () => {} }
|
|
26410
25874
|
: new FinalizationRegistry(ptr => wasm.__wbg_executedtransaction_free(ptr >>> 0, 1));
|
|
@@ -26483,9 +25947,6 @@ const LibraryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
26483
25947
|
const MerklePathFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26484
25948
|
? { register: () => {}, unregister: () => {} }
|
|
26485
25949
|
: new FinalizationRegistry(ptr => wasm.__wbg_merklepath_free(ptr >>> 0, 1));
|
|
26486
|
-
const NetworkAccountTargetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26487
|
-
? { register: () => {}, unregister: () => {} }
|
|
26488
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_networkaccounttarget_free(ptr >>> 0, 1));
|
|
26489
25950
|
const NetworkIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26490
25951
|
? { register: () => {}, unregister: () => {} }
|
|
26491
25952
|
: new FinalizationRegistry(ptr => wasm.__wbg_networkid_free(ptr >>> 0, 1));
|
|
@@ -26609,9 +26070,6 @@ const ProgramFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
26609
26070
|
const ProvenTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26610
26071
|
? { register: () => {}, unregister: () => {} }
|
|
26611
26072
|
: new FinalizationRegistry(ptr => wasm.__wbg_proventransaction_free(ptr >>> 0, 1));
|
|
26612
|
-
const PswapLineageRecordFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26613
|
-
? { register: () => {}, unregister: () => {} }
|
|
26614
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_pswaplineagerecord_free(ptr >>> 0, 1));
|
|
26615
26073
|
const PublicKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26616
26074
|
? { register: () => {}, unregister: () => {} }
|
|
26617
26075
|
: new FinalizationRegistry(ptr => wasm.__wbg_publickey_free(ptr >>> 0, 1));
|
|
@@ -27125,19 +26583,20 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
27125
26583
|
AccountId: AccountId,
|
|
27126
26584
|
AccountIdArray: AccountIdArray,
|
|
27127
26585
|
AccountInterface: AccountInterface,
|
|
26586
|
+
AccountPatch: AccountPatch,
|
|
27128
26587
|
AccountProof: AccountProof,
|
|
27129
26588
|
AccountReader: AccountReader,
|
|
27130
26589
|
AccountStatus: AccountStatus,
|
|
27131
26590
|
AccountStorage: AccountStorage,
|
|
27132
|
-
AccountStorageDelta: AccountStorageDelta,
|
|
27133
26591
|
AccountStorageMode: AccountStorageMode,
|
|
26592
|
+
AccountStoragePatch: AccountStoragePatch,
|
|
27134
26593
|
AccountStorageRequirements: AccountStorageRequirements,
|
|
27135
26594
|
AccountType: AccountType,
|
|
27136
26595
|
AccountVaultDelta: AccountVaultDelta,
|
|
26596
|
+
AccountVaultPatch: AccountVaultPatch,
|
|
27137
26597
|
Address: Address,
|
|
27138
26598
|
AdviceInputs: AdviceInputs,
|
|
27139
26599
|
AdviceMap: AdviceMap,
|
|
27140
|
-
AssetCallbackFlag: AssetCallbackFlag,
|
|
27141
26600
|
AssetVault: AssetVault,
|
|
27142
26601
|
AuthFalcon512RpoMultisigConfig: AuthFalcon512RpoMultisigConfig,
|
|
27143
26602
|
AuthScheme: AuthScheme,
|
|
@@ -27148,7 +26607,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
27148
26607
|
CommittedNote: CommittedNote,
|
|
27149
26608
|
ConsumableNoteRecord: ConsumableNoteRecord,
|
|
27150
26609
|
Endpoint: Endpoint,
|
|
27151
|
-
EthAddress: EthAddress,
|
|
27152
26610
|
ExecutedTransaction: ExecutedTransaction,
|
|
27153
26611
|
Felt: Felt,
|
|
27154
26612
|
FeltArray: FeltArray,
|
|
@@ -27176,7 +26634,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
27176
26634
|
JsVaultAsset: JsVaultAsset,
|
|
27177
26635
|
Library: Library,
|
|
27178
26636
|
MerklePath: MerklePath,
|
|
27179
|
-
NetworkAccountTarget: NetworkAccountTarget,
|
|
27180
26637
|
NetworkId: NetworkId,
|
|
27181
26638
|
NetworkNoteStatusInfo: NetworkNoteStatusInfo,
|
|
27182
26639
|
NetworkType: NetworkType,
|
|
@@ -27223,8 +26680,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
27223
26680
|
ProcedureThreshold: ProcedureThreshold,
|
|
27224
26681
|
Program: Program,
|
|
27225
26682
|
ProvenTransaction: ProvenTransaction,
|
|
27226
|
-
PswapLineageRecord: PswapLineageRecord,
|
|
27227
|
-
PswapLineageState: PswapLineageState,
|
|
27228
26683
|
PublicKey: PublicKey,
|
|
27229
26684
|
RpcClient: RpcClient,
|
|
27230
26685
|
Rpo256: Rpo256,
|
|
@@ -27280,5 +26735,5 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
27280
26735
|
});
|
|
27281
26736
|
|
|
27282
26737
|
const module$1 = new URL("assets/miden_client_web.wasm", import.meta.url);
|
|
27283
|
-
export { Account, AccountArray, AccountBuilder, AccountBuilderResult, AccountCode, AccountComponent, AccountComponentCode, AccountDelta, AccountFile, AccountHeader, AccountId, AccountIdArray, AccountInterface, AccountProof, AccountReader, AccountStatus, AccountStorage,
|
|
27284
|
-
//# sourceMappingURL=Cargo-
|
|
26738
|
+
export { Account, AccountArray, AccountBuilder, AccountBuilderResult, AccountCode, AccountComponent, AccountComponentCode, AccountDelta, AccountFile, AccountHeader, AccountId, AccountIdArray, AccountInterface, AccountPatch, AccountProof, AccountReader, AccountStatus, AccountStorage, AccountStorageMode, AccountStoragePatch, AccountStorageRequirements, AccountType, AccountVaultDelta, AccountVaultPatch, 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, JsSettingMutation, JsStateSyncUpdate, JsStorageMapEntry, JsStorageSlot, JsVaultAsset, Library, MerklePath, NetworkId, NetworkNoteStatusInfo, NetworkType, Note, NoteAndArgs, NoteAndArgsArray, NoteArray, NoteAssets, NoteAttachment, NoteAttachmentScheme, NoteConsumability, NoteConsumptionStatus, NoteDetails, NoteDetailsAndTag, NoteDetailsAndTagArray, NoteExecutionHint, NoteExportFormat, NoteFile, NoteFilter, NoteFilterTypes, NoteHeader, NoteId, NoteIdAndArgs, NoteIdAndArgsArray, NoteInclusionProof, NoteLocation, NoteMetadata, NoteRecipient, NoteRecipientArray, NoteScript, NoteStorage, NoteSyncBlock, NoteSyncInfo, NoteTag, NoteType, OutputNote, OutputNoteArray, OutputNoteRecord, OutputNoteState, OutputNotes, Package, PartialNote, Poseidon2, ProcedureThreshold, Program, ProvenTransaction, PublicKey, RpcClient, Rpo256, SerializedInputNoteData, SerializedOutputNoteData, SerializedTransactionData, Signature, SigningInputs, SigningInputsType, SlotAndKeys, SparseMerklePath, StorageMap, StorageMapEntry, StorageMapEntryJs, StorageMapInfo, StorageMapUpdate, StorageSlot, StorageSlotArray, SyncSummary, TestUtils, TokenSymbol, TransactionArgs, TransactionFilter, TransactionId, TransactionProver, TransactionRecord, TransactionRequest, TransactionRequestBuilder, TransactionResult, TransactionScript, TransactionScriptInputPair, TransactionScriptInputPairArray, TransactionStatus, TransactionStoreUpdate, TransactionSummary, WebClient, WebKeystoreApi, Word, createAuthFalcon512RpoMultisig, exportStore2 as exportStore, importStore, initSync, initThreadPool, mtProbeAsync, mtProbeSync, parallelSumBench, rayonThreadCount, sequentialSumBench, setupLogging, wbg_rayon_PoolBuilder, wbg_rayon_start_worker , __wbg_init, module$1 as __wasm_url };
|
|
26739
|
+
//# sourceMappingURL=Cargo-DKsyWYgG.js.map
|