@hirosystems/clarinet-sdk-wasm-browser
Advanced tools
Comparing version 2.7.0-beta4 to 2.7.0-beta5
@@ -267,2 +267,8 @@ /* tslint:disable */ | ||
/** | ||
* @param {string} recipient | ||
* @param {bigint} amount | ||
* @returns {string} | ||
*/ | ||
mintSTX(recipient: string, amount: bigint): string; | ||
/** | ||
* @param {string} test_name | ||
@@ -392,2 +398,3 @@ */ | ||
readonly sdk_runSnippet: (a: number, b: number, c: number, d: number) => void; | ||
readonly sdk_mintSTX: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly sdk_setCurrentTestName: (a: number, b: number, c: number) => void; | ||
@@ -394,0 +401,0 @@ readonly sdk_collectReport: (a: number, b: number, c: number, d: number, e: number) => void; |
@@ -267,3 +267,3 @@ let wasm; | ||
} | ||
function __wbg_adapter_176(arg0, arg1, arg2, arg3) { | ||
function __wbg_adapter_177(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h2d78d70b7078fa90(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
@@ -823,2 +823,33 @@ } | ||
/** | ||
* @param {string} recipient | ||
* @param {bigint} amount | ||
* @returns {string} | ||
*/ | ||
mintSTX(recipient, amount) { | ||
let deferred3_0; | ||
let deferred3_1; | ||
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) { | ||
ptr2 = 0; len2 = 0; | ||
throw takeObject(r2); | ||
} | ||
deferred3_0 = ptr2; | ||
deferred3_1 = len2; | ||
return getStringFromWasm0(ptr2, len2); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1); | ||
} | ||
} | ||
/** | ||
* @param {string} test_name | ||
@@ -1467,3 +1498,3 @@ */ | ||
try { | ||
return __wbg_adapter_176(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_177(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -1546,3 +1577,3 @@ state0.a = a; | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper2575 = function(arg0, arg1, arg2) { | ||
imports.wbg.__wbindgen_closure_wrapper2574 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 745, __wbg_adapter_44); | ||
@@ -1549,0 +1580,0 @@ return addHeapObject(ret); |
{ | ||
"name": "@hirosystems/clarinet-sdk-wasm-browser", | ||
"description": "The core lib that powers @hirosystems/clarinet-sdk", | ||
"version": "2.7.0-beta4", | ||
"version": "2.7.0-beta5", | ||
"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
7837307
1945