@stacks/clarinet-sdk-wasm 3.18.1 → 3.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clarinet_sdk.d.ts +2 -1
- package/clarinet_sdk.js +20 -17
- package/clarinet_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/clarinet_sdk.d.ts
CHANGED
package/clarinet_sdk.js
CHANGED
|
@@ -320,6 +320,9 @@ class SDK {
|
|
|
320
320
|
const ptr0 = passStringToWasm0(contract, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
321
321
|
const len0 = WASM_VECTOR_LEN;
|
|
322
322
|
const ret = wasm.sdk_getContractSource(this.__wbg_ptr, ptr0, len0);
|
|
323
|
+
if (ret[3]) {
|
|
324
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
325
|
+
}
|
|
323
326
|
let v2;
|
|
324
327
|
if (ret[0] !== 0) {
|
|
325
328
|
v2 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
@@ -1059,14 +1062,14 @@ function __wbg_get_imports() {
|
|
|
1059
1062
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1060
1063
|
}
|
|
1061
1064
|
},
|
|
1062
|
-
|
|
1065
|
+
__wbg_execSync_e2c70c9dbfcff7e6: function(arg0, arg1, arg2) {
|
|
1063
1066
|
const ret = execSync(getStringFromWasm0(arg1, arg2));
|
|
1064
1067
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
1065
1068
|
const len1 = WASM_VECTOR_LEN;
|
|
1066
1069
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1067
1070
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1068
1071
|
},
|
|
1069
|
-
|
|
1072
|
+
__wbg_existsSync_036cfc17615a0d6b: function(arg0, arg1) {
|
|
1070
1073
|
const ret = existsSync(getStringFromWasm0(arg0, arg1));
|
|
1071
1074
|
return ret;
|
|
1072
1075
|
},
|
|
@@ -1166,7 +1169,7 @@ function __wbg_get_imports() {
|
|
|
1166
1169
|
__wbg_log_524eedafa26daa59: function(arg0) {
|
|
1167
1170
|
console.log(arg0);
|
|
1168
1171
|
},
|
|
1169
|
-
|
|
1172
|
+
__wbg_mkdirSync_24eaf73f4b98bffc: function(arg0, arg1, arg2) {
|
|
1170
1173
|
mkdirSync(getStringFromWasm0(arg0, arg1), arg2);
|
|
1171
1174
|
},
|
|
1172
1175
|
__wbg_new_0837727332ac86ba: function() { return handleError(function () {
|
|
@@ -1216,7 +1219,7 @@ function __wbg_get_imports() {
|
|
|
1216
1219
|
const a = state0.a;
|
|
1217
1220
|
state0.a = 0;
|
|
1218
1221
|
try {
|
|
1219
|
-
return
|
|
1222
|
+
return wasm_bindgen__convert__closures_____invoke__h7b5eed4538ab5ee4(a, state0.b, arg0, arg1);
|
|
1220
1223
|
} finally {
|
|
1221
1224
|
state0.a = a;
|
|
1222
1225
|
}
|
|
@@ -1249,7 +1252,7 @@ function __wbg_get_imports() {
|
|
|
1249
1252
|
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
1250
1253
|
queueMicrotask(arg0);
|
|
1251
1254
|
},
|
|
1252
|
-
|
|
1255
|
+
__wbg_readFileSync_7e86a7d642ed7aae: function(arg0, arg1, arg2) {
|
|
1253
1256
|
const ret = readFileSync(getStringFromWasm0(arg1, arg2));
|
|
1254
1257
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
1255
1258
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -1310,7 +1313,7 @@ function __wbg_get_imports() {
|
|
|
1310
1313
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1311
1314
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1312
1315
|
},
|
|
1313
|
-
|
|
1316
|
+
__wbg_static_accessor_ENV_8e51995cf06886bc: function() {
|
|
1314
1317
|
const ret = env;
|
|
1315
1318
|
return ret;
|
|
1316
1319
|
},
|
|
@@ -1357,17 +1360,17 @@ function __wbg_get_imports() {
|
|
|
1357
1360
|
const ret = arg0.value;
|
|
1358
1361
|
return ret;
|
|
1359
1362
|
},
|
|
1360
|
-
|
|
1363
|
+
__wbg_writeFileSync_42cee1c221b2718d: function(arg0, arg1, arg2, arg3) {
|
|
1361
1364
|
writeFileSync(getStringFromWasm0(arg0, arg1), getArrayU8FromWasm0(arg2, arg3));
|
|
1362
1365
|
},
|
|
1363
1366
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1364
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1365
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1367
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 357, function: Function { arguments: [], shim_idx: 358, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1368
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h4f53b7943fceff9f, wasm_bindgen__convert__closures_____invoke__h7fb3d9536d4d27f0);
|
|
1366
1369
|
return ret;
|
|
1367
1370
|
},
|
|
1368
1371
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1369
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1370
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1372
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 573, function: Function { arguments: [Externref], shim_idx: 574, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1373
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc216b882ea054e6f, wasm_bindgen__convert__closures_____invoke__he5eee221768fd278);
|
|
1371
1374
|
return ret;
|
|
1372
1375
|
},
|
|
1373
1376
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -1411,19 +1414,19 @@ function __wbg_get_imports() {
|
|
|
1411
1414
|
};
|
|
1412
1415
|
}
|
|
1413
1416
|
|
|
1414
|
-
function
|
|
1415
|
-
wasm.
|
|
1417
|
+
function wasm_bindgen__convert__closures_____invoke__h7fb3d9536d4d27f0(arg0, arg1) {
|
|
1418
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7fb3d9536d4d27f0(arg0, arg1);
|
|
1416
1419
|
}
|
|
1417
1420
|
|
|
1418
|
-
function
|
|
1419
|
-
const ret = wasm.
|
|
1421
|
+
function wasm_bindgen__convert__closures_____invoke__he5eee221768fd278(arg0, arg1, arg2) {
|
|
1422
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__he5eee221768fd278(arg0, arg1, arg2);
|
|
1420
1423
|
if (ret[1]) {
|
|
1421
1424
|
throw takeFromExternrefTable0(ret[0]);
|
|
1422
1425
|
}
|
|
1423
1426
|
}
|
|
1424
1427
|
|
|
1425
|
-
function
|
|
1426
|
-
wasm.
|
|
1428
|
+
function wasm_bindgen__convert__closures_____invoke__h7b5eed4538ab5ee4(arg0, arg1, arg2, arg3) {
|
|
1429
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7b5eed4538ab5ee4(arg0, arg1, arg2, arg3);
|
|
1427
1430
|
}
|
|
1428
1431
|
|
|
1429
1432
|
|
package/clarinet_sdk_bg.wasm
CHANGED
|
Binary file
|