@hirosystems/clarinet-sdk-wasm-browser
Advanced tools
Comparing version 2.12.0-beta3 to 2.12.0
@@ -110,3 +110,4 @@ /* tslint:disable */ | ||
| "Epoch25" | ||
| "Epoch30"; | ||
| "Epoch30" | ||
| "Epoch31"; | ||
@@ -156,6 +157,5 @@ export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"; | ||
* @param {Function} fs_request | ||
* @param {Function} http_client | ||
* @param {SDKOptions | undefined} [options] | ||
*/ | ||
constructor(fs_request: Function, http_client: Function, options?: SDKOptions); | ||
constructor(fs_request: Function, options?: SDKOptions); | ||
/** | ||
@@ -170,6 +170,5 @@ * @returns {EpochString} | ||
/** | ||
* @param {any} remote_data_settings | ||
* @returns {Promise<void>} | ||
*/ | ||
initEmptySession(remote_data_settings: any): Promise<void>; | ||
initEmptySession(): Promise<void>; | ||
/** | ||
@@ -336,2 +335,3 @@ * @param {string} cwd | ||
free(): void; | ||
costs: string; | ||
events: string; | ||
@@ -366,2 +366,5 @@ result: string; | ||
readonly __wbg_txargs_free: (a: number, b: number) => void; | ||
readonly __wbg_transactionres_free: (a: number, b: number) => void; | ||
readonly __wbg_get_transactionres_costs: (a: number) => Array; | ||
readonly __wbg_set_transactionres_costs: (a: number, b: number, c: number) => void; | ||
readonly __wbg_sessionreport_free: (a: number, b: number) => void; | ||
@@ -380,6 +383,6 @@ readonly __wbg_get_sessionreport_coverage: (a: number) => Array; | ||
readonly __wbg_set_sdk_deployer: (a: number, b: number, c: number) => void; | ||
readonly sdk_new: (a: number, b: number, c: number) => number; | ||
readonly sdk_new: (a: number, b: number) => number; | ||
readonly sdk_getDefaultEpoch: () => number; | ||
readonly sdk_getDefaultClarityVersionForCurrentEpoch: (a: number) => number; | ||
readonly sdk_initEmptySession: (a: number, b: number) => number; | ||
readonly sdk_initEmptySession: (a: number) => number; | ||
readonly sdk_initSession: (a: number, b: number, c: number, d: number, e: number) => number; | ||
@@ -417,6 +420,5 @@ 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; | ||
@@ -429,3 +431,3 @@ readonly __wbg_get_transactionres_result: (a: number) => Array; | ||
readonly __wbindgen_export_3: WebAssembly.Table; | ||
readonly closure681_externref_shim: (a: number, b: number, c: number) => void; | ||
readonly closure675_externref_shim: (a: number, b: number, c: number) => void; | ||
readonly __externref_table_alloc: () => number; | ||
@@ -435,3 +437,3 @@ readonly __wbindgen_free: (a: number, b: number, c: number) => void; | ||
readonly __wbindgen_exn_store: (a: number) => void; | ||
readonly closure3072_externref_shim: (a: number, b: number, c: number, d: number) => void; | ||
readonly closure3042_externref_shim: (a: number, b: number, c: number, d: number) => void; | ||
readonly __wbindgen_start: () => void; | ||
@@ -438,0 +440,0 @@ } |
@@ -185,4 +185,4 @@ let wasm; | ||
} | ||
function __wbg_adapter_48(arg0, arg1, arg2) { | ||
wasm.closure681_externref_shim(arg0, arg1, arg2); | ||
function __wbg_adapter_46(arg0, arg1, arg2) { | ||
wasm.closure675_externref_shim(arg0, arg1, arg2); | ||
} | ||
@@ -236,4 +236,4 @@ | ||
} | ||
function __wbg_adapter_207(arg0, arg1, arg2, arg3) { | ||
wasm.closure3072_externref_shim(arg0, arg1, arg2, arg3); | ||
function __wbg_adapter_203(arg0, arg1, arg2, arg3) { | ||
wasm.closure3042_externref_shim(arg0, arg1, arg2, arg3); | ||
} | ||
@@ -393,6 +393,5 @@ | ||
* @param {Function} fs_request | ||
* @param {Function} http_client | ||
* @param {SDKOptions | undefined} [options] | ||
*/ | ||
constructor(fs_request, http_client, options) { | ||
constructor(fs_request, options) { | ||
let ptr0 = 0; | ||
@@ -403,3 +402,3 @@ if (!isLikeNone(options)) { | ||
} | ||
const ret = wasm.sdk_new(fs_request, http_client, ptr0); | ||
const ret = wasm.sdk_new(fs_request, ptr0); | ||
this.__wbg_ptr = ret >>> 0; | ||
@@ -424,7 +423,6 @@ SDKFinalization.register(this, this.__wbg_ptr, this); | ||
/** | ||
* @param {any} remote_data_settings | ||
* @returns {Promise<void>} | ||
*/ | ||
initEmptySession(remote_data_settings) { | ||
const ret = wasm.sdk_initEmptySession(this.__wbg_ptr, remote_data_settings); | ||
initEmptySession() { | ||
const ret = wasm.sdk_initEmptySession(this.__wbg_ptr); | ||
return ret; | ||
@@ -1031,2 +1029,25 @@ } | ||
} | ||
/** | ||
* @returns {string} | ||
*/ | ||
get costs() { | ||
let deferred1_0; | ||
let deferred1_1; | ||
try { | ||
const ret = wasm.__wbg_get_transactionres_costs(this.__wbg_ptr); | ||
deferred1_0 = ret[0]; | ||
deferred1_1 = ret[1]; | ||
return getStringFromWasm0(ret[0], ret[1]); | ||
} finally { | ||
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); | ||
} | ||
} | ||
/** | ||
* @param {string} arg0 | ||
*/ | ||
set costs(arg0) { | ||
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.__wbg_set_transactionres_costs(this.__wbg_ptr, ptr0, len0); | ||
} | ||
} | ||
@@ -1125,2 +1146,10 @@ | ||
}; | ||
imports.wbg.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = arg1; | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbindgen_is_string = function(arg0) { | ||
@@ -1138,20 +1167,2 @@ const ret = typeof(arg0) === 'string'; | ||
}; | ||
imports.wbg.__wbindgen_string_get = function(arg0, arg1) { | ||
const obj = arg1; | ||
const ret = typeof(obj) === 'string' ? obj : undefined; | ||
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len1 = WASM_VECTOR_LEN; | ||
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); | ||
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); | ||
}; | ||
imports.wbg.__wbindgen_boolean_get = function(arg0) { | ||
const v = arg0; | ||
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_is_object = function(arg0) { | ||
const val = arg0; | ||
const ret = typeof(val) === 'object' && val !== null; | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_is_undefined = function(arg0) { | ||
@@ -1161,6 +1172,2 @@ const ret = arg0 === undefined; | ||
}; | ||
imports.wbg.__wbindgen_in = function(arg0, arg1) { | ||
const ret = arg0 in arg1; | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_cb_drop = function(arg0) { | ||
@@ -1198,23 +1205,26 @@ const obj = arg0.original; | ||
imports.wbg.__wbg_fetch_9b133f5ec268a7b8 = typeof fetch == 'function' ? fetch : notDefined('fetch'); | ||
imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) { | ||
const ret = arg0.queueMicrotask; | ||
imports.wbg.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) { | ||
const ret = arg0.fetch(arg1); | ||
return ret; | ||
}; | ||
imports.wbg.__wbindgen_is_function = function(arg0) { | ||
const ret = typeof(arg0) === 'function'; | ||
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(); | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask'); | ||
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) { | ||
const ret = arg0 == arg1; | ||
}, 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; | ||
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); | ||
@@ -1225,30 +1235,32 @@ 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; | ||
}, arguments) }; | ||
imports.wbg.__wbg_setbody_aa8b691bec428bf4 = function(arg0, arg1) { | ||
arg0.body = arg1; | ||
}; | ||
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_setcredentials_a4e661320cdb9738 = function(arg0, arg1) { | ||
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1]; | ||
}; | ||
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) { | ||
const ret = arg0[arg1]; | ||
return ret; | ||
imports.wbg.__wbg_setheaders_f5205d36e423a544 = function(arg0, arg1) { | ||
arg0.headers = arg1; | ||
}; | ||
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) { | ||
arg0[arg1] = arg2; | ||
imports.wbg.__wbg_setmethod_ce2da76000b02f6a = function(arg0, arg1, arg2) { | ||
arg0.method = getStringFromWasm0(arg1, arg2); | ||
}; | ||
imports.wbg.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) { | ||
const ret = arg0.fetch(arg1); | ||
return ret; | ||
imports.wbg.__wbg_setmode_4919fd636102c586 = function(arg0, arg1) { | ||
arg0.mode = __wbindgen_enum_RequestMode[arg1]; | ||
}; | ||
imports.wbg.__wbg_log_f740dc2253ea759b = typeof console.log == 'function' ? console.log : notDefined('console.log'); | ||
imports.wbg.__wbg_setsignal_812ccb8269a7fd90 = function(arg0, arg1) { | ||
arg0.signal = arg1; | ||
}; | ||
imports.wbg.__wbg_signal_9acfcec9e7dffc22 = function(arg0) { | ||
@@ -1269,39 +1281,33 @@ const ret = arg0.signal; | ||
}, arguments) }; | ||
imports.wbg.__wbg_setbody_aa8b691bec428bf4 = function(arg0, arg1) { | ||
arg0.body = arg1; | ||
imports.wbg.__wbindgen_boolean_get = function(arg0) { | ||
const v = arg0; | ||
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_setcredentials_a4e661320cdb9738 = function(arg0, arg1) { | ||
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1]; | ||
imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) { | ||
const ret = arg0.queueMicrotask; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_setheaders_f5205d36e423a544 = function(arg0, arg1) { | ||
arg0.headers = arg1; | ||
imports.wbg.__wbindgen_is_function = function(arg0) { | ||
const ret = typeof(arg0) === 'function'; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_setmethod_ce2da76000b02f6a = function(arg0, arg1, arg2) { | ||
arg0.method = getStringFromWasm0(arg1, arg2); | ||
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.__wbg_setmode_4919fd636102c586 = function(arg0, arg1) { | ||
arg0.mode = __wbindgen_enum_RequestMode[arg1]; | ||
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) { | ||
const ret = arg0 == arg1; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_setsignal_812ccb8269a7fd90 = function(arg0, arg1) { | ||
arg0.signal = arg1; | ||
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_new_a9ae04a5200606a5 = function() { return handleError(function () { | ||
const ret = new Headers(); | ||
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; | ||
return ret; | ||
}; | ||
imports.wbg.__wbg_url_58af972663531d16 = function(arg0, arg1) { | ||
const ret = arg1.url; | ||
imports.wbg.__wbg_String_b9412f8799faab3e = function(arg0, arg1) { | ||
const ret = String(arg1); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
@@ -1312,14 +1318,21 @@ 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; | ||
}, arguments) }; | ||
}; | ||
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; | ||
}; | ||
imports.wbg.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) { | ||
@@ -1418,6 +1431,2 @@ 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) { | ||
@@ -1450,3 +1459,3 @@ const ret = arg0.getTime(); | ||
try { | ||
return __wbg_adapter_207(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_203(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -1525,4 +1534,4 @@ state0.a = a; | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper2318 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 682, __wbg_adapter_48); | ||
imports.wbg.__wbindgen_closure_wrapper2543 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 676, __wbg_adapter_46); | ||
return ret; | ||
@@ -1529,0 +1538,0 @@ }; |
@@ -5,3 +5,3 @@ { | ||
"description": "The core lib that powers @hirosystems/clarinet-sdk", | ||
"version": "2.12.0-beta3", | ||
"version": "2.12.0", | ||
"license": "GPL-3.0", | ||
@@ -8,0 +8,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1928
1
7879446