@hirosystems/clarinet-sdk-wasm
Advanced tools
Comparing version 2.10.0 to 2.11.0
@@ -124,265 +124,223 @@ /* tslint:disable */ | ||
/** | ||
*/ | ||
export class CallFnArgs { | ||
free(): void; | ||
/** | ||
* @param {string} contract | ||
* @param {string} method | ||
* @param {(Uint8Array)[]} args | ||
* @param {string} sender | ||
*/ | ||
/** | ||
* @param {string} contract | ||
* @param {string} method | ||
* @param {(Uint8Array)[]} args | ||
* @param {string} sender | ||
*/ | ||
constructor(contract: string, method: string, args: (Uint8Array)[], sender: string); | ||
} | ||
/** | ||
*/ | ||
export class ContractOptions { | ||
free(): void; | ||
/** | ||
* @param {number | undefined} [clarity_version] | ||
*/ | ||
/** | ||
* @param {number | undefined} [clarity_version] | ||
*/ | ||
constructor(clarity_version?: number); | ||
} | ||
/** | ||
*/ | ||
export class DeployContractArgs { | ||
free(): void; | ||
/** | ||
* @param {string} name | ||
* @param {string} content | ||
* @param {ContractOptions} options | ||
* @param {string} sender | ||
*/ | ||
/** | ||
* @param {string} name | ||
* @param {string} content | ||
* @param {ContractOptions} options | ||
* @param {string} sender | ||
*/ | ||
constructor(name: string, content: string, options: ContractOptions, sender: string); | ||
} | ||
/** | ||
*/ | ||
export class SDK { | ||
free(): void; | ||
/** | ||
* @param {Function} fs_request | ||
* @param {SDKOptions | undefined} [options] | ||
*/ | ||
/** | ||
* @param {Function} fs_request | ||
* @param {SDKOptions | undefined} [options] | ||
*/ | ||
constructor(fs_request: Function, options?: SDKOptions); | ||
/** | ||
* @returns {EpochString} | ||
*/ | ||
/** | ||
* @returns {EpochString} | ||
*/ | ||
static getDefaultEpoch(): EpochString; | ||
/** | ||
* @returns {ClarityVersionString} | ||
*/ | ||
/** | ||
* @returns {ClarityVersionString} | ||
*/ | ||
getDefaultClarityVersionForCurrentEpoch(): ClarityVersionString; | ||
/** | ||
* @returns {Promise<void>} | ||
*/ | ||
/** | ||
* @returns {Promise<void>} | ||
*/ | ||
initEmtpySession(): Promise<void>; | ||
/** | ||
* @param {string} cwd | ||
* @param {string} manifest_path | ||
* @returns {Promise<void>} | ||
*/ | ||
/** | ||
* @param {string} cwd | ||
* @param {string} manifest_path | ||
* @returns {Promise<void>} | ||
*/ | ||
initSession(cwd: string, manifest_path: string): Promise<void>; | ||
/** | ||
*/ | ||
clearCache(): void; | ||
/** | ||
* @param {EpochString} epoch | ||
*/ | ||
/** | ||
* @param {EpochString} epoch | ||
*/ | ||
setEpoch(epoch: EpochString): void; | ||
/** | ||
* @returns {Map<string, IContractInterface>} | ||
*/ | ||
/** | ||
* @returns {Map<string, IContractInterface>} | ||
*/ | ||
getContractsInterfaces(): Map<string, IContractInterface>; | ||
/** | ||
* @param {string} contract | ||
* @returns {string | undefined} | ||
*/ | ||
/** | ||
* @param {string} contract | ||
* @returns {string | undefined} | ||
*/ | ||
getContractSource(contract: string): string | undefined; | ||
/** | ||
* @param {string} contract | ||
* @returns {IContractAST} | ||
*/ | ||
/** | ||
* @param {string} contract | ||
* @returns {IContractAST} | ||
*/ | ||
getContractAST(contract: string): IContractAST; | ||
/** | ||
* @returns {Map<string, Map<string, bigint>>} | ||
*/ | ||
/** | ||
* @returns {Map<string, Map<string, bigint>>} | ||
*/ | ||
getAssetsMap(): Map<string, Map<string, bigint>>; | ||
/** | ||
* @returns {Map<string, string>} | ||
*/ | ||
/** | ||
* @returns {Map<string, string>} | ||
*/ | ||
getAccounts(): Map<string, string>; | ||
/** | ||
* @param {string} contract | ||
* @param {string} var_name | ||
* @returns {string} | ||
*/ | ||
/** | ||
* @param {string} contract | ||
* @param {string} var_name | ||
* @returns {string} | ||
*/ | ||
getDataVar(contract: string, var_name: string): string; | ||
/** | ||
* @returns {bigint} | ||
*/ | ||
/** | ||
* @returns {bigint} | ||
*/ | ||
getBlockTime(): bigint; | ||
/** | ||
* @param {string} contract | ||
* @param {string} map_name | ||
* @param {Uint8Array} map_key | ||
* @returns {string} | ||
*/ | ||
/** | ||
* @param {string} contract | ||
* @param {string} map_name | ||
* @param {Uint8Array} map_key | ||
* @returns {string} | ||
*/ | ||
getMapEntry(contract: string, map_name: string, map_key: Uint8Array): string; | ||
/** | ||
* @param {CallFnArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
/** | ||
* @param {CallFnArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
callReadOnlyFn(args: CallFnArgs): TransactionRes; | ||
/** | ||
* @param {DeployContractArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
/** | ||
* @param {DeployContractArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
deployContract(args: DeployContractArgs): TransactionRes; | ||
/** | ||
* @param {TransferSTXArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
/** | ||
* @param {TransferSTXArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
transferSTX(args: TransferSTXArgs): TransactionRes; | ||
/** | ||
* @param {CallFnArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
/** | ||
* @param {CallFnArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
callPublicFn(args: CallFnArgs): TransactionRes; | ||
/** | ||
* @param {CallFnArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
/** | ||
* @param {CallFnArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
callPrivateFn(args: CallFnArgs): TransactionRes; | ||
/** | ||
* @param {Array<any>} js_txs | ||
* @returns {any} | ||
*/ | ||
/** | ||
* @param {Array<any>} js_txs | ||
* @returns {any} | ||
*/ | ||
mineBlock(js_txs: Array<any>): any; | ||
/** | ||
* @returns {number} | ||
*/ | ||
/** | ||
* @returns {number} | ||
*/ | ||
mineEmptyBlock(): number; | ||
/** | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
/** | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
mineEmptyBlocks(count?: number): number; | ||
/** | ||
* @returns {number} | ||
*/ | ||
/** | ||
* @returns {number} | ||
*/ | ||
mineEmptyStacksBlock(): number; | ||
/** | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
/** | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
mineEmptyStacksBlocks(count?: number): number; | ||
/** | ||
* @returns {number} | ||
*/ | ||
/** | ||
* @returns {number} | ||
*/ | ||
mineEmptyBurnBlock(): number; | ||
/** | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
/** | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
mineEmptyBurnBlocks(count?: number): number; | ||
/** | ||
* @param {string} snippet | ||
* @returns {string} | ||
*/ | ||
/** | ||
* @param {string} snippet | ||
* @returns {string} | ||
*/ | ||
runSnippet(snippet: string): string; | ||
/** | ||
* @param {string} snippet | ||
* @returns {TransactionRes} | ||
*/ | ||
/** | ||
* @param {string} snippet | ||
* @returns {TransactionRes} | ||
*/ | ||
execute(snippet: string): TransactionRes; | ||
/** | ||
* @param {string} snippet | ||
* @returns {string} | ||
*/ | ||
/** | ||
* @param {string} snippet | ||
* @returns {string} | ||
*/ | ||
executeCommand(snippet: string): string; | ||
/** | ||
* @param {string} recipient | ||
* @param {bigint} amount | ||
* @returns {string} | ||
*/ | ||
/** | ||
* @param {string} recipient | ||
* @param {bigint} amount | ||
* @returns {string} | ||
*/ | ||
mintSTX(recipient: string, amount: bigint): string; | ||
/** | ||
* @param {string} test_name | ||
*/ | ||
/** | ||
* @param {string} test_name | ||
*/ | ||
setCurrentTestName(test_name: string): void; | ||
/** | ||
* @param {boolean} include_boot_contracts | ||
* @param {string} boot_contracts_path | ||
* @returns {SessionReport} | ||
*/ | ||
/** | ||
* @param {boolean} include_boot_contracts | ||
* @param {string} boot_contracts_path | ||
* @returns {SessionReport} | ||
*/ | ||
collectReport(include_boot_contracts: boolean, boot_contracts_path: string): SessionReport; | ||
/** | ||
*/ | ||
readonly blockHeight: number; | ||
/** | ||
*/ | ||
readonly burnBlockHeight: number; | ||
/** | ||
*/ | ||
readonly currentEpoch: string; | ||
/** | ||
*/ | ||
deployer: string; | ||
/** | ||
*/ | ||
readonly stacksBlockHeight: number; | ||
} | ||
/** | ||
*/ | ||
export class SDKOptions { | ||
free(): void; | ||
/** | ||
* @param {boolean} track_costs | ||
* @param {boolean} track_coverage | ||
*/ | ||
/** | ||
* @param {boolean} track_costs | ||
* @param {boolean} track_coverage | ||
*/ | ||
constructor(track_costs: boolean, track_coverage: boolean); | ||
/** | ||
*/ | ||
trackCosts: boolean; | ||
/** | ||
*/ | ||
trackCoverage: boolean; | ||
} | ||
/** | ||
*/ | ||
export class SessionReport { | ||
free(): void; | ||
/** | ||
*/ | ||
costs: string; | ||
/** | ||
*/ | ||
coverage: string; | ||
} | ||
/** | ||
*/ | ||
export class TransactionRes { | ||
free(): void; | ||
/** | ||
*/ | ||
events: string; | ||
/** | ||
*/ | ||
result: string; | ||
} | ||
/** | ||
*/ | ||
export class TransferSTXArgs { | ||
free(): void; | ||
/** | ||
* @param {bigint} amount | ||
* @param {string} recipient | ||
* @param {string} sender | ||
*/ | ||
/** | ||
* @param {bigint} amount | ||
* @param {string} recipient | ||
* @param {string} sender | ||
*/ | ||
constructor(amount: bigint, recipient: string, sender: string); | ||
} | ||
/** | ||
*/ | ||
export class TxArgs { | ||
free(): void; | ||
} |
1260
clarinet_sdk.js
@@ -0,1 +1,2 @@ | ||
let imports = {}; | ||
@@ -6,22 +7,2 @@ imports['__wbindgen_placeholder__'] = module.exports; | ||
const heap = new Array(128).fill(undefined); | ||
heap.push(undefined, null, true, false); | ||
function getObject(idx) { return heap[idx]; } | ||
let heap_next = heap.length; | ||
function dropObject(idx) { | ||
if (idx < 132) return; | ||
heap[idx] = heap_next; | ||
heap_next = idx; | ||
} | ||
function takeObject(idx) { | ||
const ret = getObject(idx); | ||
dropObject(idx); | ||
return ret; | ||
} | ||
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
@@ -31,9 +12,9 @@ | ||
let cachedUint8Memory0 = null; | ||
let cachedUint8ArrayMemory0 = null; | ||
function getUint8Memory0() { | ||
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { | ||
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); | ||
function getUint8ArrayMemory0() { | ||
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { | ||
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); | ||
} | ||
return cachedUint8Memory0; | ||
return cachedUint8ArrayMemory0; | ||
} | ||
@@ -43,14 +24,5 @@ | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); | ||
} | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
@@ -78,3 +50,3 @@ | ||
const ptr = malloc(buf.length, 1) >>> 0; | ||
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf); | ||
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf); | ||
WASM_VECTOR_LEN = buf.length; | ||
@@ -87,3 +59,3 @@ return ptr; | ||
const mem = getUint8Memory0(); | ||
const mem = getUint8ArrayMemory0(); | ||
@@ -103,3 +75,3 @@ let offset = 0; | ||
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; | ||
const view = getUint8Memory0().subarray(ptr + offset, ptr + len); | ||
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len); | ||
const ret = encodeString(arg, view); | ||
@@ -119,20 +91,11 @@ | ||
let cachedInt32Memory0 = null; | ||
let cachedDataViewMemory0 = null; | ||
function getInt32Memory0() { | ||
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) { | ||
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer); | ||
function getDataViewMemory0() { | ||
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { | ||
cachedDataViewMemory0 = new DataView(wasm.memory.buffer); | ||
} | ||
return cachedInt32Memory0; | ||
return cachedDataViewMemory0; | ||
} | ||
let cachedFloat64Memory0 = null; | ||
function getFloat64Memory0() { | ||
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) { | ||
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer); | ||
} | ||
return cachedFloat64Memory0; | ||
} | ||
function debugString(val) { | ||
@@ -206,3 +169,3 @@ // primitive types | ||
: new FinalizationRegistry(state => { | ||
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b) | ||
wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b) | ||
}); | ||
@@ -223,3 +186,3 @@ | ||
if (--state.cnt === 0) { | ||
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b); | ||
wasm.__wbindgen_export_3.get(state.dtor)(a, state.b); | ||
CLOSURE_DTORS.unregister(state); | ||
@@ -235,13 +198,10 @@ } else { | ||
} | ||
function __wbg_adapter_44(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7e2dcd4be217ce2f(arg0, arg1, addHeapObject(arg2)); | ||
function __wbg_adapter_46(arg0, arg1, arg2) { | ||
wasm.closure674_externref_shim(arg0, arg1, arg2); | ||
} | ||
let cachedUint32Memory0 = null; | ||
function getUint32Memory0() { | ||
if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) { | ||
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer); | ||
} | ||
return cachedUint32Memory0; | ||
function addToExternrefTable0(obj) { | ||
const idx = wasm.__externref_table_alloc(); | ||
wasm.__wbindgen_export_2.set(idx, obj); | ||
return idx; | ||
} | ||
@@ -251,5 +211,5 @@ | ||
const ptr = malloc(array.length * 4, 4) >>> 0; | ||
const mem = getUint32Memory0(); | ||
const mem = getDataViewMemory0(); | ||
for (let i = 0; i < array.length; i++) { | ||
mem[ptr / 4 + i] = addHeapObject(array[i]); | ||
mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true); | ||
} | ||
@@ -267,5 +227,11 @@ WASM_VECTOR_LEN = array.length; | ||
function takeFromExternrefTable0(idx) { | ||
const value = wasm.__wbindgen_export_2.get(idx); | ||
wasm.__externref_table_dealloc(idx); | ||
return value; | ||
} | ||
function passArray8ToWasm0(arg, malloc) { | ||
const ptr = malloc(arg.length * 1, 1) >>> 0; | ||
getUint8Memory0().set(arg, ptr / 1); | ||
getUint8ArrayMemory0().set(arg, ptr / 1); | ||
WASM_VECTOR_LEN = arg.length; | ||
@@ -275,2 +241,4 @@ return ptr; | ||
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; } | ||
function handleError(f, args) { | ||
@@ -280,14 +248,18 @@ try { | ||
} catch (e) { | ||
wasm.__wbindgen_exn_store(addHeapObject(e)); | ||
const idx = addToExternrefTable0(e); | ||
wasm.__wbindgen_exn_store(idx); | ||
} | ||
} | ||
function __wbg_adapter_187(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h38654104d6f0bdd2(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
function __wbg_adapter_189(arg0, arg1, arg2, arg3) { | ||
wasm.closure3047_externref_shim(arg0, arg1, arg2, arg3); | ||
} | ||
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"]; | ||
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"]; | ||
const CallFnArgsFinalization = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_callfnargs_free(ptr >>> 0)); | ||
/** | ||
*/ | ||
: new FinalizationRegistry(ptr => wasm.__wbg_callfnargs_free(ptr >>> 0, 1)); | ||
class CallFnArgs { | ||
@@ -304,10 +276,10 @@ | ||
const ptr = this.__destroy_into_raw(); | ||
wasm.__wbg_callfnargs_free(ptr); | ||
wasm.__wbg_callfnargs_free(ptr, 0); | ||
} | ||
/** | ||
* @param {string} contract | ||
* @param {string} method | ||
* @param {(Uint8Array)[]} args | ||
* @param {string} sender | ||
*/ | ||
* @param {string} contract | ||
* @param {string} method | ||
* @param {(Uint8Array)[]} args | ||
* @param {string} sender | ||
*/ | ||
constructor(contract, method, args, sender) { | ||
@@ -324,2 +296,3 @@ const ptr0 = passStringToWasm0(contract, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
this.__wbg_ptr = ret >>> 0; | ||
CallFnArgsFinalization.register(this, this.__wbg_ptr, this); | ||
return this; | ||
@@ -332,5 +305,4 @@ } | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_contractoptions_free(ptr >>> 0)); | ||
/** | ||
*/ | ||
: new FinalizationRegistry(ptr => wasm.__wbg_contractoptions_free(ptr >>> 0, 1)); | ||
class ContractOptions { | ||
@@ -347,10 +319,11 @@ | ||
const ptr = this.__destroy_into_raw(); | ||
wasm.__wbg_contractoptions_free(ptr); | ||
wasm.__wbg_contractoptions_free(ptr, 0); | ||
} | ||
/** | ||
* @param {number | undefined} [clarity_version] | ||
*/ | ||
* @param {number | undefined} [clarity_version] | ||
*/ | ||
constructor(clarity_version) { | ||
const ret = wasm.contractoptions_new(!isLikeNone(clarity_version), isLikeNone(clarity_version) ? 0 : clarity_version); | ||
this.__wbg_ptr = ret >>> 0; | ||
ContractOptionsFinalization.register(this, this.__wbg_ptr, this); | ||
return this; | ||
@@ -363,5 +336,4 @@ } | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_deploycontractargs_free(ptr >>> 0)); | ||
/** | ||
*/ | ||
: new FinalizationRegistry(ptr => wasm.__wbg_deploycontractargs_free(ptr >>> 0, 1)); | ||
class DeployContractArgs { | ||
@@ -378,10 +350,10 @@ | ||
const ptr = this.__destroy_into_raw(); | ||
wasm.__wbg_deploycontractargs_free(ptr); | ||
wasm.__wbg_deploycontractargs_free(ptr, 0); | ||
} | ||
/** | ||
* @param {string} name | ||
* @param {string} content | ||
* @param {ContractOptions} options | ||
* @param {string} sender | ||
*/ | ||
* @param {string} name | ||
* @param {string} content | ||
* @param {ContractOptions} options | ||
* @param {string} sender | ||
*/ | ||
constructor(name, content, options, sender) { | ||
@@ -398,2 +370,3 @@ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
this.__wbg_ptr = ret >>> 0; | ||
DeployContractArgsFinalization.register(this, this.__wbg_ptr, this); | ||
return this; | ||
@@ -406,5 +379,4 @@ } | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_sdk_free(ptr >>> 0)); | ||
/** | ||
*/ | ||
: new FinalizationRegistry(ptr => wasm.__wbg_sdk_free(ptr >>> 0, 1)); | ||
class SDK { | ||
@@ -421,7 +393,7 @@ | ||
const ptr = this.__destroy_into_raw(); | ||
wasm.__wbg_sdk_free(ptr); | ||
wasm.__wbg_sdk_free(ptr, 0); | ||
} | ||
/** | ||
* @returns {string} | ||
*/ | ||
* @returns {string} | ||
*/ | ||
get deployer() { | ||
@@ -431,11 +403,7 @@ let deferred1_0; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_sdk_deployer(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
deferred1_0 = r0; | ||
deferred1_1 = r1; | ||
return getStringFromWasm0(r0, r1); | ||
const ret = wasm.__wbg_get_sdk_deployer(this.__wbg_ptr); | ||
deferred1_0 = ret[0]; | ||
deferred1_1 = ret[1]; | ||
return getStringFromWasm0(ret[0], ret[1]); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
@@ -445,4 +413,4 @@ } | ||
/** | ||
* @param {string} arg0 | ||
*/ | ||
* @param {string} arg0 | ||
*/ | ||
set deployer(arg0) { | ||
@@ -454,5 +422,5 @@ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @param {Function} fs_request | ||
* @param {SDKOptions | undefined} [options] | ||
*/ | ||
* @param {Function} fs_request | ||
* @param {SDKOptions | undefined} [options] | ||
*/ | ||
constructor(fs_request, options) { | ||
@@ -464,32 +432,33 @@ let ptr0 = 0; | ||
} | ||
const ret = wasm.sdk_new(addHeapObject(fs_request), ptr0); | ||
const ret = wasm.sdk_new(fs_request, ptr0); | ||
this.__wbg_ptr = ret >>> 0; | ||
SDKFinalization.register(this, this.__wbg_ptr, this); | ||
return this; | ||
} | ||
/** | ||
* @returns {EpochString} | ||
*/ | ||
* @returns {EpochString} | ||
*/ | ||
static getDefaultEpoch() { | ||
const ret = wasm.sdk_getDefaultEpoch(); | ||
return takeObject(ret); | ||
return ret; | ||
} | ||
/** | ||
* @returns {ClarityVersionString} | ||
*/ | ||
* @returns {ClarityVersionString} | ||
*/ | ||
getDefaultClarityVersionForCurrentEpoch() { | ||
const ret = wasm.sdk_getDefaultClarityVersionForCurrentEpoch(this.__wbg_ptr); | ||
return takeObject(ret); | ||
return ret; | ||
} | ||
/** | ||
* @returns {Promise<void>} | ||
*/ | ||
* @returns {Promise<void>} | ||
*/ | ||
initEmtpySession() { | ||
const ret = wasm.sdk_initEmtpySession(this.__wbg_ptr); | ||
return takeObject(ret); | ||
return ret; | ||
} | ||
/** | ||
* @param {string} cwd | ||
* @param {string} manifest_path | ||
* @returns {Promise<void>} | ||
*/ | ||
* @param {string} cwd | ||
* @param {string} manifest_path | ||
* @returns {Promise<void>} | ||
*/ | ||
initSession(cwd, manifest_path) { | ||
@@ -501,6 +470,4 @@ const ptr0 = passStringToWasm0(cwd, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const ret = wasm.sdk_initSession(this.__wbg_ptr, ptr0, len0, ptr1, len1); | ||
return takeObject(ret); | ||
return ret; | ||
} | ||
/** | ||
*/ | ||
clearCache() { | ||
@@ -510,4 +477,4 @@ wasm.sdk_clearCache(this.__wbg_ptr); | ||
/** | ||
* @returns {number} | ||
*/ | ||
* @returns {number} | ||
*/ | ||
get blockHeight() { | ||
@@ -518,4 +485,4 @@ const ret = wasm.sdk_blockHeight(this.__wbg_ptr); | ||
/** | ||
* @returns {number} | ||
*/ | ||
* @returns {number} | ||
*/ | ||
get stacksBlockHeight() { | ||
@@ -526,4 +493,4 @@ const ret = wasm.sdk_blockHeight(this.__wbg_ptr); | ||
/** | ||
* @returns {number} | ||
*/ | ||
* @returns {number} | ||
*/ | ||
get burnBlockHeight() { | ||
@@ -534,4 +501,4 @@ const ret = wasm.sdk_burnBlockHeight(this.__wbg_ptr); | ||
/** | ||
* @returns {string} | ||
*/ | ||
* @returns {string} | ||
*/ | ||
get currentEpoch() { | ||
@@ -541,11 +508,7 @@ let deferred1_0; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.sdk_currentEpoch(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
deferred1_0 = r0; | ||
deferred1_1 = r1; | ||
return getStringFromWasm0(r0, r1); | ||
const ret = wasm.sdk_currentEpoch(this.__wbg_ptr); | ||
deferred1_0 = ret[0]; | ||
deferred1_1 = ret[1]; | ||
return getStringFromWasm0(ret[0], ret[1]); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
@@ -555,109 +518,70 @@ } | ||
/** | ||
* @param {EpochString} epoch | ||
*/ | ||
* @param {EpochString} epoch | ||
*/ | ||
setEpoch(epoch) { | ||
wasm.sdk_setEpoch(this.__wbg_ptr, addHeapObject(epoch)); | ||
wasm.sdk_setEpoch(this.__wbg_ptr, epoch); | ||
} | ||
/** | ||
* @returns {Map<string, IContractInterface>} | ||
*/ | ||
* @returns {Map<string, IContractInterface>} | ||
*/ | ||
getContractsInterfaces() { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.sdk_getContractsInterfaces(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return takeObject(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
const ret = wasm.sdk_getContractsInterfaces(this.__wbg_ptr); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return takeFromExternrefTable0(ret[0]); | ||
} | ||
/** | ||
* @param {string} contract | ||
* @returns {string | undefined} | ||
*/ | ||
* @param {string} contract | ||
* @returns {string | undefined} | ||
*/ | ||
getContractSource(contract) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const ptr0 = passStringToWasm0(contract, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.sdk_getContractSource(retptr, this.__wbg_ptr, ptr0, len0); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
let v2; | ||
if (r0 !== 0) { | ||
v2 = getStringFromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_free(r0, r1 * 1, 1); | ||
} | ||
return v2; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
const ptr0 = passStringToWasm0(contract, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
const ret = wasm.sdk_getContractSource(this.__wbg_ptr, ptr0, len0); | ||
let v2; | ||
if (ret[0] !== 0) { | ||
v2 = getStringFromWasm0(ret[0], ret[1]).slice(); | ||
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1); | ||
} | ||
return v2; | ||
} | ||
/** | ||
* @param {string} contract | ||
* @returns {IContractAST} | ||
*/ | ||
* @param {string} contract | ||
* @returns {IContractAST} | ||
*/ | ||
getContractAST(contract) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const ptr0 = passStringToWasm0(contract, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.sdk_getContractAST(retptr, this.__wbg_ptr, ptr0, len0); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return takeObject(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
const ptr0 = passStringToWasm0(contract, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
const ret = wasm.sdk_getContractAST(this.__wbg_ptr, ptr0, len0); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return takeFromExternrefTable0(ret[0]); | ||
} | ||
/** | ||
* @returns {Map<string, Map<string, bigint>>} | ||
*/ | ||
* @returns {Map<string, Map<string, bigint>>} | ||
*/ | ||
getAssetsMap() { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.sdk_getAssetsMap(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return takeObject(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
const ret = wasm.sdk_getAssetsMap(this.__wbg_ptr); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return takeFromExternrefTable0(ret[0]); | ||
} | ||
/** | ||
* @returns {Map<string, string>} | ||
*/ | ||
* @returns {Map<string, string>} | ||
*/ | ||
getAccounts() { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.sdk_getAccounts(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return takeObject(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
const ret = wasm.sdk_getAccounts(this.__wbg_ptr); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return takeFromExternrefTable0(ret[0]); | ||
} | ||
/** | ||
* @param {string} contract | ||
* @param {string} var_name | ||
* @returns {string} | ||
*/ | ||
* @param {string} contract | ||
* @param {string} var_name | ||
* @returns {string} | ||
*/ | ||
getDataVar(contract, var_name) { | ||
@@ -667,3 +591,2 @@ let deferred4_0; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const ptr0 = passStringToWasm0(contract, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
@@ -673,12 +596,8 @@ const len0 = WASM_VECTOR_LEN; | ||
const len1 = WASM_VECTOR_LEN; | ||
wasm.sdk_getDataVar(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r3 = getInt32Memory0()[retptr / 4 + 3]; | ||
var ptr3 = r0; | ||
var len3 = r1; | ||
if (r3) { | ||
const ret = wasm.sdk_getDataVar(this.__wbg_ptr, ptr0, len0, ptr1, len1); | ||
var ptr3 = ret[0]; | ||
var len3 = ret[1]; | ||
if (ret[3]) { | ||
ptr3 = 0; len3 = 0; | ||
throw takeObject(r2); | ||
throw takeFromExternrefTable0(ret[2]); | ||
} | ||
@@ -689,3 +608,2 @@ deferred4_0 = ptr3; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1); | ||
@@ -695,4 +613,4 @@ } | ||
/** | ||
* @returns {bigint} | ||
*/ | ||
* @returns {bigint} | ||
*/ | ||
getBlockTime() { | ||
@@ -703,7 +621,7 @@ const ret = wasm.sdk_getBlockTime(this.__wbg_ptr); | ||
/** | ||
* @param {string} contract | ||
* @param {string} map_name | ||
* @param {Uint8Array} map_key | ||
* @returns {string} | ||
*/ | ||
* @param {string} contract | ||
* @param {string} map_name | ||
* @param {Uint8Array} map_key | ||
* @returns {string} | ||
*/ | ||
getMapEntry(contract, map_name, map_key) { | ||
@@ -713,3 +631,2 @@ let deferred5_0; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const ptr0 = passStringToWasm0(contract, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
@@ -721,12 +638,8 @@ const len0 = WASM_VECTOR_LEN; | ||
const len2 = WASM_VECTOR_LEN; | ||
wasm.sdk_getMapEntry(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r3 = getInt32Memory0()[retptr / 4 + 3]; | ||
var ptr4 = r0; | ||
var len4 = r1; | ||
if (r3) { | ||
const ret = wasm.sdk_getMapEntry(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2); | ||
var ptr4 = ret[0]; | ||
var len4 = ret[1]; | ||
if (ret[3]) { | ||
ptr4 = 0; len4 = 0; | ||
throw takeObject(r2); | ||
throw takeFromExternrefTable0(ret[2]); | ||
} | ||
@@ -737,3 +650,2 @@ deferred5_0 = ptr4; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1); | ||
@@ -743,123 +655,75 @@ } | ||
/** | ||
* @param {CallFnArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
* @param {CallFnArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
callReadOnlyFn(args) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
_assertClass(args, CallFnArgs); | ||
wasm.sdk_callReadOnlyFn(retptr, this.__wbg_ptr, args.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return TransactionRes.__wrap(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
_assertClass(args, CallFnArgs); | ||
const ret = wasm.sdk_callReadOnlyFn(this.__wbg_ptr, args.__wbg_ptr); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return TransactionRes.__wrap(ret[0]); | ||
} | ||
/** | ||
* @param {DeployContractArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
* @param {DeployContractArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
deployContract(args) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
_assertClass(args, DeployContractArgs); | ||
wasm.sdk_deployContract(retptr, this.__wbg_ptr, args.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return TransactionRes.__wrap(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
_assertClass(args, DeployContractArgs); | ||
const ret = wasm.sdk_deployContract(this.__wbg_ptr, args.__wbg_ptr); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return TransactionRes.__wrap(ret[0]); | ||
} | ||
/** | ||
* @param {TransferSTXArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
* @param {TransferSTXArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
transferSTX(args) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
_assertClass(args, TransferSTXArgs); | ||
wasm.sdk_transferSTX(retptr, this.__wbg_ptr, args.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return TransactionRes.__wrap(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
_assertClass(args, TransferSTXArgs); | ||
const ret = wasm.sdk_transferSTX(this.__wbg_ptr, args.__wbg_ptr); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return TransactionRes.__wrap(ret[0]); | ||
} | ||
/** | ||
* @param {CallFnArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
* @param {CallFnArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
callPublicFn(args) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
_assertClass(args, CallFnArgs); | ||
wasm.sdk_callPublicFn(retptr, this.__wbg_ptr, args.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return TransactionRes.__wrap(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
_assertClass(args, CallFnArgs); | ||
const ret = wasm.sdk_callPublicFn(this.__wbg_ptr, args.__wbg_ptr); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return TransactionRes.__wrap(ret[0]); | ||
} | ||
/** | ||
* @param {CallFnArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
* @param {CallFnArgs} args | ||
* @returns {TransactionRes} | ||
*/ | ||
callPrivateFn(args) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
_assertClass(args, CallFnArgs); | ||
wasm.sdk_callPrivateFn(retptr, this.__wbg_ptr, args.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return TransactionRes.__wrap(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
_assertClass(args, CallFnArgs); | ||
const ret = wasm.sdk_callPrivateFn(this.__wbg_ptr, args.__wbg_ptr); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return TransactionRes.__wrap(ret[0]); | ||
} | ||
/** | ||
* @param {Array<any>} js_txs | ||
* @returns {any} | ||
*/ | ||
* @param {Array<any>} js_txs | ||
* @returns {any} | ||
*/ | ||
mineBlock(js_txs) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.sdk_mineBlock(retptr, this.__wbg_ptr, addHeapObject(js_txs)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return takeObject(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
const ret = wasm.sdk_mineBlock(this.__wbg_ptr, js_txs); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return takeFromExternrefTable0(ret[0]); | ||
} | ||
/** | ||
* @returns {number} | ||
*/ | ||
* @returns {number} | ||
*/ | ||
mineEmptyBlock() { | ||
@@ -870,5 +734,5 @@ const ret = wasm.sdk_mineEmptyBlock(this.__wbg_ptr); | ||
/** | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
mineEmptyBlocks(count) { | ||
@@ -879,41 +743,25 @@ const ret = wasm.sdk_mineEmptyBlocks(this.__wbg_ptr, !isLikeNone(count), isLikeNone(count) ? 0 : count); | ||
/** | ||
* @returns {number} | ||
*/ | ||
* @returns {number} | ||
*/ | ||
mineEmptyStacksBlock() { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.sdk_mineEmptyStacksBlock(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return r0 >>> 0; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
const ret = wasm.sdk_mineEmptyStacksBlock(this.__wbg_ptr); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return ret[0] >>> 0; | ||
} | ||
/** | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
mineEmptyStacksBlocks(count) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.sdk_mineEmptyStacksBlocks(retptr, this.__wbg_ptr, !isLikeNone(count), isLikeNone(count) ? 0 : count); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return r0 >>> 0; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
const ret = wasm.sdk_mineEmptyStacksBlocks(this.__wbg_ptr, !isLikeNone(count), isLikeNone(count) ? 0 : count); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return ret[0] >>> 0; | ||
} | ||
/** | ||
* @returns {number} | ||
*/ | ||
* @returns {number} | ||
*/ | ||
mineEmptyBurnBlock() { | ||
@@ -924,5 +772,5 @@ const ret = wasm.sdk_mineEmptyBurnBlock(this.__wbg_ptr); | ||
/** | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
mineEmptyBurnBlocks(count) { | ||
@@ -933,5 +781,5 @@ const ret = wasm.sdk_mineEmptyBurnBlocks(this.__wbg_ptr, !isLikeNone(count), isLikeNone(count) ? 0 : count); | ||
/** | ||
* @param {string} snippet | ||
* @returns {string} | ||
*/ | ||
* @param {string} snippet | ||
* @returns {string} | ||
*/ | ||
runSnippet(snippet) { | ||
@@ -941,13 +789,9 @@ let deferred2_0; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const ptr0 = passStringToWasm0(snippet, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.sdk_runSnippet(retptr, this.__wbg_ptr, ptr0, len0); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
deferred2_0 = r0; | ||
deferred2_1 = r1; | ||
return getStringFromWasm0(r0, r1); | ||
const ret = wasm.sdk_runSnippet(this.__wbg_ptr, ptr0, len0); | ||
deferred2_0 = ret[0]; | ||
deferred2_1 = ret[1]; | ||
return getStringFromWasm0(ret[0], ret[1]); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); | ||
@@ -957,26 +801,18 @@ } | ||
/** | ||
* @param {string} snippet | ||
* @returns {TransactionRes} | ||
*/ | ||
* @param {string} snippet | ||
* @returns {TransactionRes} | ||
*/ | ||
execute(snippet) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const ptr0 = passStringToWasm0(snippet, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.sdk_execute(retptr, this.__wbg_ptr, ptr0, len0); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return TransactionRes.__wrap(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
const ptr0 = passStringToWasm0(snippet, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
const ret = wasm.sdk_execute(this.__wbg_ptr, ptr0, len0); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return TransactionRes.__wrap(ret[0]); | ||
} | ||
/** | ||
* @param {string} snippet | ||
* @returns {string} | ||
*/ | ||
* @param {string} snippet | ||
* @returns {string} | ||
*/ | ||
executeCommand(snippet) { | ||
@@ -986,13 +822,9 @@ let deferred2_0; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const ptr0 = passStringToWasm0(snippet, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.sdk_executeCommand(retptr, this.__wbg_ptr, ptr0, len0); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
deferred2_0 = r0; | ||
deferred2_1 = r1; | ||
return getStringFromWasm0(r0, r1); | ||
const ret = wasm.sdk_executeCommand(this.__wbg_ptr, ptr0, len0); | ||
deferred2_0 = ret[0]; | ||
deferred2_1 = ret[1]; | ||
return getStringFromWasm0(ret[0], ret[1]); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); | ||
@@ -1002,6 +834,6 @@ } | ||
/** | ||
* @param {string} recipient | ||
* @param {bigint} amount | ||
* @returns {string} | ||
*/ | ||
* @param {string} recipient | ||
* @param {bigint} amount | ||
* @returns {string} | ||
*/ | ||
mintSTX(recipient, amount) { | ||
@@ -1011,15 +843,10 @@ let deferred3_0; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const ptr0 = passStringToWasm0(recipient, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.sdk_mintSTX(retptr, this.__wbg_ptr, ptr0, len0, amount); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
var r3 = getInt32Memory0()[retptr / 4 + 3]; | ||
var ptr2 = r0; | ||
var len2 = r1; | ||
if (r3) { | ||
const ret = wasm.sdk_mintSTX(this.__wbg_ptr, ptr0, len0, amount); | ||
var ptr2 = ret[0]; | ||
var len2 = ret[1]; | ||
if (ret[3]) { | ||
ptr2 = 0; len2 = 0; | ||
throw takeObject(r2); | ||
throw takeFromExternrefTable0(ret[2]); | ||
} | ||
@@ -1030,3 +857,2 @@ deferred3_0 = ptr2; | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1); | ||
@@ -1036,4 +862,4 @@ } | ||
/** | ||
* @param {string} test_name | ||
*/ | ||
* @param {string} test_name | ||
*/ | ||
setCurrentTestName(test_name) { | ||
@@ -1045,22 +871,14 @@ const ptr0 = passStringToWasm0(test_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @param {boolean} include_boot_contracts | ||
* @param {string} boot_contracts_path | ||
* @returns {SessionReport} | ||
*/ | ||
* @param {boolean} include_boot_contracts | ||
* @param {string} boot_contracts_path | ||
* @returns {SessionReport} | ||
*/ | ||
collectReport(include_boot_contracts, boot_contracts_path) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const ptr0 = passStringToWasm0(boot_contracts_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.sdk_collectReport(retptr, this.__wbg_ptr, include_boot_contracts, ptr0, len0); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return SessionReport.__wrap(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
const ptr0 = passStringToWasm0(boot_contracts_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
const ret = wasm.sdk_collectReport(this.__wbg_ptr, include_boot_contracts, ptr0, len0); | ||
if (ret[2]) { | ||
throw takeFromExternrefTable0(ret[1]); | ||
} | ||
return SessionReport.__wrap(ret[0]); | ||
} | ||
@@ -1072,5 +890,4 @@ } | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_sdkoptions_free(ptr >>> 0)); | ||
/** | ||
*/ | ||
: new FinalizationRegistry(ptr => wasm.__wbg_sdkoptions_free(ptr >>> 0, 1)); | ||
class SDKOptions { | ||
@@ -1087,7 +904,7 @@ | ||
const ptr = this.__destroy_into_raw(); | ||
wasm.__wbg_sdkoptions_free(ptr); | ||
wasm.__wbg_sdkoptions_free(ptr, 0); | ||
} | ||
/** | ||
* @returns {boolean} | ||
*/ | ||
* @returns {boolean} | ||
*/ | ||
get trackCosts() { | ||
@@ -1098,4 +915,4 @@ const ret = wasm.__wbg_get_sdkoptions_trackCosts(this.__wbg_ptr); | ||
/** | ||
* @param {boolean} arg0 | ||
*/ | ||
* @param {boolean} arg0 | ||
*/ | ||
set trackCosts(arg0) { | ||
@@ -1105,4 +922,4 @@ wasm.__wbg_set_sdkoptions_trackCosts(this.__wbg_ptr, arg0); | ||
/** | ||
* @returns {boolean} | ||
*/ | ||
* @returns {boolean} | ||
*/ | ||
get trackCoverage() { | ||
@@ -1113,4 +930,4 @@ const ret = wasm.__wbg_get_sdkoptions_trackCoverage(this.__wbg_ptr); | ||
/** | ||
* @param {boolean} arg0 | ||
*/ | ||
* @param {boolean} arg0 | ||
*/ | ||
set trackCoverage(arg0) { | ||
@@ -1120,8 +937,9 @@ wasm.__wbg_set_sdkoptions_trackCoverage(this.__wbg_ptr, arg0); | ||
/** | ||
* @param {boolean} track_costs | ||
* @param {boolean} track_coverage | ||
*/ | ||
* @param {boolean} track_costs | ||
* @param {boolean} track_coverage | ||
*/ | ||
constructor(track_costs, track_coverage) { | ||
const ret = wasm.sdkoptions_new(track_costs, track_coverage); | ||
this.__wbg_ptr = ret >>> 0; | ||
SDKOptionsFinalization.register(this, this.__wbg_ptr, this); | ||
return this; | ||
@@ -1134,5 +952,4 @@ } | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_sessionreport_free(ptr >>> 0)); | ||
/** | ||
*/ | ||
: new FinalizationRegistry(ptr => wasm.__wbg_sessionreport_free(ptr >>> 0, 1)); | ||
class SessionReport { | ||
@@ -1157,7 +974,7 @@ | ||
const ptr = this.__destroy_into_raw(); | ||
wasm.__wbg_sessionreport_free(ptr); | ||
wasm.__wbg_sessionreport_free(ptr, 0); | ||
} | ||
/** | ||
* @returns {string} | ||
*/ | ||
* @returns {string} | ||
*/ | ||
get coverage() { | ||
@@ -1167,11 +984,7 @@ let deferred1_0; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_sessionreport_coverage(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
deferred1_0 = r0; | ||
deferred1_1 = r1; | ||
return getStringFromWasm0(r0, r1); | ||
const ret = wasm.__wbg_get_sessionreport_coverage(this.__wbg_ptr); | ||
deferred1_0 = ret[0]; | ||
deferred1_1 = ret[1]; | ||
return getStringFromWasm0(ret[0], ret[1]); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
@@ -1181,4 +994,4 @@ } | ||
/** | ||
* @param {string} arg0 | ||
*/ | ||
* @param {string} arg0 | ||
*/ | ||
set coverage(arg0) { | ||
@@ -1190,4 +1003,4 @@ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @returns {string} | ||
*/ | ||
* @returns {string} | ||
*/ | ||
get costs() { | ||
@@ -1197,11 +1010,7 @@ let deferred1_0; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_sessionreport_costs(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
deferred1_0 = r0; | ||
deferred1_1 = r1; | ||
return getStringFromWasm0(r0, r1); | ||
const ret = wasm.__wbg_get_sessionreport_costs(this.__wbg_ptr); | ||
deferred1_0 = ret[0]; | ||
deferred1_1 = ret[1]; | ||
return getStringFromWasm0(ret[0], ret[1]); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
@@ -1211,4 +1020,4 @@ } | ||
/** | ||
* @param {string} arg0 | ||
*/ | ||
* @param {string} arg0 | ||
*/ | ||
set costs(arg0) { | ||
@@ -1224,5 +1033,4 @@ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_transactionres_free(ptr >>> 0)); | ||
/** | ||
*/ | ||
: new FinalizationRegistry(ptr => wasm.__wbg_transactionres_free(ptr >>> 0, 1)); | ||
class TransactionRes { | ||
@@ -1247,7 +1055,7 @@ | ||
const ptr = this.__destroy_into_raw(); | ||
wasm.__wbg_transactionres_free(ptr); | ||
wasm.__wbg_transactionres_free(ptr, 0); | ||
} | ||
/** | ||
* @returns {string} | ||
*/ | ||
* @returns {string} | ||
*/ | ||
get result() { | ||
@@ -1257,11 +1065,7 @@ let deferred1_0; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_sessionreport_coverage(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
deferred1_0 = r0; | ||
deferred1_1 = r1; | ||
return getStringFromWasm0(r0, r1); | ||
const ret = wasm.__wbg_get_transactionres_result(this.__wbg_ptr); | ||
deferred1_0 = ret[0]; | ||
deferred1_1 = ret[1]; | ||
return getStringFromWasm0(ret[0], ret[1]); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
@@ -1271,4 +1075,4 @@ } | ||
/** | ||
* @param {string} arg0 | ||
*/ | ||
* @param {string} arg0 | ||
*/ | ||
set result(arg0) { | ||
@@ -1280,4 +1084,4 @@ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @returns {string} | ||
*/ | ||
* @returns {string} | ||
*/ | ||
get events() { | ||
@@ -1287,11 +1091,7 @@ let deferred1_0; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_sessionreport_costs(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
deferred1_0 = r0; | ||
deferred1_1 = r1; | ||
return getStringFromWasm0(r0, r1); | ||
const ret = wasm.__wbg_get_transactionres_events(this.__wbg_ptr); | ||
deferred1_0 = ret[0]; | ||
deferred1_1 = ret[1]; | ||
return getStringFromWasm0(ret[0], ret[1]); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
@@ -1301,4 +1101,4 @@ } | ||
/** | ||
* @param {string} arg0 | ||
*/ | ||
* @param {string} arg0 | ||
*/ | ||
set events(arg0) { | ||
@@ -1314,5 +1114,4 @@ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_transferstxargs_free(ptr >>> 0)); | ||
/** | ||
*/ | ||
: new FinalizationRegistry(ptr => wasm.__wbg_transferstxargs_free(ptr >>> 0, 1)); | ||
class TransferSTXArgs { | ||
@@ -1329,9 +1128,9 @@ | ||
const ptr = this.__destroy_into_raw(); | ||
wasm.__wbg_transferstxargs_free(ptr); | ||
wasm.__wbg_transferstxargs_free(ptr, 0); | ||
} | ||
/** | ||
* @param {bigint} amount | ||
* @param {string} recipient | ||
* @param {string} sender | ||
*/ | ||
* @param {bigint} amount | ||
* @param {string} recipient | ||
* @param {string} sender | ||
*/ | ||
constructor(amount, recipient, sender) { | ||
@@ -1344,2 +1143,3 @@ const ptr0 = passStringToWasm0(recipient, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
this.__wbg_ptr = ret >>> 0; | ||
TransferSTXArgsFinalization.register(this, this.__wbg_ptr, this); | ||
return this; | ||
@@ -1352,5 +1152,4 @@ } | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_txargs_free(ptr >>> 0)); | ||
/** | ||
*/ | ||
: new FinalizationRegistry(ptr => wasm.__wbg_txargs_free(ptr >>> 0, 1)); | ||
class TxArgs { | ||
@@ -1367,3 +1166,3 @@ | ||
const ptr = this.__destroy_into_raw(); | ||
wasm.__wbg_txargs_free(ptr); | ||
wasm.__wbg_txargs_free(ptr, 0); | ||
} | ||
@@ -1373,13 +1172,18 @@ } | ||
module.exports.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
module.exports.__wbindgen_string_new = function(arg0, arg1) { | ||
const ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = arg1; | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
module.exports.__wbindgen_is_string = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'string'; | ||
const ret = typeof(arg0) === 'string'; | ||
return ret; | ||
@@ -1390,26 +1194,12 @@ }; | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_as_number = function(arg0) { | ||
const ret = +getObject(arg0); | ||
const ret = +arg0; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_object_clone_ref = function(arg0) { | ||
const ret = getObject(arg0); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len1 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len1; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr1; | ||
}; | ||
module.exports.__wbindgen_cb_drop = function(arg0) { | ||
const obj = takeObject(arg0).original; | ||
const obj = arg0.original; | ||
if (obj.cnt-- == 1) { | ||
@@ -1424,3 +1214,3 @@ obj.a = 0; | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
const ret = getObject(arg0) === undefined; | ||
const ret = arg0 === undefined; | ||
return ret; | ||
@@ -1431,11 +1221,11 @@ }; | ||
const ret = new Error(); | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) { | ||
const ret = getObject(arg1).stack; | ||
const ret = arg1.stack; | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len1; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr1; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
@@ -1455,15 +1245,10 @@ | ||
module.exports.__wbg_fetch_1e4e8ed1f64c7e28 = function(arg0) { | ||
const ret = fetch(getObject(arg0)); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_fetch_f8d735ba6fe1b719 = typeof fetch == 'function' ? fetch : notDefined('fetch'); | ||
module.exports.__wbg_fetch_921fad6ef9e883dd = function(arg0, arg1) { | ||
const ret = getObject(arg0).fetch(getObject(arg1)); | ||
return addHeapObject(ret); | ||
const ret = arg0.fetch(arg1); | ||
return ret; | ||
}; | ||
module.exports.__wbg_log_5bb5f88f245d7762 = function(arg0) { | ||
console.log(getObject(arg0)); | ||
}; | ||
module.exports.__wbg_log_5bb5f88f245d7762 = typeof console.log == 'function' ? console.log : notDefined('console.log'); | ||
@@ -1473,3 +1258,3 @@ module.exports.__wbg_instanceof_Response_849eb93e75734b6e = function(arg0) { | ||
try { | ||
result = getObject(arg0) instanceof Response; | ||
result = arg0 instanceof Response; | ||
} catch (_) { | ||
@@ -1483,11 +1268,11 @@ result = false; | ||
module.exports.__wbg_url_5f6dc4009ac5f99d = function(arg0, arg1) { | ||
const ret = getObject(arg1).url; | ||
const ret = arg1.url; | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len1; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr1; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
module.exports.__wbg_status_61a01141acd3cf74 = function(arg0) { | ||
const ret = getObject(arg0).status; | ||
const ret = arg0.status; | ||
return ret; | ||
@@ -1497,19 +1282,19 @@ }; | ||
module.exports.__wbg_headers_9620bfada380764a = function(arg0) { | ||
const ret = getObject(arg0).headers; | ||
return addHeapObject(ret); | ||
const ret = arg0.headers; | ||
return ret; | ||
}; | ||
module.exports.__wbg_arrayBuffer_29931d52c7206b02 = function() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).arrayBuffer(); | ||
return addHeapObject(ret); | ||
const ret = arg0.arrayBuffer(); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_newwithstrandinit_3fd6fba4083ff2d0 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_signal_a61f78a3478fd9bc = function(arg0) { | ||
const ret = getObject(arg0).signal; | ||
return addHeapObject(ret); | ||
const ret = arg0.signal; | ||
return ret; | ||
}; | ||
@@ -1519,7 +1304,7 @@ | ||
const ret = new AbortController(); | ||
return addHeapObject(ret); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_abort_2aa7521d5690750e = function(arg0) { | ||
getObject(arg0).abort(); | ||
arg0.abort(); | ||
}; | ||
@@ -1529,11 +1314,11 @@ | ||
const ret = new Headers(); | ||
return addHeapObject(ret); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_append_7bfcb4937d1d5e29 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { | ||
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); | ||
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); | ||
}, arguments) }; | ||
module.exports.__wbindgen_boolean_get = function(arg0) { | ||
const v = getObject(arg0); | ||
const v = arg0; | ||
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; | ||
@@ -1543,18 +1328,16 @@ return ret; | ||
module.exports.__wbg_queueMicrotask_f82fc5d1e8f816ae = function(arg0) { | ||
const ret = getObject(arg0).queueMicrotask; | ||
return addHeapObject(ret); | ||
module.exports.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) { | ||
const ret = arg0.queueMicrotask; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_is_function = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'function'; | ||
const ret = typeof(arg0) === 'function'; | ||
return ret; | ||
}; | ||
module.exports.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) { | ||
queueMicrotask(getObject(arg0)); | ||
}; | ||
module.exports.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask'); | ||
module.exports.__wbindgen_is_object = function(arg0) { | ||
const val = getObject(arg0); | ||
const val = arg0; | ||
const ret = typeof(val) === 'object' && val !== null; | ||
@@ -1565,3 +1348,3 @@ return ret; | ||
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) { | ||
const ret = getObject(arg0) == getObject(arg1); | ||
const ret = arg0 == arg1; | ||
return ret; | ||
@@ -1571,14 +1354,14 @@ }; | ||
module.exports.__wbindgen_number_get = function(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
const obj = arg1; | ||
const ret = typeof(obj) === 'number' ? obj : undefined; | ||
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret; | ||
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); | ||
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); | ||
}; | ||
module.exports.__wbg_String_de2361487bf84fa6 = function(arg0, arg1) { | ||
const ret = String(getObject(arg1)); | ||
module.exports.__wbg_String_b9412f8799faab3e = function(arg0, arg1) { | ||
const ret = String(arg1); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len1; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr1; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
@@ -1588,3 +1371,3 @@ | ||
const ret = arg0; | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
@@ -1594,3 +1377,3 @@ | ||
const ret = BigInt.asUintN(64, arg0); | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
@@ -1600,3 +1383,3 @@ | ||
const ret = arg0 << BigInt(64) | BigInt.asUintN(64, arg1); | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
@@ -1606,102 +1389,102 @@ | ||
const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1); | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
module.exports.__wbg_set_2e973e6a06d4c5c3 = function(arg0, arg1, arg2) { | ||
getObject(arg0)[takeObject(arg1)] = takeObject(arg2); | ||
module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) { | ||
arg0[arg1] = arg2; | ||
}; | ||
module.exports.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) { | ||
const ret = getObject(arg0)[arg1 >>> 0]; | ||
return addHeapObject(ret); | ||
module.exports.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) { | ||
const ret = arg0[arg1 >>> 0]; | ||
return ret; | ||
}; | ||
module.exports.__wbg_length_cd7af8117672b8b8 = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
module.exports.__wbg_length_f217bbbf7e8e4df4 = function(arg0) { | ||
const ret = arg0.length; | ||
return ret; | ||
}; | ||
module.exports.__wbg_new_16b304a2cfa7ff4a = function() { | ||
module.exports.__wbg_new_034f913e7636e987 = function() { | ||
const ret = new Array(); | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
module.exports.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) { | ||
module.exports.__wbg_newnoargs_1ede4bf2ebbaaf43 = function(arg0, arg1) { | ||
const ret = new Function(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
module.exports.__wbg_new_d9bc3a0147634640 = function() { | ||
module.exports.__wbg_new_7a87a0376e40533b = function() { | ||
const ret = new Map(); | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
module.exports.__wbg_next_40fc327bfc8770e6 = function(arg0) { | ||
const ret = getObject(arg0).next; | ||
return addHeapObject(ret); | ||
module.exports.__wbg_next_13b477da1eaa3897 = function(arg0) { | ||
const ret = arg0.next; | ||
return ret; | ||
}; | ||
module.exports.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).next(); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) { | ||
const ret = arg0.next(); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_done_298b57d23c0fc80c = function(arg0) { | ||
const ret = getObject(arg0).done; | ||
module.exports.__wbg_done_983b5ffcaec8c583 = function(arg0) { | ||
const ret = arg0.done; | ||
return ret; | ||
}; | ||
module.exports.__wbg_value_d93c65011f51a456 = function(arg0) { | ||
const ret = getObject(arg0).value; | ||
return addHeapObject(ret); | ||
module.exports.__wbg_value_2ab8a198c834c26a = function(arg0) { | ||
const ret = arg0.value; | ||
return ret; | ||
}; | ||
module.exports.__wbg_iterator_2cee6dadfd956dfa = function() { | ||
module.exports.__wbg_iterator_695d699a44d6234c = function() { | ||
const ret = Symbol.iterator; | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
module.exports.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) { | ||
const ret = Reflect.get(getObject(arg0), getObject(arg1)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_get_ef828680c64da212 = function() { return handleError(function (arg0, arg1) { | ||
const ret = Reflect.get(arg0, arg1); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) { | ||
const ret = getObject(arg0).call(getObject(arg1)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) { | ||
const ret = arg0.call(arg1); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_new_72fb9a18b5ae2624 = function() { | ||
module.exports.__wbg_new_e69b5f66fda8f13c = function() { | ||
const ret = new Object(); | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
module.exports.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () { | ||
module.exports.__wbg_self_bf91bf94d9e04084 = function() { return handleError(function () { | ||
const ret = self.self; | ||
return addHeapObject(ret); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_window_c6fb939a7f436783 = function() { return handleError(function () { | ||
module.exports.__wbg_window_52dd9f07d03fd5f8 = function() { return handleError(function () { | ||
const ret = window.window; | ||
return addHeapObject(ret); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_globalThis_d1e6af4856ba331b = function() { return handleError(function () { | ||
module.exports.__wbg_globalThis_05c129bf37fcf1be = function() { return handleError(function () { | ||
const ret = globalThis.globalThis; | ||
return addHeapObject(ret); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_global_207b558942527489 = function() { return handleError(function () { | ||
module.exports.__wbg_global_3eca19bb09e9c484 = function() { return handleError(function () { | ||
const ret = global.global; | ||
return addHeapObject(ret); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_set_d4638f722068f043 = function(arg0, arg1, arg2) { | ||
getObject(arg0)[arg1 >>> 0] = takeObject(arg2); | ||
module.exports.__wbg_set_425e70f7c64ac962 = function(arg0, arg1, arg2) { | ||
arg0[arg1 >>> 0] = arg2; | ||
}; | ||
module.exports.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) { | ||
module.exports.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7 = function(arg0) { | ||
let result; | ||
try { | ||
result = getObject(arg0) instanceof ArrayBuffer; | ||
result = arg0 instanceof ArrayBuffer; | ||
} catch (_) { | ||
@@ -1714,43 +1497,43 @@ result = false; | ||
module.exports.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = arg0.call(arg1, arg2); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_call_8e7cb608789c2528 = function() { return handleError(function (arg0, arg1, arg2, arg3) { | ||
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_call_5fb7c8066a4a4825 = function() { return handleError(function (arg0, arg1, arg2, arg3) { | ||
const ret = arg0.call(arg1, arg2, arg3); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_set_8417257aaedc936b = function(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_set_277a63e77c89279f = function(arg0, arg1, arg2) { | ||
const ret = arg0.set(arg1, arg2); | ||
return ret; | ||
}; | ||
module.exports.__wbg_getTime_2bc4375165f02d15 = function(arg0) { | ||
const ret = getObject(arg0).getTime(); | ||
module.exports.__wbg_getTime_41225036a0393d63 = function(arg0) { | ||
const ret = arg0.getTime(); | ||
return ret; | ||
}; | ||
module.exports.__wbg_getTimezoneOffset_38257122e236c190 = function(arg0) { | ||
const ret = getObject(arg0).getTimezoneOffset(); | ||
module.exports.__wbg_getTimezoneOffset_93f7d384c8ade3be = function(arg0) { | ||
const ret = arg0.getTimezoneOffset(); | ||
return ret; | ||
}; | ||
module.exports.__wbg_new_cf3ec55744a78578 = function(arg0) { | ||
const ret = new Date(getObject(arg0)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_new_6fb55f037293191b = function(arg0) { | ||
const ret = new Date(arg0); | ||
return ret; | ||
}; | ||
module.exports.__wbg_new0_7d84e5b2cd9fdc73 = function() { | ||
module.exports.__wbg_new0_218ada33b570be35 = function() { | ||
const ret = new Date(); | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
module.exports.__wbg_entries_95cc2c823b285a09 = function(arg0) { | ||
const ret = Object.entries(getObject(arg0)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_entries_c02034de337d3ee2 = function(arg0) { | ||
const ret = Object.entries(arg0); | ||
return ret; | ||
}; | ||
module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) { | ||
module.exports.__wbg_new_1073970097e5a420 = function(arg0, arg1) { | ||
try { | ||
@@ -1762,3 +1545,3 @@ var state0 = {a: arg0, b: arg1}; | ||
try { | ||
return __wbg_adapter_187(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_189(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -1769,3 +1552,3 @@ state0.a = a; | ||
const ret = new Promise(cb0); | ||
return addHeapObject(ret); | ||
return ret; | ||
} finally { | ||
@@ -1776,45 +1559,45 @@ state0.a = state0.b = 0; | ||
module.exports.__wbg_resolve_b0083a7967828ec8 = function(arg0) { | ||
const ret = Promise.resolve(getObject(arg0)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_resolve_0aad7c1484731c99 = function(arg0) { | ||
const ret = Promise.resolve(arg0); | ||
return ret; | ||
}; | ||
module.exports.__wbg_then_0c86a60e8fcfe9f6 = function(arg0, arg1) { | ||
const ret = getObject(arg0).then(getObject(arg1)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_then_748f75edfb032440 = function(arg0, arg1) { | ||
const ret = arg0.then(arg1); | ||
return ret; | ||
}; | ||
module.exports.__wbg_then_a73caa9a87991566 = function(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_then_4866a7d9f55d8f3e = function(arg0, arg1, arg2) { | ||
const ret = arg0.then(arg1, arg2); | ||
return ret; | ||
}; | ||
module.exports.__wbg_buffer_12d079cc21e14bdb = function(arg0) { | ||
const ret = getObject(arg0).buffer; | ||
return addHeapObject(ret); | ||
module.exports.__wbg_buffer_ccaed51a635d8a2d = function(arg0) { | ||
const ret = arg0.buffer; | ||
return ret; | ||
}; | ||
module.exports.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb = function(arg0, arg1, arg2) { | ||
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function(arg0, arg1, arg2) { | ||
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0); | ||
return ret; | ||
}; | ||
module.exports.__wbg_new_63b92bc8671ed464 = function(arg0) { | ||
const ret = new Uint8Array(getObject(arg0)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_new_fec2611eb9180f95 = function(arg0) { | ||
const ret = new Uint8Array(arg0); | ||
return ret; | ||
}; | ||
module.exports.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) { | ||
getObject(arg0).set(getObject(arg1), arg2 >>> 0); | ||
module.exports.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) { | ||
arg0.set(arg1, arg2 >>> 0); | ||
}; | ||
module.exports.__wbg_length_c20a40f15020d68a = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
module.exports.__wbg_length_9254c4bd3b9f23c4 = function(arg0) { | ||
const ret = arg0.length; | ||
return ret; | ||
}; | ||
module.exports.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6 = function(arg0) { | ||
module.exports.__wbg_instanceof_Uint8Array_df0761410414ef36 = function(arg0) { | ||
let result; | ||
try { | ||
result = getObject(arg0) instanceof Uint8Array; | ||
result = arg0 instanceof Uint8Array; | ||
} catch (_) { | ||
@@ -1827,23 +1610,23 @@ result = false; | ||
module.exports.__wbg_has_0af94d20077affa2 = function() { return handleError(function (arg0, arg1) { | ||
const ret = Reflect.has(getObject(arg0), getObject(arg1)); | ||
module.exports.__wbg_stringify_eead5648c09faaf8 = function() { return handleError(function (arg0) { | ||
const ret = JSON.stringify(arg0); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_set_1f9b04f170055d33 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2)); | ||
module.exports.__wbg_has_bd717f25f195f23d = function() { return handleError(function (arg0, arg1) { | ||
const ret = Reflect.has(arg0, arg1); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_stringify_8887fe74e1c50d81 = function() { return handleError(function (arg0) { | ||
const ret = JSON.stringify(getObject(arg0)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_set_e864d25d9b399c9f = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = Reflect.set(arg0, arg1, arg2); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbindgen_debug_string = function(arg0, arg1) { | ||
const ret = debugString(getObject(arg1)); | ||
const ret = debugString(arg1); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len1; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr1; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
@@ -1857,10 +1640,21 @@ | ||
const ret = wasm.memory; | ||
return addHeapObject(ret); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_closure_wrapper2496 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 687, __wbg_adapter_44); | ||
return addHeapObject(ret); | ||
module.exports.__wbindgen_closure_wrapper2493 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 675, __wbg_adapter_46); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_init_externref_table = function() { | ||
const table = wasm.__wbindgen_export_2; | ||
const offset = table.grow(4); | ||
table.set(0, undefined); | ||
table.set(offset + 0, undefined); | ||
table.set(offset + 1, null); | ||
table.set(offset + 2, true); | ||
table.set(offset + 3, false); | ||
; | ||
}; | ||
const path = require('path').join(__dirname, 'clarinet_sdk_bg.wasm'); | ||
@@ -1874,1 +1668,3 @@ const bytes = require('fs').readFileSync(path); | ||
wasm.__wbindgen_start(); | ||
{ | ||
"name": "@hirosystems/clarinet-sdk-wasm", | ||
"description": "The core lib that powers @hirosystems/clarinet-sdk", | ||
"version": "2.10.0", | ||
"version": "2.11.0", | ||
"license": "GPL-3.0", | ||
@@ -6,0 +6,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7989415
1729
4