starknet 6.1.5 → 6.2.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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +3324 -499
- package/dist/index.global.js +846 -183
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +848 -183
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +846 -183
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,12 +27,1156 @@ type Error$1 = {
|
|
|
27
27
|
data?: unknown;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
type index$
|
|
31
|
-
type index$
|
|
32
|
-
type index$
|
|
33
|
-
type index$
|
|
34
|
-
declare namespace index$
|
|
35
|
-
export type { Error$1 as Error, index$
|
|
30
|
+
type index$6_ErrorResponseBody = ErrorResponseBody;
|
|
31
|
+
type index$6_RequestBody = RequestBody;
|
|
32
|
+
type index$6_ResponseBody = ResponseBody;
|
|
33
|
+
type index$6_SuccessResponseBody = SuccessResponseBody;
|
|
34
|
+
declare namespace index$6 {
|
|
35
|
+
export type { Error$1 as Error, index$6_ErrorResponseBody as ErrorResponseBody, index$6_RequestBody as RequestBody, index$6_ResponseBody as ResponseBody, index$6_SuccessResponseBody as SuccessResponseBody };
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* PRIMITIVES
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* A field element. represented by at most 63 hex digits
|
|
43
|
+
* @pattern ^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$
|
|
44
|
+
*/
|
|
45
|
+
type FELT$2 = string;
|
|
46
|
+
/**
|
|
47
|
+
* an ethereum address represented as 40 hex digits
|
|
48
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
49
|
+
*/
|
|
50
|
+
type ETH_ADDRESS$1 = string;
|
|
51
|
+
/**
|
|
52
|
+
* A storage key. Represented as up to 62 hex digits, 3 bits, and 5 leading zeroes.
|
|
53
|
+
* @pattern ^0x0[0-7]{1}[a-fA-F0-9]{0,62}$
|
|
54
|
+
*/
|
|
55
|
+
type STORAGE_KEY$1 = string;
|
|
56
|
+
type ADDRESS$1 = FELT$2;
|
|
57
|
+
type NUM_AS_HEX$1 = string;
|
|
58
|
+
/**
|
|
59
|
+
* 64 bit integers, represented by hex string of length at most 16
|
|
60
|
+
* "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,15})$"
|
|
61
|
+
*/
|
|
62
|
+
type u64$1 = string;
|
|
63
|
+
/**
|
|
64
|
+
* 64 bit integers, represented by hex string of length at most 32
|
|
65
|
+
* "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,31})$"
|
|
66
|
+
*/
|
|
67
|
+
type u128$1 = string;
|
|
68
|
+
type SIGNATURE$1 = Array<FELT$2>;
|
|
69
|
+
type BLOCK_NUMBER$2 = number;
|
|
70
|
+
type BLOCK_HASH$2 = FELT$2;
|
|
71
|
+
type TXN_HASH$2 = FELT$2;
|
|
72
|
+
type CHAIN_ID$1 = NUM_AS_HEX$1;
|
|
73
|
+
type STRUCT_ABI_TYPE$1 = 'struct';
|
|
74
|
+
type EVENT_ABI_TYPE$1 = 'event';
|
|
75
|
+
type FUNCTION_ABI_TYPE$1 = 'function' | 'l1_handler' | 'constructor';
|
|
76
|
+
type ENTRY_POINT_TYPE$1 = 'EXTERNAL' | 'L1_HANDLER' | 'CONSTRUCTOR';
|
|
77
|
+
type CALL_TYPE$1 = 'DELEGATE' | 'LIBRARY_CALL' | 'CALL';
|
|
78
|
+
type TXN_STATUS$1 = 'RECEIVED' | 'REJECTED' | 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1';
|
|
79
|
+
type SIMULATION_FLAG$3 = 'SKIP_VALIDATE' | 'SKIP_FEE_CHARGE';
|
|
80
|
+
type DA_MODE$1 = 'L1' | 'L2';
|
|
81
|
+
type TXN_TYPE$1 = 'DECLARE' | 'DEPLOY' | 'DEPLOY_ACCOUNT' | 'INVOKE' | 'L1_HANDLER';
|
|
82
|
+
type TXN_FINALITY_STATUS$1 = 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1';
|
|
83
|
+
type TXN_EXECUTION_STATUS$1 = 'SUCCEEDED' | 'REVERTED';
|
|
84
|
+
type BLOCK_STATUS$1 = 'PENDING' | 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1' | 'REJECTED';
|
|
85
|
+
type BLOCK_TAG$1 = 'latest' | 'pending';
|
|
86
|
+
/**
|
|
87
|
+
* READ API
|
|
88
|
+
*/
|
|
89
|
+
type EVENTS_CHUNK$1 = {
|
|
90
|
+
events: EMITTED_EVENT$1[];
|
|
91
|
+
continuation_token?: string;
|
|
92
|
+
};
|
|
93
|
+
type RESULT_PAGE_REQUEST$1 = {
|
|
94
|
+
continuation_token?: string;
|
|
95
|
+
chunk_size: number;
|
|
96
|
+
};
|
|
97
|
+
type EMITTED_EVENT$1 = EVENT$2 & {
|
|
98
|
+
block_hash: BLOCK_HASH$2;
|
|
99
|
+
block_number: BLOCK_NUMBER$2;
|
|
100
|
+
transaction_hash: TXN_HASH$2;
|
|
101
|
+
};
|
|
102
|
+
type EVENT$2 = {
|
|
103
|
+
from_address: ADDRESS$1;
|
|
104
|
+
} & EVENT_CONTENT$1;
|
|
105
|
+
type EVENT_CONTENT$1 = {
|
|
106
|
+
keys: FELT$2[];
|
|
107
|
+
data: FELT$2[];
|
|
108
|
+
};
|
|
109
|
+
type EVENT_FILTER$1 = {
|
|
110
|
+
from_block?: BLOCK_ID$1;
|
|
111
|
+
to_block?: BLOCK_ID$1;
|
|
112
|
+
address?: ADDRESS$1;
|
|
113
|
+
keys?: FELT$2[][];
|
|
114
|
+
};
|
|
115
|
+
type BLOCK_ID$1 = {
|
|
116
|
+
block_hash?: BLOCK_HASH$2;
|
|
117
|
+
block_number?: BLOCK_NUMBER$2;
|
|
118
|
+
} | BLOCK_TAG$1;
|
|
119
|
+
type SYNC_STATUS$1 = {
|
|
120
|
+
starting_block_hash: BLOCK_HASH$2;
|
|
121
|
+
starting_block_num: BLOCK_NUMBER$2;
|
|
122
|
+
current_block_hash: BLOCK_HASH$2;
|
|
123
|
+
current_block_num: BLOCK_NUMBER$2;
|
|
124
|
+
highest_block_hash: BLOCK_HASH$2;
|
|
125
|
+
highest_block_num: BLOCK_NUMBER$2;
|
|
126
|
+
};
|
|
127
|
+
type NEW_CLASSES$1 = {
|
|
128
|
+
class_hash: FELT$2;
|
|
129
|
+
compiled_class_hash: FELT$2;
|
|
130
|
+
};
|
|
131
|
+
type REPLACED_CLASS$1 = {
|
|
132
|
+
class_hash: FELT$2;
|
|
133
|
+
contract_address: FELT$2;
|
|
134
|
+
};
|
|
135
|
+
type NONCE_UPDATE$1 = {
|
|
136
|
+
contract_address: ADDRESS$1;
|
|
137
|
+
nonce: FELT$2;
|
|
138
|
+
};
|
|
139
|
+
type STATE_DIFF$1 = {
|
|
140
|
+
storage_diffs: CONTRACT_STORAGE_DIFF_ITEM$1[];
|
|
141
|
+
deprecated_declared_classes: FELT$2[];
|
|
142
|
+
declared_classes: NEW_CLASSES$1[];
|
|
143
|
+
deployed_contracts: DEPLOYED_CONTRACT_ITEM$1[];
|
|
144
|
+
replaced_classes: REPLACED_CLASS$1[];
|
|
145
|
+
nonces: NONCE_UPDATE$1[];
|
|
146
|
+
};
|
|
147
|
+
type PENDING_STATE_UPDATE$2 = {
|
|
148
|
+
old_root: FELT$2;
|
|
149
|
+
state_diff: STATE_DIFF$1;
|
|
150
|
+
block_hash: never;
|
|
151
|
+
};
|
|
152
|
+
type STATE_UPDATE$2 = {
|
|
153
|
+
block_hash: BLOCK_HASH$2;
|
|
154
|
+
old_root: FELT$2;
|
|
155
|
+
new_root: FELT$2;
|
|
156
|
+
state_diff: STATE_DIFF$1;
|
|
157
|
+
};
|
|
158
|
+
type BLOCK_BODY_WITH_TX_HASHES$1 = {
|
|
159
|
+
transactions: TXN_HASH$2[];
|
|
160
|
+
};
|
|
161
|
+
type BLOCK_BODY_WITH_TXS$1 = {
|
|
162
|
+
transactions: (TXN$1 & {
|
|
163
|
+
transaction_hash: TXN_HASH$2;
|
|
164
|
+
})[];
|
|
165
|
+
};
|
|
166
|
+
type BLOCK_HEADER$1 = {
|
|
167
|
+
block_hash: BLOCK_HASH$2;
|
|
168
|
+
parent_hash: BLOCK_HASH$2;
|
|
169
|
+
block_number: BLOCK_NUMBER$2;
|
|
170
|
+
new_root: FELT$2;
|
|
171
|
+
timestamp: number;
|
|
172
|
+
sequencer_address: FELT$2;
|
|
173
|
+
l1_gas_price: RESOURCE_PRICE$2;
|
|
174
|
+
starknet_version: string;
|
|
175
|
+
};
|
|
176
|
+
type PENDING_BLOCK_HEADER$1 = {
|
|
177
|
+
parent_hash: BLOCK_HASH$2;
|
|
178
|
+
timestamp: number;
|
|
179
|
+
sequencer_address: FELT$2;
|
|
180
|
+
l1_gas_price: RESOURCE_PRICE$2;
|
|
181
|
+
starknet_version: string;
|
|
182
|
+
};
|
|
183
|
+
type BLOCK_WITH_TX_HASHES$1 = {
|
|
184
|
+
status: BLOCK_STATUS$1;
|
|
185
|
+
} & BLOCK_HEADER$1 & BLOCK_BODY_WITH_TX_HASHES$1;
|
|
186
|
+
type BLOCK_WITH_TXS$1 = {
|
|
187
|
+
status: BLOCK_STATUS$1;
|
|
188
|
+
} & BLOCK_HEADER$1 & BLOCK_BODY_WITH_TXS$1;
|
|
189
|
+
type PENDING_BLOCK_WITH_TX_HASHES$1 = BLOCK_BODY_WITH_TX_HASHES$1 & PENDING_BLOCK_HEADER$1;
|
|
190
|
+
type PENDING_BLOCK_WITH_TXS$1 = BLOCK_BODY_WITH_TXS$1 & PENDING_BLOCK_HEADER$1;
|
|
191
|
+
type DEPLOYED_CONTRACT_ITEM$1 = {
|
|
192
|
+
address: FELT$2;
|
|
193
|
+
class_hash: FELT$2;
|
|
194
|
+
};
|
|
195
|
+
type CONTRACT_STORAGE_DIFF_ITEM$1 = {
|
|
196
|
+
address: string;
|
|
197
|
+
storage_entries: StorageDiffItem$1[];
|
|
198
|
+
};
|
|
199
|
+
type StorageDiffItem$1 = {
|
|
200
|
+
key: string;
|
|
201
|
+
value: string;
|
|
202
|
+
};
|
|
203
|
+
type TXN$1 = INVOKE_TXN$1 | L1_HANDLER_TXN$1 | DECLARE_TXN$1 | DEPLOY_TXN$1 | DEPLOY_ACCOUNT_TXN$1;
|
|
204
|
+
type DECLARE_TXN$1 = DECLARE_TXN_V0$1 | DECLARE_TXN_V1$1 | DECLARE_TXN_V2$1 | DECLARE_TXN_V3$1;
|
|
205
|
+
type DECLARE_TXN_V0$1 = {
|
|
206
|
+
type: 'DECLARE';
|
|
207
|
+
sender_address: ADDRESS$1;
|
|
208
|
+
max_fee: FELT$2;
|
|
209
|
+
version: '0x0' | '0x100000000000000000000000000000000';
|
|
210
|
+
signature: SIGNATURE$1;
|
|
211
|
+
class_hash: FELT$2;
|
|
212
|
+
};
|
|
213
|
+
type DECLARE_TXN_V1$1 = {
|
|
214
|
+
type: 'DECLARE';
|
|
215
|
+
sender_address: ADDRESS$1;
|
|
216
|
+
max_fee: FELT$2;
|
|
217
|
+
version: '0x1' | '0x100000000000000000000000000000001';
|
|
218
|
+
signature: SIGNATURE$1;
|
|
219
|
+
nonce: FELT$2;
|
|
220
|
+
class_hash: FELT$2;
|
|
221
|
+
};
|
|
222
|
+
type DECLARE_TXN_V2$1 = {
|
|
223
|
+
type: 'DECLARE';
|
|
224
|
+
sender_address: ADDRESS$1;
|
|
225
|
+
compiled_class_hash: FELT$2;
|
|
226
|
+
max_fee: FELT$2;
|
|
227
|
+
version: '0x2' | '0x100000000000000000000000000000002';
|
|
228
|
+
signature: SIGNATURE$1;
|
|
229
|
+
nonce: FELT$2;
|
|
230
|
+
class_hash: FELT$2;
|
|
231
|
+
};
|
|
232
|
+
type DECLARE_TXN_V3$1 = {
|
|
233
|
+
type: 'DECLARE';
|
|
234
|
+
sender_address: ADDRESS$1;
|
|
235
|
+
compiled_class_hash: FELT$2;
|
|
236
|
+
version: '0x3' | '0x100000000000000000000000000000003';
|
|
237
|
+
signature: SIGNATURE$1;
|
|
238
|
+
nonce: FELT$2;
|
|
239
|
+
class_hash: FELT$2;
|
|
240
|
+
resource_bounds: RESOURCE_BOUNDS_MAPPING$1;
|
|
241
|
+
tip: u64$1;
|
|
242
|
+
paymaster_data: FELT$2[];
|
|
243
|
+
account_deployment_data: FELT$2[];
|
|
244
|
+
nonce_data_availability_mode: DA_MODE$1;
|
|
245
|
+
fee_data_availability_mode: DA_MODE$1;
|
|
246
|
+
};
|
|
247
|
+
type BROADCASTED_TXN$1 = BROADCASTED_INVOKE_TXN$1 | BROADCASTED_DECLARE_TXN$1 | BROADCASTED_DEPLOY_ACCOUNT_TXN$1;
|
|
248
|
+
type BROADCASTED_INVOKE_TXN$1 = INVOKE_TXN$1;
|
|
249
|
+
type BROADCASTED_DEPLOY_ACCOUNT_TXN$1 = DEPLOY_ACCOUNT_TXN$1;
|
|
250
|
+
type BROADCASTED_DECLARE_TXN$1 = BROADCASTED_DECLARE_TXN_V1$1 | BROADCASTED_DECLARE_TXN_V2$1 | BROADCASTED_DECLARE_TXN_V3$1;
|
|
251
|
+
type BROADCASTED_DECLARE_TXN_V1$1 = {
|
|
252
|
+
type: 'DECLARE';
|
|
253
|
+
sender_address: ADDRESS$1;
|
|
254
|
+
max_fee: FELT$2;
|
|
255
|
+
version: '0x1' | '0x100000000000000000000000000000001';
|
|
256
|
+
signature: SIGNATURE$1;
|
|
257
|
+
nonce: FELT$2;
|
|
258
|
+
contract_class: DEPRECATED_CONTRACT_CLASS$1;
|
|
259
|
+
};
|
|
260
|
+
type BROADCASTED_DECLARE_TXN_V2$1 = {
|
|
261
|
+
type: 'DECLARE';
|
|
262
|
+
sender_address: ADDRESS$1;
|
|
263
|
+
compiled_class_hash: FELT$2;
|
|
264
|
+
max_fee: FELT$2;
|
|
265
|
+
version: '0x2' | '0x100000000000000000000000000000002';
|
|
266
|
+
signature: SIGNATURE$1;
|
|
267
|
+
nonce: FELT$2;
|
|
268
|
+
contract_class: CONTRACT_CLASS$1;
|
|
269
|
+
};
|
|
270
|
+
type BROADCASTED_DECLARE_TXN_V3$1 = {
|
|
271
|
+
type: 'DECLARE';
|
|
272
|
+
sender_address: ADDRESS$1;
|
|
273
|
+
compiled_class_hash: FELT$2;
|
|
274
|
+
version: '0x3' | '0x100000000000000000000000000000003';
|
|
275
|
+
signature: SIGNATURE$1;
|
|
276
|
+
nonce: FELT$2;
|
|
277
|
+
contract_class: CONTRACT_CLASS$1;
|
|
278
|
+
resource_bounds: RESOURCE_BOUNDS_MAPPING$1;
|
|
279
|
+
tip: u64$1;
|
|
280
|
+
paymaster_data: FELT$2[];
|
|
281
|
+
account_deployment_data: FELT$2[];
|
|
282
|
+
nonce_data_availability_mode: DA_MODE$1;
|
|
283
|
+
fee_data_availability_mode: DA_MODE$1;
|
|
284
|
+
};
|
|
285
|
+
type DEPLOY_ACCOUNT_TXN$1 = DEPLOY_ACCOUNT_TXN_V1$1 | DEPLOY_ACCOUNT_TXN_V3$1;
|
|
286
|
+
type DEPLOY_ACCOUNT_TXN_V1$1 = {
|
|
287
|
+
type: 'DEPLOY_ACCOUNT';
|
|
288
|
+
max_fee: FELT$2;
|
|
289
|
+
version: '0x1' | '0x100000000000000000000000000000001';
|
|
290
|
+
signature: SIGNATURE$1;
|
|
291
|
+
nonce: FELT$2;
|
|
292
|
+
contract_address_salt: FELT$2;
|
|
293
|
+
constructor_calldata: FELT$2[];
|
|
294
|
+
class_hash: FELT$2;
|
|
295
|
+
};
|
|
296
|
+
type DEPLOY_ACCOUNT_TXN_V3$1 = {
|
|
297
|
+
type: 'DEPLOY_ACCOUNT';
|
|
298
|
+
version: '0x3' | '0x100000000000000000000000000000003';
|
|
299
|
+
signature: SIGNATURE$1;
|
|
300
|
+
nonce: FELT$2;
|
|
301
|
+
contract_address_salt: FELT$2;
|
|
302
|
+
constructor_calldata: FELT$2[];
|
|
303
|
+
class_hash: FELT$2;
|
|
304
|
+
resource_bounds: RESOURCE_BOUNDS_MAPPING$1;
|
|
305
|
+
tip: u64$1;
|
|
306
|
+
paymaster_data: FELT$2[];
|
|
307
|
+
nonce_data_availability_mode: DA_MODE$1;
|
|
308
|
+
fee_data_availability_mode: DA_MODE$1;
|
|
309
|
+
};
|
|
310
|
+
type DEPLOY_TXN$1 = {
|
|
311
|
+
type: 'DEPLOY';
|
|
312
|
+
version: FELT$2;
|
|
313
|
+
contract_address_salt: FELT$2;
|
|
314
|
+
constructor_calldata: FELT$2[];
|
|
315
|
+
class_hash: FELT$2;
|
|
316
|
+
};
|
|
317
|
+
type INVOKE_TXN$1 = INVOKE_TXN_V0$1 | INVOKE_TXN_V1$1 | INVOKE_TXN_V3$1;
|
|
318
|
+
type INVOKE_TXN_V0$1 = {
|
|
319
|
+
type: 'INVOKE';
|
|
320
|
+
max_fee: FELT$2;
|
|
321
|
+
version: '0x0' | '0x100000000000000000000000000000000';
|
|
322
|
+
signature: SIGNATURE$1;
|
|
323
|
+
contract_address: ADDRESS$1;
|
|
324
|
+
entry_point_selector: FELT$2;
|
|
325
|
+
calldata: FELT$2[];
|
|
326
|
+
};
|
|
327
|
+
type INVOKE_TXN_V1$1 = {
|
|
328
|
+
type: 'INVOKE';
|
|
329
|
+
sender_address: ADDRESS$1;
|
|
330
|
+
calldata: FELT$2[];
|
|
331
|
+
max_fee: FELT$2;
|
|
332
|
+
version: '0x1' | '0x100000000000000000000000000000001';
|
|
333
|
+
signature: SIGNATURE$1;
|
|
334
|
+
nonce: FELT$2;
|
|
335
|
+
};
|
|
336
|
+
type INVOKE_TXN_V3$1 = {
|
|
337
|
+
type: 'INVOKE';
|
|
338
|
+
sender_address: ADDRESS$1;
|
|
339
|
+
calldata: FELT$2[];
|
|
340
|
+
version: '0x3' | '0x100000000000000000000000000000003';
|
|
341
|
+
signature: SIGNATURE$1;
|
|
342
|
+
nonce: FELT$2;
|
|
343
|
+
resource_bounds: RESOURCE_BOUNDS_MAPPING$1;
|
|
344
|
+
tip: u64$1;
|
|
345
|
+
paymaster_data: FELT$2[];
|
|
346
|
+
account_deployment_data: FELT$2[];
|
|
347
|
+
nonce_data_availability_mode: DA_MODE$1;
|
|
348
|
+
fee_data_availability_mode: DA_MODE$1;
|
|
349
|
+
};
|
|
350
|
+
type L1_HANDLER_TXN$1 = {
|
|
351
|
+
version: FELT$2;
|
|
352
|
+
type: 'L1_HANDLER';
|
|
353
|
+
nonce: NUM_AS_HEX$1;
|
|
354
|
+
} & FUNCTION_CALL$1;
|
|
355
|
+
type COMMON_RECEIPT_PROPERTIES$1 = {
|
|
356
|
+
transaction_hash: TXN_HASH$2;
|
|
357
|
+
actual_fee: FEE_PAYMENT$1;
|
|
358
|
+
execution_status: TXN_EXECUTION_STATUS$1;
|
|
359
|
+
finality_status: TXN_FINALITY_STATUS$1;
|
|
360
|
+
block_hash: BLOCK_HASH$2;
|
|
361
|
+
block_number: BLOCK_NUMBER$2;
|
|
362
|
+
messages_sent: MSG_TO_L1$1[];
|
|
363
|
+
revert_reason?: string;
|
|
364
|
+
events: EVENT$2[];
|
|
365
|
+
execution_resources: EXECUTION_RESOURCES$1;
|
|
366
|
+
};
|
|
367
|
+
type PENDING_COMMON_RECEIPT_PROPERTIES = {
|
|
368
|
+
transaction_hash: TXN_HASH$2;
|
|
369
|
+
actual_fee: FEE_PAYMENT$1;
|
|
370
|
+
messages_sent: MSG_TO_L1$1[];
|
|
371
|
+
events: EVENT$2[];
|
|
372
|
+
revert_reason?: string;
|
|
373
|
+
finality_status: 'ACCEPTED_ON_L2';
|
|
374
|
+
execution_status: TXN_EXECUTION_STATUS$1;
|
|
375
|
+
execution_resources: EXECUTION_RESOURCES$1;
|
|
376
|
+
};
|
|
377
|
+
type INVOKE_TXN_RECEIPT$2 = {
|
|
378
|
+
type: 'INVOKE';
|
|
379
|
+
} & COMMON_RECEIPT_PROPERTIES$1;
|
|
380
|
+
type PENDING_INVOKE_TXN_RECEIPT$1 = {
|
|
381
|
+
type: 'INVOKE';
|
|
382
|
+
} & PENDING_COMMON_RECEIPT_PROPERTIES;
|
|
383
|
+
type DECLARE_TXN_RECEIPT$2 = {
|
|
384
|
+
type: 'DECLARE';
|
|
385
|
+
} & COMMON_RECEIPT_PROPERTIES$1;
|
|
386
|
+
type PENDING_DECLARE_TXN_RECEIPT$1 = {
|
|
387
|
+
type: 'DECLARE';
|
|
388
|
+
} & PENDING_COMMON_RECEIPT_PROPERTIES;
|
|
389
|
+
type DEPLOY_ACCOUNT_TXN_RECEIPT$2 = {
|
|
390
|
+
type: 'DEPLOY_ACCOUNT';
|
|
391
|
+
contract_address: FELT$2;
|
|
392
|
+
} & COMMON_RECEIPT_PROPERTIES$1;
|
|
393
|
+
type PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT$1 = {
|
|
394
|
+
type: 'DEPLOY_ACCOUNT';
|
|
395
|
+
contract_address: FELT$2;
|
|
396
|
+
} & PENDING_COMMON_RECEIPT_PROPERTIES;
|
|
397
|
+
type DEPLOY_TXN_RECEIPT$1 = {
|
|
398
|
+
type: 'DEPLOY';
|
|
399
|
+
contract_address: FELT$2;
|
|
400
|
+
} & COMMON_RECEIPT_PROPERTIES$1;
|
|
401
|
+
type L1_HANDLER_TXN_RECEIPT$2 = {
|
|
402
|
+
type: 'L1_HANDLER';
|
|
403
|
+
message_hash: NUM_AS_HEX$1;
|
|
404
|
+
} & COMMON_RECEIPT_PROPERTIES$1;
|
|
405
|
+
type PENDING_L1_HANDLER_TXN_RECEIPT$1 = {
|
|
406
|
+
type: 'L1_HANDLER';
|
|
407
|
+
message_hash: NUM_AS_HEX$1;
|
|
408
|
+
} & PENDING_COMMON_RECEIPT_PROPERTIES;
|
|
409
|
+
type TXN_RECEIPT$1 = INVOKE_TXN_RECEIPT$2 | L1_HANDLER_TXN_RECEIPT$2 | DECLARE_TXN_RECEIPT$2 | DEPLOY_TXN_RECEIPT$1 | DEPLOY_ACCOUNT_TXN_RECEIPT$2;
|
|
410
|
+
type PENDING_TXN_RECEIPT = PENDING_INVOKE_TXN_RECEIPT$1 | PENDING_L1_HANDLER_TXN_RECEIPT$1 | PENDING_DECLARE_TXN_RECEIPT$1 | PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT$1;
|
|
411
|
+
type MSG_TO_L1$1 = {
|
|
412
|
+
from_address: FELT$2;
|
|
413
|
+
to_address: FELT$2;
|
|
414
|
+
payload: FELT$2[];
|
|
415
|
+
};
|
|
416
|
+
type MSG_FROM_L1$1 = {
|
|
417
|
+
from_address: ETH_ADDRESS$1;
|
|
418
|
+
to_address: ADDRESS$1;
|
|
419
|
+
entry_point_selector: FELT$2;
|
|
420
|
+
payload: FELT$2[];
|
|
421
|
+
};
|
|
422
|
+
type FUNCTION_CALL$1 = {
|
|
423
|
+
contract_address: ADDRESS$1;
|
|
424
|
+
entry_point_selector: FELT$2;
|
|
425
|
+
calldata: FELT$2[];
|
|
426
|
+
};
|
|
427
|
+
type CONTRACT_CLASS$1 = {
|
|
428
|
+
sierra_program: FELT$2[];
|
|
429
|
+
contract_class_version: string;
|
|
430
|
+
entry_points_by_type: {
|
|
431
|
+
CONSTRUCTOR: SIERRA_ENTRY_POINT$1[];
|
|
432
|
+
EXTERNAL: SIERRA_ENTRY_POINT$1[];
|
|
433
|
+
L1_HANDLER: SIERRA_ENTRY_POINT$1[];
|
|
434
|
+
};
|
|
435
|
+
abi: string;
|
|
436
|
+
};
|
|
437
|
+
type DEPRECATED_CONTRACT_CLASS$1 = {
|
|
438
|
+
program: string;
|
|
439
|
+
entry_points_by_type: {
|
|
440
|
+
CONSTRUCTOR: DEPRECATED_CAIRO_ENTRY_POINT$1[];
|
|
441
|
+
EXTERNAL: DEPRECATED_CAIRO_ENTRY_POINT$1[];
|
|
442
|
+
L1_HANDLER: DEPRECATED_CAIRO_ENTRY_POINT$1[];
|
|
443
|
+
};
|
|
444
|
+
abi: CONTRACT_ABI$1;
|
|
445
|
+
};
|
|
446
|
+
type DEPRECATED_CAIRO_ENTRY_POINT$1 = {
|
|
447
|
+
offset: NUM_AS_HEX$1 | number;
|
|
448
|
+
selector: FELT$2;
|
|
449
|
+
};
|
|
450
|
+
type SIERRA_ENTRY_POINT$1 = {
|
|
451
|
+
selector: FELT$2;
|
|
452
|
+
function_idx: number;
|
|
453
|
+
};
|
|
454
|
+
type CONTRACT_ABI$1 = readonly CONTRACT_ABI_ENTRY$1[];
|
|
455
|
+
type CONTRACT_ABI_ENTRY$1 = {
|
|
456
|
+
selector: FELT$2;
|
|
457
|
+
input: string;
|
|
458
|
+
output: string;
|
|
459
|
+
};
|
|
460
|
+
type STRUCT_ABI_ENTRY$1 = {
|
|
461
|
+
type: STRUCT_ABI_TYPE$1;
|
|
462
|
+
name: string;
|
|
463
|
+
size: number;
|
|
464
|
+
members: STRUCT_MEMBER$1[];
|
|
465
|
+
};
|
|
466
|
+
type STRUCT_MEMBER$1 = TYPED_PARAMETER$1 & {
|
|
467
|
+
offset: number;
|
|
468
|
+
};
|
|
469
|
+
type EVENT_ABI_ENTRY$1 = {
|
|
470
|
+
type: EVENT_ABI_TYPE$1;
|
|
471
|
+
name: string;
|
|
472
|
+
keys: TYPED_PARAMETER$1[];
|
|
473
|
+
data: TYPED_PARAMETER$1[];
|
|
474
|
+
};
|
|
475
|
+
type FUNCTION_STATE_MUTABILITY$1 = 'view';
|
|
476
|
+
type FUNCTION_ABI_ENTRY$1 = {
|
|
477
|
+
type: FUNCTION_ABI_TYPE$1;
|
|
478
|
+
name: string;
|
|
479
|
+
inputs: TYPED_PARAMETER$1[];
|
|
480
|
+
outputs: TYPED_PARAMETER$1[];
|
|
481
|
+
stateMutability: FUNCTION_STATE_MUTABILITY$1;
|
|
482
|
+
};
|
|
483
|
+
type TYPED_PARAMETER$1 = {
|
|
484
|
+
name: string;
|
|
485
|
+
type: string;
|
|
486
|
+
};
|
|
487
|
+
type SIMULATION_FLAG_FOR_ESTIMATE_FEE$1 = 'SKIP_VALIDATE';
|
|
488
|
+
type PRICE_UNIT$2 = 'WEI' | 'FRI';
|
|
489
|
+
type FEE_ESTIMATE$1 = {
|
|
490
|
+
gas_consumed: FELT$2;
|
|
491
|
+
gas_price: FELT$2;
|
|
492
|
+
overall_fee: FELT$2;
|
|
493
|
+
unit: PRICE_UNIT$2;
|
|
494
|
+
};
|
|
495
|
+
type FEE_PAYMENT$1 = {
|
|
496
|
+
amount: FELT$2;
|
|
497
|
+
unit: PRICE_UNIT$2;
|
|
498
|
+
};
|
|
499
|
+
type RESOURCE_BOUNDS_MAPPING$1 = {
|
|
500
|
+
l1_gas: RESOURCE_BOUNDS$1;
|
|
501
|
+
l2_gas: RESOURCE_BOUNDS$1;
|
|
502
|
+
};
|
|
503
|
+
type RESOURCE_BOUNDS$1 = {
|
|
504
|
+
max_amount: u64$1;
|
|
505
|
+
max_price_per_unit: u128$1;
|
|
506
|
+
};
|
|
507
|
+
type RESOURCE_PRICE$2 = {
|
|
508
|
+
price_in_fri: FELT$2;
|
|
509
|
+
price_in_wei: FELT$2;
|
|
510
|
+
};
|
|
511
|
+
type EXECUTION_RESOURCES$1 = {
|
|
512
|
+
steps: number;
|
|
513
|
+
memory_holes?: number;
|
|
514
|
+
range_check_builtin_applications?: number;
|
|
515
|
+
pedersen_builtin_applications?: number;
|
|
516
|
+
poseidon_builtin_applications?: number;
|
|
517
|
+
ec_op_builtin_applications?: number;
|
|
518
|
+
ecdsa_builtin_applications?: number;
|
|
519
|
+
bitwise_builtin_applications?: number;
|
|
520
|
+
keccak_builtin_applications?: number;
|
|
521
|
+
segment_arena_builtin?: number;
|
|
522
|
+
};
|
|
523
|
+
/**
|
|
524
|
+
* TRACE API
|
|
525
|
+
*/
|
|
526
|
+
type TRANSACTION_TRACE$1 = {
|
|
527
|
+
invoke_tx_trace?: INVOKE_TXN_TRACE$1;
|
|
528
|
+
declare_tx_trace?: DECLARE_TXN_TRACE$1;
|
|
529
|
+
deploy_account_tx_trace?: DEPLOY_ACCOUNT_TXN_TRACE$1;
|
|
530
|
+
l1_handler_tx_trace?: L1_HANDLER_TXN_TRACE$1;
|
|
531
|
+
};
|
|
532
|
+
type INVOKE_TXN_TRACE$1 = {
|
|
533
|
+
type: 'INVOKE';
|
|
534
|
+
execute_invocation: FUNCTION_INVOCATION$1 | {
|
|
535
|
+
revert_reason: string;
|
|
536
|
+
};
|
|
537
|
+
validate_invocation?: FUNCTION_INVOCATION$1;
|
|
538
|
+
fee_transfer_invocation?: FUNCTION_INVOCATION$1;
|
|
539
|
+
state_diff?: STATE_DIFF$1;
|
|
540
|
+
};
|
|
541
|
+
type DECLARE_TXN_TRACE$1 = {
|
|
542
|
+
type: 'DECLARE';
|
|
543
|
+
validate_invocation?: FUNCTION_INVOCATION$1;
|
|
544
|
+
fee_transfer_invocation?: FUNCTION_INVOCATION$1;
|
|
545
|
+
state_diff?: STATE_DIFF$1;
|
|
546
|
+
};
|
|
547
|
+
type DEPLOY_ACCOUNT_TXN_TRACE$1 = {
|
|
548
|
+
type: 'DEPLOY_ACCOUNT';
|
|
549
|
+
constructor_invocation: FUNCTION_INVOCATION$1;
|
|
550
|
+
validate_invocation?: FUNCTION_INVOCATION$1;
|
|
551
|
+
fee_transfer_invocation?: FUNCTION_INVOCATION$1;
|
|
552
|
+
state_diff?: STATE_DIFF$1;
|
|
553
|
+
};
|
|
554
|
+
type L1_HANDLER_TXN_TRACE$1 = {
|
|
555
|
+
type: 'L1_HANDLER';
|
|
556
|
+
function_invocation: FUNCTION_INVOCATION$1;
|
|
557
|
+
state_diff?: STATE_DIFF$1;
|
|
558
|
+
};
|
|
559
|
+
type NESTED_CALL$1 = FUNCTION_INVOCATION$1;
|
|
560
|
+
type FUNCTION_INVOCATION$1 = FUNCTION_CALL$1 & {
|
|
561
|
+
caller_address: string;
|
|
562
|
+
class_hash: string;
|
|
563
|
+
entry_point_type: ENTRY_POINT_TYPE$1;
|
|
564
|
+
call_type: CALL_TYPE$1;
|
|
565
|
+
result: string[];
|
|
566
|
+
calls: NESTED_CALL$1[];
|
|
567
|
+
events: ORDERED_EVENT$1[];
|
|
568
|
+
messages: ORDERED_MESSAGE$1[];
|
|
569
|
+
execution_resources: EXECUTION_RESOURCES$1;
|
|
570
|
+
};
|
|
571
|
+
type ORDERED_EVENT$1 = {
|
|
572
|
+
order: number;
|
|
573
|
+
event: EVENT$2;
|
|
574
|
+
};
|
|
575
|
+
type ORDERED_MESSAGE$1 = {
|
|
576
|
+
order: number;
|
|
577
|
+
message: MSG_TO_L1$1;
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
type components$1_PENDING_COMMON_RECEIPT_PROPERTIES = PENDING_COMMON_RECEIPT_PROPERTIES;
|
|
581
|
+
type components$1_PENDING_TXN_RECEIPT = PENDING_TXN_RECEIPT;
|
|
582
|
+
declare namespace components$1 {
|
|
583
|
+
export type { ADDRESS$1 as ADDRESS, BLOCK_BODY_WITH_TXS$1 as BLOCK_BODY_WITH_TXS, BLOCK_BODY_WITH_TX_HASHES$1 as BLOCK_BODY_WITH_TX_HASHES, BLOCK_HASH$2 as BLOCK_HASH, BLOCK_HEADER$1 as BLOCK_HEADER, BLOCK_ID$1 as BLOCK_ID, BLOCK_NUMBER$2 as BLOCK_NUMBER, BLOCK_STATUS$1 as BLOCK_STATUS, BLOCK_TAG$1 as BLOCK_TAG, BLOCK_WITH_TXS$1 as BLOCK_WITH_TXS, BLOCK_WITH_TX_HASHES$1 as BLOCK_WITH_TX_HASHES, BROADCASTED_DECLARE_TXN$1 as BROADCASTED_DECLARE_TXN, BROADCASTED_DECLARE_TXN_V1$1 as BROADCASTED_DECLARE_TXN_V1, BROADCASTED_DECLARE_TXN_V2$1 as BROADCASTED_DECLARE_TXN_V2, BROADCASTED_DECLARE_TXN_V3$1 as BROADCASTED_DECLARE_TXN_V3, BROADCASTED_DEPLOY_ACCOUNT_TXN$1 as BROADCASTED_DEPLOY_ACCOUNT_TXN, BROADCASTED_INVOKE_TXN$1 as BROADCASTED_INVOKE_TXN, BROADCASTED_TXN$1 as BROADCASTED_TXN, CALL_TYPE$1 as CALL_TYPE, CHAIN_ID$1 as CHAIN_ID, COMMON_RECEIPT_PROPERTIES$1 as COMMON_RECEIPT_PROPERTIES, CONTRACT_ABI$1 as CONTRACT_ABI, CONTRACT_ABI_ENTRY$1 as CONTRACT_ABI_ENTRY, CONTRACT_CLASS$1 as CONTRACT_CLASS, CONTRACT_STORAGE_DIFF_ITEM$1 as CONTRACT_STORAGE_DIFF_ITEM, DA_MODE$1 as DA_MODE, DECLARE_TXN$1 as DECLARE_TXN, DECLARE_TXN_RECEIPT$2 as DECLARE_TXN_RECEIPT, DECLARE_TXN_TRACE$1 as DECLARE_TXN_TRACE, DECLARE_TXN_V0$1 as DECLARE_TXN_V0, DECLARE_TXN_V1$1 as DECLARE_TXN_V1, DECLARE_TXN_V2$1 as DECLARE_TXN_V2, DECLARE_TXN_V3$1 as DECLARE_TXN_V3, DEPLOYED_CONTRACT_ITEM$1 as DEPLOYED_CONTRACT_ITEM, DEPLOY_ACCOUNT_TXN$1 as DEPLOY_ACCOUNT_TXN, DEPLOY_ACCOUNT_TXN_RECEIPT$2 as DEPLOY_ACCOUNT_TXN_RECEIPT, DEPLOY_ACCOUNT_TXN_TRACE$1 as DEPLOY_ACCOUNT_TXN_TRACE, DEPLOY_ACCOUNT_TXN_V1$1 as DEPLOY_ACCOUNT_TXN_V1, DEPLOY_ACCOUNT_TXN_V3$1 as DEPLOY_ACCOUNT_TXN_V3, DEPLOY_TXN$1 as DEPLOY_TXN, DEPLOY_TXN_RECEIPT$1 as DEPLOY_TXN_RECEIPT, DEPRECATED_CAIRO_ENTRY_POINT$1 as DEPRECATED_CAIRO_ENTRY_POINT, DEPRECATED_CONTRACT_CLASS$1 as DEPRECATED_CONTRACT_CLASS, EMITTED_EVENT$1 as EMITTED_EVENT, ENTRY_POINT_TYPE$1 as ENTRY_POINT_TYPE, ETH_ADDRESS$1 as ETH_ADDRESS, EVENT$2 as EVENT, EVENTS_CHUNK$1 as EVENTS_CHUNK, EVENT_ABI_ENTRY$1 as EVENT_ABI_ENTRY, EVENT_ABI_TYPE$1 as EVENT_ABI_TYPE, EVENT_CONTENT$1 as EVENT_CONTENT, EVENT_FILTER$1 as EVENT_FILTER, EXECUTION_RESOURCES$1 as EXECUTION_RESOURCES, FEE_ESTIMATE$1 as FEE_ESTIMATE, FEE_PAYMENT$1 as FEE_PAYMENT, FELT$2 as FELT, FUNCTION_ABI_ENTRY$1 as FUNCTION_ABI_ENTRY, FUNCTION_ABI_TYPE$1 as FUNCTION_ABI_TYPE, FUNCTION_CALL$1 as FUNCTION_CALL, FUNCTION_INVOCATION$1 as FUNCTION_INVOCATION, FUNCTION_STATE_MUTABILITY$1 as FUNCTION_STATE_MUTABILITY, INVOKE_TXN$1 as INVOKE_TXN, INVOKE_TXN_RECEIPT$2 as INVOKE_TXN_RECEIPT, INVOKE_TXN_TRACE$1 as INVOKE_TXN_TRACE, INVOKE_TXN_V0$1 as INVOKE_TXN_V0, INVOKE_TXN_V1$1 as INVOKE_TXN_V1, INVOKE_TXN_V3$1 as INVOKE_TXN_V3, L1_HANDLER_TXN$1 as L1_HANDLER_TXN, L1_HANDLER_TXN_RECEIPT$2 as L1_HANDLER_TXN_RECEIPT, L1_HANDLER_TXN_TRACE$1 as L1_HANDLER_TXN_TRACE, MSG_FROM_L1$1 as MSG_FROM_L1, MSG_TO_L1$1 as MSG_TO_L1, NESTED_CALL$1 as NESTED_CALL, NEW_CLASSES$1 as NEW_CLASSES, NONCE_UPDATE$1 as NONCE_UPDATE, NUM_AS_HEX$1 as NUM_AS_HEX, ORDERED_EVENT$1 as ORDERED_EVENT, ORDERED_MESSAGE$1 as ORDERED_MESSAGE, PENDING_BLOCK_HEADER$1 as PENDING_BLOCK_HEADER, PENDING_BLOCK_WITH_TXS$1 as PENDING_BLOCK_WITH_TXS, PENDING_BLOCK_WITH_TX_HASHES$1 as PENDING_BLOCK_WITH_TX_HASHES, components$1_PENDING_COMMON_RECEIPT_PROPERTIES as PENDING_COMMON_RECEIPT_PROPERTIES, PENDING_DECLARE_TXN_RECEIPT$1 as PENDING_DECLARE_TXN_RECEIPT, PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT$1 as PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT, PENDING_INVOKE_TXN_RECEIPT$1 as PENDING_INVOKE_TXN_RECEIPT, PENDING_L1_HANDLER_TXN_RECEIPT$1 as PENDING_L1_HANDLER_TXN_RECEIPT, PENDING_STATE_UPDATE$2 as PENDING_STATE_UPDATE, components$1_PENDING_TXN_RECEIPT as PENDING_TXN_RECEIPT, PRICE_UNIT$2 as PRICE_UNIT, REPLACED_CLASS$1 as REPLACED_CLASS, RESOURCE_BOUNDS$1 as RESOURCE_BOUNDS, RESOURCE_BOUNDS_MAPPING$1 as RESOURCE_BOUNDS_MAPPING, RESOURCE_PRICE$2 as RESOURCE_PRICE, RESULT_PAGE_REQUEST$1 as RESULT_PAGE_REQUEST, SIERRA_ENTRY_POINT$1 as SIERRA_ENTRY_POINT, SIGNATURE$1 as SIGNATURE, SIMULATION_FLAG$3 as SIMULATION_FLAG, SIMULATION_FLAG_FOR_ESTIMATE_FEE$1 as SIMULATION_FLAG_FOR_ESTIMATE_FEE, STATE_DIFF$1 as STATE_DIFF, STATE_UPDATE$2 as STATE_UPDATE, STORAGE_KEY$1 as STORAGE_KEY, STRUCT_ABI_ENTRY$1 as STRUCT_ABI_ENTRY, STRUCT_ABI_TYPE$1 as STRUCT_ABI_TYPE, STRUCT_MEMBER$1 as STRUCT_MEMBER, SYNC_STATUS$1 as SYNC_STATUS, StorageDiffItem$1 as StorageDiffItem, TRANSACTION_TRACE$1 as TRANSACTION_TRACE, TXN$1 as TXN, TXN_EXECUTION_STATUS$1 as TXN_EXECUTION_STATUS, TXN_FINALITY_STATUS$1 as TXN_FINALITY_STATUS, TXN_HASH$2 as TXN_HASH, TXN_RECEIPT$1 as TXN_RECEIPT, TXN_STATUS$1 as TXN_STATUS, TXN_TYPE$1 as TXN_TYPE, TYPED_PARAMETER$1 as TYPED_PARAMETER, u128$1 as u128, u64$1 as u64 };
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
interface FAILED_TO_RECEIVE_TXN {
|
|
587
|
+
code: 1;
|
|
588
|
+
message: 'Failed to write transaction';
|
|
589
|
+
}
|
|
590
|
+
interface NO_TRACE_AVAILABLE {
|
|
591
|
+
code: 10;
|
|
592
|
+
message: 'No trace available for transaction';
|
|
593
|
+
data: {
|
|
594
|
+
status: 'RECEIVED' | 'REJECTED';
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
interface CONTRACT_NOT_FOUND {
|
|
598
|
+
code: 20;
|
|
599
|
+
message: 'Contract not found';
|
|
600
|
+
}
|
|
601
|
+
interface INVALID_MESSAGE_SELECTOR {
|
|
602
|
+
code: 21;
|
|
603
|
+
message: 'Invalid message selector';
|
|
604
|
+
}
|
|
605
|
+
interface INVALID_CALL_DATA {
|
|
606
|
+
code: 22;
|
|
607
|
+
message: 'Invalid call data';
|
|
608
|
+
}
|
|
609
|
+
interface BLOCK_NOT_FOUND {
|
|
610
|
+
code: 24;
|
|
611
|
+
message: 'Block not found';
|
|
612
|
+
}
|
|
613
|
+
interface INVALID_BLOCK_HASH {
|
|
614
|
+
code: 26;
|
|
615
|
+
message: 'Invalid block hash';
|
|
616
|
+
}
|
|
617
|
+
interface INVALID_TXN_INDEX {
|
|
618
|
+
code: 27;
|
|
619
|
+
message: 'Invalid transaction index in a block';
|
|
620
|
+
}
|
|
621
|
+
interface CLASS_HASH_NOT_FOUND {
|
|
622
|
+
code: 28;
|
|
623
|
+
message: 'Class hash not found';
|
|
624
|
+
}
|
|
625
|
+
interface TXN_HASH_NOT_FOUND {
|
|
626
|
+
code: 29;
|
|
627
|
+
message: 'Transaction hash not found';
|
|
628
|
+
}
|
|
629
|
+
interface PAGE_SIZE_TOO_BIG {
|
|
630
|
+
code: 31;
|
|
631
|
+
message: 'Requested page size is too big';
|
|
632
|
+
}
|
|
633
|
+
interface NO_BLOCKS {
|
|
634
|
+
code: 32;
|
|
635
|
+
message: 'There are no blocks';
|
|
636
|
+
}
|
|
637
|
+
interface INVALID_CONTINUATION_TOKEN {
|
|
638
|
+
code: 33;
|
|
639
|
+
message: 'The supplied continuation token is invalid or unknown';
|
|
640
|
+
}
|
|
641
|
+
interface TOO_MANY_KEYS_IN_FILTER {
|
|
642
|
+
code: 34;
|
|
643
|
+
message: 'Too many keys provided in a filter';
|
|
644
|
+
}
|
|
645
|
+
interface CONTRACT_ERROR {
|
|
646
|
+
code: 40;
|
|
647
|
+
message: 'Contract error';
|
|
648
|
+
data: {
|
|
649
|
+
revert_error: string;
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
interface TRANSACTION_EXECUTION_ERROR {
|
|
653
|
+
code: 41;
|
|
654
|
+
message: 'Transaction execution error';
|
|
655
|
+
data: {
|
|
656
|
+
transaction_index: number;
|
|
657
|
+
execution_error: string;
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
interface CLASS_ALREADY_DECLARED {
|
|
661
|
+
code: 51;
|
|
662
|
+
message: 'Class already declared';
|
|
663
|
+
}
|
|
664
|
+
interface INVALID_TRANSACTION_NONCE {
|
|
665
|
+
code: 52;
|
|
666
|
+
message: 'Invalid transaction nonce';
|
|
667
|
+
}
|
|
668
|
+
interface INSUFFICIENT_MAX_FEE {
|
|
669
|
+
code: 53;
|
|
670
|
+
message: 'Max fee is smaller than the minimal transaction cost (validation plus fee transfer)';
|
|
671
|
+
}
|
|
672
|
+
interface INSUFFICIENT_ACCOUNT_BALANCE {
|
|
673
|
+
code: 54;
|
|
674
|
+
message: "Account balance is smaller than the transaction's max_fee";
|
|
675
|
+
}
|
|
676
|
+
interface VALIDATION_FAILURE {
|
|
677
|
+
code: 55;
|
|
678
|
+
message: 'Account validation failed';
|
|
679
|
+
data: string;
|
|
680
|
+
}
|
|
681
|
+
interface COMPILATION_FAILED {
|
|
682
|
+
code: 56;
|
|
683
|
+
message: 'Compilation failed';
|
|
684
|
+
}
|
|
685
|
+
interface CONTRACT_CLASS_SIZE_IS_TOO_LARGE {
|
|
686
|
+
code: 57;
|
|
687
|
+
message: 'Contract class size it too large';
|
|
688
|
+
}
|
|
689
|
+
interface NON_ACCOUNT {
|
|
690
|
+
code: 58;
|
|
691
|
+
message: 'Sender address in not an account contract';
|
|
692
|
+
}
|
|
693
|
+
interface DUPLICATE_TX {
|
|
694
|
+
code: 59;
|
|
695
|
+
message: 'A transaction with the same hash already exists in the mempool';
|
|
696
|
+
}
|
|
697
|
+
interface COMPILED_CLASS_HASH_MISMATCH {
|
|
698
|
+
code: 60;
|
|
699
|
+
message: 'the compiled class hash did not match the one supplied in the transaction';
|
|
700
|
+
}
|
|
701
|
+
interface UNSUPPORTED_TX_VERSION {
|
|
702
|
+
code: 61;
|
|
703
|
+
message: 'the transaction version is not supported';
|
|
704
|
+
}
|
|
705
|
+
interface UNSUPPORTED_CONTRACT_CLASS_VERSION {
|
|
706
|
+
code: 62;
|
|
707
|
+
message: 'the contract class version is not supported';
|
|
708
|
+
}
|
|
709
|
+
interface UNEXPECTED_ERROR {
|
|
710
|
+
code: 63;
|
|
711
|
+
message: 'An unexpected error occurred';
|
|
712
|
+
data: string;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
type errors$1_BLOCK_NOT_FOUND = BLOCK_NOT_FOUND;
|
|
716
|
+
type errors$1_CLASS_ALREADY_DECLARED = CLASS_ALREADY_DECLARED;
|
|
717
|
+
type errors$1_CLASS_HASH_NOT_FOUND = CLASS_HASH_NOT_FOUND;
|
|
718
|
+
type errors$1_COMPILATION_FAILED = COMPILATION_FAILED;
|
|
719
|
+
type errors$1_COMPILED_CLASS_HASH_MISMATCH = COMPILED_CLASS_HASH_MISMATCH;
|
|
720
|
+
type errors$1_CONTRACT_CLASS_SIZE_IS_TOO_LARGE = CONTRACT_CLASS_SIZE_IS_TOO_LARGE;
|
|
721
|
+
type errors$1_CONTRACT_ERROR = CONTRACT_ERROR;
|
|
722
|
+
type errors$1_CONTRACT_NOT_FOUND = CONTRACT_NOT_FOUND;
|
|
723
|
+
type errors$1_DUPLICATE_TX = DUPLICATE_TX;
|
|
724
|
+
type errors$1_FAILED_TO_RECEIVE_TXN = FAILED_TO_RECEIVE_TXN;
|
|
725
|
+
type errors$1_INSUFFICIENT_ACCOUNT_BALANCE = INSUFFICIENT_ACCOUNT_BALANCE;
|
|
726
|
+
type errors$1_INSUFFICIENT_MAX_FEE = INSUFFICIENT_MAX_FEE;
|
|
727
|
+
type errors$1_INVALID_BLOCK_HASH = INVALID_BLOCK_HASH;
|
|
728
|
+
type errors$1_INVALID_CALL_DATA = INVALID_CALL_DATA;
|
|
729
|
+
type errors$1_INVALID_CONTINUATION_TOKEN = INVALID_CONTINUATION_TOKEN;
|
|
730
|
+
type errors$1_INVALID_MESSAGE_SELECTOR = INVALID_MESSAGE_SELECTOR;
|
|
731
|
+
type errors$1_INVALID_TRANSACTION_NONCE = INVALID_TRANSACTION_NONCE;
|
|
732
|
+
type errors$1_INVALID_TXN_INDEX = INVALID_TXN_INDEX;
|
|
733
|
+
type errors$1_NON_ACCOUNT = NON_ACCOUNT;
|
|
734
|
+
type errors$1_NO_BLOCKS = NO_BLOCKS;
|
|
735
|
+
type errors$1_NO_TRACE_AVAILABLE = NO_TRACE_AVAILABLE;
|
|
736
|
+
type errors$1_PAGE_SIZE_TOO_BIG = PAGE_SIZE_TOO_BIG;
|
|
737
|
+
type errors$1_TOO_MANY_KEYS_IN_FILTER = TOO_MANY_KEYS_IN_FILTER;
|
|
738
|
+
type errors$1_TRANSACTION_EXECUTION_ERROR = TRANSACTION_EXECUTION_ERROR;
|
|
739
|
+
type errors$1_TXN_HASH_NOT_FOUND = TXN_HASH_NOT_FOUND;
|
|
740
|
+
type errors$1_UNEXPECTED_ERROR = UNEXPECTED_ERROR;
|
|
741
|
+
type errors$1_UNSUPPORTED_CONTRACT_CLASS_VERSION = UNSUPPORTED_CONTRACT_CLASS_VERSION;
|
|
742
|
+
type errors$1_UNSUPPORTED_TX_VERSION = UNSUPPORTED_TX_VERSION;
|
|
743
|
+
type errors$1_VALIDATION_FAILURE = VALIDATION_FAILURE;
|
|
744
|
+
declare namespace errors$1 {
|
|
745
|
+
export type { errors$1_BLOCK_NOT_FOUND as BLOCK_NOT_FOUND, errors$1_CLASS_ALREADY_DECLARED as CLASS_ALREADY_DECLARED, errors$1_CLASS_HASH_NOT_FOUND as CLASS_HASH_NOT_FOUND, errors$1_COMPILATION_FAILED as COMPILATION_FAILED, errors$1_COMPILED_CLASS_HASH_MISMATCH as COMPILED_CLASS_HASH_MISMATCH, errors$1_CONTRACT_CLASS_SIZE_IS_TOO_LARGE as CONTRACT_CLASS_SIZE_IS_TOO_LARGE, errors$1_CONTRACT_ERROR as CONTRACT_ERROR, errors$1_CONTRACT_NOT_FOUND as CONTRACT_NOT_FOUND, errors$1_DUPLICATE_TX as DUPLICATE_TX, errors$1_FAILED_TO_RECEIVE_TXN as FAILED_TO_RECEIVE_TXN, errors$1_INSUFFICIENT_ACCOUNT_BALANCE as INSUFFICIENT_ACCOUNT_BALANCE, errors$1_INSUFFICIENT_MAX_FEE as INSUFFICIENT_MAX_FEE, errors$1_INVALID_BLOCK_HASH as INVALID_BLOCK_HASH, errors$1_INVALID_CALL_DATA as INVALID_CALL_DATA, errors$1_INVALID_CONTINUATION_TOKEN as INVALID_CONTINUATION_TOKEN, errors$1_INVALID_MESSAGE_SELECTOR as INVALID_MESSAGE_SELECTOR, errors$1_INVALID_TRANSACTION_NONCE as INVALID_TRANSACTION_NONCE, errors$1_INVALID_TXN_INDEX as INVALID_TXN_INDEX, errors$1_NON_ACCOUNT as NON_ACCOUNT, errors$1_NO_BLOCKS as NO_BLOCKS, errors$1_NO_TRACE_AVAILABLE as NO_TRACE_AVAILABLE, errors$1_PAGE_SIZE_TOO_BIG as PAGE_SIZE_TOO_BIG, errors$1_TOO_MANY_KEYS_IN_FILTER as TOO_MANY_KEYS_IN_FILTER, errors$1_TRANSACTION_EXECUTION_ERROR as TRANSACTION_EXECUTION_ERROR, errors$1_TXN_HASH_NOT_FOUND as TXN_HASH_NOT_FOUND, errors$1_UNEXPECTED_ERROR as UNEXPECTED_ERROR, errors$1_UNSUPPORTED_CONTRACT_CLASS_VERSION as UNSUPPORTED_CONTRACT_CLASS_VERSION, errors$1_UNSUPPORTED_TX_VERSION as UNSUPPORTED_TX_VERSION, errors$1_VALIDATION_FAILURE as VALIDATION_FAILURE };
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Types that are not in spec but required for UX
|
|
750
|
+
*/
|
|
751
|
+
|
|
752
|
+
type ContractClass$2 = CONTRACT_CLASS$1 | DEPRECATED_CONTRACT_CLASS$1;
|
|
753
|
+
type SimulateTransaction$2 = {
|
|
754
|
+
transaction_trace: TRANSACTION_TRACE$1;
|
|
755
|
+
fee_estimation: FEE_ESTIMATE$1;
|
|
756
|
+
};
|
|
757
|
+
type SimulateTransactionResponse$2 = SimulateTransaction$2[];
|
|
758
|
+
type FeeEstimate$2 = FEE_ESTIMATE$1;
|
|
759
|
+
type TransactionWithHash$2 = TXN$1 & {
|
|
760
|
+
transaction_hash: TXN_HASH$2;
|
|
761
|
+
};
|
|
762
|
+
type BlockHashAndNumber$1 = {
|
|
763
|
+
block_hash: BLOCK_HASH$2;
|
|
764
|
+
block_number: BLOCK_NUMBER$2;
|
|
765
|
+
};
|
|
766
|
+
type BlockWithTxs$1 = BLOCK_WITH_TXS$1 | PENDING_BLOCK_WITH_TXS$1;
|
|
767
|
+
type BlockWithTxHashes$2 = BLOCK_WITH_TX_HASHES$1 | PENDING_BLOCK_WITH_TX_HASHES$1;
|
|
768
|
+
type StateUpdate$2 = STATE_UPDATE$2 | PENDING_STATE_UPDATE$2;
|
|
769
|
+
type BlockTransactionsTraces$1 = {
|
|
770
|
+
transaction_hash: FELT$2;
|
|
771
|
+
trace_root: TRANSACTION_TRACE$1;
|
|
772
|
+
}[];
|
|
773
|
+
type Syncing$1 = false | SYNC_STATUS$1;
|
|
774
|
+
type Events$1 = EVENTS_CHUNK$1;
|
|
775
|
+
type EmittedEvent$1 = EMITTED_EVENT$1;
|
|
776
|
+
type Event$1 = EVENT$2;
|
|
777
|
+
type InvokedTransaction$2 = {
|
|
778
|
+
transaction_hash: TXN_HASH$2;
|
|
779
|
+
};
|
|
780
|
+
type DeclaredTransaction$2 = {
|
|
781
|
+
transaction_hash: TXN_HASH$2;
|
|
782
|
+
class_hash: FELT$2;
|
|
783
|
+
};
|
|
784
|
+
type DeployedAccountTransaction$1 = {
|
|
785
|
+
transaction_hash: TXN_HASH$2;
|
|
786
|
+
contract_address: FELT$2;
|
|
787
|
+
};
|
|
788
|
+
type ContractAddress$1 = ADDRESS$1;
|
|
789
|
+
type Felt$1 = FELT$2;
|
|
790
|
+
type Nonce$2 = FELT$2;
|
|
791
|
+
type TransactionHash$1 = TXN_HASH$2;
|
|
792
|
+
type TransactionTrace$1 = TRANSACTION_TRACE$1;
|
|
793
|
+
type BlockHash$1 = BLOCK_HASH$2;
|
|
794
|
+
type TransactionReceipt$2 = TXN_RECEIPT$1 | PENDING_TXN_RECEIPT;
|
|
795
|
+
type Receipt$2 = TXN_RECEIPT$1;
|
|
796
|
+
type PendingReceipt$2 = PENDING_TXN_RECEIPT;
|
|
797
|
+
type EventFilter$1 = EVENT_FILTER$1 & RESULT_PAGE_REQUEST$1;
|
|
798
|
+
type SimulationFlags$2 = Array<SIMULATION_FLAG$3>;
|
|
799
|
+
type L1Message$1 = MSG_FROM_L1$1;
|
|
800
|
+
type BaseTransaction$1 = BROADCASTED_TXN$1;
|
|
801
|
+
type ChainId$1 = CHAIN_ID$1;
|
|
802
|
+
type Transaction$1 = TXN$1;
|
|
803
|
+
type TransactionStatus$2 = {
|
|
804
|
+
finality_status: TXN_STATUS$1;
|
|
805
|
+
execution_status?: TXN_EXECUTION_STATUS$1;
|
|
806
|
+
};
|
|
807
|
+
type ResourceBounds$2 = RESOURCE_BOUNDS_MAPPING$1;
|
|
808
|
+
type FeePayment$1 = FEE_PAYMENT$1;
|
|
809
|
+
type PriceUnit$1 = PRICE_UNIT$2;
|
|
810
|
+
type StorageDiffs$1 = Array<CONTRACT_STORAGE_DIFF_ITEM$1>;
|
|
811
|
+
type DeprecatedDeclaredClasses$1 = Array<FELT$2>;
|
|
812
|
+
type NonceUpdates$1 = NONCE_UPDATE$1[];
|
|
813
|
+
type ReplacedClasses$1 = REPLACED_CLASS$1[];
|
|
814
|
+
declare enum ETransactionType$1 {
|
|
815
|
+
DECLARE = "DECLARE",
|
|
816
|
+
DEPLOY = "DEPLOY",
|
|
817
|
+
DEPLOY_ACCOUNT = "DEPLOY_ACCOUNT",
|
|
818
|
+
INVOKE = "INVOKE",
|
|
819
|
+
L1_HANDLER = "L1_HANDLER"
|
|
820
|
+
}
|
|
821
|
+
declare enum ESimulationFlag$1 {
|
|
822
|
+
SKIP_VALIDATE = "SKIP_VALIDATE",
|
|
823
|
+
SKIP_FEE_CHARGE = "SKIP_FEE_CHARGE"
|
|
824
|
+
}
|
|
825
|
+
declare enum ETransactionStatus$1 {
|
|
826
|
+
RECEIVED = "RECEIVED",
|
|
827
|
+
REJECTED = "REJECTED",
|
|
828
|
+
ACCEPTED_ON_L2 = "ACCEPTED_ON_L2",
|
|
829
|
+
ACCEPTED_ON_L1 = "ACCEPTED_ON_L1"
|
|
830
|
+
}
|
|
831
|
+
declare enum ETransactionFinalityStatus$1 {
|
|
832
|
+
ACCEPTED_ON_L2 = "ACCEPTED_ON_L2",
|
|
833
|
+
ACCEPTED_ON_L1 = "ACCEPTED_ON_L1"
|
|
834
|
+
}
|
|
835
|
+
declare enum ETransactionExecutionStatus$1 {
|
|
836
|
+
SUCCEEDED = "SUCCEEDED",
|
|
837
|
+
REVERTED = "REVERTED"
|
|
838
|
+
}
|
|
839
|
+
declare enum EBlockTag$1 {
|
|
840
|
+
LATEST = "latest",
|
|
841
|
+
PENDING = "pending"
|
|
842
|
+
}
|
|
843
|
+
declare enum EDataAvailabilityMode$1 {
|
|
844
|
+
L1 = "L1",
|
|
845
|
+
L2 = "L2"
|
|
846
|
+
}
|
|
847
|
+
declare enum EDAMode$1 {
|
|
848
|
+
L1 = 0,
|
|
849
|
+
L2 = 1
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* V_ Transaction versions HexString
|
|
853
|
+
* F_ Fee Transaction Versions HexString (2 ** 128 + TRANSACTION_VERSION)
|
|
854
|
+
*/
|
|
855
|
+
declare enum ETransactionVersion$1 {
|
|
856
|
+
V0 = "0x0",
|
|
857
|
+
V1 = "0x1",
|
|
858
|
+
V2 = "0x2",
|
|
859
|
+
V3 = "0x3",
|
|
860
|
+
F0 = "0x100000000000000000000000000000000",
|
|
861
|
+
F1 = "0x100000000000000000000000000000001",
|
|
862
|
+
F2 = "0x100000000000000000000000000000002",
|
|
863
|
+
F3 = "0x100000000000000000000000000000003"
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* Old Transaction Versions
|
|
867
|
+
*/
|
|
868
|
+
declare enum ETransactionVersion2$1 {
|
|
869
|
+
V0 = "0x0",
|
|
870
|
+
V1 = "0x1",
|
|
871
|
+
V2 = "0x2",
|
|
872
|
+
F0 = "0x100000000000000000000000000000000",
|
|
873
|
+
F1 = "0x100000000000000000000000000000001",
|
|
874
|
+
F2 = "0x100000000000000000000000000000002"
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* V3 Transaction Versions
|
|
878
|
+
*/
|
|
879
|
+
declare enum ETransactionVersion3$1 {
|
|
880
|
+
V3 = "0x3",
|
|
881
|
+
F3 = "0x100000000000000000000000000000003"
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
type Methods$1 = ReadMethods$1 & WriteMethods$1 & TraceMethods$1;
|
|
885
|
+
type ReadMethods$1 = {
|
|
886
|
+
starknet_specVersion: {
|
|
887
|
+
params: [];
|
|
888
|
+
result: string;
|
|
889
|
+
};
|
|
890
|
+
starknet_getBlockWithTxHashes: {
|
|
891
|
+
params: {
|
|
892
|
+
block_id: BLOCK_ID$1;
|
|
893
|
+
};
|
|
894
|
+
result: BlockWithTxHashes$2;
|
|
895
|
+
errors: BLOCK_NOT_FOUND;
|
|
896
|
+
};
|
|
897
|
+
starknet_getBlockWithTxs: {
|
|
898
|
+
params: {
|
|
899
|
+
block_id: BLOCK_ID$1;
|
|
900
|
+
};
|
|
901
|
+
result: BlockWithTxs$1;
|
|
902
|
+
errors: BLOCK_NOT_FOUND;
|
|
903
|
+
};
|
|
904
|
+
starknet_getStateUpdate: {
|
|
905
|
+
params: {
|
|
906
|
+
block_id: BLOCK_ID$1;
|
|
907
|
+
};
|
|
908
|
+
result: StateUpdate$2;
|
|
909
|
+
errors: BLOCK_NOT_FOUND;
|
|
910
|
+
};
|
|
911
|
+
starknet_getStorageAt: {
|
|
912
|
+
params: {
|
|
913
|
+
contract_address: ADDRESS$1;
|
|
914
|
+
key: STORAGE_KEY$1;
|
|
915
|
+
block_id: BLOCK_ID$1;
|
|
916
|
+
};
|
|
917
|
+
result: FELT$2;
|
|
918
|
+
errors: CONTRACT_NOT_FOUND | BLOCK_NOT_FOUND;
|
|
919
|
+
};
|
|
920
|
+
starknet_getTransactionStatus: {
|
|
921
|
+
params: {
|
|
922
|
+
transaction_hash: TXN_HASH$2;
|
|
923
|
+
};
|
|
924
|
+
result: TransactionStatus$2;
|
|
925
|
+
errors: TXN_HASH_NOT_FOUND;
|
|
926
|
+
};
|
|
927
|
+
starknet_getTransactionByHash: {
|
|
928
|
+
params: {
|
|
929
|
+
transaction_hash: TXN_HASH$2;
|
|
930
|
+
};
|
|
931
|
+
result: TransactionWithHash$2;
|
|
932
|
+
errors: TXN_HASH_NOT_FOUND;
|
|
933
|
+
};
|
|
934
|
+
starknet_getTransactionByBlockIdAndIndex: {
|
|
935
|
+
params: {
|
|
936
|
+
block_id: BLOCK_ID$1;
|
|
937
|
+
index: number;
|
|
938
|
+
};
|
|
939
|
+
result: TransactionWithHash$2;
|
|
940
|
+
errors: BLOCK_NOT_FOUND | INVALID_TXN_INDEX;
|
|
941
|
+
};
|
|
942
|
+
starknet_getTransactionReceipt: {
|
|
943
|
+
params: {
|
|
944
|
+
transaction_hash: TXN_HASH$2;
|
|
945
|
+
};
|
|
946
|
+
result: TransactionReceipt$2;
|
|
947
|
+
errors: TXN_HASH_NOT_FOUND;
|
|
948
|
+
};
|
|
949
|
+
starknet_getClass: {
|
|
950
|
+
params: {
|
|
951
|
+
block_id: BLOCK_ID$1;
|
|
952
|
+
class_hash: FELT$2;
|
|
953
|
+
};
|
|
954
|
+
result: ContractClass$2;
|
|
955
|
+
errors: BLOCK_NOT_FOUND | CLASS_HASH_NOT_FOUND;
|
|
956
|
+
};
|
|
957
|
+
starknet_getClassHashAt: {
|
|
958
|
+
params: {
|
|
959
|
+
block_id: BLOCK_ID$1;
|
|
960
|
+
contract_address: ADDRESS$1;
|
|
961
|
+
};
|
|
962
|
+
result: FELT$2;
|
|
963
|
+
errors: BLOCK_NOT_FOUND | CONTRACT_NOT_FOUND;
|
|
964
|
+
};
|
|
965
|
+
starknet_getClassAt: {
|
|
966
|
+
params: {
|
|
967
|
+
block_id: BLOCK_ID$1;
|
|
968
|
+
contract_address: ADDRESS$1;
|
|
969
|
+
};
|
|
970
|
+
result: ContractClass$2;
|
|
971
|
+
errors: BLOCK_NOT_FOUND | CONTRACT_NOT_FOUND;
|
|
972
|
+
};
|
|
973
|
+
starknet_getBlockTransactionCount: {
|
|
974
|
+
params: {
|
|
975
|
+
block_id: BLOCK_ID$1;
|
|
976
|
+
};
|
|
977
|
+
result: number;
|
|
978
|
+
errors: BLOCK_NOT_FOUND;
|
|
979
|
+
};
|
|
980
|
+
starknet_call: {
|
|
981
|
+
params: {
|
|
982
|
+
request: FUNCTION_CALL$1;
|
|
983
|
+
block_id: BLOCK_ID$1;
|
|
984
|
+
};
|
|
985
|
+
result: FELT$2[];
|
|
986
|
+
errors: CONTRACT_NOT_FOUND | CONTRACT_ERROR | BLOCK_NOT_FOUND;
|
|
987
|
+
};
|
|
988
|
+
starknet_estimateFee: {
|
|
989
|
+
params: {
|
|
990
|
+
request: BROADCASTED_TXN$1[];
|
|
991
|
+
simulation_flags?: [SIMULATION_FLAG_FOR_ESTIMATE_FEE$1] | [];
|
|
992
|
+
block_id: BLOCK_ID$1;
|
|
993
|
+
};
|
|
994
|
+
result: FeeEstimate$2[];
|
|
995
|
+
errors: TRANSACTION_EXECUTION_ERROR | BLOCK_NOT_FOUND;
|
|
996
|
+
};
|
|
997
|
+
starknet_estimateMessageFee: {
|
|
998
|
+
params: {
|
|
999
|
+
message: MSG_FROM_L1$1;
|
|
1000
|
+
block_id: BLOCK_ID$1;
|
|
1001
|
+
};
|
|
1002
|
+
result: FeeEstimate$2;
|
|
1003
|
+
errors: CONTRACT_ERROR | BLOCK_NOT_FOUND;
|
|
1004
|
+
};
|
|
1005
|
+
starknet_blockNumber: {
|
|
1006
|
+
params: [];
|
|
1007
|
+
result: BLOCK_NUMBER$2;
|
|
1008
|
+
errors: NO_BLOCKS;
|
|
1009
|
+
};
|
|
1010
|
+
starknet_blockHashAndNumber: {
|
|
1011
|
+
params: [];
|
|
1012
|
+
result: BlockHashAndNumber$1;
|
|
1013
|
+
errors: NO_BLOCKS;
|
|
1014
|
+
};
|
|
1015
|
+
starknet_chainId: {
|
|
1016
|
+
params: [];
|
|
1017
|
+
result: CHAIN_ID$1;
|
|
1018
|
+
};
|
|
1019
|
+
starknet_syncing: {
|
|
1020
|
+
params: [];
|
|
1021
|
+
result: Syncing$1;
|
|
1022
|
+
};
|
|
1023
|
+
starknet_getEvents: {
|
|
1024
|
+
params: {
|
|
1025
|
+
filter: EVENT_FILTER$1 & RESULT_PAGE_REQUEST$1;
|
|
1026
|
+
};
|
|
1027
|
+
result: Events$1;
|
|
1028
|
+
errors: PAGE_SIZE_TOO_BIG | INVALID_CONTINUATION_TOKEN | BLOCK_NOT_FOUND | TOO_MANY_KEYS_IN_FILTER;
|
|
1029
|
+
};
|
|
1030
|
+
starknet_getNonce: {
|
|
1031
|
+
params: {
|
|
1032
|
+
block_id: BLOCK_ID$1;
|
|
1033
|
+
contract_address: ADDRESS$1;
|
|
1034
|
+
};
|
|
1035
|
+
result: Nonce$2;
|
|
1036
|
+
errors: BLOCK_NOT_FOUND | CONTRACT_NOT_FOUND;
|
|
1037
|
+
};
|
|
1038
|
+
};
|
|
1039
|
+
type WriteMethods$1 = {
|
|
1040
|
+
starknet_addInvokeTransaction: {
|
|
1041
|
+
params: {
|
|
1042
|
+
invoke_transaction: BROADCASTED_INVOKE_TXN$1;
|
|
1043
|
+
};
|
|
1044
|
+
result: InvokedTransaction$2;
|
|
1045
|
+
errors: INSUFFICIENT_ACCOUNT_BALANCE | INSUFFICIENT_MAX_FEE | INVALID_TRANSACTION_NONCE | VALIDATION_FAILURE | NON_ACCOUNT | DUPLICATE_TX | UNSUPPORTED_TX_VERSION | UNEXPECTED_ERROR;
|
|
1046
|
+
};
|
|
1047
|
+
starknet_addDeclareTransaction: {
|
|
1048
|
+
params: {
|
|
1049
|
+
declare_transaction: BROADCASTED_DECLARE_TXN$1;
|
|
1050
|
+
};
|
|
1051
|
+
result: DeclaredTransaction$2;
|
|
1052
|
+
errors: CLASS_ALREADY_DECLARED | COMPILATION_FAILED | COMPILED_CLASS_HASH_MISMATCH | INSUFFICIENT_ACCOUNT_BALANCE | INSUFFICIENT_MAX_FEE | INVALID_TRANSACTION_NONCE | VALIDATION_FAILURE | NON_ACCOUNT | DUPLICATE_TX | CONTRACT_CLASS_SIZE_IS_TOO_LARGE | UNSUPPORTED_TX_VERSION | UNSUPPORTED_CONTRACT_CLASS_VERSION | UNEXPECTED_ERROR;
|
|
1053
|
+
};
|
|
1054
|
+
starknet_addDeployAccountTransaction: {
|
|
1055
|
+
params: {
|
|
1056
|
+
deploy_account_transaction: BROADCASTED_DEPLOY_ACCOUNT_TXN$1;
|
|
1057
|
+
};
|
|
1058
|
+
result: DeployedAccountTransaction$1;
|
|
1059
|
+
errors: INSUFFICIENT_ACCOUNT_BALANCE | INSUFFICIENT_MAX_FEE | INVALID_TRANSACTION_NONCE | VALIDATION_FAILURE | NON_ACCOUNT | CLASS_HASH_NOT_FOUND | DUPLICATE_TX | UNSUPPORTED_TX_VERSION | UNEXPECTED_ERROR;
|
|
1060
|
+
};
|
|
1061
|
+
};
|
|
1062
|
+
type TraceMethods$1 = {
|
|
1063
|
+
starknet_traceTransaction: {
|
|
1064
|
+
params: {
|
|
1065
|
+
transaction_hash: TXN_HASH$2;
|
|
1066
|
+
};
|
|
1067
|
+
result: TransactionTrace$1;
|
|
1068
|
+
errors: TXN_HASH_NOT_FOUND | NO_TRACE_AVAILABLE;
|
|
1069
|
+
};
|
|
1070
|
+
starknet_traceBlockTransactions: {
|
|
1071
|
+
params: {
|
|
1072
|
+
block_id: BLOCK_ID$1;
|
|
1073
|
+
};
|
|
1074
|
+
result: BlockTransactionsTraces$1;
|
|
1075
|
+
errors: BLOCK_NOT_FOUND;
|
|
1076
|
+
};
|
|
1077
|
+
starknet_simulateTransactions: {
|
|
1078
|
+
params: {
|
|
1079
|
+
block_id: BLOCK_ID$1;
|
|
1080
|
+
transactions: Array<BROADCASTED_TXN$1>;
|
|
1081
|
+
simulation_flags: Array<SIMULATION_FLAG$3>;
|
|
1082
|
+
};
|
|
1083
|
+
result: SimulateTransactionResponse$2;
|
|
1084
|
+
errors: BLOCK_NOT_FOUND | TRANSACTION_EXECUTION_ERROR;
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* TypeScript Representation of Cairo1 v2+ Starknet Contract ABI
|
|
1090
|
+
*
|
|
1091
|
+
* starknet_metadata.json - tags/v0.5.0
|
|
1092
|
+
*
|
|
1093
|
+
* 'starknet-specs' (OpenRpc protocol types)
|
|
1094
|
+
* https://github.com/starkware-libs/starknet-specs
|
|
1095
|
+
*/
|
|
1096
|
+
type ABI = Array<FUNCTION | CONSTRUCTOR | L1_HANDLER | EVENT$1 | STRUCT | ENUM | INTERFACE | IMPL>;
|
|
1097
|
+
type FUNCTION = {
|
|
1098
|
+
type: 'function';
|
|
1099
|
+
name: string;
|
|
1100
|
+
inputs: Array<{
|
|
1101
|
+
name: string;
|
|
1102
|
+
type: string;
|
|
1103
|
+
}>;
|
|
1104
|
+
outputs?: Array<{
|
|
1105
|
+
type: string;
|
|
1106
|
+
}>;
|
|
1107
|
+
state_mutability: 'view' | 'external';
|
|
1108
|
+
};
|
|
1109
|
+
type CONSTRUCTOR = {
|
|
1110
|
+
type: 'constructor';
|
|
1111
|
+
name: 'constructor';
|
|
1112
|
+
inputs: Array<{
|
|
1113
|
+
name: string;
|
|
1114
|
+
type: string;
|
|
1115
|
+
}>;
|
|
1116
|
+
};
|
|
1117
|
+
type L1_HANDLER = {
|
|
1118
|
+
type: 'l1_handler';
|
|
1119
|
+
name: string;
|
|
1120
|
+
inputs: Array<{
|
|
1121
|
+
name: string;
|
|
1122
|
+
type: string;
|
|
1123
|
+
}>;
|
|
1124
|
+
outputs?: Array<{
|
|
1125
|
+
type: string;
|
|
1126
|
+
}>;
|
|
1127
|
+
state_mutability: 'view' | 'external';
|
|
1128
|
+
};
|
|
1129
|
+
type EVENT$1 = {
|
|
1130
|
+
type: 'event';
|
|
1131
|
+
name: string;
|
|
1132
|
+
} & (ENUM_EVENT | STRUCT_EVENT);
|
|
1133
|
+
type STRUCT_EVENT = {
|
|
1134
|
+
kind: 'struct';
|
|
1135
|
+
members: Array<EVENT_FIELD>;
|
|
1136
|
+
};
|
|
1137
|
+
type ENUM_EVENT = {
|
|
1138
|
+
kind: 'enum';
|
|
1139
|
+
variants: Array<EVENT_FIELD>;
|
|
1140
|
+
};
|
|
1141
|
+
type STRUCT = {
|
|
1142
|
+
type: 'struct';
|
|
1143
|
+
name: string;
|
|
1144
|
+
members: Array<{
|
|
1145
|
+
name: string;
|
|
1146
|
+
type: string;
|
|
1147
|
+
}>;
|
|
1148
|
+
};
|
|
1149
|
+
type ENUM = {
|
|
1150
|
+
type: 'enum';
|
|
1151
|
+
name: string;
|
|
1152
|
+
variants: Array<{
|
|
1153
|
+
name: string;
|
|
1154
|
+
type: string;
|
|
1155
|
+
}>;
|
|
1156
|
+
};
|
|
1157
|
+
type INTERFACE = {
|
|
1158
|
+
type: 'interface';
|
|
1159
|
+
name: string;
|
|
1160
|
+
items: Array<FUNCTION>;
|
|
1161
|
+
};
|
|
1162
|
+
type IMPL = {
|
|
1163
|
+
type: 'impl';
|
|
1164
|
+
name: string;
|
|
1165
|
+
interface_name: string;
|
|
1166
|
+
};
|
|
1167
|
+
type EVENT_FIELD = {
|
|
1168
|
+
name: string;
|
|
1169
|
+
type: string;
|
|
1170
|
+
kind: 'key' | 'data' | 'nested';
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* version 0.6.0
|
|
1175
|
+
*/
|
|
1176
|
+
|
|
1177
|
+
type index$5_ABI = ABI;
|
|
1178
|
+
declare namespace index$5 {
|
|
1179
|
+
export { type index$5_ABI as ABI, type BaseTransaction$1 as BaseTransaction, type BlockHash$1 as BlockHash, type BlockHashAndNumber$1 as BlockHashAndNumber, type BlockTransactionsTraces$1 as BlockTransactionsTraces, type BlockWithTxHashes$2 as BlockWithTxHashes, type BlockWithTxs$1 as BlockWithTxs, type ChainId$1 as ChainId, type ContractAddress$1 as ContractAddress, type ContractClass$2 as ContractClass, type DeclaredTransaction$2 as DeclaredTransaction, type DeployedAccountTransaction$1 as DeployedAccountTransaction, type DeprecatedDeclaredClasses$1 as DeprecatedDeclaredClasses, EBlockTag$1 as EBlockTag, EDAMode$1 as EDAMode, EDataAvailabilityMode$1 as EDataAvailabilityMode, ESimulationFlag$1 as ESimulationFlag, ETransactionExecutionStatus$1 as ETransactionExecutionStatus, ETransactionFinalityStatus$1 as ETransactionFinalityStatus, ETransactionStatus$1 as ETransactionStatus, ETransactionType$1 as ETransactionType, ETransactionVersion$1 as ETransactionVersion, ETransactionVersion2$1 as ETransactionVersion2, ETransactionVersion3$1 as ETransactionVersion3, type EmittedEvent$1 as EmittedEvent, errors$1 as Errors, type Event$1 as Event, type EventFilter$1 as EventFilter, type Events$1 as Events, type FeeEstimate$2 as FeeEstimate, type FeePayment$1 as FeePayment, type Felt$1 as Felt, type InvokedTransaction$2 as InvokedTransaction, type L1Message$1 as L1Message, type Methods$1 as Methods, type Nonce$2 as Nonce, type NonceUpdates$1 as NonceUpdates, type PendingReceipt$2 as PendingReceipt, type PriceUnit$1 as PriceUnit, type Receipt$2 as Receipt, type ReplacedClasses$1 as ReplacedClasses, type ResourceBounds$2 as ResourceBounds, components$1 as SPEC, type SimulateTransaction$2 as SimulateTransaction, type SimulateTransactionResponse$2 as SimulateTransactionResponse, type SimulationFlags$2 as SimulationFlags, type StateUpdate$2 as StateUpdate, type StorageDiffs$1 as StorageDiffs, type Syncing$1 as Syncing, type Transaction$1 as Transaction, type TransactionHash$1 as TransactionHash, type TransactionReceipt$2 as TransactionReceipt, type TransactionStatus$2 as TransactionStatus, type TransactionTrace$1 as TransactionTrace, type TransactionWithHash$2 as TransactionWithHash };
|
|
36
1180
|
}
|
|
37
1181
|
|
|
38
1182
|
/**
|
|
@@ -42,7 +1186,7 @@ declare namespace index$4 {
|
|
|
42
1186
|
* A field element. represented by at most 63 hex digits
|
|
43
1187
|
* @pattern ^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$
|
|
44
1188
|
*/
|
|
45
|
-
type FELT = string;
|
|
1189
|
+
type FELT$1 = string;
|
|
46
1190
|
/**
|
|
47
1191
|
* an ethereum address represented as 40 hex digits
|
|
48
1192
|
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
@@ -53,7 +1197,7 @@ type ETH_ADDRESS = string;
|
|
|
53
1197
|
* @pattern ^0x0[0-7]{1}[a-fA-F0-9]{0,62}$
|
|
54
1198
|
*/
|
|
55
1199
|
type STORAGE_KEY = string;
|
|
56
|
-
type ADDRESS = FELT;
|
|
1200
|
+
type ADDRESS = FELT$1;
|
|
57
1201
|
type NUM_AS_HEX = string;
|
|
58
1202
|
/**
|
|
59
1203
|
* 64 bit integers, represented by hex string of length at most 16
|
|
@@ -65,10 +1209,10 @@ type u64 = string;
|
|
|
65
1209
|
* "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,31})$"
|
|
66
1210
|
*/
|
|
67
1211
|
type u128 = string;
|
|
68
|
-
type SIGNATURE = Array<FELT>;
|
|
69
|
-
type BLOCK_NUMBER = number;
|
|
70
|
-
type BLOCK_HASH = FELT;
|
|
71
|
-
type TXN_HASH = FELT;
|
|
1212
|
+
type SIGNATURE = Array<FELT$1>;
|
|
1213
|
+
type BLOCK_NUMBER$1 = number;
|
|
1214
|
+
type BLOCK_HASH$1 = FELT$1;
|
|
1215
|
+
type TXN_HASH$1 = FELT$1;
|
|
72
1216
|
type CHAIN_ID = NUM_AS_HEX;
|
|
73
1217
|
type STRUCT_ABI_TYPE = 'struct';
|
|
74
1218
|
type EVENT_ABI_TYPE = 'event';
|
|
@@ -76,7 +1220,7 @@ type FUNCTION_ABI_TYPE = 'function' | 'l1_handler' | 'constructor';
|
|
|
76
1220
|
type ENTRY_POINT_TYPE = 'EXTERNAL' | 'L1_HANDLER' | 'CONSTRUCTOR';
|
|
77
1221
|
type CALL_TYPE = 'DELEGATE' | 'LIBRARY_CALL' | 'CALL';
|
|
78
1222
|
type TXN_STATUS = 'RECEIVED' | 'REJECTED' | 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1';
|
|
79
|
-
type SIMULATION_FLAG$
|
|
1223
|
+
type SIMULATION_FLAG$2 = 'SKIP_VALIDATE' | 'SKIP_FEE_CHARGE';
|
|
80
1224
|
type DA_MODE = 'L1' | 'L2';
|
|
81
1225
|
type TXN_TYPE = 'DECLARE' | 'DEPLOY' | 'DEPLOY_ACCOUNT' | 'INVOKE' | 'L1_HANDLER';
|
|
82
1226
|
type TXN_FINALITY_STATUS = 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1';
|
|
@@ -94,91 +1238,100 @@ type RESULT_PAGE_REQUEST = {
|
|
|
94
1238
|
continuation_token?: string;
|
|
95
1239
|
chunk_size: number;
|
|
96
1240
|
};
|
|
97
|
-
type EMITTED_EVENT = EVENT
|
|
98
|
-
block_hash: BLOCK_HASH;
|
|
99
|
-
block_number: BLOCK_NUMBER;
|
|
100
|
-
transaction_hash: TXN_HASH;
|
|
1241
|
+
type EMITTED_EVENT = EVENT & {
|
|
1242
|
+
block_hash: BLOCK_HASH$1;
|
|
1243
|
+
block_number: BLOCK_NUMBER$1;
|
|
1244
|
+
transaction_hash: TXN_HASH$1;
|
|
101
1245
|
};
|
|
102
|
-
type EVENT
|
|
1246
|
+
type EVENT = {
|
|
103
1247
|
from_address: ADDRESS;
|
|
104
1248
|
} & EVENT_CONTENT;
|
|
105
1249
|
type EVENT_CONTENT = {
|
|
106
|
-
keys: FELT[];
|
|
107
|
-
data: FELT[];
|
|
1250
|
+
keys: FELT$1[];
|
|
1251
|
+
data: FELT$1[];
|
|
108
1252
|
};
|
|
109
1253
|
type EVENT_FILTER = {
|
|
110
1254
|
from_block?: BLOCK_ID;
|
|
111
1255
|
to_block?: BLOCK_ID;
|
|
112
1256
|
address?: ADDRESS;
|
|
113
|
-
keys?: FELT[][];
|
|
1257
|
+
keys?: FELT$1[][];
|
|
114
1258
|
};
|
|
115
1259
|
type BLOCK_ID = {
|
|
116
|
-
block_hash?: BLOCK_HASH;
|
|
117
|
-
block_number?: BLOCK_NUMBER;
|
|
1260
|
+
block_hash?: BLOCK_HASH$1;
|
|
1261
|
+
block_number?: BLOCK_NUMBER$1;
|
|
118
1262
|
} | BLOCK_TAG;
|
|
119
1263
|
type SYNC_STATUS = {
|
|
120
|
-
starting_block_hash: BLOCK_HASH;
|
|
121
|
-
starting_block_num: BLOCK_NUMBER;
|
|
122
|
-
current_block_hash: BLOCK_HASH;
|
|
123
|
-
current_block_num: BLOCK_NUMBER;
|
|
124
|
-
highest_block_hash: BLOCK_HASH;
|
|
125
|
-
highest_block_num: BLOCK_NUMBER;
|
|
1264
|
+
starting_block_hash: BLOCK_HASH$1;
|
|
1265
|
+
starting_block_num: BLOCK_NUMBER$1;
|
|
1266
|
+
current_block_hash: BLOCK_HASH$1;
|
|
1267
|
+
current_block_num: BLOCK_NUMBER$1;
|
|
1268
|
+
highest_block_hash: BLOCK_HASH$1;
|
|
1269
|
+
highest_block_num: BLOCK_NUMBER$1;
|
|
126
1270
|
};
|
|
127
1271
|
type NEW_CLASSES = {
|
|
128
|
-
class_hash: FELT;
|
|
129
|
-
compiled_class_hash: FELT;
|
|
1272
|
+
class_hash: FELT$1;
|
|
1273
|
+
compiled_class_hash: FELT$1;
|
|
130
1274
|
};
|
|
131
1275
|
type REPLACED_CLASS = {
|
|
132
|
-
class_hash: FELT;
|
|
133
|
-
contract_address: FELT;
|
|
1276
|
+
class_hash: FELT$1;
|
|
1277
|
+
contract_address: FELT$1;
|
|
134
1278
|
};
|
|
135
1279
|
type NONCE_UPDATE = {
|
|
136
1280
|
contract_address: ADDRESS;
|
|
137
|
-
nonce: FELT;
|
|
1281
|
+
nonce: FELT$1;
|
|
138
1282
|
};
|
|
139
1283
|
type STATE_DIFF = {
|
|
140
1284
|
storage_diffs: CONTRACT_STORAGE_DIFF_ITEM[];
|
|
141
|
-
deprecated_declared_classes: FELT[];
|
|
1285
|
+
deprecated_declared_classes: FELT$1[];
|
|
142
1286
|
declared_classes: NEW_CLASSES[];
|
|
143
1287
|
deployed_contracts: DEPLOYED_CONTRACT_ITEM[];
|
|
144
1288
|
replaced_classes: REPLACED_CLASS[];
|
|
145
1289
|
nonces: NONCE_UPDATE[];
|
|
146
1290
|
};
|
|
147
|
-
type PENDING_STATE_UPDATE = {
|
|
148
|
-
old_root: FELT;
|
|
1291
|
+
type PENDING_STATE_UPDATE$1 = {
|
|
1292
|
+
old_root: FELT$1;
|
|
149
1293
|
state_diff: STATE_DIFF;
|
|
150
1294
|
block_hash: never;
|
|
151
1295
|
};
|
|
152
|
-
type STATE_UPDATE = {
|
|
153
|
-
block_hash: BLOCK_HASH;
|
|
154
|
-
old_root: FELT;
|
|
155
|
-
new_root: FELT;
|
|
1296
|
+
type STATE_UPDATE$1 = {
|
|
1297
|
+
block_hash: BLOCK_HASH$1;
|
|
1298
|
+
old_root: FELT$1;
|
|
1299
|
+
new_root: FELT$1;
|
|
156
1300
|
state_diff: STATE_DIFF;
|
|
157
1301
|
};
|
|
158
1302
|
type BLOCK_BODY_WITH_TX_HASHES = {
|
|
159
|
-
transactions: TXN_HASH[];
|
|
1303
|
+
transactions: TXN_HASH$1[];
|
|
160
1304
|
};
|
|
161
1305
|
type BLOCK_BODY_WITH_TXS = {
|
|
1306
|
+
transactions: (TXN & {
|
|
1307
|
+
transaction_hash: TXN_HASH$1;
|
|
1308
|
+
})[];
|
|
1309
|
+
};
|
|
1310
|
+
type BLOCK_BODY_WITH_RECEIPTS = {
|
|
162
1311
|
transactions: {
|
|
163
1312
|
transaction: TXN;
|
|
164
|
-
|
|
1313
|
+
receipt: TXN_RECEIPT;
|
|
165
1314
|
}[];
|
|
166
1315
|
};
|
|
167
1316
|
type BLOCK_HEADER = {
|
|
168
|
-
block_hash: BLOCK_HASH;
|
|
169
|
-
parent_hash: BLOCK_HASH;
|
|
170
|
-
block_number: BLOCK_NUMBER;
|
|
171
|
-
new_root: FELT;
|
|
1317
|
+
block_hash: BLOCK_HASH$1;
|
|
1318
|
+
parent_hash: BLOCK_HASH$1;
|
|
1319
|
+
block_number: BLOCK_NUMBER$1;
|
|
1320
|
+
new_root: FELT$1;
|
|
172
1321
|
timestamp: number;
|
|
173
|
-
sequencer_address: FELT;
|
|
174
|
-
l1_gas_price: RESOURCE_PRICE;
|
|
1322
|
+
sequencer_address: FELT$1;
|
|
1323
|
+
l1_gas_price: RESOURCE_PRICE$1;
|
|
1324
|
+
l1_data_gas_price: RESOURCE_PRICE$1;
|
|
1325
|
+
l1_da_mode: 'BLOB' | 'CALLDATA';
|
|
175
1326
|
starknet_version: string;
|
|
176
1327
|
};
|
|
177
1328
|
type PENDING_BLOCK_HEADER = {
|
|
178
|
-
parent_hash: BLOCK_HASH;
|
|
1329
|
+
parent_hash: BLOCK_HASH$1;
|
|
179
1330
|
timestamp: number;
|
|
180
|
-
sequencer_address: FELT;
|
|
181
|
-
l1_gas_price: RESOURCE_PRICE;
|
|
1331
|
+
sequencer_address: FELT$1;
|
|
1332
|
+
l1_gas_price: RESOURCE_PRICE$1;
|
|
1333
|
+
l1_data_gas_price: RESOURCE_PRICE$1;
|
|
1334
|
+
l1_da_mode: 'BLOB' | 'CALLDATA';
|
|
182
1335
|
starknet_version: string;
|
|
183
1336
|
};
|
|
184
1337
|
type BLOCK_WITH_TX_HASHES = {
|
|
@@ -187,11 +1340,15 @@ type BLOCK_WITH_TX_HASHES = {
|
|
|
187
1340
|
type BLOCK_WITH_TXS = {
|
|
188
1341
|
status: BLOCK_STATUS;
|
|
189
1342
|
} & BLOCK_HEADER & BLOCK_BODY_WITH_TXS;
|
|
1343
|
+
type BLOCK_WITH_RECEIPTS = {
|
|
1344
|
+
status: BLOCK_STATUS;
|
|
1345
|
+
} & BLOCK_HEADER & BLOCK_BODY_WITH_RECEIPTS;
|
|
190
1346
|
type PENDING_BLOCK_WITH_TX_HASHES = BLOCK_BODY_WITH_TX_HASHES & PENDING_BLOCK_HEADER;
|
|
191
1347
|
type PENDING_BLOCK_WITH_TXS = BLOCK_BODY_WITH_TXS & PENDING_BLOCK_HEADER;
|
|
1348
|
+
type PENDING_BLOCK_WITH_RECEIPTS = BLOCK_BODY_WITH_RECEIPTS & PENDING_BLOCK_HEADER;
|
|
192
1349
|
type DEPLOYED_CONTRACT_ITEM = {
|
|
193
|
-
address: FELT;
|
|
194
|
-
class_hash: FELT;
|
|
1350
|
+
address: FELT$1;
|
|
1351
|
+
class_hash: FELT$1;
|
|
195
1352
|
};
|
|
196
1353
|
type CONTRACT_STORAGE_DIFF_ITEM = {
|
|
197
1354
|
address: string;
|
|
@@ -206,42 +1363,42 @@ type DECLARE_TXN = DECLARE_TXN_V0 | DECLARE_TXN_V1 | DECLARE_TXN_V2 | DECLARE_TX
|
|
|
206
1363
|
type DECLARE_TXN_V0 = {
|
|
207
1364
|
type: 'DECLARE';
|
|
208
1365
|
sender_address: ADDRESS;
|
|
209
|
-
max_fee: FELT;
|
|
1366
|
+
max_fee: FELT$1;
|
|
210
1367
|
version: '0x0' | '0x100000000000000000000000000000000';
|
|
211
1368
|
signature: SIGNATURE;
|
|
212
|
-
class_hash: FELT;
|
|
1369
|
+
class_hash: FELT$1;
|
|
213
1370
|
};
|
|
214
1371
|
type DECLARE_TXN_V1 = {
|
|
215
1372
|
type: 'DECLARE';
|
|
216
1373
|
sender_address: ADDRESS;
|
|
217
|
-
max_fee: FELT;
|
|
1374
|
+
max_fee: FELT$1;
|
|
218
1375
|
version: '0x1' | '0x100000000000000000000000000000001';
|
|
219
1376
|
signature: SIGNATURE;
|
|
220
|
-
nonce: FELT;
|
|
221
|
-
class_hash: FELT;
|
|
1377
|
+
nonce: FELT$1;
|
|
1378
|
+
class_hash: FELT$1;
|
|
222
1379
|
};
|
|
223
1380
|
type DECLARE_TXN_V2 = {
|
|
224
1381
|
type: 'DECLARE';
|
|
225
1382
|
sender_address: ADDRESS;
|
|
226
|
-
compiled_class_hash: FELT;
|
|
227
|
-
max_fee: FELT;
|
|
1383
|
+
compiled_class_hash: FELT$1;
|
|
1384
|
+
max_fee: FELT$1;
|
|
228
1385
|
version: '0x2' | '0x100000000000000000000000000000002';
|
|
229
1386
|
signature: SIGNATURE;
|
|
230
|
-
nonce: FELT;
|
|
231
|
-
class_hash: FELT;
|
|
1387
|
+
nonce: FELT$1;
|
|
1388
|
+
class_hash: FELT$1;
|
|
232
1389
|
};
|
|
233
1390
|
type DECLARE_TXN_V3 = {
|
|
234
1391
|
type: 'DECLARE';
|
|
235
1392
|
sender_address: ADDRESS;
|
|
236
|
-
compiled_class_hash: FELT;
|
|
1393
|
+
compiled_class_hash: FELT$1;
|
|
237
1394
|
version: '0x3' | '0x100000000000000000000000000000003';
|
|
238
1395
|
signature: SIGNATURE;
|
|
239
|
-
nonce: FELT;
|
|
240
|
-
class_hash: FELT;
|
|
1396
|
+
nonce: FELT$1;
|
|
1397
|
+
class_hash: FELT$1;
|
|
241
1398
|
resource_bounds: RESOURCE_BOUNDS_MAPPING;
|
|
242
1399
|
tip: u64;
|
|
243
|
-
paymaster_data: FELT[];
|
|
244
|
-
account_deployment_data: FELT[];
|
|
1400
|
+
paymaster_data: FELT$1[];
|
|
1401
|
+
account_deployment_data: FELT$1[];
|
|
245
1402
|
nonce_data_availability_mode: DA_MODE;
|
|
246
1403
|
fee_data_availability_mode: DA_MODE;
|
|
247
1404
|
};
|
|
@@ -252,181 +1409,158 @@ type BROADCASTED_DECLARE_TXN = BROADCASTED_DECLARE_TXN_V1 | BROADCASTED_DECLARE_
|
|
|
252
1409
|
type BROADCASTED_DECLARE_TXN_V1 = {
|
|
253
1410
|
type: 'DECLARE';
|
|
254
1411
|
sender_address: ADDRESS;
|
|
255
|
-
max_fee: FELT;
|
|
1412
|
+
max_fee: FELT$1;
|
|
256
1413
|
version: '0x1' | '0x100000000000000000000000000000001';
|
|
257
1414
|
signature: SIGNATURE;
|
|
258
|
-
nonce: FELT;
|
|
1415
|
+
nonce: FELT$1;
|
|
259
1416
|
contract_class: DEPRECATED_CONTRACT_CLASS;
|
|
260
1417
|
};
|
|
261
1418
|
type BROADCASTED_DECLARE_TXN_V2 = {
|
|
262
1419
|
type: 'DECLARE';
|
|
263
1420
|
sender_address: ADDRESS;
|
|
264
|
-
compiled_class_hash: FELT;
|
|
265
|
-
max_fee: FELT;
|
|
1421
|
+
compiled_class_hash: FELT$1;
|
|
1422
|
+
max_fee: FELT$1;
|
|
266
1423
|
version: '0x2' | '0x100000000000000000000000000000002';
|
|
267
1424
|
signature: SIGNATURE;
|
|
268
|
-
nonce: FELT;
|
|
1425
|
+
nonce: FELT$1;
|
|
269
1426
|
contract_class: CONTRACT_CLASS;
|
|
270
1427
|
};
|
|
271
1428
|
type BROADCASTED_DECLARE_TXN_V3 = {
|
|
272
1429
|
type: 'DECLARE';
|
|
273
1430
|
sender_address: ADDRESS;
|
|
274
|
-
compiled_class_hash: FELT;
|
|
1431
|
+
compiled_class_hash: FELT$1;
|
|
275
1432
|
version: '0x3' | '0x100000000000000000000000000000003';
|
|
276
1433
|
signature: SIGNATURE;
|
|
277
|
-
nonce: FELT;
|
|
1434
|
+
nonce: FELT$1;
|
|
278
1435
|
contract_class: CONTRACT_CLASS;
|
|
279
1436
|
resource_bounds: RESOURCE_BOUNDS_MAPPING;
|
|
280
1437
|
tip: u64;
|
|
281
|
-
paymaster_data: FELT[];
|
|
282
|
-
account_deployment_data: FELT[];
|
|
1438
|
+
paymaster_data: FELT$1[];
|
|
1439
|
+
account_deployment_data: FELT$1[];
|
|
283
1440
|
nonce_data_availability_mode: DA_MODE;
|
|
284
1441
|
fee_data_availability_mode: DA_MODE;
|
|
285
1442
|
};
|
|
286
1443
|
type DEPLOY_ACCOUNT_TXN = DEPLOY_ACCOUNT_TXN_V1 | DEPLOY_ACCOUNT_TXN_V3;
|
|
287
1444
|
type DEPLOY_ACCOUNT_TXN_V1 = {
|
|
288
1445
|
type: 'DEPLOY_ACCOUNT';
|
|
289
|
-
max_fee: FELT;
|
|
1446
|
+
max_fee: FELT$1;
|
|
290
1447
|
version: '0x1' | '0x100000000000000000000000000000001';
|
|
291
1448
|
signature: SIGNATURE;
|
|
292
|
-
nonce: FELT;
|
|
293
|
-
contract_address_salt: FELT;
|
|
294
|
-
constructor_calldata: FELT[];
|
|
295
|
-
class_hash: FELT;
|
|
1449
|
+
nonce: FELT$1;
|
|
1450
|
+
contract_address_salt: FELT$1;
|
|
1451
|
+
constructor_calldata: FELT$1[];
|
|
1452
|
+
class_hash: FELT$1;
|
|
296
1453
|
};
|
|
297
1454
|
type DEPLOY_ACCOUNT_TXN_V3 = {
|
|
298
1455
|
type: 'DEPLOY_ACCOUNT';
|
|
299
1456
|
version: '0x3' | '0x100000000000000000000000000000003';
|
|
300
1457
|
signature: SIGNATURE;
|
|
301
|
-
nonce: FELT;
|
|
302
|
-
contract_address_salt: FELT;
|
|
303
|
-
constructor_calldata: FELT[];
|
|
304
|
-
class_hash: FELT;
|
|
1458
|
+
nonce: FELT$1;
|
|
1459
|
+
contract_address_salt: FELT$1;
|
|
1460
|
+
constructor_calldata: FELT$1[];
|
|
1461
|
+
class_hash: FELT$1;
|
|
305
1462
|
resource_bounds: RESOURCE_BOUNDS_MAPPING;
|
|
306
1463
|
tip: u64;
|
|
307
|
-
paymaster_data: FELT[];
|
|
1464
|
+
paymaster_data: FELT$1[];
|
|
308
1465
|
nonce_data_availability_mode: DA_MODE;
|
|
309
1466
|
fee_data_availability_mode: DA_MODE;
|
|
310
1467
|
};
|
|
311
1468
|
type DEPLOY_TXN = {
|
|
312
1469
|
type: 'DEPLOY';
|
|
313
|
-
version: FELT;
|
|
314
|
-
contract_address_salt: FELT;
|
|
315
|
-
constructor_calldata: FELT[];
|
|
316
|
-
class_hash: FELT;
|
|
1470
|
+
version: FELT$1;
|
|
1471
|
+
contract_address_salt: FELT$1;
|
|
1472
|
+
constructor_calldata: FELT$1[];
|
|
1473
|
+
class_hash: FELT$1;
|
|
317
1474
|
};
|
|
318
1475
|
type INVOKE_TXN = INVOKE_TXN_V0 | INVOKE_TXN_V1 | INVOKE_TXN_V3;
|
|
319
1476
|
type INVOKE_TXN_V0 = {
|
|
320
1477
|
type: 'INVOKE';
|
|
321
|
-
max_fee: FELT;
|
|
1478
|
+
max_fee: FELT$1;
|
|
322
1479
|
version: '0x0' | '0x100000000000000000000000000000000';
|
|
323
1480
|
signature: SIGNATURE;
|
|
324
1481
|
contract_address: ADDRESS;
|
|
325
|
-
entry_point_selector: FELT;
|
|
326
|
-
calldata: FELT[];
|
|
1482
|
+
entry_point_selector: FELT$1;
|
|
1483
|
+
calldata: FELT$1[];
|
|
327
1484
|
};
|
|
328
1485
|
type INVOKE_TXN_V1 = {
|
|
329
1486
|
type: 'INVOKE';
|
|
330
1487
|
sender_address: ADDRESS;
|
|
331
|
-
calldata: FELT[];
|
|
332
|
-
max_fee: FELT;
|
|
1488
|
+
calldata: FELT$1[];
|
|
1489
|
+
max_fee: FELT$1;
|
|
333
1490
|
version: '0x1' | '0x100000000000000000000000000000001';
|
|
334
1491
|
signature: SIGNATURE;
|
|
335
|
-
nonce: FELT;
|
|
1492
|
+
nonce: FELT$1;
|
|
336
1493
|
};
|
|
337
1494
|
type INVOKE_TXN_V3 = {
|
|
338
1495
|
type: 'INVOKE';
|
|
339
1496
|
sender_address: ADDRESS;
|
|
340
|
-
calldata: FELT[];
|
|
1497
|
+
calldata: FELT$1[];
|
|
341
1498
|
version: '0x3' | '0x100000000000000000000000000000003';
|
|
342
1499
|
signature: SIGNATURE;
|
|
343
|
-
nonce: FELT;
|
|
1500
|
+
nonce: FELT$1;
|
|
344
1501
|
resource_bounds: RESOURCE_BOUNDS_MAPPING;
|
|
345
1502
|
tip: u64;
|
|
346
|
-
paymaster_data: FELT[];
|
|
347
|
-
account_deployment_data: FELT[];
|
|
1503
|
+
paymaster_data: FELT$1[];
|
|
1504
|
+
account_deployment_data: FELT$1[];
|
|
348
1505
|
nonce_data_availability_mode: DA_MODE;
|
|
349
1506
|
fee_data_availability_mode: DA_MODE;
|
|
350
1507
|
};
|
|
351
1508
|
type L1_HANDLER_TXN = {
|
|
352
|
-
version:
|
|
1509
|
+
version: '0x0';
|
|
353
1510
|
type: 'L1_HANDLER';
|
|
354
1511
|
nonce: NUM_AS_HEX;
|
|
355
1512
|
} & FUNCTION_CALL;
|
|
356
1513
|
type COMMON_RECEIPT_PROPERTIES = {
|
|
357
|
-
transaction_hash: TXN_HASH;
|
|
1514
|
+
transaction_hash: TXN_HASH$1;
|
|
358
1515
|
actual_fee: FEE_PAYMENT;
|
|
359
1516
|
execution_status: TXN_EXECUTION_STATUS;
|
|
360
1517
|
finality_status: TXN_FINALITY_STATUS;
|
|
361
|
-
block_hash: BLOCK_HASH;
|
|
362
|
-
block_number: BLOCK_NUMBER;
|
|
363
|
-
messages_sent: MSG_TO_L1[];
|
|
364
|
-
revert_reason?: string;
|
|
365
|
-
events: EVENT$1[];
|
|
366
|
-
execution_resources: EXECUTION_RESOURCES;
|
|
367
|
-
};
|
|
368
|
-
type PENDING_COMMON_RECEIPT_PROPERTIES = {
|
|
369
|
-
transaction_hash: TXN_HASH;
|
|
370
|
-
actual_fee: FEE_PAYMENT;
|
|
371
1518
|
messages_sent: MSG_TO_L1[];
|
|
372
|
-
events: EVENT$1[];
|
|
373
1519
|
revert_reason?: string;
|
|
374
|
-
|
|
375
|
-
execution_status: TXN_EXECUTION_STATUS;
|
|
1520
|
+
events: EVENT[];
|
|
376
1521
|
execution_resources: EXECUTION_RESOURCES;
|
|
377
1522
|
};
|
|
378
|
-
type INVOKE_TXN_RECEIPT = {
|
|
1523
|
+
type INVOKE_TXN_RECEIPT$1 = {
|
|
379
1524
|
type: 'INVOKE';
|
|
380
1525
|
} & COMMON_RECEIPT_PROPERTIES;
|
|
381
|
-
type
|
|
382
|
-
type: 'INVOKE';
|
|
383
|
-
} & PENDING_COMMON_RECEIPT_PROPERTIES;
|
|
384
|
-
type DECLARE_TXN_RECEIPT = {
|
|
1526
|
+
type DECLARE_TXN_RECEIPT$1 = {
|
|
385
1527
|
type: 'DECLARE';
|
|
386
1528
|
} & COMMON_RECEIPT_PROPERTIES;
|
|
387
|
-
type
|
|
388
|
-
type: 'DECLARE';
|
|
389
|
-
} & PENDING_COMMON_RECEIPT_PROPERTIES;
|
|
390
|
-
type DEPLOY_ACCOUNT_TXN_RECEIPT = {
|
|
1529
|
+
type DEPLOY_ACCOUNT_TXN_RECEIPT$1 = {
|
|
391
1530
|
type: 'DEPLOY_ACCOUNT';
|
|
392
|
-
contract_address: FELT;
|
|
1531
|
+
contract_address: FELT$1;
|
|
393
1532
|
} & COMMON_RECEIPT_PROPERTIES;
|
|
394
|
-
type PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT = {
|
|
395
|
-
type: 'DEPLOY_ACCOUNT';
|
|
396
|
-
contract_address: FELT;
|
|
397
|
-
} & PENDING_COMMON_RECEIPT_PROPERTIES;
|
|
398
1533
|
type DEPLOY_TXN_RECEIPT = {
|
|
399
1534
|
type: 'DEPLOY';
|
|
400
|
-
contract_address: FELT;
|
|
1535
|
+
contract_address: FELT$1;
|
|
401
1536
|
} & COMMON_RECEIPT_PROPERTIES;
|
|
402
|
-
type L1_HANDLER_TXN_RECEIPT = {
|
|
1537
|
+
type L1_HANDLER_TXN_RECEIPT$1 = {
|
|
403
1538
|
type: 'L1_HANDLER';
|
|
404
1539
|
message_hash: NUM_AS_HEX;
|
|
405
1540
|
} & COMMON_RECEIPT_PROPERTIES;
|
|
406
|
-
type
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
type PENDING_TXN_RECEIPT = PENDING_INVOKE_TXN_RECEIPT | PENDING_L1_HANDLER_TXN_RECEIPT | PENDING_DECLARE_TXN_RECEIPT | PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT;
|
|
1541
|
+
type TXN_RECEIPT = INVOKE_TXN_RECEIPT$1 | L1_HANDLER_TXN_RECEIPT$1 | DECLARE_TXN_RECEIPT$1 | DEPLOY_TXN_RECEIPT | DEPLOY_ACCOUNT_TXN_RECEIPT$1;
|
|
1542
|
+
type TXN_RECEIPT_WITH_BLOCK_INFO = TXN_RECEIPT & {
|
|
1543
|
+
block_hash?: BLOCK_HASH$1;
|
|
1544
|
+
block_number?: BLOCK_NUMBER$1;
|
|
1545
|
+
};
|
|
412
1546
|
type MSG_TO_L1 = {
|
|
413
|
-
from_address: FELT;
|
|
414
|
-
to_address: FELT;
|
|
415
|
-
payload: FELT[];
|
|
1547
|
+
from_address: FELT$1;
|
|
1548
|
+
to_address: FELT$1;
|
|
1549
|
+
payload: FELT$1[];
|
|
416
1550
|
};
|
|
417
1551
|
type MSG_FROM_L1 = {
|
|
418
1552
|
from_address: ETH_ADDRESS;
|
|
419
1553
|
to_address: ADDRESS;
|
|
420
|
-
entry_point_selector: FELT;
|
|
421
|
-
payload: FELT[];
|
|
1554
|
+
entry_point_selector: FELT$1;
|
|
1555
|
+
payload: FELT$1[];
|
|
422
1556
|
};
|
|
423
1557
|
type FUNCTION_CALL = {
|
|
424
1558
|
contract_address: ADDRESS;
|
|
425
|
-
entry_point_selector: FELT;
|
|
426
|
-
calldata: FELT[];
|
|
1559
|
+
entry_point_selector: FELT$1;
|
|
1560
|
+
calldata: FELT$1[];
|
|
427
1561
|
};
|
|
428
1562
|
type CONTRACT_CLASS = {
|
|
429
|
-
sierra_program: FELT[];
|
|
1563
|
+
sierra_program: FELT$1[];
|
|
430
1564
|
contract_class_version: string;
|
|
431
1565
|
entry_points_by_type: {
|
|
432
1566
|
CONSTRUCTOR: SIERRA_ENTRY_POINT[];
|
|
@@ -446,15 +1580,15 @@ type DEPRECATED_CONTRACT_CLASS = {
|
|
|
446
1580
|
};
|
|
447
1581
|
type DEPRECATED_CAIRO_ENTRY_POINT = {
|
|
448
1582
|
offset: NUM_AS_HEX | number;
|
|
449
|
-
selector: FELT;
|
|
1583
|
+
selector: FELT$1;
|
|
450
1584
|
};
|
|
451
1585
|
type SIERRA_ENTRY_POINT = {
|
|
452
|
-
selector: FELT;
|
|
1586
|
+
selector: FELT$1;
|
|
453
1587
|
function_idx: number;
|
|
454
1588
|
};
|
|
455
1589
|
type CONTRACT_ABI = readonly CONTRACT_ABI_ENTRY[];
|
|
456
1590
|
type CONTRACT_ABI_ENTRY = {
|
|
457
|
-
selector: FELT;
|
|
1591
|
+
selector: FELT$1;
|
|
458
1592
|
input: string;
|
|
459
1593
|
output: string;
|
|
460
1594
|
};
|
|
@@ -486,16 +1620,18 @@ type TYPED_PARAMETER = {
|
|
|
486
1620
|
type: string;
|
|
487
1621
|
};
|
|
488
1622
|
type SIMULATION_FLAG_FOR_ESTIMATE_FEE = 'SKIP_VALIDATE';
|
|
489
|
-
type PRICE_UNIT = 'WEI' | 'FRI';
|
|
1623
|
+
type PRICE_UNIT$1 = 'WEI' | 'FRI';
|
|
490
1624
|
type FEE_ESTIMATE = {
|
|
491
|
-
gas_consumed: FELT;
|
|
492
|
-
gas_price: FELT;
|
|
493
|
-
|
|
494
|
-
|
|
1625
|
+
gas_consumed: FELT$1;
|
|
1626
|
+
gas_price: FELT$1;
|
|
1627
|
+
data_gas_consumed: FELT$1;
|
|
1628
|
+
data_gas_price: FELT$1;
|
|
1629
|
+
overall_fee: FELT$1;
|
|
1630
|
+
unit: PRICE_UNIT$1;
|
|
495
1631
|
};
|
|
496
1632
|
type FEE_PAYMENT = {
|
|
497
|
-
amount: FELT;
|
|
498
|
-
unit: PRICE_UNIT;
|
|
1633
|
+
amount: FELT$1;
|
|
1634
|
+
unit: PRICE_UNIT$1;
|
|
499
1635
|
};
|
|
500
1636
|
type RESOURCE_BOUNDS_MAPPING = {
|
|
501
1637
|
l1_gas: RESOURCE_BOUNDS;
|
|
@@ -505,11 +1641,11 @@ type RESOURCE_BOUNDS = {
|
|
|
505
1641
|
max_amount: u64;
|
|
506
1642
|
max_price_per_unit: u128;
|
|
507
1643
|
};
|
|
508
|
-
type RESOURCE_PRICE = {
|
|
509
|
-
price_in_fri: FELT;
|
|
510
|
-
price_in_wei: FELT;
|
|
1644
|
+
type RESOURCE_PRICE$1 = {
|
|
1645
|
+
price_in_fri: FELT$1;
|
|
1646
|
+
price_in_wei: FELT$1;
|
|
511
1647
|
};
|
|
512
|
-
type
|
|
1648
|
+
type COMPUTATION_RESOURCES = {
|
|
513
1649
|
steps: number;
|
|
514
1650
|
memory_holes?: number;
|
|
515
1651
|
range_check_builtin_applications?: number;
|
|
@@ -521,6 +1657,12 @@ type EXECUTION_RESOURCES = {
|
|
|
521
1657
|
keccak_builtin_applications?: number;
|
|
522
1658
|
segment_arena_builtin?: number;
|
|
523
1659
|
};
|
|
1660
|
+
type EXECUTION_RESOURCES = COMPUTATION_RESOURCES & {
|
|
1661
|
+
data_availability: {
|
|
1662
|
+
l1_gas: number;
|
|
1663
|
+
l1_data_gas: number;
|
|
1664
|
+
};
|
|
1665
|
+
};
|
|
524
1666
|
/**
|
|
525
1667
|
* TRACE API
|
|
526
1668
|
*/
|
|
@@ -538,12 +1680,14 @@ type INVOKE_TXN_TRACE = {
|
|
|
538
1680
|
validate_invocation?: FUNCTION_INVOCATION;
|
|
539
1681
|
fee_transfer_invocation?: FUNCTION_INVOCATION;
|
|
540
1682
|
state_diff?: STATE_DIFF;
|
|
1683
|
+
execution_resources: EXECUTION_RESOURCES;
|
|
541
1684
|
};
|
|
542
1685
|
type DECLARE_TXN_TRACE = {
|
|
543
1686
|
type: 'DECLARE';
|
|
544
1687
|
validate_invocation?: FUNCTION_INVOCATION;
|
|
545
1688
|
fee_transfer_invocation?: FUNCTION_INVOCATION;
|
|
546
1689
|
state_diff?: STATE_DIFF;
|
|
1690
|
+
execution_resources: EXECUTION_RESOURCES;
|
|
547
1691
|
};
|
|
548
1692
|
type DEPLOY_ACCOUNT_TXN_TRACE = {
|
|
549
1693
|
type: 'DEPLOY_ACCOUNT';
|
|
@@ -551,6 +1695,7 @@ type DEPLOY_ACCOUNT_TXN_TRACE = {
|
|
|
551
1695
|
validate_invocation?: FUNCTION_INVOCATION;
|
|
552
1696
|
fee_transfer_invocation?: FUNCTION_INVOCATION;
|
|
553
1697
|
state_diff?: STATE_DIFF;
|
|
1698
|
+
execution_resources: EXECUTION_RESOURCES;
|
|
554
1699
|
};
|
|
555
1700
|
type L1_HANDLER_TXN_TRACE = {
|
|
556
1701
|
type: 'L1_HANDLER';
|
|
@@ -558,8 +1703,7 @@ type L1_HANDLER_TXN_TRACE = {
|
|
|
558
1703
|
state_diff?: STATE_DIFF;
|
|
559
1704
|
};
|
|
560
1705
|
type NESTED_CALL = FUNCTION_INVOCATION;
|
|
561
|
-
type FUNCTION_INVOCATION = {
|
|
562
|
-
function_call: FUNCTION_CALL;
|
|
1706
|
+
type FUNCTION_INVOCATION = FUNCTION_CALL & {
|
|
563
1707
|
caller_address: string;
|
|
564
1708
|
class_hash: string;
|
|
565
1709
|
entry_point_type: ENTRY_POINT_TYPE;
|
|
@@ -568,11 +1712,11 @@ type FUNCTION_INVOCATION = {
|
|
|
568
1712
|
calls: NESTED_CALL[];
|
|
569
1713
|
events: ORDERED_EVENT[];
|
|
570
1714
|
messages: ORDERED_MESSAGE[];
|
|
571
|
-
execution_resources:
|
|
1715
|
+
execution_resources: COMPUTATION_RESOURCES;
|
|
572
1716
|
};
|
|
573
1717
|
type ORDERED_EVENT = {
|
|
574
1718
|
order: number;
|
|
575
|
-
event: EVENT
|
|
1719
|
+
event: EVENT;
|
|
576
1720
|
};
|
|
577
1721
|
type ORDERED_MESSAGE = {
|
|
578
1722
|
order: number;
|
|
@@ -580,14 +1724,14 @@ type ORDERED_MESSAGE = {
|
|
|
580
1724
|
};
|
|
581
1725
|
|
|
582
1726
|
type components_ADDRESS = ADDRESS;
|
|
1727
|
+
type components_BLOCK_BODY_WITH_RECEIPTS = BLOCK_BODY_WITH_RECEIPTS;
|
|
583
1728
|
type components_BLOCK_BODY_WITH_TXS = BLOCK_BODY_WITH_TXS;
|
|
584
1729
|
type components_BLOCK_BODY_WITH_TX_HASHES = BLOCK_BODY_WITH_TX_HASHES;
|
|
585
|
-
type components_BLOCK_HASH = BLOCK_HASH;
|
|
586
1730
|
type components_BLOCK_HEADER = BLOCK_HEADER;
|
|
587
1731
|
type components_BLOCK_ID = BLOCK_ID;
|
|
588
|
-
type components_BLOCK_NUMBER = BLOCK_NUMBER;
|
|
589
1732
|
type components_BLOCK_STATUS = BLOCK_STATUS;
|
|
590
1733
|
type components_BLOCK_TAG = BLOCK_TAG;
|
|
1734
|
+
type components_BLOCK_WITH_RECEIPTS = BLOCK_WITH_RECEIPTS;
|
|
591
1735
|
type components_BLOCK_WITH_TXS = BLOCK_WITH_TXS;
|
|
592
1736
|
type components_BLOCK_WITH_TX_HASHES = BLOCK_WITH_TX_HASHES;
|
|
593
1737
|
type components_BROADCASTED_DECLARE_TXN = BROADCASTED_DECLARE_TXN;
|
|
@@ -600,13 +1744,13 @@ type components_BROADCASTED_TXN = BROADCASTED_TXN;
|
|
|
600
1744
|
type components_CALL_TYPE = CALL_TYPE;
|
|
601
1745
|
type components_CHAIN_ID = CHAIN_ID;
|
|
602
1746
|
type components_COMMON_RECEIPT_PROPERTIES = COMMON_RECEIPT_PROPERTIES;
|
|
1747
|
+
type components_COMPUTATION_RESOURCES = COMPUTATION_RESOURCES;
|
|
603
1748
|
type components_CONTRACT_ABI = CONTRACT_ABI;
|
|
604
1749
|
type components_CONTRACT_ABI_ENTRY = CONTRACT_ABI_ENTRY;
|
|
605
1750
|
type components_CONTRACT_CLASS = CONTRACT_CLASS;
|
|
606
1751
|
type components_CONTRACT_STORAGE_DIFF_ITEM = CONTRACT_STORAGE_DIFF_ITEM;
|
|
607
1752
|
type components_DA_MODE = DA_MODE;
|
|
608
1753
|
type components_DECLARE_TXN = DECLARE_TXN;
|
|
609
|
-
type components_DECLARE_TXN_RECEIPT = DECLARE_TXN_RECEIPT;
|
|
610
1754
|
type components_DECLARE_TXN_TRACE = DECLARE_TXN_TRACE;
|
|
611
1755
|
type components_DECLARE_TXN_V0 = DECLARE_TXN_V0;
|
|
612
1756
|
type components_DECLARE_TXN_V1 = DECLARE_TXN_V1;
|
|
@@ -614,7 +1758,6 @@ type components_DECLARE_TXN_V2 = DECLARE_TXN_V2;
|
|
|
614
1758
|
type components_DECLARE_TXN_V3 = DECLARE_TXN_V3;
|
|
615
1759
|
type components_DEPLOYED_CONTRACT_ITEM = DEPLOYED_CONTRACT_ITEM;
|
|
616
1760
|
type components_DEPLOY_ACCOUNT_TXN = DEPLOY_ACCOUNT_TXN;
|
|
617
|
-
type components_DEPLOY_ACCOUNT_TXN_RECEIPT = DEPLOY_ACCOUNT_TXN_RECEIPT;
|
|
618
1761
|
type components_DEPLOY_ACCOUNT_TXN_TRACE = DEPLOY_ACCOUNT_TXN_TRACE;
|
|
619
1762
|
type components_DEPLOY_ACCOUNT_TXN_V1 = DEPLOY_ACCOUNT_TXN_V1;
|
|
620
1763
|
type components_DEPLOY_ACCOUNT_TXN_V3 = DEPLOY_ACCOUNT_TXN_V3;
|
|
@@ -625,6 +1768,7 @@ type components_DEPRECATED_CONTRACT_CLASS = DEPRECATED_CONTRACT_CLASS;
|
|
|
625
1768
|
type components_EMITTED_EVENT = EMITTED_EVENT;
|
|
626
1769
|
type components_ENTRY_POINT_TYPE = ENTRY_POINT_TYPE;
|
|
627
1770
|
type components_ETH_ADDRESS = ETH_ADDRESS;
|
|
1771
|
+
type components_EVENT = EVENT;
|
|
628
1772
|
type components_EVENTS_CHUNK = EVENTS_CHUNK;
|
|
629
1773
|
type components_EVENT_ABI_ENTRY = EVENT_ABI_ENTRY;
|
|
630
1774
|
type components_EVENT_ABI_TYPE = EVENT_ABI_TYPE;
|
|
@@ -633,20 +1777,17 @@ type components_EVENT_FILTER = EVENT_FILTER;
|
|
|
633
1777
|
type components_EXECUTION_RESOURCES = EXECUTION_RESOURCES;
|
|
634
1778
|
type components_FEE_ESTIMATE = FEE_ESTIMATE;
|
|
635
1779
|
type components_FEE_PAYMENT = FEE_PAYMENT;
|
|
636
|
-
type components_FELT = FELT;
|
|
637
1780
|
type components_FUNCTION_ABI_ENTRY = FUNCTION_ABI_ENTRY;
|
|
638
1781
|
type components_FUNCTION_ABI_TYPE = FUNCTION_ABI_TYPE;
|
|
639
1782
|
type components_FUNCTION_CALL = FUNCTION_CALL;
|
|
640
1783
|
type components_FUNCTION_INVOCATION = FUNCTION_INVOCATION;
|
|
641
1784
|
type components_FUNCTION_STATE_MUTABILITY = FUNCTION_STATE_MUTABILITY;
|
|
642
1785
|
type components_INVOKE_TXN = INVOKE_TXN;
|
|
643
|
-
type components_INVOKE_TXN_RECEIPT = INVOKE_TXN_RECEIPT;
|
|
644
1786
|
type components_INVOKE_TXN_TRACE = INVOKE_TXN_TRACE;
|
|
645
1787
|
type components_INVOKE_TXN_V0 = INVOKE_TXN_V0;
|
|
646
1788
|
type components_INVOKE_TXN_V1 = INVOKE_TXN_V1;
|
|
647
1789
|
type components_INVOKE_TXN_V3 = INVOKE_TXN_V3;
|
|
648
1790
|
type components_L1_HANDLER_TXN = L1_HANDLER_TXN;
|
|
649
|
-
type components_L1_HANDLER_TXN_RECEIPT = L1_HANDLER_TXN_RECEIPT;
|
|
650
1791
|
type components_L1_HANDLER_TXN_TRACE = L1_HANDLER_TXN_TRACE;
|
|
651
1792
|
type components_MSG_FROM_L1 = MSG_FROM_L1;
|
|
652
1793
|
type components_MSG_TO_L1 = MSG_TO_L1;
|
|
@@ -657,26 +1798,17 @@ type components_NUM_AS_HEX = NUM_AS_HEX;
|
|
|
657
1798
|
type components_ORDERED_EVENT = ORDERED_EVENT;
|
|
658
1799
|
type components_ORDERED_MESSAGE = ORDERED_MESSAGE;
|
|
659
1800
|
type components_PENDING_BLOCK_HEADER = PENDING_BLOCK_HEADER;
|
|
1801
|
+
type components_PENDING_BLOCK_WITH_RECEIPTS = PENDING_BLOCK_WITH_RECEIPTS;
|
|
660
1802
|
type components_PENDING_BLOCK_WITH_TXS = PENDING_BLOCK_WITH_TXS;
|
|
661
1803
|
type components_PENDING_BLOCK_WITH_TX_HASHES = PENDING_BLOCK_WITH_TX_HASHES;
|
|
662
|
-
type components_PENDING_COMMON_RECEIPT_PROPERTIES = PENDING_COMMON_RECEIPT_PROPERTIES;
|
|
663
|
-
type components_PENDING_DECLARE_TXN_RECEIPT = PENDING_DECLARE_TXN_RECEIPT;
|
|
664
|
-
type components_PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT = PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT;
|
|
665
|
-
type components_PENDING_INVOKE_TXN_RECEIPT = PENDING_INVOKE_TXN_RECEIPT;
|
|
666
|
-
type components_PENDING_L1_HANDLER_TXN_RECEIPT = PENDING_L1_HANDLER_TXN_RECEIPT;
|
|
667
|
-
type components_PENDING_STATE_UPDATE = PENDING_STATE_UPDATE;
|
|
668
|
-
type components_PENDING_TXN_RECEIPT = PENDING_TXN_RECEIPT;
|
|
669
|
-
type components_PRICE_UNIT = PRICE_UNIT;
|
|
670
1804
|
type components_REPLACED_CLASS = REPLACED_CLASS;
|
|
671
1805
|
type components_RESOURCE_BOUNDS = RESOURCE_BOUNDS;
|
|
672
1806
|
type components_RESOURCE_BOUNDS_MAPPING = RESOURCE_BOUNDS_MAPPING;
|
|
673
|
-
type components_RESOURCE_PRICE = RESOURCE_PRICE;
|
|
674
1807
|
type components_RESULT_PAGE_REQUEST = RESULT_PAGE_REQUEST;
|
|
675
1808
|
type components_SIERRA_ENTRY_POINT = SIERRA_ENTRY_POINT;
|
|
676
1809
|
type components_SIGNATURE = SIGNATURE;
|
|
677
1810
|
type components_SIMULATION_FLAG_FOR_ESTIMATE_FEE = SIMULATION_FLAG_FOR_ESTIMATE_FEE;
|
|
678
1811
|
type components_STATE_DIFF = STATE_DIFF;
|
|
679
|
-
type components_STATE_UPDATE = STATE_UPDATE;
|
|
680
1812
|
type components_STORAGE_KEY = STORAGE_KEY;
|
|
681
1813
|
type components_STRUCT_ABI_ENTRY = STRUCT_ABI_ENTRY;
|
|
682
1814
|
type components_STRUCT_ABI_TYPE = STRUCT_ABI_TYPE;
|
|
@@ -687,144 +1819,15 @@ type components_TRANSACTION_TRACE = TRANSACTION_TRACE;
|
|
|
687
1819
|
type components_TXN = TXN;
|
|
688
1820
|
type components_TXN_EXECUTION_STATUS = TXN_EXECUTION_STATUS;
|
|
689
1821
|
type components_TXN_FINALITY_STATUS = TXN_FINALITY_STATUS;
|
|
690
|
-
type components_TXN_HASH = TXN_HASH;
|
|
691
1822
|
type components_TXN_RECEIPT = TXN_RECEIPT;
|
|
1823
|
+
type components_TXN_RECEIPT_WITH_BLOCK_INFO = TXN_RECEIPT_WITH_BLOCK_INFO;
|
|
692
1824
|
type components_TXN_STATUS = TXN_STATUS;
|
|
693
1825
|
type components_TXN_TYPE = TXN_TYPE;
|
|
694
1826
|
type components_TYPED_PARAMETER = TYPED_PARAMETER;
|
|
695
1827
|
type components_u128 = u128;
|
|
696
|
-
type components_u64 = u64;
|
|
697
|
-
declare namespace components {
|
|
698
|
-
export type { components_ADDRESS as ADDRESS, components_BLOCK_BODY_WITH_TXS as BLOCK_BODY_WITH_TXS, components_BLOCK_BODY_WITH_TX_HASHES as BLOCK_BODY_WITH_TX_HASHES,
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
interface FAILED_TO_RECEIVE_TXN {
|
|
702
|
-
code: 1;
|
|
703
|
-
message: 'Failed to write transaction';
|
|
704
|
-
}
|
|
705
|
-
interface NO_TRACE_AVAILABLE {
|
|
706
|
-
code: 10;
|
|
707
|
-
message: 'No trace available for transaction';
|
|
708
|
-
data: {
|
|
709
|
-
status: 'RECEIVED' | 'REJECTED';
|
|
710
|
-
};
|
|
711
|
-
}
|
|
712
|
-
interface CONTRACT_NOT_FOUND {
|
|
713
|
-
code: 20;
|
|
714
|
-
message: 'Contract not found';
|
|
715
|
-
}
|
|
716
|
-
interface INVALID_MESSAGE_SELECTOR {
|
|
717
|
-
code: 21;
|
|
718
|
-
message: 'Invalid message selector';
|
|
719
|
-
}
|
|
720
|
-
interface INVALID_CALL_DATA {
|
|
721
|
-
code: 22;
|
|
722
|
-
message: 'Invalid call data';
|
|
723
|
-
}
|
|
724
|
-
interface BLOCK_NOT_FOUND {
|
|
725
|
-
code: 24;
|
|
726
|
-
message: 'Block not found';
|
|
727
|
-
}
|
|
728
|
-
interface INVALID_BLOCK_HASH {
|
|
729
|
-
code: 26;
|
|
730
|
-
message: 'Invalid block hash';
|
|
731
|
-
}
|
|
732
|
-
interface INVALID_TXN_INDEX {
|
|
733
|
-
code: 27;
|
|
734
|
-
message: 'Invalid transaction index in a block';
|
|
735
|
-
}
|
|
736
|
-
interface CLASS_HASH_NOT_FOUND {
|
|
737
|
-
code: 28;
|
|
738
|
-
message: 'Class hash not found';
|
|
739
|
-
}
|
|
740
|
-
interface TXN_HASH_NOT_FOUND {
|
|
741
|
-
code: 29;
|
|
742
|
-
message: 'Transaction hash not found';
|
|
743
|
-
}
|
|
744
|
-
interface PAGE_SIZE_TOO_BIG {
|
|
745
|
-
code: 31;
|
|
746
|
-
message: 'Requested page size is too big';
|
|
747
|
-
}
|
|
748
|
-
interface NO_BLOCKS {
|
|
749
|
-
code: 32;
|
|
750
|
-
message: 'There are no blocks';
|
|
751
|
-
}
|
|
752
|
-
interface INVALID_CONTINUATION_TOKEN {
|
|
753
|
-
code: 33;
|
|
754
|
-
message: 'The supplied continuation token is invalid or unknown';
|
|
755
|
-
}
|
|
756
|
-
interface TOO_MANY_KEYS_IN_FILTER {
|
|
757
|
-
code: 34;
|
|
758
|
-
message: 'Too many keys provided in a filter';
|
|
759
|
-
}
|
|
760
|
-
interface CONTRACT_ERROR {
|
|
761
|
-
code: 40;
|
|
762
|
-
message: 'Contract error';
|
|
763
|
-
data: {
|
|
764
|
-
revert_error: string;
|
|
765
|
-
};
|
|
766
|
-
}
|
|
767
|
-
interface TRANSACTION_EXECUTION_ERROR {
|
|
768
|
-
code: 41;
|
|
769
|
-
message: 'Transaction execution error';
|
|
770
|
-
data: {
|
|
771
|
-
transaction_index: number;
|
|
772
|
-
execution_error: string;
|
|
773
|
-
};
|
|
774
|
-
}
|
|
775
|
-
interface CLASS_ALREADY_DECLARED {
|
|
776
|
-
code: 51;
|
|
777
|
-
message: 'Class already declared';
|
|
778
|
-
}
|
|
779
|
-
interface INVALID_TRANSACTION_NONCE {
|
|
780
|
-
code: 52;
|
|
781
|
-
message: 'Invalid transaction nonce';
|
|
782
|
-
}
|
|
783
|
-
interface INSUFFICIENT_MAX_FEE {
|
|
784
|
-
code: 53;
|
|
785
|
-
message: 'Max fee is smaller than the minimal transaction cost (validation plus fee transfer)';
|
|
786
|
-
}
|
|
787
|
-
interface INSUFFICIENT_ACCOUNT_BALANCE {
|
|
788
|
-
code: 54;
|
|
789
|
-
message: "Account balance is smaller than the transaction's max_fee";
|
|
790
|
-
}
|
|
791
|
-
interface VALIDATION_FAILURE {
|
|
792
|
-
code: 55;
|
|
793
|
-
message: 'Account validation failed';
|
|
794
|
-
data: string;
|
|
795
|
-
}
|
|
796
|
-
interface COMPILATION_FAILED {
|
|
797
|
-
code: 56;
|
|
798
|
-
message: 'Compilation failed';
|
|
799
|
-
}
|
|
800
|
-
interface CONTRACT_CLASS_SIZE_IS_TOO_LARGE {
|
|
801
|
-
code: 57;
|
|
802
|
-
message: 'Contract class size it too large';
|
|
803
|
-
}
|
|
804
|
-
interface NON_ACCOUNT {
|
|
805
|
-
code: 58;
|
|
806
|
-
message: 'Sender address in not an account contract';
|
|
807
|
-
}
|
|
808
|
-
interface DUPLICATE_TX {
|
|
809
|
-
code: 59;
|
|
810
|
-
message: 'A transaction with the same hash already exists in the mempool';
|
|
811
|
-
}
|
|
812
|
-
interface COMPILED_CLASS_HASH_MISMATCH {
|
|
813
|
-
code: 60;
|
|
814
|
-
message: 'the compiled class hash did not match the one supplied in the transaction';
|
|
815
|
-
}
|
|
816
|
-
interface UNSUPPORTED_TX_VERSION {
|
|
817
|
-
code: 61;
|
|
818
|
-
message: 'the transaction version is not supported';
|
|
819
|
-
}
|
|
820
|
-
interface UNSUPPORTED_CONTRACT_CLASS_VERSION {
|
|
821
|
-
code: 62;
|
|
822
|
-
message: 'the contract class version is not supported';
|
|
823
|
-
}
|
|
824
|
-
interface UNEXPECTED_ERROR {
|
|
825
|
-
code: 63;
|
|
826
|
-
message: 'An unexpected error occurred';
|
|
827
|
-
data: string;
|
|
1828
|
+
type components_u64 = u64;
|
|
1829
|
+
declare namespace components {
|
|
1830
|
+
export type { components_ADDRESS as ADDRESS, components_BLOCK_BODY_WITH_RECEIPTS as BLOCK_BODY_WITH_RECEIPTS, components_BLOCK_BODY_WITH_TXS as BLOCK_BODY_WITH_TXS, components_BLOCK_BODY_WITH_TX_HASHES as BLOCK_BODY_WITH_TX_HASHES, BLOCK_HASH$1 as BLOCK_HASH, components_BLOCK_HEADER as BLOCK_HEADER, components_BLOCK_ID as BLOCK_ID, BLOCK_NUMBER$1 as BLOCK_NUMBER, components_BLOCK_STATUS as BLOCK_STATUS, components_BLOCK_TAG as BLOCK_TAG, components_BLOCK_WITH_RECEIPTS as BLOCK_WITH_RECEIPTS, components_BLOCK_WITH_TXS as BLOCK_WITH_TXS, components_BLOCK_WITH_TX_HASHES as BLOCK_WITH_TX_HASHES, components_BROADCASTED_DECLARE_TXN as BROADCASTED_DECLARE_TXN, components_BROADCASTED_DECLARE_TXN_V1 as BROADCASTED_DECLARE_TXN_V1, components_BROADCASTED_DECLARE_TXN_V2 as BROADCASTED_DECLARE_TXN_V2, components_BROADCASTED_DECLARE_TXN_V3 as BROADCASTED_DECLARE_TXN_V3, components_BROADCASTED_DEPLOY_ACCOUNT_TXN as BROADCASTED_DEPLOY_ACCOUNT_TXN, components_BROADCASTED_INVOKE_TXN as BROADCASTED_INVOKE_TXN, components_BROADCASTED_TXN as BROADCASTED_TXN, components_CALL_TYPE as CALL_TYPE, components_CHAIN_ID as CHAIN_ID, components_COMMON_RECEIPT_PROPERTIES as COMMON_RECEIPT_PROPERTIES, components_COMPUTATION_RESOURCES as COMPUTATION_RESOURCES, components_CONTRACT_ABI as CONTRACT_ABI, components_CONTRACT_ABI_ENTRY as CONTRACT_ABI_ENTRY, components_CONTRACT_CLASS as CONTRACT_CLASS, components_CONTRACT_STORAGE_DIFF_ITEM as CONTRACT_STORAGE_DIFF_ITEM, components_DA_MODE as DA_MODE, components_DECLARE_TXN as DECLARE_TXN, DECLARE_TXN_RECEIPT$1 as DECLARE_TXN_RECEIPT, components_DECLARE_TXN_TRACE as DECLARE_TXN_TRACE, components_DECLARE_TXN_V0 as DECLARE_TXN_V0, components_DECLARE_TXN_V1 as DECLARE_TXN_V1, components_DECLARE_TXN_V2 as DECLARE_TXN_V2, components_DECLARE_TXN_V3 as DECLARE_TXN_V3, components_DEPLOYED_CONTRACT_ITEM as DEPLOYED_CONTRACT_ITEM, components_DEPLOY_ACCOUNT_TXN as DEPLOY_ACCOUNT_TXN, DEPLOY_ACCOUNT_TXN_RECEIPT$1 as DEPLOY_ACCOUNT_TXN_RECEIPT, components_DEPLOY_ACCOUNT_TXN_TRACE as DEPLOY_ACCOUNT_TXN_TRACE, components_DEPLOY_ACCOUNT_TXN_V1 as DEPLOY_ACCOUNT_TXN_V1, components_DEPLOY_ACCOUNT_TXN_V3 as DEPLOY_ACCOUNT_TXN_V3, components_DEPLOY_TXN as DEPLOY_TXN, components_DEPLOY_TXN_RECEIPT as DEPLOY_TXN_RECEIPT, components_DEPRECATED_CAIRO_ENTRY_POINT as DEPRECATED_CAIRO_ENTRY_POINT, components_DEPRECATED_CONTRACT_CLASS as DEPRECATED_CONTRACT_CLASS, components_EMITTED_EVENT as EMITTED_EVENT, components_ENTRY_POINT_TYPE as ENTRY_POINT_TYPE, components_ETH_ADDRESS as ETH_ADDRESS, components_EVENT as EVENT, components_EVENTS_CHUNK as EVENTS_CHUNK, components_EVENT_ABI_ENTRY as EVENT_ABI_ENTRY, components_EVENT_ABI_TYPE as EVENT_ABI_TYPE, components_EVENT_CONTENT as EVENT_CONTENT, components_EVENT_FILTER as EVENT_FILTER, components_EXECUTION_RESOURCES as EXECUTION_RESOURCES, components_FEE_ESTIMATE as FEE_ESTIMATE, components_FEE_PAYMENT as FEE_PAYMENT, FELT$1 as FELT, components_FUNCTION_ABI_ENTRY as FUNCTION_ABI_ENTRY, components_FUNCTION_ABI_TYPE as FUNCTION_ABI_TYPE, components_FUNCTION_CALL as FUNCTION_CALL, components_FUNCTION_INVOCATION as FUNCTION_INVOCATION, components_FUNCTION_STATE_MUTABILITY as FUNCTION_STATE_MUTABILITY, components_INVOKE_TXN as INVOKE_TXN, INVOKE_TXN_RECEIPT$1 as INVOKE_TXN_RECEIPT, components_INVOKE_TXN_TRACE as INVOKE_TXN_TRACE, components_INVOKE_TXN_V0 as INVOKE_TXN_V0, components_INVOKE_TXN_V1 as INVOKE_TXN_V1, components_INVOKE_TXN_V3 as INVOKE_TXN_V3, components_L1_HANDLER_TXN as L1_HANDLER_TXN, L1_HANDLER_TXN_RECEIPT$1 as L1_HANDLER_TXN_RECEIPT, components_L1_HANDLER_TXN_TRACE as L1_HANDLER_TXN_TRACE, components_MSG_FROM_L1 as MSG_FROM_L1, components_MSG_TO_L1 as MSG_TO_L1, components_NESTED_CALL as NESTED_CALL, components_NEW_CLASSES as NEW_CLASSES, components_NONCE_UPDATE as NONCE_UPDATE, components_NUM_AS_HEX as NUM_AS_HEX, components_ORDERED_EVENT as ORDERED_EVENT, components_ORDERED_MESSAGE as ORDERED_MESSAGE, components_PENDING_BLOCK_HEADER as PENDING_BLOCK_HEADER, components_PENDING_BLOCK_WITH_RECEIPTS as PENDING_BLOCK_WITH_RECEIPTS, components_PENDING_BLOCK_WITH_TXS as PENDING_BLOCK_WITH_TXS, components_PENDING_BLOCK_WITH_TX_HASHES as PENDING_BLOCK_WITH_TX_HASHES, PENDING_STATE_UPDATE$1 as PENDING_STATE_UPDATE, PRICE_UNIT$1 as PRICE_UNIT, components_REPLACED_CLASS as REPLACED_CLASS, components_RESOURCE_BOUNDS as RESOURCE_BOUNDS, components_RESOURCE_BOUNDS_MAPPING as RESOURCE_BOUNDS_MAPPING, RESOURCE_PRICE$1 as RESOURCE_PRICE, components_RESULT_PAGE_REQUEST as RESULT_PAGE_REQUEST, components_SIERRA_ENTRY_POINT as SIERRA_ENTRY_POINT, components_SIGNATURE as SIGNATURE, SIMULATION_FLAG$2 as SIMULATION_FLAG, components_SIMULATION_FLAG_FOR_ESTIMATE_FEE as SIMULATION_FLAG_FOR_ESTIMATE_FEE, components_STATE_DIFF as STATE_DIFF, STATE_UPDATE$1 as STATE_UPDATE, components_STORAGE_KEY as STORAGE_KEY, components_STRUCT_ABI_ENTRY as STRUCT_ABI_ENTRY, components_STRUCT_ABI_TYPE as STRUCT_ABI_TYPE, components_STRUCT_MEMBER as STRUCT_MEMBER, components_SYNC_STATUS as SYNC_STATUS, components_StorageDiffItem as StorageDiffItem, components_TRANSACTION_TRACE as TRANSACTION_TRACE, components_TXN as TXN, components_TXN_EXECUTION_STATUS as TXN_EXECUTION_STATUS, components_TXN_FINALITY_STATUS as TXN_FINALITY_STATUS, TXN_HASH$1 as TXN_HASH, components_TXN_RECEIPT as TXN_RECEIPT, components_TXN_RECEIPT_WITH_BLOCK_INFO as TXN_RECEIPT_WITH_BLOCK_INFO, components_TXN_STATUS as TXN_STATUS, components_TXN_TYPE as TXN_TYPE, components_TYPED_PARAMETER as TYPED_PARAMETER, components_u128 as u128, components_u64 as u64 };
|
|
828
1831
|
}
|
|
829
1832
|
|
|
830
1833
|
type errors_BLOCK_NOT_FOUND = BLOCK_NOT_FOUND;
|
|
@@ -865,52 +1868,53 @@ declare namespace errors {
|
|
|
865
1868
|
*/
|
|
866
1869
|
|
|
867
1870
|
type ContractClass$1 = CONTRACT_CLASS | DEPRECATED_CONTRACT_CLASS;
|
|
868
|
-
type SimulateTransaction = {
|
|
1871
|
+
type SimulateTransaction$1 = {
|
|
869
1872
|
transaction_trace: TRANSACTION_TRACE;
|
|
870
1873
|
fee_estimation: FEE_ESTIMATE;
|
|
871
1874
|
};
|
|
872
|
-
type SimulateTransactionResponse$1 = SimulateTransaction[];
|
|
873
|
-
type FeeEstimate = FEE_ESTIMATE;
|
|
874
|
-
type TransactionWithHash = TXN & {
|
|
875
|
-
transaction_hash: TXN_HASH;
|
|
1875
|
+
type SimulateTransactionResponse$1 = SimulateTransaction$1[];
|
|
1876
|
+
type FeeEstimate$1 = FEE_ESTIMATE;
|
|
1877
|
+
type TransactionWithHash$1 = TXN & {
|
|
1878
|
+
transaction_hash: TXN_HASH$1;
|
|
876
1879
|
};
|
|
877
1880
|
type BlockHashAndNumber = {
|
|
878
|
-
block_hash: BLOCK_HASH;
|
|
879
|
-
block_number: BLOCK_NUMBER;
|
|
1881
|
+
block_hash: BLOCK_HASH$1;
|
|
1882
|
+
block_number: BLOCK_NUMBER$1;
|
|
880
1883
|
};
|
|
881
1884
|
type BlockWithTxs = BLOCK_WITH_TXS | PENDING_BLOCK_WITH_TXS;
|
|
882
|
-
type BlockWithTxHashes = BLOCK_WITH_TX_HASHES | PENDING_BLOCK_WITH_TX_HASHES;
|
|
883
|
-
type
|
|
1885
|
+
type BlockWithTxHashes$1 = BLOCK_WITH_TX_HASHES | PENDING_BLOCK_WITH_TX_HASHES;
|
|
1886
|
+
type BlockWithTxReceipts = BLOCK_WITH_RECEIPTS | PENDING_BLOCK_WITH_RECEIPTS;
|
|
1887
|
+
type StateUpdate$1 = STATE_UPDATE$1 | PENDING_STATE_UPDATE$1;
|
|
884
1888
|
type BlockTransactionsTraces = {
|
|
885
|
-
transaction_hash: FELT;
|
|
1889
|
+
transaction_hash: FELT$1;
|
|
886
1890
|
trace_root: TRANSACTION_TRACE;
|
|
887
1891
|
}[];
|
|
888
1892
|
type Syncing = false | SYNC_STATUS;
|
|
889
1893
|
type Events = EVENTS_CHUNK;
|
|
890
1894
|
type EmittedEvent = EMITTED_EVENT;
|
|
891
|
-
type Event = EVENT
|
|
892
|
-
type InvokedTransaction = {
|
|
893
|
-
transaction_hash: TXN_HASH;
|
|
1895
|
+
type Event = EVENT;
|
|
1896
|
+
type InvokedTransaction$1 = {
|
|
1897
|
+
transaction_hash: TXN_HASH$1;
|
|
894
1898
|
};
|
|
895
|
-
type DeclaredTransaction = {
|
|
896
|
-
transaction_hash: TXN_HASH;
|
|
897
|
-
class_hash: FELT;
|
|
1899
|
+
type DeclaredTransaction$1 = {
|
|
1900
|
+
transaction_hash: TXN_HASH$1;
|
|
1901
|
+
class_hash: FELT$1;
|
|
898
1902
|
};
|
|
899
1903
|
type DeployedAccountTransaction = {
|
|
900
|
-
transaction_hash: TXN_HASH;
|
|
901
|
-
contract_address: FELT;
|
|
1904
|
+
transaction_hash: TXN_HASH$1;
|
|
1905
|
+
contract_address: FELT$1;
|
|
902
1906
|
};
|
|
903
1907
|
type ContractAddress = ADDRESS;
|
|
904
|
-
type Felt = FELT;
|
|
905
|
-
type Nonce$1 = FELT;
|
|
906
|
-
type TransactionHash = TXN_HASH;
|
|
1908
|
+
type Felt = FELT$1;
|
|
1909
|
+
type Nonce$1 = FELT$1;
|
|
1910
|
+
type TransactionHash = TXN_HASH$1;
|
|
907
1911
|
type TransactionTrace = TRANSACTION_TRACE;
|
|
908
|
-
type BlockHash = BLOCK_HASH;
|
|
909
|
-
type TransactionReceipt =
|
|
910
|
-
type Receipt =
|
|
911
|
-
type PendingReceipt =
|
|
1912
|
+
type BlockHash = BLOCK_HASH$1;
|
|
1913
|
+
type TransactionReceipt$1 = TXN_RECEIPT_WITH_BLOCK_INFO;
|
|
1914
|
+
type Receipt$1 = TXN_RECEIPT_WITH_BLOCK_INFO & BlockHashAndNumber;
|
|
1915
|
+
type PendingReceipt$1 = TXN_RECEIPT;
|
|
912
1916
|
type EventFilter = EVENT_FILTER & RESULT_PAGE_REQUEST;
|
|
913
|
-
type SimulationFlags$1 = Array<SIMULATION_FLAG$
|
|
1917
|
+
type SimulationFlags$1 = Array<SIMULATION_FLAG$2>;
|
|
914
1918
|
type L1Message = MSG_FROM_L1;
|
|
915
1919
|
type BaseTransaction = BROADCASTED_TXN;
|
|
916
1920
|
type ChainId = CHAIN_ID;
|
|
@@ -919,11 +1923,11 @@ type TransactionStatus$1 = {
|
|
|
919
1923
|
finality_status: TXN_STATUS;
|
|
920
1924
|
execution_status?: TXN_EXECUTION_STATUS;
|
|
921
1925
|
};
|
|
922
|
-
type ResourceBounds = RESOURCE_BOUNDS_MAPPING;
|
|
1926
|
+
type ResourceBounds$1 = RESOURCE_BOUNDS_MAPPING;
|
|
923
1927
|
type FeePayment = FEE_PAYMENT;
|
|
924
|
-
type PriceUnit = PRICE_UNIT;
|
|
1928
|
+
type PriceUnit = PRICE_UNIT$1;
|
|
925
1929
|
type StorageDiffs = Array<CONTRACT_STORAGE_DIFF_ITEM>;
|
|
926
|
-
type DeprecatedDeclaredClasses = Array<FELT>;
|
|
1930
|
+
type DeprecatedDeclaredClasses = Array<FELT$1>;
|
|
927
1931
|
type NonceUpdates = NONCE_UPDATE[];
|
|
928
1932
|
type ReplacedClasses = REPLACED_CLASS[];
|
|
929
1933
|
declare enum ETransactionType {
|
|
@@ -1006,7 +2010,7 @@ type ReadMethods = {
|
|
|
1006
2010
|
params: {
|
|
1007
2011
|
block_id: BLOCK_ID;
|
|
1008
2012
|
};
|
|
1009
|
-
result: BlockWithTxHashes;
|
|
2013
|
+
result: BlockWithTxHashes$1;
|
|
1010
2014
|
errors: BLOCK_NOT_FOUND;
|
|
1011
2015
|
};
|
|
1012
2016
|
starknet_getBlockWithTxs: {
|
|
@@ -1016,6 +2020,13 @@ type ReadMethods = {
|
|
|
1016
2020
|
result: BlockWithTxs;
|
|
1017
2021
|
errors: BLOCK_NOT_FOUND;
|
|
1018
2022
|
};
|
|
2023
|
+
starknet_getBlockWithReceipts: {
|
|
2024
|
+
params: {
|
|
2025
|
+
block_id: BLOCK_ID;
|
|
2026
|
+
};
|
|
2027
|
+
result: BlockWithTxReceipts;
|
|
2028
|
+
errors: BLOCK_NOT_FOUND;
|
|
2029
|
+
};
|
|
1019
2030
|
starknet_getStateUpdate: {
|
|
1020
2031
|
params: {
|
|
1021
2032
|
block_id: BLOCK_ID;
|
|
@@ -1029,21 +2040,21 @@ type ReadMethods = {
|
|
|
1029
2040
|
key: STORAGE_KEY;
|
|
1030
2041
|
block_id: BLOCK_ID;
|
|
1031
2042
|
};
|
|
1032
|
-
result: FELT;
|
|
2043
|
+
result: FELT$1;
|
|
1033
2044
|
errors: CONTRACT_NOT_FOUND | BLOCK_NOT_FOUND;
|
|
1034
2045
|
};
|
|
1035
2046
|
starknet_getTransactionStatus: {
|
|
1036
2047
|
params: {
|
|
1037
|
-
transaction_hash: TXN_HASH;
|
|
2048
|
+
transaction_hash: TXN_HASH$1;
|
|
1038
2049
|
};
|
|
1039
2050
|
result: TransactionStatus$1;
|
|
1040
2051
|
errors: TXN_HASH_NOT_FOUND;
|
|
1041
2052
|
};
|
|
1042
2053
|
starknet_getTransactionByHash: {
|
|
1043
2054
|
params: {
|
|
1044
|
-
transaction_hash: TXN_HASH;
|
|
2055
|
+
transaction_hash: TXN_HASH$1;
|
|
1045
2056
|
};
|
|
1046
|
-
result: TransactionWithHash;
|
|
2057
|
+
result: TransactionWithHash$1;
|
|
1047
2058
|
errors: TXN_HASH_NOT_FOUND;
|
|
1048
2059
|
};
|
|
1049
2060
|
starknet_getTransactionByBlockIdAndIndex: {
|
|
@@ -1051,20 +2062,20 @@ type ReadMethods = {
|
|
|
1051
2062
|
block_id: BLOCK_ID;
|
|
1052
2063
|
index: number;
|
|
1053
2064
|
};
|
|
1054
|
-
result: TransactionWithHash;
|
|
2065
|
+
result: TransactionWithHash$1;
|
|
1055
2066
|
errors: BLOCK_NOT_FOUND | INVALID_TXN_INDEX;
|
|
1056
2067
|
};
|
|
1057
2068
|
starknet_getTransactionReceipt: {
|
|
1058
2069
|
params: {
|
|
1059
|
-
transaction_hash: TXN_HASH;
|
|
2070
|
+
transaction_hash: TXN_HASH$1;
|
|
1060
2071
|
};
|
|
1061
|
-
result: TransactionReceipt;
|
|
2072
|
+
result: TransactionReceipt$1;
|
|
1062
2073
|
errors: TXN_HASH_NOT_FOUND;
|
|
1063
2074
|
};
|
|
1064
2075
|
starknet_getClass: {
|
|
1065
2076
|
params: {
|
|
1066
2077
|
block_id: BLOCK_ID;
|
|
1067
|
-
class_hash: FELT;
|
|
2078
|
+
class_hash: FELT$1;
|
|
1068
2079
|
};
|
|
1069
2080
|
result: ContractClass$1;
|
|
1070
2081
|
errors: BLOCK_NOT_FOUND | CLASS_HASH_NOT_FOUND;
|
|
@@ -1074,7 +2085,7 @@ type ReadMethods = {
|
|
|
1074
2085
|
block_id: BLOCK_ID;
|
|
1075
2086
|
contract_address: ADDRESS;
|
|
1076
2087
|
};
|
|
1077
|
-
result: FELT;
|
|
2088
|
+
result: FELT$1;
|
|
1078
2089
|
errors: BLOCK_NOT_FOUND | CONTRACT_NOT_FOUND;
|
|
1079
2090
|
};
|
|
1080
2091
|
starknet_getClassAt: {
|
|
@@ -1097,7 +2108,7 @@ type ReadMethods = {
|
|
|
1097
2108
|
request: FUNCTION_CALL;
|
|
1098
2109
|
block_id: BLOCK_ID;
|
|
1099
2110
|
};
|
|
1100
|
-
result: FELT[];
|
|
2111
|
+
result: FELT$1[];
|
|
1101
2112
|
errors: CONTRACT_NOT_FOUND | CONTRACT_ERROR | BLOCK_NOT_FOUND;
|
|
1102
2113
|
};
|
|
1103
2114
|
starknet_estimateFee: {
|
|
@@ -1106,7 +2117,7 @@ type ReadMethods = {
|
|
|
1106
2117
|
simulation_flags?: [SIMULATION_FLAG_FOR_ESTIMATE_FEE] | [];
|
|
1107
2118
|
block_id: BLOCK_ID;
|
|
1108
2119
|
};
|
|
1109
|
-
result: FeeEstimate[];
|
|
2120
|
+
result: FeeEstimate$1[];
|
|
1110
2121
|
errors: TRANSACTION_EXECUTION_ERROR | BLOCK_NOT_FOUND;
|
|
1111
2122
|
};
|
|
1112
2123
|
starknet_estimateMessageFee: {
|
|
@@ -1114,12 +2125,12 @@ type ReadMethods = {
|
|
|
1114
2125
|
message: MSG_FROM_L1;
|
|
1115
2126
|
block_id: BLOCK_ID;
|
|
1116
2127
|
};
|
|
1117
|
-
result: FeeEstimate;
|
|
2128
|
+
result: FeeEstimate$1;
|
|
1118
2129
|
errors: CONTRACT_ERROR | BLOCK_NOT_FOUND;
|
|
1119
2130
|
};
|
|
1120
2131
|
starknet_blockNumber: {
|
|
1121
2132
|
params: [];
|
|
1122
|
-
result: BLOCK_NUMBER;
|
|
2133
|
+
result: BLOCK_NUMBER$1;
|
|
1123
2134
|
errors: NO_BLOCKS;
|
|
1124
2135
|
};
|
|
1125
2136
|
starknet_blockHashAndNumber: {
|
|
@@ -1156,14 +2167,14 @@ type WriteMethods = {
|
|
|
1156
2167
|
params: {
|
|
1157
2168
|
invoke_transaction: BROADCASTED_INVOKE_TXN;
|
|
1158
2169
|
};
|
|
1159
|
-
result: InvokedTransaction;
|
|
2170
|
+
result: InvokedTransaction$1;
|
|
1160
2171
|
errors: INSUFFICIENT_ACCOUNT_BALANCE | INSUFFICIENT_MAX_FEE | INVALID_TRANSACTION_NONCE | VALIDATION_FAILURE | NON_ACCOUNT | DUPLICATE_TX | UNSUPPORTED_TX_VERSION | UNEXPECTED_ERROR;
|
|
1161
2172
|
};
|
|
1162
2173
|
starknet_addDeclareTransaction: {
|
|
1163
2174
|
params: {
|
|
1164
2175
|
declare_transaction: BROADCASTED_DECLARE_TXN;
|
|
1165
2176
|
};
|
|
1166
|
-
result: DeclaredTransaction;
|
|
2177
|
+
result: DeclaredTransaction$1;
|
|
1167
2178
|
errors: CLASS_ALREADY_DECLARED | COMPILATION_FAILED | COMPILED_CLASS_HASH_MISMATCH | INSUFFICIENT_ACCOUNT_BALANCE | INSUFFICIENT_MAX_FEE | INVALID_TRANSACTION_NONCE | VALIDATION_FAILURE | NON_ACCOUNT | DUPLICATE_TX | CONTRACT_CLASS_SIZE_IS_TOO_LARGE | UNSUPPORTED_TX_VERSION | UNSUPPORTED_CONTRACT_CLASS_VERSION | UNEXPECTED_ERROR;
|
|
1168
2179
|
};
|
|
1169
2180
|
starknet_addDeployAccountTransaction: {
|
|
@@ -1177,7 +2188,7 @@ type WriteMethods = {
|
|
|
1177
2188
|
type TraceMethods = {
|
|
1178
2189
|
starknet_traceTransaction: {
|
|
1179
2190
|
params: {
|
|
1180
|
-
transaction_hash: TXN_HASH;
|
|
2191
|
+
transaction_hash: TXN_HASH$1;
|
|
1181
2192
|
};
|
|
1182
2193
|
result: TransactionTrace;
|
|
1183
2194
|
errors: TXN_HASH_NOT_FOUND | NO_TRACE_AVAILABLE;
|
|
@@ -1193,7 +2204,7 @@ type TraceMethods = {
|
|
|
1193
2204
|
params: {
|
|
1194
2205
|
block_id: BLOCK_ID;
|
|
1195
2206
|
transactions: Array<BROADCASTED_TXN>;
|
|
1196
|
-
simulation_flags: Array<SIMULATION_FLAG$
|
|
2207
|
+
simulation_flags: Array<SIMULATION_FLAG$2>;
|
|
1197
2208
|
};
|
|
1198
2209
|
result: SimulateTransactionResponse$1;
|
|
1199
2210
|
errors: BLOCK_NOT_FOUND | TRANSACTION_EXECUTION_ERROR;
|
|
@@ -1201,100 +2212,71 @@ type TraceMethods = {
|
|
|
1201
2212
|
};
|
|
1202
2213
|
|
|
1203
2214
|
/**
|
|
1204
|
-
*
|
|
1205
|
-
*
|
|
1206
|
-
* starknet_metadata.json - tags/v0.5.0
|
|
1207
|
-
*
|
|
1208
|
-
* 'starknet-specs' (OpenRpc protocol types)
|
|
1209
|
-
* https://github.com/starkware-libs/starknet-specs
|
|
2215
|
+
* version v0.7.0-rc1
|
|
1210
2216
|
*/
|
|
1211
|
-
|
|
1212
|
-
type
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
type
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
type
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
type
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
}
|
|
1264
|
-
type ENUM = {
|
|
1265
|
-
type: 'enum';
|
|
1266
|
-
name: string;
|
|
1267
|
-
variants: Array<{
|
|
1268
|
-
name: string;
|
|
1269
|
-
type: string;
|
|
1270
|
-
}>;
|
|
1271
|
-
};
|
|
1272
|
-
type INTERFACE = {
|
|
1273
|
-
type: 'interface';
|
|
1274
|
-
name: string;
|
|
1275
|
-
items: Array<FUNCTION>;
|
|
1276
|
-
};
|
|
1277
|
-
type IMPL = {
|
|
1278
|
-
type: 'impl';
|
|
1279
|
-
name: string;
|
|
1280
|
-
interface_name: string;
|
|
1281
|
-
};
|
|
1282
|
-
type EVENT_FIELD = {
|
|
1283
|
-
name: string;
|
|
1284
|
-
type: string;
|
|
1285
|
-
kind: 'key' | 'data' | 'nested';
|
|
1286
|
-
};
|
|
2217
|
+
|
|
2218
|
+
type index$4_ABI = ABI;
|
|
2219
|
+
type index$4_BaseTransaction = BaseTransaction;
|
|
2220
|
+
type index$4_BlockHash = BlockHash;
|
|
2221
|
+
type index$4_BlockHashAndNumber = BlockHashAndNumber;
|
|
2222
|
+
type index$4_BlockTransactionsTraces = BlockTransactionsTraces;
|
|
2223
|
+
type index$4_BlockWithTxReceipts = BlockWithTxReceipts;
|
|
2224
|
+
type index$4_BlockWithTxs = BlockWithTxs;
|
|
2225
|
+
type index$4_ChainId = ChainId;
|
|
2226
|
+
type index$4_ContractAddress = ContractAddress;
|
|
2227
|
+
type index$4_DeployedAccountTransaction = DeployedAccountTransaction;
|
|
2228
|
+
type index$4_DeprecatedDeclaredClasses = DeprecatedDeclaredClasses;
|
|
2229
|
+
type index$4_EBlockTag = EBlockTag;
|
|
2230
|
+
declare const index$4_EBlockTag: typeof EBlockTag;
|
|
2231
|
+
type index$4_EDAMode = EDAMode;
|
|
2232
|
+
declare const index$4_EDAMode: typeof EDAMode;
|
|
2233
|
+
type index$4_EDataAvailabilityMode = EDataAvailabilityMode;
|
|
2234
|
+
declare const index$4_EDataAvailabilityMode: typeof EDataAvailabilityMode;
|
|
2235
|
+
type index$4_ESimulationFlag = ESimulationFlag;
|
|
2236
|
+
declare const index$4_ESimulationFlag: typeof ESimulationFlag;
|
|
2237
|
+
type index$4_ETransactionExecutionStatus = ETransactionExecutionStatus;
|
|
2238
|
+
declare const index$4_ETransactionExecutionStatus: typeof ETransactionExecutionStatus;
|
|
2239
|
+
type index$4_ETransactionFinalityStatus = ETransactionFinalityStatus;
|
|
2240
|
+
declare const index$4_ETransactionFinalityStatus: typeof ETransactionFinalityStatus;
|
|
2241
|
+
type index$4_ETransactionStatus = ETransactionStatus;
|
|
2242
|
+
declare const index$4_ETransactionStatus: typeof ETransactionStatus;
|
|
2243
|
+
type index$4_ETransactionType = ETransactionType;
|
|
2244
|
+
declare const index$4_ETransactionType: typeof ETransactionType;
|
|
2245
|
+
type index$4_ETransactionVersion = ETransactionVersion;
|
|
2246
|
+
declare const index$4_ETransactionVersion: typeof ETransactionVersion;
|
|
2247
|
+
type index$4_ETransactionVersion2 = ETransactionVersion2;
|
|
2248
|
+
declare const index$4_ETransactionVersion2: typeof ETransactionVersion2;
|
|
2249
|
+
type index$4_ETransactionVersion3 = ETransactionVersion3;
|
|
2250
|
+
declare const index$4_ETransactionVersion3: typeof ETransactionVersion3;
|
|
2251
|
+
type index$4_EmittedEvent = EmittedEvent;
|
|
2252
|
+
type index$4_Event = Event;
|
|
2253
|
+
type index$4_EventFilter = EventFilter;
|
|
2254
|
+
type index$4_Events = Events;
|
|
2255
|
+
type index$4_FeePayment = FeePayment;
|
|
2256
|
+
type index$4_Felt = Felt;
|
|
2257
|
+
type index$4_L1Message = L1Message;
|
|
2258
|
+
type index$4_Methods = Methods;
|
|
2259
|
+
type index$4_NonceUpdates = NonceUpdates;
|
|
2260
|
+
type index$4_PriceUnit = PriceUnit;
|
|
2261
|
+
type index$4_ReplacedClasses = ReplacedClasses;
|
|
2262
|
+
type index$4_StorageDiffs = StorageDiffs;
|
|
2263
|
+
type index$4_Syncing = Syncing;
|
|
2264
|
+
type index$4_Transaction = Transaction;
|
|
2265
|
+
type index$4_TransactionHash = TransactionHash;
|
|
2266
|
+
type index$4_TransactionTrace = TransactionTrace;
|
|
2267
|
+
declare namespace index$4 {
|
|
2268
|
+
export { type index$4_ABI as ABI, type index$4_BaseTransaction as BaseTransaction, type index$4_BlockHash as BlockHash, type index$4_BlockHashAndNumber as BlockHashAndNumber, type index$4_BlockTransactionsTraces as BlockTransactionsTraces, type BlockWithTxHashes$1 as BlockWithTxHashes, type index$4_BlockWithTxReceipts as BlockWithTxReceipts, type index$4_BlockWithTxs as BlockWithTxs, type index$4_ChainId as ChainId, type index$4_ContractAddress as ContractAddress, type ContractClass$1 as ContractClass, type DeclaredTransaction$1 as DeclaredTransaction, type index$4_DeployedAccountTransaction as DeployedAccountTransaction, type index$4_DeprecatedDeclaredClasses as DeprecatedDeclaredClasses, index$4_EBlockTag as EBlockTag, index$4_EDAMode as EDAMode, index$4_EDataAvailabilityMode as EDataAvailabilityMode, index$4_ESimulationFlag as ESimulationFlag, index$4_ETransactionExecutionStatus as ETransactionExecutionStatus, index$4_ETransactionFinalityStatus as ETransactionFinalityStatus, index$4_ETransactionStatus as ETransactionStatus, index$4_ETransactionType as ETransactionType, index$4_ETransactionVersion as ETransactionVersion, index$4_ETransactionVersion2 as ETransactionVersion2, index$4_ETransactionVersion3 as ETransactionVersion3, type index$4_EmittedEvent as EmittedEvent, errors as Errors, type index$4_Event as Event, type index$4_EventFilter as EventFilter, type index$4_Events as Events, type FeeEstimate$1 as FeeEstimate, type index$4_FeePayment as FeePayment, type index$4_Felt as Felt, type InvokedTransaction$1 as InvokedTransaction, type index$4_L1Message as L1Message, type index$4_Methods as Methods, type Nonce$1 as Nonce, type index$4_NonceUpdates as NonceUpdates, type PendingReceipt$1 as PendingReceipt, type index$4_PriceUnit as PriceUnit, type Receipt$1 as Receipt, type index$4_ReplacedClasses as ReplacedClasses, type ResourceBounds$1 as ResourceBounds, components as SPEC, type SimulateTransaction$1 as SimulateTransaction, type SimulateTransactionResponse$1 as SimulateTransactionResponse, type SimulationFlags$1 as SimulationFlags, type StateUpdate$1 as StateUpdate, type index$4_StorageDiffs as StorageDiffs, type index$4_Syncing as Syncing, type index$4_Transaction as Transaction, type index$4_TransactionHash as TransactionHash, type TransactionReceipt$1 as TransactionReceipt, type TransactionStatus$1 as TransactionStatus, type index$4_TransactionTrace as TransactionTrace, type TransactionWithHash$1 as TransactionWithHash };
|
|
2269
|
+
}
|
|
1287
2270
|
|
|
1288
2271
|
type index$3_ABI = ABI;
|
|
1289
2272
|
type index$3_BaseTransaction = BaseTransaction;
|
|
1290
2273
|
type index$3_BlockHash = BlockHash;
|
|
1291
2274
|
type index$3_BlockHashAndNumber = BlockHashAndNumber;
|
|
1292
2275
|
type index$3_BlockTransactionsTraces = BlockTransactionsTraces;
|
|
1293
|
-
type index$
|
|
2276
|
+
type index$3_BlockWithTxReceipts = BlockWithTxReceipts;
|
|
1294
2277
|
type index$3_BlockWithTxs = BlockWithTxs;
|
|
1295
2278
|
type index$3_ChainId = ChainId;
|
|
1296
2279
|
type index$3_ContractAddress = ContractAddress;
|
|
1297
|
-
type index$3_DeclaredTransaction = DeclaredTransaction;
|
|
1298
2280
|
type index$3_DeployedAccountTransaction = DeployedAccountTransaction;
|
|
1299
2281
|
type index$3_DeprecatedDeclaredClasses = DeprecatedDeclaredClasses;
|
|
1300
2282
|
type index$3_EBlockTag = EBlockTag;
|
|
@@ -1323,28 +2305,20 @@ type index$3_EmittedEvent = EmittedEvent;
|
|
|
1323
2305
|
type index$3_Event = Event;
|
|
1324
2306
|
type index$3_EventFilter = EventFilter;
|
|
1325
2307
|
type index$3_Events = Events;
|
|
1326
|
-
type index$3_FeeEstimate = FeeEstimate;
|
|
1327
2308
|
type index$3_FeePayment = FeePayment;
|
|
1328
2309
|
type index$3_Felt = Felt;
|
|
1329
|
-
type index$3_InvokedTransaction = InvokedTransaction;
|
|
1330
2310
|
type index$3_L1Message = L1Message;
|
|
1331
2311
|
type index$3_Methods = Methods;
|
|
1332
2312
|
type index$3_NonceUpdates = NonceUpdates;
|
|
1333
|
-
type index$3_PendingReceipt = PendingReceipt;
|
|
1334
2313
|
type index$3_PriceUnit = PriceUnit;
|
|
1335
|
-
type index$3_Receipt = Receipt;
|
|
1336
2314
|
type index$3_ReplacedClasses = ReplacedClasses;
|
|
1337
|
-
type index$3_ResourceBounds = ResourceBounds;
|
|
1338
|
-
type index$3_SimulateTransaction = SimulateTransaction;
|
|
1339
2315
|
type index$3_StorageDiffs = StorageDiffs;
|
|
1340
2316
|
type index$3_Syncing = Syncing;
|
|
1341
2317
|
type index$3_Transaction = Transaction;
|
|
1342
2318
|
type index$3_TransactionHash = TransactionHash;
|
|
1343
|
-
type index$3_TransactionReceipt = TransactionReceipt;
|
|
1344
2319
|
type index$3_TransactionTrace = TransactionTrace;
|
|
1345
|
-
type index$3_TransactionWithHash = TransactionWithHash;
|
|
1346
2320
|
declare namespace index$3 {
|
|
1347
|
-
export { type index$3_ABI as ABI, type index$3_BaseTransaction as BaseTransaction, type index$3_BlockHash as BlockHash, type index$3_BlockHashAndNumber as BlockHashAndNumber, type index$3_BlockTransactionsTraces as BlockTransactionsTraces, type
|
|
2321
|
+
export { type index$3_ABI as ABI, type index$3_BaseTransaction as BaseTransaction, type index$3_BlockHash as BlockHash, type index$3_BlockHashAndNumber as BlockHashAndNumber, type index$3_BlockTransactionsTraces as BlockTransactionsTraces, type BlockWithTxHashes$1 as BlockWithTxHashes, type index$3_BlockWithTxReceipts as BlockWithTxReceipts, type index$3_BlockWithTxs as BlockWithTxs, type index$3_ChainId as ChainId, type index$3_ContractAddress as ContractAddress, type ContractClass$1 as ContractClass, type DeclaredTransaction$1 as DeclaredTransaction, type index$3_DeployedAccountTransaction as DeployedAccountTransaction, type index$3_DeprecatedDeclaredClasses as DeprecatedDeclaredClasses, index$3_EBlockTag as EBlockTag, index$3_EDAMode as EDAMode, index$3_EDataAvailabilityMode as EDataAvailabilityMode, index$3_ESimulationFlag as ESimulationFlag, index$3_ETransactionExecutionStatus as ETransactionExecutionStatus, index$3_ETransactionFinalityStatus as ETransactionFinalityStatus, index$3_ETransactionStatus as ETransactionStatus, index$3_ETransactionType as ETransactionType, index$3_ETransactionVersion as ETransactionVersion, index$3_ETransactionVersion2 as ETransactionVersion2, index$3_ETransactionVersion3 as ETransactionVersion3, type index$3_EmittedEvent as EmittedEvent, errors as Errors, type index$3_Event as Event, type index$3_EventFilter as EventFilter, type index$3_Events as Events, type FeeEstimate$1 as FeeEstimate, type index$3_FeePayment as FeePayment, type index$3_Felt as Felt, type InvokedTransaction$1 as InvokedTransaction, index$6 as JRPC, type index$3_L1Message as L1Message, type index$3_Methods as Methods, type Nonce$1 as Nonce, type index$3_NonceUpdates as NonceUpdates, type PendingReceipt$1 as PendingReceipt, type index$3_PriceUnit as PriceUnit, index$5 as RPCSPEC06, index$4 as RPCSPEC07, type Receipt$1 as Receipt, type index$3_ReplacedClasses as ReplacedClasses, type ResourceBounds$1 as ResourceBounds, components as SPEC, type SimulateTransaction$1 as SimulateTransaction, type SimulateTransactionResponse$1 as SimulateTransactionResponse, type SimulationFlags$1 as SimulationFlags, type StateUpdate$1 as StateUpdate, type index$3_StorageDiffs as StorageDiffs, type index$3_Syncing as Syncing, type index$3_Transaction as Transaction, type index$3_TransactionHash as TransactionHash, type TransactionReceipt$1 as TransactionReceipt, type TransactionStatus$1 as TransactionStatus, type index$3_TransactionTrace as TransactionTrace, type TransactionWithHash$1 as TransactionWithHash };
|
|
1348
2322
|
}
|
|
1349
2323
|
|
|
1350
2324
|
declare const IS_BROWSER: boolean;
|
|
@@ -1886,7 +2860,7 @@ type InvocationsDetails = {
|
|
|
1886
2860
|
type V3TransactionDetails = {
|
|
1887
2861
|
nonce: BigNumberish;
|
|
1888
2862
|
version: BigNumberish;
|
|
1889
|
-
resourceBounds: ResourceBounds;
|
|
2863
|
+
resourceBounds: ResourceBounds$1;
|
|
1890
2864
|
tip: BigNumberish;
|
|
1891
2865
|
paymasterData: BigNumberish[];
|
|
1892
2866
|
accountDeploymentData: BigNumberish[];
|
|
@@ -2034,6 +3008,52 @@ type RpcProviderOptions = {
|
|
|
2034
3008
|
waitMode?: boolean;
|
|
2035
3009
|
};
|
|
2036
3010
|
|
|
3011
|
+
type Simplify<T> = {
|
|
3012
|
+
[K in keyof T]: T[K];
|
|
3013
|
+
} & {};
|
|
3014
|
+
type RequiredKeysOf<T extends object> = Exclude<{
|
|
3015
|
+
[K in keyof T]: T extends Record<K, T[K]> ? K : never;
|
|
3016
|
+
}[keyof T], undefined>;
|
|
3017
|
+
type ArrayElement<T> = T extends Array<infer U> ? U : never;
|
|
3018
|
+
type MergeProperties<T1 extends Record<any, any>, T2 extends Record<any, any>> = {
|
|
3019
|
+
[K in RequiredKeysOf<T1> & RequiredKeysOf<T2>]: Merge<T1[K], T2[K]>;
|
|
3020
|
+
} & {
|
|
3021
|
+
[K in keyof T1 & keyof T2]?: Merge<T1[K], T2[K]>;
|
|
3022
|
+
} & {
|
|
3023
|
+
[K in Exclude<keyof T1, keyof T2>]?: T1[K];
|
|
3024
|
+
} & {
|
|
3025
|
+
[K in Exclude<keyof T2, keyof T1>]?: T2[K];
|
|
3026
|
+
};
|
|
3027
|
+
type Merge<T1, T2> = Simplify<T1 extends Array<any> ? T2 extends Array<any> ? Array<Merge<ArrayElement<T1>, ArrayElement<T2>>> : T1 : T2 extends Array<any> ? T2 : T1 extends object ? T2 extends object ? MergeProperties<T1, T2> : T1 : T2 extends object ? T2 : T1 | T2>;
|
|
3028
|
+
type BLOCK_HASH = Merge<BLOCK_HASH$2, BLOCK_HASH$1>;
|
|
3029
|
+
type BLOCK_NUMBER = Merge<BLOCK_NUMBER$2, BLOCK_NUMBER$1>;
|
|
3030
|
+
type FELT = Merge<FELT$2, FELT$1>;
|
|
3031
|
+
type TXN_HASH = Merge<TXN_HASH$2, TXN_HASH$1>;
|
|
3032
|
+
type PRICE_UNIT = Merge<PRICE_UNIT$2, PRICE_UNIT$1>;
|
|
3033
|
+
type RESOURCE_PRICE = Merge<RESOURCE_PRICE$2, RESOURCE_PRICE$1>;
|
|
3034
|
+
type SIMULATION_FLAG$1 = Merge<SIMULATION_FLAG$3, SIMULATION_FLAG$2>;
|
|
3035
|
+
type STATE_UPDATE = Merge<STATE_UPDATE$2, STATE_UPDATE$1>;
|
|
3036
|
+
type PENDING_STATE_UPDATE = Merge<PENDING_STATE_UPDATE$2, PENDING_STATE_UPDATE$1>;
|
|
3037
|
+
type INVOKE_TXN_RECEIPT = Merge<INVOKE_TXN_RECEIPT$2, INVOKE_TXN_RECEIPT$1 & BlockHashAndNumber>;
|
|
3038
|
+
type DECLARE_TXN_RECEIPT = Merge<DECLARE_TXN_RECEIPT$2, DECLARE_TXN_RECEIPT$1 & BlockHashAndNumber>;
|
|
3039
|
+
type DEPLOY_ACCOUNT_TXN_RECEIPT = Merge<DEPLOY_ACCOUNT_TXN_RECEIPT$2, DEPLOY_ACCOUNT_TXN_RECEIPT$1 & BlockHashAndNumber>;
|
|
3040
|
+
type L1_HANDLER_TXN_RECEIPT = Merge<L1_HANDLER_TXN_RECEIPT$2, L1_HANDLER_TXN_RECEIPT$1 & BlockHashAndNumber>;
|
|
3041
|
+
type PENDING_INVOKE_TXN_RECEIPT = Merge<PENDING_INVOKE_TXN_RECEIPT$1, INVOKE_TXN_RECEIPT$1>;
|
|
3042
|
+
type PENDING_DECLARE_TXN_RECEIPT = Merge<PENDING_DECLARE_TXN_RECEIPT$1, DECLARE_TXN_RECEIPT$1>;
|
|
3043
|
+
type PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT = Merge<PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT$1, DEPLOY_ACCOUNT_TXN_RECEIPT$1>;
|
|
3044
|
+
type PENDING_L1_HANDLER_TXN_RECEIPT = Merge<PENDING_L1_HANDLER_TXN_RECEIPT$1, L1_HANDLER_TXN_RECEIPT$1>;
|
|
3045
|
+
type BlockWithTxHashes = Merge<BlockWithTxHashes$2, BlockWithTxHashes$1>;
|
|
3046
|
+
type ContractClassPayload = Merge<ContractClass$2, ContractClass$1>;
|
|
3047
|
+
type DeclaredTransaction = Merge<DeclaredTransaction$2, DeclaredTransaction$1>;
|
|
3048
|
+
type FeeEstimate = Merge<FEE_ESTIMATE$1, FEE_ESTIMATE>;
|
|
3049
|
+
type InvokedTransaction = Merge<InvokedTransaction$2, InvokedTransaction$1>;
|
|
3050
|
+
type PendingReceipt = Merge<PendingReceipt$2, PendingReceipt$1>;
|
|
3051
|
+
type Receipt = Merge<Receipt$2, Receipt$1>;
|
|
3052
|
+
type ResourceBounds = Merge<ResourceBounds$2, ResourceBounds$1>;
|
|
3053
|
+
type SimulateTransaction = Merge<SimulateTransaction$2, SimulateTransaction$1>;
|
|
3054
|
+
type TransactionReceipt = Merge<TransactionReceipt$2, TransactionReceipt$1>;
|
|
3055
|
+
type TransactionWithHash = Merge<TransactionWithHash$2, TransactionWithHash$1>;
|
|
3056
|
+
|
|
2037
3057
|
/**
|
|
2038
3058
|
* Common interface response
|
|
2039
3059
|
* Intersection (sequencer response ∩ (∪ rpc responses))
|
|
@@ -2044,7 +3064,7 @@ type PendingBlock = {
|
|
|
2044
3064
|
status: 'PENDING';
|
|
2045
3065
|
parent_hash: BLOCK_HASH;
|
|
2046
3066
|
timestamp: number;
|
|
2047
|
-
sequencer_address:
|
|
3067
|
+
sequencer_address: FELT;
|
|
2048
3068
|
l1_gas_price: RESOURCE_PRICE;
|
|
2049
3069
|
starknet_version: string;
|
|
2050
3070
|
transactions: TXN_HASH[];
|
|
@@ -2072,7 +3092,7 @@ interface EstimateFeeResponse {
|
|
|
2072
3092
|
gas_consumed: bigint;
|
|
2073
3093
|
overall_fee: bigint;
|
|
2074
3094
|
gas_price: bigint;
|
|
2075
|
-
unit:
|
|
3095
|
+
unit: PRICE_UNIT;
|
|
2076
3096
|
suggestedMaxFee: bigint;
|
|
2077
3097
|
resourceBounds: ResourceBounds;
|
|
2078
3098
|
}
|
|
@@ -2080,9 +3100,9 @@ type EstimateFeeResponseBulk = Array<EstimateFeeResponse>;
|
|
|
2080
3100
|
type InvokeFunctionResponse = InvokedTransaction;
|
|
2081
3101
|
type DeclareContractResponse = DeclaredTransaction;
|
|
2082
3102
|
type CallContractResponse = string[];
|
|
2083
|
-
type Storage =
|
|
3103
|
+
type Storage = FELT;
|
|
2084
3104
|
type Nonce = string;
|
|
2085
|
-
type SimulationFlags =
|
|
3105
|
+
type SimulationFlags = Array<SIMULATION_FLAG$1>;
|
|
2086
3106
|
type SimulatedTransaction = SimulateTransaction & {
|
|
2087
3107
|
suggestedMaxFee: bigint;
|
|
2088
3108
|
resourceBounds: ResourceBounds;
|
|
@@ -2117,7 +3137,7 @@ interface UniversalDetails {
|
|
|
2117
3137
|
nonceDataAvailabilityMode?: EDataAvailabilityMode;
|
|
2118
3138
|
feeDataAvailabilityMode?: EDataAvailabilityMode;
|
|
2119
3139
|
version?: BigNumberish;
|
|
2120
|
-
resourceBounds?: ResourceBounds;
|
|
3140
|
+
resourceBounds?: ResourceBounds$1;
|
|
2121
3141
|
skipValidate?: boolean;
|
|
2122
3142
|
}
|
|
2123
3143
|
interface EstimateFeeDetails extends UniversalDetails {
|
|
@@ -2325,6 +3345,7 @@ type index$2_BlockStatus = BlockStatus;
|
|
|
2325
3345
|
declare const index$2_BlockStatus: typeof BlockStatus;
|
|
2326
3346
|
type index$2_BlockTag = BlockTag;
|
|
2327
3347
|
declare const index$2_BlockTag: typeof BlockTag;
|
|
3348
|
+
type index$2_BlockWithTxHashes = BlockWithTxHashes;
|
|
2328
3349
|
type index$2_Builtins = Builtins;
|
|
2329
3350
|
type index$2_ByteArray = ByteArray;
|
|
2330
3351
|
type index$2_ByteCode = ByteCode;
|
|
@@ -2346,6 +3367,7 @@ type index$2_CompilerVersion = CompilerVersion;
|
|
|
2346
3367
|
type index$2_CompleteDeclareContractPayload = CompleteDeclareContractPayload;
|
|
2347
3368
|
type index$2_CompressedProgram = CompressedProgram;
|
|
2348
3369
|
type index$2_ContractClass = ContractClass;
|
|
3370
|
+
type index$2_ContractClassPayload = ContractClassPayload;
|
|
2349
3371
|
type index$2_ContractClassResponse = ContractClassResponse;
|
|
2350
3372
|
type index$2_ContractEntryPointFields = ContractEntryPointFields;
|
|
2351
3373
|
type index$2_ContractFunction = ContractFunction;
|
|
@@ -2378,6 +3400,7 @@ type index$2_EstimateFeeResponse = EstimateFeeResponse;
|
|
|
2378
3400
|
type index$2_EstimateFeeResponseBulk = EstimateFeeResponseBulk;
|
|
2379
3401
|
type index$2_EventAbi = EventAbi;
|
|
2380
3402
|
type index$2_EventEntry = EventEntry;
|
|
3403
|
+
type index$2_FeeEstimate = FeeEstimate;
|
|
2381
3404
|
type index$2_FunctionAbi = FunctionAbi;
|
|
2382
3405
|
type index$2_GetBlockResponse = GetBlockResponse;
|
|
2383
3406
|
type index$2_GetTransactionReceiptResponse = GetTransactionReceiptResponse;
|
|
@@ -2438,6 +3461,7 @@ type index$2_TransactionExecutionStatus = TransactionExecutionStatus;
|
|
|
2438
3461
|
declare const index$2_TransactionExecutionStatus: typeof TransactionExecutionStatus;
|
|
2439
3462
|
type index$2_TransactionFinalityStatus = TransactionFinalityStatus;
|
|
2440
3463
|
declare const index$2_TransactionFinalityStatus: typeof TransactionFinalityStatus;
|
|
3464
|
+
type index$2_TransactionReceipt = TransactionReceipt;
|
|
2441
3465
|
type index$2_TransactionStatus = TransactionStatus;
|
|
2442
3466
|
declare const index$2_TransactionStatus: typeof TransactionStatus;
|
|
2443
3467
|
type index$2_TransactionType = TransactionType;
|
|
@@ -2466,10 +3490,10 @@ type index$2_getEstimateFeeBulkOptions = getEstimateFeeBulkOptions;
|
|
|
2466
3490
|
type index$2_getSimulateTransactionOptions = getSimulateTransactionOptions;
|
|
2467
3491
|
type index$2_waitForTransactionOptions = waitForTransactionOptions;
|
|
2468
3492
|
declare namespace index$2 {
|
|
2469
|
-
export { type index$2_Abi as Abi, type index$2_AbiEntry as AbiEntry, type index$2_AbiEnums as AbiEnums, type index$2_AbiEvents as AbiEvents, type index$2_AbiStructs as AbiStructs, type index$2_AccountInvocationItem as AccountInvocationItem, type index$2_AccountInvocations as AccountInvocations, type index$2_AccountInvocationsFactoryDetails as AccountInvocationsFactoryDetails, type index$2_AllowArray as AllowArray, type index$2_Args as Args, type index$2_ArgsOrCalldata as ArgsOrCalldata, type index$2_ArgsOrCalldataWithOptions as ArgsOrCalldataWithOptions, type index$2_ArraySignatureType as ArraySignatureType, type index$2_AsyncContractFunction as AsyncContractFunction, type index$2_BigNumberish as BigNumberish, type Block$1 as Block, type index$2_BlockIdentifier as BlockIdentifier, type index$2_BlockNumber as BlockNumber, index$2_BlockStatus as BlockStatus, index$2_BlockTag as BlockTag, type index$2_Builtins as Builtins, type index$2_ByteArray as ByteArray, type index$2_ByteCode as ByteCode, type index$2_Cairo1Event as Cairo1Event, type index$2_CairoAssembly as CairoAssembly, type index$2_CairoContract as CairoContract, type index$2_CairoEnum as CairoEnum, type index$2_CairoVersion as CairoVersion, type index$2_Call as Call, type index$2_CallContractResponse as CallContractResponse, type index$2_CallDetails as CallDetails, type index$2_CallOptions as CallOptions, type index$2_CallStruct as CallStruct, type index$2_Calldata as Calldata, type index$2_CompiledContract as CompiledContract, type index$2_CompiledSierra as CompiledSierra, type index$2_CompiledSierraCasm as CompiledSierraCasm, type index$2_CompilerVersion as CompilerVersion, type index$2_CompleteDeclareContractPayload as CompleteDeclareContractPayload, type index$2_CompressedProgram as CompressedProgram, type index$2_ContractClass as ContractClass, type index$2_ContractClassResponse as ContractClassResponse, type index$2_ContractEntryPointFields as ContractEntryPointFields, type index$2_ContractFunction as ContractFunction, type index$2_ContractOptions as ContractOptions, type index$2_ContractVersion as ContractVersion, type index$2_DeclareAndDeployContractPayload as DeclareAndDeployContractPayload, type index$2_DeclareContractPayload as DeclareContractPayload, type index$2_DeclareContractResponse as DeclareContractResponse, type index$2_DeclareContractTransaction as DeclareContractTransaction, type index$2_DeclareDeployUDCResponse as DeclareDeployUDCResponse, type index$2_DeclareSignerDetails as DeclareSignerDetails, type index$2_DeclareTransactionReceiptResponse as DeclareTransactionReceiptResponse, type index$2_DeployAccountContractPayload as DeployAccountContractPayload, type index$2_DeployAccountContractTransaction as DeployAccountContractTransaction, type index$2_DeployAccountSignerDetails as DeployAccountSignerDetails, type index$2_DeployAccountTransactionReceiptResponse as DeployAccountTransactionReceiptResponse, type index$2_DeployContractResponse as DeployContractResponse, type index$2_DeployContractUDCResponse as DeployContractUDCResponse, type index$2_DeployTransactionReceiptResponse as DeployTransactionReceiptResponse, type index$2_Details as Details, index$2_EntryPointType as EntryPointType, type index$2_EntryPointsByType as EntryPointsByType, type index$2_EnumAbi as EnumAbi, type index$2_EstimateFee as EstimateFee, type index$2_EstimateFeeAction as EstimateFeeAction, type index$2_EstimateFeeBulk as EstimateFeeBulk, type index$2_EstimateFeeDetails as EstimateFeeDetails, type index$2_EstimateFeeResponse as EstimateFeeResponse, type index$2_EstimateFeeResponseBulk as EstimateFeeResponseBulk, type index$2_EventAbi as EventAbi, type index$2_EventEntry as EventEntry, type index$2_FunctionAbi as FunctionAbi, type index$2_GetBlockResponse as GetBlockResponse, type index$2_GetTransactionReceiptResponse as GetTransactionReceiptResponse, type index$2_GetTransactionResponse as GetTransactionResponse, type index$2_HexCalldata as HexCalldata, type index$2_Invocation as Invocation, type index$2_Invocations as Invocations, type index$2_InvocationsDetails as InvocationsDetails, type index$2_InvocationsDetailsWithNonce as InvocationsDetailsWithNonce, type index$2_InvocationsSignerDetails as InvocationsSignerDetails, type index$2_InvokeFunctionResponse as InvokeFunctionResponse, type index$2_InvokeOptions as InvokeOptions, type index$2_InvokeTransactionReceiptResponse as InvokeTransactionReceiptResponse, type index$2_L1HandlerTransactionReceiptResponse as L1HandlerTransactionReceiptResponse, type index$2_LegacyCompiledContract as LegacyCompiledContract, type index$2_LegacyContractClass as LegacyContractClass, type index$2_LegacyEvent as LegacyEvent, index$2_Literal as Literal, type index$2_MultiDeployContractResponse as MultiDeployContractResponse, type index$2_MultiType as MultiType, type index$2_Nonce as Nonce, type index$2_OptionalPayload as OptionalPayload, type index$2_ParsedEvent as ParsedEvent, type index$2_ParsedEvents as ParsedEvents, type index$2_ParsedStruct as ParsedStruct, type index$2_PendingBlock as PendingBlock, type index$2_PendingStateUpdate as PendingStateUpdate, type index$2_Program as Program, type index$2_ProviderOptions as ProviderOptions, type index$2_PythonicHints as PythonicHints, index$3 as RPC, type index$2_RawArgs as RawArgs, type index$2_RawArgsArray as RawArgsArray, type index$2_RawArgsObject as RawArgsObject, type index$2_RawCalldata as RawCalldata, type index$2_Result as Result, type index$2_RpcProviderOptions as RpcProviderOptions, index$2_SIMULATION_FLAG as SIMULATION_FLAG, type index$2_SierraContractClass as SierraContractClass, type index$2_SierraContractEntryPointFields as SierraContractEntryPointFields, type index$2_SierraEntryPointsByType as SierraEntryPointsByType, type index$2_SierraProgramDebugInfo as SierraProgramDebugInfo, type index$2_Signature as Signature, type index$2_SimulateTransactionDetails as SimulateTransactionDetails, type index$2_SimulateTransactionResponse as SimulateTransactionResponse, type index$2_SimulatedTransaction as SimulatedTransaction, type index$2_SimulationFlags as SimulationFlags, type index$2_StarkNetDomain as StarkNetDomain, type index$2_StarkNetEnumType as StarkNetEnumType, type index$2_StarkNetMerkleType as StarkNetMerkleType, type index$2_StarkNetType as StarkNetType, type index$2_StateUpdate as StateUpdate, type index$2_StateUpdateResponse as StateUpdateResponse, type index$2_Storage as Storage, type index$2_StructAbi as StructAbi, index$2_TransactionExecutionStatus as TransactionExecutionStatus, index$2_TransactionFinalityStatus as TransactionFinalityStatus, index$2_TransactionStatus as TransactionStatus, index$2_TransactionType as TransactionType, type index$2_Tupled as Tupled, type index$2_TypedData as TypedData, index$2_TypedDataRevision as TypedDataRevision, index$2_Uint as Uint, type index$2_Uint256 as Uint256, type index$2_UniversalDeployerContractPayload as UniversalDeployerContractPayload, type index$2_UniversalDetails as UniversalDetails, type index$2_V2DeclareSignerDetails as V2DeclareSignerDetails, type index$2_V2DeployAccountSignerDetails as V2DeployAccountSignerDetails, type index$2_V2InvocationsSignerDetails as V2InvocationsSignerDetails, type index$2_V3DeclareSignerDetails as V3DeclareSignerDetails, type index$2_V3DeployAccountSignerDetails as V3DeployAccountSignerDetails, type index$2_V3InvocationsSignerDetails as V3InvocationsSignerDetails, type index$2_V3TransactionDetails as V3TransactionDetails, index$2_ValidateType as ValidateType, type index$2_WeierstrassSignatureType as WeierstrassSignatureType, type index$2_getContractVersionOptions as getContractVersionOptions, type index$2_getEstimateFeeBulkOptions as getEstimateFeeBulkOptions, type index$2_getSimulateTransactionOptions as getSimulateTransactionOptions, type index$2_waitForTransactionOptions as waitForTransactionOptions };
|
|
3493
|
+
export { type index$2_Abi as Abi, type index$2_AbiEntry as AbiEntry, type index$2_AbiEnums as AbiEnums, type index$2_AbiEvents as AbiEvents, type index$2_AbiStructs as AbiStructs, type index$2_AccountInvocationItem as AccountInvocationItem, type index$2_AccountInvocations as AccountInvocations, type index$2_AccountInvocationsFactoryDetails as AccountInvocationsFactoryDetails, type index$2_AllowArray as AllowArray, type index$2_Args as Args, type index$2_ArgsOrCalldata as ArgsOrCalldata, type index$2_ArgsOrCalldataWithOptions as ArgsOrCalldataWithOptions, type index$2_ArraySignatureType as ArraySignatureType, type index$2_AsyncContractFunction as AsyncContractFunction, type index$2_BigNumberish as BigNumberish, type Block$1 as Block, type index$2_BlockIdentifier as BlockIdentifier, type index$2_BlockNumber as BlockNumber, index$2_BlockStatus as BlockStatus, index$2_BlockTag as BlockTag, type index$2_BlockWithTxHashes as BlockWithTxHashes, type index$2_Builtins as Builtins, type index$2_ByteArray as ByteArray, type index$2_ByteCode as ByteCode, type index$2_Cairo1Event as Cairo1Event, type index$2_CairoAssembly as CairoAssembly, type index$2_CairoContract as CairoContract, type index$2_CairoEnum as CairoEnum, type index$2_CairoVersion as CairoVersion, type index$2_Call as Call, type index$2_CallContractResponse as CallContractResponse, type index$2_CallDetails as CallDetails, type index$2_CallOptions as CallOptions, type index$2_CallStruct as CallStruct, type index$2_Calldata as Calldata, type index$2_CompiledContract as CompiledContract, type index$2_CompiledSierra as CompiledSierra, type index$2_CompiledSierraCasm as CompiledSierraCasm, type index$2_CompilerVersion as CompilerVersion, type index$2_CompleteDeclareContractPayload as CompleteDeclareContractPayload, type index$2_CompressedProgram as CompressedProgram, type index$2_ContractClass as ContractClass, type index$2_ContractClassPayload as ContractClassPayload, type index$2_ContractClassResponse as ContractClassResponse, type index$2_ContractEntryPointFields as ContractEntryPointFields, type index$2_ContractFunction as ContractFunction, type index$2_ContractOptions as ContractOptions, type index$2_ContractVersion as ContractVersion, type index$2_DeclareAndDeployContractPayload as DeclareAndDeployContractPayload, type index$2_DeclareContractPayload as DeclareContractPayload, type index$2_DeclareContractResponse as DeclareContractResponse, type index$2_DeclareContractTransaction as DeclareContractTransaction, type index$2_DeclareDeployUDCResponse as DeclareDeployUDCResponse, type index$2_DeclareSignerDetails as DeclareSignerDetails, type index$2_DeclareTransactionReceiptResponse as DeclareTransactionReceiptResponse, type index$2_DeployAccountContractPayload as DeployAccountContractPayload, type index$2_DeployAccountContractTransaction as DeployAccountContractTransaction, type index$2_DeployAccountSignerDetails as DeployAccountSignerDetails, type index$2_DeployAccountTransactionReceiptResponse as DeployAccountTransactionReceiptResponse, type index$2_DeployContractResponse as DeployContractResponse, type index$2_DeployContractUDCResponse as DeployContractUDCResponse, type index$2_DeployTransactionReceiptResponse as DeployTransactionReceiptResponse, type index$2_Details as Details, index$2_EntryPointType as EntryPointType, type index$2_EntryPointsByType as EntryPointsByType, type index$2_EnumAbi as EnumAbi, type index$2_EstimateFee as EstimateFee, type index$2_EstimateFeeAction as EstimateFeeAction, type index$2_EstimateFeeBulk as EstimateFeeBulk, type index$2_EstimateFeeDetails as EstimateFeeDetails, type index$2_EstimateFeeResponse as EstimateFeeResponse, type index$2_EstimateFeeResponseBulk as EstimateFeeResponseBulk, type index$2_EventAbi as EventAbi, type index$2_EventEntry as EventEntry, type index$2_FeeEstimate as FeeEstimate, type index$2_FunctionAbi as FunctionAbi, type index$2_GetBlockResponse as GetBlockResponse, type index$2_GetTransactionReceiptResponse as GetTransactionReceiptResponse, type index$2_GetTransactionResponse as GetTransactionResponse, type index$2_HexCalldata as HexCalldata, type index$2_Invocation as Invocation, type index$2_Invocations as Invocations, type index$2_InvocationsDetails as InvocationsDetails, type index$2_InvocationsDetailsWithNonce as InvocationsDetailsWithNonce, type index$2_InvocationsSignerDetails as InvocationsSignerDetails, type index$2_InvokeFunctionResponse as InvokeFunctionResponse, type index$2_InvokeOptions as InvokeOptions, type index$2_InvokeTransactionReceiptResponse as InvokeTransactionReceiptResponse, type index$2_L1HandlerTransactionReceiptResponse as L1HandlerTransactionReceiptResponse, type index$2_LegacyCompiledContract as LegacyCompiledContract, type index$2_LegacyContractClass as LegacyContractClass, type index$2_LegacyEvent as LegacyEvent, index$2_Literal as Literal, type index$2_MultiDeployContractResponse as MultiDeployContractResponse, type index$2_MultiType as MultiType, type index$2_Nonce as Nonce, type index$2_OptionalPayload as OptionalPayload, type index$2_ParsedEvent as ParsedEvent, type index$2_ParsedEvents as ParsedEvents, type index$2_ParsedStruct as ParsedStruct, type index$2_PendingBlock as PendingBlock, type index$2_PendingStateUpdate as PendingStateUpdate, type index$2_Program as Program, type index$2_ProviderOptions as ProviderOptions, type index$2_PythonicHints as PythonicHints, index$3 as RPC, type index$2_RawArgs as RawArgs, type index$2_RawArgsArray as RawArgsArray, type index$2_RawArgsObject as RawArgsObject, type index$2_RawCalldata as RawCalldata, type index$2_Result as Result, type index$2_RpcProviderOptions as RpcProviderOptions, index$2_SIMULATION_FLAG as SIMULATION_FLAG, type index$2_SierraContractClass as SierraContractClass, type index$2_SierraContractEntryPointFields as SierraContractEntryPointFields, type index$2_SierraEntryPointsByType as SierraEntryPointsByType, type index$2_SierraProgramDebugInfo as SierraProgramDebugInfo, type index$2_Signature as Signature, type index$2_SimulateTransactionDetails as SimulateTransactionDetails, type index$2_SimulateTransactionResponse as SimulateTransactionResponse, type index$2_SimulatedTransaction as SimulatedTransaction, type index$2_SimulationFlags as SimulationFlags, type index$2_StarkNetDomain as StarkNetDomain, type index$2_StarkNetEnumType as StarkNetEnumType, type index$2_StarkNetMerkleType as StarkNetMerkleType, type index$2_StarkNetType as StarkNetType, type index$2_StateUpdate as StateUpdate, type index$2_StateUpdateResponse as StateUpdateResponse, type index$2_Storage as Storage, type index$2_StructAbi as StructAbi, index$2_TransactionExecutionStatus as TransactionExecutionStatus, index$2_TransactionFinalityStatus as TransactionFinalityStatus, type index$2_TransactionReceipt as TransactionReceipt, index$2_TransactionStatus as TransactionStatus, index$2_TransactionType as TransactionType, type index$2_Tupled as Tupled, type index$2_TypedData as TypedData, index$2_TypedDataRevision as TypedDataRevision, index$2_Uint as Uint, type index$2_Uint256 as Uint256, type index$2_UniversalDeployerContractPayload as UniversalDeployerContractPayload, type index$2_UniversalDetails as UniversalDetails, type index$2_V2DeclareSignerDetails as V2DeclareSignerDetails, type index$2_V2DeployAccountSignerDetails as V2DeployAccountSignerDetails, type index$2_V2InvocationsSignerDetails as V2InvocationsSignerDetails, type index$2_V3DeclareSignerDetails as V3DeclareSignerDetails, type index$2_V3DeployAccountSignerDetails as V3DeployAccountSignerDetails, type index$2_V3InvocationsSignerDetails as V3InvocationsSignerDetails, type index$2_V3TransactionDetails as V3TransactionDetails, index$2_ValidateType as ValidateType, type index$2_WeierstrassSignatureType as WeierstrassSignatureType, type index$2_getContractVersionOptions as getContractVersionOptions, type index$2_getEstimateFeeBulkOptions as getEstimateFeeBulkOptions, type index$2_getSimulateTransactionOptions as getSimulateTransactionOptions, type index$2_waitForTransactionOptions as waitForTransactionOptions };
|
|
2470
3494
|
}
|
|
2471
3495
|
|
|
2472
|
-
declare class RpcChannel {
|
|
3496
|
+
declare class RpcChannel$1 {
|
|
2473
3497
|
nodeUrl: string;
|
|
2474
3498
|
headers: object;
|
|
2475
3499
|
readonly retries: number;
|
|
@@ -2481,6 +3505,85 @@ declare class RpcChannel {
|
|
|
2481
3505
|
constructor(optionsOrProvider?: RpcProviderOptions);
|
|
2482
3506
|
fetch(method: string, params?: object, id?: string | number): any;
|
|
2483
3507
|
protected errorHandler(method: string, params: any, rpcError?: Error$1, otherError?: any): void;
|
|
3508
|
+
protected fetchEndpoint<T extends keyof Methods$1>(method: T, params?: Methods$1[T]['params']): Promise<Methods$1[T]['result']>;
|
|
3509
|
+
getChainId(): Promise<StarknetChainId>;
|
|
3510
|
+
getSpecVersion(): Promise<string>;
|
|
3511
|
+
getNonceForAddress(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
3512
|
+
/**
|
|
3513
|
+
* Get the most recent accepted block hash and number
|
|
3514
|
+
*/
|
|
3515
|
+
getBlockLatestAccepted(): Promise<BlockHashAndNumber$1>;
|
|
3516
|
+
/**
|
|
3517
|
+
* Get the most recent accepted block number
|
|
3518
|
+
* redundant use getBlockLatestAccepted();
|
|
3519
|
+
* @returns Number of the latest block
|
|
3520
|
+
*/
|
|
3521
|
+
getBlockNumber(): Promise<number>;
|
|
3522
|
+
getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxHashes$2>;
|
|
3523
|
+
getBlockWithTxs(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxs$1>;
|
|
3524
|
+
getBlockStateUpdate(blockIdentifier?: BlockIdentifier): Promise<StateUpdate$2>;
|
|
3525
|
+
getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier): Promise<BlockTransactionsTraces$1>;
|
|
3526
|
+
getBlockTransactionCount(blockIdentifier?: BlockIdentifier): Promise<number>;
|
|
3527
|
+
getTransactionByHash(txHash: BigNumberish): Promise<TransactionWithHash$2>;
|
|
3528
|
+
getTransactionByBlockIdAndIndex(blockIdentifier: BlockIdentifier, index: number): Promise<TransactionWithHash$2>;
|
|
3529
|
+
getTransactionReceipt(txHash: BigNumberish): Promise<TransactionReceipt$2>;
|
|
3530
|
+
getTransactionTrace(txHash: BigNumberish): Promise<TRANSACTION_TRACE$1>;
|
|
3531
|
+
/**
|
|
3532
|
+
* Get the status of a transaction
|
|
3533
|
+
*/
|
|
3534
|
+
getTransactionStatus(transactionHash: BigNumberish): Promise<TransactionStatus$2>;
|
|
3535
|
+
/**
|
|
3536
|
+
* @param invocations AccountInvocations
|
|
3537
|
+
* @param simulateTransactionOptions blockIdentifier and flags to skip validation and fee charge<br/>
|
|
3538
|
+
* - blockIdentifier<br/>
|
|
3539
|
+
* - skipValidate (default false)<br/>
|
|
3540
|
+
* - skipFeeCharge (default true)<br/>
|
|
3541
|
+
*/
|
|
3542
|
+
simulateTransaction(invocations: AccountInvocations, { blockIdentifier, skipValidate, skipFeeCharge, }?: getSimulateTransactionOptions): Promise<SimulateTransactionResponse$2>;
|
|
3543
|
+
waitForTransaction(txHash: BigNumberish, options?: waitForTransactionOptions): Promise<TXN_RECEIPT$1>;
|
|
3544
|
+
getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
3545
|
+
getClassHashAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
3546
|
+
getClass(classHash: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<ContractClass$2>;
|
|
3547
|
+
getClassAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<ContractClass$2>;
|
|
3548
|
+
getEstimateFee(invocations: AccountInvocations, { blockIdentifier, skipValidate }: getEstimateFeeBulkOptions): Promise<FEE_ESTIMATE$1[]>;
|
|
3549
|
+
invoke(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<InvokedTransaction$2>;
|
|
3550
|
+
declare({ contract, signature, senderAddress, compiledClassHash }: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<TXN_RECEIPT$1 | DeclaredTransaction$2>;
|
|
3551
|
+
deployAccount({ classHash, constructorCalldata, addressSalt, signature }: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<TXN_RECEIPT$1 | DeployedAccountTransaction$1>;
|
|
3552
|
+
callContract(call: Call, blockIdentifier?: BlockIdentifier): Promise<string[]>;
|
|
3553
|
+
/**
|
|
3554
|
+
* NEW: Estimate the fee for a message from L1
|
|
3555
|
+
* @param message Message From L1
|
|
3556
|
+
*/
|
|
3557
|
+
estimateMessageFee(message: L1Message$1, blockIdentifier?: BlockIdentifier): Promise<FEE_ESTIMATE$1>;
|
|
3558
|
+
/**
|
|
3559
|
+
* Returns an object about the sync status, or false if the node is not synching
|
|
3560
|
+
* @returns Object with the stats data
|
|
3561
|
+
*/
|
|
3562
|
+
getSyncingStats(): Promise<Syncing$1>;
|
|
3563
|
+
/**
|
|
3564
|
+
* Returns all events matching the given filter
|
|
3565
|
+
* @returns events and the pagination of the events
|
|
3566
|
+
*/
|
|
3567
|
+
getEvents(eventFilter: EventFilter$1): Promise<EVENTS_CHUNK$1>;
|
|
3568
|
+
buildTransaction(invocation: AccountInvocationItem, versionType?: 'fee' | 'transaction'): BaseTransaction$1;
|
|
3569
|
+
}
|
|
3570
|
+
|
|
3571
|
+
declare namespace rpc_0_6 {
|
|
3572
|
+
export { RpcChannel$1 as RpcChannel };
|
|
3573
|
+
}
|
|
3574
|
+
|
|
3575
|
+
declare class RpcChannel {
|
|
3576
|
+
nodeUrl: string;
|
|
3577
|
+
headers: object;
|
|
3578
|
+
readonly retries: number;
|
|
3579
|
+
requestId: number;
|
|
3580
|
+
readonly blockIdentifier: BlockIdentifier;
|
|
3581
|
+
private chainId?;
|
|
3582
|
+
private speckVersion?;
|
|
3583
|
+
readonly waitMode: Boolean;
|
|
3584
|
+
constructor(optionsOrProvider?: RpcProviderOptions);
|
|
3585
|
+
fetch(method: string, params?: object, id?: string | number): any;
|
|
3586
|
+
protected errorHandler(method: string, params: any, rpcError?: Error$1, otherError?: any): void;
|
|
2484
3587
|
protected fetchEndpoint<T extends keyof Methods>(method: T, params?: Methods[T]['params']): Promise<Methods[T]['result']>;
|
|
2485
3588
|
getChainId(): Promise<StarknetChainId>;
|
|
2486
3589
|
getSpecVersion(): Promise<string>;
|
|
@@ -2495,14 +3598,15 @@ declare class RpcChannel {
|
|
|
2495
3598
|
* @returns Number of the latest block
|
|
2496
3599
|
*/
|
|
2497
3600
|
getBlockNumber(): Promise<number>;
|
|
2498
|
-
getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxHashes>;
|
|
3601
|
+
getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxHashes$1>;
|
|
2499
3602
|
getBlockWithTxs(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxs>;
|
|
3603
|
+
getBlockWithReceipts(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxReceipts>;
|
|
2500
3604
|
getBlockStateUpdate(blockIdentifier?: BlockIdentifier): Promise<StateUpdate$1>;
|
|
2501
3605
|
getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier): Promise<BlockTransactionsTraces>;
|
|
2502
3606
|
getBlockTransactionCount(blockIdentifier?: BlockIdentifier): Promise<number>;
|
|
2503
|
-
getTransactionByHash(txHash: BigNumberish): Promise<TransactionWithHash>;
|
|
2504
|
-
getTransactionByBlockIdAndIndex(blockIdentifier: BlockIdentifier, index: number): Promise<TransactionWithHash>;
|
|
2505
|
-
getTransactionReceipt(txHash: BigNumberish): Promise<
|
|
3607
|
+
getTransactionByHash(txHash: BigNumberish): Promise<TransactionWithHash$1>;
|
|
3608
|
+
getTransactionByBlockIdAndIndex(blockIdentifier: BlockIdentifier, index: number): Promise<TransactionWithHash$1>;
|
|
3609
|
+
getTransactionReceipt(txHash: BigNumberish): Promise<TXN_RECEIPT_WITH_BLOCK_INFO>;
|
|
2506
3610
|
getTransactionTrace(txHash: BigNumberish): Promise<TRANSACTION_TRACE>;
|
|
2507
3611
|
/**
|
|
2508
3612
|
* Get the status of a transaction
|
|
@@ -2522,8 +3626,8 @@ declare class RpcChannel {
|
|
|
2522
3626
|
getClass(classHash: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<ContractClass$1>;
|
|
2523
3627
|
getClassAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<ContractClass$1>;
|
|
2524
3628
|
getEstimateFee(invocations: AccountInvocations, { blockIdentifier, skipValidate }: getEstimateFeeBulkOptions): Promise<FEE_ESTIMATE[]>;
|
|
2525
|
-
invoke(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<InvokedTransaction>;
|
|
2526
|
-
declare({ contract, signature, senderAddress, compiledClassHash }: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<TXN_RECEIPT | DeclaredTransaction>;
|
|
3629
|
+
invoke(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<InvokedTransaction$1>;
|
|
3630
|
+
declare({ contract, signature, senderAddress, compiledClassHash }: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<TXN_RECEIPT | DeclaredTransaction$1>;
|
|
2527
3631
|
deployAccount({ classHash, constructorCalldata, addressSalt, signature }: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<TXN_RECEIPT | DeployedAccountTransaction>;
|
|
2528
3632
|
callContract(call: Call, blockIdentifier?: BlockIdentifier): Promise<string[]>;
|
|
2529
3633
|
/**
|
|
@@ -2544,8 +3648,14 @@ declare class RpcChannel {
|
|
|
2544
3648
|
buildTransaction(invocation: AccountInvocationItem, versionType?: 'fee' | 'transaction'): BaseTransaction;
|
|
2545
3649
|
}
|
|
2546
3650
|
|
|
3651
|
+
type rpc_0_7_RpcChannel = RpcChannel;
|
|
3652
|
+
declare const rpc_0_7_RpcChannel: typeof RpcChannel;
|
|
3653
|
+
declare namespace rpc_0_7 {
|
|
3654
|
+
export { rpc_0_7_RpcChannel as RpcChannel };
|
|
3655
|
+
}
|
|
3656
|
+
|
|
2547
3657
|
declare abstract class ProviderInterface {
|
|
2548
|
-
abstract channel: RpcChannel;
|
|
3658
|
+
abstract channel: RpcChannel | RpcChannel$1;
|
|
2549
3659
|
/**
|
|
2550
3660
|
* Gets the Starknet chain Id
|
|
2551
3661
|
*
|
|
@@ -2786,7 +3896,7 @@ declare abstract class ProviderInterface {
|
|
|
2786
3896
|
|
|
2787
3897
|
declare class RpcProvider$1 implements ProviderInterface {
|
|
2788
3898
|
private responseParser;
|
|
2789
|
-
channel: RpcChannel;
|
|
3899
|
+
channel: RpcChannel | RpcChannel$1;
|
|
2790
3900
|
constructor(optionsOrProvider?: RpcProviderOptions | ProviderInterface | RpcProvider$1);
|
|
2791
3901
|
fetch(method: string, params?: object, id?: string | number): any;
|
|
2792
3902
|
getChainId(): Promise<StarknetChainId>;
|
|
@@ -2799,15 +3909,16 @@ declare class RpcProvider$1 implements ProviderInterface {
|
|
|
2799
3909
|
/**
|
|
2800
3910
|
* Get the most recent accepted block hash and number
|
|
2801
3911
|
*/
|
|
2802
|
-
getBlockLatestAccepted(): Promise<BlockHashAndNumber>;
|
|
3912
|
+
getBlockLatestAccepted(): Promise<BlockHashAndNumber$1>;
|
|
2803
3913
|
/**
|
|
2804
3914
|
* Get the most recent accepted block number
|
|
2805
3915
|
* redundant use getBlockLatestAccepted();
|
|
2806
3916
|
* @returns Number of the latest block
|
|
2807
3917
|
*/
|
|
2808
3918
|
getBlockNumber(): Promise<number>;
|
|
2809
|
-
getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxHashes>;
|
|
2810
|
-
getBlockWithTxs(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxs>;
|
|
3919
|
+
getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxHashes$2>;
|
|
3920
|
+
getBlockWithTxs(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxs$1>;
|
|
3921
|
+
getBlockWithReceipts(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxReceipts>;
|
|
2811
3922
|
getStateUpdate: {
|
|
2812
3923
|
(): Promise<PendingStateUpdate>;
|
|
2813
3924
|
(blockIdentifier: 'pending'): Promise<PendingStateUpdate>;
|
|
@@ -2818,23 +3929,1737 @@ declare class RpcProvider$1 implements ProviderInterface {
|
|
|
2818
3929
|
getBlockStateUpdate(blockIdentifier: 'pending'): Promise<PendingStateUpdate>;
|
|
2819
3930
|
getBlockStateUpdate(blockIdentifier: 'latest'): Promise<StateUpdate>;
|
|
2820
3931
|
getBlockStateUpdate(blockIdentifier?: BlockIdentifier): Promise<StateUpdateResponse>;
|
|
2821
|
-
getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier): Promise<BlockTransactionsTraces>;
|
|
3932
|
+
getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier): Promise<BlockTransactionsTraces$1>;
|
|
2822
3933
|
getBlockTransactionCount(blockIdentifier?: BlockIdentifier): Promise<number>;
|
|
2823
3934
|
/**
|
|
2824
3935
|
* Return transactions from pending block
|
|
2825
3936
|
* @deprecated Instead use getBlock(BlockTag.pending); (will be removed in next minor version)
|
|
2826
3937
|
* Utility method, same result can be achieved using getBlockWithTxHashes(BlockTag.pending);
|
|
2827
3938
|
*/
|
|
2828
|
-
getPendingTransactions(): Promise<TransactionWithHash[]>;
|
|
2829
|
-
getTransaction(txHash: BigNumberish): Promise<TransactionWithHash>;
|
|
2830
|
-
getTransactionByHash(txHash: BigNumberish): Promise<TransactionWithHash>;
|
|
2831
|
-
getTransactionByBlockIdAndIndex(blockIdentifier: BlockIdentifier, index: number): Promise<TransactionWithHash>;
|
|
2832
|
-
getTransactionReceipt(txHash: BigNumberish): Promise<
|
|
2833
|
-
|
|
3939
|
+
getPendingTransactions(): Promise<TransactionWithHash$2[]>;
|
|
3940
|
+
getTransaction(txHash: BigNumberish): Promise<TransactionWithHash$2>;
|
|
3941
|
+
getTransactionByHash(txHash: BigNumberish): Promise<TransactionWithHash$2>;
|
|
3942
|
+
getTransactionByBlockIdAndIndex(blockIdentifier: BlockIdentifier, index: number): Promise<TransactionWithHash$2>;
|
|
3943
|
+
getTransactionReceipt(txHash: BigNumberish): Promise<{
|
|
3944
|
+
type: "INVOKE";
|
|
3945
|
+
transaction_hash: string;
|
|
3946
|
+
actual_fee: {
|
|
3947
|
+
amount: string;
|
|
3948
|
+
unit: "WEI" | "FRI";
|
|
3949
|
+
};
|
|
3950
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
3951
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
3952
|
+
messages_sent: {
|
|
3953
|
+
from_address: string;
|
|
3954
|
+
to_address: string;
|
|
3955
|
+
payload: string[];
|
|
3956
|
+
}[];
|
|
3957
|
+
events: {
|
|
3958
|
+
data: string[];
|
|
3959
|
+
from_address: string;
|
|
3960
|
+
keys: string[];
|
|
3961
|
+
}[];
|
|
3962
|
+
execution_resources: {
|
|
3963
|
+
steps: number;
|
|
3964
|
+
memory_holes?: number | undefined;
|
|
3965
|
+
range_check_builtin_applications?: number | undefined;
|
|
3966
|
+
pedersen_builtin_applications?: number | undefined;
|
|
3967
|
+
poseidon_builtin_applications?: number | undefined;
|
|
3968
|
+
ec_op_builtin_applications?: number | undefined;
|
|
3969
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
3970
|
+
bitwise_builtin_applications?: number | undefined;
|
|
3971
|
+
keccak_builtin_applications?: number | undefined;
|
|
3972
|
+
segment_arena_builtin?: number | undefined;
|
|
3973
|
+
data_availability?: {
|
|
3974
|
+
l1_gas: number;
|
|
3975
|
+
l1_data_gas: number;
|
|
3976
|
+
} | undefined;
|
|
3977
|
+
};
|
|
3978
|
+
revert_reason?: string | undefined;
|
|
3979
|
+
} | {
|
|
3980
|
+
type: "DECLARE";
|
|
3981
|
+
transaction_hash: string;
|
|
3982
|
+
actual_fee: {
|
|
3983
|
+
amount: string;
|
|
3984
|
+
unit: "WEI" | "FRI";
|
|
3985
|
+
};
|
|
3986
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
3987
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
3988
|
+
messages_sent: {
|
|
3989
|
+
from_address: string;
|
|
3990
|
+
to_address: string;
|
|
3991
|
+
payload: string[];
|
|
3992
|
+
}[];
|
|
3993
|
+
events: {
|
|
3994
|
+
data: string[];
|
|
3995
|
+
from_address: string;
|
|
3996
|
+
keys: string[];
|
|
3997
|
+
}[];
|
|
3998
|
+
execution_resources: {
|
|
3999
|
+
steps: number;
|
|
4000
|
+
memory_holes?: number | undefined;
|
|
4001
|
+
range_check_builtin_applications?: number | undefined;
|
|
4002
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4003
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4004
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4005
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4006
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4007
|
+
keccak_builtin_applications?: number | undefined;
|
|
4008
|
+
segment_arena_builtin?: number | undefined;
|
|
4009
|
+
data_availability?: {
|
|
4010
|
+
l1_gas: number;
|
|
4011
|
+
l1_data_gas: number;
|
|
4012
|
+
} | undefined;
|
|
4013
|
+
};
|
|
4014
|
+
revert_reason?: string | undefined;
|
|
4015
|
+
} | {
|
|
4016
|
+
contract_address: string;
|
|
4017
|
+
type: "DEPLOY_ACCOUNT";
|
|
4018
|
+
transaction_hash: string;
|
|
4019
|
+
actual_fee: {
|
|
4020
|
+
amount: string;
|
|
4021
|
+
unit: "WEI" | "FRI";
|
|
4022
|
+
};
|
|
4023
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4024
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4025
|
+
messages_sent: {
|
|
4026
|
+
from_address: string;
|
|
4027
|
+
to_address: string;
|
|
4028
|
+
payload: string[];
|
|
4029
|
+
}[];
|
|
4030
|
+
events: {
|
|
4031
|
+
data: string[];
|
|
4032
|
+
from_address: string;
|
|
4033
|
+
keys: string[];
|
|
4034
|
+
}[];
|
|
4035
|
+
execution_resources: {
|
|
4036
|
+
steps: number;
|
|
4037
|
+
memory_holes?: number | undefined;
|
|
4038
|
+
range_check_builtin_applications?: number | undefined;
|
|
4039
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4040
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4041
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4042
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4043
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4044
|
+
keccak_builtin_applications?: number | undefined;
|
|
4045
|
+
segment_arena_builtin?: number | undefined;
|
|
4046
|
+
data_availability?: {
|
|
4047
|
+
l1_gas: number;
|
|
4048
|
+
l1_data_gas: number;
|
|
4049
|
+
} | undefined;
|
|
4050
|
+
};
|
|
4051
|
+
revert_reason?: string | undefined;
|
|
4052
|
+
} | {
|
|
4053
|
+
type: "L1_HANDLER";
|
|
4054
|
+
transaction_hash: string;
|
|
4055
|
+
actual_fee: {
|
|
4056
|
+
amount: string;
|
|
4057
|
+
unit: "WEI" | "FRI";
|
|
4058
|
+
};
|
|
4059
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4060
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4061
|
+
messages_sent: {
|
|
4062
|
+
from_address: string;
|
|
4063
|
+
to_address: string;
|
|
4064
|
+
payload: string[];
|
|
4065
|
+
}[];
|
|
4066
|
+
events: {
|
|
4067
|
+
data: string[];
|
|
4068
|
+
from_address: string;
|
|
4069
|
+
keys: string[];
|
|
4070
|
+
}[];
|
|
4071
|
+
execution_resources: {
|
|
4072
|
+
steps: number;
|
|
4073
|
+
memory_holes?: number | undefined;
|
|
4074
|
+
range_check_builtin_applications?: number | undefined;
|
|
4075
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4076
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4077
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4078
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4079
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4080
|
+
keccak_builtin_applications?: number | undefined;
|
|
4081
|
+
segment_arena_builtin?: number | undefined;
|
|
4082
|
+
data_availability?: {
|
|
4083
|
+
l1_gas: number;
|
|
4084
|
+
l1_data_gas: number;
|
|
4085
|
+
} | undefined;
|
|
4086
|
+
};
|
|
4087
|
+
message_hash: string;
|
|
4088
|
+
revert_reason?: string | undefined;
|
|
4089
|
+
} | {
|
|
4090
|
+
type: "L1_HANDLER" | "INVOKE";
|
|
4091
|
+
transaction_hash: string;
|
|
4092
|
+
actual_fee: {
|
|
4093
|
+
amount: string;
|
|
4094
|
+
unit: "WEI" | "FRI";
|
|
4095
|
+
};
|
|
4096
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4097
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4098
|
+
messages_sent: {
|
|
4099
|
+
from_address: string;
|
|
4100
|
+
to_address: string;
|
|
4101
|
+
payload: string[];
|
|
4102
|
+
}[];
|
|
4103
|
+
events: {
|
|
4104
|
+
data: string[];
|
|
4105
|
+
from_address: string;
|
|
4106
|
+
keys: string[];
|
|
4107
|
+
}[];
|
|
4108
|
+
execution_resources: {
|
|
4109
|
+
steps: number;
|
|
4110
|
+
memory_holes?: number | undefined;
|
|
4111
|
+
range_check_builtin_applications?: number | undefined;
|
|
4112
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4113
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4114
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4115
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4116
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4117
|
+
keccak_builtin_applications?: number | undefined;
|
|
4118
|
+
segment_arena_builtin?: number | undefined;
|
|
4119
|
+
data_availability?: {
|
|
4120
|
+
l1_gas: number;
|
|
4121
|
+
l1_data_gas: number;
|
|
4122
|
+
} | undefined;
|
|
4123
|
+
};
|
|
4124
|
+
revert_reason?: string | undefined;
|
|
4125
|
+
message_hash?: string | undefined;
|
|
4126
|
+
} | {
|
|
4127
|
+
type: "DECLARE" | "INVOKE";
|
|
4128
|
+
transaction_hash: string;
|
|
4129
|
+
actual_fee: {
|
|
4130
|
+
amount: string;
|
|
4131
|
+
unit: "WEI" | "FRI";
|
|
4132
|
+
};
|
|
4133
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4134
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4135
|
+
messages_sent: {
|
|
4136
|
+
from_address: string;
|
|
4137
|
+
to_address: string;
|
|
4138
|
+
payload: string[];
|
|
4139
|
+
}[];
|
|
4140
|
+
events: {
|
|
4141
|
+
data: string[];
|
|
4142
|
+
from_address: string;
|
|
4143
|
+
keys: string[];
|
|
4144
|
+
}[];
|
|
4145
|
+
execution_resources: {
|
|
4146
|
+
steps: number;
|
|
4147
|
+
memory_holes?: number | undefined;
|
|
4148
|
+
range_check_builtin_applications?: number | undefined;
|
|
4149
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4150
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4151
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4152
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4153
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4154
|
+
keccak_builtin_applications?: number | undefined;
|
|
4155
|
+
segment_arena_builtin?: number | undefined;
|
|
4156
|
+
data_availability?: {
|
|
4157
|
+
l1_gas: number;
|
|
4158
|
+
l1_data_gas: number;
|
|
4159
|
+
} | undefined;
|
|
4160
|
+
};
|
|
4161
|
+
revert_reason?: string | undefined;
|
|
4162
|
+
} | {
|
|
4163
|
+
type: "DEPLOY" | "INVOKE";
|
|
4164
|
+
transaction_hash: string;
|
|
4165
|
+
actual_fee: {
|
|
4166
|
+
amount: string;
|
|
4167
|
+
unit: "WEI" | "FRI";
|
|
4168
|
+
};
|
|
4169
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4170
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4171
|
+
messages_sent: {
|
|
4172
|
+
from_address: string;
|
|
4173
|
+
to_address: string;
|
|
4174
|
+
payload: string[];
|
|
4175
|
+
}[];
|
|
4176
|
+
events: {
|
|
4177
|
+
data: string[];
|
|
4178
|
+
from_address: string;
|
|
4179
|
+
keys: string[];
|
|
4180
|
+
}[];
|
|
4181
|
+
execution_resources: {
|
|
4182
|
+
steps: number;
|
|
4183
|
+
memory_holes?: number | undefined;
|
|
4184
|
+
range_check_builtin_applications?: number | undefined;
|
|
4185
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4186
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4187
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4188
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4189
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4190
|
+
keccak_builtin_applications?: number | undefined;
|
|
4191
|
+
segment_arena_builtin?: number | undefined;
|
|
4192
|
+
data_availability?: {
|
|
4193
|
+
l1_gas: number;
|
|
4194
|
+
l1_data_gas: number;
|
|
4195
|
+
} | undefined;
|
|
4196
|
+
};
|
|
4197
|
+
revert_reason?: string | undefined;
|
|
4198
|
+
contract_address?: string | undefined;
|
|
4199
|
+
} | {
|
|
4200
|
+
type: "DEPLOY_ACCOUNT" | "INVOKE";
|
|
4201
|
+
transaction_hash: string;
|
|
4202
|
+
actual_fee: {
|
|
4203
|
+
amount: string;
|
|
4204
|
+
unit: "WEI" | "FRI";
|
|
4205
|
+
};
|
|
4206
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4207
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4208
|
+
messages_sent: {
|
|
4209
|
+
from_address: string;
|
|
4210
|
+
to_address: string;
|
|
4211
|
+
payload: string[];
|
|
4212
|
+
}[];
|
|
4213
|
+
events: {
|
|
4214
|
+
data: string[];
|
|
4215
|
+
from_address: string;
|
|
4216
|
+
keys: string[];
|
|
4217
|
+
}[];
|
|
4218
|
+
execution_resources: {
|
|
4219
|
+
steps: number;
|
|
4220
|
+
memory_holes?: number | undefined;
|
|
4221
|
+
range_check_builtin_applications?: number | undefined;
|
|
4222
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4223
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4224
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4225
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4226
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4227
|
+
keccak_builtin_applications?: number | undefined;
|
|
4228
|
+
segment_arena_builtin?: number | undefined;
|
|
4229
|
+
data_availability?: {
|
|
4230
|
+
l1_gas: number;
|
|
4231
|
+
l1_data_gas: number;
|
|
4232
|
+
} | undefined;
|
|
4233
|
+
};
|
|
4234
|
+
revert_reason?: string | undefined;
|
|
4235
|
+
contract_address?: string | undefined;
|
|
4236
|
+
} | {
|
|
4237
|
+
type: "DECLARE" | "INVOKE";
|
|
4238
|
+
transaction_hash: string;
|
|
4239
|
+
actual_fee: {
|
|
4240
|
+
amount: string;
|
|
4241
|
+
unit: "WEI" | "FRI";
|
|
4242
|
+
};
|
|
4243
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4244
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4245
|
+
messages_sent: {
|
|
4246
|
+
from_address: string;
|
|
4247
|
+
to_address: string;
|
|
4248
|
+
payload: string[];
|
|
4249
|
+
}[];
|
|
4250
|
+
events: {
|
|
4251
|
+
data: string[];
|
|
4252
|
+
from_address: string;
|
|
4253
|
+
keys: string[];
|
|
4254
|
+
}[];
|
|
4255
|
+
execution_resources: {
|
|
4256
|
+
steps: number;
|
|
4257
|
+
memory_holes?: number | undefined;
|
|
4258
|
+
range_check_builtin_applications?: number | undefined;
|
|
4259
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4260
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4261
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4262
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4263
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4264
|
+
keccak_builtin_applications?: number | undefined;
|
|
4265
|
+
segment_arena_builtin?: number | undefined;
|
|
4266
|
+
data_availability?: {
|
|
4267
|
+
l1_gas: number;
|
|
4268
|
+
l1_data_gas: number;
|
|
4269
|
+
} | undefined;
|
|
4270
|
+
};
|
|
4271
|
+
revert_reason?: string | undefined;
|
|
4272
|
+
} | {
|
|
4273
|
+
type: "L1_HANDLER" | "DECLARE";
|
|
4274
|
+
transaction_hash: string;
|
|
4275
|
+
actual_fee: {
|
|
4276
|
+
amount: string;
|
|
4277
|
+
unit: "WEI" | "FRI";
|
|
4278
|
+
};
|
|
4279
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4280
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4281
|
+
messages_sent: {
|
|
4282
|
+
from_address: string;
|
|
4283
|
+
to_address: string;
|
|
4284
|
+
payload: string[];
|
|
4285
|
+
}[];
|
|
4286
|
+
events: {
|
|
4287
|
+
data: string[];
|
|
4288
|
+
from_address: string;
|
|
4289
|
+
keys: string[];
|
|
4290
|
+
}[];
|
|
4291
|
+
execution_resources: {
|
|
4292
|
+
steps: number;
|
|
4293
|
+
memory_holes?: number | undefined;
|
|
4294
|
+
range_check_builtin_applications?: number | undefined;
|
|
4295
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4296
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4297
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4298
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4299
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4300
|
+
keccak_builtin_applications?: number | undefined;
|
|
4301
|
+
segment_arena_builtin?: number | undefined;
|
|
4302
|
+
data_availability?: {
|
|
4303
|
+
l1_gas: number;
|
|
4304
|
+
l1_data_gas: number;
|
|
4305
|
+
} | undefined;
|
|
4306
|
+
};
|
|
4307
|
+
revert_reason?: string | undefined;
|
|
4308
|
+
message_hash?: string | undefined;
|
|
4309
|
+
} | {
|
|
4310
|
+
type: "DECLARE" | "DEPLOY";
|
|
4311
|
+
transaction_hash: string;
|
|
4312
|
+
actual_fee: {
|
|
4313
|
+
amount: string;
|
|
4314
|
+
unit: "WEI" | "FRI";
|
|
4315
|
+
};
|
|
4316
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4317
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4318
|
+
messages_sent: {
|
|
4319
|
+
from_address: string;
|
|
4320
|
+
to_address: string;
|
|
4321
|
+
payload: string[];
|
|
4322
|
+
}[];
|
|
4323
|
+
events: {
|
|
4324
|
+
data: string[];
|
|
4325
|
+
from_address: string;
|
|
4326
|
+
keys: string[];
|
|
4327
|
+
}[];
|
|
4328
|
+
execution_resources: {
|
|
4329
|
+
steps: number;
|
|
4330
|
+
memory_holes?: number | undefined;
|
|
4331
|
+
range_check_builtin_applications?: number | undefined;
|
|
4332
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4333
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4334
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4335
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4336
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4337
|
+
keccak_builtin_applications?: number | undefined;
|
|
4338
|
+
segment_arena_builtin?: number | undefined;
|
|
4339
|
+
data_availability?: {
|
|
4340
|
+
l1_gas: number;
|
|
4341
|
+
l1_data_gas: number;
|
|
4342
|
+
} | undefined;
|
|
4343
|
+
};
|
|
4344
|
+
revert_reason?: string | undefined;
|
|
4345
|
+
contract_address?: string | undefined;
|
|
4346
|
+
} | {
|
|
4347
|
+
type: "DECLARE" | "DEPLOY_ACCOUNT";
|
|
4348
|
+
transaction_hash: string;
|
|
4349
|
+
actual_fee: {
|
|
4350
|
+
amount: string;
|
|
4351
|
+
unit: "WEI" | "FRI";
|
|
4352
|
+
};
|
|
4353
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4354
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4355
|
+
messages_sent: {
|
|
4356
|
+
from_address: string;
|
|
4357
|
+
to_address: string;
|
|
4358
|
+
payload: string[];
|
|
4359
|
+
}[];
|
|
4360
|
+
events: {
|
|
4361
|
+
data: string[];
|
|
4362
|
+
from_address: string;
|
|
4363
|
+
keys: string[];
|
|
4364
|
+
}[];
|
|
4365
|
+
execution_resources: {
|
|
4366
|
+
steps: number;
|
|
4367
|
+
memory_holes?: number | undefined;
|
|
4368
|
+
range_check_builtin_applications?: number | undefined;
|
|
4369
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4370
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4371
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4372
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4373
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4374
|
+
keccak_builtin_applications?: number | undefined;
|
|
4375
|
+
segment_arena_builtin?: number | undefined;
|
|
4376
|
+
data_availability?: {
|
|
4377
|
+
l1_gas: number;
|
|
4378
|
+
l1_data_gas: number;
|
|
4379
|
+
} | undefined;
|
|
4380
|
+
};
|
|
4381
|
+
revert_reason?: string | undefined;
|
|
4382
|
+
contract_address?: string | undefined;
|
|
4383
|
+
} | {
|
|
4384
|
+
type: "DEPLOY_ACCOUNT" | "INVOKE";
|
|
4385
|
+
transaction_hash: string;
|
|
4386
|
+
actual_fee: {
|
|
4387
|
+
amount: string;
|
|
4388
|
+
unit: "WEI" | "FRI";
|
|
4389
|
+
};
|
|
4390
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4391
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4392
|
+
messages_sent: {
|
|
4393
|
+
from_address: string;
|
|
4394
|
+
to_address: string;
|
|
4395
|
+
payload: string[];
|
|
4396
|
+
}[];
|
|
4397
|
+
events: {
|
|
4398
|
+
data: string[];
|
|
4399
|
+
from_address: string;
|
|
4400
|
+
keys: string[];
|
|
4401
|
+
}[];
|
|
4402
|
+
execution_resources: {
|
|
4403
|
+
steps: number;
|
|
4404
|
+
memory_holes?: number | undefined;
|
|
4405
|
+
range_check_builtin_applications?: number | undefined;
|
|
4406
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4407
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4408
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4409
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4410
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4411
|
+
keccak_builtin_applications?: number | undefined;
|
|
4412
|
+
segment_arena_builtin?: number | undefined;
|
|
4413
|
+
data_availability?: {
|
|
4414
|
+
l1_gas: number;
|
|
4415
|
+
l1_data_gas: number;
|
|
4416
|
+
} | undefined;
|
|
4417
|
+
};
|
|
4418
|
+
revert_reason?: string | undefined;
|
|
4419
|
+
contract_address?: string | undefined;
|
|
4420
|
+
} | {
|
|
4421
|
+
type: "L1_HANDLER" | "DEPLOY_ACCOUNT";
|
|
4422
|
+
transaction_hash: string;
|
|
4423
|
+
actual_fee: {
|
|
4424
|
+
amount: string;
|
|
4425
|
+
unit: "WEI" | "FRI";
|
|
4426
|
+
};
|
|
4427
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4428
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4429
|
+
messages_sent: {
|
|
4430
|
+
from_address: string;
|
|
4431
|
+
to_address: string;
|
|
4432
|
+
payload: string[];
|
|
4433
|
+
}[];
|
|
4434
|
+
events: {
|
|
4435
|
+
data: string[];
|
|
4436
|
+
from_address: string;
|
|
4437
|
+
keys: string[];
|
|
4438
|
+
}[];
|
|
4439
|
+
execution_resources: {
|
|
4440
|
+
steps: number;
|
|
4441
|
+
memory_holes?: number | undefined;
|
|
4442
|
+
range_check_builtin_applications?: number | undefined;
|
|
4443
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4444
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4445
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4446
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4447
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4448
|
+
keccak_builtin_applications?: number | undefined;
|
|
4449
|
+
segment_arena_builtin?: number | undefined;
|
|
4450
|
+
data_availability?: {
|
|
4451
|
+
l1_gas: number;
|
|
4452
|
+
l1_data_gas: number;
|
|
4453
|
+
} | undefined;
|
|
4454
|
+
};
|
|
4455
|
+
revert_reason?: string | undefined;
|
|
4456
|
+
contract_address?: string | undefined;
|
|
4457
|
+
message_hash?: string | undefined;
|
|
4458
|
+
} | {
|
|
4459
|
+
type: "DECLARE" | "DEPLOY_ACCOUNT";
|
|
4460
|
+
transaction_hash: string;
|
|
4461
|
+
actual_fee: {
|
|
4462
|
+
amount: string;
|
|
4463
|
+
unit: "WEI" | "FRI";
|
|
4464
|
+
};
|
|
4465
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4466
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4467
|
+
messages_sent: {
|
|
4468
|
+
from_address: string;
|
|
4469
|
+
to_address: string;
|
|
4470
|
+
payload: string[];
|
|
4471
|
+
}[];
|
|
4472
|
+
events: {
|
|
4473
|
+
data: string[];
|
|
4474
|
+
from_address: string;
|
|
4475
|
+
keys: string[];
|
|
4476
|
+
}[];
|
|
4477
|
+
execution_resources: {
|
|
4478
|
+
steps: number;
|
|
4479
|
+
memory_holes?: number | undefined;
|
|
4480
|
+
range_check_builtin_applications?: number | undefined;
|
|
4481
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4482
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4483
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4484
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4485
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4486
|
+
keccak_builtin_applications?: number | undefined;
|
|
4487
|
+
segment_arena_builtin?: number | undefined;
|
|
4488
|
+
data_availability?: {
|
|
4489
|
+
l1_gas: number;
|
|
4490
|
+
l1_data_gas: number;
|
|
4491
|
+
} | undefined;
|
|
4492
|
+
};
|
|
4493
|
+
revert_reason?: string | undefined;
|
|
4494
|
+
contract_address?: string | undefined;
|
|
4495
|
+
} | {
|
|
4496
|
+
contract_address: string;
|
|
4497
|
+
type: "DEPLOY" | "DEPLOY_ACCOUNT";
|
|
4498
|
+
transaction_hash: string;
|
|
4499
|
+
actual_fee: {
|
|
4500
|
+
amount: string;
|
|
4501
|
+
unit: "WEI" | "FRI";
|
|
4502
|
+
};
|
|
4503
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4504
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4505
|
+
messages_sent: {
|
|
4506
|
+
from_address: string;
|
|
4507
|
+
to_address: string;
|
|
4508
|
+
payload: string[];
|
|
4509
|
+
}[];
|
|
4510
|
+
events: {
|
|
4511
|
+
data: string[];
|
|
4512
|
+
from_address: string;
|
|
4513
|
+
keys: string[];
|
|
4514
|
+
}[];
|
|
4515
|
+
execution_resources: {
|
|
4516
|
+
steps: number;
|
|
4517
|
+
memory_holes?: number | undefined;
|
|
4518
|
+
range_check_builtin_applications?: number | undefined;
|
|
4519
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4520
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4521
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4522
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4523
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4524
|
+
keccak_builtin_applications?: number | undefined;
|
|
4525
|
+
segment_arena_builtin?: number | undefined;
|
|
4526
|
+
data_availability?: {
|
|
4527
|
+
l1_gas: number;
|
|
4528
|
+
l1_data_gas: number;
|
|
4529
|
+
} | undefined;
|
|
4530
|
+
};
|
|
4531
|
+
revert_reason?: string | undefined;
|
|
4532
|
+
} | {
|
|
4533
|
+
type: "L1_HANDLER" | "INVOKE";
|
|
4534
|
+
transaction_hash: string;
|
|
4535
|
+
actual_fee: {
|
|
4536
|
+
amount: string;
|
|
4537
|
+
unit: "WEI" | "FRI";
|
|
4538
|
+
};
|
|
4539
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4540
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4541
|
+
messages_sent: {
|
|
4542
|
+
from_address: string;
|
|
4543
|
+
to_address: string;
|
|
4544
|
+
payload: string[];
|
|
4545
|
+
}[];
|
|
4546
|
+
events: {
|
|
4547
|
+
data: string[];
|
|
4548
|
+
from_address: string;
|
|
4549
|
+
keys: string[];
|
|
4550
|
+
}[];
|
|
4551
|
+
execution_resources: {
|
|
4552
|
+
steps: number;
|
|
4553
|
+
memory_holes?: number | undefined;
|
|
4554
|
+
range_check_builtin_applications?: number | undefined;
|
|
4555
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4556
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4557
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4558
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4559
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4560
|
+
keccak_builtin_applications?: number | undefined;
|
|
4561
|
+
segment_arena_builtin?: number | undefined;
|
|
4562
|
+
data_availability?: {
|
|
4563
|
+
l1_gas: number;
|
|
4564
|
+
l1_data_gas: number;
|
|
4565
|
+
} | undefined;
|
|
4566
|
+
};
|
|
4567
|
+
revert_reason?: string | undefined;
|
|
4568
|
+
message_hash?: string | undefined;
|
|
4569
|
+
} | {
|
|
4570
|
+
type: "L1_HANDLER" | "DECLARE";
|
|
4571
|
+
transaction_hash: string;
|
|
4572
|
+
actual_fee: {
|
|
4573
|
+
amount: string;
|
|
4574
|
+
unit: "WEI" | "FRI";
|
|
4575
|
+
};
|
|
4576
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4577
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4578
|
+
messages_sent: {
|
|
4579
|
+
from_address: string;
|
|
4580
|
+
to_address: string;
|
|
4581
|
+
payload: string[];
|
|
4582
|
+
}[];
|
|
4583
|
+
events: {
|
|
4584
|
+
data: string[];
|
|
4585
|
+
from_address: string;
|
|
4586
|
+
keys: string[];
|
|
4587
|
+
}[];
|
|
4588
|
+
execution_resources: {
|
|
4589
|
+
steps: number;
|
|
4590
|
+
memory_holes?: number | undefined;
|
|
4591
|
+
range_check_builtin_applications?: number | undefined;
|
|
4592
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4593
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4594
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4595
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4596
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4597
|
+
keccak_builtin_applications?: number | undefined;
|
|
4598
|
+
segment_arena_builtin?: number | undefined;
|
|
4599
|
+
data_availability?: {
|
|
4600
|
+
l1_gas: number;
|
|
4601
|
+
l1_data_gas: number;
|
|
4602
|
+
} | undefined;
|
|
4603
|
+
};
|
|
4604
|
+
revert_reason?: string | undefined;
|
|
4605
|
+
message_hash?: string | undefined;
|
|
4606
|
+
} | {
|
|
4607
|
+
type: "L1_HANDLER" | "DEPLOY";
|
|
4608
|
+
transaction_hash: string;
|
|
4609
|
+
actual_fee: {
|
|
4610
|
+
amount: string;
|
|
4611
|
+
unit: "WEI" | "FRI";
|
|
4612
|
+
};
|
|
4613
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4614
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4615
|
+
messages_sent: {
|
|
4616
|
+
from_address: string;
|
|
4617
|
+
to_address: string;
|
|
4618
|
+
payload: string[];
|
|
4619
|
+
}[];
|
|
4620
|
+
events: {
|
|
4621
|
+
data: string[];
|
|
4622
|
+
from_address: string;
|
|
4623
|
+
keys: string[];
|
|
4624
|
+
}[];
|
|
4625
|
+
execution_resources: {
|
|
4626
|
+
steps: number;
|
|
4627
|
+
memory_holes?: number | undefined;
|
|
4628
|
+
range_check_builtin_applications?: number | undefined;
|
|
4629
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4630
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4631
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4632
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4633
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4634
|
+
keccak_builtin_applications?: number | undefined;
|
|
4635
|
+
segment_arena_builtin?: number | undefined;
|
|
4636
|
+
data_availability?: {
|
|
4637
|
+
l1_gas: number;
|
|
4638
|
+
l1_data_gas: number;
|
|
4639
|
+
} | undefined;
|
|
4640
|
+
};
|
|
4641
|
+
revert_reason?: string | undefined;
|
|
4642
|
+
message_hash?: string | undefined;
|
|
4643
|
+
contract_address?: string | undefined;
|
|
4644
|
+
} | {
|
|
4645
|
+
type: "L1_HANDLER" | "DEPLOY_ACCOUNT";
|
|
4646
|
+
transaction_hash: string;
|
|
4647
|
+
actual_fee: {
|
|
4648
|
+
amount: string;
|
|
4649
|
+
unit: "WEI" | "FRI";
|
|
4650
|
+
};
|
|
4651
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4652
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4653
|
+
messages_sent: {
|
|
4654
|
+
from_address: string;
|
|
4655
|
+
to_address: string;
|
|
4656
|
+
payload: string[];
|
|
4657
|
+
}[];
|
|
4658
|
+
events: {
|
|
4659
|
+
data: string[];
|
|
4660
|
+
from_address: string;
|
|
4661
|
+
keys: string[];
|
|
4662
|
+
}[];
|
|
4663
|
+
execution_resources: {
|
|
4664
|
+
steps: number;
|
|
4665
|
+
memory_holes?: number | undefined;
|
|
4666
|
+
range_check_builtin_applications?: number | undefined;
|
|
4667
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4668
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4669
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4670
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4671
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4672
|
+
keccak_builtin_applications?: number | undefined;
|
|
4673
|
+
segment_arena_builtin?: number | undefined;
|
|
4674
|
+
data_availability?: {
|
|
4675
|
+
l1_gas: number;
|
|
4676
|
+
l1_data_gas: number;
|
|
4677
|
+
} | undefined;
|
|
4678
|
+
};
|
|
4679
|
+
revert_reason?: string | undefined;
|
|
4680
|
+
message_hash?: string | undefined;
|
|
4681
|
+
contract_address?: string | undefined;
|
|
4682
|
+
} | {
|
|
4683
|
+
block_hash: string;
|
|
4684
|
+
type: "INVOKE";
|
|
4685
|
+
transaction_hash: string;
|
|
4686
|
+
actual_fee: {
|
|
4687
|
+
amount: string;
|
|
4688
|
+
unit: "WEI" | "FRI";
|
|
4689
|
+
};
|
|
4690
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4691
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4692
|
+
block_number: number;
|
|
4693
|
+
messages_sent: {
|
|
4694
|
+
from_address: string;
|
|
4695
|
+
to_address: string;
|
|
4696
|
+
payload: string[];
|
|
4697
|
+
}[];
|
|
4698
|
+
events: {
|
|
4699
|
+
data: string[];
|
|
4700
|
+
from_address: string;
|
|
4701
|
+
keys: string[];
|
|
4702
|
+
}[];
|
|
4703
|
+
execution_resources: {
|
|
4704
|
+
steps: number;
|
|
4705
|
+
memory_holes?: number | undefined;
|
|
4706
|
+
range_check_builtin_applications?: number | undefined;
|
|
4707
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4708
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4709
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4710
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4711
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4712
|
+
keccak_builtin_applications?: number | undefined;
|
|
4713
|
+
segment_arena_builtin?: number | undefined;
|
|
4714
|
+
data_availability?: {
|
|
4715
|
+
l1_gas: number;
|
|
4716
|
+
l1_data_gas: number;
|
|
4717
|
+
} | undefined;
|
|
4718
|
+
};
|
|
4719
|
+
revert_reason?: string | undefined;
|
|
4720
|
+
} | {
|
|
4721
|
+
block_hash: string;
|
|
4722
|
+
type: "L1_HANDLER" | "INVOKE";
|
|
4723
|
+
transaction_hash: string;
|
|
4724
|
+
actual_fee: {
|
|
4725
|
+
amount: string;
|
|
4726
|
+
unit: "WEI" | "FRI";
|
|
4727
|
+
};
|
|
4728
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4729
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4730
|
+
block_number: number;
|
|
4731
|
+
messages_sent: {
|
|
4732
|
+
from_address: string;
|
|
4733
|
+
to_address: string;
|
|
4734
|
+
payload: string[];
|
|
4735
|
+
}[];
|
|
4736
|
+
events: {
|
|
4737
|
+
data: string[];
|
|
4738
|
+
from_address: string;
|
|
4739
|
+
keys: string[];
|
|
4740
|
+
}[];
|
|
4741
|
+
execution_resources: {
|
|
4742
|
+
steps: number;
|
|
4743
|
+
memory_holes?: number | undefined;
|
|
4744
|
+
range_check_builtin_applications?: number | undefined;
|
|
4745
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4746
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4747
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4748
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4749
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4750
|
+
keccak_builtin_applications?: number | undefined;
|
|
4751
|
+
segment_arena_builtin?: number | undefined;
|
|
4752
|
+
data_availability?: {
|
|
4753
|
+
l1_gas: number;
|
|
4754
|
+
l1_data_gas: number;
|
|
4755
|
+
} | undefined;
|
|
4756
|
+
};
|
|
4757
|
+
revert_reason?: string | undefined;
|
|
4758
|
+
message_hash?: string | undefined;
|
|
4759
|
+
} | {
|
|
4760
|
+
block_hash: string;
|
|
4761
|
+
type: "DECLARE" | "INVOKE";
|
|
4762
|
+
transaction_hash: string;
|
|
4763
|
+
actual_fee: {
|
|
4764
|
+
amount: string;
|
|
4765
|
+
unit: "WEI" | "FRI";
|
|
4766
|
+
};
|
|
4767
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4768
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4769
|
+
block_number: number;
|
|
4770
|
+
messages_sent: {
|
|
4771
|
+
from_address: string;
|
|
4772
|
+
to_address: string;
|
|
4773
|
+
payload: string[];
|
|
4774
|
+
}[];
|
|
4775
|
+
events: {
|
|
4776
|
+
data: string[];
|
|
4777
|
+
from_address: string;
|
|
4778
|
+
keys: string[];
|
|
4779
|
+
}[];
|
|
4780
|
+
execution_resources: {
|
|
4781
|
+
steps: number;
|
|
4782
|
+
memory_holes?: number | undefined;
|
|
4783
|
+
range_check_builtin_applications?: number | undefined;
|
|
4784
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4785
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4786
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4787
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4788
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4789
|
+
keccak_builtin_applications?: number | undefined;
|
|
4790
|
+
segment_arena_builtin?: number | undefined;
|
|
4791
|
+
data_availability?: {
|
|
4792
|
+
l1_gas: number;
|
|
4793
|
+
l1_data_gas: number;
|
|
4794
|
+
} | undefined;
|
|
4795
|
+
};
|
|
4796
|
+
revert_reason?: string | undefined;
|
|
4797
|
+
} | {
|
|
4798
|
+
block_hash: string;
|
|
4799
|
+
type: "DEPLOY" | "INVOKE";
|
|
4800
|
+
transaction_hash: string;
|
|
4801
|
+
actual_fee: {
|
|
4802
|
+
amount: string;
|
|
4803
|
+
unit: "WEI" | "FRI";
|
|
4804
|
+
};
|
|
4805
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4806
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4807
|
+
block_number: number;
|
|
4808
|
+
messages_sent: {
|
|
4809
|
+
from_address: string;
|
|
4810
|
+
to_address: string;
|
|
4811
|
+
payload: string[];
|
|
4812
|
+
}[];
|
|
4813
|
+
events: {
|
|
4814
|
+
data: string[];
|
|
4815
|
+
from_address: string;
|
|
4816
|
+
keys: string[];
|
|
4817
|
+
}[];
|
|
4818
|
+
execution_resources: {
|
|
4819
|
+
steps: number;
|
|
4820
|
+
memory_holes?: number | undefined;
|
|
4821
|
+
range_check_builtin_applications?: number | undefined;
|
|
4822
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4823
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4824
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4825
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4826
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4827
|
+
keccak_builtin_applications?: number | undefined;
|
|
4828
|
+
segment_arena_builtin?: number | undefined;
|
|
4829
|
+
data_availability?: {
|
|
4830
|
+
l1_gas: number;
|
|
4831
|
+
l1_data_gas: number;
|
|
4832
|
+
} | undefined;
|
|
4833
|
+
};
|
|
4834
|
+
revert_reason?: string | undefined;
|
|
4835
|
+
contract_address?: string | undefined;
|
|
4836
|
+
} | {
|
|
4837
|
+
block_hash: string;
|
|
4838
|
+
type: "DEPLOY_ACCOUNT" | "INVOKE";
|
|
4839
|
+
transaction_hash: string;
|
|
4840
|
+
actual_fee: {
|
|
4841
|
+
amount: string;
|
|
4842
|
+
unit: "WEI" | "FRI";
|
|
4843
|
+
};
|
|
4844
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4845
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4846
|
+
block_number: number;
|
|
4847
|
+
messages_sent: {
|
|
4848
|
+
from_address: string;
|
|
4849
|
+
to_address: string;
|
|
4850
|
+
payload: string[];
|
|
4851
|
+
}[];
|
|
4852
|
+
events: {
|
|
4853
|
+
data: string[];
|
|
4854
|
+
from_address: string;
|
|
4855
|
+
keys: string[];
|
|
4856
|
+
}[];
|
|
4857
|
+
execution_resources: {
|
|
4858
|
+
steps: number;
|
|
4859
|
+
memory_holes?: number | undefined;
|
|
4860
|
+
range_check_builtin_applications?: number | undefined;
|
|
4861
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4862
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4863
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4864
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4865
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4866
|
+
keccak_builtin_applications?: number | undefined;
|
|
4867
|
+
segment_arena_builtin?: number | undefined;
|
|
4868
|
+
data_availability?: {
|
|
4869
|
+
l1_gas: number;
|
|
4870
|
+
l1_data_gas: number;
|
|
4871
|
+
} | undefined;
|
|
4872
|
+
};
|
|
4873
|
+
revert_reason?: string | undefined;
|
|
4874
|
+
contract_address?: string | undefined;
|
|
4875
|
+
} | {
|
|
4876
|
+
block_hash: string;
|
|
4877
|
+
type: "DECLARE" | "INVOKE";
|
|
4878
|
+
transaction_hash: string;
|
|
4879
|
+
actual_fee: {
|
|
4880
|
+
amount: string;
|
|
4881
|
+
unit: "WEI" | "FRI";
|
|
4882
|
+
};
|
|
4883
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4884
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4885
|
+
block_number: number;
|
|
4886
|
+
messages_sent: {
|
|
4887
|
+
from_address: string;
|
|
4888
|
+
to_address: string;
|
|
4889
|
+
payload: string[];
|
|
4890
|
+
}[];
|
|
4891
|
+
events: {
|
|
4892
|
+
data: string[];
|
|
4893
|
+
from_address: string;
|
|
4894
|
+
keys: string[];
|
|
4895
|
+
}[];
|
|
4896
|
+
execution_resources: {
|
|
4897
|
+
steps: number;
|
|
4898
|
+
memory_holes?: number | undefined;
|
|
4899
|
+
range_check_builtin_applications?: number | undefined;
|
|
4900
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4901
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4902
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4903
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4904
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4905
|
+
keccak_builtin_applications?: number | undefined;
|
|
4906
|
+
segment_arena_builtin?: number | undefined;
|
|
4907
|
+
data_availability?: {
|
|
4908
|
+
l1_gas: number;
|
|
4909
|
+
l1_data_gas: number;
|
|
4910
|
+
} | undefined;
|
|
4911
|
+
};
|
|
4912
|
+
revert_reason?: string | undefined;
|
|
4913
|
+
} | {
|
|
4914
|
+
block_hash: string;
|
|
4915
|
+
type: "L1_HANDLER" | "DECLARE";
|
|
4916
|
+
transaction_hash: string;
|
|
4917
|
+
actual_fee: {
|
|
4918
|
+
amount: string;
|
|
4919
|
+
unit: "WEI" | "FRI";
|
|
4920
|
+
};
|
|
4921
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4922
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4923
|
+
block_number: number;
|
|
4924
|
+
messages_sent: {
|
|
4925
|
+
from_address: string;
|
|
4926
|
+
to_address: string;
|
|
4927
|
+
payload: string[];
|
|
4928
|
+
}[];
|
|
4929
|
+
events: {
|
|
4930
|
+
data: string[];
|
|
4931
|
+
from_address: string;
|
|
4932
|
+
keys: string[];
|
|
4933
|
+
}[];
|
|
4934
|
+
execution_resources: {
|
|
4935
|
+
steps: number;
|
|
4936
|
+
memory_holes?: number | undefined;
|
|
4937
|
+
range_check_builtin_applications?: number | undefined;
|
|
4938
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4939
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4940
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4941
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4942
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4943
|
+
keccak_builtin_applications?: number | undefined;
|
|
4944
|
+
segment_arena_builtin?: number | undefined;
|
|
4945
|
+
data_availability?: {
|
|
4946
|
+
l1_gas: number;
|
|
4947
|
+
l1_data_gas: number;
|
|
4948
|
+
} | undefined;
|
|
4949
|
+
};
|
|
4950
|
+
revert_reason?: string | undefined;
|
|
4951
|
+
message_hash?: string | undefined;
|
|
4952
|
+
} | {
|
|
4953
|
+
block_hash: string;
|
|
4954
|
+
type: "DECLARE";
|
|
4955
|
+
transaction_hash: string;
|
|
4956
|
+
actual_fee: {
|
|
4957
|
+
amount: string;
|
|
4958
|
+
unit: "WEI" | "FRI";
|
|
4959
|
+
};
|
|
4960
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4961
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
4962
|
+
block_number: number;
|
|
4963
|
+
messages_sent: {
|
|
4964
|
+
from_address: string;
|
|
4965
|
+
to_address: string;
|
|
4966
|
+
payload: string[];
|
|
4967
|
+
}[];
|
|
4968
|
+
events: {
|
|
4969
|
+
data: string[];
|
|
4970
|
+
from_address: string;
|
|
4971
|
+
keys: string[];
|
|
4972
|
+
}[];
|
|
4973
|
+
execution_resources: {
|
|
4974
|
+
steps: number;
|
|
4975
|
+
memory_holes?: number | undefined;
|
|
4976
|
+
range_check_builtin_applications?: number | undefined;
|
|
4977
|
+
pedersen_builtin_applications?: number | undefined;
|
|
4978
|
+
poseidon_builtin_applications?: number | undefined;
|
|
4979
|
+
ec_op_builtin_applications?: number | undefined;
|
|
4980
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
4981
|
+
bitwise_builtin_applications?: number | undefined;
|
|
4982
|
+
keccak_builtin_applications?: number | undefined;
|
|
4983
|
+
segment_arena_builtin?: number | undefined;
|
|
4984
|
+
data_availability?: {
|
|
4985
|
+
l1_gas: number;
|
|
4986
|
+
l1_data_gas: number;
|
|
4987
|
+
} | undefined;
|
|
4988
|
+
};
|
|
4989
|
+
revert_reason?: string | undefined;
|
|
4990
|
+
} | {
|
|
4991
|
+
block_hash: string;
|
|
4992
|
+
type: "DECLARE" | "DEPLOY";
|
|
4993
|
+
transaction_hash: string;
|
|
4994
|
+
actual_fee: {
|
|
4995
|
+
amount: string;
|
|
4996
|
+
unit: "WEI" | "FRI";
|
|
4997
|
+
};
|
|
4998
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
4999
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5000
|
+
block_number: number;
|
|
5001
|
+
messages_sent: {
|
|
5002
|
+
from_address: string;
|
|
5003
|
+
to_address: string;
|
|
5004
|
+
payload: string[];
|
|
5005
|
+
}[];
|
|
5006
|
+
events: {
|
|
5007
|
+
data: string[];
|
|
5008
|
+
from_address: string;
|
|
5009
|
+
keys: string[];
|
|
5010
|
+
}[];
|
|
5011
|
+
execution_resources: {
|
|
5012
|
+
steps: number;
|
|
5013
|
+
memory_holes?: number | undefined;
|
|
5014
|
+
range_check_builtin_applications?: number | undefined;
|
|
5015
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5016
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5017
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5018
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5019
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5020
|
+
keccak_builtin_applications?: number | undefined;
|
|
5021
|
+
segment_arena_builtin?: number | undefined;
|
|
5022
|
+
data_availability?: {
|
|
5023
|
+
l1_gas: number;
|
|
5024
|
+
l1_data_gas: number;
|
|
5025
|
+
} | undefined;
|
|
5026
|
+
};
|
|
5027
|
+
revert_reason?: string | undefined;
|
|
5028
|
+
contract_address?: string | undefined;
|
|
5029
|
+
} | {
|
|
5030
|
+
block_hash: string;
|
|
5031
|
+
type: "DECLARE" | "DEPLOY_ACCOUNT";
|
|
5032
|
+
transaction_hash: string;
|
|
5033
|
+
actual_fee: {
|
|
5034
|
+
amount: string;
|
|
5035
|
+
unit: "WEI" | "FRI";
|
|
5036
|
+
};
|
|
5037
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5038
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5039
|
+
block_number: number;
|
|
5040
|
+
messages_sent: {
|
|
5041
|
+
from_address: string;
|
|
5042
|
+
to_address: string;
|
|
5043
|
+
payload: string[];
|
|
5044
|
+
}[];
|
|
5045
|
+
events: {
|
|
5046
|
+
data: string[];
|
|
5047
|
+
from_address: string;
|
|
5048
|
+
keys: string[];
|
|
5049
|
+
}[];
|
|
5050
|
+
execution_resources: {
|
|
5051
|
+
steps: number;
|
|
5052
|
+
memory_holes?: number | undefined;
|
|
5053
|
+
range_check_builtin_applications?: number | undefined;
|
|
5054
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5055
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5056
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5057
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5058
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5059
|
+
keccak_builtin_applications?: number | undefined;
|
|
5060
|
+
segment_arena_builtin?: number | undefined;
|
|
5061
|
+
data_availability?: {
|
|
5062
|
+
l1_gas: number;
|
|
5063
|
+
l1_data_gas: number;
|
|
5064
|
+
} | undefined;
|
|
5065
|
+
};
|
|
5066
|
+
revert_reason?: string | undefined;
|
|
5067
|
+
contract_address?: string | undefined;
|
|
5068
|
+
} | {
|
|
5069
|
+
block_hash: string;
|
|
5070
|
+
type: "DEPLOY_ACCOUNT" | "INVOKE";
|
|
5071
|
+
transaction_hash: string;
|
|
5072
|
+
actual_fee: {
|
|
5073
|
+
amount: string;
|
|
5074
|
+
unit: "WEI" | "FRI";
|
|
5075
|
+
};
|
|
5076
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5077
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5078
|
+
block_number: number;
|
|
5079
|
+
messages_sent: {
|
|
5080
|
+
from_address: string;
|
|
5081
|
+
to_address: string;
|
|
5082
|
+
payload: string[];
|
|
5083
|
+
}[];
|
|
5084
|
+
events: {
|
|
5085
|
+
data: string[];
|
|
5086
|
+
from_address: string;
|
|
5087
|
+
keys: string[];
|
|
5088
|
+
}[];
|
|
5089
|
+
execution_resources: {
|
|
5090
|
+
steps: number;
|
|
5091
|
+
memory_holes?: number | undefined;
|
|
5092
|
+
range_check_builtin_applications?: number | undefined;
|
|
5093
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5094
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5095
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5096
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5097
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5098
|
+
keccak_builtin_applications?: number | undefined;
|
|
5099
|
+
segment_arena_builtin?: number | undefined;
|
|
5100
|
+
data_availability?: {
|
|
5101
|
+
l1_gas: number;
|
|
5102
|
+
l1_data_gas: number;
|
|
5103
|
+
} | undefined;
|
|
5104
|
+
};
|
|
5105
|
+
revert_reason?: string | undefined;
|
|
5106
|
+
contract_address?: string | undefined;
|
|
5107
|
+
} | {
|
|
5108
|
+
block_hash: string;
|
|
5109
|
+
type: "L1_HANDLER" | "DEPLOY_ACCOUNT";
|
|
5110
|
+
transaction_hash: string;
|
|
5111
|
+
actual_fee: {
|
|
5112
|
+
amount: string;
|
|
5113
|
+
unit: "WEI" | "FRI";
|
|
5114
|
+
};
|
|
5115
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5116
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5117
|
+
block_number: number;
|
|
5118
|
+
messages_sent: {
|
|
5119
|
+
from_address: string;
|
|
5120
|
+
to_address: string;
|
|
5121
|
+
payload: string[];
|
|
5122
|
+
}[];
|
|
5123
|
+
events: {
|
|
5124
|
+
data: string[];
|
|
5125
|
+
from_address: string;
|
|
5126
|
+
keys: string[];
|
|
5127
|
+
}[];
|
|
5128
|
+
execution_resources: {
|
|
5129
|
+
steps: number;
|
|
5130
|
+
memory_holes?: number | undefined;
|
|
5131
|
+
range_check_builtin_applications?: number | undefined;
|
|
5132
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5133
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5134
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5135
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5136
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5137
|
+
keccak_builtin_applications?: number | undefined;
|
|
5138
|
+
segment_arena_builtin?: number | undefined;
|
|
5139
|
+
data_availability?: {
|
|
5140
|
+
l1_gas: number;
|
|
5141
|
+
l1_data_gas: number;
|
|
5142
|
+
} | undefined;
|
|
5143
|
+
};
|
|
5144
|
+
revert_reason?: string | undefined;
|
|
5145
|
+
contract_address?: string | undefined;
|
|
5146
|
+
message_hash?: string | undefined;
|
|
5147
|
+
} | {
|
|
5148
|
+
block_hash: string;
|
|
5149
|
+
type: "DECLARE" | "DEPLOY_ACCOUNT";
|
|
5150
|
+
transaction_hash: string;
|
|
5151
|
+
actual_fee: {
|
|
5152
|
+
amount: string;
|
|
5153
|
+
unit: "WEI" | "FRI";
|
|
5154
|
+
};
|
|
5155
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5156
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5157
|
+
block_number: number;
|
|
5158
|
+
messages_sent: {
|
|
5159
|
+
from_address: string;
|
|
5160
|
+
to_address: string;
|
|
5161
|
+
payload: string[];
|
|
5162
|
+
}[];
|
|
5163
|
+
events: {
|
|
5164
|
+
data: string[];
|
|
5165
|
+
from_address: string;
|
|
5166
|
+
keys: string[];
|
|
5167
|
+
}[];
|
|
5168
|
+
execution_resources: {
|
|
5169
|
+
steps: number;
|
|
5170
|
+
memory_holes?: number | undefined;
|
|
5171
|
+
range_check_builtin_applications?: number | undefined;
|
|
5172
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5173
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5174
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5175
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5176
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5177
|
+
keccak_builtin_applications?: number | undefined;
|
|
5178
|
+
segment_arena_builtin?: number | undefined;
|
|
5179
|
+
data_availability?: {
|
|
5180
|
+
l1_gas: number;
|
|
5181
|
+
l1_data_gas: number;
|
|
5182
|
+
} | undefined;
|
|
5183
|
+
};
|
|
5184
|
+
revert_reason?: string | undefined;
|
|
5185
|
+
contract_address?: string | undefined;
|
|
5186
|
+
} | {
|
|
5187
|
+
block_hash: string;
|
|
5188
|
+
contract_address: string;
|
|
5189
|
+
type: "DEPLOY" | "DEPLOY_ACCOUNT";
|
|
5190
|
+
transaction_hash: string;
|
|
5191
|
+
actual_fee: {
|
|
5192
|
+
amount: string;
|
|
5193
|
+
unit: "WEI" | "FRI";
|
|
5194
|
+
};
|
|
5195
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5196
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5197
|
+
block_number: number;
|
|
5198
|
+
messages_sent: {
|
|
5199
|
+
from_address: string;
|
|
5200
|
+
to_address: string;
|
|
5201
|
+
payload: string[];
|
|
5202
|
+
}[];
|
|
5203
|
+
events: {
|
|
5204
|
+
data: string[];
|
|
5205
|
+
from_address: string;
|
|
5206
|
+
keys: string[];
|
|
5207
|
+
}[];
|
|
5208
|
+
execution_resources: {
|
|
5209
|
+
steps: number;
|
|
5210
|
+
memory_holes?: number | undefined;
|
|
5211
|
+
range_check_builtin_applications?: number | undefined;
|
|
5212
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5213
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5214
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5215
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5216
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5217
|
+
keccak_builtin_applications?: number | undefined;
|
|
5218
|
+
segment_arena_builtin?: number | undefined;
|
|
5219
|
+
data_availability?: {
|
|
5220
|
+
l1_gas: number;
|
|
5221
|
+
l1_data_gas: number;
|
|
5222
|
+
} | undefined;
|
|
5223
|
+
};
|
|
5224
|
+
revert_reason?: string | undefined;
|
|
5225
|
+
} | {
|
|
5226
|
+
block_hash: string;
|
|
5227
|
+
contract_address: string;
|
|
5228
|
+
type: "DEPLOY_ACCOUNT";
|
|
5229
|
+
transaction_hash: string;
|
|
5230
|
+
actual_fee: {
|
|
5231
|
+
amount: string;
|
|
5232
|
+
unit: "WEI" | "FRI";
|
|
5233
|
+
};
|
|
5234
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5235
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5236
|
+
block_number: number;
|
|
5237
|
+
messages_sent: {
|
|
5238
|
+
from_address: string;
|
|
5239
|
+
to_address: string;
|
|
5240
|
+
payload: string[];
|
|
5241
|
+
}[];
|
|
5242
|
+
events: {
|
|
5243
|
+
data: string[];
|
|
5244
|
+
from_address: string;
|
|
5245
|
+
keys: string[];
|
|
5246
|
+
}[];
|
|
5247
|
+
execution_resources: {
|
|
5248
|
+
steps: number;
|
|
5249
|
+
memory_holes?: number | undefined;
|
|
5250
|
+
range_check_builtin_applications?: number | undefined;
|
|
5251
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5252
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5253
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5254
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5255
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5256
|
+
keccak_builtin_applications?: number | undefined;
|
|
5257
|
+
segment_arena_builtin?: number | undefined;
|
|
5258
|
+
data_availability?: {
|
|
5259
|
+
l1_gas: number;
|
|
5260
|
+
l1_data_gas: number;
|
|
5261
|
+
} | undefined;
|
|
5262
|
+
};
|
|
5263
|
+
revert_reason?: string | undefined;
|
|
5264
|
+
} | {
|
|
5265
|
+
block_hash: string;
|
|
5266
|
+
type: "DEPLOY" | "INVOKE";
|
|
5267
|
+
transaction_hash: string;
|
|
5268
|
+
actual_fee: {
|
|
5269
|
+
amount: string;
|
|
5270
|
+
unit: "WEI" | "FRI";
|
|
5271
|
+
};
|
|
5272
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5273
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5274
|
+
block_number: number;
|
|
5275
|
+
messages_sent: {
|
|
5276
|
+
from_address: string;
|
|
5277
|
+
to_address: string;
|
|
5278
|
+
payload: string[];
|
|
5279
|
+
}[];
|
|
5280
|
+
events: {
|
|
5281
|
+
data: string[];
|
|
5282
|
+
from_address: string;
|
|
5283
|
+
keys: string[];
|
|
5284
|
+
}[];
|
|
5285
|
+
execution_resources: {
|
|
5286
|
+
steps: number;
|
|
5287
|
+
memory_holes?: number | undefined;
|
|
5288
|
+
range_check_builtin_applications?: number | undefined;
|
|
5289
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5290
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5291
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5292
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5293
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5294
|
+
keccak_builtin_applications?: number | undefined;
|
|
5295
|
+
segment_arena_builtin?: number | undefined;
|
|
5296
|
+
data_availability?: {
|
|
5297
|
+
l1_gas: number;
|
|
5298
|
+
l1_data_gas: number;
|
|
5299
|
+
} | undefined;
|
|
5300
|
+
};
|
|
5301
|
+
revert_reason?: string | undefined;
|
|
5302
|
+
contract_address?: string | undefined;
|
|
5303
|
+
} | {
|
|
5304
|
+
block_hash: string;
|
|
5305
|
+
type: "L1_HANDLER" | "DEPLOY";
|
|
5306
|
+
transaction_hash: string;
|
|
5307
|
+
actual_fee: {
|
|
5308
|
+
amount: string;
|
|
5309
|
+
unit: "WEI" | "FRI";
|
|
5310
|
+
};
|
|
5311
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5312
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5313
|
+
block_number: number;
|
|
5314
|
+
messages_sent: {
|
|
5315
|
+
from_address: string;
|
|
5316
|
+
to_address: string;
|
|
5317
|
+
payload: string[];
|
|
5318
|
+
}[];
|
|
5319
|
+
events: {
|
|
5320
|
+
data: string[];
|
|
5321
|
+
from_address: string;
|
|
5322
|
+
keys: string[];
|
|
5323
|
+
}[];
|
|
5324
|
+
execution_resources: {
|
|
5325
|
+
steps: number;
|
|
5326
|
+
memory_holes?: number | undefined;
|
|
5327
|
+
range_check_builtin_applications?: number | undefined;
|
|
5328
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5329
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5330
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5331
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5332
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5333
|
+
keccak_builtin_applications?: number | undefined;
|
|
5334
|
+
segment_arena_builtin?: number | undefined;
|
|
5335
|
+
data_availability?: {
|
|
5336
|
+
l1_gas: number;
|
|
5337
|
+
l1_data_gas: number;
|
|
5338
|
+
} | undefined;
|
|
5339
|
+
};
|
|
5340
|
+
revert_reason?: string | undefined;
|
|
5341
|
+
contract_address?: string | undefined;
|
|
5342
|
+
message_hash?: string | undefined;
|
|
5343
|
+
} | {
|
|
5344
|
+
block_hash: string;
|
|
5345
|
+
type: "DECLARE" | "DEPLOY";
|
|
5346
|
+
transaction_hash: string;
|
|
5347
|
+
actual_fee: {
|
|
5348
|
+
amount: string;
|
|
5349
|
+
unit: "WEI" | "FRI";
|
|
5350
|
+
};
|
|
5351
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5352
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5353
|
+
block_number: number;
|
|
5354
|
+
messages_sent: {
|
|
5355
|
+
from_address: string;
|
|
5356
|
+
to_address: string;
|
|
5357
|
+
payload: string[];
|
|
5358
|
+
}[];
|
|
5359
|
+
events: {
|
|
5360
|
+
data: string[];
|
|
5361
|
+
from_address: string;
|
|
5362
|
+
keys: string[];
|
|
5363
|
+
}[];
|
|
5364
|
+
execution_resources: {
|
|
5365
|
+
steps: number;
|
|
5366
|
+
memory_holes?: number | undefined;
|
|
5367
|
+
range_check_builtin_applications?: number | undefined;
|
|
5368
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5369
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5370
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5371
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5372
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5373
|
+
keccak_builtin_applications?: number | undefined;
|
|
5374
|
+
segment_arena_builtin?: number | undefined;
|
|
5375
|
+
data_availability?: {
|
|
5376
|
+
l1_gas: number;
|
|
5377
|
+
l1_data_gas: number;
|
|
5378
|
+
} | undefined;
|
|
5379
|
+
};
|
|
5380
|
+
revert_reason?: string | undefined;
|
|
5381
|
+
contract_address?: string | undefined;
|
|
5382
|
+
} | {
|
|
5383
|
+
block_hash: string;
|
|
5384
|
+
contract_address: string;
|
|
5385
|
+
type: "DEPLOY";
|
|
5386
|
+
transaction_hash: string;
|
|
5387
|
+
actual_fee: {
|
|
5388
|
+
amount: string;
|
|
5389
|
+
unit: "WEI" | "FRI";
|
|
5390
|
+
};
|
|
5391
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5392
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5393
|
+
block_number: number;
|
|
5394
|
+
messages_sent: {
|
|
5395
|
+
from_address: string;
|
|
5396
|
+
to_address: string;
|
|
5397
|
+
payload: string[];
|
|
5398
|
+
}[];
|
|
5399
|
+
events: {
|
|
5400
|
+
data: string[];
|
|
5401
|
+
from_address: string;
|
|
5402
|
+
keys: string[];
|
|
5403
|
+
}[];
|
|
5404
|
+
execution_resources: {
|
|
5405
|
+
steps: number;
|
|
5406
|
+
memory_holes?: number | undefined;
|
|
5407
|
+
range_check_builtin_applications?: number | undefined;
|
|
5408
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5409
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5410
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5411
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5412
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5413
|
+
keccak_builtin_applications?: number | undefined;
|
|
5414
|
+
segment_arena_builtin?: number | undefined;
|
|
5415
|
+
data_availability?: {
|
|
5416
|
+
l1_gas: number;
|
|
5417
|
+
l1_data_gas: number;
|
|
5418
|
+
} | undefined;
|
|
5419
|
+
};
|
|
5420
|
+
revert_reason?: string | undefined;
|
|
5421
|
+
} | {
|
|
5422
|
+
block_hash: string;
|
|
5423
|
+
contract_address: string;
|
|
5424
|
+
type: "DEPLOY" | "DEPLOY_ACCOUNT";
|
|
5425
|
+
transaction_hash: string;
|
|
5426
|
+
actual_fee: {
|
|
5427
|
+
amount: string;
|
|
5428
|
+
unit: "WEI" | "FRI";
|
|
5429
|
+
};
|
|
5430
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5431
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5432
|
+
block_number: number;
|
|
5433
|
+
messages_sent: {
|
|
5434
|
+
from_address: string;
|
|
5435
|
+
to_address: string;
|
|
5436
|
+
payload: string[];
|
|
5437
|
+
}[];
|
|
5438
|
+
events: {
|
|
5439
|
+
data: string[];
|
|
5440
|
+
from_address: string;
|
|
5441
|
+
keys: string[];
|
|
5442
|
+
}[];
|
|
5443
|
+
execution_resources: {
|
|
5444
|
+
steps: number;
|
|
5445
|
+
memory_holes?: number | undefined;
|
|
5446
|
+
range_check_builtin_applications?: number | undefined;
|
|
5447
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5448
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5449
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5450
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5451
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5452
|
+
keccak_builtin_applications?: number | undefined;
|
|
5453
|
+
segment_arena_builtin?: number | undefined;
|
|
5454
|
+
data_availability?: {
|
|
5455
|
+
l1_gas: number;
|
|
5456
|
+
l1_data_gas: number;
|
|
5457
|
+
} | undefined;
|
|
5458
|
+
};
|
|
5459
|
+
revert_reason?: string | undefined;
|
|
5460
|
+
} | {
|
|
5461
|
+
block_hash: string;
|
|
5462
|
+
type: "L1_HANDLER" | "INVOKE";
|
|
5463
|
+
transaction_hash: string;
|
|
5464
|
+
actual_fee: {
|
|
5465
|
+
amount: string;
|
|
5466
|
+
unit: "WEI" | "FRI";
|
|
5467
|
+
};
|
|
5468
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5469
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5470
|
+
block_number: number;
|
|
5471
|
+
messages_sent: {
|
|
5472
|
+
from_address: string;
|
|
5473
|
+
to_address: string;
|
|
5474
|
+
payload: string[];
|
|
5475
|
+
}[];
|
|
5476
|
+
events: {
|
|
5477
|
+
data: string[];
|
|
5478
|
+
from_address: string;
|
|
5479
|
+
keys: string[];
|
|
5480
|
+
}[];
|
|
5481
|
+
execution_resources: {
|
|
5482
|
+
steps: number;
|
|
5483
|
+
memory_holes?: number | undefined;
|
|
5484
|
+
range_check_builtin_applications?: number | undefined;
|
|
5485
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5486
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5487
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5488
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5489
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5490
|
+
keccak_builtin_applications?: number | undefined;
|
|
5491
|
+
segment_arena_builtin?: number | undefined;
|
|
5492
|
+
data_availability?: {
|
|
5493
|
+
l1_gas: number;
|
|
5494
|
+
l1_data_gas: number;
|
|
5495
|
+
} | undefined;
|
|
5496
|
+
};
|
|
5497
|
+
revert_reason?: string | undefined;
|
|
5498
|
+
message_hash?: string | undefined;
|
|
5499
|
+
} | {
|
|
5500
|
+
block_hash: string;
|
|
5501
|
+
type: "L1_HANDLER";
|
|
5502
|
+
transaction_hash: string;
|
|
5503
|
+
actual_fee: {
|
|
5504
|
+
amount: string;
|
|
5505
|
+
unit: "WEI" | "FRI";
|
|
5506
|
+
};
|
|
5507
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5508
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5509
|
+
block_number: number;
|
|
5510
|
+
messages_sent: {
|
|
5511
|
+
from_address: string;
|
|
5512
|
+
to_address: string;
|
|
5513
|
+
payload: string[];
|
|
5514
|
+
}[];
|
|
5515
|
+
events: {
|
|
5516
|
+
data: string[];
|
|
5517
|
+
from_address: string;
|
|
5518
|
+
keys: string[];
|
|
5519
|
+
}[];
|
|
5520
|
+
execution_resources: {
|
|
5521
|
+
steps: number;
|
|
5522
|
+
memory_holes?: number | undefined;
|
|
5523
|
+
range_check_builtin_applications?: number | undefined;
|
|
5524
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5525
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5526
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5527
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5528
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5529
|
+
keccak_builtin_applications?: number | undefined;
|
|
5530
|
+
segment_arena_builtin?: number | undefined;
|
|
5531
|
+
data_availability?: {
|
|
5532
|
+
l1_gas: number;
|
|
5533
|
+
l1_data_gas: number;
|
|
5534
|
+
} | undefined;
|
|
5535
|
+
};
|
|
5536
|
+
message_hash: string;
|
|
5537
|
+
revert_reason?: string | undefined;
|
|
5538
|
+
} | {
|
|
5539
|
+
block_hash: string;
|
|
5540
|
+
type: "L1_HANDLER" | "DECLARE";
|
|
5541
|
+
transaction_hash: string;
|
|
5542
|
+
actual_fee: {
|
|
5543
|
+
amount: string;
|
|
5544
|
+
unit: "WEI" | "FRI";
|
|
5545
|
+
};
|
|
5546
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5547
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5548
|
+
block_number: number;
|
|
5549
|
+
messages_sent: {
|
|
5550
|
+
from_address: string;
|
|
5551
|
+
to_address: string;
|
|
5552
|
+
payload: string[];
|
|
5553
|
+
}[];
|
|
5554
|
+
events: {
|
|
5555
|
+
data: string[];
|
|
5556
|
+
from_address: string;
|
|
5557
|
+
keys: string[];
|
|
5558
|
+
}[];
|
|
5559
|
+
execution_resources: {
|
|
5560
|
+
steps: number;
|
|
5561
|
+
memory_holes?: number | undefined;
|
|
5562
|
+
range_check_builtin_applications?: number | undefined;
|
|
5563
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5564
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5565
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5566
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5567
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5568
|
+
keccak_builtin_applications?: number | undefined;
|
|
5569
|
+
segment_arena_builtin?: number | undefined;
|
|
5570
|
+
data_availability?: {
|
|
5571
|
+
l1_gas: number;
|
|
5572
|
+
l1_data_gas: number;
|
|
5573
|
+
} | undefined;
|
|
5574
|
+
};
|
|
5575
|
+
revert_reason?: string | undefined;
|
|
5576
|
+
message_hash?: string | undefined;
|
|
5577
|
+
} | {
|
|
5578
|
+
block_hash: string;
|
|
5579
|
+
type: "L1_HANDLER" | "DEPLOY";
|
|
5580
|
+
transaction_hash: string;
|
|
5581
|
+
actual_fee: {
|
|
5582
|
+
amount: string;
|
|
5583
|
+
unit: "WEI" | "FRI";
|
|
5584
|
+
};
|
|
5585
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5586
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5587
|
+
block_number: number;
|
|
5588
|
+
messages_sent: {
|
|
5589
|
+
from_address: string;
|
|
5590
|
+
to_address: string;
|
|
5591
|
+
payload: string[];
|
|
5592
|
+
}[];
|
|
5593
|
+
events: {
|
|
5594
|
+
data: string[];
|
|
5595
|
+
from_address: string;
|
|
5596
|
+
keys: string[];
|
|
5597
|
+
}[];
|
|
5598
|
+
execution_resources: {
|
|
5599
|
+
steps: number;
|
|
5600
|
+
memory_holes?: number | undefined;
|
|
5601
|
+
range_check_builtin_applications?: number | undefined;
|
|
5602
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5603
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5604
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5605
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5606
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5607
|
+
keccak_builtin_applications?: number | undefined;
|
|
5608
|
+
segment_arena_builtin?: number | undefined;
|
|
5609
|
+
data_availability?: {
|
|
5610
|
+
l1_gas: number;
|
|
5611
|
+
l1_data_gas: number;
|
|
5612
|
+
} | undefined;
|
|
5613
|
+
};
|
|
5614
|
+
revert_reason?: string | undefined;
|
|
5615
|
+
message_hash?: string | undefined;
|
|
5616
|
+
contract_address?: string | undefined;
|
|
5617
|
+
} | {
|
|
5618
|
+
block_hash: string;
|
|
5619
|
+
type: "L1_HANDLER" | "DEPLOY_ACCOUNT";
|
|
5620
|
+
transaction_hash: string;
|
|
5621
|
+
actual_fee: {
|
|
5622
|
+
amount: string;
|
|
5623
|
+
unit: "WEI" | "FRI";
|
|
5624
|
+
};
|
|
5625
|
+
execution_status: "SUCCEEDED" | "REVERTED";
|
|
5626
|
+
finality_status: "ACCEPTED_ON_L2" | "ACCEPTED_ON_L1";
|
|
5627
|
+
block_number: number;
|
|
5628
|
+
messages_sent: {
|
|
5629
|
+
from_address: string;
|
|
5630
|
+
to_address: string;
|
|
5631
|
+
payload: string[];
|
|
5632
|
+
}[];
|
|
5633
|
+
events: {
|
|
5634
|
+
data: string[];
|
|
5635
|
+
from_address: string;
|
|
5636
|
+
keys: string[];
|
|
5637
|
+
}[];
|
|
5638
|
+
execution_resources: {
|
|
5639
|
+
steps: number;
|
|
5640
|
+
memory_holes?: number | undefined;
|
|
5641
|
+
range_check_builtin_applications?: number | undefined;
|
|
5642
|
+
pedersen_builtin_applications?: number | undefined;
|
|
5643
|
+
poseidon_builtin_applications?: number | undefined;
|
|
5644
|
+
ec_op_builtin_applications?: number | undefined;
|
|
5645
|
+
ecdsa_builtin_applications?: number | undefined;
|
|
5646
|
+
bitwise_builtin_applications?: number | undefined;
|
|
5647
|
+
keccak_builtin_applications?: number | undefined;
|
|
5648
|
+
segment_arena_builtin?: number | undefined;
|
|
5649
|
+
data_availability?: {
|
|
5650
|
+
l1_gas: number;
|
|
5651
|
+
l1_data_gas: number;
|
|
5652
|
+
} | undefined;
|
|
5653
|
+
};
|
|
5654
|
+
revert_reason?: string | undefined;
|
|
5655
|
+
message_hash?: string | undefined;
|
|
5656
|
+
contract_address?: string | undefined;
|
|
5657
|
+
}>;
|
|
5658
|
+
getTransactionTrace(txHash: BigNumberish): Promise<TRANSACTION_TRACE$1>;
|
|
2834
5659
|
/**
|
|
2835
5660
|
* Get the status of a transaction
|
|
2836
5661
|
*/
|
|
2837
|
-
getTransactionStatus(transactionHash: BigNumberish): Promise<TransactionStatus$
|
|
5662
|
+
getTransactionStatus(transactionHash: BigNumberish): Promise<TransactionStatus$2>;
|
|
2838
5663
|
/**
|
|
2839
5664
|
* @param invocations AccountInvocations
|
|
2840
5665
|
* @param simulateTransactionOptions blockIdentifier and flags to skip validation and fee charge<br/>
|
|
@@ -2843,7 +5668,7 @@ declare class RpcProvider$1 implements ProviderInterface {
|
|
|
2843
5668
|
* - skipFeeCharge (default true)<br/>
|
|
2844
5669
|
*/
|
|
2845
5670
|
getSimulateTransaction(invocations: AccountInvocations, options?: getSimulateTransactionOptions): Promise<SimulateTransactionResponse>;
|
|
2846
|
-
waitForTransaction(txHash: BigNumberish, options?: waitForTransactionOptions): Promise<TXN_RECEIPT>;
|
|
5671
|
+
waitForTransaction(txHash: BigNumberish, options?: waitForTransactionOptions): Promise<TXN_RECEIPT$1 | TXN_RECEIPT>;
|
|
2847
5672
|
getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
2848
5673
|
getClassHashAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
2849
5674
|
getClassByHash(classHash: BigNumberish): Promise<LegacyContractClass | Omit<CompiledSierra, "sierra_program_debug_info">>;
|
|
@@ -2859,25 +5684,25 @@ declare class RpcProvider$1 implements ProviderInterface {
|
|
|
2859
5684
|
getDeclareEstimateFee(invocation: DeclareContractTransaction, details: InvocationsDetailsWithNonce, blockIdentifier?: BlockIdentifier, skipValidate?: boolean): Promise<EstimateFeeResponse>;
|
|
2860
5685
|
getDeployAccountEstimateFee(invocation: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce, blockIdentifier?: BlockIdentifier, skipValidate?: boolean): Promise<EstimateFeeResponse>;
|
|
2861
5686
|
getEstimateFeeBulk(invocations: AccountInvocations, options: getEstimateFeeBulkOptions): Promise<EstimateFeeResponseBulk>;
|
|
2862
|
-
invokeFunction(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<InvokedTransaction>;
|
|
2863
|
-
declareContract(transaction: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<DeclaredTransaction>;
|
|
5687
|
+
invokeFunction(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<InvokedTransaction$1>;
|
|
5688
|
+
declareContract(transaction: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<DeclaredTransaction$1>;
|
|
2864
5689
|
deployAccountContract(transaction: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<DeployedAccountTransaction>;
|
|
2865
5690
|
callContract(call: Call, blockIdentifier?: BlockIdentifier): Promise<string[]>;
|
|
2866
5691
|
/**
|
|
2867
5692
|
* NEW: Estimate the fee for a message from L1
|
|
2868
5693
|
* @param message Message From L1
|
|
2869
5694
|
*/
|
|
2870
|
-
estimateMessageFee(message: L1Message, blockIdentifier?: BlockIdentifier): Promise<FEE_ESTIMATE>;
|
|
5695
|
+
estimateMessageFee(message: L1Message, blockIdentifier?: BlockIdentifier): Promise<FEE_ESTIMATE$1>;
|
|
2871
5696
|
/**
|
|
2872
5697
|
* Returns an object about the sync status, or false if the node is not synching
|
|
2873
5698
|
* @returns Object with the stats data
|
|
2874
5699
|
*/
|
|
2875
|
-
getSyncingStats(): Promise<Syncing>;
|
|
5700
|
+
getSyncingStats(): Promise<Syncing$1>;
|
|
2876
5701
|
/**
|
|
2877
5702
|
* Returns all events matching the given filter
|
|
2878
5703
|
* @returns events and the pagination of the events
|
|
2879
5704
|
*/
|
|
2880
|
-
getEvents(eventFilter: EventFilter): Promise<EVENTS_CHUNK>;
|
|
5705
|
+
getEvents(eventFilter: EventFilter): Promise<EVENTS_CHUNK$1>;
|
|
2881
5706
|
}
|
|
2882
5707
|
|
|
2883
5708
|
declare class StarknetId {
|
|
@@ -3607,7 +6432,7 @@ type CalcV3InvokeTxHashArgs = {
|
|
|
3607
6432
|
accountDeploymentData: BigNumberish[];
|
|
3608
6433
|
nonceDataAvailabilityMode: EDAMode;
|
|
3609
6434
|
feeDataAvailabilityMode: EDAMode;
|
|
3610
|
-
resourceBounds: ResourceBounds;
|
|
6435
|
+
resourceBounds: ResourceBounds$1;
|
|
3611
6436
|
tip: BigNumberish;
|
|
3612
6437
|
paymasterData: BigNumberish[];
|
|
3613
6438
|
};
|
|
@@ -3632,7 +6457,7 @@ type CalcV3DeclareTxHashArgs = {
|
|
|
3632
6457
|
accountDeploymentData: BigNumberish[];
|
|
3633
6458
|
nonceDataAvailabilityMode: EDAMode;
|
|
3634
6459
|
feeDataAvailabilityMode: EDAMode;
|
|
3635
|
-
resourceBounds: ResourceBounds;
|
|
6460
|
+
resourceBounds: ResourceBounds$1;
|
|
3636
6461
|
tip: BigNumberish;
|
|
3637
6462
|
paymasterData: BigNumberish[];
|
|
3638
6463
|
};
|
|
@@ -3658,7 +6483,7 @@ type CalcV3DeployAccountTxHashArgs = {
|
|
|
3658
6483
|
nonce: BigNumberish;
|
|
3659
6484
|
nonceDataAvailabilityMode: EDAMode;
|
|
3660
6485
|
feeDataAvailabilityMode: EDAMode;
|
|
3661
|
-
resourceBounds: ResourceBounds;
|
|
6486
|
+
resourceBounds: ResourceBounds$1;
|
|
3662
6487
|
tip: BigNumberish;
|
|
3663
6488
|
paymasterData: BigNumberish[];
|
|
3664
6489
|
};
|
|
@@ -3738,23 +6563,23 @@ declare namespace index$1 {
|
|
|
3738
6563
|
*/
|
|
3739
6564
|
|
|
3740
6565
|
declare function hashDAMode(nonceDAMode: BigNumberish, feeDAMode: BigNumberish): bigint;
|
|
3741
|
-
declare function hashFeeField(tip: BigNumberish, bounds: ResourceBounds): bigint;
|
|
3742
|
-
declare function calculateTransactionHashCommon$1(txHashPrefix: TransactionHashPrefix, version: BigNumberish, senderAddress: BigNumberish, chainId: StarknetChainId, nonce: BigNumberish, tip: BigNumberish, paymasterData: BigNumberish[], nonceDataAvailabilityMode: EDAMode, feeDataAvailabilityMode: EDAMode, resourceBounds: ResourceBounds, additionalData?: BigNumberish[]): string;
|
|
6566
|
+
declare function hashFeeField(tip: BigNumberish, bounds: ResourceBounds$1): bigint;
|
|
6567
|
+
declare function calculateTransactionHashCommon$1(txHashPrefix: TransactionHashPrefix, version: BigNumberish, senderAddress: BigNumberish, chainId: StarknetChainId, nonce: BigNumberish, tip: BigNumberish, paymasterData: BigNumberish[], nonceDataAvailabilityMode: EDAMode, feeDataAvailabilityMode: EDAMode, resourceBounds: ResourceBounds$1, additionalData?: BigNumberish[]): string;
|
|
3743
6568
|
/**
|
|
3744
6569
|
* Calculate v3 deploy_account transaction hash
|
|
3745
6570
|
* @returns format: hex-string
|
|
3746
6571
|
*/
|
|
3747
|
-
declare function calculateDeployAccountTransactionHash$1(contractAddress: BigNumberish, classHash: BigNumberish, compiledConstructorCalldata: Calldata, salt: BigNumberish, version: BigNumberish, chainId: StarknetChainId, nonce: BigNumberish, nonceDataAvailabilityMode: EDAMode, feeDataAvailabilityMode: EDAMode, resourceBounds: ResourceBounds, tip: BigNumberish, paymasterData: BigNumberish[]): string;
|
|
6572
|
+
declare function calculateDeployAccountTransactionHash$1(contractAddress: BigNumberish, classHash: BigNumberish, compiledConstructorCalldata: Calldata, salt: BigNumberish, version: BigNumberish, chainId: StarknetChainId, nonce: BigNumberish, nonceDataAvailabilityMode: EDAMode, feeDataAvailabilityMode: EDAMode, resourceBounds: ResourceBounds$1, tip: BigNumberish, paymasterData: BigNumberish[]): string;
|
|
3748
6573
|
/**
|
|
3749
6574
|
* Calculate v3 declare transaction hash
|
|
3750
6575
|
* @returns format: hex-string
|
|
3751
6576
|
*/
|
|
3752
|
-
declare function calculateDeclareTransactionHash$1(classHash: string, compiledClassHash: string, senderAddress: BigNumberish, version: BigNumberish, chainId: StarknetChainId, nonce: BigNumberish, accountDeploymentData: BigNumberish[], nonceDataAvailabilityMode: EDAMode, feeDataAvailabilityMode: EDAMode, resourceBounds: ResourceBounds, tip: BigNumberish, paymasterData: BigNumberish[]): string;
|
|
6577
|
+
declare function calculateDeclareTransactionHash$1(classHash: string, compiledClassHash: string, senderAddress: BigNumberish, version: BigNumberish, chainId: StarknetChainId, nonce: BigNumberish, accountDeploymentData: BigNumberish[], nonceDataAvailabilityMode: EDAMode, feeDataAvailabilityMode: EDAMode, resourceBounds: ResourceBounds$1, tip: BigNumberish, paymasterData: BigNumberish[]): string;
|
|
3753
6578
|
/**
|
|
3754
6579
|
* Calculate v3 invoke transaction hash
|
|
3755
6580
|
* @returns format: hex-string
|
|
3756
6581
|
*/
|
|
3757
|
-
declare function calculateInvokeTransactionHash(senderAddress: BigNumberish, version: BigNumberish, compiledCalldata: Calldata, chainId: StarknetChainId, nonce: BigNumberish, accountDeploymentData: BigNumberish[], nonceDataAvailabilityMode: EDAMode, feeDataAvailabilityMode: EDAMode, resourceBounds: ResourceBounds, tip: BigNumberish, paymasterData: BigNumberish[]): string;
|
|
6582
|
+
declare function calculateInvokeTransactionHash(senderAddress: BigNumberish, version: BigNumberish, compiledCalldata: Calldata, chainId: StarknetChainId, nonce: BigNumberish, accountDeploymentData: BigNumberish[], nonceDataAvailabilityMode: EDAMode, feeDataAvailabilityMode: EDAMode, resourceBounds: ResourceBounds$1, tip: BigNumberish, paymasterData: BigNumberish[]): string;
|
|
3758
6583
|
|
|
3759
6584
|
declare const v3_calculateInvokeTransactionHash: typeof calculateInvokeTransactionHash;
|
|
3760
6585
|
declare const v3_hashDAMode: typeof hashDAMode;
|
|
@@ -4050,7 +6875,7 @@ declare function signatureToHexArray(sig?: Signature): ArraySignatureType;
|
|
|
4050
6875
|
* Convert estimated fee to max fee with overhead
|
|
4051
6876
|
*/
|
|
4052
6877
|
declare function estimatedFeeToMaxFee(estimatedFee: BigNumberish, overhead?: number): bigint;
|
|
4053
|
-
declare function estimateFeeToBounds(estimate: FeeEstimate | 0n, amountOverhead?: number, priceOverhead?: number): ResourceBounds;
|
|
6878
|
+
declare function estimateFeeToBounds(estimate: FeeEstimate | 0n, amountOverhead?: number, priceOverhead?: number): ResourceBounds$1;
|
|
4054
6879
|
declare function intDAM(dam: EDataAvailabilityMode): EDAMode;
|
|
4055
6880
|
/**
|
|
4056
6881
|
* Convert to ETransactionVersion or throw an error.
|
|
@@ -4381,7 +7206,7 @@ declare class Block {
|
|
|
4381
7206
|
toString: () => BlockIdentifier;
|
|
4382
7207
|
}
|
|
4383
7208
|
declare function isV3Tx(details: InvocationsDetailsWithNonce): details is V3TransactionDetails;
|
|
4384
|
-
declare function isVersion(version: '0.5' | '0.6', response: string): boolean;
|
|
7209
|
+
declare function isVersion(version: '0.5' | '0.6' | '0.7', response: string): boolean;
|
|
4385
7210
|
/**
|
|
4386
7211
|
* Guard Pending Block
|
|
4387
7212
|
*/
|
|
@@ -4389,7 +7214,7 @@ declare function isPendingBlock(response: GetBlockResponse): response is Pending
|
|
|
4389
7214
|
/**
|
|
4390
7215
|
* Guard Pending Transaction
|
|
4391
7216
|
*/
|
|
4392
|
-
declare function isPendingTransaction(response: GetTransactionReceiptResponse): response is PendingReceipt;
|
|
7217
|
+
declare function isPendingTransaction(response: GetTransactionReceiptResponse): response is PendingReceipt$1;
|
|
4393
7218
|
/**
|
|
4394
7219
|
* Guard Pending State Update
|
|
4395
7220
|
* ex. if(isPendingStateUpdate(stateUpdate)) throw Error('Update must be final')
|
|
@@ -4708,4 +7533,4 @@ declare function parseUDCEvent(txReceipt: InvokeTransactionReceiptResponse): {
|
|
|
4708
7533
|
/** @deprecated prefer the 'num' naming */
|
|
4709
7534
|
declare const number: typeof num;
|
|
4710
7535
|
|
|
4711
|
-
export { type Abi, type AbiEntry, type AbiEnums, type AbiEvents, type AbiStructs, Account, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AllowArray, type Args, type ArgsOrCalldata, type ArgsOrCalldataWithOptions, type ArraySignatureType, type AsyncContractFunction, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type Builtins, type ByteArray, type ByteCode, type Cairo1Event, type CairoAssembly, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallStruct, type Calldata, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassResponse, type ContractEntryPointFields, ContractFactory, type ContractFactoryParams, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, CustomError, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransactionReceiptResponse, type Details, EntryPointType, type EntryPointsByType, type EnumAbi, type EstimateFee, type EstimateFeeAction, type EstimateFeeBulk, type EstimateFeeDetails, type EstimateFeeResponse, type EstimateFeeResponseBulk, EthSigner, type EventAbi, type EventEntry, type FunctionAbi, GatewayError, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type HexCalldata, HttpError, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeOptions, type InvokeTransactionReceiptResponse, type L1HandlerTransactionReceiptResponse, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type MultiDeployContractResponse, type MultiType, type Nonce, type OptionalPayload, type ParsedEvent, type ParsedEvents, type ParsedStruct, type PendingBlock, type PendingStateUpdate, type Program, RpcProvider as Provider, ProviderInterface, type ProviderOptions, type PythonicHints, index$3 as RPC, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, type Result, RpcChannel, RpcProvider, type RpcProviderOptions, SIMULATION_FLAG, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type SimulateTransactionDetails, type SimulateTransactionResponse, type SimulatedTransaction, type SimulationFlags, type StarkNetDomain, type StarkNetEnumType, type StarkNetMerkleType, type StarkNetType, type StateUpdate, type StateUpdateResponse, type Storage, type StructAbi, TransactionExecutionStatus, TransactionFinalityStatus, TransactionStatus, TransactionType, type Tupled, type TypedContractV2, type TypedData, TypedDataRevision, Uint, type Uint256, type UniversalDeployerContractPayload, type UniversalDetails, type V2DeclareSignerDetails, type V2DeployAccountSignerDetails, type V2InvocationsSignerDetails, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, type WeierstrassSignatureType, addAddressPadding, buildUrl, byteArray, cairo, constants, contractClassResponseToLegacyCompiledContract, defaultProvider, ec, encode, eth, index as events, extractContractHashes, fixProto, fixStack, getCalldata, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, type getSimulateTransactionOptions, index$1 as hash, isSierra, isUrl, json, merkle, num, number, parseUDCEvent, provider, selector, shortString, splitArgsAndOptions, stark, starknetId, transaction, typedData, index$2 as types, uint256$1 as uint256, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, type waitForTransactionOptions };
|
|
7536
|
+
export { type Abi, type AbiEntry, type AbiEnums, type AbiEvents, type AbiStructs, Account, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AllowArray, type Args, type ArgsOrCalldata, type ArgsOrCalldataWithOptions, type ArraySignatureType, type AsyncContractFunction, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type BlockWithTxHashes, type Builtins, type ByteArray, type ByteCode, type Cairo1Event, type CairoAssembly, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallStruct, type Calldata, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassPayload, type ContractClassResponse, type ContractEntryPointFields, ContractFactory, type ContractFactoryParams, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, CustomError, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransactionReceiptResponse, type Details, EntryPointType, type EntryPointsByType, type EnumAbi, type EstimateFee, type EstimateFeeAction, type EstimateFeeBulk, type EstimateFeeDetails, type EstimateFeeResponse, type EstimateFeeResponseBulk, EthSigner, type EventAbi, type EventEntry, type FeeEstimate, type FunctionAbi, GatewayError, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type HexCalldata, HttpError, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeOptions, type InvokeTransactionReceiptResponse, type L1HandlerTransactionReceiptResponse, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type MultiDeployContractResponse, type MultiType, type Nonce, type OptionalPayload, type ParsedEvent, type ParsedEvents, type ParsedStruct, type PendingBlock, type PendingStateUpdate, type Program, RpcProvider as Provider, ProviderInterface, type ProviderOptions, type PythonicHints, index$3 as RPC, rpc_0_6 as RPC06, rpc_0_7 as RPC07, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, type Result, RpcChannel, RpcProvider, type RpcProviderOptions, SIMULATION_FLAG, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type SimulateTransactionDetails, type SimulateTransactionResponse, type SimulatedTransaction, type SimulationFlags, type StarkNetDomain, type StarkNetEnumType, type StarkNetMerkleType, type StarkNetType, type StateUpdate, type StateUpdateResponse, type Storage, type StructAbi, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, TransactionStatus, TransactionType, type Tupled, type TypedContractV2, type TypedData, TypedDataRevision, Uint, type Uint256, type UniversalDeployerContractPayload, type UniversalDetails, type V2DeclareSignerDetails, type V2DeployAccountSignerDetails, type V2InvocationsSignerDetails, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, type WeierstrassSignatureType, addAddressPadding, buildUrl, byteArray, cairo, constants, contractClassResponseToLegacyCompiledContract, defaultProvider, ec, encode, eth, index as events, extractContractHashes, fixProto, fixStack, getCalldata, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, type getSimulateTransactionOptions, index$1 as hash, isSierra, isUrl, json, merkle, num, number, parseUDCEvent, provider, selector, shortString, splitArgsAndOptions, stark, starknetId, transaction, typedData, index$2 as types, uint256$1 as uint256, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, type waitForTransactionOptions };
|