@stacks/clarinet-sdk-wasm-browser 3.9.0 → 3.9.2
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 +66 -66
- package/clarinet_sdk.js +12 -12
- package/clarinet_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/clarinet_sdk.d.ts
CHANGED
|
@@ -1,52 +1,22 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
type
|
|
4
|
-
List: Expression[];
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
export type EpochString =
|
|
8
|
-
| "2.0"
|
|
9
|
-
| "2.05"
|
|
10
|
-
| "2.1"
|
|
11
|
-
| "2.2"
|
|
12
|
-
| "2.3"
|
|
13
|
-
| "2.4"
|
|
14
|
-
| "2.5"
|
|
15
|
-
| "3.0"
|
|
16
|
-
| "3.1"
|
|
17
|
-
| "3.2"
|
|
18
|
-
| "3.3";
|
|
19
|
-
|
|
3
|
+
export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
|
|
20
4
|
|
|
21
|
-
type
|
|
22
|
-
Field: any;
|
|
23
|
-
};
|
|
5
|
+
type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
|
|
24
6
|
|
|
25
|
-
type
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
7
|
+
type Span = {
|
|
8
|
+
start_line: number;
|
|
9
|
+
start_column: number;
|
|
10
|
+
end_line: number;
|
|
11
|
+
end_column: number;
|
|
30
12
|
};
|
|
31
13
|
|
|
32
|
-
type
|
|
33
|
-
|
|
34
|
-
type: ContractInterfaceAtomType;
|
|
35
|
-
access: ContractInterfaceVariableAccess;
|
|
14
|
+
type LiteralValue = {
|
|
15
|
+
LiteralValue: any;
|
|
36
16
|
};
|
|
37
17
|
|
|
38
|
-
type
|
|
39
|
-
|
|
40
|
-
type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
|
|
41
|
-
|
|
42
|
-
export type IContractInterface = {
|
|
43
|
-
functions: ContractInterfaceFunction[];
|
|
44
|
-
variables: ContractInterfaceVariable[];
|
|
45
|
-
maps: ContractInterfaceMap[];
|
|
46
|
-
fungible_tokens: ContractInterfaceFungibleTokens[];
|
|
47
|
-
non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
|
|
48
|
-
epoch: StacksEpochId;
|
|
49
|
-
clarity_version: ClarityVersionString;
|
|
18
|
+
type AtomValue = {
|
|
19
|
+
AtomValue: any;
|
|
50
20
|
};
|
|
51
21
|
|
|
52
22
|
export type StacksEpochId =
|
|
@@ -63,19 +33,33 @@ export type StacksEpochId =
|
|
|
63
33
|
| "Epoch32"
|
|
64
34
|
| "Epoch33";
|
|
65
35
|
|
|
66
|
-
type
|
|
67
|
-
AtomValue: any;
|
|
68
|
-
};
|
|
36
|
+
type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
|
|
69
37
|
|
|
70
|
-
type
|
|
71
|
-
TraitReference: any;
|
|
72
|
-
};
|
|
38
|
+
type ContractInterfaceFungibleTokens = { name: string };
|
|
73
39
|
|
|
74
|
-
type
|
|
75
|
-
|
|
76
|
-
|
|
40
|
+
export type EpochString =
|
|
41
|
+
| "2.0"
|
|
42
|
+
| "2.05"
|
|
43
|
+
| "2.1"
|
|
44
|
+
| "2.2"
|
|
45
|
+
| "2.3"
|
|
46
|
+
| "2.4"
|
|
47
|
+
| "2.5"
|
|
48
|
+
| "3.0"
|
|
49
|
+
| "3.1"
|
|
50
|
+
| "3.2"
|
|
51
|
+
| "3.3";
|
|
77
52
|
|
|
78
|
-
|
|
53
|
+
|
|
54
|
+
export type IContractInterface = {
|
|
55
|
+
functions: ContractInterfaceFunction[];
|
|
56
|
+
variables: ContractInterfaceVariable[];
|
|
57
|
+
maps: ContractInterfaceMap[];
|
|
58
|
+
fungible_tokens: ContractInterfaceFungibleTokens[];
|
|
59
|
+
non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
|
|
60
|
+
epoch: StacksEpochId;
|
|
61
|
+
clarity_version: ClarityVersionString;
|
|
62
|
+
};
|
|
79
63
|
|
|
80
64
|
type IContractAST = {
|
|
81
65
|
contract_identifier: any;
|
|
@@ -86,12 +70,7 @@ type IContractAST = {
|
|
|
86
70
|
implemented_traits: any[];
|
|
87
71
|
};
|
|
88
72
|
|
|
89
|
-
type
|
|
90
|
-
start_line: number;
|
|
91
|
-
start_column: number;
|
|
92
|
-
end_line: number;
|
|
93
|
-
end_column: number;
|
|
94
|
-
};
|
|
73
|
+
type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
|
|
95
74
|
|
|
96
75
|
type ContractInterfaceMap = {
|
|
97
76
|
name: string;
|
|
@@ -99,9 +78,7 @@ type ContractInterfaceMap = {
|
|
|
99
78
|
value: ContractInterfaceAtomType;
|
|
100
79
|
};
|
|
101
80
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
|
|
81
|
+
type ContractInterfaceVariableAccess = "constant" | "variable";
|
|
105
82
|
|
|
106
83
|
type Expression = {
|
|
107
84
|
expr: ExpressionType;
|
|
@@ -109,10 +86,6 @@ type Expression = {
|
|
|
109
86
|
span: Span;
|
|
110
87
|
};
|
|
111
88
|
|
|
112
|
-
type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
|
|
113
|
-
|
|
114
|
-
type ContractInterfaceVariableAccess = "constant" | "variable";
|
|
115
|
-
|
|
116
89
|
type ContractInterfaceAtomType =
|
|
117
90
|
| "none"
|
|
118
91
|
| "int128"
|
|
@@ -128,14 +101,41 @@ type ContractInterfaceAtomType =
|
|
|
128
101
|
| { list: { type: ContractInterfaceAtomType; length: number } }
|
|
129
102
|
| "trait_reference";
|
|
130
103
|
|
|
104
|
+
type ContractInterfaceVariable = {
|
|
105
|
+
name: string;
|
|
106
|
+
type: ContractInterfaceAtomType;
|
|
107
|
+
access: ContractInterfaceVariableAccess;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
type ContractInterfaceFunction = {
|
|
111
|
+
name: string;
|
|
112
|
+
access: ContractInterfaceFunctionAccess;
|
|
113
|
+
args: ContractInterfaceFunctionArg[];
|
|
114
|
+
outputs: ContractInterfaceFunctionOutput;
|
|
115
|
+
};
|
|
116
|
+
|
|
131
117
|
type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
|
|
132
118
|
|
|
133
119
|
type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
|
|
134
120
|
|
|
121
|
+
type TraitReference = {
|
|
122
|
+
TraitReference: any;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
type Field = {
|
|
126
|
+
Field: any;
|
|
127
|
+
};
|
|
128
|
+
|
|
135
129
|
type Atom = {
|
|
136
130
|
Atom: String;
|
|
137
131
|
};
|
|
138
132
|
|
|
133
|
+
type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
|
|
134
|
+
|
|
135
|
+
type List = {
|
|
136
|
+
List: Expression[];
|
|
137
|
+
};
|
|
138
|
+
|
|
139
139
|
export class CallFnArgs {
|
|
140
140
|
free(): void;
|
|
141
141
|
constructor(contract: string, method: string, args: Uint8Array[], sender: string);
|
|
@@ -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 closure619_externref_shim: (a: number, b: number, c: any) => void;
|
|
317
318
|
readonly wasm_bindgen__convert__closures_____invoke__h640ed087ddae9bb5: (a: number, b: number) => void;
|
|
318
|
-
readonly
|
|
319
|
-
readonly closure3353_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
319
|
+
readonly closure3358_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_8(arg0, arg1, arg2) {
|
|
250
|
+
wasm.closure619_externref_shim(arg0, arg1, arg2);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
function
|
|
254
|
-
wasm.
|
|
253
|
+
function __wbg_adapter_13(arg0, arg1) {
|
|
254
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h640ed087ddae9bb5(arg0, arg1);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
function __wbg_adapter_228(arg0, arg1, arg2, arg3) {
|
|
258
|
-
wasm.
|
|
258
|
+
wasm.closure3358_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"];
|
|
@@ -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_ca7411debc291cc5 = function(arg0, arg1, arg2) {
|
|
1654
1654
|
let deferred0_0;
|
|
1655
1655
|
let deferred0_1;
|
|
1656
1656
|
try {
|
|
@@ -1740,14 +1740,9 @@ function __wbg_get_imports() {
|
|
|
1740
1740
|
const ret = BigInt.asUintN(64, arg0);
|
|
1741
1741
|
return ret;
|
|
1742
1742
|
};
|
|
1743
|
-
imports.wbg.__wbindgen_cast_4ee81445540451b2 = function(arg0, arg1) {
|
|
1744
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 617, function: Function { arguments: [Externref], shim_idx: 618, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1745
|
-
const ret = makeMutClosure(arg0, arg1, 617, __wbg_adapter_15);
|
|
1746
|
-
return ret;
|
|
1747
|
-
};
|
|
1748
1743
|
imports.wbg.__wbindgen_cast_73996509814681e3 = function(arg0, arg1) {
|
|
1749
1744
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 420, function: Function { arguments: [], shim_idx: 421, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1750
|
-
const ret = makeMutClosure(arg0, arg1, 420,
|
|
1745
|
+
const ret = makeMutClosure(arg0, arg1, 420, __wbg_adapter_13);
|
|
1751
1746
|
return ret;
|
|
1752
1747
|
};
|
|
1753
1748
|
imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
|
|
@@ -1757,6 +1752,11 @@ function __wbg_get_imports() {
|
|
|
1757
1752
|
const ret = v0;
|
|
1758
1753
|
return ret;
|
|
1759
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
1760
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
1761
1761
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1762
1762
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
package/clarinet_sdk_bg.wasm
CHANGED
|
Binary file
|