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

@hirosystems/clarinet-sdk-wasm-browser

Package Overview
Dependencies
Maintainers
0
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 2.12.0-beta1 to 2.12.0-beta2

16

clarinet_sdk.d.ts

@@ -155,5 +155,6 @@ /* tslint:disable */

* @param {Function} fs_request
* @param {Function} http_client
* @param {SDKOptions | undefined} [options]
*/
constructor(fs_request: Function, options?: SDKOptions);
constructor(fs_request: Function, http_client: Function, options?: SDKOptions);
/**

@@ -168,5 +169,6 @@ * @returns {EpochString}

/**
* @param {any} remote_data_settings
* @returns {Promise<void>}
*/
initEmtpySession(): Promise<void>;
initEmptySession(remote_data_settings: any): Promise<void>;
/**

@@ -375,6 +377,6 @@ * @param {string} cwd

readonly __wbg_set_sdk_deployer: (a: number, b: number, c: number) => void;
readonly sdk_new: (a: number, b: number) => number;
readonly sdk_new: (a: number, b: number, c: number) => number;
readonly sdk_getDefaultEpoch: () => number;
readonly sdk_getDefaultClarityVersionForCurrentEpoch: (a: number) => number;
readonly sdk_initEmtpySession: (a: number) => number;
readonly sdk_initEmptySession: (a: number, b: number) => number;
readonly sdk_initSession: (a: number, b: number, c: number, d: number, e: number) => number;

@@ -412,6 +414,6 @@ readonly sdk_clearCache: (a: number) => void;

readonly sdk_collectReport: (a: number, b: number, c: number, d: number) => Array;
readonly sdk_stacksBlockHeight: (a: number) => number;
readonly __wbg_set_transactionres_result: (a: number, b: number, c: number) => void;
readonly __wbg_set_transactionres_events: (a: number, b: number, c: number) => void;
readonly __wbg_transactionres_free: (a: number, b: number) => void;
readonly sdk_stacksBlockHeight: (a: number) => number;
readonly __wbg_sdkoptions_free: (a: number, b: number) => void;

@@ -424,3 +426,3 @@ readonly __wbg_get_transactionres_result: (a: number) => Array;

readonly __wbindgen_export_3: WebAssembly.Table;
readonly closure674_externref_shim: (a: number, b: number, c: number) => void;
readonly closure681_externref_shim: (a: number, b: number, c: number) => void;
readonly __externref_table_alloc: () => number;

@@ -430,3 +432,3 @@ readonly __wbindgen_free: (a: number, b: number, c: number) => void;

readonly __wbindgen_exn_store: (a: number) => void;
readonly closure3051_externref_shim: (a: number, b: number, c: number, d: number) => void;
readonly closure3072_externref_shim: (a: number, b: number, c: number, d: number) => void;
readonly __wbindgen_start: () => void;

@@ -433,0 +435,0 @@ }

@@ -185,4 +185,4 @@ let wasm;

}
function __wbg_adapter_46(arg0, arg1, arg2) {
wasm.closure674_externref_shim(arg0, arg1, arg2);
function __wbg_adapter_48(arg0, arg1, arg2) {
wasm.closure681_externref_shim(arg0, arg1, arg2);
}

@@ -236,4 +236,4 @@

}
function __wbg_adapter_201(arg0, arg1, arg2, arg3) {
wasm.closure3051_externref_shim(arg0, arg1, arg2, arg3);
function __wbg_adapter_207(arg0, arg1, arg2, arg3) {
wasm.closure3072_externref_shim(arg0, arg1, arg2, arg3);
}

@@ -393,5 +393,6 @@

* @param {Function} fs_request
* @param {Function} http_client
* @param {SDKOptions | undefined} [options]
*/
constructor(fs_request, options) {
constructor(fs_request, http_client, options) {
let ptr0 = 0;

@@ -402,3 +403,3 @@ if (!isLikeNone(options)) {

}
const ret = wasm.sdk_new(fs_request, ptr0);
const ret = wasm.sdk_new(fs_request, http_client, ptr0);
this.__wbg_ptr = ret >>> 0;

@@ -423,6 +424,7 @@ SDKFinalization.register(this, this.__wbg_ptr, this);

/**
* @param {any} remote_data_settings
* @returns {Promise<void>}
*/
initEmtpySession() {
const ret = wasm.sdk_initEmtpySession(this.__wbg_ptr);
initEmptySession(remote_data_settings) {
const ret = wasm.sdk_initEmptySession(this.__wbg_ptr, remote_data_settings);
return ret;

@@ -1122,2 +1124,14 @@ }

};
imports.wbg.__wbindgen_is_string = function(arg0) {
const ret = typeof(arg0) === 'string';
return ret;
};
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return ret;
};
imports.wbg.__wbindgen_as_number = function(arg0) {
const ret = +arg0;
return ret;
};
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {

@@ -1131,14 +1145,20 @@ const obj = arg1;

};
imports.wbg.__wbindgen_is_string = function(arg0) {
const ret = typeof(arg0) === 'string';
imports.wbg.__wbindgen_boolean_get = function(arg0) {
const v = arg0;
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
return ret;
};
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
imports.wbg.__wbindgen_is_object = function(arg0) {
const val = arg0;
const ret = typeof(val) === 'object' && val !== null;
return ret;
};
imports.wbg.__wbindgen_as_number = function(arg0) {
const ret = +arg0;
imports.wbg.__wbindgen_is_undefined = function(arg0) {
const ret = arg0 === undefined;
return ret;
};
imports.wbg.__wbindgen_in = function(arg0, arg1) {
const ret = arg0 in arg1;
return ret;
};
imports.wbg.__wbindgen_cb_drop = function(arg0) {

@@ -1153,6 +1173,2 @@ const obj = arg0.original;

};
imports.wbg.__wbindgen_is_undefined = function(arg0) {
const ret = arg0 === undefined;
return ret;
};
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {

@@ -1181,26 +1197,23 @@ const ret = new Error();

imports.wbg.__wbg_fetch_9b133f5ec268a7b8 = typeof fetch == 'function' ? fetch : notDefined('fetch');
imports.wbg.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) {
const ret = arg0.fetch(arg1);
imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
const ret = arg0.queueMicrotask;
return ret;
};
imports.wbg.__wbg_log_f740dc2253ea759b = typeof console.log == 'function' ? console.log : notDefined('console.log');
imports.wbg.__wbg_new_a9ae04a5200606a5 = function() { return handleError(function () {
const ret = new Headers();
imports.wbg.__wbindgen_is_function = function(arg0) {
const ret = typeof(arg0) === 'function';
return ret;
}, arguments) };
imports.wbg.__wbg_append_8b3e7f74a47ea7d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
}, arguments) };
imports.wbg.__wbg_instanceof_Response_3c0e210a57ff751d = function(arg0) {
let result;
try {
result = arg0 instanceof Response;
} catch (_) {
result = false;
}
const ret = result;
};
imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
const ret = arg0 == arg1;
return ret;
};
imports.wbg.__wbg_url_58af972663531d16 = function(arg0, arg1) {
const ret = arg1.url;
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
const obj = arg1;
const ret = typeof(obj) === 'number' ? obj : undefined;
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
};
imports.wbg.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
const ret = String(arg1);
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -1211,14 +1224,41 @@ const len1 = WASM_VECTOR_LEN;

};
imports.wbg.__wbg_status_5f4e900d22140a18 = function(arg0) {
const ret = arg0.status;
imports.wbg.__wbindgen_number_new = function(arg0) {
const ret = arg0;
return ret;
};
imports.wbg.__wbg_headers_1b9bf90c73fae600 = function(arg0) {
const ret = arg0.headers;
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
const ret = BigInt.asUintN(64, arg0);
return ret;
};
imports.wbg.__wbg_arrayBuffer_144729e09879650e = function() { return handleError(function (arg0) {
const ret = arg0.arrayBuffer();
imports.wbg.__wbindgen_bigint_from_i128 = function(arg0, arg1) {
const ret = arg0 << BigInt(64) | BigInt.asUintN(64, arg1);
return ret;
};
imports.wbg.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
return ret;
};
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
const ret = arg0[arg1];
return ret;
};
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
arg0[arg1] = arg2;
};
imports.wbg.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) {
const ret = arg0.fetch(arg1);
return ret;
};
imports.wbg.__wbg_log_f740dc2253ea759b = typeof console.log == 'function' ? console.log : notDefined('console.log');
imports.wbg.__wbg_signal_9acfcec9e7dffc22 = function(arg0) {
const ret = arg0.signal;
return ret;
};
imports.wbg.__wbg_new_75169ae5a9683c55 = function() { return handleError(function () {
const ret = new AbortController();
return ret;
}, arguments) };
imports.wbg.__wbg_abort_c57daab47a6c1215 = function(arg0) {
arg0.abort();
};
imports.wbg.__wbg_newwithstrandinit_4b92c89af0a8e383 = function() { return handleError(function (arg0, arg1, arg2) {

@@ -1246,44 +1286,21 @@ const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);

};
imports.wbg.__wbg_signal_9acfcec9e7dffc22 = function(arg0) {
const ret = arg0.signal;
imports.wbg.__wbg_new_a9ae04a5200606a5 = function() { return handleError(function () {
const ret = new Headers();
return ret;
};
imports.wbg.__wbg_new_75169ae5a9683c55 = function() { return handleError(function () {
const ret = new AbortController();
return ret;
}, arguments) };
imports.wbg.__wbg_abort_c57daab47a6c1215 = function(arg0) {
arg0.abort();
};
imports.wbg.__wbindgen_boolean_get = function(arg0) {
const v = arg0;
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
imports.wbg.__wbg_append_8b3e7f74a47ea7d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
}, arguments) };
imports.wbg.__wbg_instanceof_Response_3c0e210a57ff751d = function(arg0) {
let result;
try {
result = arg0 instanceof Response;
} catch (_) {
result = false;
}
const ret = result;
return ret;
};
imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
const ret = arg0.queueMicrotask;
return ret;
};
imports.wbg.__wbindgen_is_function = function(arg0) {
const ret = typeof(arg0) === 'function';
return ret;
};
imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
imports.wbg.__wbindgen_is_object = function(arg0) {
const val = arg0;
const ret = typeof(val) === 'object' && val !== null;
return ret;
};
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
const ret = arg0 == arg1;
return ret;
};
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
const obj = arg1;
const ret = typeof(obj) === 'number' ? obj : undefined;
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
};
imports.wbg.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
const ret = String(arg1);
imports.wbg.__wbg_url_58af972663531d16 = function(arg0, arg1) {
const ret = arg1.url;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -1294,21 +1311,14 @@ const len1 = WASM_VECTOR_LEN;

};
imports.wbg.__wbindgen_number_new = function(arg0) {
const ret = arg0;
imports.wbg.__wbg_status_5f4e900d22140a18 = function(arg0) {
const ret = arg0.status;
return ret;
};
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
const ret = BigInt.asUintN(64, arg0);
imports.wbg.__wbg_headers_1b9bf90c73fae600 = function(arg0) {
const ret = arg0.headers;
return ret;
};
imports.wbg.__wbindgen_bigint_from_i128 = function(arg0, arg1) {
const ret = arg0 << BigInt(64) | BigInt.asUintN(64, arg1);
imports.wbg.__wbg_arrayBuffer_144729e09879650e = function() { return handleError(function (arg0) {
const ret = arg0.arrayBuffer();
return ret;
};
imports.wbg.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
return ret;
};
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
arg0[arg1] = arg2;
};
}, arguments) };
imports.wbg.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) {

@@ -1407,2 +1417,6 @@ const ret = arg0[arg1 >>> 0];

};
imports.wbg.__wbg_isSafeInteger_b9dff570f01a9100 = function(arg0) {
const ret = Number.isSafeInteger(arg0);
return ret;
};
imports.wbg.__wbg_getTime_41225036a0393d63 = function(arg0) {

@@ -1435,3 +1449,3 @@ const ret = arg0.getTime();

try {
return __wbg_adapter_201(a, state0.b, arg0, arg1);
return __wbg_adapter_207(a, state0.b, arg0, arg1);
} finally {

@@ -1510,4 +1524,4 @@ state0.a = a;

};
imports.wbg.__wbindgen_closure_wrapper2522 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 675, __wbg_adapter_46);
imports.wbg.__wbindgen_closure_wrapper2313 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 682, __wbg_adapter_48);
return ret;

@@ -1514,0 +1528,0 @@ };

@@ -5,3 +5,3 @@ {

"description": "The core lib that powers @hirosystems/clarinet-sdk",
"version": "2.12.0-beta1",
"version": "2.12.0-beta2",
"license": "GPL-3.0",

@@ -8,0 +8,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