@miden-sdk/miden-sdk 0.15.2 → 0.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -0
- package/dist/mt/{Cargo-BbpPeJYa.js → Cargo-DjVnfWKi.js} +424 -88
- package/dist/mt/Cargo-DjVnfWKi.js.map +1 -0
- package/dist/mt/api-types.d.ts +130 -0
- package/dist/mt/assets/miden_client_web.wasm +0 -0
- package/dist/mt/crates/miden_client_web.d.ts +93 -3
- package/dist/mt/docs-entry.d.ts +2 -0
- package/dist/mt/eager.js +1 -1
- package/dist/mt/index.d.ts +3 -0
- package/dist/mt/index.js +211 -13
- 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-BbpPeJYa-BlSVzh6v.js → Cargo-DjVnfWKi-DvLbB_Zb.js} +424 -88
- package/dist/mt/workers/Cargo-DjVnfWKi-DvLbB_Zb.js.map +1 -0
- package/dist/mt/workers/assets/miden_client_web.wasm +0 -0
- package/dist/mt/workers/web-client-methods-worker.js +425 -88
- 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-Dlo4tWNG.js → Cargo-Cwpuvlbc.js} +433 -98
- package/dist/st/Cargo-Cwpuvlbc.js.map +1 -0
- package/dist/st/api-types.d.ts +130 -0
- package/dist/st/assets/miden_client_web.wasm +0 -0
- package/dist/st/crates/miden_client_web.d.ts +93 -3
- package/dist/st/docs-entry.d.ts +2 -0
- package/dist/st/eager.js +1 -1
- package/dist/st/index.d.ts +3 -0
- package/dist/st/index.js +211 -13
- package/dist/st/index.js.map +1 -1
- package/dist/st/wasm.js +1 -1
- package/dist/st/workers/{Cargo-Dlo4tWNG-BPaiqKyy.js → Cargo-Cwpuvlbc-B0V_MEMU.js} +433 -98
- package/dist/st/workers/Cargo-Cwpuvlbc-B0V_MEMU.js.map +1 -0
- package/dist/st/workers/assets/miden_client_web.wasm +0 -0
- package/dist/st/workers/web-client-methods-worker.js +434 -98
- 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/node-index.js +150 -40
- package/js/resources/transactions.js +198 -12
- package/package.json +6 -4
- package/dist/mt/Cargo-BbpPeJYa.js.map +0 -1
- package/dist/mt/workers/Cargo-BbpPeJYa-BlSVzh6v.js.map +0 -1
- package/dist/st/Cargo-Dlo4tWNG.js.map +0 -1
- package/dist/st/workers/Cargo-Dlo4tWNG-BPaiqKyy.js.map +0 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
async function loadWasm() {
|
|
6
6
|
let wasmModule;
|
|
7
7
|
if (!undefined || (undefined && !undefined.SSR)) {
|
|
8
|
-
wasmModule = await Promise.resolve().then(function () { return
|
|
8
|
+
wasmModule = await Promise.resolve().then(function () { return CargoCwpuvlbc; });
|
|
9
9
|
// The Cargo glue's __wbg_init TLA is stripped by the rollup build to
|
|
10
10
|
// prevent blocking WKWebView module evaluation. Call it explicitly here
|
|
11
11
|
// with the WASM URL that the Cargo glue pre-resolves (relative to its
|
|
@@ -9467,6 +9467,7 @@ async function applyTransactionDelta(dbId, accountId, nonce, updatedSlots, chang
|
|
|
9467
9467
|
}
|
|
9468
9468
|
catch (error) {
|
|
9469
9469
|
logWebStoreError(error, `Error applying transaction delta`);
|
|
9470
|
+
throw error;
|
|
9470
9471
|
}
|
|
9471
9472
|
}
|
|
9472
9473
|
async function archiveAndReplaceStorageSlots(db, accountId, nonce, newSlots) {
|
|
@@ -9705,6 +9706,7 @@ async function applyFullAccountState(dbId, accountState) {
|
|
|
9705
9706
|
}
|
|
9706
9707
|
catch (error) {
|
|
9707
9708
|
logWebStoreError(error, `Error applying full account state`);
|
|
9709
|
+
throw error;
|
|
9708
9710
|
}
|
|
9709
9711
|
}
|
|
9710
9712
|
async function upsertAccountRecord(dbId, accountId, codeRoot, storageRoot, vaultRoot, nonce, committed, commitment, accountSeed, watched) {
|
|
@@ -10626,6 +10628,7 @@ async function upsertInputNote(dbId, detailsCommitment, noteId, assets, attachme
|
|
|
10626
10628
|
}
|
|
10627
10629
|
catch (error) {
|
|
10628
10630
|
logWebStoreError(error, `Error inserting note: ${detailsCommitment}`);
|
|
10631
|
+
throw error;
|
|
10629
10632
|
}
|
|
10630
10633
|
};
|
|
10631
10634
|
return db.dexie.transaction("rw", db.inputNotes, db.notesScripts, doWork);
|
|
@@ -10709,6 +10712,7 @@ async function upsertOutputNote(dbId, detailsCommitment, noteId, assets, attachm
|
|
|
10709
10712
|
}
|
|
10710
10713
|
catch (error) {
|
|
10711
10714
|
logWebStoreError(error, `Error inserting note: ${detailsCommitment}`);
|
|
10715
|
+
throw error;
|
|
10712
10716
|
}
|
|
10713
10717
|
};
|
|
10714
10718
|
return db.dexie.transaction("rw", db.outputNotes, db.notesScripts, doWork);
|
|
@@ -10951,6 +10955,7 @@ async function insertTransactionScript(dbId, scriptRoot, txScript, tx) {
|
|
|
10951
10955
|
}
|
|
10952
10956
|
catch (error) {
|
|
10953
10957
|
logWebStoreError(error, "Failed to insert transaction script");
|
|
10958
|
+
throw error;
|
|
10954
10959
|
}
|
|
10955
10960
|
}
|
|
10956
10961
|
async function upsertTransactionRecord(dbId, transactionId, details, blockNum, statusVariant, status, scriptRoot, tx) {
|
|
@@ -10968,8 +10973,82 @@ async function upsertTransactionRecord(dbId, transactionId, details, blockNum, s
|
|
|
10968
10973
|
}
|
|
10969
10974
|
catch (err) {
|
|
10970
10975
|
logWebStoreError(err, "Failed to insert proven transaction data");
|
|
10976
|
+
throw err;
|
|
10971
10977
|
}
|
|
10972
10978
|
}
|
|
10979
|
+
/**
|
|
10980
|
+
* Applies a batch of transaction updates atomically inside a single Dexie transaction.
|
|
10981
|
+
*
|
|
10982
|
+
* All sub-operations that internally call `db.dexie.transaction()` are auto-joined by Dexie
|
|
10983
|
+
* as nested sub-transactions when run inside this parent transaction, provided the parent
|
|
10984
|
+
* scope is a superset of every sub-transaction scope.
|
|
10985
|
+
*/
|
|
10986
|
+
async function applyTransactionBatch(dbId, payloads) {
|
|
10987
|
+
const db = getDatabase(dbId);
|
|
10988
|
+
await db.dexie.transaction("rw", [
|
|
10989
|
+
db.transactions,
|
|
10990
|
+
db.transactionScripts,
|
|
10991
|
+
db.latestAccountStorages,
|
|
10992
|
+
db.historicalAccountStorages,
|
|
10993
|
+
db.latestStorageMapEntries,
|
|
10994
|
+
db.historicalStorageMapEntries,
|
|
10995
|
+
db.latestAccountAssets,
|
|
10996
|
+
db.historicalAccountAssets,
|
|
10997
|
+
db.latestAccountHeaders,
|
|
10998
|
+
db.historicalAccountHeaders,
|
|
10999
|
+
db.inputNotes,
|
|
11000
|
+
db.outputNotes,
|
|
11001
|
+
db.notesScripts,
|
|
11002
|
+
db.tags,
|
|
11003
|
+
], async () => {
|
|
11004
|
+
for (const payload of payloads) {
|
|
11005
|
+
// 1. Insert the transaction record (script first, then record)
|
|
11006
|
+
const rec = payload.transactionRecord;
|
|
11007
|
+
if (rec.scriptRoot && rec.txScript) {
|
|
11008
|
+
await insertTransactionScript(dbId, rec.scriptRoot, rec.txScript);
|
|
11009
|
+
}
|
|
11010
|
+
await upsertTransactionRecord(dbId, rec.id, rec.details, rec.blockNum, rec.statusVariant, rec.status, rec.scriptRoot);
|
|
11011
|
+
// 2. Apply account state (full or delta)
|
|
11012
|
+
const acct = payload.accountState;
|
|
11013
|
+
if (acct.kind === "full") {
|
|
11014
|
+
await applyFullAccountState(dbId, acct.account);
|
|
11015
|
+
}
|
|
11016
|
+
else {
|
|
11017
|
+
await applyTransactionDelta(dbId, acct.accountId, acct.nonce, acct.updatedSlots, acct.changedMapEntries, acct.changedAssets, acct.codeRoot, acct.storageRoot, acct.vaultRoot, acct.committed, acct.commitment);
|
|
11018
|
+
}
|
|
11019
|
+
// 3. Upsert input and output notes
|
|
11020
|
+
for (const note of payload.inputNotes) {
|
|
11021
|
+
await upsertInputNote(dbId, note.detailsCommitment, note.noteId, note.noteAssets, note.attachments, note.serialNumber, note.inputs, note.noteScriptRoot, note.noteScript, note.nullifier, note.createdAt, note.stateDiscriminant, note.state, note.consumedBlockHeight ?? null, note.consumedTxOrder ?? null, note.consumerAccountId ?? null);
|
|
11022
|
+
}
|
|
11023
|
+
for (const note of payload.outputNotes) {
|
|
11024
|
+
await upsertOutputNote(dbId, note.detailsCommitment, note.noteId, note.noteAssets, note.attachments, note.recipientDigest, note.metadata, note.nullifier, note.expectedHeight, note.stateDiscriminant, note.state);
|
|
11025
|
+
}
|
|
11026
|
+
// 4. Add note tags (deduplicated within the transaction)
|
|
11027
|
+
for (const tagEntry of payload.tags) {
|
|
11028
|
+
const tagArray = new Uint8Array(tagEntry.tag);
|
|
11029
|
+
const tagBase64 = uint8ArrayToBase64(tagArray);
|
|
11030
|
+
const sourceNoteId = tagEntry.sourceNoteId ?? "";
|
|
11031
|
+
const sourceAccountId = tagEntry.sourceAccountId ?? "";
|
|
11032
|
+
const sourceSubscriptionKey = tagEntry.sourceSubscriptionKey ?? "";
|
|
11033
|
+
// Check for existing tag to avoid duplicates (mirrors the Rust add_note_tag logic).
|
|
11034
|
+
// sourceSubscriptionKey is unindexed, so filter on it in memory — distinct
|
|
11035
|
+
// subscriptions may share a tag and must remain separate rows.
|
|
11036
|
+
const existing = await db.tags
|
|
11037
|
+
.where({ tag: tagBase64, sourceNoteId, sourceAccountId })
|
|
11038
|
+
.filter((t) => (t.sourceSubscriptionKey ?? "") === sourceSubscriptionKey)
|
|
11039
|
+
.first();
|
|
11040
|
+
if (!existing) {
|
|
11041
|
+
await db.tags.add({
|
|
11042
|
+
tag: tagBase64,
|
|
11043
|
+
sourceNoteId,
|
|
11044
|
+
sourceAccountId,
|
|
11045
|
+
sourceSubscriptionKey,
|
|
11046
|
+
});
|
|
11047
|
+
}
|
|
11048
|
+
}
|
|
11049
|
+
}
|
|
11050
|
+
});
|
|
11051
|
+
}
|
|
10973
11052
|
|
|
10974
11053
|
async function getNoteTags(dbId) {
|
|
10975
11054
|
try {
|
|
@@ -13579,10 +13658,13 @@ class AuthSecretKey {
|
|
|
13579
13658
|
if (Symbol.dispose) AuthSecretKey.prototype[Symbol.dispose] = AuthSecretKey.prototype.free;
|
|
13580
13659
|
|
|
13581
13660
|
/**
|
|
13582
|
-
* Provides metadata for a
|
|
13661
|
+
* Provides metadata for a fungible faucet account component.
|
|
13583
13662
|
*
|
|
13584
|
-
* Reads the on-chain
|
|
13585
|
-
*
|
|
13663
|
+
* Reads the on-chain `FungibleFaucet` component for the account, which holds the per-token
|
|
13664
|
+
* info (symbol, decimals, supply, and the descriptive metadata). The same component backs both
|
|
13665
|
+
* "basic" public faucets and network-style faucets — in the current protocol the distinction is
|
|
13666
|
+
* a function of the surrounding account configuration (account type, auth, access control), not
|
|
13667
|
+
* of the faucet component itself — so this reads metadata from either kind of faucet account.
|
|
13586
13668
|
*/
|
|
13587
13669
|
class BasicFungibleFaucetComponent {
|
|
13588
13670
|
static __wrap(ptr) {
|
|
@@ -13610,6 +13692,32 @@ class BasicFungibleFaucetComponent {
|
|
|
13610
13692
|
const ret = wasm.basicfungiblefaucetcomponent_decimals(this.__wbg_ptr);
|
|
13611
13693
|
return ret;
|
|
13612
13694
|
}
|
|
13695
|
+
/**
|
|
13696
|
+
* Returns the optional free-form token description, or `undefined` when unset.
|
|
13697
|
+
* @returns {string | undefined}
|
|
13698
|
+
*/
|
|
13699
|
+
description() {
|
|
13700
|
+
const ret = wasm.basicfungiblefaucetcomponent_description(this.__wbg_ptr);
|
|
13701
|
+
let v1;
|
|
13702
|
+
if (ret[0] !== 0) {
|
|
13703
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
13704
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
13705
|
+
}
|
|
13706
|
+
return v1;
|
|
13707
|
+
}
|
|
13708
|
+
/**
|
|
13709
|
+
* Returns the optional external link (e.g. project website), or `undefined` when unset.
|
|
13710
|
+
* @returns {string | undefined}
|
|
13711
|
+
*/
|
|
13712
|
+
externalLink() {
|
|
13713
|
+
const ret = wasm.basicfungiblefaucetcomponent_externalLink(this.__wbg_ptr);
|
|
13714
|
+
let v1;
|
|
13715
|
+
if (ret[0] !== 0) {
|
|
13716
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
13717
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
13718
|
+
}
|
|
13719
|
+
return v1;
|
|
13720
|
+
}
|
|
13613
13721
|
/**
|
|
13614
13722
|
* Extracts faucet metadata from an account.
|
|
13615
13723
|
* @param {Account} account
|
|
@@ -13624,6 +13732,19 @@ class BasicFungibleFaucetComponent {
|
|
|
13624
13732
|
}
|
|
13625
13733
|
return BasicFungibleFaucetComponent.__wrap(ret[0]);
|
|
13626
13734
|
}
|
|
13735
|
+
/**
|
|
13736
|
+
* Returns the optional token logo URI, or `undefined` when unset.
|
|
13737
|
+
* @returns {string | undefined}
|
|
13738
|
+
*/
|
|
13739
|
+
logoUri() {
|
|
13740
|
+
const ret = wasm.basicfungiblefaucetcomponent_logoUri(this.__wbg_ptr);
|
|
13741
|
+
let v1;
|
|
13742
|
+
if (ret[0] !== 0) {
|
|
13743
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
13744
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
13745
|
+
}
|
|
13746
|
+
return v1;
|
|
13747
|
+
}
|
|
13627
13748
|
/**
|
|
13628
13749
|
* Returns the maximum token supply.
|
|
13629
13750
|
* @returns {Felt}
|
|
@@ -13640,6 +13761,30 @@ class BasicFungibleFaucetComponent {
|
|
|
13640
13761
|
const ret = wasm.basicfungiblefaucetcomponent_symbol(this.__wbg_ptr);
|
|
13641
13762
|
return TokenSymbol.__wrap(ret);
|
|
13642
13763
|
}
|
|
13764
|
+
/**
|
|
13765
|
+
* Returns the human-readable token name.
|
|
13766
|
+
* @returns {string}
|
|
13767
|
+
*/
|
|
13768
|
+
tokenName() {
|
|
13769
|
+
let deferred1_0;
|
|
13770
|
+
let deferred1_1;
|
|
13771
|
+
try {
|
|
13772
|
+
const ret = wasm.basicfungiblefaucetcomponent_tokenName(this.__wbg_ptr);
|
|
13773
|
+
deferred1_0 = ret[0];
|
|
13774
|
+
deferred1_1 = ret[1];
|
|
13775
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
13776
|
+
} finally {
|
|
13777
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
13778
|
+
}
|
|
13779
|
+
}
|
|
13780
|
+
/**
|
|
13781
|
+
* Returns the current token supply (the amount minted so far).
|
|
13782
|
+
* @returns {Felt}
|
|
13783
|
+
*/
|
|
13784
|
+
tokenSupply() {
|
|
13785
|
+
const ret = wasm.basicfungiblefaucetcomponent_tokenSupply(this.__wbg_ptr);
|
|
13786
|
+
return Felt.__wrap(ret);
|
|
13787
|
+
}
|
|
13643
13788
|
}
|
|
13644
13789
|
if (Symbol.dispose) BasicFungibleFaucetComponent.prototype[Symbol.dispose] = BasicFungibleFaucetComponent.prototype.free;
|
|
13645
13790
|
|
|
@@ -14207,6 +14352,104 @@ class Endpoint {
|
|
|
14207
14352
|
}
|
|
14208
14353
|
if (Symbol.dispose) Endpoint.prototype[Symbol.dispose] = Endpoint.prototype.free;
|
|
14209
14354
|
|
|
14355
|
+
/**
|
|
14356
|
+
* A 20-byte Ethereum address, used as the destination of an `AggLayer` bridge-out (B2AGG) note.
|
|
14357
|
+
*
|
|
14358
|
+
* Construct one from a hex string with [`EthAddress::from_hex`] (the `0x` prefix is optional) or
|
|
14359
|
+
* from raw bytes with [`EthAddress::from_bytes`]. The canonical lowercase, `0x`-prefixed hex form
|
|
14360
|
+
* is available via [`EthAddress::to_hex`] (also exposed as `toString`).
|
|
14361
|
+
*/
|
|
14362
|
+
class EthAddress {
|
|
14363
|
+
static __wrap(ptr) {
|
|
14364
|
+
ptr = ptr >>> 0;
|
|
14365
|
+
const obj = Object.create(EthAddress.prototype);
|
|
14366
|
+
obj.__wbg_ptr = ptr;
|
|
14367
|
+
EthAddressFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
14368
|
+
return obj;
|
|
14369
|
+
}
|
|
14370
|
+
__destroy_into_raw() {
|
|
14371
|
+
const ptr = this.__wbg_ptr;
|
|
14372
|
+
this.__wbg_ptr = 0;
|
|
14373
|
+
EthAddressFinalization.unregister(this);
|
|
14374
|
+
return ptr;
|
|
14375
|
+
}
|
|
14376
|
+
free() {
|
|
14377
|
+
const ptr = this.__destroy_into_raw();
|
|
14378
|
+
wasm.__wbg_ethaddress_free(ptr, 0);
|
|
14379
|
+
}
|
|
14380
|
+
/**
|
|
14381
|
+
* Builds an Ethereum address from its raw 20-byte big-endian representation.
|
|
14382
|
+
*
|
|
14383
|
+
* Returns an error if the input is not exactly 20 bytes long.
|
|
14384
|
+
* @param {Uint8Array} bytes
|
|
14385
|
+
* @returns {EthAddress}
|
|
14386
|
+
*/
|
|
14387
|
+
static fromBytes(bytes) {
|
|
14388
|
+
const ret = wasm.ethaddress_fromBytes(bytes);
|
|
14389
|
+
if (ret[2]) {
|
|
14390
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
14391
|
+
}
|
|
14392
|
+
return EthAddress.__wrap(ret[0]);
|
|
14393
|
+
}
|
|
14394
|
+
/**
|
|
14395
|
+
* Builds an Ethereum address from a hex string (with or without the `0x` prefix).
|
|
14396
|
+
*
|
|
14397
|
+
* Returns an error if the string is not valid hex or does not encode exactly 20 bytes.
|
|
14398
|
+
* @param {string} hex
|
|
14399
|
+
* @returns {EthAddress}
|
|
14400
|
+
*/
|
|
14401
|
+
static fromHex(hex) {
|
|
14402
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
14403
|
+
const len0 = WASM_VECTOR_LEN;
|
|
14404
|
+
const ret = wasm.ethaddress_fromHex(ptr0, len0);
|
|
14405
|
+
if (ret[2]) {
|
|
14406
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
14407
|
+
}
|
|
14408
|
+
return EthAddress.__wrap(ret[0]);
|
|
14409
|
+
}
|
|
14410
|
+
/**
|
|
14411
|
+
* Returns the raw 20-byte big-endian representation of the address.
|
|
14412
|
+
* @returns {Uint8Array}
|
|
14413
|
+
*/
|
|
14414
|
+
toBytes() {
|
|
14415
|
+
const ret = wasm.ethaddress_toBytes(this.__wbg_ptr);
|
|
14416
|
+
return ret;
|
|
14417
|
+
}
|
|
14418
|
+
/**
|
|
14419
|
+
* Returns the canonical lowercase, `0x`-prefixed hex representation of the address.
|
|
14420
|
+
* @returns {string}
|
|
14421
|
+
*/
|
|
14422
|
+
toHex() {
|
|
14423
|
+
let deferred1_0;
|
|
14424
|
+
let deferred1_1;
|
|
14425
|
+
try {
|
|
14426
|
+
const ret = wasm.ethaddress_toHex(this.__wbg_ptr);
|
|
14427
|
+
deferred1_0 = ret[0];
|
|
14428
|
+
deferred1_1 = ret[1];
|
|
14429
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
14430
|
+
} finally {
|
|
14431
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
14432
|
+
}
|
|
14433
|
+
}
|
|
14434
|
+
/**
|
|
14435
|
+
* Returns the canonical lowercase, `0x`-prefixed hex representation of the address.
|
|
14436
|
+
* @returns {string}
|
|
14437
|
+
*/
|
|
14438
|
+
toString() {
|
|
14439
|
+
let deferred1_0;
|
|
14440
|
+
let deferred1_1;
|
|
14441
|
+
try {
|
|
14442
|
+
const ret = wasm.ethaddress_toString(this.__wbg_ptr);
|
|
14443
|
+
deferred1_0 = ret[0];
|
|
14444
|
+
deferred1_1 = ret[1];
|
|
14445
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
14446
|
+
} finally {
|
|
14447
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
14448
|
+
}
|
|
14449
|
+
}
|
|
14450
|
+
}
|
|
14451
|
+
if (Symbol.dispose) EthAddress.prototype[Symbol.dispose] = EthAddress.prototype.free;
|
|
14452
|
+
|
|
14210
14453
|
/**
|
|
14211
14454
|
* Describes the result of executing a transaction program for the Miden protocol.
|
|
14212
14455
|
*
|
|
@@ -16774,6 +17017,32 @@ class Note {
|
|
|
16774
17017
|
const ret = wasm.note_commitment(this.__wbg_ptr);
|
|
16775
17018
|
return Word.__wrap(ret);
|
|
16776
17019
|
}
|
|
17020
|
+
/**
|
|
17021
|
+
* Builds a B2AGG (Bridge-to-AggLayer) note that bridges the given assets out to another
|
|
17022
|
+
* network via the `AggLayer`.
|
|
17023
|
+
*
|
|
17024
|
+
* The note is always public and is consumed by `bridge_account`, which burns the assets so
|
|
17025
|
+
* they can be claimed on the destination network at `destination_address` (an Ethereum
|
|
17026
|
+
* address on the AggLayer-assigned `destination_network`). The assets must be fungible assets
|
|
17027
|
+
* issued by a network faucet.
|
|
17028
|
+
* @param {AccountId} sender
|
|
17029
|
+
* @param {AccountId} bridge_account
|
|
17030
|
+
* @param {NoteAssets} assets
|
|
17031
|
+
* @param {number} destination_network
|
|
17032
|
+
* @param {EthAddress} destination_address
|
|
17033
|
+
* @returns {Note}
|
|
17034
|
+
*/
|
|
17035
|
+
static createB2AggNote(sender, bridge_account, assets, destination_network, destination_address) {
|
|
17036
|
+
_assertClass(sender, AccountId);
|
|
17037
|
+
_assertClass(bridge_account, AccountId);
|
|
17038
|
+
_assertClass(assets, NoteAssets);
|
|
17039
|
+
_assertClass(destination_address, EthAddress);
|
|
17040
|
+
const ret = wasm.note_createB2AggNote(sender.__wbg_ptr, bridge_account.__wbg_ptr, assets.__wbg_ptr, destination_network, destination_address.__wbg_ptr);
|
|
17041
|
+
if (ret[2]) {
|
|
17042
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
17043
|
+
}
|
|
17044
|
+
return Note.__wrap(ret[0]);
|
|
17045
|
+
}
|
|
16777
17046
|
/**
|
|
16778
17047
|
* Builds a P2IDE note that can be reclaimed or timelocked based on block heights.
|
|
16779
17048
|
* @param {AccountId} sender
|
|
@@ -23517,6 +23786,30 @@ class WebClient {
|
|
|
23517
23786
|
const ret = wasm.webclient_newAccountWithSecretKey(this.__wbg_ptr, account.__wbg_ptr, secret_key.__wbg_ptr);
|
|
23518
23787
|
return ret;
|
|
23519
23788
|
}
|
|
23789
|
+
/**
|
|
23790
|
+
* Builds a transaction request that bridges a fungible asset out to another network via the
|
|
23791
|
+
* `AggLayer`.
|
|
23792
|
+
*
|
|
23793
|
+
* The request emits a single public B2AGG (Bridge-to-AggLayer) note holding `amount` units of
|
|
23794
|
+
* the `faucet_id` asset. The note is consumed by `bridge_account_id`, which burns the asset so
|
|
23795
|
+
* it can be claimed at `destination_address` (an Ethereum address) on the AggLayer-assigned
|
|
23796
|
+
* `destination_network`.
|
|
23797
|
+
* @param {AccountId} sender_account_id
|
|
23798
|
+
* @param {AccountId} bridge_account_id
|
|
23799
|
+
* @param {AccountId} faucet_id
|
|
23800
|
+
* @param {bigint} amount
|
|
23801
|
+
* @param {number} destination_network
|
|
23802
|
+
* @param {EthAddress} destination_address
|
|
23803
|
+
* @returns {Promise<TransactionRequest>}
|
|
23804
|
+
*/
|
|
23805
|
+
newB2AggTransactionRequest(sender_account_id, bridge_account_id, faucet_id, amount, destination_network, destination_address) {
|
|
23806
|
+
_assertClass(sender_account_id, AccountId);
|
|
23807
|
+
_assertClass(bridge_account_id, AccountId);
|
|
23808
|
+
_assertClass(faucet_id, AccountId);
|
|
23809
|
+
_assertClass(destination_address, EthAddress);
|
|
23810
|
+
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);
|
|
23811
|
+
return ret;
|
|
23812
|
+
}
|
|
23520
23813
|
/**
|
|
23521
23814
|
* @param {Note[]} list_of_notes
|
|
23522
23815
|
* @returns {TransactionRequest}
|
|
@@ -23810,6 +24103,25 @@ class WebClient {
|
|
|
23810
24103
|
const ret = wasm.webclient_submitNewTransaction(this.__wbg_ptr, account_id.__wbg_ptr, transaction_request.__wbg_ptr);
|
|
23811
24104
|
return ret;
|
|
23812
24105
|
}
|
|
24106
|
+
/**
|
|
24107
|
+
* Executes a batch of transactions against the specified account, proves them individually
|
|
24108
|
+
* and as a batch, submits the batch to the network, and atomically applies the per-tx
|
|
24109
|
+
* updates to the local store. Returns the block number the batch was accepted into.
|
|
24110
|
+
*
|
|
24111
|
+
* All transactions must target the same local account — the `account_id` argument.
|
|
24112
|
+
* Each element of `transaction_requests` is the serialized-bytes form of a
|
|
24113
|
+
* `TransactionRequest` (obtained via `tx_request.serialize()`)
|
|
24114
|
+
* @param {AccountId} account_id
|
|
24115
|
+
* @param {Uint8Array[]} transaction_requests
|
|
24116
|
+
* @returns {Promise<number>}
|
|
24117
|
+
*/
|
|
24118
|
+
submitNewTransactionBatch(account_id, transaction_requests) {
|
|
24119
|
+
_assertClass(account_id, AccountId);
|
|
24120
|
+
const ptr0 = passArrayJsValueToWasm0(transaction_requests, wasm.__wbindgen_malloc);
|
|
24121
|
+
const len0 = WASM_VECTOR_LEN;
|
|
24122
|
+
const ret = wasm.webclient_submitNewTransactionBatch(this.__wbg_ptr, account_id.__wbg_ptr, ptr0, len0);
|
|
24123
|
+
return ret;
|
|
24124
|
+
}
|
|
23813
24125
|
/**
|
|
23814
24126
|
* Executes a transaction specified by the request against the specified account, proves it
|
|
23815
24127
|
* with the user provided prover, submits it to the network, and updates the local database.
|
|
@@ -24307,7 +24619,7 @@ function __wbg_get_imports() {
|
|
|
24307
24619
|
const ret = AccountStorage.__wrap(arg0);
|
|
24308
24620
|
return ret;
|
|
24309
24621
|
},
|
|
24310
|
-
|
|
24622
|
+
__wbg_addNoteTag_c9e7d0b19a1ff17c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
24311
24623
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
24312
24624
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
24313
24625
|
let v1;
|
|
@@ -24335,21 +24647,25 @@ function __wbg_get_imports() {
|
|
|
24335
24647
|
__wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
24336
24648
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
24337
24649
|
}, arguments); },
|
|
24338
|
-
|
|
24650
|
+
__wbg_applyFullAccountState_01b8235561567534: function(arg0, arg1, arg2) {
|
|
24339
24651
|
const ret = applyFullAccountState(getStringFromWasm0(arg0, arg1), JsAccountUpdate.__wrap(arg2));
|
|
24340
24652
|
return ret;
|
|
24341
24653
|
},
|
|
24342
|
-
|
|
24654
|
+
__wbg_applySettingsMutations_c70b3f973d7125bf: function(arg0, arg1, arg2, arg3) {
|
|
24343
24655
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24344
24656
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24345
24657
|
const ret = applySettingsMutations(getStringFromWasm0(arg0, arg1), v0);
|
|
24346
24658
|
return ret;
|
|
24347
24659
|
},
|
|
24348
|
-
|
|
24660
|
+
__wbg_applyStateSync_2aab7a3f6871f365: function(arg0, arg1, arg2) {
|
|
24349
24661
|
const ret = applyStateSync(getStringFromWasm0(arg0, arg1), JsStateSyncUpdate.__wrap(arg2));
|
|
24350
24662
|
return ret;
|
|
24351
24663
|
},
|
|
24352
|
-
|
|
24664
|
+
__wbg_applyTransactionBatch_ff6324c1b699e0bc: function(arg0, arg1, arg2) {
|
|
24665
|
+
const ret = applyTransactionBatch(getStringFromWasm0(arg0, arg1), arg2);
|
|
24666
|
+
return ret;
|
|
24667
|
+
},
|
|
24668
|
+
__wbg_applyTransactionDelta_0bb2bf313e438504: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20) {
|
|
24353
24669
|
let deferred0_0;
|
|
24354
24670
|
let deferred0_1;
|
|
24355
24671
|
let deferred1_0;
|
|
@@ -24488,7 +24804,7 @@ function __wbg_get_imports() {
|
|
|
24488
24804
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24489
24805
|
}
|
|
24490
24806
|
},
|
|
24491
|
-
|
|
24807
|
+
__wbg_exportStore_a3251a108aa7b844: function(arg0, arg1) {
|
|
24492
24808
|
const ret = exportStore(getStringFromWasm0(arg0, arg1));
|
|
24493
24809
|
return ret;
|
|
24494
24810
|
},
|
|
@@ -24520,7 +24836,7 @@ function __wbg_get_imports() {
|
|
|
24520
24836
|
const ret = FetchedNote.__wrap(arg0);
|
|
24521
24837
|
return ret;
|
|
24522
24838
|
},
|
|
24523
|
-
|
|
24839
|
+
__wbg_forceImportStore_cefb1d26c504a17a: function(arg0, arg1, arg2) {
|
|
24524
24840
|
const ret = forceImportStore(getStringFromWasm0(arg0, arg1), arg2);
|
|
24525
24841
|
return ret;
|
|
24526
24842
|
},
|
|
@@ -24528,6 +24844,10 @@ function __wbg_get_imports() {
|
|
|
24528
24844
|
const ret = ForeignAccount.__unwrap(arg0);
|
|
24529
24845
|
return ret;
|
|
24530
24846
|
},
|
|
24847
|
+
__wbg_from_bddd64e7d5ff6941: function(arg0) {
|
|
24848
|
+
const ret = Array.from(arg0);
|
|
24849
|
+
return ret;
|
|
24850
|
+
},
|
|
24531
24851
|
__wbg_fungibleasset_new: function(arg0) {
|
|
24532
24852
|
const ret = FungibleAsset.__wrap(arg0);
|
|
24533
24853
|
return ret;
|
|
@@ -24540,7 +24860,7 @@ function __wbg_get_imports() {
|
|
|
24540
24860
|
const ret = FungibleAssetDeltaItem.__wrap(arg0);
|
|
24541
24861
|
return ret;
|
|
24542
24862
|
},
|
|
24543
|
-
|
|
24863
|
+
__wbg_getAccountAddresses_6bda8d40b7d06085: function(arg0, arg1, arg2, arg3) {
|
|
24544
24864
|
let deferred0_0;
|
|
24545
24865
|
let deferred0_1;
|
|
24546
24866
|
try {
|
|
@@ -24552,7 +24872,7 @@ function __wbg_get_imports() {
|
|
|
24552
24872
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24553
24873
|
}
|
|
24554
24874
|
},
|
|
24555
|
-
|
|
24875
|
+
__wbg_getAccountAuthByPubKeyCommitment_3e272c0653b69f25: function(arg0, arg1, arg2, arg3) {
|
|
24556
24876
|
let deferred0_0;
|
|
24557
24877
|
let deferred0_1;
|
|
24558
24878
|
try {
|
|
@@ -24564,7 +24884,7 @@ function __wbg_get_imports() {
|
|
|
24564
24884
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24565
24885
|
}
|
|
24566
24886
|
},
|
|
24567
|
-
|
|
24887
|
+
__wbg_getAccountCode_66c23e814ccb0b75: function(arg0, arg1, arg2, arg3) {
|
|
24568
24888
|
let deferred0_0;
|
|
24569
24889
|
let deferred0_1;
|
|
24570
24890
|
try {
|
|
@@ -24576,7 +24896,7 @@ function __wbg_get_imports() {
|
|
|
24576
24896
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24577
24897
|
}
|
|
24578
24898
|
},
|
|
24579
|
-
|
|
24899
|
+
__wbg_getAccountHeaderByCommitment_e77460136385053d: function(arg0, arg1, arg2, arg3) {
|
|
24580
24900
|
let deferred0_0;
|
|
24581
24901
|
let deferred0_1;
|
|
24582
24902
|
try {
|
|
@@ -24588,7 +24908,7 @@ function __wbg_get_imports() {
|
|
|
24588
24908
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24589
24909
|
}
|
|
24590
24910
|
},
|
|
24591
|
-
|
|
24911
|
+
__wbg_getAccountHeader_1087552d17a99751: function(arg0, arg1, arg2, arg3) {
|
|
24592
24912
|
let deferred0_0;
|
|
24593
24913
|
let deferred0_1;
|
|
24594
24914
|
try {
|
|
@@ -24600,7 +24920,7 @@ function __wbg_get_imports() {
|
|
|
24600
24920
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24601
24921
|
}
|
|
24602
24922
|
},
|
|
24603
|
-
|
|
24923
|
+
__wbg_getAccountIdByKeyCommitment_7e1292d010257f58: function(arg0, arg1, arg2, arg3) {
|
|
24604
24924
|
let deferred0_0;
|
|
24605
24925
|
let deferred0_1;
|
|
24606
24926
|
try {
|
|
@@ -24612,11 +24932,11 @@ function __wbg_get_imports() {
|
|
|
24612
24932
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24613
24933
|
}
|
|
24614
24934
|
},
|
|
24615
|
-
|
|
24935
|
+
__wbg_getAccountIds_aa202a56a3aa2095: function(arg0, arg1) {
|
|
24616
24936
|
const ret = getAccountIds(getStringFromWasm0(arg0, arg1));
|
|
24617
24937
|
return ret;
|
|
24618
24938
|
},
|
|
24619
|
-
|
|
24939
|
+
__wbg_getAccountStorageMaps_83fcada97acbc4d3: function(arg0, arg1, arg2, arg3) {
|
|
24620
24940
|
let deferred0_0;
|
|
24621
24941
|
let deferred0_1;
|
|
24622
24942
|
try {
|
|
@@ -24628,7 +24948,7 @@ function __wbg_get_imports() {
|
|
|
24628
24948
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24629
24949
|
}
|
|
24630
24950
|
},
|
|
24631
|
-
|
|
24951
|
+
__wbg_getAccountStorage_7da5087b3d6719c9: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24632
24952
|
let deferred0_0;
|
|
24633
24953
|
let deferred0_1;
|
|
24634
24954
|
try {
|
|
@@ -24642,7 +24962,7 @@ function __wbg_get_imports() {
|
|
|
24642
24962
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24643
24963
|
}
|
|
24644
24964
|
},
|
|
24645
|
-
|
|
24965
|
+
__wbg_getAccountVaultAssets_a7f15cd5706a07f0: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24646
24966
|
let deferred0_0;
|
|
24647
24967
|
let deferred0_1;
|
|
24648
24968
|
try {
|
|
@@ -24656,27 +24976,27 @@ function __wbg_get_imports() {
|
|
|
24656
24976
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24657
24977
|
}
|
|
24658
24978
|
},
|
|
24659
|
-
|
|
24979
|
+
__wbg_getAllAccountHeaders_20b2442034a1d33a: function(arg0, arg1) {
|
|
24660
24980
|
const ret = getAllAccountHeaders(getStringFromWasm0(arg0, arg1));
|
|
24661
24981
|
return ret;
|
|
24662
24982
|
},
|
|
24663
|
-
|
|
24983
|
+
__wbg_getBlockHeaders_14c17869ac14ff20: function(arg0, arg1, arg2, arg3) {
|
|
24664
24984
|
var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
|
|
24665
24985
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24666
24986
|
const ret = getBlockHeaders(getStringFromWasm0(arg0, arg1), v0);
|
|
24667
24987
|
return ret;
|
|
24668
24988
|
},
|
|
24669
|
-
|
|
24989
|
+
__wbg_getCurrentBlockchainPeaks_f25ec9bf8fbcfb01: function(arg0, arg1) {
|
|
24670
24990
|
const ret = getCurrentBlockchainPeaks(getStringFromWasm0(arg0, arg1));
|
|
24671
24991
|
return ret;
|
|
24672
24992
|
},
|
|
24673
|
-
|
|
24993
|
+
__wbg_getForeignAccountCode_aa888a2e4d67c198: function(arg0, arg1, arg2, arg3) {
|
|
24674
24994
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24675
24995
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24676
24996
|
const ret = getForeignAccountCode(getStringFromWasm0(arg0, arg1), v0);
|
|
24677
24997
|
return ret;
|
|
24678
24998
|
},
|
|
24679
|
-
|
|
24999
|
+
__wbg_getInputNoteByOffset_28a7b0db364e3661: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
24680
25000
|
let deferred1_0;
|
|
24681
25001
|
let deferred1_1;
|
|
24682
25002
|
try {
|
|
@@ -24690,31 +25010,31 @@ function __wbg_get_imports() {
|
|
|
24690
25010
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
24691
25011
|
}
|
|
24692
25012
|
},
|
|
24693
|
-
|
|
25013
|
+
__wbg_getInputNotesFromDetailsCommitments_cd9aae9ebea29ae8: function(arg0, arg1, arg2, arg3) {
|
|
24694
25014
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24695
25015
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24696
25016
|
const ret = getInputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
|
|
24697
25017
|
return ret;
|
|
24698
25018
|
},
|
|
24699
|
-
|
|
25019
|
+
__wbg_getInputNotesFromIds_2ac71ad2b96eacdc: function(arg0, arg1, arg2, arg3) {
|
|
24700
25020
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24701
25021
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24702
25022
|
const ret = getInputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
|
|
24703
25023
|
return ret;
|
|
24704
25024
|
},
|
|
24705
|
-
|
|
25025
|
+
__wbg_getInputNotesFromNullifiers_784b00260b622e0a: function(arg0, arg1, arg2, arg3) {
|
|
24706
25026
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24707
25027
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24708
25028
|
const ret = getInputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
|
|
24709
25029
|
return ret;
|
|
24710
25030
|
},
|
|
24711
|
-
|
|
25031
|
+
__wbg_getInputNotes_554b394a036cce35: function(arg0, arg1, arg2, arg3) {
|
|
24712
25032
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
24713
25033
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
24714
25034
|
const ret = getInputNotes(getStringFromWasm0(arg0, arg1), v0);
|
|
24715
25035
|
return ret;
|
|
24716
25036
|
},
|
|
24717
|
-
|
|
25037
|
+
__wbg_getKeyCommitmentsByAccountId_dc8ddc1944776f77: function(arg0, arg1, arg2, arg3) {
|
|
24718
25038
|
let deferred0_0;
|
|
24719
25039
|
let deferred0_1;
|
|
24720
25040
|
try {
|
|
@@ -24726,7 +25046,7 @@ function __wbg_get_imports() {
|
|
|
24726
25046
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24727
25047
|
}
|
|
24728
25048
|
},
|
|
24729
|
-
|
|
25049
|
+
__wbg_getNoteScript_fb7f3a8b5693efd3: function(arg0, arg1, arg2, arg3) {
|
|
24730
25050
|
let deferred0_0;
|
|
24731
25051
|
let deferred0_1;
|
|
24732
25052
|
try {
|
|
@@ -24738,39 +25058,39 @@ function __wbg_get_imports() {
|
|
|
24738
25058
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24739
25059
|
}
|
|
24740
25060
|
},
|
|
24741
|
-
|
|
25061
|
+
__wbg_getNoteTags_e58900169fc93b17: function(arg0, arg1) {
|
|
24742
25062
|
const ret = getNoteTags(getStringFromWasm0(arg0, arg1));
|
|
24743
25063
|
return ret;
|
|
24744
25064
|
},
|
|
24745
|
-
|
|
25065
|
+
__wbg_getOutputNotesFromDetailsCommitments_b67eef4a469d243f: function(arg0, arg1, arg2, arg3) {
|
|
24746
25066
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24747
25067
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24748
25068
|
const ret = getOutputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
|
|
24749
25069
|
return ret;
|
|
24750
25070
|
},
|
|
24751
|
-
|
|
25071
|
+
__wbg_getOutputNotesFromIds_3e2e083d5e6307b4: function(arg0, arg1, arg2, arg3) {
|
|
24752
25072
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24753
25073
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24754
25074
|
const ret = getOutputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
|
|
24755
25075
|
return ret;
|
|
24756
25076
|
},
|
|
24757
|
-
|
|
25077
|
+
__wbg_getOutputNotesFromNullifiers_f80d6022e4d273ae: function(arg0, arg1, arg2, arg3) {
|
|
24758
25078
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24759
25079
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24760
25080
|
const ret = getOutputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
|
|
24761
25081
|
return ret;
|
|
24762
25082
|
},
|
|
24763
|
-
|
|
25083
|
+
__wbg_getOutputNotes_edbf80cf7cd0b908: function(arg0, arg1, arg2, arg3) {
|
|
24764
25084
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
24765
25085
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
24766
25086
|
const ret = getOutputNotes(getStringFromWasm0(arg0, arg1), v0);
|
|
24767
25087
|
return ret;
|
|
24768
25088
|
},
|
|
24769
|
-
|
|
25089
|
+
__wbg_getPartialBlockchainNodesAll_c415a12245c31d24: function(arg0, arg1) {
|
|
24770
25090
|
const ret = getPartialBlockchainNodesAll(getStringFromWasm0(arg0, arg1));
|
|
24771
25091
|
return ret;
|
|
24772
25092
|
},
|
|
24773
|
-
|
|
25093
|
+
__wbg_getPartialBlockchainNodesUpToInOrderIndex_13c0f9e58345c3dd: function(arg0, arg1, arg2, arg3) {
|
|
24774
25094
|
let deferred0_0;
|
|
24775
25095
|
let deferred0_1;
|
|
24776
25096
|
try {
|
|
@@ -24782,7 +25102,7 @@ function __wbg_get_imports() {
|
|
|
24782
25102
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24783
25103
|
}
|
|
24784
25104
|
},
|
|
24785
|
-
|
|
25105
|
+
__wbg_getPartialBlockchainNodes_65b845ff2a25659c: function(arg0, arg1, arg2, arg3) {
|
|
24786
25106
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24787
25107
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24788
25108
|
const ret = getPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0);
|
|
@@ -24795,7 +25115,7 @@ function __wbg_get_imports() {
|
|
|
24795
25115
|
const ret = arg0.getReader();
|
|
24796
25116
|
return ret;
|
|
24797
25117
|
}, arguments); },
|
|
24798
|
-
|
|
25118
|
+
__wbg_getSetting_652a441d00c2ff02: function(arg0, arg1, arg2, arg3) {
|
|
24799
25119
|
let deferred0_0;
|
|
24800
25120
|
let deferred0_1;
|
|
24801
25121
|
try {
|
|
@@ -24807,7 +25127,7 @@ function __wbg_get_imports() {
|
|
|
24807
25127
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24808
25128
|
}
|
|
24809
25129
|
},
|
|
24810
|
-
|
|
25130
|
+
__wbg_getSyncHeight_47274f9a308f2ea0: function(arg0, arg1) {
|
|
24811
25131
|
const ret = getSyncHeight(getStringFromWasm0(arg0, arg1));
|
|
24812
25132
|
return ret;
|
|
24813
25133
|
},
|
|
@@ -24815,15 +25135,15 @@ function __wbg_get_imports() {
|
|
|
24815
25135
|
const ret = arg0.getTime();
|
|
24816
25136
|
return ret;
|
|
24817
25137
|
},
|
|
24818
|
-
|
|
25138
|
+
__wbg_getTrackedBlockHeaderNumbers_7f699d8776e5342e: function(arg0, arg1) {
|
|
24819
25139
|
const ret = getTrackedBlockHeaderNumbers(getStringFromWasm0(arg0, arg1));
|
|
24820
25140
|
return ret;
|
|
24821
25141
|
},
|
|
24822
|
-
|
|
25142
|
+
__wbg_getTrackedBlockHeaders_9257cc5c828b3847: function(arg0, arg1) {
|
|
24823
25143
|
const ret = getTrackedBlockHeaders(getStringFromWasm0(arg0, arg1));
|
|
24824
25144
|
return ret;
|
|
24825
25145
|
},
|
|
24826
|
-
|
|
25146
|
+
__wbg_getTransactions_042b4178983dd070: function(arg0, arg1, arg2, arg3) {
|
|
24827
25147
|
let deferred0_0;
|
|
24828
25148
|
let deferred0_1;
|
|
24829
25149
|
try {
|
|
@@ -24835,7 +25155,7 @@ function __wbg_get_imports() {
|
|
|
24835
25155
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24836
25156
|
}
|
|
24837
25157
|
},
|
|
24838
|
-
|
|
25158
|
+
__wbg_getUnspentInputNoteNullifiers_af62c37e3bf9a116: function(arg0, arg1) {
|
|
24839
25159
|
const ret = getUnspentInputNoteNullifiers(getStringFromWasm0(arg0, arg1));
|
|
24840
25160
|
return ret;
|
|
24841
25161
|
},
|
|
@@ -24879,7 +25199,7 @@ function __wbg_get_imports() {
|
|
|
24879
25199
|
const ret = InputNoteRecord.__wrap(arg0);
|
|
24880
25200
|
return ret;
|
|
24881
25201
|
},
|
|
24882
|
-
|
|
25202
|
+
__wbg_insertAccountAddress_9750679ae673f231: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24883
25203
|
let deferred0_0;
|
|
24884
25204
|
let deferred0_1;
|
|
24885
25205
|
try {
|
|
@@ -24893,7 +25213,7 @@ function __wbg_get_imports() {
|
|
|
24893
25213
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24894
25214
|
}
|
|
24895
25215
|
},
|
|
24896
|
-
|
|
25216
|
+
__wbg_insertAccountAuth_4468784a0311c9e3: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24897
25217
|
let deferred0_0;
|
|
24898
25218
|
let deferred0_1;
|
|
24899
25219
|
let deferred1_0;
|
|
@@ -24910,7 +25230,7 @@ function __wbg_get_imports() {
|
|
|
24910
25230
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
24911
25231
|
}
|
|
24912
25232
|
},
|
|
24913
|
-
|
|
25233
|
+
__wbg_insertAccountKeyMapping_1018a4c4e3136ea9: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24914
25234
|
let deferred0_0;
|
|
24915
25235
|
let deferred0_1;
|
|
24916
25236
|
let deferred1_0;
|
|
@@ -24927,13 +25247,13 @@ function __wbg_get_imports() {
|
|
|
24927
25247
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
24928
25248
|
}
|
|
24929
25249
|
},
|
|
24930
|
-
|
|
25250
|
+
__wbg_insertBlockHeader_5f9db8fbf493cd05: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24931
25251
|
var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
|
|
24932
25252
|
wasm.__wbindgen_free(arg3, arg4 * 1, 1);
|
|
24933
25253
|
const ret = insertBlockHeader(getStringFromWasm0(arg0, arg1), arg2 >>> 0, v0, arg5 !== 0);
|
|
24934
25254
|
return ret;
|
|
24935
25255
|
},
|
|
24936
|
-
|
|
25256
|
+
__wbg_insertPartialBlockchainNodes_3bac74a5a63676ec: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24937
25257
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24938
25258
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24939
25259
|
var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
|
|
@@ -24941,7 +25261,7 @@ function __wbg_get_imports() {
|
|
|
24941
25261
|
const ret = insertPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0, v1);
|
|
24942
25262
|
return ret;
|
|
24943
25263
|
},
|
|
24944
|
-
|
|
25264
|
+
__wbg_insertSetting_3f9497eda301dd4d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24945
25265
|
let deferred0_0;
|
|
24946
25266
|
let deferred0_1;
|
|
24947
25267
|
try {
|
|
@@ -24955,7 +25275,7 @@ function __wbg_get_imports() {
|
|
|
24955
25275
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24956
25276
|
}
|
|
24957
25277
|
},
|
|
24958
|
-
|
|
25278
|
+
__wbg_insertTransactionScript_d77dd4730b830b16: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24959
25279
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
24960
25280
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
24961
25281
|
let v1;
|
|
@@ -25052,11 +25372,11 @@ function __wbg_get_imports() {
|
|
|
25052
25372
|
const ret = arg0.length;
|
|
25053
25373
|
return ret;
|
|
25054
25374
|
},
|
|
25055
|
-
|
|
25375
|
+
__wbg_listSettingKeys_e6be00ae9be0f390: function(arg0, arg1) {
|
|
25056
25376
|
const ret = listSettingKeys(getStringFromWasm0(arg0, arg1));
|
|
25057
25377
|
return ret;
|
|
25058
25378
|
},
|
|
25059
|
-
|
|
25379
|
+
__wbg_lockAccount_59fe96d1d24657e7: function(arg0, arg1, arg2, arg3) {
|
|
25060
25380
|
let deferred0_0;
|
|
25061
25381
|
let deferred0_1;
|
|
25062
25382
|
try {
|
|
@@ -25144,7 +25464,7 @@ function __wbg_get_imports() {
|
|
|
25144
25464
|
const a = state0.a;
|
|
25145
25465
|
state0.a = 0;
|
|
25146
25466
|
try {
|
|
25147
|
-
return
|
|
25467
|
+
return wasm_bindgen__convert__closures_____invoke__h21e75c0ad5fdcd28(a, state0.b, arg0, arg1);
|
|
25148
25468
|
} finally {
|
|
25149
25469
|
state0.a = a;
|
|
25150
25470
|
}
|
|
@@ -25255,7 +25575,7 @@ function __wbg_get_imports() {
|
|
|
25255
25575
|
const ret = NoteTag.__unwrap(arg0);
|
|
25256
25576
|
return ret;
|
|
25257
25577
|
},
|
|
25258
|
-
|
|
25578
|
+
__wbg_openDatabase_d434e531abab67a4: function(arg0, arg1, arg2, arg3) {
|
|
25259
25579
|
const ret = openDatabase(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
25260
25580
|
return ret;
|
|
25261
25581
|
},
|
|
@@ -25286,7 +25606,7 @@ function __wbg_get_imports() {
|
|
|
25286
25606
|
const ret = ProvenTransaction.__wrap(arg0);
|
|
25287
25607
|
return ret;
|
|
25288
25608
|
},
|
|
25289
|
-
|
|
25609
|
+
__wbg_pruneAccountHistory_601cf8b7deb90730: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25290
25610
|
let deferred0_0;
|
|
25291
25611
|
let deferred0_1;
|
|
25292
25612
|
let deferred1_0;
|
|
@@ -25303,7 +25623,7 @@ function __wbg_get_imports() {
|
|
|
25303
25623
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
25304
25624
|
}
|
|
25305
25625
|
},
|
|
25306
|
-
|
|
25626
|
+
__wbg_pruneIrrelevantBlocks_6dfe3f86e818875b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25307
25627
|
var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
|
|
25308
25628
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
25309
25629
|
var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
|
|
@@ -25315,6 +25635,10 @@ function __wbg_get_imports() {
|
|
|
25315
25635
|
const ret = PswapLineageRecord.__wrap(arg0);
|
|
25316
25636
|
return ret;
|
|
25317
25637
|
},
|
|
25638
|
+
__wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
|
|
25639
|
+
const ret = arg0.push(arg1);
|
|
25640
|
+
return ret;
|
|
25641
|
+
},
|
|
25318
25642
|
__wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
|
|
25319
25643
|
const ret = arg0.queueMicrotask;
|
|
25320
25644
|
return ret;
|
|
@@ -25329,13 +25653,13 @@ function __wbg_get_imports() {
|
|
|
25329
25653
|
__wbg_releaseLock_aa5846c2494b3032: function(arg0) {
|
|
25330
25654
|
arg0.releaseLock();
|
|
25331
25655
|
},
|
|
25332
|
-
|
|
25656
|
+
__wbg_removeAccountAddress_4f2f68a69c6824ba: function(arg0, arg1, arg2, arg3) {
|
|
25333
25657
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
25334
25658
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
25335
25659
|
const ret = removeAccountAddress(getStringFromWasm0(arg0, arg1), v0);
|
|
25336
25660
|
return ret;
|
|
25337
25661
|
},
|
|
25338
|
-
|
|
25662
|
+
__wbg_removeAccountAuth_270323d61dcc5a1c: function(arg0, arg1, arg2, arg3) {
|
|
25339
25663
|
let deferred0_0;
|
|
25340
25664
|
let deferred0_1;
|
|
25341
25665
|
try {
|
|
@@ -25347,7 +25671,7 @@ function __wbg_get_imports() {
|
|
|
25347
25671
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25348
25672
|
}
|
|
25349
25673
|
},
|
|
25350
|
-
|
|
25674
|
+
__wbg_removeAllMappingsForKey_0cd82b003ec78640: function(arg0, arg1, arg2, arg3) {
|
|
25351
25675
|
let deferred0_0;
|
|
25352
25676
|
let deferred0_1;
|
|
25353
25677
|
try {
|
|
@@ -25359,7 +25683,7 @@ function __wbg_get_imports() {
|
|
|
25359
25683
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25360
25684
|
}
|
|
25361
25685
|
},
|
|
25362
|
-
|
|
25686
|
+
__wbg_removeNoteTag_99bf10aa95385cdd: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
25363
25687
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
25364
25688
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
25365
25689
|
let v1;
|
|
@@ -25380,7 +25704,7 @@ function __wbg_get_imports() {
|
|
|
25380
25704
|
const ret = removeNoteTag(getStringFromWasm0(arg0, arg1), v0, v1, v2, v3);
|
|
25381
25705
|
return ret;
|
|
25382
25706
|
},
|
|
25383
|
-
|
|
25707
|
+
__wbg_removeSetting_435793c919df62ea: function(arg0, arg1, arg2, arg3) {
|
|
25384
25708
|
let deferred0_0;
|
|
25385
25709
|
let deferred0_1;
|
|
25386
25710
|
try {
|
|
@@ -25431,6 +25755,9 @@ function __wbg_get_imports() {
|
|
|
25431
25755
|
const ret = setTimeout(arg0, arg1);
|
|
25432
25756
|
return ret;
|
|
25433
25757
|
}, arguments); },
|
|
25758
|
+
__wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
|
|
25759
|
+
arg0[arg1] = arg2;
|
|
25760
|
+
},
|
|
25434
25761
|
__wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
|
|
25435
25762
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
25436
25763
|
return ret;
|
|
@@ -25580,13 +25907,13 @@ function __wbg_get_imports() {
|
|
|
25580
25907
|
const ret = TransactionSummary.__wrap(arg0);
|
|
25581
25908
|
return ret;
|
|
25582
25909
|
},
|
|
25583
|
-
|
|
25910
|
+
__wbg_undoAccountStates_bc8f443bd3fee100: function(arg0, arg1, arg2, arg3) {
|
|
25584
25911
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
25585
25912
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
25586
25913
|
const ret = undoAccountStates(getStringFromWasm0(arg0, arg1), v0);
|
|
25587
25914
|
return ret;
|
|
25588
25915
|
},
|
|
25589
|
-
|
|
25916
|
+
__wbg_upsertAccountCode_2988cd68796aacef: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25590
25917
|
let deferred0_0;
|
|
25591
25918
|
let deferred0_1;
|
|
25592
25919
|
try {
|
|
@@ -25600,7 +25927,7 @@ function __wbg_get_imports() {
|
|
|
25600
25927
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25601
25928
|
}
|
|
25602
25929
|
},
|
|
25603
|
-
|
|
25930
|
+
__wbg_upsertAccountRecord_124cfe8dc72ff46f: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) {
|
|
25604
25931
|
let deferred0_0;
|
|
25605
25932
|
let deferred0_1;
|
|
25606
25933
|
let deferred1_0;
|
|
@@ -25642,7 +25969,7 @@ function __wbg_get_imports() {
|
|
|
25642
25969
|
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
25643
25970
|
}
|
|
25644
25971
|
},
|
|
25645
|
-
|
|
25972
|
+
__wbg_upsertAccountStorage_b7e55e69d8c649ff: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25646
25973
|
let deferred0_0;
|
|
25647
25974
|
let deferred0_1;
|
|
25648
25975
|
try {
|
|
@@ -25656,7 +25983,7 @@ function __wbg_get_imports() {
|
|
|
25656
25983
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25657
25984
|
}
|
|
25658
25985
|
},
|
|
25659
|
-
|
|
25986
|
+
__wbg_upsertForeignAccountCode_321f8c2b6560540f: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
25660
25987
|
let deferred0_0;
|
|
25661
25988
|
let deferred0_1;
|
|
25662
25989
|
let deferred2_0;
|
|
@@ -25675,7 +26002,7 @@ function __wbg_get_imports() {
|
|
|
25675
26002
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
25676
26003
|
}
|
|
25677
26004
|
},
|
|
25678
|
-
|
|
26005
|
+
__wbg_upsertInputNote_f54fb501eea97448: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19, arg20, arg21, arg22, arg23, arg24, arg25, arg26, arg27, arg28) {
|
|
25679
26006
|
let deferred0_0;
|
|
25680
26007
|
let deferred0_1;
|
|
25681
26008
|
let deferred6_0;
|
|
@@ -25724,7 +26051,7 @@ function __wbg_get_imports() {
|
|
|
25724
26051
|
wasm.__wbindgen_free(deferred9_0, deferred9_1, 1);
|
|
25725
26052
|
}
|
|
25726
26053
|
},
|
|
25727
|
-
|
|
26054
|
+
__wbg_upsertNoteScript_96ab2ba0a90f1446: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25728
26055
|
let deferred0_0;
|
|
25729
26056
|
let deferred0_1;
|
|
25730
26057
|
try {
|
|
@@ -25738,7 +26065,7 @@ function __wbg_get_imports() {
|
|
|
25738
26065
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25739
26066
|
}
|
|
25740
26067
|
},
|
|
25741
|
-
|
|
26068
|
+
__wbg_upsertOutputNote_ab3683633a3f1acb: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) {
|
|
25742
26069
|
let deferred0_0;
|
|
25743
26070
|
let deferred0_1;
|
|
25744
26071
|
let deferred1_0;
|
|
@@ -25773,7 +26100,7 @@ function __wbg_get_imports() {
|
|
|
25773
26100
|
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
25774
26101
|
}
|
|
25775
26102
|
},
|
|
25776
|
-
|
|
26103
|
+
__wbg_upsertStorageMapEntries_5f86e7cc367f03c1: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25777
26104
|
let deferred0_0;
|
|
25778
26105
|
let deferred0_1;
|
|
25779
26106
|
try {
|
|
@@ -25787,7 +26114,7 @@ function __wbg_get_imports() {
|
|
|
25787
26114
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25788
26115
|
}
|
|
25789
26116
|
},
|
|
25790
|
-
|
|
26117
|
+
__wbg_upsertTransactionRecord_dc6cf6e7c6196905: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
25791
26118
|
let deferred0_0;
|
|
25792
26119
|
let deferred0_1;
|
|
25793
26120
|
try {
|
|
@@ -25808,7 +26135,7 @@ function __wbg_get_imports() {
|
|
|
25808
26135
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25809
26136
|
}
|
|
25810
26137
|
},
|
|
25811
|
-
|
|
26138
|
+
__wbg_upsertVaultAssets_b09b89783ef95fbe: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25812
26139
|
let deferred0_0;
|
|
25813
26140
|
let deferred0_1;
|
|
25814
26141
|
try {
|
|
@@ -25839,13 +26166,13 @@ function __wbg_get_imports() {
|
|
|
25839
26166
|
return ret;
|
|
25840
26167
|
},
|
|
25841
26168
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
25842
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
25843
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
26169
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 443, function: Function { arguments: [Externref], shim_idx: 815, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
26170
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h33c4d85b7d47d9b3, wasm_bindgen__convert__closures_____invoke__hdea2f04753d42788);
|
|
25844
26171
|
return ret;
|
|
25845
26172
|
},
|
|
25846
26173
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
25847
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
25848
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
26174
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 443, function: Function { arguments: [], shim_idx: 444, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
26175
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h33c4d85b7d47d9b3, wasm_bindgen__convert__closures_____invoke__h26b611bba5136db9);
|
|
25849
26176
|
return ret;
|
|
25850
26177
|
},
|
|
25851
26178
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -25854,86 +26181,91 @@ function __wbg_get_imports() {
|
|
|
25854
26181
|
return ret;
|
|
25855
26182
|
},
|
|
25856
26183
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
26184
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
26185
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
26186
|
+
return ret;
|
|
26187
|
+
},
|
|
26188
|
+
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
25857
26189
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
25858
26190
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
25859
26191
|
return ret;
|
|
25860
26192
|
},
|
|
25861
|
-
|
|
26193
|
+
__wbindgen_cast_0000000000000006: function(arg0) {
|
|
25862
26194
|
// Cast intrinsic for `U64 -> Externref`.
|
|
25863
26195
|
const ret = BigInt.asUintN(64, arg0);
|
|
25864
26196
|
return ret;
|
|
25865
26197
|
},
|
|
25866
|
-
|
|
26198
|
+
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
25867
26199
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25868
26200
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25869
26201
|
// Cast intrinsic for `Vector(NamedExternref("AccountHeader")) -> Externref`.
|
|
25870
26202
|
const ret = v0;
|
|
25871
26203
|
return ret;
|
|
25872
26204
|
},
|
|
25873
|
-
|
|
26205
|
+
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
25874
26206
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25875
26207
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25876
26208
|
// Cast intrinsic for `Vector(NamedExternref("Address")) -> Externref`.
|
|
25877
26209
|
const ret = v0;
|
|
25878
26210
|
return ret;
|
|
25879
26211
|
},
|
|
25880
|
-
|
|
26212
|
+
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
25881
26213
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25882
26214
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25883
26215
|
// Cast intrinsic for `Vector(NamedExternref("ConsumableNoteRecord")) -> Externref`.
|
|
25884
26216
|
const ret = v0;
|
|
25885
26217
|
return ret;
|
|
25886
26218
|
},
|
|
25887
|
-
|
|
26219
|
+
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
25888
26220
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25889
26221
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25890
26222
|
// Cast intrinsic for `Vector(NamedExternref("FetchedNote")) -> Externref`.
|
|
25891
26223
|
const ret = v0;
|
|
25892
26224
|
return ret;
|
|
25893
26225
|
},
|
|
25894
|
-
|
|
26226
|
+
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
25895
26227
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25896
26228
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25897
26229
|
// Cast intrinsic for `Vector(NamedExternref("InputNoteRecord")) -> Externref`.
|
|
25898
26230
|
const ret = v0;
|
|
25899
26231
|
return ret;
|
|
25900
26232
|
},
|
|
25901
|
-
|
|
26233
|
+
__wbindgen_cast_000000000000000c: function(arg0, arg1) {
|
|
25902
26234
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25903
26235
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25904
26236
|
// Cast intrinsic for `Vector(NamedExternref("OutputNoteRecord")) -> Externref`.
|
|
25905
26237
|
const ret = v0;
|
|
25906
26238
|
return ret;
|
|
25907
26239
|
},
|
|
25908
|
-
|
|
26240
|
+
__wbindgen_cast_000000000000000d: function(arg0, arg1) {
|
|
25909
26241
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25910
26242
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25911
26243
|
// Cast intrinsic for `Vector(NamedExternref("PswapLineageRecord")) -> Externref`.
|
|
25912
26244
|
const ret = v0;
|
|
25913
26245
|
return ret;
|
|
25914
26246
|
},
|
|
25915
|
-
|
|
26247
|
+
__wbindgen_cast_000000000000000e: function(arg0, arg1) {
|
|
25916
26248
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25917
26249
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25918
26250
|
// Cast intrinsic for `Vector(NamedExternref("TransactionRecord")) -> Externref`.
|
|
25919
26251
|
const ret = v0;
|
|
25920
26252
|
return ret;
|
|
25921
26253
|
},
|
|
25922
|
-
|
|
26254
|
+
__wbindgen_cast_000000000000000f: function(arg0, arg1) {
|
|
25923
26255
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25924
26256
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25925
26257
|
// Cast intrinsic for `Vector(NamedExternref("Word")) -> Externref`.
|
|
25926
26258
|
const ret = v0;
|
|
25927
26259
|
return ret;
|
|
25928
26260
|
},
|
|
25929
|
-
|
|
26261
|
+
__wbindgen_cast_0000000000000010: function(arg0, arg1) {
|
|
25930
26262
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25931
26263
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25932
26264
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
25933
26265
|
const ret = v0;
|
|
25934
26266
|
return ret;
|
|
25935
26267
|
},
|
|
25936
|
-
|
|
26268
|
+
__wbindgen_cast_0000000000000011: function(arg0, arg1) {
|
|
25937
26269
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
25938
26270
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
25939
26271
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -25956,16 +26288,16 @@ function __wbg_get_imports() {
|
|
|
25956
26288
|
};
|
|
25957
26289
|
}
|
|
25958
26290
|
|
|
25959
|
-
function
|
|
25960
|
-
wasm.
|
|
26291
|
+
function wasm_bindgen__convert__closures_____invoke__h26b611bba5136db9(arg0, arg1) {
|
|
26292
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h26b611bba5136db9(arg0, arg1);
|
|
25961
26293
|
}
|
|
25962
26294
|
|
|
25963
|
-
function
|
|
25964
|
-
wasm.
|
|
26295
|
+
function wasm_bindgen__convert__closures_____invoke__hdea2f04753d42788(arg0, arg1, arg2) {
|
|
26296
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hdea2f04753d42788(arg0, arg1, arg2);
|
|
25965
26297
|
}
|
|
25966
26298
|
|
|
25967
|
-
function
|
|
25968
|
-
wasm.
|
|
26299
|
+
function wasm_bindgen__convert__closures_____invoke__h21e75c0ad5fdcd28(arg0, arg1, arg2, arg3) {
|
|
26300
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h21e75c0ad5fdcd28(arg0, arg1, arg2, arg3);
|
|
25969
26301
|
}
|
|
25970
26302
|
|
|
25971
26303
|
|
|
@@ -26084,6 +26416,9 @@ const ConsumableNoteRecordFinalization = (typeof FinalizationRegistry === 'undef
|
|
|
26084
26416
|
const EndpointFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26085
26417
|
? { register: () => {}, unregister: () => {} }
|
|
26086
26418
|
: new FinalizationRegistry(ptr => wasm.__wbg_endpoint_free(ptr >>> 0, 1));
|
|
26419
|
+
const EthAddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26420
|
+
? { register: () => {}, unregister: () => {} }
|
|
26421
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_ethaddress_free(ptr >>> 0, 1));
|
|
26087
26422
|
const ExecutedTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26088
26423
|
? { register: () => {}, unregister: () => {} }
|
|
26089
26424
|
: new FinalizationRegistry(ptr => wasm.__wbg_executedtransaction_free(ptr >>> 0, 1));
|
|
@@ -26780,7 +27115,7 @@ async function __wbg_init(module_or_path) {
|
|
|
26780
27115
|
|
|
26781
27116
|
const module$1 = new URL("assets/miden_client_web.wasm", self.location.href);
|
|
26782
27117
|
|
|
26783
|
-
var
|
|
27118
|
+
var CargoCwpuvlbc = /*#__PURE__*/Object.freeze({
|
|
26784
27119
|
__proto__: null,
|
|
26785
27120
|
Account: Account,
|
|
26786
27121
|
AccountArray: AccountArray,
|
|
@@ -26817,6 +27152,7 @@ var CargoDlo4tWNG = /*#__PURE__*/Object.freeze({
|
|
|
26817
27152
|
CommittedNote: CommittedNote,
|
|
26818
27153
|
ConsumableNoteRecord: ConsumableNoteRecord,
|
|
26819
27154
|
Endpoint: Endpoint,
|
|
27155
|
+
EthAddress: EthAddress,
|
|
26820
27156
|
ExecutedTransaction: ExecutedTransaction,
|
|
26821
27157
|
Felt: Felt,
|
|
26822
27158
|
FeltArray: FeltArray,
|