@miden-sdk/miden-sdk 0.15.3 → 0.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -0
- package/dist/mt/{Cargo-D2qNRrNR.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-D2qNRrNR-n_GEbq73.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-BP7-0qVT.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-BP7-0qVT-CmfAy6bf.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 +1 -0
- package/js/resources/transactions.js +198 -12
- package/package.json +4 -4
- package/dist/mt/Cargo-D2qNRrNR.js.map +0 -1
- package/dist/mt/workers/Cargo-D2qNRrNR-n_GEbq73.js.map +0 -1
- package/dist/st/Cargo-BP7-0qVT.js.map +0 -1
- package/dist/st/workers/Cargo-BP7-0qVT-CmfAy6bf.js.map +0 -1
|
@@ -8838,6 +8838,7 @@ async function applyTransactionDelta(dbId, accountId, nonce, updatedSlots, chang
|
|
|
8838
8838
|
}
|
|
8839
8839
|
catch (error) {
|
|
8840
8840
|
logWebStoreError(error, `Error applying transaction delta`);
|
|
8841
|
+
throw error;
|
|
8841
8842
|
}
|
|
8842
8843
|
}
|
|
8843
8844
|
async function archiveAndReplaceStorageSlots(db, accountId, nonce, newSlots) {
|
|
@@ -9076,6 +9077,7 @@ async function applyFullAccountState(dbId, accountState) {
|
|
|
9076
9077
|
}
|
|
9077
9078
|
catch (error) {
|
|
9078
9079
|
logWebStoreError(error, `Error applying full account state`);
|
|
9080
|
+
throw error;
|
|
9079
9081
|
}
|
|
9080
9082
|
}
|
|
9081
9083
|
async function upsertAccountRecord(dbId, accountId, codeRoot, storageRoot, vaultRoot, nonce, committed, commitment, accountSeed, watched) {
|
|
@@ -9997,6 +9999,7 @@ async function upsertInputNote(dbId, detailsCommitment, noteId, assets, attachme
|
|
|
9997
9999
|
}
|
|
9998
10000
|
catch (error) {
|
|
9999
10001
|
logWebStoreError(error, `Error inserting note: ${detailsCommitment}`);
|
|
10002
|
+
throw error;
|
|
10000
10003
|
}
|
|
10001
10004
|
};
|
|
10002
10005
|
return db.dexie.transaction("rw", db.inputNotes, db.notesScripts, doWork);
|
|
@@ -10080,6 +10083,7 @@ async function upsertOutputNote(dbId, detailsCommitment, noteId, assets, attachm
|
|
|
10080
10083
|
}
|
|
10081
10084
|
catch (error) {
|
|
10082
10085
|
logWebStoreError(error, `Error inserting note: ${detailsCommitment}`);
|
|
10086
|
+
throw error;
|
|
10083
10087
|
}
|
|
10084
10088
|
};
|
|
10085
10089
|
return db.dexie.transaction("rw", db.outputNotes, db.notesScripts, doWork);
|
|
@@ -10322,6 +10326,7 @@ async function insertTransactionScript(dbId, scriptRoot, txScript, tx) {
|
|
|
10322
10326
|
}
|
|
10323
10327
|
catch (error) {
|
|
10324
10328
|
logWebStoreError(error, "Failed to insert transaction script");
|
|
10329
|
+
throw error;
|
|
10325
10330
|
}
|
|
10326
10331
|
}
|
|
10327
10332
|
async function upsertTransactionRecord(dbId, transactionId, details, blockNum, statusVariant, status, scriptRoot, tx) {
|
|
@@ -10339,8 +10344,82 @@ async function upsertTransactionRecord(dbId, transactionId, details, blockNum, s
|
|
|
10339
10344
|
}
|
|
10340
10345
|
catch (err) {
|
|
10341
10346
|
logWebStoreError(err, "Failed to insert proven transaction data");
|
|
10347
|
+
throw err;
|
|
10342
10348
|
}
|
|
10343
10349
|
}
|
|
10350
|
+
/**
|
|
10351
|
+
* Applies a batch of transaction updates atomically inside a single Dexie transaction.
|
|
10352
|
+
*
|
|
10353
|
+
* All sub-operations that internally call `db.dexie.transaction()` are auto-joined by Dexie
|
|
10354
|
+
* as nested sub-transactions when run inside this parent transaction, provided the parent
|
|
10355
|
+
* scope is a superset of every sub-transaction scope.
|
|
10356
|
+
*/
|
|
10357
|
+
async function applyTransactionBatch(dbId, payloads) {
|
|
10358
|
+
const db = getDatabase(dbId);
|
|
10359
|
+
await db.dexie.transaction("rw", [
|
|
10360
|
+
db.transactions,
|
|
10361
|
+
db.transactionScripts,
|
|
10362
|
+
db.latestAccountStorages,
|
|
10363
|
+
db.historicalAccountStorages,
|
|
10364
|
+
db.latestStorageMapEntries,
|
|
10365
|
+
db.historicalStorageMapEntries,
|
|
10366
|
+
db.latestAccountAssets,
|
|
10367
|
+
db.historicalAccountAssets,
|
|
10368
|
+
db.latestAccountHeaders,
|
|
10369
|
+
db.historicalAccountHeaders,
|
|
10370
|
+
db.inputNotes,
|
|
10371
|
+
db.outputNotes,
|
|
10372
|
+
db.notesScripts,
|
|
10373
|
+
db.tags,
|
|
10374
|
+
], async () => {
|
|
10375
|
+
for (const payload of payloads) {
|
|
10376
|
+
// 1. Insert the transaction record (script first, then record)
|
|
10377
|
+
const rec = payload.transactionRecord;
|
|
10378
|
+
if (rec.scriptRoot && rec.txScript) {
|
|
10379
|
+
await insertTransactionScript(dbId, rec.scriptRoot, rec.txScript);
|
|
10380
|
+
}
|
|
10381
|
+
await upsertTransactionRecord(dbId, rec.id, rec.details, rec.blockNum, rec.statusVariant, rec.status, rec.scriptRoot);
|
|
10382
|
+
// 2. Apply account state (full or delta)
|
|
10383
|
+
const acct = payload.accountState;
|
|
10384
|
+
if (acct.kind === "full") {
|
|
10385
|
+
await applyFullAccountState(dbId, acct.account);
|
|
10386
|
+
}
|
|
10387
|
+
else {
|
|
10388
|
+
await applyTransactionDelta(dbId, acct.accountId, acct.nonce, acct.updatedSlots, acct.changedMapEntries, acct.changedAssets, acct.codeRoot, acct.storageRoot, acct.vaultRoot, acct.committed, acct.commitment);
|
|
10389
|
+
}
|
|
10390
|
+
// 3. Upsert input and output notes
|
|
10391
|
+
for (const note of payload.inputNotes) {
|
|
10392
|
+
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);
|
|
10393
|
+
}
|
|
10394
|
+
for (const note of payload.outputNotes) {
|
|
10395
|
+
await upsertOutputNote(dbId, note.detailsCommitment, note.noteId, note.noteAssets, note.attachments, note.recipientDigest, note.metadata, note.nullifier, note.expectedHeight, note.stateDiscriminant, note.state);
|
|
10396
|
+
}
|
|
10397
|
+
// 4. Add note tags (deduplicated within the transaction)
|
|
10398
|
+
for (const tagEntry of payload.tags) {
|
|
10399
|
+
const tagArray = new Uint8Array(tagEntry.tag);
|
|
10400
|
+
const tagBase64 = uint8ArrayToBase64(tagArray);
|
|
10401
|
+
const sourceNoteId = tagEntry.sourceNoteId ?? "";
|
|
10402
|
+
const sourceAccountId = tagEntry.sourceAccountId ?? "";
|
|
10403
|
+
const sourceSubscriptionKey = tagEntry.sourceSubscriptionKey ?? "";
|
|
10404
|
+
// Check for existing tag to avoid duplicates (mirrors the Rust add_note_tag logic).
|
|
10405
|
+
// sourceSubscriptionKey is unindexed, so filter on it in memory — distinct
|
|
10406
|
+
// subscriptions may share a tag and must remain separate rows.
|
|
10407
|
+
const existing = await db.tags
|
|
10408
|
+
.where({ tag: tagBase64, sourceNoteId, sourceAccountId })
|
|
10409
|
+
.filter((t) => (t.sourceSubscriptionKey ?? "") === sourceSubscriptionKey)
|
|
10410
|
+
.first();
|
|
10411
|
+
if (!existing) {
|
|
10412
|
+
await db.tags.add({
|
|
10413
|
+
tag: tagBase64,
|
|
10414
|
+
sourceNoteId,
|
|
10415
|
+
sourceAccountId,
|
|
10416
|
+
sourceSubscriptionKey,
|
|
10417
|
+
});
|
|
10418
|
+
}
|
|
10419
|
+
}
|
|
10420
|
+
}
|
|
10421
|
+
});
|
|
10422
|
+
}
|
|
10344
10423
|
|
|
10345
10424
|
async function getNoteTags(dbId) {
|
|
10346
10425
|
try {
|
|
@@ -13049,10 +13128,13 @@ class AuthSecretKey {
|
|
|
13049
13128
|
if (Symbol.dispose) AuthSecretKey.prototype[Symbol.dispose] = AuthSecretKey.prototype.free;
|
|
13050
13129
|
|
|
13051
13130
|
/**
|
|
13052
|
-
* Provides metadata for a
|
|
13131
|
+
* Provides metadata for a fungible faucet account component.
|
|
13053
13132
|
*
|
|
13054
|
-
* Reads the on-chain
|
|
13055
|
-
*
|
|
13133
|
+
* Reads the on-chain `FungibleFaucet` component for the account, which holds the per-token
|
|
13134
|
+
* info (symbol, decimals, supply, and the descriptive metadata). The same component backs both
|
|
13135
|
+
* "basic" public faucets and network-style faucets — in the current protocol the distinction is
|
|
13136
|
+
* a function of the surrounding account configuration (account type, auth, access control), not
|
|
13137
|
+
* of the faucet component itself — so this reads metadata from either kind of faucet account.
|
|
13056
13138
|
*/
|
|
13057
13139
|
class BasicFungibleFaucetComponent {
|
|
13058
13140
|
static __wrap(ptr) {
|
|
@@ -13080,6 +13162,32 @@ class BasicFungibleFaucetComponent {
|
|
|
13080
13162
|
const ret = wasm.basicfungiblefaucetcomponent_decimals(this.__wbg_ptr);
|
|
13081
13163
|
return ret;
|
|
13082
13164
|
}
|
|
13165
|
+
/**
|
|
13166
|
+
* Returns the optional free-form token description, or `undefined` when unset.
|
|
13167
|
+
* @returns {string | undefined}
|
|
13168
|
+
*/
|
|
13169
|
+
description() {
|
|
13170
|
+
const ret = wasm.basicfungiblefaucetcomponent_description(this.__wbg_ptr);
|
|
13171
|
+
let v1;
|
|
13172
|
+
if (ret[0] !== 0) {
|
|
13173
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
13174
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
13175
|
+
}
|
|
13176
|
+
return v1;
|
|
13177
|
+
}
|
|
13178
|
+
/**
|
|
13179
|
+
* Returns the optional external link (e.g. project website), or `undefined` when unset.
|
|
13180
|
+
* @returns {string | undefined}
|
|
13181
|
+
*/
|
|
13182
|
+
externalLink() {
|
|
13183
|
+
const ret = wasm.basicfungiblefaucetcomponent_externalLink(this.__wbg_ptr);
|
|
13184
|
+
let v1;
|
|
13185
|
+
if (ret[0] !== 0) {
|
|
13186
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
13187
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
13188
|
+
}
|
|
13189
|
+
return v1;
|
|
13190
|
+
}
|
|
13083
13191
|
/**
|
|
13084
13192
|
* Extracts faucet metadata from an account.
|
|
13085
13193
|
* @param {Account} account
|
|
@@ -13094,6 +13202,19 @@ class BasicFungibleFaucetComponent {
|
|
|
13094
13202
|
}
|
|
13095
13203
|
return BasicFungibleFaucetComponent.__wrap(ret[0]);
|
|
13096
13204
|
}
|
|
13205
|
+
/**
|
|
13206
|
+
* Returns the optional token logo URI, or `undefined` when unset.
|
|
13207
|
+
* @returns {string | undefined}
|
|
13208
|
+
*/
|
|
13209
|
+
logoUri() {
|
|
13210
|
+
const ret = wasm.basicfungiblefaucetcomponent_logoUri(this.__wbg_ptr);
|
|
13211
|
+
let v1;
|
|
13212
|
+
if (ret[0] !== 0) {
|
|
13213
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
13214
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
13215
|
+
}
|
|
13216
|
+
return v1;
|
|
13217
|
+
}
|
|
13097
13218
|
/**
|
|
13098
13219
|
* Returns the maximum token supply.
|
|
13099
13220
|
* @returns {Felt}
|
|
@@ -13110,6 +13231,30 @@ class BasicFungibleFaucetComponent {
|
|
|
13110
13231
|
const ret = wasm.basicfungiblefaucetcomponent_symbol(this.__wbg_ptr);
|
|
13111
13232
|
return TokenSymbol.__wrap(ret);
|
|
13112
13233
|
}
|
|
13234
|
+
/**
|
|
13235
|
+
* Returns the human-readable token name.
|
|
13236
|
+
* @returns {string}
|
|
13237
|
+
*/
|
|
13238
|
+
tokenName() {
|
|
13239
|
+
let deferred1_0;
|
|
13240
|
+
let deferred1_1;
|
|
13241
|
+
try {
|
|
13242
|
+
const ret = wasm.basicfungiblefaucetcomponent_tokenName(this.__wbg_ptr);
|
|
13243
|
+
deferred1_0 = ret[0];
|
|
13244
|
+
deferred1_1 = ret[1];
|
|
13245
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
13246
|
+
} finally {
|
|
13247
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
13248
|
+
}
|
|
13249
|
+
}
|
|
13250
|
+
/**
|
|
13251
|
+
* Returns the current token supply (the amount minted so far).
|
|
13252
|
+
* @returns {Felt}
|
|
13253
|
+
*/
|
|
13254
|
+
tokenSupply() {
|
|
13255
|
+
const ret = wasm.basicfungiblefaucetcomponent_tokenSupply(this.__wbg_ptr);
|
|
13256
|
+
return Felt.__wrap(ret);
|
|
13257
|
+
}
|
|
13113
13258
|
}
|
|
13114
13259
|
if (Symbol.dispose) BasicFungibleFaucetComponent.prototype[Symbol.dispose] = BasicFungibleFaucetComponent.prototype.free;
|
|
13115
13260
|
|
|
@@ -13677,6 +13822,104 @@ class Endpoint {
|
|
|
13677
13822
|
}
|
|
13678
13823
|
if (Symbol.dispose) Endpoint.prototype[Symbol.dispose] = Endpoint.prototype.free;
|
|
13679
13824
|
|
|
13825
|
+
/**
|
|
13826
|
+
* A 20-byte Ethereum address, used as the destination of an `AggLayer` bridge-out (B2AGG) note.
|
|
13827
|
+
*
|
|
13828
|
+
* Construct one from a hex string with [`EthAddress::from_hex`] (the `0x` prefix is optional) or
|
|
13829
|
+
* from raw bytes with [`EthAddress::from_bytes`]. The canonical lowercase, `0x`-prefixed hex form
|
|
13830
|
+
* is available via [`EthAddress::to_hex`] (also exposed as `toString`).
|
|
13831
|
+
*/
|
|
13832
|
+
class EthAddress {
|
|
13833
|
+
static __wrap(ptr) {
|
|
13834
|
+
ptr = ptr >>> 0;
|
|
13835
|
+
const obj = Object.create(EthAddress.prototype);
|
|
13836
|
+
obj.__wbg_ptr = ptr;
|
|
13837
|
+
EthAddressFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
13838
|
+
return obj;
|
|
13839
|
+
}
|
|
13840
|
+
__destroy_into_raw() {
|
|
13841
|
+
const ptr = this.__wbg_ptr;
|
|
13842
|
+
this.__wbg_ptr = 0;
|
|
13843
|
+
EthAddressFinalization.unregister(this);
|
|
13844
|
+
return ptr;
|
|
13845
|
+
}
|
|
13846
|
+
free() {
|
|
13847
|
+
const ptr = this.__destroy_into_raw();
|
|
13848
|
+
wasm.__wbg_ethaddress_free(ptr, 0);
|
|
13849
|
+
}
|
|
13850
|
+
/**
|
|
13851
|
+
* Builds an Ethereum address from its raw 20-byte big-endian representation.
|
|
13852
|
+
*
|
|
13853
|
+
* Returns an error if the input is not exactly 20 bytes long.
|
|
13854
|
+
* @param {Uint8Array} bytes
|
|
13855
|
+
* @returns {EthAddress}
|
|
13856
|
+
*/
|
|
13857
|
+
static fromBytes(bytes) {
|
|
13858
|
+
const ret = wasm.ethaddress_fromBytes(bytes);
|
|
13859
|
+
if (ret[2]) {
|
|
13860
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
13861
|
+
}
|
|
13862
|
+
return EthAddress.__wrap(ret[0]);
|
|
13863
|
+
}
|
|
13864
|
+
/**
|
|
13865
|
+
* Builds an Ethereum address from a hex string (with or without the `0x` prefix).
|
|
13866
|
+
*
|
|
13867
|
+
* Returns an error if the string is not valid hex or does not encode exactly 20 bytes.
|
|
13868
|
+
* @param {string} hex
|
|
13869
|
+
* @returns {EthAddress}
|
|
13870
|
+
*/
|
|
13871
|
+
static fromHex(hex) {
|
|
13872
|
+
const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
13873
|
+
const len0 = WASM_VECTOR_LEN;
|
|
13874
|
+
const ret = wasm.ethaddress_fromHex(ptr0, len0);
|
|
13875
|
+
if (ret[2]) {
|
|
13876
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
13877
|
+
}
|
|
13878
|
+
return EthAddress.__wrap(ret[0]);
|
|
13879
|
+
}
|
|
13880
|
+
/**
|
|
13881
|
+
* Returns the raw 20-byte big-endian representation of the address.
|
|
13882
|
+
* @returns {Uint8Array}
|
|
13883
|
+
*/
|
|
13884
|
+
toBytes() {
|
|
13885
|
+
const ret = wasm.ethaddress_toBytes(this.__wbg_ptr);
|
|
13886
|
+
return ret;
|
|
13887
|
+
}
|
|
13888
|
+
/**
|
|
13889
|
+
* Returns the canonical lowercase, `0x`-prefixed hex representation of the address.
|
|
13890
|
+
* @returns {string}
|
|
13891
|
+
*/
|
|
13892
|
+
toHex() {
|
|
13893
|
+
let deferred1_0;
|
|
13894
|
+
let deferred1_1;
|
|
13895
|
+
try {
|
|
13896
|
+
const ret = wasm.ethaddress_toHex(this.__wbg_ptr);
|
|
13897
|
+
deferred1_0 = ret[0];
|
|
13898
|
+
deferred1_1 = ret[1];
|
|
13899
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
13900
|
+
} finally {
|
|
13901
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
13902
|
+
}
|
|
13903
|
+
}
|
|
13904
|
+
/**
|
|
13905
|
+
* Returns the canonical lowercase, `0x`-prefixed hex representation of the address.
|
|
13906
|
+
* @returns {string}
|
|
13907
|
+
*/
|
|
13908
|
+
toString() {
|
|
13909
|
+
let deferred1_0;
|
|
13910
|
+
let deferred1_1;
|
|
13911
|
+
try {
|
|
13912
|
+
const ret = wasm.ethaddress_toString(this.__wbg_ptr);
|
|
13913
|
+
deferred1_0 = ret[0];
|
|
13914
|
+
deferred1_1 = ret[1];
|
|
13915
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
13916
|
+
} finally {
|
|
13917
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
13918
|
+
}
|
|
13919
|
+
}
|
|
13920
|
+
}
|
|
13921
|
+
if (Symbol.dispose) EthAddress.prototype[Symbol.dispose] = EthAddress.prototype.free;
|
|
13922
|
+
|
|
13680
13923
|
/**
|
|
13681
13924
|
* Describes the result of executing a transaction program for the Miden protocol.
|
|
13682
13925
|
*
|
|
@@ -16244,6 +16487,32 @@ class Note {
|
|
|
16244
16487
|
const ret = wasm.note_commitment(this.__wbg_ptr);
|
|
16245
16488
|
return Word.__wrap(ret);
|
|
16246
16489
|
}
|
|
16490
|
+
/**
|
|
16491
|
+
* Builds a B2AGG (Bridge-to-AggLayer) note that bridges the given assets out to another
|
|
16492
|
+
* network via the `AggLayer`.
|
|
16493
|
+
*
|
|
16494
|
+
* The note is always public and is consumed by `bridge_account`, which burns the assets so
|
|
16495
|
+
* they can be claimed on the destination network at `destination_address` (an Ethereum
|
|
16496
|
+
* address on the AggLayer-assigned `destination_network`). The assets must be fungible assets
|
|
16497
|
+
* issued by a network faucet.
|
|
16498
|
+
* @param {AccountId} sender
|
|
16499
|
+
* @param {AccountId} bridge_account
|
|
16500
|
+
* @param {NoteAssets} assets
|
|
16501
|
+
* @param {number} destination_network
|
|
16502
|
+
* @param {EthAddress} destination_address
|
|
16503
|
+
* @returns {Note}
|
|
16504
|
+
*/
|
|
16505
|
+
static createB2AggNote(sender, bridge_account, assets, destination_network, destination_address) {
|
|
16506
|
+
_assertClass(sender, AccountId);
|
|
16507
|
+
_assertClass(bridge_account, AccountId);
|
|
16508
|
+
_assertClass(assets, NoteAssets);
|
|
16509
|
+
_assertClass(destination_address, EthAddress);
|
|
16510
|
+
const ret = wasm.note_createB2AggNote(sender.__wbg_ptr, bridge_account.__wbg_ptr, assets.__wbg_ptr, destination_network, destination_address.__wbg_ptr);
|
|
16511
|
+
if (ret[2]) {
|
|
16512
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
16513
|
+
}
|
|
16514
|
+
return Note.__wrap(ret[0]);
|
|
16515
|
+
}
|
|
16247
16516
|
/**
|
|
16248
16517
|
* Builds a P2IDE note that can be reclaimed or timelocked based on block heights.
|
|
16249
16518
|
* @param {AccountId} sender
|
|
@@ -22987,6 +23256,30 @@ class WebClient {
|
|
|
22987
23256
|
const ret = wasm.webclient_newAccountWithSecretKey(this.__wbg_ptr, account.__wbg_ptr, secret_key.__wbg_ptr);
|
|
22988
23257
|
return ret;
|
|
22989
23258
|
}
|
|
23259
|
+
/**
|
|
23260
|
+
* Builds a transaction request that bridges a fungible asset out to another network via the
|
|
23261
|
+
* `AggLayer`.
|
|
23262
|
+
*
|
|
23263
|
+
* The request emits a single public B2AGG (Bridge-to-AggLayer) note holding `amount` units of
|
|
23264
|
+
* the `faucet_id` asset. The note is consumed by `bridge_account_id`, which burns the asset so
|
|
23265
|
+
* it can be claimed at `destination_address` (an Ethereum address) on the AggLayer-assigned
|
|
23266
|
+
* `destination_network`.
|
|
23267
|
+
* @param {AccountId} sender_account_id
|
|
23268
|
+
* @param {AccountId} bridge_account_id
|
|
23269
|
+
* @param {AccountId} faucet_id
|
|
23270
|
+
* @param {bigint} amount
|
|
23271
|
+
* @param {number} destination_network
|
|
23272
|
+
* @param {EthAddress} destination_address
|
|
23273
|
+
* @returns {Promise<TransactionRequest>}
|
|
23274
|
+
*/
|
|
23275
|
+
newB2AggTransactionRequest(sender_account_id, bridge_account_id, faucet_id, amount, destination_network, destination_address) {
|
|
23276
|
+
_assertClass(sender_account_id, AccountId);
|
|
23277
|
+
_assertClass(bridge_account_id, AccountId);
|
|
23278
|
+
_assertClass(faucet_id, AccountId);
|
|
23279
|
+
_assertClass(destination_address, EthAddress);
|
|
23280
|
+
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);
|
|
23281
|
+
return ret;
|
|
23282
|
+
}
|
|
22990
23283
|
/**
|
|
22991
23284
|
* @param {Note[]} list_of_notes
|
|
22992
23285
|
* @returns {TransactionRequest}
|
|
@@ -23280,6 +23573,25 @@ class WebClient {
|
|
|
23280
23573
|
const ret = wasm.webclient_submitNewTransaction(this.__wbg_ptr, account_id.__wbg_ptr, transaction_request.__wbg_ptr);
|
|
23281
23574
|
return ret;
|
|
23282
23575
|
}
|
|
23576
|
+
/**
|
|
23577
|
+
* Executes a batch of transactions against the specified account, proves them individually
|
|
23578
|
+
* and as a batch, submits the batch to the network, and atomically applies the per-tx
|
|
23579
|
+
* updates to the local store. Returns the block number the batch was accepted into.
|
|
23580
|
+
*
|
|
23581
|
+
* All transactions must target the same local account — the `account_id` argument.
|
|
23582
|
+
* Each element of `transaction_requests` is the serialized-bytes form of a
|
|
23583
|
+
* `TransactionRequest` (obtained via `tx_request.serialize()`)
|
|
23584
|
+
* @param {AccountId} account_id
|
|
23585
|
+
* @param {Uint8Array[]} transaction_requests
|
|
23586
|
+
* @returns {Promise<number>}
|
|
23587
|
+
*/
|
|
23588
|
+
submitNewTransactionBatch(account_id, transaction_requests) {
|
|
23589
|
+
_assertClass(account_id, AccountId);
|
|
23590
|
+
const ptr0 = passArrayJsValueToWasm0(transaction_requests, wasm.__wbindgen_malloc);
|
|
23591
|
+
const len0 = WASM_VECTOR_LEN;
|
|
23592
|
+
const ret = wasm.webclient_submitNewTransactionBatch(this.__wbg_ptr, account_id.__wbg_ptr, ptr0, len0);
|
|
23593
|
+
return ret;
|
|
23594
|
+
}
|
|
23283
23595
|
/**
|
|
23284
23596
|
* Executes a transaction specified by the request against the specified account, proves it
|
|
23285
23597
|
* with the user provided prover, submits it to the network, and updates the local database.
|
|
@@ -23899,7 +24211,7 @@ function __wbg_get_imports(memory) {
|
|
|
23899
24211
|
const ret = AccountStorage.__wrap(arg0);
|
|
23900
24212
|
return ret;
|
|
23901
24213
|
},
|
|
23902
|
-
|
|
24214
|
+
__wbg_addNoteTag_c9e7d0b19a1ff17c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
23903
24215
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
23904
24216
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
23905
24217
|
let v1;
|
|
@@ -23927,21 +24239,25 @@ function __wbg_get_imports(memory) {
|
|
|
23927
24239
|
__wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
23928
24240
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
23929
24241
|
}, arguments); },
|
|
23930
|
-
|
|
24242
|
+
__wbg_applyFullAccountState_01b8235561567534: function(arg0, arg1, arg2) {
|
|
23931
24243
|
const ret = applyFullAccountState(getStringFromWasm0(arg0, arg1), JsAccountUpdate.__wrap(arg2));
|
|
23932
24244
|
return ret;
|
|
23933
24245
|
},
|
|
23934
|
-
|
|
24246
|
+
__wbg_applySettingsMutations_c70b3f973d7125bf: function(arg0, arg1, arg2, arg3) {
|
|
23935
24247
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
23936
24248
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
23937
24249
|
const ret = applySettingsMutations(getStringFromWasm0(arg0, arg1), v0);
|
|
23938
24250
|
return ret;
|
|
23939
24251
|
},
|
|
23940
|
-
|
|
24252
|
+
__wbg_applyStateSync_2aab7a3f6871f365: function(arg0, arg1, arg2) {
|
|
23941
24253
|
const ret = applyStateSync(getStringFromWasm0(arg0, arg1), JsStateSyncUpdate.__wrap(arg2));
|
|
23942
24254
|
return ret;
|
|
23943
24255
|
},
|
|
23944
|
-
|
|
24256
|
+
__wbg_applyTransactionBatch_ff6324c1b699e0bc: function(arg0, arg1, arg2) {
|
|
24257
|
+
const ret = applyTransactionBatch(getStringFromWasm0(arg0, arg1), arg2);
|
|
24258
|
+
return ret;
|
|
24259
|
+
},
|
|
24260
|
+
__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) {
|
|
23945
24261
|
let deferred0_0;
|
|
23946
24262
|
let deferred0_1;
|
|
23947
24263
|
let deferred1_0;
|
|
@@ -24092,7 +24408,7 @@ function __wbg_get_imports(memory) {
|
|
|
24092
24408
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24093
24409
|
}
|
|
24094
24410
|
},
|
|
24095
|
-
|
|
24411
|
+
__wbg_exportStore_a3251a108aa7b844: function(arg0, arg1) {
|
|
24096
24412
|
const ret = exportStore(getStringFromWasm0(arg0, arg1));
|
|
24097
24413
|
return ret;
|
|
24098
24414
|
},
|
|
@@ -24124,7 +24440,7 @@ function __wbg_get_imports(memory) {
|
|
|
24124
24440
|
const ret = FetchedNote.__wrap(arg0);
|
|
24125
24441
|
return ret;
|
|
24126
24442
|
},
|
|
24127
|
-
|
|
24443
|
+
__wbg_forceImportStore_cefb1d26c504a17a: function(arg0, arg1, arg2) {
|
|
24128
24444
|
const ret = forceImportStore(getStringFromWasm0(arg0, arg1), arg2);
|
|
24129
24445
|
return ret;
|
|
24130
24446
|
},
|
|
@@ -24132,6 +24448,10 @@ function __wbg_get_imports(memory) {
|
|
|
24132
24448
|
const ret = ForeignAccount.__unwrap(arg0);
|
|
24133
24449
|
return ret;
|
|
24134
24450
|
},
|
|
24451
|
+
__wbg_from_bddd64e7d5ff6941: function(arg0) {
|
|
24452
|
+
const ret = Array.from(arg0);
|
|
24453
|
+
return ret;
|
|
24454
|
+
},
|
|
24135
24455
|
__wbg_fungibleasset_new: function(arg0) {
|
|
24136
24456
|
const ret = FungibleAsset.__wrap(arg0);
|
|
24137
24457
|
return ret;
|
|
@@ -24144,7 +24464,7 @@ function __wbg_get_imports(memory) {
|
|
|
24144
24464
|
const ret = FungibleAssetDeltaItem.__wrap(arg0);
|
|
24145
24465
|
return ret;
|
|
24146
24466
|
},
|
|
24147
|
-
|
|
24467
|
+
__wbg_getAccountAddresses_6bda8d40b7d06085: function(arg0, arg1, arg2, arg3) {
|
|
24148
24468
|
let deferred0_0;
|
|
24149
24469
|
let deferred0_1;
|
|
24150
24470
|
try {
|
|
@@ -24156,7 +24476,7 @@ function __wbg_get_imports(memory) {
|
|
|
24156
24476
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24157
24477
|
}
|
|
24158
24478
|
},
|
|
24159
|
-
|
|
24479
|
+
__wbg_getAccountAuthByPubKeyCommitment_3e272c0653b69f25: function(arg0, arg1, arg2, arg3) {
|
|
24160
24480
|
let deferred0_0;
|
|
24161
24481
|
let deferred0_1;
|
|
24162
24482
|
try {
|
|
@@ -24168,7 +24488,7 @@ function __wbg_get_imports(memory) {
|
|
|
24168
24488
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24169
24489
|
}
|
|
24170
24490
|
},
|
|
24171
|
-
|
|
24491
|
+
__wbg_getAccountCode_66c23e814ccb0b75: function(arg0, arg1, arg2, arg3) {
|
|
24172
24492
|
let deferred0_0;
|
|
24173
24493
|
let deferred0_1;
|
|
24174
24494
|
try {
|
|
@@ -24180,7 +24500,7 @@ function __wbg_get_imports(memory) {
|
|
|
24180
24500
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24181
24501
|
}
|
|
24182
24502
|
},
|
|
24183
|
-
|
|
24503
|
+
__wbg_getAccountHeaderByCommitment_e77460136385053d: function(arg0, arg1, arg2, arg3) {
|
|
24184
24504
|
let deferred0_0;
|
|
24185
24505
|
let deferred0_1;
|
|
24186
24506
|
try {
|
|
@@ -24192,7 +24512,7 @@ function __wbg_get_imports(memory) {
|
|
|
24192
24512
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24193
24513
|
}
|
|
24194
24514
|
},
|
|
24195
|
-
|
|
24515
|
+
__wbg_getAccountHeader_1087552d17a99751: function(arg0, arg1, arg2, arg3) {
|
|
24196
24516
|
let deferred0_0;
|
|
24197
24517
|
let deferred0_1;
|
|
24198
24518
|
try {
|
|
@@ -24204,7 +24524,7 @@ function __wbg_get_imports(memory) {
|
|
|
24204
24524
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24205
24525
|
}
|
|
24206
24526
|
},
|
|
24207
|
-
|
|
24527
|
+
__wbg_getAccountIdByKeyCommitment_7e1292d010257f58: function(arg0, arg1, arg2, arg3) {
|
|
24208
24528
|
let deferred0_0;
|
|
24209
24529
|
let deferred0_1;
|
|
24210
24530
|
try {
|
|
@@ -24216,11 +24536,11 @@ function __wbg_get_imports(memory) {
|
|
|
24216
24536
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24217
24537
|
}
|
|
24218
24538
|
},
|
|
24219
|
-
|
|
24539
|
+
__wbg_getAccountIds_aa202a56a3aa2095: function(arg0, arg1) {
|
|
24220
24540
|
const ret = getAccountIds(getStringFromWasm0(arg0, arg1));
|
|
24221
24541
|
return ret;
|
|
24222
24542
|
},
|
|
24223
|
-
|
|
24543
|
+
__wbg_getAccountStorageMaps_83fcada97acbc4d3: function(arg0, arg1, arg2, arg3) {
|
|
24224
24544
|
let deferred0_0;
|
|
24225
24545
|
let deferred0_1;
|
|
24226
24546
|
try {
|
|
@@ -24232,7 +24552,7 @@ function __wbg_get_imports(memory) {
|
|
|
24232
24552
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24233
24553
|
}
|
|
24234
24554
|
},
|
|
24235
|
-
|
|
24555
|
+
__wbg_getAccountStorage_7da5087b3d6719c9: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24236
24556
|
let deferred0_0;
|
|
24237
24557
|
let deferred0_1;
|
|
24238
24558
|
try {
|
|
@@ -24246,7 +24566,7 @@ function __wbg_get_imports(memory) {
|
|
|
24246
24566
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24247
24567
|
}
|
|
24248
24568
|
},
|
|
24249
|
-
|
|
24569
|
+
__wbg_getAccountVaultAssets_a7f15cd5706a07f0: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24250
24570
|
let deferred0_0;
|
|
24251
24571
|
let deferred0_1;
|
|
24252
24572
|
try {
|
|
@@ -24260,27 +24580,27 @@ function __wbg_get_imports(memory) {
|
|
|
24260
24580
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24261
24581
|
}
|
|
24262
24582
|
},
|
|
24263
|
-
|
|
24583
|
+
__wbg_getAllAccountHeaders_20b2442034a1d33a: function(arg0, arg1) {
|
|
24264
24584
|
const ret = getAllAccountHeaders(getStringFromWasm0(arg0, arg1));
|
|
24265
24585
|
return ret;
|
|
24266
24586
|
},
|
|
24267
|
-
|
|
24587
|
+
__wbg_getBlockHeaders_14c17869ac14ff20: function(arg0, arg1, arg2, arg3) {
|
|
24268
24588
|
var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
|
|
24269
24589
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24270
24590
|
const ret = getBlockHeaders(getStringFromWasm0(arg0, arg1), v0);
|
|
24271
24591
|
return ret;
|
|
24272
24592
|
},
|
|
24273
|
-
|
|
24593
|
+
__wbg_getCurrentBlockchainPeaks_f25ec9bf8fbcfb01: function(arg0, arg1) {
|
|
24274
24594
|
const ret = getCurrentBlockchainPeaks(getStringFromWasm0(arg0, arg1));
|
|
24275
24595
|
return ret;
|
|
24276
24596
|
},
|
|
24277
|
-
|
|
24597
|
+
__wbg_getForeignAccountCode_aa888a2e4d67c198: function(arg0, arg1, arg2, arg3) {
|
|
24278
24598
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24279
24599
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24280
24600
|
const ret = getForeignAccountCode(getStringFromWasm0(arg0, arg1), v0);
|
|
24281
24601
|
return ret;
|
|
24282
24602
|
},
|
|
24283
|
-
|
|
24603
|
+
__wbg_getInputNoteByOffset_28a7b0db364e3661: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
24284
24604
|
let deferred1_0;
|
|
24285
24605
|
let deferred1_1;
|
|
24286
24606
|
try {
|
|
@@ -24294,31 +24614,31 @@ function __wbg_get_imports(memory) {
|
|
|
24294
24614
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
24295
24615
|
}
|
|
24296
24616
|
},
|
|
24297
|
-
|
|
24617
|
+
__wbg_getInputNotesFromDetailsCommitments_cd9aae9ebea29ae8: function(arg0, arg1, arg2, arg3) {
|
|
24298
24618
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24299
24619
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24300
24620
|
const ret = getInputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
|
|
24301
24621
|
return ret;
|
|
24302
24622
|
},
|
|
24303
|
-
|
|
24623
|
+
__wbg_getInputNotesFromIds_2ac71ad2b96eacdc: function(arg0, arg1, arg2, arg3) {
|
|
24304
24624
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24305
24625
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24306
24626
|
const ret = getInputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
|
|
24307
24627
|
return ret;
|
|
24308
24628
|
},
|
|
24309
|
-
|
|
24629
|
+
__wbg_getInputNotesFromNullifiers_784b00260b622e0a: function(arg0, arg1, arg2, arg3) {
|
|
24310
24630
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24311
24631
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24312
24632
|
const ret = getInputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
|
|
24313
24633
|
return ret;
|
|
24314
24634
|
},
|
|
24315
|
-
|
|
24635
|
+
__wbg_getInputNotes_554b394a036cce35: function(arg0, arg1, arg2, arg3) {
|
|
24316
24636
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
24317
24637
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
24318
24638
|
const ret = getInputNotes(getStringFromWasm0(arg0, arg1), v0);
|
|
24319
24639
|
return ret;
|
|
24320
24640
|
},
|
|
24321
|
-
|
|
24641
|
+
__wbg_getKeyCommitmentsByAccountId_dc8ddc1944776f77: function(arg0, arg1, arg2, arg3) {
|
|
24322
24642
|
let deferred0_0;
|
|
24323
24643
|
let deferred0_1;
|
|
24324
24644
|
try {
|
|
@@ -24330,7 +24650,7 @@ function __wbg_get_imports(memory) {
|
|
|
24330
24650
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24331
24651
|
}
|
|
24332
24652
|
},
|
|
24333
|
-
|
|
24653
|
+
__wbg_getNoteScript_fb7f3a8b5693efd3: function(arg0, arg1, arg2, arg3) {
|
|
24334
24654
|
let deferred0_0;
|
|
24335
24655
|
let deferred0_1;
|
|
24336
24656
|
try {
|
|
@@ -24342,39 +24662,39 @@ function __wbg_get_imports(memory) {
|
|
|
24342
24662
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24343
24663
|
}
|
|
24344
24664
|
},
|
|
24345
|
-
|
|
24665
|
+
__wbg_getNoteTags_e58900169fc93b17: function(arg0, arg1) {
|
|
24346
24666
|
const ret = getNoteTags(getStringFromWasm0(arg0, arg1));
|
|
24347
24667
|
return ret;
|
|
24348
24668
|
},
|
|
24349
|
-
|
|
24669
|
+
__wbg_getOutputNotesFromDetailsCommitments_b67eef4a469d243f: function(arg0, arg1, arg2, arg3) {
|
|
24350
24670
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24351
24671
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24352
24672
|
const ret = getOutputNotesFromDetailsCommitments(getStringFromWasm0(arg0, arg1), v0);
|
|
24353
24673
|
return ret;
|
|
24354
24674
|
},
|
|
24355
|
-
|
|
24675
|
+
__wbg_getOutputNotesFromIds_3e2e083d5e6307b4: function(arg0, arg1, arg2, arg3) {
|
|
24356
24676
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24357
24677
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24358
24678
|
const ret = getOutputNotesFromIds(getStringFromWasm0(arg0, arg1), v0);
|
|
24359
24679
|
return ret;
|
|
24360
24680
|
},
|
|
24361
|
-
|
|
24681
|
+
__wbg_getOutputNotesFromNullifiers_f80d6022e4d273ae: function(arg0, arg1, arg2, arg3) {
|
|
24362
24682
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24363
24683
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24364
24684
|
const ret = getOutputNotesFromNullifiers(getStringFromWasm0(arg0, arg1), v0);
|
|
24365
24685
|
return ret;
|
|
24366
24686
|
},
|
|
24367
|
-
|
|
24687
|
+
__wbg_getOutputNotes_edbf80cf7cd0b908: function(arg0, arg1, arg2, arg3) {
|
|
24368
24688
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
24369
24689
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
24370
24690
|
const ret = getOutputNotes(getStringFromWasm0(arg0, arg1), v0);
|
|
24371
24691
|
return ret;
|
|
24372
24692
|
},
|
|
24373
|
-
|
|
24693
|
+
__wbg_getPartialBlockchainNodesAll_c415a12245c31d24: function(arg0, arg1) {
|
|
24374
24694
|
const ret = getPartialBlockchainNodesAll(getStringFromWasm0(arg0, arg1));
|
|
24375
24695
|
return ret;
|
|
24376
24696
|
},
|
|
24377
|
-
|
|
24697
|
+
__wbg_getPartialBlockchainNodesUpToInOrderIndex_13c0f9e58345c3dd: function(arg0, arg1, arg2, arg3) {
|
|
24378
24698
|
let deferred0_0;
|
|
24379
24699
|
let deferred0_1;
|
|
24380
24700
|
try {
|
|
@@ -24386,7 +24706,7 @@ function __wbg_get_imports(memory) {
|
|
|
24386
24706
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24387
24707
|
}
|
|
24388
24708
|
},
|
|
24389
|
-
|
|
24709
|
+
__wbg_getPartialBlockchainNodes_65b845ff2a25659c: function(arg0, arg1, arg2, arg3) {
|
|
24390
24710
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24391
24711
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24392
24712
|
const ret = getPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0);
|
|
@@ -24399,7 +24719,7 @@ function __wbg_get_imports(memory) {
|
|
|
24399
24719
|
const ret = arg0.getReader();
|
|
24400
24720
|
return ret;
|
|
24401
24721
|
}, arguments); },
|
|
24402
|
-
|
|
24722
|
+
__wbg_getSetting_652a441d00c2ff02: function(arg0, arg1, arg2, arg3) {
|
|
24403
24723
|
let deferred0_0;
|
|
24404
24724
|
let deferred0_1;
|
|
24405
24725
|
try {
|
|
@@ -24411,7 +24731,7 @@ function __wbg_get_imports(memory) {
|
|
|
24411
24731
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24412
24732
|
}
|
|
24413
24733
|
},
|
|
24414
|
-
|
|
24734
|
+
__wbg_getSyncHeight_47274f9a308f2ea0: function(arg0, arg1) {
|
|
24415
24735
|
const ret = getSyncHeight(getStringFromWasm0(arg0, arg1));
|
|
24416
24736
|
return ret;
|
|
24417
24737
|
},
|
|
@@ -24419,15 +24739,15 @@ function __wbg_get_imports(memory) {
|
|
|
24419
24739
|
const ret = arg0.getTime();
|
|
24420
24740
|
return ret;
|
|
24421
24741
|
},
|
|
24422
|
-
|
|
24742
|
+
__wbg_getTrackedBlockHeaderNumbers_7f699d8776e5342e: function(arg0, arg1) {
|
|
24423
24743
|
const ret = getTrackedBlockHeaderNumbers(getStringFromWasm0(arg0, arg1));
|
|
24424
24744
|
return ret;
|
|
24425
24745
|
},
|
|
24426
|
-
|
|
24746
|
+
__wbg_getTrackedBlockHeaders_9257cc5c828b3847: function(arg0, arg1) {
|
|
24427
24747
|
const ret = getTrackedBlockHeaders(getStringFromWasm0(arg0, arg1));
|
|
24428
24748
|
return ret;
|
|
24429
24749
|
},
|
|
24430
|
-
|
|
24750
|
+
__wbg_getTransactions_042b4178983dd070: function(arg0, arg1, arg2, arg3) {
|
|
24431
24751
|
let deferred0_0;
|
|
24432
24752
|
let deferred0_1;
|
|
24433
24753
|
try {
|
|
@@ -24439,7 +24759,7 @@ function __wbg_get_imports(memory) {
|
|
|
24439
24759
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24440
24760
|
}
|
|
24441
24761
|
},
|
|
24442
|
-
|
|
24762
|
+
__wbg_getUnspentInputNoteNullifiers_af62c37e3bf9a116: function(arg0, arg1) {
|
|
24443
24763
|
const ret = getUnspentInputNoteNullifiers(getStringFromWasm0(arg0, arg1));
|
|
24444
24764
|
return ret;
|
|
24445
24765
|
},
|
|
@@ -24483,7 +24803,7 @@ function __wbg_get_imports(memory) {
|
|
|
24483
24803
|
const ret = InputNoteRecord.__wrap(arg0);
|
|
24484
24804
|
return ret;
|
|
24485
24805
|
},
|
|
24486
|
-
|
|
24806
|
+
__wbg_insertAccountAddress_9750679ae673f231: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24487
24807
|
let deferred0_0;
|
|
24488
24808
|
let deferred0_1;
|
|
24489
24809
|
try {
|
|
@@ -24497,7 +24817,7 @@ function __wbg_get_imports(memory) {
|
|
|
24497
24817
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24498
24818
|
}
|
|
24499
24819
|
},
|
|
24500
|
-
|
|
24820
|
+
__wbg_insertAccountAuth_4468784a0311c9e3: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24501
24821
|
let deferred0_0;
|
|
24502
24822
|
let deferred0_1;
|
|
24503
24823
|
let deferred1_0;
|
|
@@ -24514,7 +24834,7 @@ function __wbg_get_imports(memory) {
|
|
|
24514
24834
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
24515
24835
|
}
|
|
24516
24836
|
},
|
|
24517
|
-
|
|
24837
|
+
__wbg_insertAccountKeyMapping_1018a4c4e3136ea9: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24518
24838
|
let deferred0_0;
|
|
24519
24839
|
let deferred0_1;
|
|
24520
24840
|
let deferred1_0;
|
|
@@ -24531,13 +24851,13 @@ function __wbg_get_imports(memory) {
|
|
|
24531
24851
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
24532
24852
|
}
|
|
24533
24853
|
},
|
|
24534
|
-
|
|
24854
|
+
__wbg_insertBlockHeader_5f9db8fbf493cd05: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24535
24855
|
var v0 = getArrayU8FromWasm0(arg3, arg4).slice();
|
|
24536
24856
|
wasm.__wbindgen_free(arg3, arg4 * 1, 1);
|
|
24537
24857
|
const ret = insertBlockHeader(getStringFromWasm0(arg0, arg1), arg2 >>> 0, v0, arg5 !== 0);
|
|
24538
24858
|
return ret;
|
|
24539
24859
|
},
|
|
24540
|
-
|
|
24860
|
+
__wbg_insertPartialBlockchainNodes_3bac74a5a63676ec: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24541
24861
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
24542
24862
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24543
24863
|
var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
|
|
@@ -24545,7 +24865,7 @@ function __wbg_get_imports(memory) {
|
|
|
24545
24865
|
const ret = insertPartialBlockchainNodes(getStringFromWasm0(arg0, arg1), v0, v1);
|
|
24546
24866
|
return ret;
|
|
24547
24867
|
},
|
|
24548
|
-
|
|
24868
|
+
__wbg_insertSetting_3f9497eda301dd4d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24549
24869
|
let deferred0_0;
|
|
24550
24870
|
let deferred0_1;
|
|
24551
24871
|
try {
|
|
@@ -24559,7 +24879,7 @@ function __wbg_get_imports(memory) {
|
|
|
24559
24879
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24560
24880
|
}
|
|
24561
24881
|
},
|
|
24562
|
-
|
|
24882
|
+
__wbg_insertTransactionScript_d77dd4730b830b16: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24563
24883
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
24564
24884
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
24565
24885
|
let v1;
|
|
@@ -24666,11 +24986,11 @@ function __wbg_get_imports(memory) {
|
|
|
24666
24986
|
const ret = arg0.length;
|
|
24667
24987
|
return ret;
|
|
24668
24988
|
},
|
|
24669
|
-
|
|
24989
|
+
__wbg_listSettingKeys_e6be00ae9be0f390: function(arg0, arg1) {
|
|
24670
24990
|
const ret = listSettingKeys(getStringFromWasm0(arg0, arg1));
|
|
24671
24991
|
return ret;
|
|
24672
24992
|
},
|
|
24673
|
-
|
|
24993
|
+
__wbg_lockAccount_59fe96d1d24657e7: function(arg0, arg1, arg2, arg3) {
|
|
24674
24994
|
let deferred0_0;
|
|
24675
24995
|
let deferred0_1;
|
|
24676
24996
|
try {
|
|
@@ -24885,7 +25205,7 @@ function __wbg_get_imports(memory) {
|
|
|
24885
25205
|
const ret = Array.of(arg0, arg1, arg2);
|
|
24886
25206
|
return ret;
|
|
24887
25207
|
},
|
|
24888
|
-
|
|
25208
|
+
__wbg_openDatabase_d434e531abab67a4: function(arg0, arg1, arg2, arg3) {
|
|
24889
25209
|
const ret = openDatabase(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
24890
25210
|
return ret;
|
|
24891
25211
|
},
|
|
@@ -24919,7 +25239,7 @@ function __wbg_get_imports(memory) {
|
|
|
24919
25239
|
const ret = ProvenTransaction.__wrap(arg0);
|
|
24920
25240
|
return ret;
|
|
24921
25241
|
},
|
|
24922
|
-
|
|
25242
|
+
__wbg_pruneAccountHistory_601cf8b7deb90730: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24923
25243
|
let deferred0_0;
|
|
24924
25244
|
let deferred0_1;
|
|
24925
25245
|
let deferred1_0;
|
|
@@ -24936,7 +25256,7 @@ function __wbg_get_imports(memory) {
|
|
|
24936
25256
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
24937
25257
|
}
|
|
24938
25258
|
},
|
|
24939
|
-
|
|
25259
|
+
__wbg_pruneIrrelevantBlocks_6dfe3f86e818875b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
24940
25260
|
var v0 = getArrayU32FromWasm0(arg2, arg3).slice();
|
|
24941
25261
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
24942
25262
|
var v1 = getArrayJsValueFromWasm0(arg4, arg5).slice();
|
|
@@ -24948,6 +25268,10 @@ function __wbg_get_imports(memory) {
|
|
|
24948
25268
|
const ret = PswapLineageRecord.__wrap(arg0);
|
|
24949
25269
|
return ret;
|
|
24950
25270
|
},
|
|
25271
|
+
__wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
|
|
25272
|
+
const ret = arg0.push(arg1);
|
|
25273
|
+
return ret;
|
|
25274
|
+
},
|
|
24951
25275
|
__wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
|
|
24952
25276
|
const ret = arg0.queueMicrotask;
|
|
24953
25277
|
return ret;
|
|
@@ -24962,13 +25286,13 @@ function __wbg_get_imports(memory) {
|
|
|
24962
25286
|
__wbg_releaseLock_aa5846c2494b3032: function(arg0) {
|
|
24963
25287
|
arg0.releaseLock();
|
|
24964
25288
|
},
|
|
24965
|
-
|
|
25289
|
+
__wbg_removeAccountAddress_4f2f68a69c6824ba: function(arg0, arg1, arg2, arg3) {
|
|
24966
25290
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
24967
25291
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
24968
25292
|
const ret = removeAccountAddress(getStringFromWasm0(arg0, arg1), v0);
|
|
24969
25293
|
return ret;
|
|
24970
25294
|
},
|
|
24971
|
-
|
|
25295
|
+
__wbg_removeAccountAuth_270323d61dcc5a1c: function(arg0, arg1, arg2, arg3) {
|
|
24972
25296
|
let deferred0_0;
|
|
24973
25297
|
let deferred0_1;
|
|
24974
25298
|
try {
|
|
@@ -24980,7 +25304,7 @@ function __wbg_get_imports(memory) {
|
|
|
24980
25304
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24981
25305
|
}
|
|
24982
25306
|
},
|
|
24983
|
-
|
|
25307
|
+
__wbg_removeAllMappingsForKey_0cd82b003ec78640: function(arg0, arg1, arg2, arg3) {
|
|
24984
25308
|
let deferred0_0;
|
|
24985
25309
|
let deferred0_1;
|
|
24986
25310
|
try {
|
|
@@ -24992,7 +25316,7 @@ function __wbg_get_imports(memory) {
|
|
|
24992
25316
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
24993
25317
|
}
|
|
24994
25318
|
},
|
|
24995
|
-
|
|
25319
|
+
__wbg_removeNoteTag_99bf10aa95385cdd: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
24996
25320
|
var v0 = getArrayU8FromWasm0(arg2, arg3).slice();
|
|
24997
25321
|
wasm.__wbindgen_free(arg2, arg3 * 1, 1);
|
|
24998
25322
|
let v1;
|
|
@@ -25013,7 +25337,7 @@ function __wbg_get_imports(memory) {
|
|
|
25013
25337
|
const ret = removeNoteTag(getStringFromWasm0(arg0, arg1), v0, v1, v2, v3);
|
|
25014
25338
|
return ret;
|
|
25015
25339
|
},
|
|
25016
|
-
|
|
25340
|
+
__wbg_removeSetting_435793c919df62ea: function(arg0, arg1, arg2, arg3) {
|
|
25017
25341
|
let deferred0_0;
|
|
25018
25342
|
let deferred0_1;
|
|
25019
25343
|
try {
|
|
@@ -25064,6 +25388,9 @@ function __wbg_get_imports(memory) {
|
|
|
25064
25388
|
const ret = setTimeout(arg0, arg1);
|
|
25065
25389
|
return ret;
|
|
25066
25390
|
}, arguments); },
|
|
25391
|
+
__wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
|
|
25392
|
+
arg0[arg1] = arg2;
|
|
25393
|
+
},
|
|
25067
25394
|
__wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
|
|
25068
25395
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
25069
25396
|
return ret;
|
|
@@ -25220,13 +25547,13 @@ function __wbg_get_imports(memory) {
|
|
|
25220
25547
|
const ret = TransactionSummary.__wrap(arg0);
|
|
25221
25548
|
return ret;
|
|
25222
25549
|
},
|
|
25223
|
-
|
|
25550
|
+
__wbg_undoAccountStates_bc8f443bd3fee100: function(arg0, arg1, arg2, arg3) {
|
|
25224
25551
|
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
|
|
25225
25552
|
wasm.__wbindgen_free(arg2, arg3 * 4, 4);
|
|
25226
25553
|
const ret = undoAccountStates(getStringFromWasm0(arg0, arg1), v0);
|
|
25227
25554
|
return ret;
|
|
25228
25555
|
},
|
|
25229
|
-
|
|
25556
|
+
__wbg_upsertAccountCode_2988cd68796aacef: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25230
25557
|
let deferred0_0;
|
|
25231
25558
|
let deferred0_1;
|
|
25232
25559
|
try {
|
|
@@ -25240,7 +25567,7 @@ function __wbg_get_imports(memory) {
|
|
|
25240
25567
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25241
25568
|
}
|
|
25242
25569
|
},
|
|
25243
|
-
|
|
25570
|
+
__wbg_upsertAccountRecord_124cfe8dc72ff46f: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) {
|
|
25244
25571
|
let deferred0_0;
|
|
25245
25572
|
let deferred0_1;
|
|
25246
25573
|
let deferred1_0;
|
|
@@ -25282,7 +25609,7 @@ function __wbg_get_imports(memory) {
|
|
|
25282
25609
|
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
25283
25610
|
}
|
|
25284
25611
|
},
|
|
25285
|
-
|
|
25612
|
+
__wbg_upsertAccountStorage_b7e55e69d8c649ff: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25286
25613
|
let deferred0_0;
|
|
25287
25614
|
let deferred0_1;
|
|
25288
25615
|
try {
|
|
@@ -25296,7 +25623,7 @@ function __wbg_get_imports(memory) {
|
|
|
25296
25623
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25297
25624
|
}
|
|
25298
25625
|
},
|
|
25299
|
-
|
|
25626
|
+
__wbg_upsertForeignAccountCode_321f8c2b6560540f: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
25300
25627
|
let deferred0_0;
|
|
25301
25628
|
let deferred0_1;
|
|
25302
25629
|
let deferred2_0;
|
|
@@ -25315,7 +25642,7 @@ function __wbg_get_imports(memory) {
|
|
|
25315
25642
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
25316
25643
|
}
|
|
25317
25644
|
},
|
|
25318
|
-
|
|
25645
|
+
__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) {
|
|
25319
25646
|
let deferred0_0;
|
|
25320
25647
|
let deferred0_1;
|
|
25321
25648
|
let deferred6_0;
|
|
@@ -25364,7 +25691,7 @@ function __wbg_get_imports(memory) {
|
|
|
25364
25691
|
wasm.__wbindgen_free(deferred9_0, deferred9_1, 1);
|
|
25365
25692
|
}
|
|
25366
25693
|
},
|
|
25367
|
-
|
|
25694
|
+
__wbg_upsertNoteScript_96ab2ba0a90f1446: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25368
25695
|
let deferred0_0;
|
|
25369
25696
|
let deferred0_1;
|
|
25370
25697
|
try {
|
|
@@ -25378,7 +25705,7 @@ function __wbg_get_imports(memory) {
|
|
|
25378
25705
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25379
25706
|
}
|
|
25380
25707
|
},
|
|
25381
|
-
|
|
25708
|
+
__wbg_upsertOutputNote_ab3683633a3f1acb: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) {
|
|
25382
25709
|
let deferred0_0;
|
|
25383
25710
|
let deferred0_1;
|
|
25384
25711
|
let deferred1_0;
|
|
@@ -25413,7 +25740,7 @@ function __wbg_get_imports(memory) {
|
|
|
25413
25740
|
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
25414
25741
|
}
|
|
25415
25742
|
},
|
|
25416
|
-
|
|
25743
|
+
__wbg_upsertStorageMapEntries_5f86e7cc367f03c1: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25417
25744
|
let deferred0_0;
|
|
25418
25745
|
let deferred0_1;
|
|
25419
25746
|
try {
|
|
@@ -25427,7 +25754,7 @@ function __wbg_get_imports(memory) {
|
|
|
25427
25754
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25428
25755
|
}
|
|
25429
25756
|
},
|
|
25430
|
-
|
|
25757
|
+
__wbg_upsertTransactionRecord_dc6cf6e7c6196905: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
25431
25758
|
let deferred0_0;
|
|
25432
25759
|
let deferred0_1;
|
|
25433
25760
|
try {
|
|
@@ -25448,7 +25775,7 @@ function __wbg_get_imports(memory) {
|
|
|
25448
25775
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
25449
25776
|
}
|
|
25450
25777
|
},
|
|
25451
|
-
|
|
25778
|
+
__wbg_upsertVaultAssets_b09b89783ef95fbe: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
25452
25779
|
let deferred0_0;
|
|
25453
25780
|
let deferred0_1;
|
|
25454
25781
|
try {
|
|
@@ -25501,7 +25828,7 @@ function __wbg_get_imports(memory) {
|
|
|
25501
25828
|
return ret;
|
|
25502
25829
|
},
|
|
25503
25830
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
25504
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 126, function: Function { arguments: [], shim_idx:
|
|
25831
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 126, function: Function { arguments: [], shim_idx: 452, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
25505
25832
|
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______);
|
|
25506
25833
|
return ret;
|
|
25507
25834
|
},
|
|
@@ -25511,86 +25838,91 @@ function __wbg_get_imports(memory) {
|
|
|
25511
25838
|
return ret;
|
|
25512
25839
|
},
|
|
25513
25840
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
25841
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
25842
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
25843
|
+
return ret;
|
|
25844
|
+
},
|
|
25845
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
25514
25846
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
25515
25847
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
25516
25848
|
return ret;
|
|
25517
25849
|
},
|
|
25518
|
-
|
|
25850
|
+
__wbindgen_cast_0000000000000007: function(arg0) {
|
|
25519
25851
|
// Cast intrinsic for `U64 -> Externref`.
|
|
25520
25852
|
const ret = BigInt.asUintN(64, arg0);
|
|
25521
25853
|
return ret;
|
|
25522
25854
|
},
|
|
25523
|
-
|
|
25855
|
+
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
25524
25856
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25525
25857
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25526
25858
|
// Cast intrinsic for `Vector(NamedExternref("AccountHeader")) -> Externref`.
|
|
25527
25859
|
const ret = v0;
|
|
25528
25860
|
return ret;
|
|
25529
25861
|
},
|
|
25530
|
-
|
|
25862
|
+
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
25531
25863
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25532
25864
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25533
25865
|
// Cast intrinsic for `Vector(NamedExternref("Address")) -> Externref`.
|
|
25534
25866
|
const ret = v0;
|
|
25535
25867
|
return ret;
|
|
25536
25868
|
},
|
|
25537
|
-
|
|
25869
|
+
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
25538
25870
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25539
25871
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25540
25872
|
// Cast intrinsic for `Vector(NamedExternref("ConsumableNoteRecord")) -> Externref`.
|
|
25541
25873
|
const ret = v0;
|
|
25542
25874
|
return ret;
|
|
25543
25875
|
},
|
|
25544
|
-
|
|
25876
|
+
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
25545
25877
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25546
25878
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25547
25879
|
// Cast intrinsic for `Vector(NamedExternref("FetchedNote")) -> Externref`.
|
|
25548
25880
|
const ret = v0;
|
|
25549
25881
|
return ret;
|
|
25550
25882
|
},
|
|
25551
|
-
|
|
25883
|
+
__wbindgen_cast_000000000000000c: function(arg0, arg1) {
|
|
25552
25884
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25553
25885
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25554
25886
|
// Cast intrinsic for `Vector(NamedExternref("InputNoteRecord")) -> Externref`.
|
|
25555
25887
|
const ret = v0;
|
|
25556
25888
|
return ret;
|
|
25557
25889
|
},
|
|
25558
|
-
|
|
25890
|
+
__wbindgen_cast_000000000000000d: function(arg0, arg1) {
|
|
25559
25891
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25560
25892
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25561
25893
|
// Cast intrinsic for `Vector(NamedExternref("OutputNoteRecord")) -> Externref`.
|
|
25562
25894
|
const ret = v0;
|
|
25563
25895
|
return ret;
|
|
25564
25896
|
},
|
|
25565
|
-
|
|
25897
|
+
__wbindgen_cast_000000000000000e: function(arg0, arg1) {
|
|
25566
25898
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25567
25899
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25568
25900
|
// Cast intrinsic for `Vector(NamedExternref("PswapLineageRecord")) -> Externref`.
|
|
25569
25901
|
const ret = v0;
|
|
25570
25902
|
return ret;
|
|
25571
25903
|
},
|
|
25572
|
-
|
|
25904
|
+
__wbindgen_cast_000000000000000f: function(arg0, arg1) {
|
|
25573
25905
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25574
25906
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25575
25907
|
// Cast intrinsic for `Vector(NamedExternref("TransactionRecord")) -> Externref`.
|
|
25576
25908
|
const ret = v0;
|
|
25577
25909
|
return ret;
|
|
25578
25910
|
},
|
|
25579
|
-
|
|
25911
|
+
__wbindgen_cast_0000000000000010: function(arg0, arg1) {
|
|
25580
25912
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25581
25913
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25582
25914
|
// Cast intrinsic for `Vector(NamedExternref("Word")) -> Externref`.
|
|
25583
25915
|
const ret = v0;
|
|
25584
25916
|
return ret;
|
|
25585
25917
|
},
|
|
25586
|
-
|
|
25918
|
+
__wbindgen_cast_0000000000000011: function(arg0, arg1) {
|
|
25587
25919
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
25588
25920
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
25589
25921
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
25590
25922
|
const ret = v0;
|
|
25591
25923
|
return ret;
|
|
25592
25924
|
},
|
|
25593
|
-
|
|
25925
|
+
__wbindgen_cast_0000000000000012: function(arg0, arg1) {
|
|
25594
25926
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
25595
25927
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
25596
25928
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -25756,6 +26088,9 @@ const ConsumableNoteRecordFinalization = (typeof FinalizationRegistry === 'undef
|
|
|
25756
26088
|
const EndpointFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25757
26089
|
? { register: () => {}, unregister: () => {} }
|
|
25758
26090
|
: new FinalizationRegistry(ptr => wasm.__wbg_endpoint_free(ptr >>> 0, 1));
|
|
26091
|
+
const EthAddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26092
|
+
? { register: () => {}, unregister: () => {} }
|
|
26093
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_ethaddress_free(ptr >>> 0, 1));
|
|
25759
26094
|
const ExecutedTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
25760
26095
|
? { register: () => {}, unregister: () => {} }
|
|
25761
26096
|
: new FinalizationRegistry(ptr => wasm.__wbg_executedtransaction_free(ptr >>> 0, 1));
|
|
@@ -26495,6 +26830,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
26495
26830
|
CommittedNote: CommittedNote,
|
|
26496
26831
|
ConsumableNoteRecord: ConsumableNoteRecord,
|
|
26497
26832
|
Endpoint: Endpoint,
|
|
26833
|
+
EthAddress: EthAddress,
|
|
26498
26834
|
ExecutedTransaction: ExecutedTransaction,
|
|
26499
26835
|
Felt: Felt,
|
|
26500
26836
|
FeltArray: FeltArray,
|
|
@@ -26626,5 +26962,5 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
26626
26962
|
|
|
26627
26963
|
const module$1 = new URL("assets/miden_client_web.wasm", import.meta.url);
|
|
26628
26964
|
|
|
26629
|
-
export { Account, AccountArray, AccountBuilder, AccountBuilderResult, AccountCode, AccountComponent, AccountComponentCode, AccountDelta, AccountFile, AccountHeader, AccountId, AccountIdArray, AccountInterface, AccountProof, AccountReader, AccountStatus, AccountStorage, AccountStorageDelta, AccountStorageMode, AccountStorageRequirements, AccountType, AccountVaultDelta, Address, AdviceInputs, AdviceMap, AssetVault, AuthFalcon512RpoMultisigConfig, AuthScheme, AuthSecretKey, BasicFungibleFaucetComponent, BlockHeader, CodeBuilder, CommittedNote, ConsumableNoteRecord, Endpoint, ExecutedTransaction, Felt, FeltArray, FetchedAccount, FetchedNote, FlattenedU8Vec, ForeignAccount, ForeignAccountArray, FungibleAsset, FungibleAssetDelta, FungibleAssetDeltaItem, GetProceduresResultItem, InputNote, InputNoteRecord, InputNoteState, InputNotes, IntoUnderlyingByteSource, IntoUnderlyingSink, IntoUnderlyingSource, JsAccountUpdate, 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, PswapLineageRecord, PswapLineageState, 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, module$1 as __wasm_url, __wbg_init, createAuthFalcon512RpoMultisig, exportStore2 as exportStore, importStore, initSync, initThreadPool, mtProbeAsync, mtProbeSync, parallelSumBench, rayonThreadCount, sequentialSumBench, setupLogging, wbg_rayon_PoolBuilder, wbg_rayon_start_worker };
|
|
26630
|
-
//# sourceMappingURL=Cargo-
|
|
26965
|
+
export { Account, AccountArray, AccountBuilder, AccountBuilderResult, AccountCode, AccountComponent, AccountComponentCode, AccountDelta, AccountFile, AccountHeader, AccountId, AccountIdArray, AccountInterface, AccountProof, AccountReader, AccountStatus, AccountStorage, AccountStorageDelta, AccountStorageMode, AccountStorageRequirements, AccountType, AccountVaultDelta, Address, AdviceInputs, AdviceMap, AssetVault, AuthFalcon512RpoMultisigConfig, AuthScheme, AuthSecretKey, BasicFungibleFaucetComponent, BlockHeader, CodeBuilder, CommittedNote, ConsumableNoteRecord, Endpoint, EthAddress, 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, PswapLineageRecord, PswapLineageState, 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, module$1 as __wasm_url, __wbg_init, createAuthFalcon512RpoMultisig, exportStore2 as exportStore, importStore, initSync, initThreadPool, mtProbeAsync, mtProbeSync, parallelSumBench, rayonThreadCount, sequentialSumBench, setupLogging, wbg_rayon_PoolBuilder, wbg_rayon_start_worker };
|
|
26966
|
+
//# sourceMappingURL=Cargo-DjVnfWKi-DvLbB_Zb.js.map
|