@hirosystems/clarinet-sdk-wasm
Advanced tools
Comparing version 2.2.0 to 2.3.0-rc1
@@ -24,3 +24,3 @@ /* tslint:disable */ | ||
/** | ||
* @param {number | undefined} clarity_version | ||
* @param {number | undefined} [clarity_version] | ||
*/ | ||
@@ -50,7 +50,7 @@ constructor(clarity_version?: number); | ||
/** | ||
* @param {string} root | ||
* @param {string} cwd | ||
* @param {string} manifest_path | ||
* @returns {Promise<void>} | ||
*/ | ||
initSession(root: string, manifest_path: string): Promise<void>; | ||
initSession(cwd: string, manifest_path: string): Promise<void>; | ||
/** | ||
@@ -129,3 +129,3 @@ * @param {EpochString} epoch | ||
/** | ||
* @param {number | undefined} count | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
@@ -132,0 +132,0 @@ */ |
@@ -6,22 +6,2 @@ let imports = {}; | ||
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 }); | ||
@@ -41,5 +21,12 @@ | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
const heap = new Array(128).fill(undefined); | ||
heap.push(undefined, null, true, false); | ||
let heap_next = heap.length; | ||
function addHeapObject(obj) { | ||
@@ -54,2 +41,4 @@ if (heap_next === heap.length) heap.push(heap.length + 1); | ||
function getObject(idx) { return heap[idx]; } | ||
let WASM_VECTOR_LEN = 0; | ||
@@ -76,3 +65,3 @@ | ||
const buf = cachedTextEncoder.encode(arg); | ||
const ptr = malloc(buf.length); | ||
const ptr = malloc(buf.length, 1) >>> 0; | ||
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf); | ||
@@ -84,3 +73,3 @@ WASM_VECTOR_LEN = buf.length; | ||
let len = arg.length; | ||
let ptr = malloc(len); | ||
let ptr = malloc(len, 1) >>> 0; | ||
@@ -101,3 +90,3 @@ const mem = getUint8Memory0(); | ||
} | ||
ptr = realloc(ptr, len, len = offset + arg.length * 3); | ||
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; | ||
const view = getUint8Memory0().subarray(ptr + offset, ptr + len); | ||
@@ -107,2 +96,3 @@ const ret = encodeString(arg, view); | ||
offset += ret.written; | ||
ptr = realloc(ptr, len, offset, 1) >>> 0; | ||
} | ||
@@ -127,2 +117,14 @@ | ||
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 cachedFloat64Memory0 = null; | ||
@@ -202,2 +204,8 @@ | ||
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(state => { | ||
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b) | ||
}); | ||
function makeMutClosure(arg0, arg1, dtor, f) { | ||
@@ -217,3 +225,3 @@ const state = { a: arg0, b: arg1, cnt: 1, dtor }; | ||
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b); | ||
CLOSURE_DTORS.unregister(state); | ||
} else { | ||
@@ -225,7 +233,7 @@ state.a = a; | ||
real.original = state; | ||
CLOSURE_DTORS.register(real, state, state); | ||
return real; | ||
} | ||
function __wbg_adapter_44(arg0, arg1, arg2) { | ||
wasm.wasm_bindgen__convert__closures__invoke1_mut__hd1baab0aed77bf56(arg0, arg1, addHeapObject(arg2)); | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h129021f2663ac811(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
@@ -243,3 +251,3 @@ | ||
function passArrayJsValueToWasm0(array, malloc) { | ||
const ptr = malloc(array.length * 4); | ||
const ptr = malloc(array.length * 4, 4) >>> 0; | ||
const mem = getUint32Memory0(); | ||
@@ -261,3 +269,3 @@ for (let i = 0; i < array.length; i++) { | ||
function passArray8ToWasm0(arg, malloc) { | ||
const ptr = malloc(arg.length * 1); | ||
const ptr = malloc(arg.length * 1, 1) >>> 0; | ||
getUint8Memory0().set(arg, ptr / 1); | ||
@@ -275,6 +283,9 @@ WASM_VECTOR_LEN = arg.length; | ||
} | ||
function __wbg_adapter_164(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h83ed99dcee9240d4(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
function __wbg_adapter_172(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__hb5eb43bfa2782b7f(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
const CallContractArgsFinalization = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_callcontractargs_free(ptr >>> 0)); | ||
/** | ||
@@ -284,13 +295,6 @@ */ | ||
static __wrap(ptr) { | ||
const obj = Object.create(CallContractArgs.prototype); | ||
obj.ptr = ptr; | ||
return obj; | ||
} | ||
__destroy_into_raw() { | ||
const ptr = this.ptr; | ||
this.ptr = 0; | ||
const ptr = this.__wbg_ptr; | ||
this.__wbg_ptr = 0; | ||
CallContractArgsFinalization.unregister(this); | ||
return ptr; | ||
@@ -319,6 +323,11 @@ } | ||
const ret = wasm.callcontractargs_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3); | ||
return CallContractArgs.__wrap(ret); | ||
this.__wbg_ptr = ret >>> 0; | ||
return this; | ||
} | ||
} | ||
module.exports.CallContractArgs = CallContractArgs; | ||
const ContractOptionsFinalization = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_contractoptions_free(ptr >>> 0)); | ||
/** | ||
@@ -328,13 +337,6 @@ */ | ||
static __wrap(ptr) { | ||
const obj = Object.create(ContractOptions.prototype); | ||
obj.ptr = ptr; | ||
return obj; | ||
} | ||
__destroy_into_raw() { | ||
const ptr = this.ptr; | ||
this.ptr = 0; | ||
const ptr = this.__wbg_ptr; | ||
this.__wbg_ptr = 0; | ||
ContractOptionsFinalization.unregister(this); | ||
return ptr; | ||
@@ -348,10 +350,15 @@ } | ||
/** | ||
* @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); | ||
return ContractOptions.__wrap(ret); | ||
this.__wbg_ptr = ret >>> 0; | ||
return this; | ||
} | ||
} | ||
module.exports.ContractOptions = ContractOptions; | ||
const DeployContractArgsFinalization = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_deploycontractargs_free(ptr >>> 0)); | ||
/** | ||
@@ -361,13 +368,6 @@ */ | ||
static __wrap(ptr) { | ||
const obj = Object.create(DeployContractArgs.prototype); | ||
obj.ptr = ptr; | ||
return obj; | ||
} | ||
__destroy_into_raw() { | ||
const ptr = this.ptr; | ||
this.ptr = 0; | ||
const ptr = this.__wbg_ptr; | ||
this.__wbg_ptr = 0; | ||
DeployContractArgsFinalization.unregister(this); | ||
return ptr; | ||
@@ -396,6 +396,11 @@ } | ||
const ret = wasm.deploycontractargs_new(ptr0, len0, ptr1, len1, ptr2, ptr3, len3); | ||
return DeployContractArgs.__wrap(ret); | ||
this.__wbg_ptr = ret >>> 0; | ||
return this; | ||
} | ||
} | ||
module.exports.DeployContractArgs = DeployContractArgs; | ||
const SDKFinalization = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_sdk_free(ptr >>> 0)); | ||
/** | ||
@@ -405,13 +410,6 @@ */ | ||
static __wrap(ptr) { | ||
const obj = Object.create(SDK.prototype); | ||
obj.ptr = ptr; | ||
return obj; | ||
} | ||
__destroy_into_raw() { | ||
const ptr = this.ptr; | ||
this.ptr = 0; | ||
const ptr = this.__wbg_ptr; | ||
this.__wbg_ptr = 0; | ||
SDKFinalization.unregister(this); | ||
return ptr; | ||
@@ -428,11 +426,15 @@ } | ||
get deployer() { | ||
let deferred1_0; | ||
let deferred1_1; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_sdk_deployer(retptr, this.ptr); | ||
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); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(r0, r1); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
} | ||
@@ -446,3 +448,3 @@ } | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.__wbg_set_sdk_deployer(this.ptr, ptr0, len0); | ||
wasm.__wbg_set_sdk_deployer(this.__wbg_ptr, ptr0, len0); | ||
} | ||
@@ -454,15 +456,16 @@ /** | ||
const ret = wasm.sdk_new(addHeapObject(fs_request)); | ||
return SDK.__wrap(ret); | ||
this.__wbg_ptr = ret >>> 0; | ||
return this; | ||
} | ||
/** | ||
* @param {string} root | ||
* @param {string} cwd | ||
* @param {string} manifest_path | ||
* @returns {Promise<void>} | ||
*/ | ||
initSession(root, manifest_path) { | ||
const ptr0 = passStringToWasm0(root, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
initSession(cwd, manifest_path) { | ||
const ptr0 = passStringToWasm0(cwd, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
const ptr1 = passStringToWasm0(manifest_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len1 = WASM_VECTOR_LEN; | ||
const ret = wasm.sdk_initSession(this.ptr, ptr0, len0, ptr1, len1); | ||
const ret = wasm.sdk_initSession(this.__wbg_ptr, ptr0, len0, ptr1, len1); | ||
return takeObject(ret); | ||
@@ -474,3 +477,3 @@ } | ||
get blockHeight() { | ||
const ret = wasm.sdk_blockHeight(this.ptr); | ||
const ret = wasm.sdk_blockHeight(this.__wbg_ptr); | ||
return ret >>> 0; | ||
@@ -482,11 +485,15 @@ } | ||
get currentEpoch() { | ||
let deferred1_0; | ||
let deferred1_1; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.sdk_currentEpoch(retptr, this.ptr); | ||
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); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(r0, r1); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
} | ||
@@ -498,3 +505,3 @@ } | ||
setEpoch(epoch) { | ||
wasm.sdk_setEpoch(this.ptr, addHeapObject(epoch)); | ||
wasm.sdk_setEpoch(this.__wbg_ptr, addHeapObject(epoch)); | ||
} | ||
@@ -507,3 +514,3 @@ /** | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.sdk_getContractsInterfaces(retptr, this.ptr); | ||
wasm.sdk_getContractsInterfaces(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -529,11 +536,11 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.sdk_getContractSource(retptr, this.ptr, ptr0, len0); | ||
wasm.sdk_getContractSource(retptr, this.__wbg_ptr, ptr0, len0); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
let v1; | ||
let v2; | ||
if (r0 !== 0) { | ||
v1 = getStringFromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_free(r0, r1 * 1); | ||
v2 = getStringFromWasm0(r0, r1).slice(); | ||
wasm.__wbindgen_free(r0, r1 * 1, 1); | ||
} | ||
return v1; | ||
return v2; | ||
} finally { | ||
@@ -552,3 +559,3 @@ wasm.__wbindgen_add_to_stack_pointer(16); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.sdk_getContractAST(retptr, this.ptr, ptr0, len0); | ||
wasm.sdk_getContractAST(retptr, this.__wbg_ptr, ptr0, len0); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -571,3 +578,3 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.sdk_getAssetsMap(retptr, this.ptr); | ||
wasm.sdk_getAssetsMap(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -590,3 +597,3 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.sdk_getAccounts(retptr, this.ptr); | ||
wasm.sdk_getAccounts(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -609,2 +616,4 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
getDataVar(contract, var_name) { | ||
let deferred4_0; | ||
let deferred4_1; | ||
try { | ||
@@ -616,3 +625,3 @@ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const len1 = WASM_VECTOR_LEN; | ||
wasm.sdk_getDataVar(retptr, this.ptr, ptr0, len0, ptr1, len1); | ||
wasm.sdk_getDataVar(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -622,12 +631,14 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r3 = getInt32Memory0()[retptr / 4 + 3]; | ||
var ptr2 = r0; | ||
var len2 = r1; | ||
var ptr3 = r0; | ||
var len3 = r1; | ||
if (r3) { | ||
ptr2 = 0; len2 = 0; | ||
ptr3 = 0; len3 = 0; | ||
throw takeObject(r2); | ||
} | ||
return getStringFromWasm0(ptr2, len2); | ||
deferred4_0 = ptr3; | ||
deferred4_1 = len3; | ||
return getStringFromWasm0(ptr3, len3); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(ptr2, len2); | ||
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1); | ||
} | ||
@@ -639,3 +650,3 @@ } | ||
getBlockTime() { | ||
const ret = wasm.sdk_getBlockTime(this.ptr); | ||
const ret = wasm.sdk_getBlockTime(this.__wbg_ptr); | ||
return BigInt.asUintN(64, ret); | ||
@@ -650,2 +661,4 @@ } | ||
getMapEntry(contract, map_name, map_key) { | ||
let deferred5_0; | ||
let deferred5_1; | ||
try { | ||
@@ -659,3 +672,3 @@ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const len2 = WASM_VECTOR_LEN; | ||
wasm.sdk_getMapEntry(retptr, this.ptr, ptr0, len0, ptr1, len1, ptr2, len2); | ||
wasm.sdk_getMapEntry(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -665,12 +678,14 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r3 = getInt32Memory0()[retptr / 4 + 3]; | ||
var ptr3 = r0; | ||
var len3 = r1; | ||
var ptr4 = r0; | ||
var len4 = r1; | ||
if (r3) { | ||
ptr3 = 0; len3 = 0; | ||
ptr4 = 0; len4 = 0; | ||
throw takeObject(r2); | ||
} | ||
return getStringFromWasm0(ptr3, len3); | ||
deferred5_0 = ptr4; | ||
deferred5_1 = len4; | ||
return getStringFromWasm0(ptr4, len4); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(ptr3, len3); | ||
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1); | ||
} | ||
@@ -686,3 +701,3 @@ } | ||
_assertClass(args, CallContractArgs); | ||
wasm.sdk_callReadOnlyFn(retptr, this.ptr, args.ptr); | ||
wasm.sdk_callReadOnlyFn(retptr, this.__wbg_ptr, args.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -707,3 +722,3 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
_assertClass(args, DeployContractArgs); | ||
wasm.sdk_deployContract(retptr, this.ptr, args.ptr); | ||
wasm.sdk_deployContract(retptr, this.__wbg_ptr, args.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -728,3 +743,3 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
_assertClass(args, TransferSTXArgs); | ||
wasm.sdk_transferSTX(retptr, this.ptr, args.ptr); | ||
wasm.sdk_transferSTX(retptr, this.__wbg_ptr, args.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -749,3 +764,3 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
_assertClass(args, CallContractArgs); | ||
wasm.sdk_callPublicFn(retptr, this.ptr, args.ptr); | ||
wasm.sdk_callPublicFn(retptr, this.__wbg_ptr, args.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -769,3 +784,3 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.sdk_mineBlock(retptr, this.ptr, addHeapObject(js_txs)); | ||
wasm.sdk_mineBlock(retptr, this.__wbg_ptr, addHeapObject(js_txs)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -786,11 +801,11 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
mineEmptyBlock() { | ||
const ret = wasm.sdk_mineEmptyBlock(this.ptr); | ||
const ret = wasm.sdk_mineEmptyBlock(this.__wbg_ptr); | ||
return ret >>> 0; | ||
} | ||
/** | ||
* @param {number | undefined} count | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
mineEmptyBlocks(count) { | ||
const ret = wasm.sdk_mineEmptyBlocks(this.ptr, !isLikeNone(count), isLikeNone(count) ? 0 : count); | ||
const ret = wasm.sdk_mineEmptyBlocks(this.__wbg_ptr, !isLikeNone(count), isLikeNone(count) ? 0 : count); | ||
return ret >>> 0; | ||
@@ -803,2 +818,4 @@ } | ||
runSnippet(snippet) { | ||
let deferred2_0; | ||
let deferred2_1; | ||
try { | ||
@@ -808,9 +825,11 @@ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.sdk_runSnippet(retptr, this.ptr, ptr0, len0); | ||
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); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(r0, r1); | ||
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); | ||
} | ||
@@ -824,3 +843,3 @@ } | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.sdk_setCurrentTestName(this.ptr, ptr0, len0); | ||
wasm.sdk_setCurrentTestName(this.__wbg_ptr, ptr0, len0); | ||
} | ||
@@ -833,3 +852,3 @@ /** | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.sdk_collectReport(retptr, this.ptr); | ||
wasm.sdk_collectReport(retptr, this.__wbg_ptr); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -848,2 +867,6 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
module.exports.SDK = SDK; | ||
const SessionReportFinalization = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_sessionreport_free(ptr >>> 0)); | ||
/** | ||
@@ -854,5 +877,6 @@ */ | ||
static __wrap(ptr) { | ||
ptr = ptr >>> 0; | ||
const obj = Object.create(SessionReport.prototype); | ||
obj.ptr = ptr; | ||
obj.__wbg_ptr = ptr; | ||
SessionReportFinalization.register(obj, obj.__wbg_ptr, obj); | ||
return obj; | ||
@@ -862,5 +886,5 @@ } | ||
__destroy_into_raw() { | ||
const ptr = this.ptr; | ||
this.ptr = 0; | ||
const ptr = this.__wbg_ptr; | ||
this.__wbg_ptr = 0; | ||
SessionReportFinalization.unregister(this); | ||
return ptr; | ||
@@ -877,11 +901,15 @@ } | ||
get coverage() { | ||
let deferred1_0; | ||
let deferred1_1; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_sessionreport_coverage(retptr, this.ptr); | ||
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); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(r0, r1); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
} | ||
@@ -895,3 +923,3 @@ } | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.__wbg_set_sessionreport_coverage(this.ptr, ptr0, len0); | ||
wasm.__wbg_set_sessionreport_coverage(this.__wbg_ptr, ptr0, len0); | ||
} | ||
@@ -902,11 +930,15 @@ /** | ||
get costs() { | ||
let deferred1_0; | ||
let deferred1_1; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_sessionreport_costs(retptr, this.ptr); | ||
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); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(r0, r1); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
} | ||
@@ -920,6 +952,10 @@ } | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.__wbg_set_sessionreport_costs(this.ptr, ptr0, len0); | ||
wasm.__wbg_set_sessionreport_costs(this.__wbg_ptr, ptr0, len0); | ||
} | ||
} | ||
module.exports.SessionReport = SessionReport; | ||
const TransactionResFinalization = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_transactionres_free(ptr >>> 0)); | ||
/** | ||
@@ -930,5 +966,6 @@ */ | ||
static __wrap(ptr) { | ||
ptr = ptr >>> 0; | ||
const obj = Object.create(TransactionRes.prototype); | ||
obj.ptr = ptr; | ||
obj.__wbg_ptr = ptr; | ||
TransactionResFinalization.register(obj, obj.__wbg_ptr, obj); | ||
return obj; | ||
@@ -938,5 +975,5 @@ } | ||
__destroy_into_raw() { | ||
const ptr = this.ptr; | ||
this.ptr = 0; | ||
const ptr = this.__wbg_ptr; | ||
this.__wbg_ptr = 0; | ||
TransactionResFinalization.unregister(this); | ||
return ptr; | ||
@@ -953,11 +990,15 @@ } | ||
get result() { | ||
let deferred1_0; | ||
let deferred1_1; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_sessionreport_coverage(retptr, this.ptr); | ||
wasm.__wbg_get_transactionres_result(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); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(r0, r1); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
} | ||
@@ -971,3 +1012,3 @@ } | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.__wbg_set_sessionreport_coverage(this.ptr, ptr0, len0); | ||
wasm.__wbg_set_transactionres_result(this.__wbg_ptr, ptr0, len0); | ||
} | ||
@@ -978,11 +1019,15 @@ /** | ||
get events() { | ||
let deferred1_0; | ||
let deferred1_1; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.__wbg_get_sessionreport_costs(retptr, this.ptr); | ||
wasm.__wbg_get_transactionres_events(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); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(r0, r1); | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
} | ||
@@ -996,6 +1041,10 @@ } | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.__wbg_set_sessionreport_costs(this.ptr, ptr0, len0); | ||
wasm.__wbg_set_transactionres_events(this.__wbg_ptr, ptr0, len0); | ||
} | ||
} | ||
module.exports.TransactionRes = TransactionRes; | ||
const TransferSTXArgsFinalization = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_transferstxargs_free(ptr >>> 0)); | ||
/** | ||
@@ -1005,13 +1054,6 @@ */ | ||
static __wrap(ptr) { | ||
const obj = Object.create(TransferSTXArgs.prototype); | ||
obj.ptr = ptr; | ||
return obj; | ||
} | ||
__destroy_into_raw() { | ||
const ptr = this.ptr; | ||
this.ptr = 0; | ||
const ptr = this.__wbg_ptr; | ||
this.__wbg_ptr = 0; | ||
TransferSTXArgsFinalization.unregister(this); | ||
return ptr; | ||
@@ -1035,6 +1077,11 @@ } | ||
const ret = wasm.transferstxargs_new(amount, ptr0, len0, ptr1, len1); | ||
return TransferSTXArgs.__wrap(ret); | ||
this.__wbg_ptr = ret >>> 0; | ||
return this; | ||
} | ||
} | ||
module.exports.TransferSTXArgs = TransferSTXArgs; | ||
const TxArgsFinalization = (typeof FinalizationRegistry === 'undefined') | ||
? { register: () => {}, unregister: () => {} } | ||
: new FinalizationRegistry(ptr => wasm.__wbg_txargs_free(ptr >>> 0)); | ||
/** | ||
@@ -1045,5 +1092,5 @@ */ | ||
__destroy_into_raw() { | ||
const ptr = this.ptr; | ||
this.ptr = 0; | ||
const ptr = this.__wbg_ptr; | ||
this.__wbg_ptr = 0; | ||
TxArgsFinalization.unregister(this); | ||
return ptr; | ||
@@ -1059,20 +1106,2 @@ } | ||
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); | ||
}; | ||
module.exports.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr0; | ||
}; | ||
module.exports.__wbindgen_error_new = function(arg0, arg1) { | ||
@@ -1083,7 +1112,2 @@ const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
module.exports.__wbindgen_is_string = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'string'; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
@@ -1099,2 +1123,11 @@ const ret = getObject(arg0) === undefined; | ||
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_object_clone_ref = function(arg0) { | ||
@@ -1105,10 +1138,12 @@ const ret = getObject(arg0); | ||
module.exports.__wbindgen_cb_drop = function(arg0) { | ||
const obj = takeObject(arg0).original; | ||
if (obj.cnt-- == 1) { | ||
obj.a = 0; | ||
return true; | ||
module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) { | ||
let deferred0_0; | ||
let deferred0_1; | ||
try { | ||
deferred0_0 = arg0; | ||
deferred0_1 = arg1; | ||
console.error(getStringFromWasm0(arg0, arg1)); | ||
} finally { | ||
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); | ||
} | ||
const ret = false; | ||
return ret; | ||
}; | ||
@@ -1123,14 +1158,11 @@ | ||
const ret = getObject(arg1).stack; | ||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr0; | ||
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; | ||
}; | ||
module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) { | ||
try { | ||
console.error(getStringFromWasm0(arg0, arg1)); | ||
} finally { | ||
wasm.__wbindgen_free(arg0, arg1); | ||
} | ||
module.exports.__wbindgen_string_new = function(arg0, arg1) { | ||
const ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
@@ -1143,9 +1175,14 @@ | ||
module.exports.__wbg_fetch_661ffba2a4f2519c = function(arg0, arg1) { | ||
const ret = getObject(arg0).fetch(getObject(arg1)); | ||
module.exports.__wbg_signal_686bf5a4acff74a1 = function(arg0) { | ||
const ret = getObject(arg0).signal; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_log_7bb108d119bafbc1 = function(arg0) { | ||
console.log(getObject(arg0)); | ||
module.exports.__wbg_new_a16bcd3b8d000a4f = function() { return handleError(function () { | ||
const ret = new AbortController(); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_abort_5f06bf3b2954cf33 = function(arg0) { | ||
getObject(arg0).abort(); | ||
}; | ||
@@ -1158,14 +1195,9 @@ | ||
module.exports.__wbg_signal_686bf5a4acff74a1 = function(arg0) { | ||
const ret = getObject(arg0).signal; | ||
return addHeapObject(ret); | ||
module.exports.__wbg_log_7bb108d119bafbc1 = function(arg0) { | ||
console.log(getObject(arg0)); | ||
}; | ||
module.exports.__wbg_new_a16bcd3b8d000a4f = function() { return handleError(function () { | ||
const ret = new AbortController(); | ||
module.exports.__wbg_fetch_661ffba2a4f2519c = function(arg0, arg1) { | ||
const ret = getObject(arg0).fetch(getObject(arg1)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_abort_5f06bf3b2954cf33 = function(arg0) { | ||
getObject(arg0).abort(); | ||
}; | ||
@@ -1186,3 +1218,3 @@ | ||
result = getObject(arg0) instanceof Response; | ||
} catch { | ||
} catch (_) { | ||
result = false; | ||
@@ -1196,6 +1228,6 @@ } | ||
const ret = getObject(arg1).url; | ||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr0; | ||
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; | ||
}; | ||
@@ -1224,13 +1256,26 @@ | ||
module.exports.__wbindgen_is_object = function(arg0) { | ||
const val = getObject(arg0); | ||
const ret = typeof(val) === 'object' && val !== null; | ||
module.exports.__wbindgen_is_function = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'function'; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) { | ||
const ret = getObject(arg0) == getObject(arg1); | ||
module.exports.__wbindgen_cb_drop = function(arg0) { | ||
const obj = takeObject(arg0).original; | ||
if (obj.cnt-- == 1) { | ||
obj.a = 0; | ||
return true; | ||
} | ||
const ret = false; | ||
return ret; | ||
}; | ||
module.exports.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) { | ||
queueMicrotask(getObject(arg0)); | ||
}; | ||
module.exports.__wbg_queueMicrotask_f82fc5d1e8f816ae = function(arg0) { | ||
const ret = getObject(arg0).queueMicrotask; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_number_get = function(arg0, arg1) { | ||
@@ -1243,10 +1288,2 @@ const obj = getObject(arg1); | ||
module.exports.__wbg_String_4370c5505c674d30 = function(arg0, arg1) { | ||
const ret = String(getObject(arg1)); | ||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr0; | ||
}; | ||
module.exports.__wbindgen_number_new = function(arg0) { | ||
@@ -1257,2 +1294,13 @@ const ret = arg0; | ||
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) { | ||
const ret = getObject(arg0) == getObject(arg1); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_is_object = function(arg0) { | ||
const val = getObject(arg0); | ||
const ret = typeof(val) === 'object' && val !== null; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_bigint_from_u64 = function(arg0) { | ||
@@ -1273,17 +1321,20 @@ const ret = BigInt.asUintN(64, arg0); | ||
module.exports.__wbg_set_bd72c078edfa51ad = function(arg0, arg1, arg2) { | ||
getObject(arg0)[takeObject(arg1)] = takeObject(arg2); | ||
module.exports.__wbg_String_de2361487bf84fa6 = function(arg0, arg1) { | ||
const ret = String(getObject(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; | ||
}; | ||
module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) { | ||
const ret = getObject(arg0)[arg1 >>> 0]; | ||
return addHeapObject(ret); | ||
module.exports.__wbg_set_2e973e6a06d4c5c3 = function(arg0, arg1, arg2) { | ||
getObject(arg0)[takeObject(arg1)] = takeObject(arg2); | ||
}; | ||
module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
module.exports.__wbindgen_is_string = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'string'; | ||
return ret; | ||
}; | ||
module.exports.__wbg_new_b525de17f44a8943 = function() { | ||
module.exports.__wbg_new_75208e29bddfd88c = function() { | ||
const ret = new Array(); | ||
@@ -1293,108 +1344,88 @@ return addHeapObject(ret); | ||
module.exports.__wbindgen_is_function = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'function'; | ||
return ret; | ||
module.exports.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) { | ||
const ret = getObject(arg0)[arg1 >>> 0]; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) { | ||
const ret = new Function(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_set_79c308ecd9a1d091 = function(arg0, arg1, arg2) { | ||
getObject(arg0)[arg1 >>> 0] = takeObject(arg2); | ||
}; | ||
module.exports.__wbg_new_f841cc6f2098f4b5 = function() { | ||
const ret = new Map(); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_isArray_e783c41d0dd19b44 = function(arg0) { | ||
const ret = Array.isArray(getObject(arg0)); | ||
return ret; | ||
}; | ||
module.exports.__wbg_next_b7d530c04fd8b217 = function(arg0) { | ||
const ret = getObject(arg0).next; | ||
return addHeapObject(ret); | ||
module.exports.__wbg_length_161c0d89c6535c1d = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
return ret; | ||
}; | ||
module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).next(); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) { | ||
const ret = getObject(arg0).done; | ||
module.exports.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) { | ||
let result; | ||
try { | ||
result = getObject(arg0) instanceof ArrayBuffer; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
}; | ||
module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) { | ||
const ret = getObject(arg0).value; | ||
module.exports.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) { | ||
const ret = new Function(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_iterator_55f114446221aa5a = function() { | ||
const ret = Symbol.iterator; | ||
module.exports.__wbg_call_3f093dd26d5569f8 = function() { return handleError(function (arg0, arg1) { | ||
const ret = getObject(arg0).call(getObject(arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
}, arguments) }; | ||
module.exports.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) { | ||
const ret = Reflect.get(getObject(arg0), getObject(arg1)); | ||
module.exports.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) { | ||
const ret = getObject(arg0).call(getObject(arg1)); | ||
module.exports.__wbg_call_ef6edd65b3d356b6 = function() { return handleError(function (arg0, arg1, arg2, arg3) { | ||
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_new_f9876326328f45ed = function() { | ||
const ret = new Object(); | ||
module.exports.__wbg_new_d1cc518eff6805bb = function() { | ||
const ret = new Map(); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () { | ||
const ret = self.self; | ||
module.exports.__wbg_set_e4cfc2763115ffc7 = function(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
}; | ||
module.exports.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () { | ||
const ret = window.window; | ||
module.exports.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).next(); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () { | ||
const ret = globalThis.globalThis; | ||
module.exports.__wbg_next_586204376d2ed373 = function(arg0) { | ||
const ret = getObject(arg0).next; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_global_c85a9259e621f3db = function() { return handleError(function () { | ||
const ret = global.global; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) { | ||
getObject(arg0)[arg1 >>> 0] = takeObject(arg2); | ||
}; | ||
module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) { | ||
let result; | ||
try { | ||
result = getObject(arg0) instanceof ArrayBuffer; | ||
} catch { | ||
result = false; | ||
} | ||
const ret = result; | ||
module.exports.__wbg_done_90b14d6f6eacc42f = function(arg0) { | ||
const ret = getObject(arg0).done; | ||
return ret; | ||
}; | ||
module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); | ||
module.exports.__wbg_value_3158be908c80a75e = function(arg0) { | ||
const ret = getObject(arg0).value; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
}; | ||
module.exports.__wbg_call_96878afb7a8201ca = function() { return handleError(function (arg0, arg1, arg2, arg3) { | ||
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_set_388c4c6422704173 = function(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
module.exports.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) { | ||
const ret = Number.isSafeInteger(getObject(arg0)); | ||
return ret; | ||
}; | ||
module.exports.__wbg_getTime_7c59072d1651a3cf = function(arg0) { | ||
module.exports.__wbg_getTime_0e03c3f524be31ef = function(arg0) { | ||
const ret = getObject(arg0).getTime(); | ||
@@ -1404,3 +1435,3 @@ return ret; | ||
module.exports.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) { | ||
module.exports.__wbg_getTimezoneOffset_840b552f34917133 = function(arg0) { | ||
const ret = getObject(arg0).getTimezoneOffset(); | ||
@@ -1410,3 +1441,3 @@ return ret; | ||
module.exports.__wbg_new_f127e324c1313064 = function(arg0) { | ||
module.exports.__wbg_new_a9d80688888b4894 = function(arg0) { | ||
const ret = new Date(getObject(arg0)); | ||
@@ -1416,3 +1447,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_new0_25059e40b1c02766 = function() { | ||
module.exports.__wbg_new0_7a6141101f2206da = function() { | ||
const ret = new Date(); | ||
@@ -1422,3 +1453,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_entries_4e1315b774245952 = function(arg0) { | ||
module.exports.__wbg_entries_488960b196cfb6a5 = function(arg0) { | ||
const ret = Object.entries(getObject(arg0)); | ||
@@ -1428,3 +1459,13 @@ return addHeapObject(ret); | ||
module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) { | ||
module.exports.__wbg_new_632630b5cec17f21 = function() { | ||
const ret = new Object(); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_iterator_40027cdd598da26b = function() { | ||
const ret = Symbol.iterator; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) { | ||
try { | ||
@@ -1436,3 +1477,3 @@ var state0 = {a: arg0, b: arg1}; | ||
try { | ||
return __wbg_adapter_164(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_172(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -1449,3 +1490,3 @@ state0.a = a; | ||
module.exports.__wbg_resolve_fd40f858d9db1a04 = function(arg0) { | ||
module.exports.__wbg_resolve_5da6faf2c96fd1d5 = function(arg0) { | ||
const ret = Promise.resolve(getObject(arg0)); | ||
@@ -1455,3 +1496,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) { | ||
module.exports.__wbg_then_f9e58f5a50f43eae = function(arg0, arg1) { | ||
const ret = getObject(arg0).then(getObject(arg1)); | ||
@@ -1461,3 +1502,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_then_f753623316e2873a = function(arg0, arg1, arg2) { | ||
module.exports.__wbg_then_20a5920e447d1cb1 = function(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2)); | ||
@@ -1467,13 +1508,34 @@ return addHeapObject(ret); | ||
module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) { | ||
const ret = getObject(arg0).buffer; | ||
module.exports.__wbg_globalThis_622105db80c1457d = function() { return handleError(function () { | ||
const ret = globalThis.globalThis; | ||
return addHeapObject(ret); | ||
}; | ||
}, arguments) }; | ||
module.exports.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) { | ||
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); | ||
module.exports.__wbg_self_05040bd9523805b9 = function() { return handleError(function () { | ||
const ret = self.self; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_window_adc720039f2cb14f = function() { return handleError(function () { | ||
const ret = window.window; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_global_f56b013ed9bcf359 = function() { return handleError(function () { | ||
const ret = global.global; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_instanceof_Uint8Array_c299a4ee232e76ba = function(arg0) { | ||
let result; | ||
try { | ||
result = getObject(arg0) instanceof Uint8Array; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
}; | ||
module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) { | ||
module.exports.__wbg_new_b1f2d6842d615181 = function(arg0) { | ||
const ret = new Uint8Array(getObject(arg0)); | ||
@@ -1483,7 +1545,8 @@ return addHeapObject(ret); | ||
module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) { | ||
getObject(arg0).set(getObject(arg1), arg2 >>> 0); | ||
module.exports.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) { | ||
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) { | ||
module.exports.__wbg_length_21c4b0ae73cba59d = function(arg0) { | ||
const ret = getObject(arg0).length; | ||
@@ -1493,14 +1556,12 @@ return ret; | ||
module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) { | ||
let result; | ||
try { | ||
result = getObject(arg0) instanceof Uint8Array; | ||
} catch { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
module.exports.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) { | ||
getObject(arg0).set(getObject(arg1), arg2 >>> 0); | ||
}; | ||
module.exports.__wbg_stringify_029a979dfb73aa17 = function() { return handleError(function (arg0) { | ||
module.exports.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) { | ||
const ret = getObject(arg0).buffer; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_stringify_865daa6fb8c83d5a = function() { return handleError(function (arg0) { | ||
const ret = JSON.stringify(getObject(arg0)); | ||
@@ -1510,3 +1571,8 @@ return addHeapObject(ret); | ||
module.exports.__wbg_has_3feea89d34bd7ad5 = function() { return handleError(function (arg0, arg1) { | ||
module.exports.__wbg_get_3fddfed2c83f434c = function() { return handleError(function (arg0, arg1) { | ||
const ret = Reflect.get(getObject(arg0), getObject(arg1)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_has_ad45eb020184f624 = function() { return handleError(function (arg0, arg1) { | ||
const ret = Reflect.has(getObject(arg0), getObject(arg1)); | ||
@@ -1516,3 +1582,3 @@ return ret; | ||
module.exports.__wbg_set_6aa458a4ebdb65cb = function() { return handleError(function (arg0, arg1, arg2) { | ||
module.exports.__wbg_set_961700853a212a39 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2)); | ||
@@ -1524,8 +1590,12 @@ return ret; | ||
const ret = debugString(getObject(arg1)); | ||
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
getInt32Memory0()[arg0 / 4 + 1] = len0; | ||
getInt32Memory0()[arg0 / 4 + 0] = ptr0; | ||
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; | ||
}; | ||
module.exports.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
module.exports.__wbindgen_throw = function(arg0, arg1) { | ||
@@ -1540,4 +1610,4 @@ throw new Error(getStringFromWasm0(arg0, arg1)); | ||
module.exports.__wbindgen_closure_wrapper2099 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 642, __wbg_adapter_44); | ||
module.exports.__wbindgen_closure_wrapper14092 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 746, __wbg_adapter_44); | ||
return addHeapObject(ret); | ||
@@ -1544,0 +1614,0 @@ }; |
{ | ||
"name": "@hirosystems/clarinet-sdk-wasm", | ||
"description": "The core lib that powers @hirosystems/clarinet-sdk", | ||
"version": "2.2.0", | ||
"version": "2.3.0-rc1", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
28793827
1563
2