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