@stacks/clarinet-sdk-wasm 3.10.0 → 3.12.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 CHANGED
@@ -1,30 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- type ContractInterfaceFunction = {
4
- name: string;
5
- access: ContractInterfaceFunctionAccess;
6
- args: ContractInterfaceFunctionArg[];
7
- outputs: ContractInterfaceFunctionOutput;
8
- };
9
-
10
- export type StacksEpochId =
11
- | "Epoch10"
12
- | "Epoch20"
13
- | "Epoch2_05"
14
- | "Epoch21"
15
- | "Epoch22"
16
- | "Epoch23"
17
- | "Epoch24"
18
- | "Epoch25"
19
- | "Epoch30"
20
- | "Epoch31"
21
- | "Epoch32"
22
- | "Epoch33";
23
-
24
- type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
25
-
26
- type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
27
-
28
3
  export type EpochString =
29
4
  | "2.0"
30
5
  | "2.05"
@@ -39,10 +14,12 @@ export type EpochString =
39
14
  | "3.3";
40
15
 
41
16
 
42
- type TraitReference = {
43
- TraitReference: any;
17
+ type Field = {
18
+ Field: any;
44
19
  };
45
20
 
21
+ type ContractInterfaceFunctionOutput = { type: ContractInterfaceAtomType };
22
+
46
23
  export type IContractInterface = {
47
24
  functions: ContractInterfaceFunction[];
48
25
  variables: ContractInterfaceVariable[];
@@ -53,7 +30,20 @@ export type IContractInterface = {
53
30
  clarity_version: ClarityVersionString;
54
31
  };
55
32
 
56
- type ContractInterfaceFungibleTokens = { name: string };
33
+ type Expression = {
34
+ expr: ExpressionType;
35
+ id: number;
36
+ span: Span;
37
+ };
38
+
39
+ type IContractAST = {
40
+ contract_identifier: any;
41
+ pre_expressions: any[];
42
+ expressions: Expression[];
43
+ top_level_expression_sorting: number[];
44
+ referenced_traits: Map<any, any>;
45
+ implemented_traits: any[];
46
+ };
57
47
 
58
48
  type ContractInterfaceMap = {
59
49
  name: string;
@@ -61,44 +51,55 @@ type ContractInterfaceMap = {
61
51
  value: ContractInterfaceAtomType;
62
52
  };
63
53
 
64
- export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
65
-
66
- type AtomValue = {
67
- AtomValue: any;
68
- };
69
-
70
- type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
71
-
72
54
  type ContractInterfaceVariable = {
73
55
  name: string;
74
56
  type: ContractInterfaceAtomType;
75
57
  access: ContractInterfaceVariableAccess;
76
58
  };
77
59
 
78
- type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
60
+ type ContractInterfaceVariableAccess = "constant" | "variable";
79
61
 
80
- type IContractAST = {
81
- contract_identifier: any;
82
- pre_expressions: any[];
83
- expressions: Expression[];
84
- top_level_expression_sorting: number[];
85
- referenced_traits: Map<any, any>;
86
- implemented_traits: any[];
62
+ type LiteralValue = {
63
+ LiteralValue: any;
87
64
  };
88
65
 
89
- type List = {
90
- List: Expression[];
66
+ type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
67
+
68
+ type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
69
+
70
+ type ContractInterfaceFungibleTokens = { name: string };
71
+
72
+ export type ClarityVersionString = "Clarity1" | "Clarity2" | "Clarity3"| "Clarity4";
73
+
74
+ type Span = {
75
+ start_line: number;
76
+ start_column: number;
77
+ end_line: number;
78
+ end_column: number;
91
79
  };
92
80
 
93
- type Atom = {
94
- Atom: String;
81
+ type ContractInterfaceFunction = {
82
+ name: string;
83
+ access: ContractInterfaceFunctionAccess;
84
+ args: ContractInterfaceFunctionArg[];
85
+ outputs: ContractInterfaceFunctionOutput;
95
86
  };
96
87
 
97
- type ContractInterfaceFunctionAccess = "private" | "public" | "read_only";
88
+ export type StacksEpochId =
89
+ | "Epoch10"
90
+ | "Epoch20"
91
+ | "Epoch2_05"
92
+ | "Epoch21"
93
+ | "Epoch22"
94
+ | "Epoch23"
95
+ | "Epoch24"
96
+ | "Epoch25"
97
+ | "Epoch30"
98
+ | "Epoch31"
99
+ | "Epoch32"
100
+ | "Epoch33";
98
101
 
99
- type LiteralValue = {
100
- LiteralValue: any;
101
- };
102
+ type ContractInterfaceFunctionArg = { name: string; type: ContractInterfaceAtomType };
102
103
 
103
104
  type ContractInterfaceAtomType =
104
105
  | "none"
@@ -115,41 +116,48 @@ type ContractInterfaceAtomType =
115
116
  | { list: { type: ContractInterfaceAtomType; length: number } }
116
117
  | "trait_reference";
117
118
 
118
- type Expression = {
119
- expr: ExpressionType;
120
- id: number;
121
- span: Span;
119
+ type ContractInterfaceTupleEntryType = { name: string; type: ContractInterfaceAtomType };
120
+
121
+ type TraitReference = {
122
+ TraitReference: any;
122
123
  };
123
124
 
124
- type Field = {
125
- Field: any;
125
+ type AtomValue = {
126
+ AtomValue: any;
126
127
  };
127
128
 
128
- type ContractInterfaceNonFungibleTokens = { name: string; type: ContractInterfaceAtomType };
129
+ type ExpressionType = Atom | AtomValue | List | LiteralValue | Field | TraitReference;
129
130
 
130
- type Span = {
131
- start_line: number;
132
- start_column: number;
133
- end_line: number;
134
- end_column: number;
131
+ type Atom = {
132
+ Atom: String;
133
+ };
134
+
135
+ type List = {
136
+ List: Expression[];
135
137
  };
136
138
 
137
- type ContractInterfaceVariableAccess = "constant" | "variable";
138
139
 
139
140
  export class CallFnArgs {
140
141
  free(): void;
142
+ [Symbol.dispose](): void;
141
143
  constructor(contract: string, method: string, args: Uint8Array[], sender: string);
142
144
  }
145
+
143
146
  export class ContractOptions {
144
147
  free(): void;
148
+ [Symbol.dispose](): void;
145
149
  constructor(clarity_version?: number | null);
146
150
  }
151
+
147
152
  export class DeployContractArgs {
148
153
  free(): void;
154
+ [Symbol.dispose](): void;
149
155
  constructor(name: string, content: string, options: ContractOptions, sender: string);
150
156
  }
157
+
151
158
  export class SDK {
152
159
  free(): void;
160
+ [Symbol.dispose](): void;
153
161
  clearCache(): void;
154
162
  runSnippet(snippet: string): string;
155
163
  getAccounts(): Map<string, string>;
@@ -178,6 +186,7 @@ export class SDK {
178
186
  setCurrentTestName(test_name: string): void;
179
187
  mineEmptyBurnBlocks(count?: number | null): number;
180
188
  mineEmptyStacksBlock(): number;
189
+ generateDeploymentPlan(cwd: string, manifest_path: string): Promise<void>;
181
190
  getContractsInterfaces(): Map<string, IContractInterface>;
182
191
  mineEmptyStacksBlocks(count?: number | null): number;
183
192
  /**
@@ -196,33 +205,43 @@ export class SDK {
196
205
  readonly burnBlockHeight: number;
197
206
  readonly stacksBlockHeight: number;
198
207
  }
208
+
199
209
  export class SDKOptions {
200
210
  free(): void;
211
+ [Symbol.dispose](): void;
201
212
  constructor(track_costs: boolean, track_coverage: boolean, track_performance?: boolean | null);
202
213
  trackCosts: boolean;
203
214
  trackCoverage: boolean;
204
215
  trackPerformance: boolean;
205
216
  }
217
+
206
218
  export class SessionReport {
207
219
  private constructor();
208
220
  free(): void;
221
+ [Symbol.dispose](): void;
209
222
  coverage: string;
210
223
  costs: string;
211
224
  }
225
+
212
226
  export class TransactionRes {
213
227
  private constructor();
214
228
  free(): void;
229
+ [Symbol.dispose](): void;
215
230
  result: string;
216
231
  events: string;
217
232
  costs: string;
218
233
  get performance(): string | undefined;
219
234
  set performance(value: string | null | undefined);
220
235
  }
236
+
221
237
  export class TransferSTXArgs {
222
238
  free(): void;
239
+ [Symbol.dispose](): void;
223
240
  constructor(amount: bigint, recipient: string, sender: string);
224
241
  }
242
+
225
243
  export class TxArgs {
226
244
  private constructor();
227
245
  free(): void;
246
+ [Symbol.dispose](): void;
228
247
  }