@hirosystems/clarinet-sdk-wasm
Advanced tools
Comparing version 2.7.0-beta8 to 2.7.0-beta9
@@ -272,2 +272,7 @@ /* tslint:disable */ | ||
/** | ||
* @param {string} snippet | ||
* @returns {string} | ||
*/ | ||
executeCommand(snippet: string): string; | ||
/** | ||
* @param {string} recipient | ||
@@ -274,0 +279,0 @@ * @param {bigint} amount |
@@ -270,3 +270,3 @@ let imports = {}; | ||
} | ||
function __wbg_adapter_178(arg0, arg1, arg2, arg3) { | ||
function __wbg_adapter_179(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h5b5768d1820d3851(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
@@ -851,2 +851,24 @@ } | ||
/** | ||
* @param {string} snippet | ||
* @returns {string} | ||
*/ | ||
executeCommand(snippet) { | ||
let deferred2_0; | ||
let deferred2_1; | ||
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); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); | ||
} | ||
} | ||
/** | ||
* @param {string} recipient | ||
@@ -1564,3 +1586,3 @@ * @param {bigint} amount | ||
try { | ||
return __wbg_adapter_178(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_179(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -1659,4 +1681,4 @@ state0.a = a; | ||
module.exports.__wbindgen_closure_wrapper2588 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 742, __wbg_adapter_44); | ||
module.exports.__wbindgen_closure_wrapper2587 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 741, __wbg_adapter_44); | ||
return addHeapObject(ret); | ||
@@ -1663,0 +1685,0 @@ }; |
{ | ||
"name": "@hirosystems/clarinet-sdk-wasm", | ||
"description": "The core lib that powers @hirosystems/clarinet-sdk", | ||
"version": "2.7.0-beta8", | ||
"version": "2.7.0-beta9", | ||
"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
8028201
1866