Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hirosystems/clarinet-sdk-wasm

Package Overview
Dependencies
Maintainers
4
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hirosystems/clarinet-sdk-wasm - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

13

clarinet_sdk.d.ts
/* tslint:disable */
/* eslint-disable */
/**
* @returns {Promise<string>}
*/
export function init_session(): Promise<string>;
/**
* @param {string} command
* @returns {string}
*/
export function handle_command(command: string): string;

@@ -96,2 +87,6 @@ type EpochString = "2.0" | "2.05" | "2.1" | "2.2" | "2.3" | "2.4"

/**
* @returns {bigint}
*/
getBlockTime(): bigint;
/**
* @param {string} contract

@@ -98,0 +93,0 @@ * @param {string} map_name

@@ -219,3 +219,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__h4a80d6da3606f3ad(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h495438ac39fa89f6(arg0, arg1, addHeapObject(arg2));
}

@@ -255,29 +255,3 @@

}
/**
* @returns {Promise<string>}
*/
module.exports.init_session = function() {
const ret = wasm.init_session();
return takeObject(ret);
};
/**
* @param {string} command
* @returns {string}
*/
module.exports.handle_command = function(command) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(command, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.handle_command(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(r0, r1);
}
};
function handleError(f, args) {

@@ -290,4 +264,4 @@ try {

}
function __wbg_adapter_165(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h2bb19b7ab9ff0bbe(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
function __wbg_adapter_164(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h056b9e3d2d8cdf0f(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}

@@ -630,2 +604,9 @@

/**
* @returns {bigint}
*/
getBlockTime() {
const ret = wasm.sdk_getBlockTime(this.ptr);
return BigInt.asUintN(64, ret);
}
/**
* @param {string} contract

@@ -1028,17 +1009,2 @@ * @param {string} map_name

module.exports.__wbindgen_is_string = function(arg0) {
const ret = typeof(getObject(arg0)) === 'string';
return ret;
};
module.exports.__wbindgen_as_number = function(arg0) {
const ret = +getObject(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) {

@@ -1053,2 +1019,7 @@ const obj = getObject(arg1);

module.exports.__wbindgen_is_string = function(arg0) {
const ret = typeof(getObject(arg0)) === 'string';
return ret;
};
module.exports.__wbindgen_error_new = function(arg0, arg1) {

@@ -1064,2 +1035,12 @@ const ret = new Error(getStringFromWasm0(arg0, arg1));

module.exports.__wbindgen_as_number = function(arg0) {
const ret = +getObject(arg0);
return ret;
};
module.exports.__wbindgen_object_clone_ref = function(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
};
module.exports.__wbg_new_abda76e883ba8a5f = function() {

@@ -1086,58 +1067,2 @@ const ret = new Error();

module.exports.__wbindgen_boolean_get = function(arg0) {
const v = getObject(arg0);
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
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_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_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) {
const ret = arg0;
return addHeapObject(ret);
};
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
const ret = BigInt.asUintN(64, arg0);
return addHeapObject(ret);
};
module.exports.__wbindgen_bigint_from_i128 = function(arg0, arg1) {
const ret = arg0 << BigInt(64) | BigInt.asUintN(64, arg1);
return addHeapObject(ret);
};
module.exports.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
return addHeapObject(ret);
};
module.exports.__wbg_set_bd72c078edfa51ad = function(arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
};
module.exports.__wbg_fetch_cf75ae0b20981e3e = function(arg0) {

@@ -1219,2 +1144,58 @@ const ret = fetch(getObject(arg0));

module.exports.__wbindgen_boolean_get = function(arg0) {
const v = getObject(arg0);
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
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_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_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) {
const ret = arg0;
return addHeapObject(ret);
};
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
const ret = BigInt.asUintN(64, arg0);
return addHeapObject(ret);
};
module.exports.__wbindgen_bigint_from_i128 = function(arg0, arg1) {
const ret = arg0 << BigInt(64) | BigInt.asUintN(64, arg1);
return addHeapObject(ret);
};
module.exports.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
return addHeapObject(ret);
};
module.exports.__wbg_set_bd72c078edfa51ad = function(arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
};
module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {

@@ -1372,3 +1353,3 @@ const ret = getObject(arg0)[arg1 >>> 0];

try {
return __wbg_adapter_165(a, state0.b, arg0, arg1);
return __wbg_adapter_164(a, state0.b, arg0, arg1);
} finally {

@@ -1467,4 +1448,4 @@ state0.a = a;

module.exports.__wbindgen_closure_wrapper2523 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 460, __wbg_adapter_44);
module.exports.__wbindgen_closure_wrapper1860 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 339, __wbg_adapter_44);
return addHeapObject(ret);

@@ -1471,0 +1452,0 @@ };

{
"name": "@hirosystems/clarinet-sdk-wasm",
"description": "The core lib that powers @hirosystems/clarinet-sdk",
"version": "1.1.0",
"version": "1.2.0",
"license": "GPL-3.0",

@@ -6,0 +6,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc