@stacks/clarinet-sdk-wasm 3.9.1 → 3.10.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 +71 -71
- package/clarinet_sdk.js +25 -25
- package/clarinet_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/clarinet_sdk.d.ts
CHANGED
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
type ContractInterfaceFunction = {
|
|
4
|
+
name: string;
|
|
5
|
+
access: ContractInterfaceFunctionAccess;
|
|
6
|
+
args: ContractInterfaceFunctionArg[];
|
|
7
|
+
outputs: ContractInterfaceFunctionOutput;
|
|
7
8
|
};
|
|
8
9
|
|
|
10
|
+
export type StacksEpochId =
|
|
11
|
+
| "Epoch10"
|
|
12
|
+
| "Epoch20"
|
|
13
|
+
| "Epoch2_05"
|
|
14
|
+
| "Epoch21"
|
|
15
|
+
| "Epoch22"
|
|
16
|
+
| "Epoch23"
|
|
17
|
+
| "Epoch24"
|
|
18
|
+
| "Epoch25"
|
|
19
|
+
| "Epoch30"
|
|
20
|
+
| "Epoch31"
|
|
21
|
+
| "Epoch32"
|
|
22
|
+
| "Epoch33";
|
|
23
|
+
|
|
24
|
+
type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
|
|
25
|
+
|
|
26
|
+
type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
|
|
27
|
+
|
|
9
28
|
export type EpochString =
|
|
10
29
|
| "2.0"
|
|
11
30
|
| "2.05"
|
|
@@ -20,19 +39,43 @@ export type EpochString =
|
|
|
20
39
|
| "3.3";
|
|
21
40
|
|
|
22
41
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
42
|
+
type TraitReference = {
|
|
43
|
+
TraitReference: any;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type IContractInterface = {
|
|
47
|
+
functions: ContractInterfaceFunction[];
|
|
48
|
+
variables: ContractInterfaceVariable[];
|
|
49
|
+
maps: ContractInterfaceMap[];
|
|
50
|
+
fungible_tokens: ContractInterfaceFungibleTokens[];
|
|
51
|
+
non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
|
|
52
|
+
epoch: StacksEpochId;
|
|
53
|
+
clarity_version: ClarityVersionString;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
type ContractInterfaceFungibleTokens = { name: string };
|
|
57
|
+
|
|
58
|
+
type ContractInterfaceMap = {
|
|
59
|
+
name: string;
|
|
60
|
+
key: ContractInterfaceAtomType;
|
|
61
|
+
value: ContractInterfaceAtomType;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
|
|
65
|
+
|
|
66
|
+
type AtomValue = {
|
|
67
|
+
AtomValue: any;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
|
|
71
|
+
|
|
72
|
+
type ContractInterfaceVariable = {
|
|
73
|
+
name: string;
|
|
74
|
+
type: ContractInterfaceAtomType;
|
|
75
|
+
access: ContractInterfaceVariableAccess;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
|
|
36
79
|
|
|
37
80
|
type IContractAST = {
|
|
38
81
|
contract_identifier: any;
|
|
@@ -43,26 +86,20 @@ type IContractAST = {
|
|
|
43
86
|
implemented_traits: any[];
|
|
44
87
|
};
|
|
45
88
|
|
|
46
|
-
type
|
|
47
|
-
|
|
89
|
+
type List = {
|
|
90
|
+
List: Expression[];
|
|
48
91
|
};
|
|
49
92
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
type TraitReference = {
|
|
53
|
-
TraitReference: any;
|
|
93
|
+
type Atom = {
|
|
94
|
+
Atom: String;
|
|
54
95
|
};
|
|
55
96
|
|
|
56
|
-
type
|
|
57
|
-
AtomValue: any;
|
|
58
|
-
};
|
|
97
|
+
type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
|
|
59
98
|
|
|
60
|
-
type
|
|
61
|
-
|
|
99
|
+
type LiteralValue = {
|
|
100
|
+
LiteralValue: any;
|
|
62
101
|
};
|
|
63
102
|
|
|
64
|
-
type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
|
|
65
|
-
|
|
66
103
|
type ContractInterfaceAtomType =
|
|
67
104
|
| "none"
|
|
68
105
|
| "int128"
|
|
@@ -78,33 +115,16 @@ type ContractInterfaceAtomType =
|
|
|
78
115
|
| { list: { type: ContractInterfaceAtomType; length: number } }
|
|
79
116
|
| "trait_reference";
|
|
80
117
|
|
|
81
|
-
type
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
type LiteralValue = {
|
|
86
|
-
LiteralValue: any;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
type ContractInterfaceFunction = {
|
|
90
|
-
name: string;
|
|
91
|
-
access: ContractInterfaceFunctionAccess;
|
|
92
|
-
args: ContractInterfaceFunctionArg[];
|
|
93
|
-
outputs: ContractInterfaceFunctionOutput;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
type ContractInterfaceVariable = {
|
|
97
|
-
name: string;
|
|
98
|
-
type: ContractInterfaceAtomType;
|
|
99
|
-
access: ContractInterfaceVariableAccess;
|
|
118
|
+
type Expression = {
|
|
119
|
+
expr: ExpressionType;
|
|
120
|
+
id: number;
|
|
121
|
+
span: Span;
|
|
100
122
|
};
|
|
101
123
|
|
|
102
124
|
type Field = {
|
|
103
125
|
Field: any;
|
|
104
126
|
};
|
|
105
127
|
|
|
106
|
-
type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
|
|
107
|
-
|
|
108
128
|
type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
|
|
109
129
|
|
|
110
130
|
type Span = {
|
|
@@ -114,28 +134,8 @@ type Span = {
|
|
|
114
134
|
end_column: number;
|
|
115
135
|
};
|
|
116
136
|
|
|
117
|
-
type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
|
|
118
|
-
|
|
119
137
|
type ContractInterfaceVariableAccess = "constant" | "variable";
|
|
120
138
|
|
|
121
|
-
type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
|
|
122
|
-
|
|
123
|
-
export type IContractInterface = {
|
|
124
|
-
functions: ContractInterfaceFunction[];
|
|
125
|
-
variables: ContractInterfaceVariable[];
|
|
126
|
-
maps: ContractInterfaceMap[];
|
|
127
|
-
fungible_tokens: ContractInterfaceFungibleTokens[];
|
|
128
|
-
non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
|
|
129
|
-
epoch: StacksEpochId;
|
|
130
|
-
clarity_version: ClarityVersionString;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
type ContractInterfaceMap = {
|
|
134
|
-
name: string;
|
|
135
|
-
key: ContractInterfaceAtomType;
|
|
136
|
-
value: ContractInterfaceAtomType;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
139
|
export class CallFnArgs {
|
|
140
140
|
free(): void;
|
|
141
141
|
constructor(contract: string, method: string, args: Uint8Array[], sender: string);
|
package/clarinet_sdk.js
CHANGED
|
@@ -245,16 +245,16 @@ function takeFromExternrefTable0(idx) {
|
|
|
245
245
|
wasm.__externref_table_dealloc(idx);
|
|
246
246
|
return value;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
wasm.
|
|
248
|
+
function __wbg_adapter_16(arg0, arg1, arg2) {
|
|
249
|
+
wasm.closure617_externref_shim(arg0, arg1, arg2);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
function
|
|
253
|
-
wasm.
|
|
252
|
+
function __wbg_adapter_19(arg0, arg1) {
|
|
253
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7ec9172c18a98ef3(arg0, arg1);
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
function
|
|
257
|
-
wasm.
|
|
256
|
+
function __wbg_adapter_194(arg0, arg1, arg2, arg3) {
|
|
257
|
+
wasm.closure3383_externref_shim(arg0, arg1, arg2, arg3);
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
@@ -1312,7 +1312,7 @@ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
};
|
|
1314
1314
|
|
|
1315
|
-
module.exports.
|
|
1315
|
+
module.exports.__wbg_execSync_1752f8552f4cef5b = function(arg0, arg1, arg2) {
|
|
1316
1316
|
const ret = execSync(getStringFromWasm0(arg1, arg2));
|
|
1317
1317
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
1318
1318
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -1320,7 +1320,7 @@ module.exports.__wbg_execSync_0b87c54da019cc65 = function(arg0, arg1, arg2) {
|
|
|
1320
1320
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1321
1321
|
};
|
|
1322
1322
|
|
|
1323
|
-
module.exports.
|
|
1323
|
+
module.exports.__wbg_existsSync_afa6a054b7c84101 = function(arg0, arg1) {
|
|
1324
1324
|
const ret = existsSync(getStringFromWasm0(arg0, arg1));
|
|
1325
1325
|
return ret;
|
|
1326
1326
|
};
|
|
@@ -1431,7 +1431,7 @@ module.exports.__wbg_log_f3c04200b995730f = function(arg0) {
|
|
|
1431
1431
|
console.log(arg0);
|
|
1432
1432
|
};
|
|
1433
1433
|
|
|
1434
|
-
module.exports.
|
|
1434
|
+
module.exports.__wbg_mkdirSync_1e54807a5c28951d = function(arg0, arg1, arg2) {
|
|
1435
1435
|
mkdirSync(getStringFromWasm0(arg0, arg1), arg2);
|
|
1436
1436
|
};
|
|
1437
1437
|
|
|
@@ -1482,7 +1482,7 @@ module.exports.__wbg_new_d5e3800b120e37e1 = function(arg0, arg1) {
|
|
|
1482
1482
|
const a = state0.a;
|
|
1483
1483
|
state0.a = 0;
|
|
1484
1484
|
try {
|
|
1485
|
-
return
|
|
1485
|
+
return __wbg_adapter_194(a, state0.b, arg0, arg1);
|
|
1486
1486
|
} finally {
|
|
1487
1487
|
state0.a = a;
|
|
1488
1488
|
}
|
|
@@ -1561,7 +1561,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handl
|
|
|
1561
1561
|
arg0.randomFillSync(arg1);
|
|
1562
1562
|
}, arguments) };
|
|
1563
1563
|
|
|
1564
|
-
module.exports.
|
|
1564
|
+
module.exports.__wbg_readFileSync_3d6259a299c0206b = function(arg0, arg1, arg2) {
|
|
1565
1565
|
const ret = readFileSync(getStringFromWasm0(arg1, arg2));
|
|
1566
1566
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
1567
1567
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -1643,7 +1643,7 @@ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
|
1643
1643
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1644
1644
|
};
|
|
1645
1645
|
|
|
1646
|
-
module.exports.
|
|
1646
|
+
module.exports.__wbg_static_accessor_ENV_b337a8e33d71567b = function() {
|
|
1647
1647
|
const ret = env;
|
|
1648
1648
|
return ret;
|
|
1649
1649
|
};
|
|
@@ -1786,7 +1786,7 @@ module.exports.__wbg_wbindgenthrow_4c11a24fca429ccf = function(arg0, arg1) {
|
|
|
1786
1786
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1787
1787
|
};
|
|
1788
1788
|
|
|
1789
|
-
module.exports.
|
|
1789
|
+
module.exports.__wbg_writeFileSync_28192e0b2094601c = function(arg0, arg1, arg2, arg3) {
|
|
1790
1790
|
writeFileSync(getStringFromWasm0(arg0, arg1), getArrayU8FromWasm0(arg2, arg3));
|
|
1791
1791
|
};
|
|
1792
1792
|
|
|
@@ -1802,21 +1802,15 @@ module.exports.__wbindgen_cast_2ddd8a25ff58642a = function(arg0, arg1) {
|
|
|
1802
1802
|
return ret;
|
|
1803
1803
|
};
|
|
1804
1804
|
|
|
1805
|
-
module.exports.
|
|
1806
|
-
// Cast intrinsic for `
|
|
1807
|
-
const ret =
|
|
1808
|
-
return ret;
|
|
1809
|
-
};
|
|
1810
|
-
|
|
1811
|
-
module.exports.__wbindgen_cast_4ee81445540451b2 = function(arg0, arg1) {
|
|
1812
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 617, function: Function { arguments: [Externref], shim_idx: 618, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1813
|
-
const ret = makeMutClosure(arg0, arg1, 617, __wbg_adapter_12);
|
|
1805
|
+
module.exports.__wbindgen_cast_3e03ca06e54d5215 = function(arg0, arg1) {
|
|
1806
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 616, function: Function { arguments: [Externref], shim_idx: 617, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1807
|
+
const ret = makeMutClosure(arg0, arg1, 616, __wbg_adapter_16);
|
|
1814
1808
|
return ret;
|
|
1815
1809
|
};
|
|
1816
1810
|
|
|
1817
|
-
module.exports.
|
|
1818
|
-
// Cast intrinsic for `
|
|
1819
|
-
const ret =
|
|
1811
|
+
module.exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
1812
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1813
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1820
1814
|
return ret;
|
|
1821
1815
|
};
|
|
1822
1816
|
|
|
@@ -1838,6 +1832,12 @@ module.exports.__wbindgen_cast_e7b45dd881f38ce3 = function(arg0, arg1) {
|
|
|
1838
1832
|
return ret;
|
|
1839
1833
|
};
|
|
1840
1834
|
|
|
1835
|
+
module.exports.__wbindgen_cast_fc9cd109d50cf4e9 = function(arg0, arg1) {
|
|
1836
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 422, function: Function { arguments: [], shim_idx: 423, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1837
|
+
const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_19);
|
|
1838
|
+
return ret;
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1841
1841
|
module.exports.__wbindgen_init_externref_table = function() {
|
|
1842
1842
|
const table = wasm.__wbindgen_export_4;
|
|
1843
1843
|
const offset = table.grow(4);
|
package/clarinet_sdk_bg.wasm
CHANGED
|
Binary file
|