@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 CHANGED
@@ -14,7 +14,8 @@ export type EpochString =
14
14
  | "3.1"
15
15
  | "3.2"
16
16
  | "3.3"
17
- | "3.4";
17
+ | "3.4"
18
+ | "4.0";
18
19
 
19
20
 
20
21
  export type IContractInterface = {
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
- __wbg_execSync_69c29143457f2157: function(arg0, arg1, arg2) {
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
- __wbg_existsSync_2dc34dd134987734: function(arg0, arg1) {
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
- __wbg_mkdirSync_d743ed6fc54f356c: function(arg0, arg1, arg2) {
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 wasm_bindgen__convert__closures_____invoke__h5710156571ab0e8d(a, state0.b, arg0, arg1);
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
- __wbg_readFileSync_03d50c3806be1ea7: function(arg0, arg1, arg2) {
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
- __wbg_static_accessor_ENV_2872a5a1ab28924f: function() {
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
- __wbg_writeFileSync_a2bcb88f1620e304: function(arg0, arg1, arg2, arg3) {
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: 345, function: Function { arguments: [], shim_idx: 346, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1365
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2c8e1055ba9f3627, wasm_bindgen__convert__closures_____invoke__h7cfec18c6178dc3a);
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: 574, function: Function { arguments: [Externref], shim_idx: 575, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1370
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1452c6b5fefb066a, wasm_bindgen__convert__closures_____invoke__h459f402597d7e8f0);
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 wasm_bindgen__convert__closures_____invoke__h7cfec18c6178dc3a(arg0, arg1) {
1415
- wasm.wasm_bindgen__convert__closures_____invoke__h7cfec18c6178dc3a(arg0, arg1);
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 wasm_bindgen__convert__closures_____invoke__h459f402597d7e8f0(arg0, arg1, arg2) {
1419
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h459f402597d7e8f0(arg0, arg1, arg2);
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 wasm_bindgen__convert__closures_____invoke__h5710156571ab0e8d(arg0, arg1, arg2, arg3) {
1426
- wasm.wasm_bindgen__convert__closures_____invoke__h5710156571ab0e8d(arg0, arg1, arg2, arg3);
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
 
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacks/clarinet-sdk-wasm",
3
3
  "description": "The core lib that powers @stacks/clarinet-sdk",
4
- "version": "3.18.1",
4
+ "version": "3.20.0",
5
5
  "license": "GPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",