@stacks/clarinet-sdk-wasm 3.9.2 → 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 +68 -68
- 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,9 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
|
|
4
|
-
|
|
5
|
-
type ContractInterfaceFungibleTokens = { name: string };
|
|
6
|
-
|
|
7
3
|
type ContractInterfaceFunction = {
|
|
8
4
|
name: string;
|
|
9
5
|
access: ContractInterfaceFunctionAccess;
|
|
@@ -11,21 +7,23 @@ type ContractInterfaceFunction = {
|
|
|
11
7
|
outputs: ContractInterfaceFunctionOutput;
|
|
12
8
|
};
|
|
13
9
|
|
|
14
|
-
type
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
23
|
|
|
24
|
-
|
|
24
|
+
type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
|
|
25
25
|
|
|
26
|
-
type
|
|
27
|
-
Atom: String;
|
|
28
|
-
};
|
|
26
|
+
type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
|
|
29
27
|
|
|
30
28
|
export type EpochString =
|
|
31
29
|
| "2.0"
|
|
@@ -41,24 +39,67 @@ export type EpochString =
|
|
|
41
39
|
| "3.3";
|
|
42
40
|
|
|
43
41
|
|
|
44
|
-
type
|
|
42
|
+
type TraitReference = {
|
|
43
|
+
TraitReference: any;
|
|
44
|
+
};
|
|
45
45
|
|
|
46
|
-
type
|
|
47
|
-
|
|
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;
|
|
48
54
|
};
|
|
49
55
|
|
|
50
|
-
type
|
|
51
|
-
|
|
56
|
+
type ContractInterfaceFungibleTokens = { name: string };
|
|
57
|
+
|
|
58
|
+
type ContractInterfaceMap = {
|
|
59
|
+
name: string;
|
|
60
|
+
key: ContractInterfaceAtomType;
|
|
61
|
+
value: ContractInterfaceAtomType;
|
|
52
62
|
};
|
|
53
63
|
|
|
54
|
-
type
|
|
64
|
+
export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
|
|
65
|
+
|
|
66
|
+
type AtomValue = {
|
|
67
|
+
AtomValue: any;
|
|
68
|
+
};
|
|
55
69
|
|
|
56
70
|
type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
|
|
57
71
|
|
|
72
|
+
type ContractInterfaceVariable = {
|
|
73
|
+
name: string;
|
|
74
|
+
type: ContractInterfaceAtomType;
|
|
75
|
+
access: ContractInterfaceVariableAccess;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
|
|
79
|
+
|
|
80
|
+
type IContractAST = {
|
|
81
|
+
contract_identifier: any;
|
|
82
|
+
pre_expressions: any[];
|
|
83
|
+
expressions: Expression[];
|
|
84
|
+
top_level_expression_sorting: number[];
|
|
85
|
+
referenced_traits: Map<any, any>;
|
|
86
|
+
implemented_traits: any[];
|
|
87
|
+
};
|
|
88
|
+
|
|
58
89
|
type List = {
|
|
59
90
|
List: Expression[];
|
|
60
91
|
};
|
|
61
92
|
|
|
93
|
+
type Atom = {
|
|
94
|
+
Atom: String;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
|
|
98
|
+
|
|
99
|
+
type LiteralValue = {
|
|
100
|
+
LiteralValue: any;
|
|
101
|
+
};
|
|
102
|
+
|
|
62
103
|
type ContractInterfaceAtomType =
|
|
63
104
|
| "none"
|
|
64
105
|
| "int128"
|
|
@@ -74,54 +115,17 @@ type ContractInterfaceAtomType =
|
|
|
74
115
|
| { list: { type: ContractInterfaceAtomType; length: number } }
|
|
75
116
|
| "trait_reference";
|
|
76
117
|
|
|
77
|
-
type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
|
|
78
|
-
|
|
79
|
-
type ContractInterfaceVariableAccess = "constant" | "variable";
|
|
80
|
-
|
|
81
|
-
type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
|
|
82
|
-
|
|
83
|
-
export type StacksEpochId =
|
|
84
|
-
| "Epoch10"
|
|
85
|
-
| "Epoch20"
|
|
86
|
-
| "Epoch2_05"
|
|
87
|
-
| "Epoch21"
|
|
88
|
-
| "Epoch22"
|
|
89
|
-
| "Epoch23"
|
|
90
|
-
| "Epoch24"
|
|
91
|
-
| "Epoch25"
|
|
92
|
-
| "Epoch30"
|
|
93
|
-
| "Epoch31"
|
|
94
|
-
| "Epoch32"
|
|
95
|
-
| "Epoch33";
|
|
96
|
-
|
|
97
118
|
type Expression = {
|
|
98
119
|
expr: ExpressionType;
|
|
99
120
|
id: number;
|
|
100
121
|
span: Span;
|
|
101
122
|
};
|
|
102
123
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
variables: ContractInterfaceVariable[];
|
|
106
|
-
maps: ContractInterfaceMap[];
|
|
107
|
-
fungible_tokens: ContractInterfaceFungibleTokens[];
|
|
108
|
-
non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
|
|
109
|
-
epoch: StacksEpochId;
|
|
110
|
-
clarity_version: ClarityVersionString;
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
type AtomValue = {
|
|
114
|
-
AtomValue: any;
|
|
124
|
+
type Field = {
|
|
125
|
+
Field: any;
|
|
115
126
|
};
|
|
116
127
|
|
|
117
|
-
type
|
|
118
|
-
contract_identifier: any;
|
|
119
|
-
pre_expressions: any[];
|
|
120
|
-
expressions: Expression[];
|
|
121
|
-
top_level_expression_sorting: number[];
|
|
122
|
-
referenced_traits: Map<any, any>;
|
|
123
|
-
implemented_traits: any[];
|
|
124
|
-
};
|
|
128
|
+
type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
|
|
125
129
|
|
|
126
130
|
type Span = {
|
|
127
131
|
start_line: number;
|
|
@@ -130,11 +134,7 @@ type Span = {
|
|
|
130
134
|
end_column: number;
|
|
131
135
|
};
|
|
132
136
|
|
|
133
|
-
type
|
|
134
|
-
name: string;
|
|
135
|
-
type: ContractInterfaceAtomType;
|
|
136
|
-
access: ContractInterfaceVariableAccess;
|
|
137
|
-
};
|
|
137
|
+
type ContractInterfaceVariableAccess = "constant" | "variable";
|
|
138
138
|
|
|
139
139
|
export class CallFnArgs {
|
|
140
140
|
free(): void;
|
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_7172ba8f8d02ab3f = 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_73996509814681e3 = function(arg0, arg1) {
|
|
1812
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 420, function: Function { arguments: [], shim_idx: 421, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1813
|
-
const ret = makeMutClosure(arg0, arg1, 420, __wbg_adapter_15);
|
|
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
|