@stacks/clarinet-sdk-wasm-browser 3.13.1 → 3.14.1
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 +289 -287
- package/clarinet_sdk.js +1264 -1266
- package/clarinet_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/clarinet_sdk.d.ts
CHANGED
|
@@ -1,364 +1,366 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
type ContractInterfaceVariableAccess = "constant" | "variable";
|
|
3
|
+
export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4" | "Clarity5";
|
|
6
4
|
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
| "trait_reference";
|
|
5
|
+
export type EpochString =
|
|
6
|
+
| "2.0"
|
|
7
|
+
| "2.05"
|
|
8
|
+
| "2.1"
|
|
9
|
+
| "2.2"
|
|
10
|
+
| "2.3"
|
|
11
|
+
| "2.4"
|
|
12
|
+
| "2.5"
|
|
13
|
+
| "3.0"
|
|
14
|
+
| "3.1"
|
|
15
|
+
| "3.2"
|
|
16
|
+
| "3.3"
|
|
17
|
+
| "3.4";
|
|
21
18
|
|
|
22
|
-
type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
|
|
23
19
|
|
|
24
|
-
type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
export type IContractInterface = {
|
|
21
|
+
functions: ContractInterfaceFunction[];
|
|
22
|
+
variables: ContractInterfaceVariable[];
|
|
23
|
+
maps: ContractInterfaceMap[];
|
|
24
|
+
fungible_tokens: ContractInterfaceFungibleTokens[];
|
|
25
|
+
non_fungible_tokens: ContractInterfaceNonFungibleTokens[];
|
|
26
|
+
epoch: StacksEpochId;
|
|
27
|
+
clarity_version: ClarityVersionString;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
export type
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
30
|
+
export type StacksEpochId =
|
|
31
|
+
| "Epoch10"
|
|
32
|
+
| "Epoch20"
|
|
33
|
+
| "Epoch2_05"
|
|
34
|
+
| "Epoch21"
|
|
35
|
+
| "Epoch22"
|
|
36
|
+
| "Epoch23"
|
|
37
|
+
| "Epoch24"
|
|
38
|
+
| "Epoch25"
|
|
39
|
+
| "Epoch30"
|
|
40
|
+
| "Epoch31"
|
|
41
|
+
| "Epoch32"
|
|
42
|
+
| "Epoch33"
|
|
43
|
+
| "Epoch34";
|
|
43
44
|
|
|
44
|
-
type
|
|
45
|
+
type Atom = {
|
|
46
|
+
Atom: String;
|
|
47
|
+
};
|
|
45
48
|
|
|
46
|
-
type
|
|
49
|
+
type AtomValue = {
|
|
50
|
+
AtomValue: any;
|
|
51
|
+
};
|
|
47
52
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
type ContractInterfaceAtomType =
|
|
54
|
+
| "none"
|
|
55
|
+
| "int128"
|
|
56
|
+
| "uint128"
|
|
57
|
+
| "bool"
|
|
58
|
+
| "principal"
|
|
59
|
+
| { buffer: { length: number } }
|
|
60
|
+
| { "string-utf8": { length: number } }
|
|
61
|
+
| { "string-ascii": { length: number } }
|
|
62
|
+
| { tuple: ContractInterfaceTupleEntryType[] }
|
|
63
|
+
| { optional: ContractInterfaceAtomType }
|
|
64
|
+
| { response: { ok: ContractInterfaceAtomType; error: ContractInterfaceAtomType } }
|
|
65
|
+
| { list: { type: ContractInterfaceAtomType; length: number } }
|
|
66
|
+
| "trait_reference";
|
|
61
67
|
|
|
62
|
-
type
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
referenced_traits: Map<any, any>;
|
|
68
|
-
implemented_traits: any[];
|
|
68
|
+
type ContractInterfaceFunction = {
|
|
69
|
+
name: string;
|
|
70
|
+
access: ContractInterfaceFunctionAccess;
|
|
71
|
+
args: ContractInterfaceFunctionArg[];
|
|
72
|
+
outputs: ContractInterfaceFunctionOutput;
|
|
69
73
|
};
|
|
70
74
|
|
|
71
|
-
type
|
|
75
|
+
type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
|
|
72
76
|
|
|
73
|
-
|
|
77
|
+
type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
|
|
74
78
|
|
|
75
|
-
type
|
|
76
|
-
|
|
77
|
-
};
|
|
79
|
+
type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
|
|
80
|
+
|
|
81
|
+
type ContractInterfaceFungibleTokens = { name: string };
|
|
78
82
|
|
|
79
83
|
type ContractInterfaceMap = {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
name: string;
|
|
85
|
+
key: ContractInterfaceAtomType;
|
|
86
|
+
value: ContractInterfaceAtomType;
|
|
83
87
|
};
|
|
84
88
|
|
|
85
|
-
type
|
|
86
|
-
Atom: String;
|
|
87
|
-
};
|
|
89
|
+
type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
|
|
88
90
|
|
|
89
|
-
type
|
|
90
|
-
List: Expression[];
|
|
91
|
-
};
|
|
91
|
+
type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
|
|
92
92
|
|
|
93
|
-
type
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
outputs: ContractInterfaceFunctionOutput;
|
|
93
|
+
type ContractInterfaceVariable = {
|
|
94
|
+
name: string;
|
|
95
|
+
type: ContractInterfaceAtomType;
|
|
96
|
+
access: ContractInterfaceVariableAccess;
|
|
98
97
|
};
|
|
99
98
|
|
|
100
|
-
type
|
|
101
|
-
TraitReference: any;
|
|
102
|
-
};
|
|
99
|
+
type ContractInterfaceVariableAccess = "constant" | "variable";
|
|
103
100
|
|
|
104
|
-
type
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
end_column: number;
|
|
101
|
+
type Expression = {
|
|
102
|
+
expr: ExpressionType;
|
|
103
|
+
id: number;
|
|
104
|
+
span: Span;
|
|
109
105
|
};
|
|
110
106
|
|
|
111
|
-
type
|
|
112
|
-
name: string;
|
|
113
|
-
type: ContractInterfaceAtomType;
|
|
114
|
-
access: ContractInterfaceVariableAccess;
|
|
115
|
-
};
|
|
107
|
+
type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
|
|
116
108
|
|
|
117
109
|
type Field = {
|
|
118
|
-
|
|
110
|
+
Field: any;
|
|
119
111
|
};
|
|
120
112
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
113
|
+
type IContractAST = {
|
|
114
|
+
contract_identifier: any;
|
|
115
|
+
pre_expressions: any[];
|
|
116
|
+
expressions: Expression[];
|
|
117
|
+
top_level_expression_sorting: number[];
|
|
118
|
+
referenced_traits: Map<any, any>;
|
|
119
|
+
implemented_traits: any[];
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
type List = {
|
|
123
|
+
List: Expression[];
|
|
129
124
|
};
|
|
130
125
|
|
|
131
126
|
type LiteralValue = {
|
|
132
|
-
|
|
127
|
+
LiteralValue: any;
|
|
133
128
|
};
|
|
134
129
|
|
|
135
|
-
type
|
|
130
|
+
type Span = {
|
|
131
|
+
start_line: number;
|
|
132
|
+
start_column: number;
|
|
133
|
+
end_line: number;
|
|
134
|
+
end_column: number;
|
|
135
|
+
};
|
|
136
136
|
|
|
137
|
-
type
|
|
137
|
+
type TraitReference = {
|
|
138
|
+
TraitReference: any;
|
|
139
|
+
};
|
|
138
140
|
|
|
139
141
|
|
|
140
142
|
export class CallFnArgs {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
143
|
+
free(): void;
|
|
144
|
+
[Symbol.dispose](): void;
|
|
145
|
+
constructor(contract: string, method: string, args: Uint8Array[], sender: string);
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
export class ContractOptions {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
149
|
+
free(): void;
|
|
150
|
+
[Symbol.dispose](): void;
|
|
151
|
+
constructor(clarity_version?: number | null);
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
export class DeployContractArgs {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
155
|
+
free(): void;
|
|
156
|
+
[Symbol.dispose](): void;
|
|
157
|
+
constructor(name: string, content: string, options: ContractOptions, sender: string);
|
|
156
158
|
}
|
|
157
159
|
|
|
158
160
|
export class SDK {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
161
|
+
free(): void;
|
|
162
|
+
[Symbol.dispose](): void;
|
|
163
|
+
callPrivateFn(args: CallFnArgs): TransactionRes;
|
|
164
|
+
callPublicFn(args: CallFnArgs): TransactionRes;
|
|
165
|
+
callReadOnlyFn(args: CallFnArgs): TransactionRes;
|
|
166
|
+
clearCache(): void;
|
|
167
|
+
collectReport(include_boot_contracts: boolean, boot_contracts_path: string): SessionReport;
|
|
168
|
+
deployContract(args: DeployContractArgs): TransactionRes;
|
|
169
|
+
enablePerformance(cost_field: string): void;
|
|
170
|
+
execute(snippet: string): TransactionRes;
|
|
171
|
+
executeCommand(snippet: string): string;
|
|
172
|
+
generateDeploymentPlan(cwd: string, manifest_path: string): Promise<void>;
|
|
173
|
+
getAccounts(): Map<string, string>;
|
|
174
|
+
getAssetsMap(): Map<string, Map<string, bigint>>;
|
|
175
|
+
getBlockTime(): bigint;
|
|
176
|
+
getContractAST(contract: string): IContractAST;
|
|
177
|
+
getContractSource(contract: string): string | undefined;
|
|
178
|
+
getContractsInterfaces(): Map<string, IContractInterface>;
|
|
179
|
+
getDataVar(contract: string, var_name: string): string;
|
|
180
|
+
getDefaultClarityVersionForCurrentEpoch(): ClarityVersionString;
|
|
181
|
+
static getDefaultEpoch(): EpochString;
|
|
182
|
+
/**
|
|
183
|
+
* Returns the last contract call trace as a string, if available.
|
|
184
|
+
*/
|
|
185
|
+
getLastContractCallTrace(): string | undefined;
|
|
186
|
+
getMapEntry(contract: string, map_name: string, map_key: Uint8Array): string;
|
|
187
|
+
initEmptySession(remote_data_settings: any): Promise<void>;
|
|
188
|
+
initSession(cwd: string, manifest_path: string): Promise<void>;
|
|
189
|
+
mineBlock(js_txs: Array<any>): any;
|
|
190
|
+
mineEmptyBlock(): number;
|
|
191
|
+
mineEmptyBlocks(count?: number | null): number;
|
|
192
|
+
mineEmptyBurnBlock(): number;
|
|
193
|
+
mineEmptyBurnBlocks(count?: number | null): number;
|
|
194
|
+
mineEmptyStacksBlock(): number;
|
|
195
|
+
mineEmptyStacksBlocks(count?: number | null): number;
|
|
196
|
+
mintFT(token: string, recipient: string, amount: bigint): string;
|
|
197
|
+
mintSTX(recipient: string, amount: bigint): string;
|
|
198
|
+
constructor(fs_request: Function, options?: SDKOptions | null);
|
|
199
|
+
runSnippet(snippet: string): string;
|
|
200
|
+
setCurrentTestName(test_name: string): void;
|
|
201
|
+
setEpoch(epoch: EpochString): void;
|
|
202
|
+
setLocalAccounts(addresses: string[]): void;
|
|
203
|
+
transferSTX(args: TransferSTXArgs): TransactionRes;
|
|
204
|
+
deployer: string;
|
|
205
|
+
readonly blockHeight: number;
|
|
206
|
+
readonly burnBlockHeight: number;
|
|
207
|
+
readonly currentEpoch: string;
|
|
208
|
+
readonly stacksBlockHeight: number;
|
|
207
209
|
}
|
|
208
210
|
|
|
209
211
|
export class SDKOptions {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
free(): void;
|
|
213
|
+
[Symbol.dispose](): void;
|
|
214
|
+
constructor(track_costs: boolean, track_coverage: boolean, track_performance?: boolean | null);
|
|
215
|
+
trackCosts: boolean;
|
|
216
|
+
trackCoverage: boolean;
|
|
217
|
+
trackPerformance: boolean;
|
|
216
218
|
}
|
|
217
219
|
|
|
218
220
|
export class SessionReport {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
private constructor();
|
|
222
|
+
free(): void;
|
|
223
|
+
[Symbol.dispose](): void;
|
|
224
|
+
costs: string;
|
|
225
|
+
coverage: string;
|
|
224
226
|
}
|
|
225
227
|
|
|
226
228
|
export class TransactionRes {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
229
|
+
private constructor();
|
|
230
|
+
free(): void;
|
|
231
|
+
[Symbol.dispose](): void;
|
|
232
|
+
costs: string;
|
|
233
|
+
events: string;
|
|
234
|
+
get performance(): string | undefined;
|
|
235
|
+
set performance(value: string | null | undefined);
|
|
236
|
+
result: string;
|
|
235
237
|
}
|
|
236
238
|
|
|
237
239
|
export class TransferSTXArgs {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
240
|
+
free(): void;
|
|
241
|
+
[Symbol.dispose](): void;
|
|
242
|
+
constructor(amount: bigint, recipient: string, sender: string);
|
|
241
243
|
}
|
|
242
244
|
|
|
243
245
|
export class TxArgs {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
246
|
+
private constructor();
|
|
247
|
+
free(): void;
|
|
248
|
+
[Symbol.dispose](): void;
|
|
247
249
|
}
|
|
248
250
|
|
|
249
251
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
250
252
|
|
|
251
253
|
export interface InitOutput {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
254
|
+
readonly memory: WebAssembly.Memory;
|
|
255
|
+
readonly __wbg_callfnargs_free: (a: number, b: number) => void;
|
|
256
|
+
readonly __wbg_contractoptions_free: (a: number, b: number) => void;
|
|
257
|
+
readonly __wbg_deploycontractargs_free: (a: number, b: number) => void;
|
|
258
|
+
readonly __wbg_get_sdk_deployer: (a: number) => [number, number];
|
|
259
|
+
readonly __wbg_get_sdkoptions_trackCosts: (a: number) => number;
|
|
260
|
+
readonly __wbg_get_sdkoptions_trackCoverage: (a: number) => number;
|
|
261
|
+
readonly __wbg_get_sdkoptions_trackPerformance: (a: number) => number;
|
|
262
|
+
readonly __wbg_get_sessionreport_costs: (a: number) => [number, number];
|
|
263
|
+
readonly __wbg_get_sessionreport_coverage: (a: number) => [number, number];
|
|
264
|
+
readonly __wbg_get_transactionres_costs: (a: number) => [number, number];
|
|
265
|
+
readonly __wbg_get_transactionres_performance: (a: number) => [number, number];
|
|
266
|
+
readonly __wbg_sdk_free: (a: number, b: number) => void;
|
|
267
|
+
readonly __wbg_sdkoptions_free: (a: number, b: number) => void;
|
|
268
|
+
readonly __wbg_sessionreport_free: (a: number, b: number) => void;
|
|
269
|
+
readonly __wbg_set_sdk_deployer: (a: number, b: number, c: number) => void;
|
|
270
|
+
readonly __wbg_set_sdkoptions_trackCosts: (a: number, b: number) => void;
|
|
271
|
+
readonly __wbg_set_sdkoptions_trackCoverage: (a: number, b: number) => void;
|
|
272
|
+
readonly __wbg_set_sdkoptions_trackPerformance: (a: number, b: number) => void;
|
|
273
|
+
readonly __wbg_set_sessionreport_costs: (a: number, b: number, c: number) => void;
|
|
274
|
+
readonly __wbg_set_sessionreport_coverage: (a: number, b: number, c: number) => void;
|
|
275
|
+
readonly __wbg_set_transactionres_costs: (a: number, b: number, c: number) => void;
|
|
276
|
+
readonly __wbg_set_transactionres_performance: (a: number, b: number, c: number) => void;
|
|
277
|
+
readonly __wbg_transactionres_free: (a: number, b: number) => void;
|
|
278
|
+
readonly __wbg_transferstxargs_free: (a: number, b: number) => void;
|
|
279
|
+
readonly __wbg_txargs_free: (a: number, b: number) => void;
|
|
280
|
+
readonly callfnargs_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
281
|
+
readonly contractoptions_new: (a: number) => number;
|
|
282
|
+
readonly deploycontractargs_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
283
|
+
readonly sdk_blockHeight: (a: number) => number;
|
|
284
|
+
readonly sdk_burnBlockHeight: (a: number) => number;
|
|
285
|
+
readonly sdk_callPrivateFn: (a: number, b: number) => [number, number, number];
|
|
286
|
+
readonly sdk_callPublicFn: (a: number, b: number) => [number, number, number];
|
|
287
|
+
readonly sdk_callReadOnlyFn: (a: number, b: number) => [number, number, number];
|
|
288
|
+
readonly sdk_clearCache: (a: number) => void;
|
|
289
|
+
readonly sdk_collectReport: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
290
|
+
readonly sdk_currentEpoch: (a: number) => [number, number];
|
|
291
|
+
readonly sdk_deployContract: (a: number, b: number) => [number, number, number];
|
|
292
|
+
readonly sdk_enablePerformance: (a: number, b: number, c: number) => [number, number];
|
|
293
|
+
readonly sdk_execute: (a: number, b: number, c: number) => [number, number, number];
|
|
294
|
+
readonly sdk_executeCommand: (a: number, b: number, c: number) => [number, number];
|
|
295
|
+
readonly sdk_generateDeploymentPlan: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
296
|
+
readonly sdk_getAccounts: (a: number) => [number, number, number];
|
|
297
|
+
readonly sdk_getAssetsMap: (a: number) => [number, number, number];
|
|
298
|
+
readonly sdk_getBlockTime: (a: number) => bigint;
|
|
299
|
+
readonly sdk_getContractAST: (a: number, b: number, c: number) => [number, number, number];
|
|
300
|
+
readonly sdk_getContractSource: (a: number, b: number, c: number) => [number, number];
|
|
301
|
+
readonly sdk_getContractsInterfaces: (a: number) => [number, number, number];
|
|
302
|
+
readonly sdk_getDataVar: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
303
|
+
readonly sdk_getDefaultClarityVersionForCurrentEpoch: (a: number) => any;
|
|
304
|
+
readonly sdk_getDefaultEpoch: () => any;
|
|
305
|
+
readonly sdk_getLastContractCallTrace: (a: number) => [number, number];
|
|
306
|
+
readonly sdk_getMapEntry: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
307
|
+
readonly sdk_initEmptySession: (a: number, b: any) => any;
|
|
308
|
+
readonly sdk_initSession: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
309
|
+
readonly sdk_mineBlock: (a: number, b: any) => [number, number, number];
|
|
310
|
+
readonly sdk_mineEmptyBlock: (a: number) => number;
|
|
311
|
+
readonly sdk_mineEmptyBlocks: (a: number, b: number) => number;
|
|
312
|
+
readonly sdk_mineEmptyBurnBlock: (a: number) => number;
|
|
313
|
+
readonly sdk_mineEmptyBurnBlocks: (a: number, b: number) => number;
|
|
314
|
+
readonly sdk_mineEmptyStacksBlock: (a: number) => [number, number, number];
|
|
315
|
+
readonly sdk_mineEmptyStacksBlocks: (a: number, b: number) => [number, number, number];
|
|
316
|
+
readonly sdk_mintFT: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number, number, number];
|
|
317
|
+
readonly sdk_mintSTX: (a: number, b: number, c: number, d: bigint) => [number, number, number, number];
|
|
318
|
+
readonly sdk_new: (a: any, b: number) => number;
|
|
319
|
+
readonly sdk_runSnippet: (a: number, b: number, c: number) => [number, number];
|
|
320
|
+
readonly sdk_setCurrentTestName: (a: number, b: number, c: number) => void;
|
|
321
|
+
readonly sdk_setEpoch: (a: number, b: any) => void;
|
|
322
|
+
readonly sdk_setLocalAccounts: (a: number, b: number, c: number) => void;
|
|
323
|
+
readonly sdk_transferSTX: (a: number, b: number) => [number, number, number];
|
|
324
|
+
readonly sdkoptions_new: (a: number, b: number, c: number) => number;
|
|
325
|
+
readonly transferstxargs_new: (a: bigint, b: number, c: number, d: number, e: number) => number;
|
|
326
|
+
readonly __wbg_get_transactionres_events: (a: number) => [number, number];
|
|
327
|
+
readonly __wbg_get_transactionres_result: (a: number) => [number, number];
|
|
328
|
+
readonly sdk_stacksBlockHeight: (a: number) => number;
|
|
329
|
+
readonly __wbg_set_transactionres_events: (a: number, b: number, c: number) => void;
|
|
330
|
+
readonly __wbg_set_transactionres_result: (a: number, b: number, c: number) => void;
|
|
331
|
+
readonly wasm_bindgen__closure__destroy__h198100926bb093f3: (a: number, b: number) => void;
|
|
332
|
+
readonly wasm_bindgen__closure__destroy__h8906009e658726e5: (a: number, b: number) => void;
|
|
333
|
+
readonly wasm_bindgen__convert__closures_____invoke__h17062e91c506f269: (a: number, b: number, c: any, d: any) => void;
|
|
334
|
+
readonly wasm_bindgen__convert__closures_____invoke__h7e014784d51faeee: (a: number, b: number, c: any) => void;
|
|
335
|
+
readonly wasm_bindgen__convert__closures_____invoke__hfefd06e2b02cdfa5: (a: number, b: number) => void;
|
|
336
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
337
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
338
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
339
|
+
readonly __externref_table_alloc: () => number;
|
|
340
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
341
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
342
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
343
|
+
readonly __wbindgen_start: () => void;
|
|
342
344
|
}
|
|
343
345
|
|
|
344
346
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
345
347
|
|
|
346
348
|
/**
|
|
347
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
348
|
-
* a precompiled `WebAssembly.Module`.
|
|
349
|
-
*
|
|
350
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
351
|
-
*
|
|
352
|
-
* @returns {InitOutput}
|
|
353
|
-
*/
|
|
349
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
350
|
+
* a precompiled `WebAssembly.Module`.
|
|
351
|
+
*
|
|
352
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
353
|
+
*
|
|
354
|
+
* @returns {InitOutput}
|
|
355
|
+
*/
|
|
354
356
|
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
355
357
|
|
|
356
358
|
/**
|
|
357
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
358
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
359
|
-
*
|
|
360
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
361
|
-
*
|
|
362
|
-
* @returns {Promise<InitOutput>}
|
|
363
|
-
*/
|
|
359
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
360
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
361
|
+
*
|
|
362
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
363
|
+
*
|
|
364
|
+
* @returns {Promise<InitOutput>}
|
|
365
|
+
*/
|
|
364
366
|
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|