@stacks/clarinet-sdk-wasm-browser 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 +70 -70
- package/clarinet_sdk.js +14 -14
- package/clarinet_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/clarinet_sdk.d.ts
CHANGED
|
@@ -1,22 +1,45 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
type Atom = {
|
|
4
|
+
Atom: String;
|
|
5
|
+
};
|
|
6
6
|
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
start_column: number;
|
|
10
|
-
end_line: number;
|
|
11
|
-
end_column: number;
|
|
7
|
+
type Field = {
|
|
8
|
+
Field: any;
|
|
12
9
|
};
|
|
13
10
|
|
|
14
|
-
type
|
|
15
|
-
|
|
11
|
+
type Expression = {
|
|
12
|
+
expr: ExpressionType;
|
|
13
|
+
id: number;
|
|
14
|
+
span: Span;
|
|
16
15
|
};
|
|
17
16
|
|
|
18
|
-
type
|
|
19
|
-
|
|
17
|
+
type ContractInterfaceAtomType =
|
|
18
|
+
| "none"
|
|
19
|
+
| "int128"
|
|
20
|
+
| "uint128"
|
|
21
|
+
| "bool"
|
|
22
|
+
| "principal"
|
|
23
|
+
| { buffer: { length: number } }
|
|
24
|
+
| { "string-utf8": { length: number } }
|
|
25
|
+
| { "string-ascii": { length: number } }
|
|
26
|
+
| { tuple: ContractInterfaceTupleEntryType[] }
|
|
27
|
+
| { optional: ContractInterfaceAtomType }
|
|
28
|
+
| { response: { ok: ContractInterfaceAtomType; error: ContractInterfaceAtomType } }
|
|
29
|
+
| { list: { type: ContractInterfaceAtomType; length: number } }
|
|
30
|
+
| "trait_reference";
|
|
31
|
+
|
|
32
|
+
type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
|
|
33
|
+
|
|
34
|
+
type ContractInterfaceVariableAccess = "constant" | "variable";
|
|
35
|
+
|
|
36
|
+
export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
|
|
37
|
+
|
|
38
|
+
type ContractInterfaceFunction = {
|
|
39
|
+
name: string;
|
|
40
|
+
access: ContractInterfaceFunctionAccess;
|
|
41
|
+
args: ContractInterfaceFunctionArg[];
|
|
42
|
+
outputs: ContractInterfaceFunctionOutput;
|
|
20
43
|
};
|
|
21
44
|
|
|
22
45
|
export type StacksEpochId =
|
|
@@ -33,8 +56,6 @@ export type StacksEpochId =
|
|
|
33
56
|
| "Epoch32"
|
|
34
57
|
| "Epoch33";
|
|
35
58
|
|
|
36
|
-
type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
|
|
37
|
-
|
|
38
59
|
type ContractInterfaceFungibleTokens = { name: string };
|
|
39
60
|
|
|
40
61
|
export type EpochString =
|
|
@@ -51,14 +72,10 @@ export type EpochString =
|
|
|
51
72
|
| "3.3";
|
|
52
73
|
|
|
53
74
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
fungible_tokens: ContractInterfaceFungibleTokens[];
|
|
59
|
-
non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
|
|
60
|
-
epoch: StacksEpochId;
|
|
61
|
-
clarity_version: ClarityVersionString;
|
|
75
|
+
type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
|
|
76
|
+
|
|
77
|
+
type LiteralValue = {
|
|
78
|
+
LiteralValue: any;
|
|
62
79
|
};
|
|
63
80
|
|
|
64
81
|
type IContractAST = {
|
|
@@ -70,70 +87,53 @@ type IContractAST = {
|
|
|
70
87
|
implemented_traits: any[];
|
|
71
88
|
};
|
|
72
89
|
|
|
90
|
+
type TraitReference = {
|
|
91
|
+
TraitReference: any;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export type IContractInterface = {
|
|
95
|
+
functions: ContractInterfaceFunction[];
|
|
96
|
+
variables: ContractInterfaceVariable[];
|
|
97
|
+
maps: ContractInterfaceMap[];
|
|
98
|
+
fungible_tokens: ContractInterfaceFungibleTokens[];
|
|
99
|
+
non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
|
|
100
|
+
epoch: StacksEpochId;
|
|
101
|
+
clarity_version: ClarityVersionString;
|
|
102
|
+
};
|
|
103
|
+
|
|
73
104
|
type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
|
|
74
105
|
|
|
106
|
+
type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
|
|
107
|
+
|
|
108
|
+
type List = {
|
|
109
|
+
List: Expression[];
|
|
110
|
+
};
|
|
111
|
+
|
|
75
112
|
type ContractInterfaceMap = {
|
|
76
113
|
name: string;
|
|
77
114
|
key: ContractInterfaceAtomType;
|
|
78
115
|
value: ContractInterfaceAtomType;
|
|
79
116
|
};
|
|
80
117
|
|
|
81
|
-
type
|
|
82
|
-
|
|
83
|
-
type Expression = {
|
|
84
|
-
expr: ExpressionType;
|
|
85
|
-
id: number;
|
|
86
|
-
span: Span;
|
|
118
|
+
type AtomValue = {
|
|
119
|
+
AtomValue: any;
|
|
87
120
|
};
|
|
88
121
|
|
|
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";
|
|
103
|
-
|
|
104
122
|
type ContractInterfaceVariable = {
|
|
105
123
|
name: string;
|
|
106
124
|
type: ContractInterfaceAtomType;
|
|
107
125
|
access: ContractInterfaceVariableAccess;
|
|
108
126
|
};
|
|
109
127
|
|
|
110
|
-
type
|
|
111
|
-
name: string;
|
|
112
|
-
access: ContractInterfaceFunctionAccess;
|
|
113
|
-
args: ContractInterfaceFunctionArg[];
|
|
114
|
-
outputs: ContractInterfaceFunctionOutput;
|
|
115
|
-
};
|
|
128
|
+
type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
|
|
116
129
|
|
|
117
130
|
type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
|
|
118
131
|
|
|
119
|
-
type
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
type Field = {
|
|
126
|
-
Field: any;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
type Atom = {
|
|
130
|
-
Atom: String;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
|
|
134
|
-
|
|
135
|
-
type List = {
|
|
136
|
-
List: Expression[];
|
|
132
|
+
type Span = {
|
|
133
|
+
start_line: number;
|
|
134
|
+
start_column: number;
|
|
135
|
+
end_line: number;
|
|
136
|
+
end_column: number;
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
export class CallFnArgs {
|
|
@@ -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 closure616_externref_shim: (a: number, b: number, c: any) => void;
|
|
318
|
+
readonly wasm_bindgen__convert__closures_____invoke__h565e262deb2f0b88: (a: number, b: number) => void;
|
|
319
|
+
readonly closure3379_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_16(arg0, arg1, arg2) {
|
|
250
|
+
wasm.closure616_externref_shim(arg0, arg1, arg2);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
function
|
|
254
|
-
wasm.
|
|
253
|
+
function __wbg_adapter_21(arg0, arg1) {
|
|
254
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h565e262deb2f0b88(arg0, arg1);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
function
|
|
258
|
-
wasm.
|
|
257
|
+
function __wbg_adapter_198(arg0, arg1, arg2, arg3) {
|
|
258
|
+
wasm.closure3379_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_59c96e85235882cf = function(arg0, arg1, arg2) {
|
|
1654
1654
|
let deferred0_0;
|
|
1655
1655
|
let deferred0_1;
|
|
1656
1656
|
try {
|
|
@@ -1740,9 +1740,9 @@ function __wbg_get_imports() {
|
|
|
1740
1740
|
const ret = BigInt.asUintN(64, arg0);
|
|
1741
1741
|
return ret;
|
|
1742
1742
|
};
|
|
1743
|
-
imports.wbg.
|
|
1744
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1745
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1743
|
+
imports.wbg.__wbindgen_cast_6a7642062628890f = function(arg0, arg1) {
|
|
1744
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 421, function: Function { arguments: [], shim_idx: 422, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1745
|
+
const ret = makeMutClosure(arg0, arg1, 421, __wbg_adapter_21);
|
|
1746
1746
|
return ret;
|
|
1747
1747
|
};
|
|
1748
1748
|
imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
|
|
@@ -1752,9 +1752,9 @@ function __wbg_get_imports() {
|
|
|
1752
1752
|
const ret = v0;
|
|
1753
1753
|
return ret;
|
|
1754
1754
|
};
|
|
1755
|
-
imports.wbg.
|
|
1756
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1757
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1755
|
+
imports.wbg.__wbindgen_cast_b6b8ceaff092c36a = function(arg0, arg1) {
|
|
1756
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 615, function: Function { arguments: [Externref], shim_idx: 616, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1757
|
+
const ret = makeMutClosure(arg0, arg1, 615, __wbg_adapter_16);
|
|
1758
1758
|
return ret;
|
|
1759
1759
|
};
|
|
1760
1760
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
package/clarinet_sdk_bg.wasm
CHANGED
|
Binary file
|