@hirosystems/clarinet-sdk-wasm
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; | ||
@@ -338,0 +338,0 @@ result: string; |
@@ -189,4 +189,4 @@ | ||
} | ||
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); | ||
} | ||
@@ -240,4 +240,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); | ||
} | ||
@@ -400,6 +400,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; | ||
@@ -410,3 +409,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; | ||
@@ -431,7 +430,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; | ||
@@ -1041,2 +1039,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); | ||
} | ||
} | ||
@@ -1105,17 +1126,2 @@ module.exports.TransactionRes = TransactionRes; | ||
module.exports.__wbindgen_is_string = function(arg0) { | ||
const ret = typeof(arg0) === 'string'; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_as_number = function(arg0) { | ||
const ret = +arg0; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_string_get = function(arg0, arg1) { | ||
@@ -1130,21 +1136,19 @@ const obj = arg1; | ||
module.exports.__wbindgen_boolean_get = function(arg0) { | ||
const v = arg0; | ||
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; | ||
module.exports.__wbindgen_is_string = function(arg0) { | ||
const ret = typeof(arg0) === 'string'; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_is_object = function(arg0) { | ||
const val = arg0; | ||
const ret = typeof(val) === 'object' && val !== null; | ||
module.exports.__wbindgen_error_new = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
const ret = arg0 === undefined; | ||
module.exports.__wbindgen_as_number = function(arg0) { | ||
const ret = +arg0; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_in = function(arg0, arg1) { | ||
const ret = arg0 in arg1; | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
const ret = arg0 === undefined; | ||
return ret; | ||
@@ -1190,28 +1194,31 @@ }; | ||
module.exports.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) { | ||
const ret = arg0.queueMicrotask; | ||
module.exports.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) { | ||
const ret = arg0.fetch(arg1); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_is_function = function(arg0) { | ||
const ret = typeof(arg0) === 'function'; | ||
module.exports.__wbg_log_f740dc2253ea759b = typeof console.log == 'function' ? console.log : notDefined('console.log'); | ||
module.exports.__wbg_new_a9ae04a5200606a5 = function() { return handleError(function () { | ||
const ret = new Headers(); | ||
return ret; | ||
}; | ||
}, arguments) }; | ||
module.exports.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask'); | ||
module.exports.__wbg_append_8b3e7f74a47ea7d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { | ||
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); | ||
}, arguments) }; | ||
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) { | ||
const ret = arg0 == arg1; | ||
module.exports.__wbg_instanceof_Response_3c0e210a57ff751d = function(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof Response; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
}; | ||
module.exports.__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); | ||
}; | ||
module.exports.__wbg_String_b9412f8799faab3e = function(arg0, arg1) { | ||
const ret = String(arg1); | ||
module.exports.__wbg_url_58af972663531d16 = function(arg0, arg1) { | ||
const ret = arg1.url; | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
@@ -1223,37 +1230,40 @@ const len1 = WASM_VECTOR_LEN; | ||
module.exports.__wbindgen_number_new = function(arg0) { | ||
const ret = arg0; | ||
module.exports.__wbg_status_5f4e900d22140a18 = function(arg0) { | ||
const ret = arg0.status; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_bigint_from_u64 = function(arg0) { | ||
const ret = BigInt.asUintN(64, arg0); | ||
module.exports.__wbg_headers_1b9bf90c73fae600 = function(arg0) { | ||
const ret = arg0.headers; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_bigint_from_i128 = function(arg0, arg1) { | ||
const ret = arg0 << BigInt(64) | BigInt.asUintN(64, arg1); | ||
module.exports.__wbg_arrayBuffer_144729e09879650e = function() { return handleError(function (arg0) { | ||
const ret = arg0.arrayBuffer(); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_setbody_aa8b691bec428bf4 = function(arg0, arg1) { | ||
arg0.body = arg1; | ||
}; | ||
module.exports.__wbindgen_bigint_from_u128 = function(arg0, arg1) { | ||
const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1); | ||
return ret; | ||
module.exports.__wbg_setcredentials_a4e661320cdb9738 = function(arg0, arg1) { | ||
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1]; | ||
}; | ||
module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) { | ||
const ret = arg0[arg1]; | ||
return ret; | ||
module.exports.__wbg_setheaders_f5205d36e423a544 = function(arg0, arg1) { | ||
arg0.headers = arg1; | ||
}; | ||
module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) { | ||
arg0[arg1] = arg2; | ||
module.exports.__wbg_setmethod_ce2da76000b02f6a = function(arg0, arg1, arg2) { | ||
arg0.method = getStringFromWasm0(arg1, arg2); | ||
}; | ||
module.exports.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) { | ||
const ret = arg0.fetch(arg1); | ||
return ret; | ||
module.exports.__wbg_setmode_4919fd636102c586 = function(arg0, arg1) { | ||
arg0.mode = __wbindgen_enum_RequestMode[arg1]; | ||
}; | ||
module.exports.__wbg_log_f740dc2253ea759b = typeof console.log == 'function' ? console.log : notDefined('console.log'); | ||
module.exports.__wbg_setsignal_812ccb8269a7fd90 = function(arg0, arg1) { | ||
arg0.signal = arg1; | ||
}; | ||
@@ -1279,48 +1289,40 @@ module.exports.__wbg_signal_9acfcec9e7dffc22 = function(arg0) { | ||
module.exports.__wbg_setbody_aa8b691bec428bf4 = function(arg0, arg1) { | ||
arg0.body = arg1; | ||
module.exports.__wbindgen_boolean_get = function(arg0) { | ||
const v = arg0; | ||
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; | ||
return ret; | ||
}; | ||
module.exports.__wbg_setcredentials_a4e661320cdb9738 = function(arg0, arg1) { | ||
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1]; | ||
module.exports.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) { | ||
const ret = arg0.queueMicrotask; | ||
return ret; | ||
}; | ||
module.exports.__wbg_setheaders_f5205d36e423a544 = function(arg0, arg1) { | ||
arg0.headers = arg1; | ||
module.exports.__wbindgen_is_function = function(arg0) { | ||
const ret = typeof(arg0) === 'function'; | ||
return ret; | ||
}; | ||
module.exports.__wbg_setmethod_ce2da76000b02f6a = function(arg0, arg1, arg2) { | ||
arg0.method = getStringFromWasm0(arg1, arg2); | ||
}; | ||
module.exports.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask'); | ||
module.exports.__wbg_setmode_4919fd636102c586 = function(arg0, arg1) { | ||
arg0.mode = __wbindgen_enum_RequestMode[arg1]; | ||
module.exports.__wbindgen_is_object = function(arg0) { | ||
const val = arg0; | ||
const ret = typeof(val) === 'object' && val !== null; | ||
return ret; | ||
}; | ||
module.exports.__wbg_setsignal_812ccb8269a7fd90 = function(arg0, arg1) { | ||
arg0.signal = arg1; | ||
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) { | ||
const ret = arg0 == arg1; | ||
return ret; | ||
}; | ||
module.exports.__wbg_new_a9ae04a5200606a5 = function() { return handleError(function () { | ||
const ret = new Headers(); | ||
return ret; | ||
}, arguments) }; | ||
module.exports.__wbg_append_8b3e7f74a47ea7d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { | ||
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); | ||
}, arguments) }; | ||
module.exports.__wbg_instanceof_Response_3c0e210a57ff751d = function(arg0) { | ||
let result; | ||
try { | ||
result = arg0 instanceof Response; | ||
} catch (_) { | ||
result = false; | ||
} | ||
const ret = result; | ||
return ret; | ||
module.exports.__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); | ||
}; | ||
module.exports.__wbg_url_58af972663531d16 = function(arg0, arg1) { | ||
const ret = arg1.url; | ||
module.exports.__wbg_String_b9412f8799faab3e = function(arg0, arg1) { | ||
const ret = String(arg1); | ||
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
@@ -1332,17 +1334,26 @@ const len1 = WASM_VECTOR_LEN; | ||
module.exports.__wbg_status_5f4e900d22140a18 = function(arg0) { | ||
const ret = arg0.status; | ||
module.exports.__wbindgen_number_new = function(arg0) { | ||
const ret = arg0; | ||
return ret; | ||
}; | ||
module.exports.__wbg_headers_1b9bf90c73fae600 = function(arg0) { | ||
const ret = arg0.headers; | ||
module.exports.__wbindgen_bigint_from_u64 = function(arg0) { | ||
const ret = BigInt.asUintN(64, arg0); | ||
return ret; | ||
}; | ||
module.exports.__wbg_arrayBuffer_144729e09879650e = function() { return handleError(function (arg0) { | ||
const ret = arg0.arrayBuffer(); | ||
module.exports.__wbindgen_bigint_from_i128 = function(arg0, arg1) { | ||
const ret = arg0 << BigInt(64) | BigInt.asUintN(64, arg1); | ||
return ret; | ||
}, arguments) }; | ||
}; | ||
module.exports.__wbindgen_bigint_from_u128 = function(arg0, arg1) { | ||
const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1); | ||
return ret; | ||
}; | ||
module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) { | ||
arg0[arg1] = arg2; | ||
}; | ||
module.exports.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) { | ||
@@ -1463,7 +1474,2 @@ const ret = arg0[arg1 >>> 0]; | ||
module.exports.__wbg_isSafeInteger_b9dff570f01a9100 = function(arg0) { | ||
const ret = Number.isSafeInteger(arg0); | ||
return ret; | ||
}; | ||
module.exports.__wbg_getTime_41225036a0393d63 = function(arg0) { | ||
@@ -1501,3 +1507,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 { | ||
@@ -1591,4 +1597,4 @@ state0.a = a; | ||
module.exports.__wbindgen_closure_wrapper2318 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 682, __wbg_adapter_48); | ||
module.exports.__wbindgen_closure_wrapper2543 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 676, __wbg_adapter_46); | ||
return ret; | ||
@@ -1595,0 +1601,0 @@ }; |
{ | ||
"name": "@hirosystems/clarinet-sdk-wasm", | ||
"description": "The core lib that powers @hirosystems/clarinet-sdk", | ||
"version": "2.12.0-beta3", | ||
"version": "2.12.0", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1768
1
7870861