@stacks/clarinet-sdk-wasm 3.9.2 → 3.11.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 +85 -85
- package/clarinet_sdk.js +19 -19
- package/clarinet_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/clarinet_sdk.d.ts
CHANGED
|
@@ -1,14 +1,48 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export type IContractInterface = {
|
|
4
|
+
functions: ContractInterfaceFunction[];
|
|
5
|
+
variables: ContractInterfaceVariable[];
|
|
6
|
+
maps: ContractInterfaceMap[];
|
|
7
|
+
fungible_tokens: ContractInterfaceFungibleTokens[];
|
|
8
|
+
non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
|
|
9
|
+
epoch: StacksEpochId;
|
|
10
|
+
clarity_version: ClarityVersionString;
|
|
11
|
+
};
|
|
12
|
+
|
|
3
13
|
type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
|
|
4
14
|
|
|
5
|
-
type
|
|
15
|
+
export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
|
|
6
16
|
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
|
|
18
|
+
|
|
19
|
+
type IContractAST = {
|
|
20
|
+
contract_identifier: any;
|
|
21
|
+
pre_expressions: any[];
|
|
22
|
+
expressions: Expression[];
|
|
23
|
+
top_level_expression_sorting: number[];
|
|
24
|
+
referenced_traits: Map<any, any>;
|
|
25
|
+
implemented_traits: any[];
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
type ContractInterfaceVariableAccess = "constant" | "variable";
|
|
29
|
+
|
|
30
|
+
type TraitReference = {
|
|
31
|
+
TraitReference: any;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type Field = {
|
|
35
|
+
Field: any;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
type Expression = {
|
|
39
|
+
expr: ExpressionType;
|
|
40
|
+
id: number;
|
|
41
|
+
span: Span;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
type LiteralValue = {
|
|
45
|
+
LiteralValue: any;
|
|
12
46
|
};
|
|
13
47
|
|
|
14
48
|
type ContractInterfaceMap = {
|
|
@@ -17,16 +51,49 @@ type ContractInterfaceMap = {
|
|
|
17
51
|
value: ContractInterfaceAtomType;
|
|
18
52
|
};
|
|
19
53
|
|
|
20
|
-
type
|
|
21
|
-
|
|
54
|
+
type ContractInterfaceFungibleTokens = { name: string };
|
|
55
|
+
|
|
56
|
+
type ContractInterfaceVariable = {
|
|
57
|
+
name: string;
|
|
58
|
+
type: ContractInterfaceAtomType;
|
|
59
|
+
access: ContractInterfaceVariableAccess;
|
|
22
60
|
};
|
|
23
61
|
|
|
24
|
-
|
|
62
|
+
type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
|
|
25
63
|
|
|
26
|
-
type
|
|
27
|
-
|
|
64
|
+
type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
|
|
65
|
+
|
|
66
|
+
export type StacksEpochId =
|
|
67
|
+
| "Epoch10"
|
|
68
|
+
| "Epoch20"
|
|
69
|
+
| "Epoch2_05"
|
|
70
|
+
| "Epoch21"
|
|
71
|
+
| "Epoch22"
|
|
72
|
+
| "Epoch23"
|
|
73
|
+
| "Epoch24"
|
|
74
|
+
| "Epoch25"
|
|
75
|
+
| "Epoch30"
|
|
76
|
+
| "Epoch31"
|
|
77
|
+
| "Epoch32"
|
|
78
|
+
| "Epoch33";
|
|
79
|
+
|
|
80
|
+
type Span = {
|
|
81
|
+
start_line: number;
|
|
82
|
+
start_column: number;
|
|
83
|
+
end_line: number;
|
|
84
|
+
end_column: number;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
type AtomValue = {
|
|
88
|
+
AtomValue: any;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
type List = {
|
|
92
|
+
List: Expression[];
|
|
28
93
|
};
|
|
29
94
|
|
|
95
|
+
type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
|
|
96
|
+
|
|
30
97
|
export type EpochString =
|
|
31
98
|
| "2.0"
|
|
32
99
|
| "2.05"
|
|
@@ -41,22 +108,15 @@ export type EpochString =
|
|
|
41
108
|
| "3.3";
|
|
42
109
|
|
|
43
110
|
|
|
44
|
-
type
|
|
45
|
-
|
|
46
|
-
type Field = {
|
|
47
|
-
Field: any;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
type TraitReference = {
|
|
51
|
-
TraitReference: any;
|
|
111
|
+
type Atom = {
|
|
112
|
+
Atom: String;
|
|
52
113
|
};
|
|
53
114
|
|
|
54
|
-
type
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
List: Expression[];
|
|
115
|
+
type ContractInterfaceFunction = {
|
|
116
|
+
name: string;
|
|
117
|
+
access: ContractInterfaceFunctionAccess;
|
|
118
|
+
args: ContractInterfaceFunctionArg[];
|
|
119
|
+
outputs: ContractInterfaceFunctionOutput;
|
|
60
120
|
};
|
|
61
121
|
|
|
62
122
|
type ContractInterfaceAtomType =
|
|
@@ -76,66 +136,6 @@ type ContractInterfaceAtomType =
|
|
|
76
136
|
|
|
77
137
|
type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
|
|
78
138
|
|
|
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
|
-
type Expression = {
|
|
98
|
-
expr: ExpressionType;
|
|
99
|
-
id: number;
|
|
100
|
-
span: Span;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export type IContractInterface = {
|
|
104
|
-
functions: ContractInterfaceFunction[];
|
|
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;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
type IContractAST = {
|
|
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
|
-
};
|
|
125
|
-
|
|
126
|
-
type Span = {
|
|
127
|
-
start_line: number;
|
|
128
|
-
start_column: number;
|
|
129
|
-
end_line: number;
|
|
130
|
-
end_column: number;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
type ContractInterfaceVariable = {
|
|
134
|
-
name: string;
|
|
135
|
-
type: ContractInterfaceAtomType;
|
|
136
|
-
access: ContractInterfaceVariableAccess;
|
|
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_6(arg0, arg1, arg2) {
|
|
249
|
+
wasm.closure616_externref_shim(arg0, arg1, arg2);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
function
|
|
253
|
-
wasm.
|
|
252
|
+
function __wbg_adapter_13(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.closure3380_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_419d59b4f6389493 = 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_7f09b998d0240e66 = 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_5298211523da6476 = 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_0d9aa2734bdfc253 = 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_49bb5a071229ce75 = 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_ec53c6d66b024777 = function(arg0, arg1, arg2, arg3) {
|
|
1790
1790
|
writeFileSync(getStringFromWasm0(arg0, arg1), getArrayU8FromWasm0(arg2, arg3));
|
|
1791
1791
|
};
|
|
1792
1792
|
|
|
@@ -1808,15 +1808,15 @@ module.exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
|
1808
1808
|
return ret;
|
|
1809
1809
|
};
|
|
1810
1810
|
|
|
1811
|
-
module.exports.
|
|
1812
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1813
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1811
|
+
module.exports.__wbindgen_cast_6a7642062628890f = function(arg0, arg1) {
|
|
1812
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 421, function: Function { arguments: [], shim_idx: 422, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1813
|
+
const ret = makeMutClosure(arg0, arg1, 421, __wbg_adapter_13);
|
|
1814
1814
|
return ret;
|
|
1815
1815
|
};
|
|
1816
1816
|
|
|
1817
|
-
module.exports.
|
|
1818
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1819
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1817
|
+
module.exports.__wbindgen_cast_b6b8ceaff092c36a = function(arg0, arg1) {
|
|
1818
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 615, function: Function { arguments: [Externref], shim_idx: 616, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1819
|
+
const ret = makeMutClosure(arg0, arg1, 615, __wbg_adapter_6);
|
|
1820
1820
|
return ret;
|
|
1821
1821
|
};
|
|
1822
1822
|
|
package/clarinet_sdk_bg.wasm
CHANGED
|
Binary file
|