@hirosystems/clarinet-sdk-wasm
Advanced tools
Comparing version 2.8.0-beta6 to 2.8.0-beta7
@@ -270,2 +270,20 @@ /* tslint:disable */ | ||
/** | ||
* @returns {number} | ||
*/ | ||
mineEmptyStacksBlock(): number; | ||
/** | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
mineEmptyStacksBlocks(count?: number): number; | ||
/** | ||
* @returns {number} | ||
*/ | ||
mineEmptyBurnBlock(): number; | ||
/** | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
mineEmptyBurnBlocks(count?: number): number; | ||
/** | ||
* @param {string} snippet | ||
@@ -306,2 +324,5 @@ * @returns {string} | ||
*/ | ||
readonly burnBlockHeight: number; | ||
/** | ||
*/ | ||
readonly currentEpoch: string; | ||
@@ -311,2 +332,5 @@ /** | ||
deployer: string; | ||
/** | ||
*/ | ||
readonly stacksBlockHeight: number; | ||
} | ||
@@ -313,0 +337,0 @@ /** |
@@ -227,3 +227,3 @@ let imports = {}; | ||
function __wbg_adapter_44(arg0, arg1, arg2) { | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h122e58737f156e20(arg0, arg1, addHeapObject(arg2)); | ||
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2ddafc82a2e90d96(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
@@ -271,4 +271,4 @@ | ||
} | ||
function __wbg_adapter_181(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h5b5768d1820d3851(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
function __wbg_adapter_187(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h1e1dbd1c976ddc82(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
@@ -491,2 +491,16 @@ | ||
/** | ||
* @returns {number} | ||
*/ | ||
get stacksBlockHeight() { | ||
const ret = wasm.sdk_blockHeight(this.__wbg_ptr); | ||
return ret >>> 0; | ||
} | ||
/** | ||
* @returns {number} | ||
*/ | ||
get burnBlockHeight() { | ||
const ret = wasm.sdk_burnBlockHeight(this.__wbg_ptr); | ||
return ret >>> 0; | ||
} | ||
/** | ||
* @returns {string} | ||
@@ -824,2 +838,54 @@ */ | ||
/** | ||
* @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); | ||
} | ||
} | ||
/** | ||
* @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); | ||
} | ||
} | ||
/** | ||
* @returns {number} | ||
*/ | ||
mineEmptyBurnBlock() { | ||
const ret = wasm.sdk_mineEmptyBurnBlock(this.__wbg_ptr); | ||
return ret >>> 0; | ||
} | ||
/** | ||
* @param {number | undefined} [count] | ||
* @returns {number} | ||
*/ | ||
mineEmptyBurnBlocks(count) { | ||
const ret = wasm.sdk_mineEmptyBurnBlocks(this.__wbg_ptr, !isLikeNone(count), isLikeNone(count) ? 0 : count); | ||
return ret >>> 0; | ||
} | ||
/** | ||
* @param {string} snippet | ||
@@ -1260,2 +1326,7 @@ * @returns {string} | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
const ret = getObject(arg0) === undefined; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_cb_drop = function(arg0) { | ||
@@ -1271,7 +1342,2 @@ const obj = takeObject(arg0).original; | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
const ret = getObject(arg0) === undefined; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_string_get = function(arg0, arg1) { | ||
@@ -1321,25 +1387,2 @@ const obj = getObject(arg1); | ||
module.exports.__wbg_signal_a61f78a3478fd9bc = function(arg0) { | ||
const ret = getObject(arg0).signal; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_new_0d76b0581eca6298 = function() { return handleError(function () { | ||
const ret = new AbortController(); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_abort_2aa7521d5690750e = function(arg0) { | ||
getObject(arg0).abort(); | ||
}; | ||
module.exports.__wbg_new_ab6fd82b10560829 = function() { return handleError(function () { | ||
const ret = new Headers(); | ||
return addHeapObject(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)); | ||
}, arguments) }; | ||
module.exports.__wbg_log_5bb5f88f245d7762 = function(arg0) { | ||
@@ -1349,7 +1392,2 @@ console.log(getObject(arg0)); | ||
module.exports.__wbg_newwithstrandinit_3fd6fba4083ff2d0 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_instanceof_Response_849eb93e75734b6e = function(arg0) { | ||
@@ -1389,2 +1427,30 @@ let result; | ||
module.exports.__wbg_signal_a61f78a3478fd9bc = function(arg0) { | ||
const ret = getObject(arg0).signal; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_new_0d76b0581eca6298 = function() { return handleError(function () { | ||
const ret = new AbortController(); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_abort_2aa7521d5690750e = function(arg0) { | ||
getObject(arg0).abort(); | ||
}; | ||
module.exports.__wbg_new_ab6fd82b10560829 = function() { return handleError(function () { | ||
const ret = new Headers(); | ||
return addHeapObject(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)); | ||
}, 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); | ||
}, arguments) }; | ||
module.exports.__wbindgen_boolean_get = function(arg0) { | ||
@@ -1410,20 +1476,2 @@ const v = getObject(arg0); | ||
module.exports.__wbindgen_is_object = function(arg0) { | ||
const val = getObject(arg0); | ||
const ret = typeof(val) === 'object' && val !== null; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) { | ||
const ret = getObject(arg0) == getObject(arg1); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_number_get = function(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
const ret = typeof(obj) === 'number' ? obj : undefined; | ||
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret; | ||
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); | ||
}; | ||
module.exports.__wbindgen_number_new = function(arg0) { | ||
@@ -1449,6 +1497,20 @@ const ret = arg0; | ||
module.exports.__wbg_set_2e973e6a06d4c5c3 = function(arg0, arg1, arg2) { | ||
getObject(arg0)[takeObject(arg1)] = takeObject(arg2); | ||
module.exports.__wbindgen_is_object = function(arg0) { | ||
const val = getObject(arg0); | ||
const ret = typeof(val) === 'object' && val !== null; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) { | ||
const ret = getObject(arg0) == getObject(arg1); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_number_get = function(arg0, arg1) { | ||
const obj = getObject(arg1); | ||
const ret = typeof(obj) === 'number' ? obj : undefined; | ||
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret; | ||
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret); | ||
}; | ||
module.exports.__wbg_String_de2361487bf84fa6 = function(arg0, arg1) { | ||
@@ -1462,2 +1524,6 @@ const ret = String(getObject(arg1)); | ||
module.exports.__wbg_set_2e973e6a06d4c5c3 = function(arg0, arg1, arg2) { | ||
getObject(arg0)[takeObject(arg1)] = takeObject(arg2); | ||
}; | ||
module.exports.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) { | ||
@@ -1610,3 +1676,3 @@ const ret = getObject(arg0)[arg1 >>> 0]; | ||
try { | ||
return __wbg_adapter_181(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_187(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -1705,4 +1771,4 @@ state0.a = a; | ||
module.exports.__wbindgen_closure_wrapper2588 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 746, __wbg_adapter_44); | ||
module.exports.__wbindgen_closure_wrapper2511 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 662, __wbg_adapter_44); | ||
return addHeapObject(ret); | ||
@@ -1709,0 +1775,0 @@ }; |
{ | ||
"name": "@hirosystems/clarinet-sdk-wasm", | ||
"description": "The core lib that powers @hirosystems/clarinet-sdk", | ||
"version": "2.8.0-beta6", | ||
"version": "2.8.0-beta7", | ||
"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
1978
7981480