@stacks/clarinet-sdk-wasm-browser 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 +8 -7
- package/clarinet_sdk.js +15 -12
- package/clarinet_sdk_bg.wasm +0 -0
- package/package.json +1 -1
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 = {
|
|
@@ -298,7 +299,7 @@ export interface InitOutput {
|
|
|
298
299
|
readonly sdk_getAssetsMap: (a: number) => [number, number, number];
|
|
299
300
|
readonly sdk_getBlockTime: (a: number) => bigint;
|
|
300
301
|
readonly sdk_getContractAST: (a: number, b: number, c: number) => [number, number, number];
|
|
301
|
-
readonly sdk_getContractSource: (a: number, b: number, c: number) => [number, number];
|
|
302
|
+
readonly sdk_getContractSource: (a: number, b: number, c: number) => [number, number, number, number];
|
|
302
303
|
readonly sdk_getContractsInterfaces: (a: number) => [number, number, number];
|
|
303
304
|
readonly sdk_getDataVar: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
304
305
|
readonly sdk_getDefaultClarityVersionForCurrentEpoch: (a: number) => any;
|
|
@@ -329,11 +330,11 @@ export interface InitOutput {
|
|
|
329
330
|
readonly sdk_stacksBlockHeight: (a: number) => number;
|
|
330
331
|
readonly __wbg_get_transactionres_events: (a: number) => [number, number];
|
|
331
332
|
readonly __wbg_get_transactionres_result: (a: number) => [number, number];
|
|
332
|
-
readonly
|
|
333
|
-
readonly
|
|
334
|
-
readonly
|
|
335
|
-
readonly
|
|
336
|
-
readonly
|
|
333
|
+
readonly wasm_bindgen__closure__destroy__h3eb3c39bdee44103: (a: number, b: number) => void;
|
|
334
|
+
readonly wasm_bindgen__closure__destroy__hc216b882ea054e6f: (a: number, b: number) => void;
|
|
335
|
+
readonly wasm_bindgen__convert__closures_____invoke__he5eee221768fd278: (a: number, b: number, c: any) => [number, number];
|
|
336
|
+
readonly wasm_bindgen__convert__closures_____invoke__h7b5eed4538ab5ee4: (a: number, b: number, c: any, d: any) => void;
|
|
337
|
+
readonly wasm_bindgen__convert__closures_____invoke__hf542ac6ebe6e67e6: (a: number, b: number) => void;
|
|
337
338
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
338
339
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
339
340
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/clarinet_sdk.js
CHANGED
|
@@ -314,6 +314,9 @@ export class SDK {
|
|
|
314
314
|
const ptr0 = passStringToWasm0(contract, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
315
315
|
const len0 = WASM_VECTOR_LEN;
|
|
316
316
|
const ret = wasm.sdk_getContractSource(this.__wbg_ptr, ptr0, len0);
|
|
317
|
+
if (ret[3]) {
|
|
318
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
319
|
+
}
|
|
317
320
|
let v2;
|
|
318
321
|
if (ret[0] !== 0) {
|
|
319
322
|
v2 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
@@ -1190,7 +1193,7 @@ function __wbg_get_imports() {
|
|
|
1190
1193
|
const a = state0.a;
|
|
1191
1194
|
state0.a = 0;
|
|
1192
1195
|
try {
|
|
1193
|
-
return
|
|
1196
|
+
return wasm_bindgen__convert__closures_____invoke__h7b5eed4538ab5ee4(a, state0.b, arg0, arg1);
|
|
1194
1197
|
} finally {
|
|
1195
1198
|
state0.a = a;
|
|
1196
1199
|
}
|
|
@@ -1340,7 +1343,7 @@ function __wbg_get_imports() {
|
|
|
1340
1343
|
const ret = arg0.value;
|
|
1341
1344
|
return ret;
|
|
1342
1345
|
},
|
|
1343
|
-
|
|
1346
|
+
__wbg_vfs_12f9bb03afdf3133: function(arg0, arg1, arg2) {
|
|
1344
1347
|
let deferred0_0;
|
|
1345
1348
|
let deferred0_1;
|
|
1346
1349
|
try {
|
|
@@ -1353,13 +1356,13 @@ function __wbg_get_imports() {
|
|
|
1353
1356
|
}
|
|
1354
1357
|
},
|
|
1355
1358
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1356
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1357
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1359
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 369, function: Function { arguments: [], shim_idx: 370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1360
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3eb3c39bdee44103, wasm_bindgen__convert__closures_____invoke__hf542ac6ebe6e67e6);
|
|
1358
1361
|
return ret;
|
|
1359
1362
|
},
|
|
1360
1363
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1361
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1362
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1364
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 572, function: Function { arguments: [Externref], shim_idx: 573, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1365
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc216b882ea054e6f, wasm_bindgen__convert__closures_____invoke__he5eee221768fd278);
|
|
1363
1366
|
return ret;
|
|
1364
1367
|
},
|
|
1365
1368
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -1410,19 +1413,19 @@ function __wbg_get_imports() {
|
|
|
1410
1413
|
};
|
|
1411
1414
|
}
|
|
1412
1415
|
|
|
1413
|
-
function
|
|
1414
|
-
wasm.
|
|
1416
|
+
function wasm_bindgen__convert__closures_____invoke__hf542ac6ebe6e67e6(arg0, arg1) {
|
|
1417
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hf542ac6ebe6e67e6(arg0, arg1);
|
|
1415
1418
|
}
|
|
1416
1419
|
|
|
1417
|
-
function
|
|
1418
|
-
const ret = wasm.
|
|
1420
|
+
function wasm_bindgen__convert__closures_____invoke__he5eee221768fd278(arg0, arg1, arg2) {
|
|
1421
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__he5eee221768fd278(arg0, arg1, arg2);
|
|
1419
1422
|
if (ret[1]) {
|
|
1420
1423
|
throw takeFromExternrefTable0(ret[0]);
|
|
1421
1424
|
}
|
|
1422
1425
|
}
|
|
1423
1426
|
|
|
1424
|
-
function
|
|
1425
|
-
wasm.
|
|
1427
|
+
function wasm_bindgen__convert__closures_____invoke__h7b5eed4538ab5ee4(arg0, arg1, arg2, arg3) {
|
|
1428
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7b5eed4538ab5ee4(arg0, arg1, arg2, arg3);
|
|
1426
1429
|
}
|
|
1427
1430
|
|
|
1428
1431
|
|
package/clarinet_sdk_bg.wasm
CHANGED
|
Binary file
|