@stacks/clarinet-sdk-wasm-browser 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 +89 -89
- package/clarinet_sdk.js +18 -18
- package/clarinet_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/clarinet_sdk.d.ts
CHANGED
|
@@ -1,41 +1,19 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
type AtomValue = {
|
|
19
|
-
AtomValue: any;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export type StacksEpochId =
|
|
23
|
-
| "Epoch10"
|
|
24
|
-
| "Epoch20"
|
|
25
|
-
| "Epoch2_05"
|
|
26
|
-
| "Epoch21"
|
|
27
|
-
| "Epoch22"
|
|
28
|
-
| "Epoch23"
|
|
29
|
-
| "Epoch24"
|
|
30
|
-
| "Epoch25"
|
|
31
|
-
| "Epoch30"
|
|
32
|
-
| "Epoch31"
|
|
33
|
-
| "Epoch32"
|
|
34
|
-
| "Epoch33";
|
|
35
|
-
|
|
36
|
-
type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
|
|
37
|
-
|
|
38
|
-
type ContractInterfaceFungibleTokens = { name: string };
|
|
3
|
+
type ContractInterfaceAtomType =
|
|
4
|
+
| "none"
|
|
5
|
+
| "int128"
|
|
6
|
+
| "uint128"
|
|
7
|
+
| "bool"
|
|
8
|
+
| "principal"
|
|
9
|
+
| { buffer: { length: number } }
|
|
10
|
+
| { "string-utf8": { length: number } }
|
|
11
|
+
| { "string-ascii": { length: number } }
|
|
12
|
+
| { tuple: ContractInterfaceTupleEntryType[] }
|
|
13
|
+
| { optional: ContractInterfaceAtomType }
|
|
14
|
+
| { response: { ok: ContractInterfaceAtomType; error: ContractInterfaceAtomType } }
|
|
15
|
+
| { list: { type: ContractInterfaceAtomType; length: number } }
|
|
16
|
+
| "trait_reference";
|
|
39
17
|
|
|
40
18
|
export type EpochString =
|
|
41
19
|
| "2.0"
|
|
@@ -51,6 +29,16 @@ export type EpochString =
|
|
|
51
29
|
| "3.3";
|
|
52
30
|
|
|
53
31
|
|
|
32
|
+
type Expression = {
|
|
33
|
+
expr: ExpressionType;
|
|
34
|
+
id: number;
|
|
35
|
+
span: Span;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
type Field = {
|
|
39
|
+
Field: any;
|
|
40
|
+
};
|
|
41
|
+
|
|
54
42
|
export type IContractInterface = {
|
|
55
43
|
functions: ContractInterfaceFunction[];
|
|
56
44
|
variables: ContractInterfaceVariable[];
|
|
@@ -61,16 +49,28 @@ export type IContractInterface = {
|
|
|
61
49
|
clarity_version: ClarityVersionString;
|
|
62
50
|
};
|
|
63
51
|
|
|
64
|
-
type
|
|
65
|
-
|
|
66
|
-
pre_expressions: any[];
|
|
67
|
-
expressions: Expression[];
|
|
68
|
-
top_level_expression_sorting: number[];
|
|
69
|
-
referenced_traits: Map<any, any>;
|
|
70
|
-
implemented_traits: any[];
|
|
52
|
+
type Atom = {
|
|
53
|
+
Atom: String;
|
|
71
54
|
};
|
|
72
55
|
|
|
73
|
-
type
|
|
56
|
+
type ContractInterfaceFunction = {
|
|
57
|
+
name: string;
|
|
58
|
+
access: ContractInterfaceFunctionAccess;
|
|
59
|
+
args: ContractInterfaceFunctionArg[];
|
|
60
|
+
outputs: ContractInterfaceFunctionOutput;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
type AtomValue = {
|
|
64
|
+
AtomValue: any;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
type List = {
|
|
68
|
+
List: Expression[];
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
type TraitReference = {
|
|
72
|
+
TraitReference: any;
|
|
73
|
+
};
|
|
74
74
|
|
|
75
75
|
type ContractInterfaceMap = {
|
|
76
76
|
name: string;
|
|
@@ -78,63 +78,63 @@ type ContractInterfaceMap = {
|
|
|
78
78
|
value: ContractInterfaceAtomType;
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
type
|
|
81
|
+
type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
|
|
82
82
|
|
|
83
|
-
type
|
|
84
|
-
expr: ExpressionType;
|
|
85
|
-
id: number;
|
|
86
|
-
span: Span;
|
|
87
|
-
};
|
|
83
|
+
type ContractInterfaceVariableAccess = "constant" | "variable";
|
|
88
84
|
|
|
89
|
-
type ContractInterfaceAtomType
|
|
90
|
-
| "none"
|
|
91
|
-
| "int128"
|
|
92
|
-
| "uint128"
|
|
93
|
-
| "bool"
|
|
94
|
-
| "principal"
|
|
95
|
-
| { buffer: { length: number } }
|
|
96
|
-
| { "string-utf8": { length: number } }
|
|
97
|
-
| { "string-ascii": { length: number } }
|
|
98
|
-
| { tuple: ContractInterfaceTupleEntryType[] }
|
|
99
|
-
| { optional: ContractInterfaceAtomType }
|
|
100
|
-
| { response: { ok: ContractInterfaceAtomType; error: ContractInterfaceAtomType } }
|
|
101
|
-
| { list: { type: ContractInterfaceAtomType; length: number } }
|
|
102
|
-
| "trait_reference";
|
|
85
|
+
type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
|
|
103
86
|
|
|
104
|
-
type
|
|
105
|
-
name: string;
|
|
106
|
-
type: ContractInterfaceAtomType;
|
|
107
|
-
access: ContractInterfaceVariableAccess;
|
|
108
|
-
};
|
|
87
|
+
type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
|
|
109
88
|
|
|
110
|
-
type
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
89
|
+
type Span = {
|
|
90
|
+
start_line: number;
|
|
91
|
+
start_column: number;
|
|
92
|
+
end_line: number;
|
|
93
|
+
end_column: number;
|
|
115
94
|
};
|
|
116
95
|
|
|
117
|
-
type
|
|
96
|
+
type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
|
|
118
97
|
|
|
119
|
-
type
|
|
98
|
+
export type StacksEpochId =
|
|
99
|
+
| "Epoch10"
|
|
100
|
+
| "Epoch20"
|
|
101
|
+
| "Epoch2_05"
|
|
102
|
+
| "Epoch21"
|
|
103
|
+
| "Epoch22"
|
|
104
|
+
| "Epoch23"
|
|
105
|
+
| "Epoch24"
|
|
106
|
+
| "Epoch25"
|
|
107
|
+
| "Epoch30"
|
|
108
|
+
| "Epoch31"
|
|
109
|
+
| "Epoch32"
|
|
110
|
+
| "Epoch33";
|
|
120
111
|
|
|
121
|
-
type
|
|
122
|
-
|
|
112
|
+
type LiteralValue = {
|
|
113
|
+
LiteralValue: any;
|
|
123
114
|
};
|
|
124
115
|
|
|
125
|
-
type
|
|
126
|
-
|
|
116
|
+
type ContractInterfaceFungibleTokens = { name: string };
|
|
117
|
+
|
|
118
|
+
type IContractAST = {
|
|
119
|
+
contract_identifier: any;
|
|
120
|
+
pre_expressions: any[];
|
|
121
|
+
expressions: Expression[];
|
|
122
|
+
top_level_expression_sorting: number[];
|
|
123
|
+
referenced_traits: Map<any, any>;
|
|
124
|
+
implemented_traits: any[];
|
|
127
125
|
};
|
|
128
126
|
|
|
129
|
-
type
|
|
130
|
-
|
|
127
|
+
type ContractInterfaceVariable = {
|
|
128
|
+
name: string;
|
|
129
|
+
type: ContractInterfaceAtomType;
|
|
130
|
+
access: ContractInterfaceVariableAccess;
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
type
|
|
133
|
+
export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
|
|
134
134
|
|
|
135
|
-
type
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
|
|
136
|
+
|
|
137
|
+
type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
|
|
138
138
|
|
|
139
139
|
export class CallFnArgs {
|
|
140
140
|
free(): void;
|
|
@@ -314,9 +314,9 @@ export interface InitOutput {
|
|
|
314
314
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
315
315
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
316
316
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
317
|
-
readonly
|
|
318
|
-
readonly
|
|
319
|
-
readonly
|
|
317
|
+
readonly wasm_bindgen__convert__closures_____invoke__h565e262deb2f0b88: (a: number, b: number) => void;
|
|
318
|
+
readonly closure617_externref_shim: (a: number, b: number, c: any) => void;
|
|
319
|
+
readonly closure3380_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
320
320
|
readonly __wbindgen_start: () => void;
|
|
321
321
|
}
|
|
322
322
|
|
package/clarinet_sdk.js
CHANGED
|
@@ -246,16 +246,16 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
246
246
|
WASM_VECTOR_LEN = arg.length;
|
|
247
247
|
return ptr;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
250
|
-
wasm.
|
|
249
|
+
function __wbg_adapter_10(arg0, arg1) {
|
|
250
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h565e262deb2f0b88(arg0, arg1);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
function
|
|
254
|
-
wasm.
|
|
253
|
+
function __wbg_adapter_19(arg0, arg1, arg2) {
|
|
254
|
+
wasm.closure617_externref_shim(arg0, arg1, arg2);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
function
|
|
258
|
-
wasm.
|
|
257
|
+
function __wbg_adapter_198(arg0, arg1, arg2, arg3) {
|
|
258
|
+
wasm.closure3380_externref_shim(arg0, arg1, arg2, arg3);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
@@ -1457,7 +1457,7 @@ function __wbg_get_imports() {
|
|
|
1457
1457
|
const a = state0.a;
|
|
1458
1458
|
state0.a = 0;
|
|
1459
1459
|
try {
|
|
1460
|
-
return
|
|
1460
|
+
return __wbg_adapter_198(a, state0.b, arg0, arg1);
|
|
1461
1461
|
} finally {
|
|
1462
1462
|
state0.a = a;
|
|
1463
1463
|
}
|
|
@@ -1650,7 +1650,7 @@ function __wbg_get_imports() {
|
|
|
1650
1650
|
const ret = arg0.versions;
|
|
1651
1651
|
return ret;
|
|
1652
1652
|
};
|
|
1653
|
-
imports.wbg.
|
|
1653
|
+
imports.wbg.__wbg_vfs_198b1c167c7590ad = function(arg0, arg1, arg2) {
|
|
1654
1654
|
let deferred0_0;
|
|
1655
1655
|
let deferred0_1;
|
|
1656
1656
|
try {
|
|
@@ -1735,16 +1735,16 @@ function __wbg_get_imports() {
|
|
|
1735
1735
|
const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
|
|
1736
1736
|
return ret;
|
|
1737
1737
|
};
|
|
1738
|
+
imports.wbg.__wbindgen_cast_3e03ca06e54d5215 = function(arg0, arg1) {
|
|
1739
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 616, function: Function { arguments: [Externref], shim_idx: 617, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1740
|
+
const ret = makeMutClosure(arg0, arg1, 616, __wbg_adapter_19);
|
|
1741
|
+
return ret;
|
|
1742
|
+
};
|
|
1738
1743
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
1739
1744
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1740
1745
|
const ret = BigInt.asUintN(64, arg0);
|
|
1741
1746
|
return ret;
|
|
1742
1747
|
};
|
|
1743
|
-
imports.wbg.__wbindgen_cast_73996509814681e3 = function(arg0, arg1) {
|
|
1744
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 420, function: Function { arguments: [], shim_idx: 421, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1745
|
-
const ret = makeMutClosure(arg0, arg1, 420, __wbg_adapter_13);
|
|
1746
|
-
return ret;
|
|
1747
|
-
};
|
|
1748
1748
|
imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
|
|
1749
1749
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1750
1750
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
@@ -1752,11 +1752,6 @@ function __wbg_get_imports() {
|
|
|
1752
1752
|
const ret = v0;
|
|
1753
1753
|
return ret;
|
|
1754
1754
|
};
|
|
1755
|
-
imports.wbg.__wbindgen_cast_a9e0c53a9be02a22 = function(arg0, arg1) {
|
|
1756
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 618, function: Function { arguments: [Externref], shim_idx: 619, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1757
|
-
const ret = makeMutClosure(arg0, arg1, 618, __wbg_adapter_8);
|
|
1758
|
-
return ret;
|
|
1759
|
-
};
|
|
1760
1755
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
1761
1756
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1762
1757
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
@@ -1772,6 +1767,11 @@ function __wbg_get_imports() {
|
|
|
1772
1767
|
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
1773
1768
|
return ret;
|
|
1774
1769
|
};
|
|
1770
|
+
imports.wbg.__wbindgen_cast_fc9cd109d50cf4e9 = function(arg0, arg1) {
|
|
1771
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 422, function: Function { arguments: [], shim_idx: 423, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1772
|
+
const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_10);
|
|
1773
|
+
return ret;
|
|
1774
|
+
};
|
|
1775
1775
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1776
1776
|
const table = wasm.__wbindgen_export_4;
|
|
1777
1777
|
const offset = table.grow(4);
|
package/clarinet_sdk_bg.wasm
CHANGED
|
Binary file
|