starknet 6.7.0 → 6.8.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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as starknet_types from 'starknet-types';
2
- import { StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, StarknetChainId as StarknetChainId$1, AddInvokeTransactionParameters, AddDeclareTransactionParameters, AddDeployAccountTransactionParameters } from 'starknet-types';
3
- export { StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from 'starknet-types';
1
+ import * as RPCSPEC07 from 'starknet-types-07';
2
+ import { ETransactionVersion as ETransactionVersion$1, ResourceBounds as ResourceBounds$2, EDataAvailabilityMode as EDataAvailabilityMode$1, ETransactionVersion2 as ETransactionVersion2$1, ETransactionVersion3 as ETransactionVersion3$1, StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision, BlockWithTxReceipts, InvokedTransaction as InvokedTransaction$2, DeclaredTransaction as DeclaredTransaction$2, DeployedAccountTransaction as DeployedAccountTransaction$1, L1Message as L1Message$1, EventFilter as EventFilter$1, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, EDAMode as EDAMode$1, Event as Event$1, ChainId as ChainId$1, AddInvokeTransactionParameters, AddDeclareTransactionParameters } from 'starknet-types-07';
3
+ export { StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from 'starknet-types-07';
4
4
  import * as weierstrass from '@noble/curves/abstract/weierstrass';
5
5
  import { RecoveredSignatureType } from '@noble/curves/abstract/weierstrass';
6
6
  import * as ts_mixer_dist_types_types from 'ts-mixer/dist/types/types';
@@ -9,6 +9,21 @@ import * as poseidon from '@noble/curves/abstract/poseidon';
9
9
  import * as json$1 from 'lossless-json';
10
10
  import * as starknet from '@scure/starknet';
11
11
 
12
+ function _mergeNamespaces(n, m) {
13
+ m.forEach(function (e) {
14
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default' && !(k in n)) {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ });
24
+ return Object.freeze(n);
25
+ }
26
+
12
27
  /**
13
28
  * PRIMITIVES
14
29
  */
@@ -17,18 +32,6 @@ import * as starknet from '@scure/starknet';
17
32
  * @pattern ^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$
18
33
  */
19
34
  type FELT$2 = string;
20
- /**
21
- * an ethereum address represented as 40 hex digits
22
- * @pattern ^0x[a-fA-F0-9]{40}$
23
- */
24
- type ETH_ADDRESS$1 = string;
25
- /**
26
- * A storage key. Represented as up to 62 hex digits, 3 bits, and 5 leading zeroes.
27
- * @pattern ^0x0[0-7]{1}[a-fA-F0-9]{0,62}$
28
- */
29
- type STORAGE_KEY$1 = string;
30
- type ADDRESS$1 = FELT$2;
31
- type NUM_AS_HEX$1 = string;
32
35
  /**
33
36
  * 64 bit integers, represented by hex string of length at most 16
34
37
  * "pattern": "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,15})$"
@@ -40,429 +43,6 @@ type u64$1 = string;
40
43
  */
41
44
  type u128$1 = string;
42
45
  type SIGNATURE$1 = Array<FELT$2>;
43
- type BLOCK_NUMBER$2 = number;
44
- type BLOCK_HASH$2 = FELT$2;
45
- type TXN_HASH$2 = FELT$2;
46
- type CHAIN_ID$1 = NUM_AS_HEX$1;
47
- type STRUCT_ABI_TYPE$1 = 'struct';
48
- type EVENT_ABI_TYPE$1 = 'event';
49
- type FUNCTION_ABI_TYPE$1 = 'function' | 'l1_handler' | 'constructor';
50
- type ENTRY_POINT_TYPE$1 = 'EXTERNAL' | 'L1_HANDLER' | 'CONSTRUCTOR';
51
- type CALL_TYPE$1 = 'DELEGATE' | 'LIBRARY_CALL' | 'CALL';
52
- type TXN_STATUS$1 = 'RECEIVED' | 'REJECTED' | 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1';
53
- type SIMULATION_FLAG$3 = 'SKIP_VALIDATE' | 'SKIP_FEE_CHARGE';
54
- type DA_MODE$1 = 'L1' | 'L2';
55
- type TXN_TYPE$1 = 'DECLARE' | 'DEPLOY' | 'DEPLOY_ACCOUNT' | 'INVOKE' | 'L1_HANDLER';
56
- type TXN_FINALITY_STATUS$1 = 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1';
57
- type TXN_EXECUTION_STATUS$1 = 'SUCCEEDED' | 'REVERTED';
58
- type BLOCK_STATUS$1 = 'PENDING' | 'ACCEPTED_ON_L2' | 'ACCEPTED_ON_L1' | 'REJECTED';
59
- type BLOCK_TAG$1 = 'latest' | 'pending';
60
- /**
61
- * READ API
62
- */
63
- type EVENTS_CHUNK$1 = {
64
- events: EMITTED_EVENT$1[];
65
- continuation_token?: string;
66
- };
67
- type RESULT_PAGE_REQUEST$1 = {
68
- continuation_token?: string;
69
- chunk_size: number;
70
- };
71
- type EMITTED_EVENT$1 = EVENT$2 & {
72
- block_hash: BLOCK_HASH$2;
73
- block_number: BLOCK_NUMBER$2;
74
- transaction_hash: TXN_HASH$2;
75
- };
76
- type EVENT$2 = {
77
- from_address: ADDRESS$1;
78
- } & EVENT_CONTENT$1;
79
- type EVENT_CONTENT$1 = {
80
- keys: FELT$2[];
81
- data: FELT$2[];
82
- };
83
- type EVENT_FILTER$1 = {
84
- from_block?: BLOCK_ID$1;
85
- to_block?: BLOCK_ID$1;
86
- address?: ADDRESS$1;
87
- keys?: FELT$2[][];
88
- };
89
- type BLOCK_ID$1 = {
90
- block_hash?: BLOCK_HASH$2;
91
- block_number?: BLOCK_NUMBER$2;
92
- } | BLOCK_TAG$1;
93
- type SYNC_STATUS$1 = {
94
- starting_block_hash: BLOCK_HASH$2;
95
- starting_block_num: BLOCK_NUMBER$2;
96
- current_block_hash: BLOCK_HASH$2;
97
- current_block_num: BLOCK_NUMBER$2;
98
- highest_block_hash: BLOCK_HASH$2;
99
- highest_block_num: BLOCK_NUMBER$2;
100
- };
101
- type NEW_CLASSES$1 = {
102
- class_hash: FELT$2;
103
- compiled_class_hash: FELT$2;
104
- };
105
- type REPLACED_CLASS$1 = {
106
- class_hash: FELT$2;
107
- contract_address: FELT$2;
108
- };
109
- type NONCE_UPDATE$1 = {
110
- contract_address: ADDRESS$1;
111
- nonce: FELT$2;
112
- };
113
- type STATE_DIFF$1 = {
114
- storage_diffs: CONTRACT_STORAGE_DIFF_ITEM$1[];
115
- deprecated_declared_classes: FELT$2[];
116
- declared_classes: NEW_CLASSES$1[];
117
- deployed_contracts: DEPLOYED_CONTRACT_ITEM$1[];
118
- replaced_classes: REPLACED_CLASS$1[];
119
- nonces: NONCE_UPDATE$1[];
120
- };
121
- type PENDING_STATE_UPDATE$2 = {
122
- old_root: FELT$2;
123
- state_diff: STATE_DIFF$1;
124
- block_hash: never;
125
- };
126
- type STATE_UPDATE$2 = {
127
- block_hash: BLOCK_HASH$2;
128
- old_root: FELT$2;
129
- new_root: FELT$2;
130
- state_diff: STATE_DIFF$1;
131
- };
132
- type BLOCK_BODY_WITH_TX_HASHES$1 = {
133
- transactions: TXN_HASH$2[];
134
- };
135
- type BLOCK_BODY_WITH_TXS$1 = {
136
- transactions: (TXN$1 & {
137
- transaction_hash: TXN_HASH$2;
138
- })[];
139
- };
140
- type BLOCK_BODY_WITH_RECEIPTS = {
141
- transactions: {
142
- transaction: TXN$1;
143
- receipt: TXN_RECEIPT$1;
144
- }[];
145
- };
146
- type BLOCK_HEADER$1 = {
147
- block_hash: BLOCK_HASH$2;
148
- parent_hash: BLOCK_HASH$2;
149
- block_number: BLOCK_NUMBER$2;
150
- new_root: FELT$2;
151
- timestamp: number;
152
- sequencer_address: FELT$2;
153
- l1_gas_price: RESOURCE_PRICE$2;
154
- l1_data_gas_price: RESOURCE_PRICE$2;
155
- l1_da_mode: 'BLOB' | 'CALLDATA';
156
- starknet_version: string;
157
- };
158
- type PENDING_BLOCK_HEADER$1 = {
159
- parent_hash: BLOCK_HASH$2;
160
- timestamp: number;
161
- sequencer_address: FELT$2;
162
- l1_gas_price: RESOURCE_PRICE$2;
163
- l1_data_gas_price: RESOURCE_PRICE$2;
164
- l1_da_mode: 'BLOB' | 'CALLDATA';
165
- starknet_version: string;
166
- };
167
- type BLOCK_WITH_TX_HASHES$1 = {
168
- status: BLOCK_STATUS$1;
169
- } & BLOCK_HEADER$1 & BLOCK_BODY_WITH_TX_HASHES$1;
170
- type BLOCK_WITH_TXS$1 = {
171
- status: BLOCK_STATUS$1;
172
- } & BLOCK_HEADER$1 & BLOCK_BODY_WITH_TXS$1;
173
- type BLOCK_WITH_RECEIPTS = {
174
- status: BLOCK_STATUS$1;
175
- } & BLOCK_HEADER$1 & BLOCK_BODY_WITH_RECEIPTS;
176
- type PENDING_BLOCK_WITH_TX_HASHES$1 = BLOCK_BODY_WITH_TX_HASHES$1 & PENDING_BLOCK_HEADER$1;
177
- type PENDING_BLOCK_WITH_TXS$1 = BLOCK_BODY_WITH_TXS$1 & PENDING_BLOCK_HEADER$1;
178
- type PENDING_BLOCK_WITH_RECEIPTS = BLOCK_BODY_WITH_RECEIPTS & PENDING_BLOCK_HEADER$1;
179
- type DEPLOYED_CONTRACT_ITEM$1 = {
180
- address: FELT$2;
181
- class_hash: FELT$2;
182
- };
183
- type CONTRACT_STORAGE_DIFF_ITEM$1 = {
184
- address: string;
185
- storage_entries: StorageDiffItem$1[];
186
- };
187
- type StorageDiffItem$1 = {
188
- key: string;
189
- value: string;
190
- };
191
- type TXN$1 = INVOKE_TXN$1 | L1_HANDLER_TXN$1 | DECLARE_TXN$1 | DEPLOY_TXN$1 | DEPLOY_ACCOUNT_TXN$1;
192
- type DECLARE_TXN$1 = DECLARE_TXN_V0$1 | DECLARE_TXN_V1$1 | DECLARE_TXN_V2$1 | DECLARE_TXN_V3$1;
193
- type DECLARE_TXN_V0$1 = {
194
- type: 'DECLARE';
195
- sender_address: ADDRESS$1;
196
- max_fee: FELT$2;
197
- version: '0x0' | '0x100000000000000000000000000000000';
198
- signature: SIGNATURE$1;
199
- class_hash: FELT$2;
200
- };
201
- type DECLARE_TXN_V1$1 = {
202
- type: 'DECLARE';
203
- sender_address: ADDRESS$1;
204
- max_fee: FELT$2;
205
- version: '0x1' | '0x100000000000000000000000000000001';
206
- signature: SIGNATURE$1;
207
- nonce: FELT$2;
208
- class_hash: FELT$2;
209
- };
210
- type DECLARE_TXN_V2$1 = {
211
- type: 'DECLARE';
212
- sender_address: ADDRESS$1;
213
- compiled_class_hash: FELT$2;
214
- max_fee: FELT$2;
215
- version: '0x2' | '0x100000000000000000000000000000002';
216
- signature: SIGNATURE$1;
217
- nonce: FELT$2;
218
- class_hash: FELT$2;
219
- };
220
- type DECLARE_TXN_V3$1 = {
221
- type: 'DECLARE';
222
- sender_address: ADDRESS$1;
223
- compiled_class_hash: FELT$2;
224
- version: '0x3' | '0x100000000000000000000000000000003';
225
- signature: SIGNATURE$1;
226
- nonce: FELT$2;
227
- class_hash: FELT$2;
228
- resource_bounds: RESOURCE_BOUNDS_MAPPING$1;
229
- tip: u64$1;
230
- paymaster_data: FELT$2[];
231
- account_deployment_data: FELT$2[];
232
- nonce_data_availability_mode: DA_MODE$1;
233
- fee_data_availability_mode: DA_MODE$1;
234
- };
235
- type BROADCASTED_TXN$1 = BROADCASTED_INVOKE_TXN$1 | BROADCASTED_DECLARE_TXN$1 | BROADCASTED_DEPLOY_ACCOUNT_TXN$1;
236
- type BROADCASTED_INVOKE_TXN$1 = INVOKE_TXN$1;
237
- type BROADCASTED_DEPLOY_ACCOUNT_TXN$1 = DEPLOY_ACCOUNT_TXN$1;
238
- type BROADCASTED_DECLARE_TXN$1 = BROADCASTED_DECLARE_TXN_V1$1 | BROADCASTED_DECLARE_TXN_V2$1 | BROADCASTED_DECLARE_TXN_V3$1;
239
- type BROADCASTED_DECLARE_TXN_V1$1 = {
240
- type: 'DECLARE';
241
- sender_address: ADDRESS$1;
242
- max_fee: FELT$2;
243
- version: '0x1' | '0x100000000000000000000000000000001';
244
- signature: SIGNATURE$1;
245
- nonce: FELT$2;
246
- contract_class: DEPRECATED_CONTRACT_CLASS$1;
247
- };
248
- type BROADCASTED_DECLARE_TXN_V2$1 = {
249
- type: 'DECLARE';
250
- sender_address: ADDRESS$1;
251
- compiled_class_hash: FELT$2;
252
- max_fee: FELT$2;
253
- version: '0x2' | '0x100000000000000000000000000000002';
254
- signature: SIGNATURE$1;
255
- nonce: FELT$2;
256
- contract_class: CONTRACT_CLASS$1;
257
- };
258
- type BROADCASTED_DECLARE_TXN_V3$1 = {
259
- type: 'DECLARE';
260
- sender_address: ADDRESS$1;
261
- compiled_class_hash: FELT$2;
262
- version: '0x3' | '0x100000000000000000000000000000003';
263
- signature: SIGNATURE$1;
264
- nonce: FELT$2;
265
- contract_class: CONTRACT_CLASS$1;
266
- resource_bounds: RESOURCE_BOUNDS_MAPPING$1;
267
- tip: u64$1;
268
- paymaster_data: FELT$2[];
269
- account_deployment_data: FELT$2[];
270
- nonce_data_availability_mode: DA_MODE$1;
271
- fee_data_availability_mode: DA_MODE$1;
272
- };
273
- type DEPLOY_ACCOUNT_TXN$1 = DEPLOY_ACCOUNT_TXN_V1$1 | DEPLOY_ACCOUNT_TXN_V3$1;
274
- type DEPLOY_ACCOUNT_TXN_V1$1 = {
275
- type: 'DEPLOY_ACCOUNT';
276
- max_fee: FELT$2;
277
- version: '0x1' | '0x100000000000000000000000000000001';
278
- signature: SIGNATURE$1;
279
- nonce: FELT$2;
280
- contract_address_salt: FELT$2;
281
- constructor_calldata: FELT$2[];
282
- class_hash: FELT$2;
283
- };
284
- type DEPLOY_ACCOUNT_TXN_V3$1 = {
285
- type: 'DEPLOY_ACCOUNT';
286
- version: '0x3' | '0x100000000000000000000000000000003';
287
- signature: SIGNATURE$1;
288
- nonce: FELT$2;
289
- contract_address_salt: FELT$2;
290
- constructor_calldata: FELT$2[];
291
- class_hash: FELT$2;
292
- resource_bounds: RESOURCE_BOUNDS_MAPPING$1;
293
- tip: u64$1;
294
- paymaster_data: FELT$2[];
295
- nonce_data_availability_mode: DA_MODE$1;
296
- fee_data_availability_mode: DA_MODE$1;
297
- };
298
- type DEPLOY_TXN$1 = {
299
- type: 'DEPLOY';
300
- version: FELT$2;
301
- contract_address_salt: FELT$2;
302
- constructor_calldata: FELT$2[];
303
- class_hash: FELT$2;
304
- };
305
- type INVOKE_TXN$1 = INVOKE_TXN_V0$1 | INVOKE_TXN_V1$1 | INVOKE_TXN_V3$1;
306
- type INVOKE_TXN_V0$1 = {
307
- type: 'INVOKE';
308
- max_fee: FELT$2;
309
- version: '0x0' | '0x100000000000000000000000000000000';
310
- signature: SIGNATURE$1;
311
- contract_address: ADDRESS$1;
312
- entry_point_selector: FELT$2;
313
- calldata: FELT$2[];
314
- };
315
- type INVOKE_TXN_V1$1 = {
316
- type: 'INVOKE';
317
- sender_address: ADDRESS$1;
318
- calldata: FELT$2[];
319
- max_fee: FELT$2;
320
- version: '0x1' | '0x100000000000000000000000000000001';
321
- signature: SIGNATURE$1;
322
- nonce: FELT$2;
323
- };
324
- type INVOKE_TXN_V3$1 = {
325
- type: 'INVOKE';
326
- sender_address: ADDRESS$1;
327
- calldata: FELT$2[];
328
- version: '0x3' | '0x100000000000000000000000000000003';
329
- signature: SIGNATURE$1;
330
- nonce: FELT$2;
331
- resource_bounds: RESOURCE_BOUNDS_MAPPING$1;
332
- tip: u64$1;
333
- paymaster_data: FELT$2[];
334
- account_deployment_data: FELT$2[];
335
- nonce_data_availability_mode: DA_MODE$1;
336
- fee_data_availability_mode: DA_MODE$1;
337
- };
338
- type L1_HANDLER_TXN$1 = {
339
- version: '0x0';
340
- type: 'L1_HANDLER';
341
- nonce: NUM_AS_HEX$1;
342
- } & FUNCTION_CALL$1;
343
- type COMMON_RECEIPT_PROPERTIES$1 = {
344
- transaction_hash: TXN_HASH$2;
345
- actual_fee: FEE_PAYMENT$1;
346
- execution_status: TXN_EXECUTION_STATUS$1;
347
- finality_status: TXN_FINALITY_STATUS$1;
348
- messages_sent: MSG_TO_L1$1[];
349
- revert_reason?: string;
350
- events: EVENT$2[];
351
- execution_resources: EXECUTION_RESOURCES$1;
352
- };
353
- type INVOKE_TXN_RECEIPT$2 = {
354
- type: 'INVOKE';
355
- } & COMMON_RECEIPT_PROPERTIES$1;
356
- type DECLARE_TXN_RECEIPT$2 = {
357
- type: 'DECLARE';
358
- } & COMMON_RECEIPT_PROPERTIES$1;
359
- type DEPLOY_ACCOUNT_TXN_RECEIPT$2 = {
360
- type: 'DEPLOY_ACCOUNT';
361
- contract_address: FELT$2;
362
- } & COMMON_RECEIPT_PROPERTIES$1;
363
- type DEPLOY_TXN_RECEIPT$1 = {
364
- type: 'DEPLOY';
365
- contract_address: FELT$2;
366
- } & COMMON_RECEIPT_PROPERTIES$1;
367
- type L1_HANDLER_TXN_RECEIPT$2 = {
368
- type: 'L1_HANDLER';
369
- message_hash: NUM_AS_HEX$1;
370
- } & COMMON_RECEIPT_PROPERTIES$1;
371
- 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;
372
- type TXN_RECEIPT_WITH_BLOCK_INFO = TXN_RECEIPT$1 & {
373
- block_hash?: BLOCK_HASH$2;
374
- block_number?: BLOCK_NUMBER$2;
375
- };
376
- type MSG_TO_L1$1 = {
377
- from_address: FELT$2;
378
- to_address: FELT$2;
379
- payload: FELT$2[];
380
- };
381
- type MSG_FROM_L1$1 = {
382
- from_address: ETH_ADDRESS$1;
383
- to_address: ADDRESS$1;
384
- entry_point_selector: FELT$2;
385
- payload: FELT$2[];
386
- };
387
- type FUNCTION_CALL$1 = {
388
- contract_address: ADDRESS$1;
389
- entry_point_selector: FELT$2;
390
- calldata: FELT$2[];
391
- };
392
- type CONTRACT_CLASS$1 = {
393
- sierra_program: FELT$2[];
394
- contract_class_version: string;
395
- entry_points_by_type: {
396
- CONSTRUCTOR: SIERRA_ENTRY_POINT$1[];
397
- EXTERNAL: SIERRA_ENTRY_POINT$1[];
398
- L1_HANDLER: SIERRA_ENTRY_POINT$1[];
399
- };
400
- abi: string;
401
- };
402
- type DEPRECATED_CONTRACT_CLASS$1 = {
403
- program: string;
404
- entry_points_by_type: {
405
- CONSTRUCTOR: DEPRECATED_CAIRO_ENTRY_POINT$1[];
406
- EXTERNAL: DEPRECATED_CAIRO_ENTRY_POINT$1[];
407
- L1_HANDLER: DEPRECATED_CAIRO_ENTRY_POINT$1[];
408
- };
409
- abi: CONTRACT_ABI$1;
410
- };
411
- type DEPRECATED_CAIRO_ENTRY_POINT$1 = {
412
- offset: NUM_AS_HEX$1 | number;
413
- selector: FELT$2;
414
- };
415
- type SIERRA_ENTRY_POINT$1 = {
416
- selector: FELT$2;
417
- function_idx: number;
418
- };
419
- type CONTRACT_ABI$1 = readonly CONTRACT_ABI_ENTRY$1[];
420
- type CONTRACT_ABI_ENTRY$1 = {
421
- selector: FELT$2;
422
- input: string;
423
- output: string;
424
- };
425
- type STRUCT_ABI_ENTRY$1 = {
426
- type: STRUCT_ABI_TYPE$1;
427
- name: string;
428
- size: number;
429
- members: STRUCT_MEMBER$1[];
430
- };
431
- type STRUCT_MEMBER$1 = TYPED_PARAMETER$1 & {
432
- offset: number;
433
- };
434
- type EVENT_ABI_ENTRY$1 = {
435
- type: EVENT_ABI_TYPE$1;
436
- name: string;
437
- keys: TYPED_PARAMETER$1[];
438
- data: TYPED_PARAMETER$1[];
439
- };
440
- type FUNCTION_STATE_MUTABILITY$1 = 'view';
441
- type FUNCTION_ABI_ENTRY$1 = {
442
- type: FUNCTION_ABI_TYPE$1;
443
- name: string;
444
- inputs: TYPED_PARAMETER$1[];
445
- outputs: TYPED_PARAMETER$1[];
446
- stateMutability: FUNCTION_STATE_MUTABILITY$1;
447
- };
448
- type TYPED_PARAMETER$1 = {
449
- name: string;
450
- type: string;
451
- };
452
- type SIMULATION_FLAG_FOR_ESTIMATE_FEE$1 = 'SKIP_VALIDATE';
453
- type PRICE_UNIT$2 = 'WEI' | 'FRI';
454
- type FEE_ESTIMATE$1 = {
455
- gas_consumed: FELT$2;
456
- gas_price: FELT$2;
457
- data_gas_consumed: FELT$2;
458
- data_gas_price: FELT$2;
459
- overall_fee: FELT$2;
460
- unit: PRICE_UNIT$2;
461
- };
462
- type FEE_PAYMENT$1 = {
463
- amount: FELT$2;
464
- unit: PRICE_UNIT$2;
465
- };
466
46
  type RESOURCE_BOUNDS_MAPPING$1 = {
467
47
  l1_gas: RESOURCE_BOUNDS$1;
468
48
  l2_gas: RESOURCE_BOUNDS$1;
@@ -471,96 +51,6 @@ type RESOURCE_BOUNDS$1 = {
471
51
  max_amount: u64$1;
472
52
  max_price_per_unit: u128$1;
473
53
  };
474
- type RESOURCE_PRICE$2 = {
475
- price_in_fri: FELT$2;
476
- price_in_wei: FELT$2;
477
- };
478
- type COMPUTATION_RESOURCES = {
479
- steps: number;
480
- memory_holes?: number;
481
- range_check_builtin_applications?: number;
482
- pedersen_builtin_applications?: number;
483
- poseidon_builtin_applications?: number;
484
- ec_op_builtin_applications?: number;
485
- ecdsa_builtin_applications?: number;
486
- bitwise_builtin_applications?: number;
487
- keccak_builtin_applications?: number;
488
- segment_arena_builtin?: number;
489
- };
490
- type EXECUTION_RESOURCES$1 = COMPUTATION_RESOURCES & {
491
- data_availability: {
492
- l1_gas: number;
493
- l1_data_gas: number;
494
- };
495
- };
496
- /**
497
- * TRACE API
498
- */
499
- type TRANSACTION_TRACE$1 = {
500
- invoke_tx_trace?: INVOKE_TXN_TRACE$1;
501
- declare_tx_trace?: DECLARE_TXN_TRACE$1;
502
- deploy_account_tx_trace?: DEPLOY_ACCOUNT_TXN_TRACE$1;
503
- l1_handler_tx_trace?: L1_HANDLER_TXN_TRACE$1;
504
- };
505
- type INVOKE_TXN_TRACE$1 = {
506
- type: 'INVOKE';
507
- execute_invocation: FUNCTION_INVOCATION$1 | {
508
- revert_reason: string;
509
- };
510
- validate_invocation?: FUNCTION_INVOCATION$1;
511
- fee_transfer_invocation?: FUNCTION_INVOCATION$1;
512
- state_diff?: STATE_DIFF$1;
513
- execution_resources: EXECUTION_RESOURCES$1;
514
- };
515
- type DECLARE_TXN_TRACE$1 = {
516
- type: 'DECLARE';
517
- validate_invocation?: FUNCTION_INVOCATION$1;
518
- fee_transfer_invocation?: FUNCTION_INVOCATION$1;
519
- state_diff?: STATE_DIFF$1;
520
- execution_resources: EXECUTION_RESOURCES$1;
521
- };
522
- type DEPLOY_ACCOUNT_TXN_TRACE$1 = {
523
- type: 'DEPLOY_ACCOUNT';
524
- constructor_invocation: FUNCTION_INVOCATION$1;
525
- validate_invocation?: FUNCTION_INVOCATION$1;
526
- fee_transfer_invocation?: FUNCTION_INVOCATION$1;
527
- state_diff?: STATE_DIFF$1;
528
- execution_resources: EXECUTION_RESOURCES$1;
529
- };
530
- type L1_HANDLER_TXN_TRACE$1 = {
531
- type: 'L1_HANDLER';
532
- function_invocation: FUNCTION_INVOCATION$1;
533
- state_diff?: STATE_DIFF$1;
534
- };
535
- type NESTED_CALL$1 = FUNCTION_INVOCATION$1;
536
- type FUNCTION_INVOCATION$1 = FUNCTION_CALL$1 & {
537
- caller_address: string;
538
- class_hash: string;
539
- entry_point_type: ENTRY_POINT_TYPE$1;
540
- call_type: CALL_TYPE$1;
541
- result: string[];
542
- calls: NESTED_CALL$1[];
543
- events: ORDERED_EVENT$1[];
544
- messages: ORDERED_MESSAGE$1[];
545
- execution_resources: COMPUTATION_RESOURCES;
546
- };
547
- type ORDERED_EVENT$1 = {
548
- order: number;
549
- event: EVENT$2;
550
- };
551
- type ORDERED_MESSAGE$1 = {
552
- order: number;
553
- message: MSG_TO_L1$1;
554
- };
555
-
556
- type components$1_BLOCK_BODY_WITH_RECEIPTS = BLOCK_BODY_WITH_RECEIPTS;
557
- type components$1_BLOCK_WITH_RECEIPTS = BLOCK_WITH_RECEIPTS;
558
- type components$1_COMPUTATION_RESOURCES = COMPUTATION_RESOURCES;
559
- type components$1_PENDING_BLOCK_WITH_RECEIPTS = PENDING_BLOCK_WITH_RECEIPTS;
560
- type components$1_TXN_RECEIPT_WITH_BLOCK_INFO = TXN_RECEIPT_WITH_BLOCK_INFO;
561
- declare namespace components$1 {
562
- export type { ADDRESS$1 as ADDRESS, components$1_BLOCK_BODY_WITH_RECEIPTS as BLOCK_BODY_WITH_RECEIPTS, 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, components$1_BLOCK_WITH_RECEIPTS as BLOCK_WITH_RECEIPTS, 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, components$1_COMPUTATION_RESOURCES as COMPUTATION_RESOURCES, 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, components$1_PENDING_BLOCK_WITH_RECEIPTS as PENDING_BLOCK_WITH_RECEIPTS, PENDING_BLOCK_WITH_TXS$1 as PENDING_BLOCK_WITH_TXS, PENDING_BLOCK_WITH_TX_HASHES$1 as PENDING_BLOCK_WITH_TX_HASHES, PENDING_STATE_UPDATE$2 as PENDING_STATE_UPDATE, 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, components$1_TXN_RECEIPT_WITH_BLOCK_INFO as TXN_RECEIPT_WITH_BLOCK_INFO, 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 };
563
- }
564
54
 
565
55
  type RequestBody = {
566
56
  id: number | string;
@@ -584,12 +74,12 @@ type Error$1 = {
584
74
  data?: unknown;
585
75
  };
586
76
 
587
- type index$6_ErrorResponseBody = ErrorResponseBody;
588
- type index$6_RequestBody = RequestBody;
589
- type index$6_ResponseBody = ResponseBody;
590
- type index$6_SuccessResponseBody = SuccessResponseBody;
591
- declare namespace index$6 {
592
- 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 };
77
+ type index$5_ErrorResponseBody = ErrorResponseBody;
78
+ type index$5_RequestBody = RequestBody;
79
+ type index$5_ResponseBody = ResponseBody;
80
+ type index$5_SuccessResponseBody = SuccessResponseBody;
81
+ declare namespace index$5 {
82
+ export type { Error$1 as Error, index$5_ErrorResponseBody as ErrorResponseBody, index$5_RequestBody as RequestBody, index$5_ResponseBody as ResponseBody, index$5_SuccessResponseBody as SuccessResponseBody };
593
83
  }
594
84
 
595
85
  /**
@@ -1366,139 +856,139 @@ interface UNEXPECTED_ERROR {
1366
856
  data: string;
1367
857
  }
1368
858
 
1369
- type errors$1_BLOCK_NOT_FOUND = BLOCK_NOT_FOUND;
1370
- type errors$1_CLASS_ALREADY_DECLARED = CLASS_ALREADY_DECLARED;
1371
- type errors$1_CLASS_HASH_NOT_FOUND = CLASS_HASH_NOT_FOUND;
1372
- type errors$1_COMPILATION_FAILED = COMPILATION_FAILED;
1373
- type errors$1_COMPILED_CLASS_HASH_MISMATCH = COMPILED_CLASS_HASH_MISMATCH;
1374
- type errors$1_CONTRACT_CLASS_SIZE_IS_TOO_LARGE = CONTRACT_CLASS_SIZE_IS_TOO_LARGE;
1375
- type errors$1_CONTRACT_ERROR = CONTRACT_ERROR;
1376
- type errors$1_CONTRACT_NOT_FOUND = CONTRACT_NOT_FOUND;
1377
- type errors$1_DUPLICATE_TX = DUPLICATE_TX;
1378
- type errors$1_FAILED_TO_RECEIVE_TXN = FAILED_TO_RECEIVE_TXN;
1379
- type errors$1_INSUFFICIENT_ACCOUNT_BALANCE = INSUFFICIENT_ACCOUNT_BALANCE;
1380
- type errors$1_INSUFFICIENT_MAX_FEE = INSUFFICIENT_MAX_FEE;
1381
- type errors$1_INVALID_BLOCK_HASH = INVALID_BLOCK_HASH;
1382
- type errors$1_INVALID_CALL_DATA = INVALID_CALL_DATA;
1383
- type errors$1_INVALID_CONTINUATION_TOKEN = INVALID_CONTINUATION_TOKEN;
1384
- type errors$1_INVALID_MESSAGE_SELECTOR = INVALID_MESSAGE_SELECTOR;
1385
- type errors$1_INVALID_TRANSACTION_NONCE = INVALID_TRANSACTION_NONCE;
1386
- type errors$1_INVALID_TXN_INDEX = INVALID_TXN_INDEX;
1387
- type errors$1_NON_ACCOUNT = NON_ACCOUNT;
1388
- type errors$1_NO_BLOCKS = NO_BLOCKS;
1389
- type errors$1_NO_TRACE_AVAILABLE = NO_TRACE_AVAILABLE;
1390
- type errors$1_PAGE_SIZE_TOO_BIG = PAGE_SIZE_TOO_BIG;
1391
- type errors$1_TOO_MANY_KEYS_IN_FILTER = TOO_MANY_KEYS_IN_FILTER;
1392
- type errors$1_TRANSACTION_EXECUTION_ERROR = TRANSACTION_EXECUTION_ERROR;
1393
- type errors$1_TXN_HASH_NOT_FOUND = TXN_HASH_NOT_FOUND;
1394
- type errors$1_UNEXPECTED_ERROR = UNEXPECTED_ERROR;
1395
- type errors$1_UNSUPPORTED_CONTRACT_CLASS_VERSION = UNSUPPORTED_CONTRACT_CLASS_VERSION;
1396
- type errors$1_UNSUPPORTED_TX_VERSION = UNSUPPORTED_TX_VERSION;
1397
- type errors$1_VALIDATION_FAILURE = VALIDATION_FAILURE;
1398
- declare namespace errors$1 {
1399
- 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 };
859
+ type errors_BLOCK_NOT_FOUND = BLOCK_NOT_FOUND;
860
+ type errors_CLASS_ALREADY_DECLARED = CLASS_ALREADY_DECLARED;
861
+ type errors_CLASS_HASH_NOT_FOUND = CLASS_HASH_NOT_FOUND;
862
+ type errors_COMPILATION_FAILED = COMPILATION_FAILED;
863
+ type errors_COMPILED_CLASS_HASH_MISMATCH = COMPILED_CLASS_HASH_MISMATCH;
864
+ type errors_CONTRACT_CLASS_SIZE_IS_TOO_LARGE = CONTRACT_CLASS_SIZE_IS_TOO_LARGE;
865
+ type errors_CONTRACT_ERROR = CONTRACT_ERROR;
866
+ type errors_CONTRACT_NOT_FOUND = CONTRACT_NOT_FOUND;
867
+ type errors_DUPLICATE_TX = DUPLICATE_TX;
868
+ type errors_FAILED_TO_RECEIVE_TXN = FAILED_TO_RECEIVE_TXN;
869
+ type errors_INSUFFICIENT_ACCOUNT_BALANCE = INSUFFICIENT_ACCOUNT_BALANCE;
870
+ type errors_INSUFFICIENT_MAX_FEE = INSUFFICIENT_MAX_FEE;
871
+ type errors_INVALID_BLOCK_HASH = INVALID_BLOCK_HASH;
872
+ type errors_INVALID_CALL_DATA = INVALID_CALL_DATA;
873
+ type errors_INVALID_CONTINUATION_TOKEN = INVALID_CONTINUATION_TOKEN;
874
+ type errors_INVALID_MESSAGE_SELECTOR = INVALID_MESSAGE_SELECTOR;
875
+ type errors_INVALID_TRANSACTION_NONCE = INVALID_TRANSACTION_NONCE;
876
+ type errors_INVALID_TXN_INDEX = INVALID_TXN_INDEX;
877
+ type errors_NON_ACCOUNT = NON_ACCOUNT;
878
+ type errors_NO_BLOCKS = NO_BLOCKS;
879
+ type errors_NO_TRACE_AVAILABLE = NO_TRACE_AVAILABLE;
880
+ type errors_PAGE_SIZE_TOO_BIG = PAGE_SIZE_TOO_BIG;
881
+ type errors_TOO_MANY_KEYS_IN_FILTER = TOO_MANY_KEYS_IN_FILTER;
882
+ type errors_TRANSACTION_EXECUTION_ERROR = TRANSACTION_EXECUTION_ERROR;
883
+ type errors_TXN_HASH_NOT_FOUND = TXN_HASH_NOT_FOUND;
884
+ type errors_UNEXPECTED_ERROR = UNEXPECTED_ERROR;
885
+ type errors_UNSUPPORTED_CONTRACT_CLASS_VERSION = UNSUPPORTED_CONTRACT_CLASS_VERSION;
886
+ type errors_UNSUPPORTED_TX_VERSION = UNSUPPORTED_TX_VERSION;
887
+ type errors_VALIDATION_FAILURE = VALIDATION_FAILURE;
888
+ declare namespace errors {
889
+ export type { errors_BLOCK_NOT_FOUND as BLOCK_NOT_FOUND, errors_CLASS_ALREADY_DECLARED as CLASS_ALREADY_DECLARED, errors_CLASS_HASH_NOT_FOUND as CLASS_HASH_NOT_FOUND, errors_COMPILATION_FAILED as COMPILATION_FAILED, errors_COMPILED_CLASS_HASH_MISMATCH as COMPILED_CLASS_HASH_MISMATCH, errors_CONTRACT_CLASS_SIZE_IS_TOO_LARGE as CONTRACT_CLASS_SIZE_IS_TOO_LARGE, errors_CONTRACT_ERROR as CONTRACT_ERROR, errors_CONTRACT_NOT_FOUND as CONTRACT_NOT_FOUND, errors_DUPLICATE_TX as DUPLICATE_TX, errors_FAILED_TO_RECEIVE_TXN as FAILED_TO_RECEIVE_TXN, errors_INSUFFICIENT_ACCOUNT_BALANCE as INSUFFICIENT_ACCOUNT_BALANCE, errors_INSUFFICIENT_MAX_FEE as INSUFFICIENT_MAX_FEE, errors_INVALID_BLOCK_HASH as INVALID_BLOCK_HASH, errors_INVALID_CALL_DATA as INVALID_CALL_DATA, errors_INVALID_CONTINUATION_TOKEN as INVALID_CONTINUATION_TOKEN, errors_INVALID_MESSAGE_SELECTOR as INVALID_MESSAGE_SELECTOR, errors_INVALID_TRANSACTION_NONCE as INVALID_TRANSACTION_NONCE, errors_INVALID_TXN_INDEX as INVALID_TXN_INDEX, errors_NON_ACCOUNT as NON_ACCOUNT, errors_NO_BLOCKS as NO_BLOCKS, errors_NO_TRACE_AVAILABLE as NO_TRACE_AVAILABLE, errors_PAGE_SIZE_TOO_BIG as PAGE_SIZE_TOO_BIG, errors_TOO_MANY_KEYS_IN_FILTER as TOO_MANY_KEYS_IN_FILTER, errors_TRANSACTION_EXECUTION_ERROR as TRANSACTION_EXECUTION_ERROR, errors_TXN_HASH_NOT_FOUND as TXN_HASH_NOT_FOUND, errors_UNEXPECTED_ERROR as UNEXPECTED_ERROR, errors_UNSUPPORTED_CONTRACT_CLASS_VERSION as UNSUPPORTED_CONTRACT_CLASS_VERSION, errors_UNSUPPORTED_TX_VERSION as UNSUPPORTED_TX_VERSION, errors_VALIDATION_FAILURE as VALIDATION_FAILURE };
1400
890
  }
1401
891
 
1402
892
  /**
1403
893
  * Types that are not in spec but required for UX
1404
894
  */
1405
895
 
1406
- type ContractClass$2 = CONTRACT_CLASS | DEPRECATED_CONTRACT_CLASS;
1407
- type SimulateTransaction$2 = {
896
+ type ContractClass$1 = CONTRACT_CLASS | DEPRECATED_CONTRACT_CLASS;
897
+ type SimulateTransaction$1 = {
1408
898
  transaction_trace: TRANSACTION_TRACE;
1409
899
  fee_estimation: FEE_ESTIMATE;
1410
900
  };
1411
- type SimulateTransactionResponse$2 = SimulateTransaction$2[];
1412
- type FeeEstimate$2 = FEE_ESTIMATE;
1413
- type TransactionWithHash$2 = TXN & {
901
+ type SimulateTransactionResponse$1 = SimulateTransaction$1[];
902
+ type FeeEstimate$1 = FEE_ESTIMATE;
903
+ type TransactionWithHash$1 = TXN & {
1414
904
  transaction_hash: TXN_HASH$1;
1415
905
  };
1416
- type BlockHashAndNumber$1 = {
906
+ type BlockHashAndNumber = {
1417
907
  block_hash: BLOCK_HASH$1;
1418
908
  block_number: BLOCK_NUMBER$1;
1419
909
  };
1420
- type BlockWithTxs$1 = BLOCK_WITH_TXS | PENDING_BLOCK_WITH_TXS;
1421
- type BlockWithTxHashes$2 = BLOCK_WITH_TX_HASHES | PENDING_BLOCK_WITH_TX_HASHES;
1422
- type StateUpdate$2 = STATE_UPDATE$1 | PENDING_STATE_UPDATE$1;
1423
- type BlockTransactionsTraces$1 = {
910
+ type BlockWithTxs = BLOCK_WITH_TXS | PENDING_BLOCK_WITH_TXS;
911
+ type BlockWithTxHashes$1 = BLOCK_WITH_TX_HASHES | PENDING_BLOCK_WITH_TX_HASHES;
912
+ type StateUpdate$1 = STATE_UPDATE$1 | PENDING_STATE_UPDATE$1;
913
+ type BlockTransactionsTraces = {
1424
914
  transaction_hash: FELT$1;
1425
915
  trace_root: TRANSACTION_TRACE;
1426
916
  }[];
1427
- type Syncing$1 = false | SYNC_STATUS;
1428
- type Events$1 = EVENTS_CHUNK;
1429
- type EmittedEvent$1 = EMITTED_EVENT;
1430
- type Event$1 = EVENT$1;
1431
- type InvokedTransaction$2 = {
917
+ type Syncing = false | SYNC_STATUS;
918
+ type Events = EVENTS_CHUNK;
919
+ type EmittedEvent = EMITTED_EVENT;
920
+ type Event = EVENT$1;
921
+ type InvokedTransaction$1 = {
1432
922
  transaction_hash: TXN_HASH$1;
1433
923
  };
1434
- type DeclaredTransaction$2 = {
924
+ type DeclaredTransaction$1 = {
1435
925
  transaction_hash: TXN_HASH$1;
1436
926
  class_hash: FELT$1;
1437
927
  };
1438
- type DeployedAccountTransaction$1 = {
928
+ type DeployedAccountTransaction = {
1439
929
  transaction_hash: TXN_HASH$1;
1440
930
  contract_address: FELT$1;
1441
931
  };
1442
- type ContractAddress$1 = ADDRESS;
1443
- type Felt$1 = FELT$1;
1444
- type Nonce$2 = FELT$1;
1445
- type TransactionHash$1 = TXN_HASH$1;
1446
- type TransactionTrace$1 = TRANSACTION_TRACE;
1447
- type BlockHash$1 = BLOCK_HASH$1;
1448
- type TransactionReceipt$2 = TXN_RECEIPT | PENDING_TXN_RECEIPT;
1449
- type Receipt$1 = TXN_RECEIPT;
1450
- type PendingReceipt$1 = PENDING_TXN_RECEIPT;
1451
- type EventFilter$1 = EVENT_FILTER & RESULT_PAGE_REQUEST;
1452
- type SimulationFlags$2 = Array<SIMULATION_FLAG$2>;
1453
- type L1Message$1 = MSG_FROM_L1;
1454
- type BaseTransaction$1 = BROADCASTED_TXN;
1455
- type ChainId$1 = CHAIN_ID;
1456
- type Transaction$1 = TXN;
1457
- type TransactionStatus$2 = {
932
+ type ContractAddress = ADDRESS;
933
+ type Felt = FELT$1;
934
+ type Nonce$1 = FELT$1;
935
+ type TransactionHash = TXN_HASH$1;
936
+ type TransactionTrace = TRANSACTION_TRACE;
937
+ type BlockHash = BLOCK_HASH$1;
938
+ type TransactionReceipt$1 = TXN_RECEIPT | PENDING_TXN_RECEIPT;
939
+ type Receipt = TXN_RECEIPT;
940
+ type PendingReceipt = PENDING_TXN_RECEIPT;
941
+ type EventFilter = EVENT_FILTER & RESULT_PAGE_REQUEST;
942
+ type SimulationFlags$1 = Array<SIMULATION_FLAG$2>;
943
+ type L1Message = MSG_FROM_L1;
944
+ type BaseTransaction = BROADCASTED_TXN;
945
+ type ChainId = CHAIN_ID;
946
+ type Transaction = TXN;
947
+ type TransactionStatus$1 = {
1458
948
  finality_status: TXN_STATUS;
1459
949
  execution_status?: TXN_EXECUTION_STATUS;
1460
950
  };
1461
- type ResourceBounds$2 = RESOURCE_BOUNDS_MAPPING;
1462
- type FeePayment$1 = FEE_PAYMENT;
1463
- type PriceUnit$1 = PRICE_UNIT$1;
1464
- type StorageDiffs$1 = Array<CONTRACT_STORAGE_DIFF_ITEM>;
1465
- type DeprecatedDeclaredClasses$1 = Array<FELT$1>;
1466
- type NonceUpdates$1 = NONCE_UPDATE[];
1467
- type ReplacedClasses$1 = REPLACED_CLASS[];
1468
- declare enum ETransactionType$1 {
951
+ type ResourceBounds$1 = RESOURCE_BOUNDS_MAPPING;
952
+ type FeePayment = FEE_PAYMENT;
953
+ type PriceUnit = PRICE_UNIT$1;
954
+ type StorageDiffs = Array<CONTRACT_STORAGE_DIFF_ITEM>;
955
+ type DeprecatedDeclaredClasses = Array<FELT$1>;
956
+ type NonceUpdates = NONCE_UPDATE[];
957
+ type ReplacedClasses = REPLACED_CLASS[];
958
+ declare enum ETransactionType {
1469
959
  DECLARE = "DECLARE",
1470
960
  DEPLOY = "DEPLOY",
1471
961
  DEPLOY_ACCOUNT = "DEPLOY_ACCOUNT",
1472
962
  INVOKE = "INVOKE",
1473
963
  L1_HANDLER = "L1_HANDLER"
1474
964
  }
1475
- declare enum ESimulationFlag$1 {
965
+ declare enum ESimulationFlag {
1476
966
  SKIP_VALIDATE = "SKIP_VALIDATE",
1477
967
  SKIP_FEE_CHARGE = "SKIP_FEE_CHARGE"
1478
968
  }
1479
- declare enum ETransactionStatus$1 {
969
+ declare enum ETransactionStatus {
1480
970
  RECEIVED = "RECEIVED",
1481
971
  REJECTED = "REJECTED",
1482
972
  ACCEPTED_ON_L2 = "ACCEPTED_ON_L2",
1483
973
  ACCEPTED_ON_L1 = "ACCEPTED_ON_L1"
1484
974
  }
1485
- declare enum ETransactionFinalityStatus$1 {
975
+ declare enum ETransactionFinalityStatus {
1486
976
  ACCEPTED_ON_L2 = "ACCEPTED_ON_L2",
1487
977
  ACCEPTED_ON_L1 = "ACCEPTED_ON_L1"
1488
978
  }
1489
- declare enum ETransactionExecutionStatus$1 {
979
+ declare enum ETransactionExecutionStatus {
1490
980
  SUCCEEDED = "SUCCEEDED",
1491
981
  REVERTED = "REVERTED"
1492
982
  }
1493
- declare enum EBlockTag$1 {
983
+ declare enum EBlockTag {
1494
984
  LATEST = "latest",
1495
985
  PENDING = "pending"
1496
986
  }
1497
- declare enum EDataAvailabilityMode$1 {
987
+ declare enum EDataAvailabilityMode {
1498
988
  L1 = "L1",
1499
989
  L2 = "L2"
1500
990
  }
1501
- declare enum EDAMode$1 {
991
+ declare enum EDAMode {
1502
992
  L1 = 0,
1503
993
  L2 = 1
1504
994
  }
@@ -1506,7 +996,7 @@ declare enum EDAMode$1 {
1506
996
  * V_ Transaction versions HexString
1507
997
  * F_ Fee Transaction Versions HexString (2 ** 128 + TRANSACTION_VERSION)
1508
998
  */
1509
- declare enum ETransactionVersion$1 {
999
+ declare enum ETransactionVersion {
1510
1000
  V0 = "0x0",
1511
1001
  V1 = "0x1",
1512
1002
  V2 = "0x2",
@@ -1519,7 +1009,7 @@ declare enum ETransactionVersion$1 {
1519
1009
  /**
1520
1010
  * Old Transaction Versions
1521
1011
  */
1522
- declare enum ETransactionVersion2$1 {
1012
+ declare enum ETransactionVersion2 {
1523
1013
  V0 = "0x0",
1524
1014
  V1 = "0x1",
1525
1015
  V2 = "0x2",
@@ -1530,13 +1020,13 @@ declare enum ETransactionVersion2$1 {
1530
1020
  /**
1531
1021
  * V3 Transaction Versions
1532
1022
  */
1533
- declare enum ETransactionVersion3$1 {
1023
+ declare enum ETransactionVersion3 {
1534
1024
  V3 = "0x3",
1535
1025
  F3 = "0x100000000000000000000000000000003"
1536
1026
  }
1537
1027
 
1538
- type Methods$1 = ReadMethods$1 & WriteMethods$1 & TraceMethods$1;
1539
- type ReadMethods$1 = {
1028
+ type Methods = ReadMethods & WriteMethods & TraceMethods;
1029
+ type ReadMethods = {
1540
1030
  starknet_specVersion: {
1541
1031
  params: [];
1542
1032
  result: string;
@@ -1545,21 +1035,21 @@ type ReadMethods$1 = {
1545
1035
  params: {
1546
1036
  block_id: BLOCK_ID;
1547
1037
  };
1548
- result: BlockWithTxHashes$2;
1038
+ result: BlockWithTxHashes$1;
1549
1039
  errors: BLOCK_NOT_FOUND;
1550
1040
  };
1551
1041
  starknet_getBlockWithTxs: {
1552
1042
  params: {
1553
1043
  block_id: BLOCK_ID;
1554
1044
  };
1555
- result: BlockWithTxs$1;
1045
+ result: BlockWithTxs;
1556
1046
  errors: BLOCK_NOT_FOUND;
1557
1047
  };
1558
1048
  starknet_getStateUpdate: {
1559
1049
  params: {
1560
1050
  block_id: BLOCK_ID;
1561
1051
  };
1562
- result: StateUpdate$2;
1052
+ result: StateUpdate$1;
1563
1053
  errors: BLOCK_NOT_FOUND;
1564
1054
  };
1565
1055
  starknet_getStorageAt: {
@@ -1575,14 +1065,14 @@ type ReadMethods$1 = {
1575
1065
  params: {
1576
1066
  transaction_hash: TXN_HASH$1;
1577
1067
  };
1578
- result: TransactionStatus$2;
1068
+ result: TransactionStatus$1;
1579
1069
  errors: TXN_HASH_NOT_FOUND;
1580
1070
  };
1581
1071
  starknet_getTransactionByHash: {
1582
1072
  params: {
1583
1073
  transaction_hash: TXN_HASH$1;
1584
1074
  };
1585
- result: TransactionWithHash$2;
1075
+ result: TransactionWithHash$1;
1586
1076
  errors: TXN_HASH_NOT_FOUND;
1587
1077
  };
1588
1078
  starknet_getTransactionByBlockIdAndIndex: {
@@ -1590,14 +1080,14 @@ type ReadMethods$1 = {
1590
1080
  block_id: BLOCK_ID;
1591
1081
  index: number;
1592
1082
  };
1593
- result: TransactionWithHash$2;
1083
+ result: TransactionWithHash$1;
1594
1084
  errors: BLOCK_NOT_FOUND | INVALID_TXN_INDEX;
1595
1085
  };
1596
1086
  starknet_getTransactionReceipt: {
1597
1087
  params: {
1598
1088
  transaction_hash: TXN_HASH$1;
1599
1089
  };
1600
- result: TransactionReceipt$2;
1090
+ result: TransactionReceipt$1;
1601
1091
  errors: TXN_HASH_NOT_FOUND;
1602
1092
  };
1603
1093
  starknet_getClass: {
@@ -1605,7 +1095,7 @@ type ReadMethods$1 = {
1605
1095
  block_id: BLOCK_ID;
1606
1096
  class_hash: FELT$1;
1607
1097
  };
1608
- result: ContractClass$2;
1098
+ result: ContractClass$1;
1609
1099
  errors: BLOCK_NOT_FOUND | CLASS_HASH_NOT_FOUND;
1610
1100
  };
1611
1101
  starknet_getClassHashAt: {
@@ -1621,7 +1111,7 @@ type ReadMethods$1 = {
1621
1111
  block_id: BLOCK_ID;
1622
1112
  contract_address: ADDRESS;
1623
1113
  };
1624
- result: ContractClass$2;
1114
+ result: ContractClass$1;
1625
1115
  errors: BLOCK_NOT_FOUND | CONTRACT_NOT_FOUND;
1626
1116
  };
1627
1117
  starknet_getBlockTransactionCount: {
@@ -1645,7 +1135,7 @@ type ReadMethods$1 = {
1645
1135
  simulation_flags?: [SIMULATION_FLAG_FOR_ESTIMATE_FEE] | [];
1646
1136
  block_id: BLOCK_ID;
1647
1137
  };
1648
- result: FeeEstimate$2[];
1138
+ result: FeeEstimate$1[];
1649
1139
  errors: TRANSACTION_EXECUTION_ERROR | BLOCK_NOT_FOUND;
1650
1140
  };
1651
1141
  starknet_estimateMessageFee: {
@@ -1653,7 +1143,7 @@ type ReadMethods$1 = {
1653
1143
  message: MSG_FROM_L1;
1654
1144
  block_id: BLOCK_ID;
1655
1145
  };
1656
- result: FeeEstimate$2;
1146
+ result: FeeEstimate$1;
1657
1147
  errors: CONTRACT_ERROR | BLOCK_NOT_FOUND;
1658
1148
  };
1659
1149
  starknet_blockNumber: {
@@ -1663,7 +1153,7 @@ type ReadMethods$1 = {
1663
1153
  };
1664
1154
  starknet_blockHashAndNumber: {
1665
1155
  params: [];
1666
- result: BlockHashAndNumber$1;
1156
+ result: BlockHashAndNumber;
1667
1157
  errors: NO_BLOCKS;
1668
1158
  };
1669
1159
  starknet_chainId: {
@@ -1672,13 +1162,13 @@ type ReadMethods$1 = {
1672
1162
  };
1673
1163
  starknet_syncing: {
1674
1164
  params: [];
1675
- result: Syncing$1;
1165
+ result: Syncing;
1676
1166
  };
1677
1167
  starknet_getEvents: {
1678
1168
  params: {
1679
1169
  filter: EVENT_FILTER & RESULT_PAGE_REQUEST;
1680
1170
  };
1681
- result: Events$1;
1171
+ result: Events;
1682
1172
  errors: PAGE_SIZE_TOO_BIG | INVALID_CONTINUATION_TOKEN | BLOCK_NOT_FOUND | TOO_MANY_KEYS_IN_FILTER;
1683
1173
  };
1684
1174
  starknet_getNonce: {
@@ -1686,46 +1176,46 @@ type ReadMethods$1 = {
1686
1176
  block_id: BLOCK_ID;
1687
1177
  contract_address: ADDRESS;
1688
1178
  };
1689
- result: Nonce$2;
1179
+ result: Nonce$1;
1690
1180
  errors: BLOCK_NOT_FOUND | CONTRACT_NOT_FOUND;
1691
1181
  };
1692
1182
  };
1693
- type WriteMethods$1 = {
1183
+ type WriteMethods = {
1694
1184
  starknet_addInvokeTransaction: {
1695
1185
  params: {
1696
1186
  invoke_transaction: BROADCASTED_INVOKE_TXN;
1697
1187
  };
1698
- result: InvokedTransaction$2;
1188
+ result: InvokedTransaction$1;
1699
1189
  errors: INSUFFICIENT_ACCOUNT_BALANCE | INSUFFICIENT_MAX_FEE | INVALID_TRANSACTION_NONCE | VALIDATION_FAILURE | NON_ACCOUNT | DUPLICATE_TX | UNSUPPORTED_TX_VERSION | UNEXPECTED_ERROR;
1700
1190
  };
1701
1191
  starknet_addDeclareTransaction: {
1702
1192
  params: {
1703
1193
  declare_transaction: BROADCASTED_DECLARE_TXN;
1704
1194
  };
1705
- result: DeclaredTransaction$2;
1195
+ result: DeclaredTransaction$1;
1706
1196
  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;
1707
1197
  };
1708
1198
  starknet_addDeployAccountTransaction: {
1709
1199
  params: {
1710
1200
  deploy_account_transaction: BROADCASTED_DEPLOY_ACCOUNT_TXN;
1711
1201
  };
1712
- result: DeployedAccountTransaction$1;
1202
+ result: DeployedAccountTransaction;
1713
1203
  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;
1714
1204
  };
1715
1205
  };
1716
- type TraceMethods$1 = {
1206
+ type TraceMethods = {
1717
1207
  starknet_traceTransaction: {
1718
1208
  params: {
1719
1209
  transaction_hash: TXN_HASH$1;
1720
1210
  };
1721
- result: TransactionTrace$1;
1211
+ result: TransactionTrace;
1722
1212
  errors: TXN_HASH_NOT_FOUND | NO_TRACE_AVAILABLE;
1723
1213
  };
1724
1214
  starknet_traceBlockTransactions: {
1725
1215
  params: {
1726
1216
  block_id: BLOCK_ID;
1727
1217
  };
1728
- result: BlockTransactionsTraces$1;
1218
+ result: BlockTransactionsTraces;
1729
1219
  errors: BLOCK_NOT_FOUND;
1730
1220
  };
1731
1221
  starknet_simulateTransactions: {
@@ -1734,7 +1224,7 @@ type TraceMethods$1 = {
1734
1224
  transactions: Array<BROADCASTED_TXN>;
1735
1225
  simulation_flags: Array<SIMULATION_FLAG$2>;
1736
1226
  };
1737
- result: SimulateTransactionResponse$2;
1227
+ result: SimulateTransactionResponse$1;
1738
1228
  errors: BLOCK_NOT_FOUND | TRANSACTION_EXECUTION_ERROR;
1739
1229
  };
1740
1230
  };
@@ -1810,412 +1300,22 @@ type ENUM = {
1810
1300
  };
1811
1301
  type INTERFACE = {
1812
1302
  type: 'interface';
1813
- name: string;
1814
- items: Array<FUNCTION>;
1815
- };
1816
- type IMPL = {
1817
- type: 'impl';
1818
- name: string;
1819
- interface_name: string;
1820
- };
1821
- type EVENT_FIELD = {
1822
- name: string;
1823
- type: string;
1824
- kind: 'key' | 'data' | 'nested';
1825
- };
1826
-
1827
- /**
1828
- * version 0.6.0
1829
- */
1830
-
1831
- type index$5_ABI = ABI;
1832
- declare namespace index$5 {
1833
- 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$1 as PendingReceipt, type PriceUnit$1 as PriceUnit, type Receipt$1 as Receipt, type ReplacedClasses$1 as ReplacedClasses, type ResourceBounds$2 as ResourceBounds, components 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 };
1834
- }
1835
-
1836
- type errors_BLOCK_NOT_FOUND = BLOCK_NOT_FOUND;
1837
- type errors_CLASS_ALREADY_DECLARED = CLASS_ALREADY_DECLARED;
1838
- type errors_CLASS_HASH_NOT_FOUND = CLASS_HASH_NOT_FOUND;
1839
- type errors_COMPILATION_FAILED = COMPILATION_FAILED;
1840
- type errors_COMPILED_CLASS_HASH_MISMATCH = COMPILED_CLASS_HASH_MISMATCH;
1841
- type errors_CONTRACT_CLASS_SIZE_IS_TOO_LARGE = CONTRACT_CLASS_SIZE_IS_TOO_LARGE;
1842
- type errors_CONTRACT_ERROR = CONTRACT_ERROR;
1843
- type errors_CONTRACT_NOT_FOUND = CONTRACT_NOT_FOUND;
1844
- type errors_DUPLICATE_TX = DUPLICATE_TX;
1845
- type errors_FAILED_TO_RECEIVE_TXN = FAILED_TO_RECEIVE_TXN;
1846
- type errors_INSUFFICIENT_ACCOUNT_BALANCE = INSUFFICIENT_ACCOUNT_BALANCE;
1847
- type errors_INSUFFICIENT_MAX_FEE = INSUFFICIENT_MAX_FEE;
1848
- type errors_INVALID_BLOCK_HASH = INVALID_BLOCK_HASH;
1849
- type errors_INVALID_CALL_DATA = INVALID_CALL_DATA;
1850
- type errors_INVALID_CONTINUATION_TOKEN = INVALID_CONTINUATION_TOKEN;
1851
- type errors_INVALID_MESSAGE_SELECTOR = INVALID_MESSAGE_SELECTOR;
1852
- type errors_INVALID_TRANSACTION_NONCE = INVALID_TRANSACTION_NONCE;
1853
- type errors_INVALID_TXN_INDEX = INVALID_TXN_INDEX;
1854
- type errors_NON_ACCOUNT = NON_ACCOUNT;
1855
- type errors_NO_BLOCKS = NO_BLOCKS;
1856
- type errors_NO_TRACE_AVAILABLE = NO_TRACE_AVAILABLE;
1857
- type errors_PAGE_SIZE_TOO_BIG = PAGE_SIZE_TOO_BIG;
1858
- type errors_TOO_MANY_KEYS_IN_FILTER = TOO_MANY_KEYS_IN_FILTER;
1859
- type errors_TRANSACTION_EXECUTION_ERROR = TRANSACTION_EXECUTION_ERROR;
1860
- type errors_TXN_HASH_NOT_FOUND = TXN_HASH_NOT_FOUND;
1861
- type errors_UNEXPECTED_ERROR = UNEXPECTED_ERROR;
1862
- type errors_UNSUPPORTED_CONTRACT_CLASS_VERSION = UNSUPPORTED_CONTRACT_CLASS_VERSION;
1863
- type errors_UNSUPPORTED_TX_VERSION = UNSUPPORTED_TX_VERSION;
1864
- type errors_VALIDATION_FAILURE = VALIDATION_FAILURE;
1865
- declare namespace errors {
1866
- export type { errors_BLOCK_NOT_FOUND as BLOCK_NOT_FOUND, errors_CLASS_ALREADY_DECLARED as CLASS_ALREADY_DECLARED, errors_CLASS_HASH_NOT_FOUND as CLASS_HASH_NOT_FOUND, errors_COMPILATION_FAILED as COMPILATION_FAILED, errors_COMPILED_CLASS_HASH_MISMATCH as COMPILED_CLASS_HASH_MISMATCH, errors_CONTRACT_CLASS_SIZE_IS_TOO_LARGE as CONTRACT_CLASS_SIZE_IS_TOO_LARGE, errors_CONTRACT_ERROR as CONTRACT_ERROR, errors_CONTRACT_NOT_FOUND as CONTRACT_NOT_FOUND, errors_DUPLICATE_TX as DUPLICATE_TX, errors_FAILED_TO_RECEIVE_TXN as FAILED_TO_RECEIVE_TXN, errors_INSUFFICIENT_ACCOUNT_BALANCE as INSUFFICIENT_ACCOUNT_BALANCE, errors_INSUFFICIENT_MAX_FEE as INSUFFICIENT_MAX_FEE, errors_INVALID_BLOCK_HASH as INVALID_BLOCK_HASH, errors_INVALID_CALL_DATA as INVALID_CALL_DATA, errors_INVALID_CONTINUATION_TOKEN as INVALID_CONTINUATION_TOKEN, errors_INVALID_MESSAGE_SELECTOR as INVALID_MESSAGE_SELECTOR, errors_INVALID_TRANSACTION_NONCE as INVALID_TRANSACTION_NONCE, errors_INVALID_TXN_INDEX as INVALID_TXN_INDEX, errors_NON_ACCOUNT as NON_ACCOUNT, errors_NO_BLOCKS as NO_BLOCKS, errors_NO_TRACE_AVAILABLE as NO_TRACE_AVAILABLE, errors_PAGE_SIZE_TOO_BIG as PAGE_SIZE_TOO_BIG, errors_TOO_MANY_KEYS_IN_FILTER as TOO_MANY_KEYS_IN_FILTER, errors_TRANSACTION_EXECUTION_ERROR as TRANSACTION_EXECUTION_ERROR, errors_TXN_HASH_NOT_FOUND as TXN_HASH_NOT_FOUND, errors_UNEXPECTED_ERROR as UNEXPECTED_ERROR, errors_UNSUPPORTED_CONTRACT_CLASS_VERSION as UNSUPPORTED_CONTRACT_CLASS_VERSION, errors_UNSUPPORTED_TX_VERSION as UNSUPPORTED_TX_VERSION, errors_VALIDATION_FAILURE as VALIDATION_FAILURE };
1867
- }
1868
-
1869
- /**
1870
- * Types that are not in spec but required for UX
1871
- */
1872
-
1873
- type ContractClass$1 = CONTRACT_CLASS$1 | DEPRECATED_CONTRACT_CLASS$1;
1874
- type SimulateTransaction$1 = {
1875
- transaction_trace: TRANSACTION_TRACE$1;
1876
- fee_estimation: FEE_ESTIMATE$1;
1877
- };
1878
- type SimulateTransactionResponse$1 = SimulateTransaction$1[];
1879
- type FeeEstimate$1 = FEE_ESTIMATE$1;
1880
- type TransactionWithHash$1 = TXN$1 & {
1881
- transaction_hash: TXN_HASH$2;
1882
- };
1883
- type BlockHashAndNumber = {
1884
- block_hash: BLOCK_HASH$2;
1885
- block_number: BLOCK_NUMBER$2;
1886
- };
1887
- type BlockWithTxs = BLOCK_WITH_TXS$1 | PENDING_BLOCK_WITH_TXS$1;
1888
- type BlockWithTxHashes$1 = BLOCK_WITH_TX_HASHES$1 | PENDING_BLOCK_WITH_TX_HASHES$1;
1889
- type BlockWithTxReceipts = BLOCK_WITH_RECEIPTS | PENDING_BLOCK_WITH_RECEIPTS;
1890
- type StateUpdate$1 = STATE_UPDATE$2 | PENDING_STATE_UPDATE$2;
1891
- type BlockTransactionsTraces = {
1892
- transaction_hash: FELT$2;
1893
- trace_root: TRANSACTION_TRACE$1;
1894
- }[];
1895
- type Syncing = false | SYNC_STATUS$1;
1896
- type Events = EVENTS_CHUNK$1;
1897
- type EmittedEvent = EMITTED_EVENT$1;
1898
- type Event = EVENT$2;
1899
- type InvokedTransaction$1 = {
1900
- transaction_hash: TXN_HASH$2;
1901
- };
1902
- type DeclaredTransaction$1 = {
1903
- transaction_hash: TXN_HASH$2;
1904
- class_hash: FELT$2;
1905
- };
1906
- type DeployedAccountTransaction = {
1907
- transaction_hash: TXN_HASH$2;
1908
- contract_address: FELT$2;
1909
- };
1910
- type ContractAddress = ADDRESS$1;
1911
- type Felt = FELT$2;
1912
- type Nonce$1 = FELT$2;
1913
- type TransactionHash = TXN_HASH$2;
1914
- type TransactionTrace = TRANSACTION_TRACE$1;
1915
- type BlockHash = BLOCK_HASH$2;
1916
- type TransactionReceipt$1 = TXN_RECEIPT_WITH_BLOCK_INFO;
1917
- type Receipt = TXN_RECEIPT_WITH_BLOCK_INFO & BlockHashAndNumber;
1918
- type PendingReceipt = TXN_RECEIPT$1;
1919
- type EventFilter = EVENT_FILTER$1 & RESULT_PAGE_REQUEST$1;
1920
- type SimulationFlags$1 = Array<SIMULATION_FLAG$3>;
1921
- type L1Message = MSG_FROM_L1$1;
1922
- type BaseTransaction = BROADCASTED_TXN$1;
1923
- type ChainId = CHAIN_ID$1;
1924
- type Transaction = TXN$1;
1925
- type TransactionStatus$1 = {
1926
- finality_status: TXN_STATUS$1;
1927
- execution_status?: TXN_EXECUTION_STATUS$1;
1928
- };
1929
- type ResourceBounds$1 = RESOURCE_BOUNDS_MAPPING$1;
1930
- type FeePayment = FEE_PAYMENT$1;
1931
- type PriceUnit = PRICE_UNIT$2;
1932
- type StorageDiffs = Array<CONTRACT_STORAGE_DIFF_ITEM$1>;
1933
- type DeprecatedDeclaredClasses = Array<FELT$2>;
1934
- type NonceUpdates = NONCE_UPDATE$1[];
1935
- type ReplacedClasses = REPLACED_CLASS$1[];
1936
- declare enum ETransactionType {
1937
- DECLARE = "DECLARE",
1938
- DEPLOY = "DEPLOY",
1939
- DEPLOY_ACCOUNT = "DEPLOY_ACCOUNT",
1940
- INVOKE = "INVOKE",
1941
- L1_HANDLER = "L1_HANDLER"
1942
- }
1943
- declare enum ESimulationFlag {
1944
- SKIP_VALIDATE = "SKIP_VALIDATE",
1945
- SKIP_FEE_CHARGE = "SKIP_FEE_CHARGE"
1946
- }
1947
- declare enum ETransactionStatus {
1948
- RECEIVED = "RECEIVED",
1949
- REJECTED = "REJECTED",
1950
- ACCEPTED_ON_L2 = "ACCEPTED_ON_L2",
1951
- ACCEPTED_ON_L1 = "ACCEPTED_ON_L1"
1952
- }
1953
- declare enum ETransactionFinalityStatus {
1954
- ACCEPTED_ON_L2 = "ACCEPTED_ON_L2",
1955
- ACCEPTED_ON_L1 = "ACCEPTED_ON_L1"
1956
- }
1957
- declare enum ETransactionExecutionStatus {
1958
- SUCCEEDED = "SUCCEEDED",
1959
- REVERTED = "REVERTED"
1960
- }
1961
- declare enum EBlockTag {
1962
- LATEST = "latest",
1963
- PENDING = "pending"
1964
- }
1965
- declare enum EDataAvailabilityMode {
1966
- L1 = "L1",
1967
- L2 = "L2"
1968
- }
1969
- declare enum EDAMode {
1970
- L1 = 0,
1971
- L2 = 1
1972
- }
1973
- /**
1974
- * V_ Transaction versions HexString
1975
- * F_ Fee Transaction Versions HexString (2 ** 128 + TRANSACTION_VERSION)
1976
- */
1977
- declare enum ETransactionVersion {
1978
- V0 = "0x0",
1979
- V1 = "0x1",
1980
- V2 = "0x2",
1981
- V3 = "0x3",
1982
- F0 = "0x100000000000000000000000000000000",
1983
- F1 = "0x100000000000000000000000000000001",
1984
- F2 = "0x100000000000000000000000000000002",
1985
- F3 = "0x100000000000000000000000000000003"
1986
- }
1987
- /**
1988
- * Old Transaction Versions
1989
- */
1990
- declare enum ETransactionVersion2 {
1991
- V0 = "0x0",
1992
- V1 = "0x1",
1993
- V2 = "0x2",
1994
- F0 = "0x100000000000000000000000000000000",
1995
- F1 = "0x100000000000000000000000000000001",
1996
- F2 = "0x100000000000000000000000000000002"
1997
- }
1998
- /**
1999
- * V3 Transaction Versions
2000
- */
2001
- declare enum ETransactionVersion3 {
2002
- V3 = "0x3",
2003
- F3 = "0x100000000000000000000000000000003"
2004
- }
2005
-
2006
- type Methods = ReadMethods & WriteMethods & TraceMethods;
2007
- type ReadMethods = {
2008
- starknet_specVersion: {
2009
- params: [];
2010
- result: string;
2011
- };
2012
- starknet_getBlockWithTxHashes: {
2013
- params: {
2014
- block_id: BLOCK_ID$1;
2015
- };
2016
- result: BlockWithTxHashes$1;
2017
- errors: BLOCK_NOT_FOUND;
2018
- };
2019
- starknet_getBlockWithTxs: {
2020
- params: {
2021
- block_id: BLOCK_ID$1;
2022
- };
2023
- result: BlockWithTxs;
2024
- errors: BLOCK_NOT_FOUND;
2025
- };
2026
- starknet_getBlockWithReceipts: {
2027
- params: {
2028
- block_id: BLOCK_ID$1;
2029
- };
2030
- result: BlockWithTxReceipts;
2031
- errors: BLOCK_NOT_FOUND;
2032
- };
2033
- starknet_getStateUpdate: {
2034
- params: {
2035
- block_id: BLOCK_ID$1;
2036
- };
2037
- result: StateUpdate$1;
2038
- errors: BLOCK_NOT_FOUND;
2039
- };
2040
- starknet_getStorageAt: {
2041
- params: {
2042
- contract_address: ADDRESS$1;
2043
- key: STORAGE_KEY$1;
2044
- block_id: BLOCK_ID$1;
2045
- };
2046
- result: FELT$2;
2047
- errors: CONTRACT_NOT_FOUND | BLOCK_NOT_FOUND;
2048
- };
2049
- starknet_getTransactionStatus: {
2050
- params: {
2051
- transaction_hash: TXN_HASH$2;
2052
- };
2053
- result: TransactionStatus$1;
2054
- errors: TXN_HASH_NOT_FOUND;
2055
- };
2056
- starknet_getTransactionByHash: {
2057
- params: {
2058
- transaction_hash: TXN_HASH$2;
2059
- };
2060
- result: TransactionWithHash$1;
2061
- errors: TXN_HASH_NOT_FOUND;
2062
- };
2063
- starknet_getTransactionByBlockIdAndIndex: {
2064
- params: {
2065
- block_id: BLOCK_ID$1;
2066
- index: number;
2067
- };
2068
- result: TransactionWithHash$1;
2069
- errors: BLOCK_NOT_FOUND | INVALID_TXN_INDEX;
2070
- };
2071
- starknet_getTransactionReceipt: {
2072
- params: {
2073
- transaction_hash: TXN_HASH$2;
2074
- };
2075
- result: TransactionReceipt$1;
2076
- errors: TXN_HASH_NOT_FOUND;
2077
- };
2078
- starknet_getClass: {
2079
- params: {
2080
- block_id: BLOCK_ID$1;
2081
- class_hash: FELT$2;
2082
- };
2083
- result: ContractClass$1;
2084
- errors: BLOCK_NOT_FOUND | CLASS_HASH_NOT_FOUND;
2085
- };
2086
- starknet_getClassHashAt: {
2087
- params: {
2088
- block_id: BLOCK_ID$1;
2089
- contract_address: ADDRESS$1;
2090
- };
2091
- result: FELT$2;
2092
- errors: BLOCK_NOT_FOUND | CONTRACT_NOT_FOUND;
2093
- };
2094
- starknet_getClassAt: {
2095
- params: {
2096
- block_id: BLOCK_ID$1;
2097
- contract_address: ADDRESS$1;
2098
- };
2099
- result: ContractClass$1;
2100
- errors: BLOCK_NOT_FOUND | CONTRACT_NOT_FOUND;
2101
- };
2102
- starknet_getBlockTransactionCount: {
2103
- params: {
2104
- block_id: BLOCK_ID$1;
2105
- };
2106
- result: number;
2107
- errors: BLOCK_NOT_FOUND;
2108
- };
2109
- starknet_call: {
2110
- params: {
2111
- request: FUNCTION_CALL$1;
2112
- block_id: BLOCK_ID$1;
2113
- };
2114
- result: FELT$2[];
2115
- errors: CONTRACT_NOT_FOUND | CONTRACT_ERROR | BLOCK_NOT_FOUND;
2116
- };
2117
- starknet_estimateFee: {
2118
- params: {
2119
- request: BROADCASTED_TXN$1[];
2120
- simulation_flags?: [SIMULATION_FLAG_FOR_ESTIMATE_FEE$1] | [];
2121
- block_id: BLOCK_ID$1;
2122
- };
2123
- result: FeeEstimate$1[];
2124
- errors: TRANSACTION_EXECUTION_ERROR | BLOCK_NOT_FOUND;
2125
- };
2126
- starknet_estimateMessageFee: {
2127
- params: {
2128
- message: MSG_FROM_L1$1;
2129
- block_id: BLOCK_ID$1;
2130
- };
2131
- result: FeeEstimate$1;
2132
- errors: CONTRACT_ERROR | BLOCK_NOT_FOUND;
2133
- };
2134
- starknet_blockNumber: {
2135
- params: [];
2136
- result: BLOCK_NUMBER$2;
2137
- errors: NO_BLOCKS;
2138
- };
2139
- starknet_blockHashAndNumber: {
2140
- params: [];
2141
- result: BlockHashAndNumber;
2142
- errors: NO_BLOCKS;
2143
- };
2144
- starknet_chainId: {
2145
- params: [];
2146
- result: CHAIN_ID$1;
2147
- };
2148
- starknet_syncing: {
2149
- params: [];
2150
- result: Syncing;
2151
- };
2152
- starknet_getEvents: {
2153
- params: {
2154
- filter: EVENT_FILTER$1 & RESULT_PAGE_REQUEST$1;
2155
- };
2156
- result: Events;
2157
- errors: PAGE_SIZE_TOO_BIG | INVALID_CONTINUATION_TOKEN | BLOCK_NOT_FOUND | TOO_MANY_KEYS_IN_FILTER;
2158
- };
2159
- starknet_getNonce: {
2160
- params: {
2161
- block_id: BLOCK_ID$1;
2162
- contract_address: ADDRESS$1;
2163
- };
2164
- result: Nonce$1;
2165
- errors: BLOCK_NOT_FOUND | CONTRACT_NOT_FOUND;
2166
- };
1303
+ name: string;
1304
+ items: Array<FUNCTION>;
2167
1305
  };
2168
- type WriteMethods = {
2169
- starknet_addInvokeTransaction: {
2170
- params: {
2171
- invoke_transaction: BROADCASTED_INVOKE_TXN$1;
2172
- };
2173
- result: InvokedTransaction$1;
2174
- errors: INSUFFICIENT_ACCOUNT_BALANCE | INSUFFICIENT_MAX_FEE | INVALID_TRANSACTION_NONCE | VALIDATION_FAILURE | NON_ACCOUNT | DUPLICATE_TX | UNSUPPORTED_TX_VERSION | UNEXPECTED_ERROR;
2175
- };
2176
- starknet_addDeclareTransaction: {
2177
- params: {
2178
- declare_transaction: BROADCASTED_DECLARE_TXN$1;
2179
- };
2180
- result: DeclaredTransaction$1;
2181
- 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;
2182
- };
2183
- starknet_addDeployAccountTransaction: {
2184
- params: {
2185
- deploy_account_transaction: BROADCASTED_DEPLOY_ACCOUNT_TXN$1;
2186
- };
2187
- result: DeployedAccountTransaction;
2188
- 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;
2189
- };
1306
+ type IMPL = {
1307
+ type: 'impl';
1308
+ name: string;
1309
+ interface_name: string;
2190
1310
  };
2191
- type TraceMethods = {
2192
- starknet_traceTransaction: {
2193
- params: {
2194
- transaction_hash: TXN_HASH$2;
2195
- };
2196
- result: TransactionTrace;
2197
- errors: TXN_HASH_NOT_FOUND | NO_TRACE_AVAILABLE;
2198
- };
2199
- starknet_traceBlockTransactions: {
2200
- params: {
2201
- block_id: BLOCK_ID$1;
2202
- };
2203
- result: BlockTransactionsTraces;
2204
- errors: BLOCK_NOT_FOUND;
2205
- };
2206
- starknet_simulateTransactions: {
2207
- params: {
2208
- block_id: BLOCK_ID$1;
2209
- transactions: Array<BROADCASTED_TXN$1>;
2210
- simulation_flags: Array<SIMULATION_FLAG$3>;
2211
- };
2212
- result: SimulateTransactionResponse$1;
2213
- errors: BLOCK_NOT_FOUND | TRANSACTION_EXECUTION_ERROR;
2214
- };
1311
+ type EVENT_FIELD = {
1312
+ name: string;
1313
+ type: string;
1314
+ kind: 'key' | 'data' | 'nested';
2215
1315
  };
2216
1316
 
2217
1317
  /**
2218
- * version v0.7.0-rc1
1318
+ * version 0.6.0
2219
1319
  */
2220
1320
 
2221
1321
  type index$4_ABI = ABI;
@@ -2223,7 +1323,6 @@ type index$4_BaseTransaction = BaseTransaction;
2223
1323
  type index$4_BlockHash = BlockHash;
2224
1324
  type index$4_BlockHashAndNumber = BlockHashAndNumber;
2225
1325
  type index$4_BlockTransactionsTraces = BlockTransactionsTraces;
2226
- type index$4_BlockWithTxReceipts = BlockWithTxReceipts;
2227
1326
  type index$4_BlockWithTxs = BlockWithTxs;
2228
1327
  type index$4_ChainId = ChainId;
2229
1328
  type index$4_ContractAddress = ContractAddress;
@@ -2270,63 +1369,15 @@ type index$4_Transaction = Transaction;
2270
1369
  type index$4_TransactionHash = TransactionHash;
2271
1370
  type index$4_TransactionTrace = TransactionTrace;
2272
1371
  declare namespace index$4 {
2273
- 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 index$4_PendingReceipt as PendingReceipt, type index$4_PriceUnit as PriceUnit, type index$4_Receipt as Receipt, type index$4_ReplacedClasses as ReplacedClasses, type ResourceBounds$1 as ResourceBounds, components$1 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 };
1372
+ 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_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 index$4_PendingReceipt as PendingReceipt, type index$4_PriceUnit as PriceUnit, type index$4_Receipt 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 };
2274
1373
  }
2275
1374
 
2276
- type index$3_ABI = ABI;
2277
- type index$3_BaseTransaction = BaseTransaction;
2278
- type index$3_BlockHash = BlockHash;
2279
- type index$3_BlockHashAndNumber = BlockHashAndNumber;
2280
- type index$3_BlockTransactionsTraces = BlockTransactionsTraces;
2281
- type index$3_BlockWithTxReceipts = BlockWithTxReceipts;
2282
- type index$3_BlockWithTxs = BlockWithTxs;
2283
- type index$3_ChainId = ChainId;
2284
- type index$3_ContractAddress = ContractAddress;
2285
- type index$3_DeployedAccountTransaction = DeployedAccountTransaction;
2286
- type index$3_DeprecatedDeclaredClasses = DeprecatedDeclaredClasses;
2287
- type index$3_EBlockTag = EBlockTag;
2288
- declare const index$3_EBlockTag: typeof EBlockTag;
2289
- type index$3_EDAMode = EDAMode;
2290
- declare const index$3_EDAMode: typeof EDAMode;
2291
- type index$3_EDataAvailabilityMode = EDataAvailabilityMode;
2292
- declare const index$3_EDataAvailabilityMode: typeof EDataAvailabilityMode;
2293
- type index$3_ESimulationFlag = ESimulationFlag;
2294
- declare const index$3_ESimulationFlag: typeof ESimulationFlag;
2295
- type index$3_ETransactionExecutionStatus = ETransactionExecutionStatus;
2296
- declare const index$3_ETransactionExecutionStatus: typeof ETransactionExecutionStatus;
2297
- type index$3_ETransactionFinalityStatus = ETransactionFinalityStatus;
2298
- declare const index$3_ETransactionFinalityStatus: typeof ETransactionFinalityStatus;
2299
- type index$3_ETransactionStatus = ETransactionStatus;
2300
- declare const index$3_ETransactionStatus: typeof ETransactionStatus;
2301
- type index$3_ETransactionType = ETransactionType;
2302
- declare const index$3_ETransactionType: typeof ETransactionType;
2303
- type index$3_ETransactionVersion = ETransactionVersion;
2304
- declare const index$3_ETransactionVersion: typeof ETransactionVersion;
2305
- type index$3_ETransactionVersion2 = ETransactionVersion2;
2306
- declare const index$3_ETransactionVersion2: typeof ETransactionVersion2;
2307
- type index$3_ETransactionVersion3 = ETransactionVersion3;
2308
- declare const index$3_ETransactionVersion3: typeof ETransactionVersion3;
2309
- type index$3_EmittedEvent = EmittedEvent;
2310
- type index$3_Event = Event;
2311
- type index$3_EventFilter = EventFilter;
2312
- type index$3_Events = Events;
2313
- type index$3_FeePayment = FeePayment;
2314
- type index$3_Felt = Felt;
2315
- type index$3_L1Message = L1Message;
2316
- type index$3_Methods = Methods;
2317
- type index$3_NonceUpdates = NonceUpdates;
2318
- type index$3_PendingReceipt = PendingReceipt;
2319
- type index$3_PriceUnit = PriceUnit;
2320
- type index$3_Receipt = Receipt;
2321
- type index$3_ReplacedClasses = ReplacedClasses;
2322
- type index$3_StorageDiffs = StorageDiffs;
2323
- type index$3_Syncing = Syncing;
2324
- type index$3_Transaction = Transaction;
2325
- type index$3_TransactionHash = TransactionHash;
2326
- type index$3_TransactionTrace = TransactionTrace;
2327
- declare namespace index$3 {
2328
- 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 index$3_PendingReceipt as PendingReceipt, type index$3_PriceUnit as PriceUnit, index$5 as RPCSPEC06, index$4 as RPCSPEC07, type index$3_Receipt as Receipt, type index$3_ReplacedClasses as ReplacedClasses, type ResourceBounds$1 as ResourceBounds, components$1 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 };
2329
- }
1375
+ var index$3 = /*#__PURE__*/_mergeNamespaces({
1376
+ __proto__: null,
1377
+ JRPC: index$5,
1378
+ RPCSPEC06: index$4,
1379
+ RPCSPEC07: RPCSPEC07
1380
+ }, [RPCSPEC07]);
2330
1381
 
2331
1382
  declare const IS_BROWSER: boolean;
2332
1383
  /**
@@ -2511,7 +1562,7 @@ declare const constants_ZERO: typeof ZERO;
2511
1562
  type constants_feeMarginPercentage = feeMarginPercentage;
2512
1563
  declare const constants_feeMarginPercentage: typeof feeMarginPercentage;
2513
1564
  declare namespace constants {
2514
- export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, constants_BaseUrl as BaseUrl, constants_IS_BROWSER as IS_BROWSER, constants_MASK_250 as MASK_250, constants_MAX_STORAGE_ITEM_SIZE as MAX_STORAGE_ITEM_SIZE, constants_NetworkName as NetworkName, constants_PRIME as PRIME, constants_RANGE_FELT as RANGE_FELT, constants_RANGE_I128 as RANGE_I128, constants_RANGE_U128 as RANGE_U128, constants_RPC_DEFAULT_VERSION as RPC_DEFAULT_VERSION, constants_RPC_NODES as RPC_NODES, constants_StarknetChainId as StarknetChainId, constants_TEXT_TO_FELT_MAX_LEN as TEXT_TO_FELT_MAX_LEN, ETransactionVersion as TRANSACTION_VERSION, constants_TransactionHashPrefix as TransactionHashPrefix, constants_UDC as UDC, constants_ZERO as ZERO, constants_feeMarginPercentage as feeMarginPercentage };
1565
+ export { constants_ADDR_BOUND as ADDR_BOUND, constants_API_VERSION as API_VERSION, constants_BaseUrl as BaseUrl, constants_IS_BROWSER as IS_BROWSER, constants_MASK_250 as MASK_250, constants_MAX_STORAGE_ITEM_SIZE as MAX_STORAGE_ITEM_SIZE, constants_NetworkName as NetworkName, constants_PRIME as PRIME, constants_RANGE_FELT as RANGE_FELT, constants_RANGE_I128 as RANGE_I128, constants_RANGE_U128 as RANGE_U128, constants_RPC_DEFAULT_VERSION as RPC_DEFAULT_VERSION, constants_RPC_NODES as RPC_NODES, constants_StarknetChainId as StarknetChainId, constants_TEXT_TO_FELT_MAX_LEN as TEXT_TO_FELT_MAX_LEN, ETransactionVersion$1 as TRANSACTION_VERSION, constants_TransactionHashPrefix as TransactionHashPrefix, constants_UDC as UDC, constants_ZERO as ZERO, constants_feeMarginPercentage as feeMarginPercentage };
2515
1566
  }
2516
1567
 
2517
1568
  declare const ec_weierstrass: typeof weierstrass;
@@ -2740,6 +1791,7 @@ type CairoAssembly = {
2740
1791
  /** COMPILED CONTRACT */
2741
1792
  /**
2742
1793
  * format produced after starknet-compile .cairo to .json
1794
+ *
2743
1795
  * sierra_program is hex array
2744
1796
  */
2745
1797
  type CompiledSierra = {
@@ -2751,6 +1803,7 @@ type CompiledSierra = {
2751
1803
  };
2752
1804
  /**
2753
1805
  * format produced after compressing 'sierra_program', stringifies 'abi' property and omit sierra_program_debug_info
1806
+ *
2754
1807
  * CompressedCompiledSierra
2755
1808
  */
2756
1809
  type SierraContractClass = Omit<CompiledSierra, 'abi' | 'sierra_program_debug_info'> & {
@@ -2778,6 +1831,7 @@ type SierraContractEntryPointFields = {
2778
1831
 
2779
1832
  /**
2780
1833
  * format produced after compressing compiled contract
1834
+ *
2781
1835
  * CompressedCompiledContract
2782
1836
  */
2783
1837
  type ContractClass = LegacyContractClass | SierraContractClass;
@@ -2806,6 +1860,7 @@ type ByteArray = {
2806
1860
  };
2807
1861
  /**
2808
1862
  * Compiled calldata ready to be sent
1863
+ *
2809
1864
  * decimal-string array
2810
1865
  */
2811
1866
  type Calldata = string[] & {
@@ -2829,6 +1884,7 @@ interface Uint512 {
2829
1884
  }
2830
1885
  /**
2831
1886
  * BigNumberish array
1887
+ *
2832
1888
  * use CallData.compile() to convert to Calldata
2833
1889
  */
2834
1890
  type RawCalldata = BigNumberish[];
@@ -2901,12 +1957,12 @@ type InvocationsDetails = {
2901
1957
  type V3TransactionDetails = {
2902
1958
  nonce: BigNumberish;
2903
1959
  version: BigNumberish;
2904
- resourceBounds: ResourceBounds$1;
1960
+ resourceBounds: ResourceBounds$2;
2905
1961
  tip: BigNumberish;
2906
1962
  paymasterData: BigNumberish[];
2907
1963
  accountDeploymentData: BigNumberish[];
2908
- nonceDataAvailabilityMode: EDataAvailabilityMode;
2909
- feeDataAvailabilityMode: EDataAvailabilityMode;
1964
+ nonceDataAvailabilityMode: EDataAvailabilityMode$1;
1965
+ feeDataAvailabilityMode: EDataAvailabilityMode$1;
2910
1966
  };
2911
1967
  /**
2912
1968
  * Contain all additional details params
@@ -2961,9 +2017,13 @@ declare enum BlockTag {
2961
2017
  }
2962
2018
  type BlockNumber = BlockTag | null | number;
2963
2019
  /**
2964
- * hex string and BN are detected as block hashes
2020
+ * hex string and BigInt are detected as block hashes
2021
+ *
2965
2022
  * decimal string and number are detected as block numbers
2966
- * null appends nothing to the request url
2023
+ *
2024
+ * text string are detected as block tag
2025
+ *
2026
+ * null return 'pending' block tag
2967
2027
  */
2968
2028
  type BlockIdentifier = BlockNumber | BigNumberish;
2969
2029
  /**
@@ -3071,32 +2131,32 @@ type MergeProperties<T1 extends Record<any, any>, T2 extends Record<any, any>> =
3071
2131
  [K in Exclude<keyof T2, keyof T1>]?: T2[K];
3072
2132
  };
3073
2133
  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>;
3074
- type BLOCK_HASH = Merge<BLOCK_HASH$1, BLOCK_HASH$2>;
3075
- type BLOCK_NUMBER = Merge<BLOCK_NUMBER$1, BLOCK_NUMBER$2>;
3076
- type FELT = Merge<FELT$1, FELT$2>;
3077
- type TXN_HASH = Merge<TXN_HASH$1, TXN_HASH$2>;
3078
- type PRICE_UNIT = Merge<PRICE_UNIT$1, PRICE_UNIT$2>;
3079
- type RESOURCE_PRICE = Merge<RESOURCE_PRICE$1, RESOURCE_PRICE$2>;
3080
- type SIMULATION_FLAG$1 = Merge<SIMULATION_FLAG$2, SIMULATION_FLAG$3>;
3081
- type STATE_UPDATE = Merge<STATE_UPDATE$1, STATE_UPDATE$2>;
3082
- type PENDING_STATE_UPDATE = Merge<PENDING_STATE_UPDATE$1, PENDING_STATE_UPDATE$2>;
3083
- type INVOKE_TXN_RECEIPT = Merge<INVOKE_TXN_RECEIPT$1, INVOKE_TXN_RECEIPT$2 & BlockHashAndNumber>;
3084
- type DECLARE_TXN_RECEIPT = Merge<DECLARE_TXN_RECEIPT$1, DECLARE_TXN_RECEIPT$2 & BlockHashAndNumber>;
3085
- type DEPLOY_ACCOUNT_TXN_RECEIPT = Merge<DEPLOY_ACCOUNT_TXN_RECEIPT$1, DEPLOY_ACCOUNT_TXN_RECEIPT$2 & BlockHashAndNumber>;
3086
- type L1_HANDLER_TXN_RECEIPT = Merge<L1_HANDLER_TXN_RECEIPT$1, L1_HANDLER_TXN_RECEIPT$2 & BlockHashAndNumber>;
3087
- type PENDING_INVOKE_TXN_RECEIPT = Merge<PENDING_INVOKE_TXN_RECEIPT$1, INVOKE_TXN_RECEIPT$2>;
3088
- type PENDING_DECLARE_TXN_RECEIPT = Merge<PENDING_DECLARE_TXN_RECEIPT$1, DECLARE_TXN_RECEIPT$2>;
3089
- type PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT = Merge<PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT$1, DEPLOY_ACCOUNT_TXN_RECEIPT$2>;
3090
- type PENDING_L1_HANDLER_TXN_RECEIPT = Merge<PENDING_L1_HANDLER_TXN_RECEIPT$1, L1_HANDLER_TXN_RECEIPT$2>;
3091
- type BlockWithTxHashes = Merge<BlockWithTxHashes$2, BlockWithTxHashes$1>;
3092
- type ContractClassPayload = Merge<ContractClass$2, ContractClass$1>;
3093
- type DeclaredTransaction = Merge<DeclaredTransaction$2, DeclaredTransaction$1>;
3094
- type FeeEstimate = Merge<FEE_ESTIMATE, FEE_ESTIMATE$1>;
3095
- type InvokedTransaction = Merge<InvokedTransaction$2, InvokedTransaction$1>;
3096
- type ResourceBounds = Merge<ResourceBounds$2, ResourceBounds$1>;
3097
- type SimulateTransaction = Merge<SimulateTransaction$2, SimulateTransaction$1>;
3098
- type TransactionReceipt = Merge<TransactionReceipt$2, TransactionReceipt$1>;
3099
- type TransactionWithHash = Merge<TransactionWithHash$2, TransactionWithHash$1>;
2134
+ type BLOCK_HASH = Merge<BLOCK_HASH$1, RPCSPEC07.SPEC.BLOCK_HASH>;
2135
+ type BLOCK_NUMBER = Merge<BLOCK_NUMBER$1, RPCSPEC07.SPEC.BLOCK_NUMBER>;
2136
+ type FELT = Merge<FELT$1, RPCSPEC07.SPEC.FELT>;
2137
+ type TXN_HASH = Merge<TXN_HASH$1, RPCSPEC07.SPEC.TXN_HASH>;
2138
+ type PRICE_UNIT = Merge<PRICE_UNIT$1, RPCSPEC07.SPEC.PRICE_UNIT>;
2139
+ type RESOURCE_PRICE = Merge<RESOURCE_PRICE$1, RPCSPEC07.SPEC.RESOURCE_PRICE>;
2140
+ type SIMULATION_FLAG$1 = Merge<SIMULATION_FLAG$2, RPCSPEC07.SPEC.SIMULATION_FLAG>;
2141
+ type STATE_UPDATE = Merge<STATE_UPDATE$1, RPCSPEC07.SPEC.STATE_UPDATE>;
2142
+ type PENDING_STATE_UPDATE = Merge<PENDING_STATE_UPDATE$1, RPCSPEC07.SPEC.PENDING_STATE_UPDATE>;
2143
+ type INVOKE_TXN_RECEIPT = Merge<INVOKE_TXN_RECEIPT$1, RPCSPEC07.SPEC.INVOKE_TXN_RECEIPT & RPCSPEC07.BlockHashAndNumber>;
2144
+ type DECLARE_TXN_RECEIPT = Merge<DECLARE_TXN_RECEIPT$1, RPCSPEC07.SPEC.DECLARE_TXN_RECEIPT & RPCSPEC07.BlockHashAndNumber>;
2145
+ type DEPLOY_ACCOUNT_TXN_RECEIPT = Merge<DEPLOY_ACCOUNT_TXN_RECEIPT$1, RPCSPEC07.SPEC.DEPLOY_ACCOUNT_TXN_RECEIPT & RPCSPEC07.BlockHashAndNumber>;
2146
+ type L1_HANDLER_TXN_RECEIPT = Merge<L1_HANDLER_TXN_RECEIPT$1, RPCSPEC07.SPEC.L1_HANDLER_TXN_RECEIPT & RPCSPEC07.BlockHashAndNumber>;
2147
+ type PENDING_INVOKE_TXN_RECEIPT = Merge<PENDING_INVOKE_TXN_RECEIPT$1, RPCSPEC07.SPEC.INVOKE_TXN_RECEIPT>;
2148
+ type PENDING_DECLARE_TXN_RECEIPT = Merge<PENDING_DECLARE_TXN_RECEIPT$1, RPCSPEC07.SPEC.DECLARE_TXN_RECEIPT>;
2149
+ type PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT = Merge<PENDING_DEPLOY_ACCOUNT_TXN_RECEIPT$1, RPCSPEC07.SPEC.DEPLOY_ACCOUNT_TXN_RECEIPT>;
2150
+ type PENDING_L1_HANDLER_TXN_RECEIPT = Merge<PENDING_L1_HANDLER_TXN_RECEIPT$1, RPCSPEC07.SPEC.L1_HANDLER_TXN_RECEIPT>;
2151
+ type BlockWithTxHashes = Merge<BlockWithTxHashes$1, RPCSPEC07.BlockWithTxHashes>;
2152
+ type ContractClassPayload = Merge<ContractClass$1, RPCSPEC07.ContractClass>;
2153
+ type DeclaredTransaction = Merge<DeclaredTransaction$1, RPCSPEC07.DeclaredTransaction>;
2154
+ type FeeEstimate = Merge<FEE_ESTIMATE, RPCSPEC07.SPEC.FEE_ESTIMATE>;
2155
+ type InvokedTransaction = Merge<InvokedTransaction$1, RPCSPEC07.InvokedTransaction>;
2156
+ type ResourceBounds = Merge<ResourceBounds$1, RPCSPEC07.ResourceBounds>;
2157
+ type SimulateTransaction = Merge<SimulateTransaction$1, RPCSPEC07.SimulateTransaction>;
2158
+ type TransactionReceipt = Merge<TransactionReceipt$1, RPCSPEC07.TransactionReceipt>;
2159
+ type TransactionWithHash = Merge<TransactionWithHash$1, RPCSPEC07.TransactionWithHash>;
3100
2160
 
3101
2161
  /**
3102
2162
  * Common interface response
@@ -3185,8 +2245,11 @@ type StateUpdate = STATE_UPDATE;
3185
2245
  type PendingStateUpdate = PENDING_STATE_UPDATE;
3186
2246
  /**
3187
2247
  * Standardized type
2248
+ *
3188
2249
  * Cairo0 program compressed and Cairo1 sierra_program decompressed
2250
+ *
3189
2251
  * abi Abi
2252
+ *
3190
2253
  * CompiledSierra without '.sierra_program_debug_info'
3191
2254
  */
3192
2255
  type ContractClassResponse = LegacyContractClass | Omit<CompiledSierra, 'sierra_program_debug_info'>;
@@ -3195,7 +2258,7 @@ interface EstimateFee extends EstimateFeeResponse {
3195
2258
  }
3196
2259
  type EstimateFeeBulk = Array<EstimateFee>;
3197
2260
  type AccountInvocationsFactoryDetails = {
3198
- versions: Array<`${ETransactionVersion}`>;
2261
+ versions: Array<`${ETransactionVersion$1}`>;
3199
2262
  nonce?: BigNumberish;
3200
2263
  blockIdentifier?: BlockIdentifier;
3201
2264
  skipValidate?: boolean;
@@ -3207,10 +2270,10 @@ interface UniversalDetails {
3207
2270
  tip?: BigNumberish;
3208
2271
  paymasterData?: BigNumberish[];
3209
2272
  accountDeploymentData?: BigNumberish[];
3210
- nonceDataAvailabilityMode?: EDataAvailabilityMode;
3211
- feeDataAvailabilityMode?: EDataAvailabilityMode;
2273
+ nonceDataAvailabilityMode?: EDataAvailabilityMode$1;
2274
+ feeDataAvailabilityMode?: EDataAvailabilityMode$1;
3212
2275
  version?: BigNumberish;
3213
- resourceBounds?: ResourceBounds$1;
2276
+ resourceBounds?: ResourceBounds$2;
3214
2277
  skipValidate?: boolean;
3215
2278
  }
3216
2279
  interface EstimateFeeDetails extends UniversalDetails {
@@ -3319,7 +2382,7 @@ type ParsedEvent = {
3319
2382
  type ParsedEvents = Array<ParsedEvent>;
3320
2383
 
3321
2384
  type InvocationsSignerDetails = (V2InvocationsSignerDetails | V3InvocationsSignerDetails) & {
3322
- version: `${ETransactionVersion}`;
2385
+ version: `${ETransactionVersion$1}`;
3323
2386
  skipValidate?: boolean;
3324
2387
  };
3325
2388
  type V2InvocationsSignerDetails = {
@@ -3328,41 +2391,41 @@ type V2InvocationsSignerDetails = {
3328
2391
  chainId: StarknetChainId;
3329
2392
  nonce: BigNumberish;
3330
2393
  maxFee: BigNumberish;
3331
- version: `${ETransactionVersion2}`;
2394
+ version: `${ETransactionVersion2$1}`;
3332
2395
  };
3333
2396
  type V3InvocationsSignerDetails = V3TransactionDetails & {
3334
2397
  walletAddress: string;
3335
2398
  cairoVersion: CairoVersion;
3336
2399
  chainId: StarknetChainId;
3337
- version: `${ETransactionVersion3}`;
2400
+ version: `${ETransactionVersion3$1}`;
3338
2401
  };
3339
2402
  type DeclareSignerDetails = (V3DeclareSignerDetails | V2DeclareSignerDetails) & {
3340
- version: `${ETransactionVersion}`;
2403
+ version: `${ETransactionVersion$1}`;
3341
2404
  };
3342
2405
  type V2DeclareSignerDetails = Required<InvocationsDetails> & {
3343
2406
  classHash: string;
3344
2407
  compiledClassHash?: string;
3345
2408
  senderAddress: string;
3346
2409
  chainId: StarknetChainId;
3347
- version: `${ETransactionVersion2}`;
2410
+ version: `${ETransactionVersion2$1}`;
3348
2411
  };
3349
2412
  type V3DeclareSignerDetails = V3TransactionDetails & {
3350
2413
  classHash: string;
3351
2414
  compiledClassHash: string;
3352
2415
  senderAddress: string;
3353
2416
  chainId: StarknetChainId;
3354
- version: `${ETransactionVersion3}`;
2417
+ version: `${ETransactionVersion3$1}`;
3355
2418
  };
3356
2419
  type DeployAccountSignerDetails = V2DeployAccountSignerDetails | V3DeployAccountSignerDetails;
3357
2420
  type V2DeployAccountSignerDetails = Required<DeployAccountContractPayload> & Required<InvocationsDetails> & {
3358
2421
  contractAddress: BigNumberish;
3359
2422
  chainId: StarknetChainId;
3360
- version: `${ETransactionVersion2}`;
2423
+ version: `${ETransactionVersion2$1}`;
3361
2424
  };
3362
2425
  type V3DeployAccountSignerDetails = Required<DeployAccountContractPayload> & V3TransactionDetails & {
3363
2426
  contractAddress: BigNumberish;
3364
2427
  chainId: StarknetChainId;
3365
- version: `${ETransactionVersion3}`;
2428
+ version: `${ETransactionVersion3$1}`;
3366
2429
  };
3367
2430
 
3368
2431
  type TransactionStatusReceiptSets = {
@@ -3582,33 +2645,33 @@ declare class RpcChannel$1 {
3582
2645
  setChainId(chainId: StarknetChainId): void;
3583
2646
  fetch(method: string, params?: object, id?: string | number): Promise<Response>;
3584
2647
  protected errorHandler(method: string, params: any, rpcError?: Error$1, otherError?: any): void;
3585
- protected fetchEndpoint<T extends keyof Methods$1>(method: T, params?: Methods$1[T]['params']): Promise<Methods$1[T]['result']>;
2648
+ protected fetchEndpoint<T extends keyof Methods>(method: T, params?: Methods[T]['params']): Promise<Methods[T]['result']>;
3586
2649
  getChainId(): Promise<StarknetChainId>;
3587
2650
  getSpecVersion(): Promise<string>;
3588
2651
  getNonceForAddress(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
3589
2652
  /**
3590
2653
  * Get the most recent accepted block hash and number
3591
2654
  */
3592
- getBlockLatestAccepted(): Promise<BlockHashAndNumber$1>;
2655
+ getBlockLatestAccepted(): Promise<BlockHashAndNumber>;
3593
2656
  /**
3594
2657
  * Get the most recent accepted block number
3595
2658
  * redundant use getBlockLatestAccepted();
3596
2659
  * @returns Number of the latest block
3597
2660
  */
3598
2661
  getBlockNumber(): Promise<number>;
3599
- getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxHashes$2>;
3600
- getBlockWithTxs(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxs$1>;
3601
- getBlockStateUpdate(blockIdentifier?: BlockIdentifier): Promise<StateUpdate$2>;
3602
- getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier): Promise<BlockTransactionsTraces$1>;
2662
+ getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxHashes$1>;
2663
+ getBlockWithTxs(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxs>;
2664
+ getBlockStateUpdate(blockIdentifier?: BlockIdentifier): Promise<StateUpdate$1>;
2665
+ getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier): Promise<BlockTransactionsTraces>;
3603
2666
  getBlockTransactionCount(blockIdentifier?: BlockIdentifier): Promise<number>;
3604
- getTransactionByHash(txHash: BigNumberish): Promise<TransactionWithHash$2>;
3605
- getTransactionByBlockIdAndIndex(blockIdentifier: BlockIdentifier, index: number): Promise<TransactionWithHash$2>;
3606
- getTransactionReceipt(txHash: BigNumberish): Promise<TransactionReceipt$2>;
2667
+ getTransactionByHash(txHash: BigNumberish): Promise<TransactionWithHash$1>;
2668
+ getTransactionByBlockIdAndIndex(blockIdentifier: BlockIdentifier, index: number): Promise<TransactionWithHash$1>;
2669
+ getTransactionReceipt(txHash: BigNumberish): Promise<TransactionReceipt$1>;
3607
2670
  getTransactionTrace(txHash: BigNumberish): Promise<TRANSACTION_TRACE>;
3608
2671
  /**
3609
2672
  * Get the status of a transaction
3610
2673
  */
3611
- getTransactionStatus(transactionHash: BigNumberish): Promise<TransactionStatus$2>;
2674
+ getTransactionStatus(transactionHash: BigNumberish): Promise<TransactionStatus$1>;
3612
2675
  /**
3613
2676
  * @param invocations AccountInvocations
3614
2677
  * @param simulateTransactionOptions blockIdentifier and flags to skip validation and fee charge<br/>
@@ -3616,33 +2679,33 @@ declare class RpcChannel$1 {
3616
2679
  * - skipValidate (default false)<br/>
3617
2680
  * - skipFeeCharge (default true)<br/>
3618
2681
  */
3619
- simulateTransaction(invocations: AccountInvocations, { blockIdentifier, skipValidate, skipFeeCharge, }?: getSimulateTransactionOptions): Promise<SimulateTransactionResponse$2>;
2682
+ simulateTransaction(invocations: AccountInvocations, { blockIdentifier, skipValidate, skipFeeCharge, }?: getSimulateTransactionOptions): Promise<SimulateTransactionResponse$1>;
3620
2683
  waitForTransaction(txHash: BigNumberish, options?: waitForTransactionOptions): Promise<TXN_RECEIPT>;
3621
2684
  getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
3622
2685
  getClassHashAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
3623
- getClass(classHash: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<ContractClass$2>;
3624
- getClassAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<ContractClass$2>;
2686
+ getClass(classHash: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<ContractClass$1>;
2687
+ getClassAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<ContractClass$1>;
3625
2688
  getEstimateFee(invocations: AccountInvocations, { blockIdentifier, skipValidate }: getEstimateFeeBulkOptions): Promise<FEE_ESTIMATE[]>;
3626
- invoke(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<InvokedTransaction$2>;
3627
- declare({ contract, signature, senderAddress, compiledClassHash }: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<TXN_RECEIPT | DeclaredTransaction$2>;
3628
- deployAccount({ classHash, constructorCalldata, addressSalt, signature }: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<TXN_RECEIPT | DeployedAccountTransaction$1>;
2689
+ invoke(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<InvokedTransaction$1>;
2690
+ declare({ contract, signature, senderAddress, compiledClassHash }: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<TXN_RECEIPT | DeclaredTransaction$1>;
2691
+ deployAccount({ classHash, constructorCalldata, addressSalt, signature }: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<TXN_RECEIPT | DeployedAccountTransaction>;
3629
2692
  callContract(call: Call, blockIdentifier?: BlockIdentifier): Promise<string[]>;
3630
2693
  /**
3631
2694
  * NEW: Estimate the fee for a message from L1
3632
2695
  * @param message Message From L1
3633
2696
  */
3634
- estimateMessageFee(message: L1Message$1, blockIdentifier?: BlockIdentifier): Promise<FEE_ESTIMATE>;
2697
+ estimateMessageFee(message: L1Message, blockIdentifier?: BlockIdentifier): Promise<FEE_ESTIMATE>;
3635
2698
  /**
3636
2699
  * Returns an object about the sync status, or false if the node is not synching
3637
2700
  * @returns Object with the stats data
3638
2701
  */
3639
- getSyncingStats(): Promise<Syncing$1>;
2702
+ getSyncingStats(): Promise<Syncing>;
3640
2703
  /**
3641
2704
  * Returns all events matching the given filter
3642
2705
  * @returns events and the pagination of the events
3643
2706
  */
3644
- getEvents(eventFilter: EventFilter$1): Promise<EVENTS_CHUNK>;
3645
- buildTransaction(invocation: AccountInvocationItem, versionType?: 'fee' | 'transaction'): BaseTransaction$1;
2707
+ getEvents(eventFilter: EventFilter): Promise<EVENTS_CHUNK>;
2708
+ buildTransaction(invocation: AccountInvocationItem, versionType?: 'fee' | 'transaction'): BaseTransaction;
3646
2709
  }
3647
2710
 
3648
2711
  declare namespace rpc_0_6 {
@@ -3662,34 +2725,34 @@ declare class RpcChannel {
3662
2725
  setChainId(chainId: StarknetChainId): void;
3663
2726
  fetch(method: string, params?: object, id?: string | number): Promise<Response>;
3664
2727
  protected errorHandler(method: string, params: any, rpcError?: Error$1, otherError?: any): void;
3665
- protected fetchEndpoint<T extends keyof Methods>(method: T, params?: Methods[T]['params']): Promise<Methods[T]['result']>;
2728
+ protected fetchEndpoint<T extends keyof RPCSPEC07.Methods>(method: T, params?: RPCSPEC07.Methods[T]['params']): Promise<RPCSPEC07.Methods[T]['result']>;
3666
2729
  getChainId(): Promise<StarknetChainId>;
3667
2730
  getSpecVersion(): Promise<string>;
3668
2731
  getNonceForAddress(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
3669
2732
  /**
3670
2733
  * Get the most recent accepted block hash and number
3671
2734
  */
3672
- getBlockLatestAccepted(): Promise<BlockHashAndNumber>;
2735
+ getBlockLatestAccepted(): Promise<RPCSPEC07.BlockHashAndNumber>;
3673
2736
  /**
3674
2737
  * Get the most recent accepted block number
3675
2738
  * redundant use getBlockLatestAccepted();
3676
2739
  * @returns Number of the latest block
3677
2740
  */
3678
2741
  getBlockNumber(): Promise<number>;
3679
- getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxHashes$1>;
3680
- getBlockWithTxs(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxs>;
3681
- getBlockWithReceipts(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxReceipts>;
3682
- getBlockStateUpdate(blockIdentifier?: BlockIdentifier): Promise<StateUpdate$1>;
3683
- getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier): Promise<BlockTransactionsTraces>;
2742
+ getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<RPCSPEC07.BlockWithTxHashes>;
2743
+ getBlockWithTxs(blockIdentifier?: BlockIdentifier): Promise<RPCSPEC07.BlockWithTxs>;
2744
+ getBlockWithReceipts(blockIdentifier?: BlockIdentifier): Promise<RPCSPEC07.BlockWithTxReceipts>;
2745
+ getBlockStateUpdate(blockIdentifier?: BlockIdentifier): Promise<RPCSPEC07.StateUpdate>;
2746
+ getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier): Promise<RPCSPEC07.BlockTransactionsTraces>;
3684
2747
  getBlockTransactionCount(blockIdentifier?: BlockIdentifier): Promise<number>;
3685
- getTransactionByHash(txHash: BigNumberish): Promise<TransactionWithHash$1>;
3686
- getTransactionByBlockIdAndIndex(blockIdentifier: BlockIdentifier, index: number): Promise<TransactionWithHash$1>;
3687
- getTransactionReceipt(txHash: BigNumberish): Promise<TXN_RECEIPT_WITH_BLOCK_INFO>;
3688
- getTransactionTrace(txHash: BigNumberish): Promise<TRANSACTION_TRACE$1>;
2748
+ getTransactionByHash(txHash: BigNumberish): Promise<RPCSPEC07.TransactionWithHash>;
2749
+ getTransactionByBlockIdAndIndex(blockIdentifier: BlockIdentifier, index: number): Promise<RPCSPEC07.TransactionWithHash>;
2750
+ getTransactionReceipt(txHash: BigNumberish): Promise<RPCSPEC07.API.SPEC.TXN_RECEIPT_WITH_BLOCK_INFO>;
2751
+ getTransactionTrace(txHash: BigNumberish): Promise<RPCSPEC07.API.SPEC.TRANSACTION_TRACE>;
3689
2752
  /**
3690
2753
  * Get the status of a transaction
3691
2754
  */
3692
- getTransactionStatus(transactionHash: BigNumberish): Promise<TransactionStatus$1>;
2755
+ getTransactionStatus(transactionHash: BigNumberish): Promise<RPCSPEC07.TransactionStatus>;
3693
2756
  /**
3694
2757
  * @param invocations AccountInvocations
3695
2758
  * @param simulateTransactionOptions blockIdentifier and flags to skip validation and fee charge<br/>
@@ -3697,33 +2760,33 @@ declare class RpcChannel {
3697
2760
  * - skipValidate (default false)<br/>
3698
2761
  * - skipFeeCharge (default true)<br/>
3699
2762
  */
3700
- simulateTransaction(invocations: AccountInvocations, { blockIdentifier, skipValidate, skipFeeCharge, }?: getSimulateTransactionOptions): Promise<SimulateTransactionResponse$1>;
3701
- waitForTransaction(txHash: BigNumberish, options?: waitForTransactionOptions): Promise<TXN_RECEIPT$1>;
2763
+ simulateTransaction(invocations: AccountInvocations, { blockIdentifier, skipValidate, skipFeeCharge, }?: getSimulateTransactionOptions): Promise<RPCSPEC07.SimulateTransactionResponse>;
2764
+ waitForTransaction(txHash: BigNumberish, options?: waitForTransactionOptions): Promise<RPCSPEC07.API.SPEC.TXN_RECEIPT>;
3702
2765
  getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
3703
2766
  getClassHashAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<string>;
3704
- getClass(classHash: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<ContractClass$1>;
3705
- getClassAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<ContractClass$1>;
3706
- getEstimateFee(invocations: AccountInvocations, { blockIdentifier, skipValidate }: getEstimateFeeBulkOptions): Promise<FEE_ESTIMATE$1[]>;
3707
- invoke(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<InvokedTransaction$1>;
3708
- declare({ contract, signature, senderAddress, compiledClassHash }: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<TXN_RECEIPT$1 | DeclaredTransaction$1>;
3709
- deployAccount({ classHash, constructorCalldata, addressSalt, signature }: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<TXN_RECEIPT$1 | DeployedAccountTransaction>;
2767
+ getClass(classHash: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<RPCSPEC07.ContractClass>;
2768
+ getClassAt(contractAddress: BigNumberish, blockIdentifier?: BlockIdentifier): Promise<RPCSPEC07.ContractClass>;
2769
+ getEstimateFee(invocations: AccountInvocations, { blockIdentifier, skipValidate }: getEstimateFeeBulkOptions): Promise<RPCSPEC07.API.SPEC.FEE_ESTIMATE[]>;
2770
+ invoke(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<RPCSPEC07.InvokedTransaction>;
2771
+ declare({ contract, signature, senderAddress, compiledClassHash }: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<RPCSPEC07.DeclaredTransaction | RPCSPEC07.API.SPEC.TXN_RECEIPT>;
2772
+ deployAccount({ classHash, constructorCalldata, addressSalt, signature }: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<RPCSPEC07.API.SPEC.TXN_RECEIPT | RPCSPEC07.DeployedAccountTransaction>;
3710
2773
  callContract(call: Call, blockIdentifier?: BlockIdentifier): Promise<string[]>;
3711
2774
  /**
3712
2775
  * NEW: Estimate the fee for a message from L1
3713
2776
  * @param message Message From L1
3714
2777
  */
3715
- estimateMessageFee(message: L1Message, blockIdentifier?: BlockIdentifier): Promise<FEE_ESTIMATE$1>;
2778
+ estimateMessageFee(message: RPCSPEC07.L1Message, blockIdentifier?: BlockIdentifier): Promise<RPCSPEC07.API.SPEC.FEE_ESTIMATE>;
3716
2779
  /**
3717
2780
  * Returns an object about the sync status, or false if the node is not synching
3718
2781
  * @returns Object with the stats data
3719
2782
  */
3720
- getSyncingStats(): Promise<Syncing>;
2783
+ getSyncingStats(): Promise<RPCSPEC07.Syncing>;
3721
2784
  /**
3722
2785
  * Returns all events matching the given filter
3723
2786
  * @returns events and the pagination of the events
3724
2787
  */
3725
- getEvents(eventFilter: EventFilter): Promise<EVENTS_CHUNK$1>;
3726
- buildTransaction(invocation: AccountInvocationItem, versionType?: 'fee' | 'transaction'): BaseTransaction;
2788
+ getEvents(eventFilter: RPCSPEC07.EventFilter): Promise<RPCSPEC07.API.SPEC.EVENTS_CHUNK>;
2789
+ buildTransaction(invocation: AccountInvocationItem, versionType?: 'fee' | 'transaction'): RPCSPEC07.BaseTransaction;
3727
2790
  }
3728
2791
 
3729
2792
  type rpc_0_7_RpcChannel = RpcChannel;
@@ -3798,6 +2861,13 @@ declare abstract class ProviderInterface {
3798
2861
  * @returns Contract class of compiled contract
3799
2862
  */
3800
2863
  abstract getClassAt(contractAddress: string, blockIdentifier?: BlockIdentifier): Promise<ContractClassResponse>;
2864
+ /**
2865
+ * Gets the price of l1 gas in the block
2866
+ *
2867
+ * @param blockIdentifier block identifier
2868
+ * @returns gas price of the block
2869
+ */
2870
+ abstract getL1GasPrice(blockIdentifier: BlockIdentifier): Promise<string>;
3801
2871
  /**
3802
2872
  * Returns the contract class hash in the given block for the contract deployed at the given address
3803
2873
  *
@@ -4019,15 +3089,16 @@ declare class RpcProvider$1 implements ProviderInterface {
4019
3089
  /**
4020
3090
  * Get the most recent accepted block hash and number
4021
3091
  */
4022
- getBlockLatestAccepted(): Promise<BlockHashAndNumber$1>;
3092
+ getBlockLatestAccepted(): Promise<BlockHashAndNumber>;
4023
3093
  /**
4024
3094
  * Get the most recent accepted block number
4025
3095
  * redundant use getBlockLatestAccepted();
4026
3096
  * @returns Number of the latest block
4027
3097
  */
4028
3098
  getBlockNumber(): Promise<number>;
4029
- getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxHashes$2>;
4030
- getBlockWithTxs(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxs$1>;
3099
+ getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxHashes$1>;
3100
+ getBlockWithTxs(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxs>;
3101
+ getL1GasPrice(blockIdentifier?: BlockIdentifier): Promise<string>;
4031
3102
  getBlockWithReceipts(blockIdentifier?: BlockIdentifier): Promise<BlockWithTxReceipts>;
4032
3103
  getStateUpdate: {
4033
3104
  (): Promise<PendingStateUpdate>;
@@ -4039,23 +3110,23 @@ declare class RpcProvider$1 implements ProviderInterface {
4039
3110
  getBlockStateUpdate(blockIdentifier: 'pending'): Promise<PendingStateUpdate>;
4040
3111
  getBlockStateUpdate(blockIdentifier: 'latest'): Promise<StateUpdate>;
4041
3112
  getBlockStateUpdate(blockIdentifier?: BlockIdentifier): Promise<StateUpdateResponse>;
4042
- getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier): Promise<BlockTransactionsTraces$1>;
3113
+ getBlockTransactionsTraces(blockIdentifier?: BlockIdentifier): Promise<BlockTransactionsTraces>;
4043
3114
  getBlockTransactionCount(blockIdentifier?: BlockIdentifier): Promise<number>;
4044
3115
  /**
4045
3116
  * Return transactions from pending block
4046
3117
  * @deprecated Instead use getBlock(BlockTag.pending); (will be removed in next minor version)
4047
3118
  * Utility method, same result can be achieved using getBlockWithTxHashes(BlockTag.pending);
4048
3119
  */
4049
- getPendingTransactions(): Promise<TransactionWithHash$2[]>;
4050
- getTransaction(txHash: BigNumberish): Promise<TransactionWithHash$2>;
4051
- getTransactionByHash(txHash: BigNumberish): Promise<TransactionWithHash$2>;
4052
- getTransactionByBlockIdAndIndex(blockIdentifier: BlockIdentifier, index: number): Promise<TransactionWithHash$2>;
3120
+ getPendingTransactions(): Promise<TransactionWithHash$1[]>;
3121
+ getTransaction(txHash: BigNumberish): Promise<TransactionWithHash$1>;
3122
+ getTransactionByHash(txHash: BigNumberish): Promise<TransactionWithHash$1>;
3123
+ getTransactionByBlockIdAndIndex(blockIdentifier: BlockIdentifier, index: number): Promise<TransactionWithHash$1>;
4053
3124
  getTransactionReceipt(txHash: BigNumberish): Promise<GetTransactionReceiptResponse>;
4054
3125
  getTransactionTrace(txHash: BigNumberish): Promise<TRANSACTION_TRACE>;
4055
3126
  /**
4056
3127
  * Get the status of a transaction
4057
3128
  */
4058
- getTransactionStatus(transactionHash: BigNumberish): Promise<TransactionStatus$2>;
3129
+ getTransactionStatus(transactionHash: BigNumberish): Promise<TransactionStatus$1>;
4059
3130
  /**
4060
3131
  * @param invocations AccountInvocations
4061
3132
  * @param simulateTransactionOptions blockIdentifier and flags to skip validation and fee charge<br/>
@@ -4080,25 +3151,25 @@ declare class RpcProvider$1 implements ProviderInterface {
4080
3151
  getDeclareEstimateFee(invocation: DeclareContractTransaction, details: InvocationsDetailsWithNonce, blockIdentifier?: BlockIdentifier, skipValidate?: boolean): Promise<EstimateFeeResponse>;
4081
3152
  getDeployAccountEstimateFee(invocation: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce, blockIdentifier?: BlockIdentifier, skipValidate?: boolean): Promise<EstimateFeeResponse>;
4082
3153
  getEstimateFeeBulk(invocations: AccountInvocations, options: getEstimateFeeBulkOptions): Promise<EstimateFeeResponseBulk>;
4083
- invokeFunction(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<InvokedTransaction$1>;
4084
- declareContract(transaction: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<DeclaredTransaction$1>;
4085
- deployAccountContract(transaction: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<DeployedAccountTransaction>;
3154
+ invokeFunction(functionInvocation: Invocation, details: InvocationsDetailsWithNonce): Promise<InvokedTransaction$2>;
3155
+ declareContract(transaction: DeclareContractTransaction, details: InvocationsDetailsWithNonce): Promise<DeclaredTransaction$2>;
3156
+ deployAccountContract(transaction: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce): Promise<DeployedAccountTransaction$1>;
4086
3157
  callContract(call: Call, blockIdentifier?: BlockIdentifier): Promise<string[]>;
4087
3158
  /**
4088
3159
  * NEW: Estimate the fee for a message from L1
4089
3160
  * @param message Message From L1
4090
3161
  */
4091
- estimateMessageFee(message: L1Message, blockIdentifier?: BlockIdentifier): Promise<FEE_ESTIMATE>;
3162
+ estimateMessageFee(message: L1Message$1, blockIdentifier?: BlockIdentifier): Promise<FEE_ESTIMATE>;
4092
3163
  /**
4093
3164
  * Returns an object about the sync status, or false if the node is not synching
4094
3165
  * @returns Object with the stats data
4095
3166
  */
4096
- getSyncingStats(): Promise<Syncing$1>;
3167
+ getSyncingStats(): Promise<Syncing>;
4097
3168
  /**
4098
3169
  * Returns all events matching the given filter
4099
3170
  * @returns events and the pagination of the events
4100
3171
  */
4101
- getEvents(eventFilter: EventFilter): Promise<EVENTS_CHUNK>;
3172
+ getEvents(eventFilter: EventFilter$1): Promise<EVENTS_CHUNK>;
4102
3173
  }
4103
3174
 
4104
3175
  declare class StarknetId {
@@ -4530,9 +3601,9 @@ declare class Account extends RpcProvider implements AccountInterface {
4530
3601
  signer: SignerInterface;
4531
3602
  address: string;
4532
3603
  cairoVersion: CairoVersion;
4533
- readonly transactionVersion: ETransactionVersion.V2 | ETransactionVersion.V3;
4534
- constructor(providerOrOptions: ProviderOptions | ProviderInterface, address: string, pkOrSigner: Uint8Array | string | SignerInterface, cairoVersion?: CairoVersion, transactionVersion?: ETransactionVersion.V2 | ETransactionVersion.V3);
4535
- protected getPreferredVersion(type12: ETransactionVersion, type3: ETransactionVersion): ETransactionVersion;
3604
+ readonly transactionVersion: ETransactionVersion$1.V2 | ETransactionVersion$1.V3;
3605
+ constructor(providerOrOptions: ProviderOptions | ProviderInterface, address: string, pkOrSigner: Uint8Array | string | SignerInterface, cairoVersion?: CairoVersion, transactionVersion?: ETransactionVersion$1.V2 | ETransactionVersion$1.V3);
3606
+ protected getPreferredVersion(type12: ETransactionVersion$1, type3: ETransactionVersion$1): ETransactionVersion$1;
4536
3607
  getNonce(blockIdentifier?: BlockIdentifier): Promise<Nonce>;
4537
3608
  protected getNonceSafe(nonce?: BigNumberish): Promise<bigint>;
4538
3609
  /**
@@ -4566,7 +3637,7 @@ declare class Account extends RpcProvider implements AccountInterface {
4566
3637
  hashMessage(typedData: TypedData): Promise<string>;
4567
3638
  verifyMessageHash(hash: BigNumberish, signature: Signature): Promise<boolean>;
4568
3639
  verifyMessage(typedData: TypedData, signature: Signature): Promise<boolean>;
4569
- protected getUniversalSuggestedFee(version: ETransactionVersion, { type, payload }: EstimateFeeAction, details: UniversalDetails): Promise<{
3640
+ protected getUniversalSuggestedFee(version: ETransactionVersion$1, { type, payload }: EstimateFeeAction, details: UniversalDetails): Promise<{
4570
3641
  maxFee: BigNumberish;
4571
3642
  resourceBounds: RESOURCE_BOUNDS_MAPPING$1;
4572
3643
  }>;
@@ -4596,18 +3667,17 @@ declare class WalletAccount extends Account implements AccountInterface {
4596
3667
  * WALLET SPECIFIC METHODS
4597
3668
  */
4598
3669
  requestAccounts(silentMode?: boolean): Promise<string[]>;
4599
- getPermissions(): Promise<starknet_types.Permission[]>;
3670
+ getPermissions(): Promise<[] | RPCSPEC07.Permission[]>;
4600
3671
  switchStarknetChain(chainId: StarknetChainId): Promise<boolean>;
4601
3672
  watchAsset(asset: WatchAssetParameters): Promise<boolean>;
4602
3673
  addStarknetChain(chain: AddStarknetChainParameters): Promise<boolean>;
4603
3674
  /**
4604
3675
  * ACCOUNT METHODS
4605
3676
  */
4606
- execute(calls: AllowArray<Call>): Promise<starknet_types.AddInvokeTransactionResult>;
4607
- declare(payload: DeclareContractPayload): Promise<starknet_types.AddDeclareTransactionResult>;
3677
+ execute(calls: AllowArray<Call>): Promise<RPCSPEC07.AddInvokeTransactionResult>;
3678
+ declare(payload: DeclareContractPayload): Promise<RPCSPEC07.AddDeclareTransactionResult>;
4608
3679
  deploy(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[]): Promise<MultiDeployContractResponse>;
4609
- deployAccount(payload: DeployAccountContractPayload): Promise<starknet_types.AddDeployAccountTransactionResult>;
4610
- signMessage(typedData: TypedData): Promise<string[]>;
3680
+ signMessage(typedData: TypedData): Promise<SIGNATURE$1>;
4611
3681
  }
4612
3682
 
4613
3683
  declare module 'abi-wan-kanabi' {
@@ -4721,6 +3791,12 @@ declare abstract class ContractInterface {
4721
3791
  * Retrieves the version of the contract (cairo version & compiler version)
4722
3792
  */
4723
3793
  abstract getVersion(): Promise<ContractVersion>;
3794
+ /**
3795
+ * Returns a typed instance of ContractV2 based on the supplied ABI.
3796
+ *
3797
+ * @param {TAbi} tAbi - The ABI (Abstract Binary Interface) of the ContractV2.
3798
+ * @return {TypedContractV2<TAbi>} - A typed instance of ContractV2.
3799
+ */
4724
3800
  abstract typedv2<TAbi extends Abi$1>(tAbi: TAbi): TypedContractV2$1<TAbi>;
4725
3801
  }
4726
3802
 
@@ -4872,7 +3948,7 @@ declare namespace selector {
4872
3948
 
4873
3949
  type CalcV2InvokeTxHashArgs = {
4874
3950
  senderAddress: BigNumberish;
4875
- version: `${ETransactionVersion2}`;
3951
+ version: `${ETransactionVersion2$1}`;
4876
3952
  compiledCalldata: Calldata;
4877
3953
  maxFee: BigNumberish;
4878
3954
  chainId: StarknetChainId;
@@ -4880,14 +3956,14 @@ type CalcV2InvokeTxHashArgs = {
4880
3956
  };
4881
3957
  type CalcV3InvokeTxHashArgs = {
4882
3958
  senderAddress: BigNumberish;
4883
- version: `${ETransactionVersion3}`;
3959
+ version: `${ETransactionVersion3$1}`;
4884
3960
  compiledCalldata: Calldata;
4885
3961
  chainId: StarknetChainId;
4886
3962
  nonce: BigNumberish;
4887
3963
  accountDeploymentData: BigNumberish[];
4888
- nonceDataAvailabilityMode: EDAMode;
4889
- feeDataAvailabilityMode: EDAMode;
4890
- resourceBounds: ResourceBounds$1;
3964
+ nonceDataAvailabilityMode: EDAMode$1;
3965
+ feeDataAvailabilityMode: EDAMode$1;
3966
+ resourceBounds: ResourceBounds$2;
4891
3967
  tip: BigNumberish;
4892
3968
  paymasterData: BigNumberish[];
4893
3969
  };
@@ -4896,7 +3972,7 @@ declare function calculateInvokeTransactionHash$1(args: CalcInvokeTxHashArgs): s
4896
3972
  type CalcV2DeclareTxHashArgs = {
4897
3973
  classHash: string;
4898
3974
  senderAddress: BigNumberish;
4899
- version: `${ETransactionVersion2}`;
3975
+ version: `${ETransactionVersion2$1}`;
4900
3976
  maxFee: BigNumberish;
4901
3977
  chainId: StarknetChainId;
4902
3978
  nonce: BigNumberish;
@@ -4906,13 +3982,13 @@ type CalcV3DeclareTxHashArgs = {
4906
3982
  classHash: string;
4907
3983
  compiledClassHash: string;
4908
3984
  senderAddress: BigNumberish;
4909
- version: `${ETransactionVersion3}`;
3985
+ version: `${ETransactionVersion3$1}`;
4910
3986
  chainId: StarknetChainId;
4911
3987
  nonce: BigNumberish;
4912
3988
  accountDeploymentData: BigNumberish[];
4913
- nonceDataAvailabilityMode: EDAMode;
4914
- feeDataAvailabilityMode: EDAMode;
4915
- resourceBounds: ResourceBounds$1;
3989
+ nonceDataAvailabilityMode: EDAMode$1;
3990
+ feeDataAvailabilityMode: EDAMode$1;
3991
+ resourceBounds: ResourceBounds$2;
4916
3992
  tip: BigNumberish;
4917
3993
  paymasterData: BigNumberish[];
4918
3994
  };
@@ -4923,7 +3999,7 @@ type CalcV2DeployAccountTxHashArgs = {
4923
3999
  classHash: BigNumberish;
4924
4000
  constructorCalldata: Calldata;
4925
4001
  salt: BigNumberish;
4926
- version: `${ETransactionVersion2}`;
4002
+ version: `${ETransactionVersion2$1}`;
4927
4003
  maxFee: BigNumberish;
4928
4004
  chainId: StarknetChainId;
4929
4005
  nonce: BigNumberish;
@@ -4933,12 +4009,12 @@ type CalcV3DeployAccountTxHashArgs = {
4933
4009
  classHash: BigNumberish;
4934
4010
  compiledConstructorCalldata: Calldata;
4935
4011
  salt: BigNumberish;
4936
- version: `${ETransactionVersion3}`;
4012
+ version: `${ETransactionVersion3$1}`;
4937
4013
  chainId: StarknetChainId;
4938
4014
  nonce: BigNumberish;
4939
- nonceDataAvailabilityMode: EDAMode;
4940
- feeDataAvailabilityMode: EDAMode;
4941
- resourceBounds: ResourceBounds$1;
4015
+ nonceDataAvailabilityMode: EDAMode$1;
4016
+ feeDataAvailabilityMode: EDAMode$1;
4017
+ resourceBounds: ResourceBounds$2;
4942
4018
  tip: BigNumberish;
4943
4019
  paymasterData: BigNumberish[];
4944
4020
  };
@@ -5027,23 +4103,23 @@ declare namespace index$1 {
5027
4103
  */
5028
4104
 
5029
4105
  declare function hashDAMode(nonceDAMode: BigNumberish, feeDAMode: BigNumberish): bigint;
5030
- declare function hashFeeField(tip: BigNumberish, bounds: ResourceBounds$1): bigint;
5031
- 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;
4106
+ declare function hashFeeField(tip: BigNumberish, bounds: ResourceBounds$2): bigint;
4107
+ declare function calculateTransactionHashCommon$1(txHashPrefix: TransactionHashPrefix, version: BigNumberish, senderAddress: BigNumberish, chainId: StarknetChainId, nonce: BigNumberish, tip: BigNumberish, paymasterData: BigNumberish[], nonceDataAvailabilityMode: EDAMode$1, feeDataAvailabilityMode: EDAMode$1, resourceBounds: ResourceBounds$2, additionalData?: BigNumberish[]): string;
5032
4108
  /**
5033
4109
  * Calculate v3 deploy_account transaction hash
5034
4110
  * @returns format: hex-string
5035
4111
  */
5036
- 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;
4112
+ declare function calculateDeployAccountTransactionHash$1(contractAddress: BigNumberish, classHash: BigNumberish, compiledConstructorCalldata: Calldata, salt: BigNumberish, version: BigNumberish, chainId: StarknetChainId, nonce: BigNumberish, nonceDataAvailabilityMode: EDAMode$1, feeDataAvailabilityMode: EDAMode$1, resourceBounds: ResourceBounds$2, tip: BigNumberish, paymasterData: BigNumberish[]): string;
5037
4113
  /**
5038
4114
  * Calculate v3 declare transaction hash
5039
4115
  * @returns format: hex-string
5040
4116
  */
5041
- 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;
4117
+ declare function calculateDeclareTransactionHash$1(classHash: string, compiledClassHash: string, senderAddress: BigNumberish, version: BigNumberish, chainId: StarknetChainId, nonce: BigNumberish, accountDeploymentData: BigNumberish[], nonceDataAvailabilityMode: EDAMode$1, feeDataAvailabilityMode: EDAMode$1, resourceBounds: ResourceBounds$2, tip: BigNumberish, paymasterData: BigNumberish[]): string;
5042
4118
  /**
5043
4119
  * Calculate v3 invoke transaction hash
5044
4120
  * @returns format: hex-string
5045
4121
  */
5046
- 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;
4122
+ declare function calculateInvokeTransactionHash(senderAddress: BigNumberish, version: BigNumberish, compiledCalldata: Calldata, chainId: StarknetChainId, nonce: BigNumberish, accountDeploymentData: BigNumberish[], nonceDataAvailabilityMode: EDAMode$1, feeDataAvailabilityMode: EDAMode$1, resourceBounds: ResourceBounds$2, tip: BigNumberish, paymasterData: BigNumberish[]): string;
5047
4123
 
5048
4124
  declare const v3_calculateInvokeTransactionHash: typeof calculateInvokeTransactionHash;
5049
4125
  declare const v3_hashDAMode: typeof hashDAMode;
@@ -5295,6 +4371,14 @@ declare const fromCallsToExecuteCalldata_cairo1: (calls: Call[]) => Calldata;
5295
4371
  * Create `__execute__` Calldata from Calls based on Cairo versions
5296
4372
  */
5297
4373
  declare const getExecuteCalldata: (calls: Call[], cairoVersion?: CairoVersion) => Calldata;
4374
+ /**
4375
+ * Builds a UDCCall object.
4376
+ *
4377
+ * @param {UniversalDeployerContractPayload | UniversalDeployerContractPayload[]} payload - The payload data for the UDCCall. Can be a single payload object or an array of payload objects
4378
+ *.
4379
+ * @param {string} address - The address to be used in the UDCCall.
4380
+ * @returns {{ calls: Array, addresses: Array }} - The UDCCall object containing an array of calls and an array of addresses.
4381
+ */
5298
4382
  declare function buildUDCCall(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[], address: string): {
5299
4383
  calls: {
5300
4384
  contractAddress: string;
@@ -5307,9 +4391,9 @@ declare function buildUDCCall(payload: UniversalDeployerContractPayload | Univer
5307
4391
  * Return transaction versions based on version type, default version type is 'transaction'
5308
4392
  */
5309
4393
  declare function getVersionsByType(versionType?: 'fee' | 'transaction'): {
5310
- v1: ETransactionVersion;
5311
- v2: ETransactionVersion;
5312
- v3: ETransactionVersion;
4394
+ v1: ETransactionVersion$1;
4395
+ v2: ETransactionVersion$1;
4396
+ v3: ETransactionVersion$1;
5313
4397
  };
5314
4398
 
5315
4399
  declare const transaction_buildUDCCall: typeof buildUDCCall;
@@ -5364,8 +4448,30 @@ declare function signatureToHexArray(sig?: Signature): ArraySignatureType;
5364
4448
  * Convert estimated fee to max fee with overhead
5365
4449
  */
5366
4450
  declare function estimatedFeeToMaxFee(estimatedFee: BigNumberish, overhead?: number): bigint;
5367
- declare function estimateFeeToBounds(estimate: FeeEstimate | 0n, amountOverhead?: number, priceOverhead?: number): ResourceBounds$1;
5368
- declare function intDAM(dam: EDataAvailabilityMode): EDAMode;
4451
+ /**
4452
+ * Calculates the maximum resource bounds for fee estimation.
4453
+ *
4454
+ * @param {FeeEstimate|0n} estimate - The estimate for the fee. If a BigInt is provided,
4455
+ * the returned bounds will be set to '0x0'.
4456
+ * @param {number} [amountOverhead=feeMarginPercentage.L1_BOUND_MAX_AMOUNT] - The percentage
4457
+ * overhead added to
4458
+ * the gas consumed or
4459
+ * overall fee amount.
4460
+ * @param {number} [priceOverhead=feeMarginPercentage.L1_BOUND_MAX_PRICE_PER_UNIT] - The percentage
4461
+ * overhead added to
4462
+ * the gas price per unit.
4463
+ * @throws {Error} If the estimate object is undefined or does not have the required properties.
4464
+ * @returns {ResourceBounds} The maximum resource bounds for fee estimation.
4465
+ */
4466
+ declare function estimateFeeToBounds(estimate: FeeEstimate | 0n, amountOverhead?: number, priceOverhead?: number): ResourceBounds$2;
4467
+ /**
4468
+ * Converts the data availability mode from EDataAvailabilityMode to EDAMode.
4469
+ *
4470
+ * @param {EDataAvailabilityMode} dam - The data availability mode to be converted.
4471
+ * @return {EDAMode} The converted data availability mode.
4472
+ * @throws {Error} If the data availability mode is not a valid value.
4473
+ */
4474
+ declare function intDAM(dam: EDataAvailabilityMode$1): EDAMode$1;
5369
4475
  /**
5370
4476
  * Convert to ETransactionVersion or throw an error.
5371
4477
  * Return providedVersion is specified else return defaultVersion
@@ -5373,12 +4479,12 @@ declare function intDAM(dam: EDataAvailabilityMode): EDAMode;
5373
4479
  * @param providedVersion BigNumberish | undefined
5374
4480
  * @returns ETransactionVersion
5375
4481
  */
5376
- declare function toTransactionVersion(defaultVersion: BigNumberish, providedVersion?: BigNumberish): ETransactionVersion;
4482
+ declare function toTransactionVersion(defaultVersion: BigNumberish, providedVersion?: BigNumberish): ETransactionVersion$1;
5377
4483
  /**
5378
4484
  * Convert Transaction version to Fee version or throw an error
5379
4485
  * @param providedVersion BigNumberish | undefined
5380
4486
  */
5381
- declare function toFeeVersion(providedVersion?: BigNumberish): ETransactionVersion.F0 | ETransactionVersion.F1 | ETransactionVersion.F2 | ETransactionVersion.F3 | undefined;
4487
+ declare function toFeeVersion(providedVersion?: BigNumberish): ETransactionVersion$1.F0 | ETransactionVersion$1.F1 | ETransactionVersion$1.F2 | ETransactionVersion$1.F3 | undefined;
5382
4488
  /**
5383
4489
  * Return provided or default v3 tx details
5384
4490
  */
@@ -5386,8 +4492,8 @@ declare function v3Details(details: UniversalDetails): {
5386
4492
  tip: BigNumberish;
5387
4493
  paymasterData: BigNumberish[];
5388
4494
  accountDeploymentData: BigNumberish[];
5389
- nonceDataAvailabilityMode: EDataAvailabilityMode;
5390
- feeDataAvailabilityMode: EDataAvailabilityMode;
4495
+ nonceDataAvailabilityMode: EDataAvailabilityMode$1;
4496
+ feeDataAvailabilityMode: EDataAvailabilityMode$1;
5391
4497
  resourceBounds: RESOURCE_BOUNDS_MAPPING$1;
5392
4498
  };
5393
4499
  /**
@@ -5397,7 +4503,7 @@ declare function v3Details(details: UniversalDetails): {
5397
4503
  * F3 -> F3
5398
4504
  * V3 -> V3
5399
4505
  */
5400
- declare function reduceV2(providedVersion: ETransactionVersion): ETransactionVersion.V0 | ETransactionVersion.V1 | ETransactionVersion.V3 | ETransactionVersion.F0 | ETransactionVersion.F1 | ETransactionVersion.F3;
4506
+ declare function reduceV2(providedVersion: ETransactionVersion$1): ETransactionVersion$1.V0 | ETransactionVersion$1.V1 | ETransactionVersion$1.V3 | ETransactionVersion$1.F0 | ETransactionVersion$1.F1 | ETransactionVersion$1.F3;
5401
4507
 
5402
4508
  declare const stark_compressProgram: typeof compressProgram;
5403
4509
  declare const stark_decompressProgram: typeof decompressProgram;
@@ -5661,7 +4767,20 @@ interface Context {
5661
4767
  parent?: string;
5662
4768
  key?: string;
5663
4769
  }
4770
+ /**
4771
+ * Prepares the selector for use.
4772
+ *
4773
+ * @param {string} selector - The selector to be prepared.
4774
+ * @returns {string} The prepared selector.
4775
+ */
5664
4776
  declare function prepareSelector(selector: string): string;
4777
+ /**
4778
+ * Checks if the given Starknet type is a Merkle tree type.
4779
+ *
4780
+ * @param {StarknetType} type - The StarkNet type to check.
4781
+ *
4782
+ * @returns {boolean} - True if the type is a Merkle tree type, false otherwise.
4783
+ */
5665
4784
  declare function isMerkleTreeType(type: StarknetType): type is StarknetMerkleType;
5666
4785
  /**
5667
4786
  * Get the dependencies of a struct type. If a struct has the same dependency multiple times, it's only included once
@@ -5715,42 +4834,120 @@ declare namespace typedData {
5715
4834
  export { typedData_StarknetDomain as StarknetDomain, typedData_StarknetEnumType as StarknetEnumType, typedData_StarknetMerkleType as StarknetMerkleType, typedData_StarknetType as StarknetType, typedData_TypedData as TypedData, typedData_TypedDataRevision as TypedDataRevision, typedData_encodeData as encodeData, typedData_encodeType as encodeType, typedData_encodeValue as encodeValue, typedData_getDependencies as getDependencies, typedData_getMessageHash as getMessageHash, typedData_getStructHash as getStructHash, typedData_getTypeHash as getTypeHash, typedData_isMerkleTreeType as isMerkleTreeType, typedData_prepareSelector as prepareSelector };
5716
4835
  }
5717
4836
 
4837
+ /**
4838
+ * Decodes an array of BigInts into a string using the given algorithm.
4839
+ * @param {bigint[]} encoded - The encoded array of BigInts.
4840
+ * @return {string} The decoded string.
4841
+ */
5718
4842
  declare function useDecoded(encoded: bigint[]): string;
4843
+ /**
4844
+ * Encodes a string into a bigint value.
4845
+ *
4846
+ * @param {string} decoded - The string to be encoded.
4847
+ * @returns {bigint} - The encoded bigint value.
4848
+ */
5719
4849
  declare function useEncoded(decoded: string): bigint;
5720
4850
  declare const enum StarknetIdContract {
5721
4851
  MAINNET = "0x6ac597f8116f886fa1c97a23fa4e08299975ecaf6b598873ca6792b9bbfb678",
5722
4852
  TESTNET = "0x3bab268e932d2cecd1946f100ae67ce3dff9fd234119ea2f6da57d16d29fce",
5723
4853
  TESTNET_SEPOLIA = "0x0707f09bc576bd7cfee59694846291047e965f4184fe13dac62c56759b3b6fa7"
5724
4854
  }
4855
+ /**
4856
+ * Returns the Starknet ID contract address based on the provided chain ID.
4857
+ *
4858
+ * @param {StarknetChainId} chainId - The chain ID of the Starknet network.
4859
+ * @return {string} The Starknet ID contract address.
4860
+ * @throws {Error} Throws an error if the Starknet ID contract is not deployed on the network.
4861
+ */
5725
4862
  declare function getStarknetIdContract(chainId: StarknetChainId): string;
5726
4863
  declare const enum StarknetIdIdentityContract {
5727
4864
  MAINNET = "0x05dbdedc203e92749e2e746e2d40a768d966bd243df04a6b712e222bc040a9af",
5728
4865
  TESTNET = "0x783a9097b26eae0586373b2ce0ed3529ddc44069d1e0fbc4f66d42b69d6850d",
5729
4866
  TESTNET_SEPOLIA = "0x070DF8B4F5cb2879f8592849fA8f3134da39d25326B8558cc9C8FE8D47EA3A90"
5730
4867
  }
4868
+ /**
4869
+ * Returns the Starknet ID identity contract address for the given chain ID.
4870
+ *
4871
+ * @param {StarknetChainId} chainId - The chain ID for the specified network.
4872
+ *
4873
+ * @return {string} - The Starknet ID identity contract address for the specified network.
4874
+ *
4875
+ * @throws {Error} - If the Starknet ID verifier contract is not deployed on the network.
4876
+ */
5731
4877
  declare function getStarknetIdIdentityContract(chainId: StarknetChainId): string;
5732
4878
  declare const StarknetIdMulticallContract = "0x034ffb8f4452df7a613a0210824d6414dbadcddce6c6e19bf4ddc9e22ce5f970";
4879
+ /**
4880
+ * Returns the Starknet.id multicall contract address based on the provided chainId.
4881
+ *
4882
+ * @param {StarknetChainId} chainId - The chainId of the network.
4883
+ * @return {string} - The address of the Starknet.id multicall contract.
4884
+ * @throws {Error} - If the Starknet.id multicall contract is not deployed on the network.
4885
+ */
5733
4886
  declare function getStarknetIdMulticallContract(chainId: StarknetChainId): string;
5734
4887
  declare const enum StarknetIdVerifierContract {
5735
4888
  MAINNET = "0x07d14dfd8ee95b41fce179170d88ba1f0d5a512e13aeb232f19cfeec0a88f8bf",
5736
4889
  TESTNET = "0x057c942544063c3aea6ea6c37009cc9d1beacd750cb6801549a129c7265f0f11",
5737
4890
  TESTNET_SEPOLIA = "0x0182EcE8173C216A395f4828e1523541b7e3600bf190CB252E1a1A0cE219d184"
5738
4891
  }
4892
+ /**
4893
+ * Returns the address of the Starknet ID Verifier contract based on the specified chain ID.
4894
+ *
4895
+ * @param {StarknetChainId} chainId - The ID of the Starknet chain.
4896
+ * @return {string} - The address of the Starknet ID Verifier contract.
4897
+ * @throws {Error} - If the Starknet ID Verifier contract is not deployed on the specified network.
4898
+ */
5739
4899
  declare function getStarknetIdVerifierContract(chainId: StarknetChainId): string;
5740
4900
  declare const enum StarknetIdPfpContract {
5741
4901
  MAINNET = "0x070aaa20ec4a46da57c932d9fd89ca5e6bb9ca3188d3df361a32306aff7d59c7",
5742
4902
  TESTNET = "0x03cac3228b434259734ee0e4ff445f642206ea11adace7e4f45edd2596748698",
5743
4903
  TESTNET_SEPOLIA = "0x058061bb6bdc501eE215172c9f87d557C1E0f466dC498cA81b18f998Bf1362b2"
5744
4904
  }
4905
+ /**
4906
+ * Retrieves the contract address of the Starknet.id profile picture verifier contract based on the given chain ID.
4907
+ *
4908
+ * @param {StarknetChainId} chainId - The chain ID of the network.
4909
+ * @returns {string} - The contract address of the Starknet.id profile picture verifier contract.
4910
+ * @throws {Error} - Throws an error if the Starknet.id profile picture verifier contract is not yet deployed on the network.
4911
+ */
5745
4912
  declare function getStarknetIdPfpContract(chainId: StarknetChainId): string;
5746
4913
  declare const enum StarknetIdPopContract {
5747
4914
  MAINNET = "0x0293eb2ba9862f762bd3036586d5755a782bd22e6f5028320f1d0405fd47bff4",
5748
4915
  TESTNET = "0x03528caf090179e337931ee669a5b0214041e1bae30d460ff07d2cea2c7a9106",
5749
4916
  TESTNET_SEPOLIA = "0x0023FE3b845ed5665a9eb3792bbB17347B490EE4090f855C1298d03BB5F49B49"
5750
4917
  }
4918
+ /**
4919
+ * Retrieves the Starknet ID Proof of Personhood (IdPop) verifier contract address for the given chain ID.
4920
+ *
4921
+ * @param {StarknetChainId} chainId - The chain ID of the Starknet network.
4922
+ * @return {string} - The Starknet ID Pop contract address.
4923
+ * @throws {Error} - If the Starknet ID Pop contract is not deployed on the specified network.
4924
+ */
5751
4925
  declare function getStarknetIdPopContract(chainId: StarknetChainId): string;
4926
+ /**
4927
+ * Executes a method and returns a CairoCustomEnum object.
4928
+ *
4929
+ * Functions to build CairoCustomEnum for multicall contracts
4930
+ * @param {Object} staticEx - An optional object defining the "Static" value of the CairoCustomEnum.
4931
+ * @param {number[]} ifEqual - An optional array defining the "IfEqual" value of the CairoCustomEnum.
4932
+ * @param {number[]} ifNotEqual - An optional array defining the "IfNotEqual" value of the CairoCustomEnum.
4933
+ * @return {CairoCustomEnum} - The created CairoCustomEnum object.
4934
+ */
5752
4935
  declare function execution(staticEx: {} | undefined, ifEqual?: number[] | undefined, ifNotEqual?: number[] | undefined): CairoCustomEnum;
4936
+ /**
4937
+ * Creates a new instance of CairoCustomEnum.
4938
+ *
4939
+ * @param {BigNumberish | undefined} hardcoded - The hardcoded value for the CairoCustomEnum.
4940
+ * @param {number[] | undefined} reference - The reference array for the CairoCustomEnum.
4941
+ * @returns {CairoCustomEnum} The new instance of CairoCustomEnum.
4942
+ */
5753
4943
  declare function dynamicFelt(hardcoded: BigNumberish | undefined, reference?: number[] | undefined): CairoCustomEnum;
4944
+ /**
4945
+ * Creates a new instance of CairoCustomEnum with the given parameters.
4946
+ * @param {BigNumberish | undefined} hardcoded - The hardcoded value.
4947
+ * @param {BigNumberish[] | undefined} [reference] - The reference value (optional).
4948
+ * @param {BigNumberish[] | undefined} [arrayReference] - The array reference value (optional).
4949
+ * @return {CairoCustomEnum} - The new instance of CairoCustomEnum.
4950
+ */
5754
4951
  declare function dynamicCallData(hardcoded: BigNumberish | undefined, reference?: BigNumberish[] | undefined, arrayReference?: BigNumberish[] | undefined): CairoCustomEnum;
5755
4952
 
5756
4953
  type starknetId_StarknetIdContract = StarknetIdContract;
@@ -5811,6 +5008,15 @@ declare function formatHash(hashValue: BigNumberish): string;
5811
5008
  */
5812
5009
  declare function txIdentifier(txHash?: BigNumberish, txId?: BigNumberish): string;
5813
5010
  declare const validBlockTags: BlockTag[];
5011
+ /**
5012
+ * hex string and BigInt are detected as block hashes. identifier return { block_hash: hash }
5013
+ *
5014
+ * decimal string and number are detected as block numbers. identifier return { block_number: number }
5015
+ *
5016
+ * text string are detected as block tag. identifier return tag
5017
+ *
5018
+ * null is detected as 'pending' block tag. identifier return 'pending'
5019
+ */
5814
5020
  declare class Block {
5815
5021
  hash: BlockIdentifier;
5816
5022
  number: BlockIdentifier;
@@ -5823,7 +5029,20 @@ declare class Block {
5823
5029
  valueOf: () => BlockIdentifier;
5824
5030
  toString: () => BlockIdentifier;
5825
5031
  }
5032
+ /**
5033
+ * Check if the given transaction details is a V3 transaction.
5034
+ *
5035
+ * @param {InvocationsDetailsWithNonce} details - The transaction details to be checked.
5036
+ * @return {boolean} - Returns true if the transaction is a V3 transaction, otherwise false.
5037
+ */
5826
5038
  declare function isV3Tx(details: InvocationsDetailsWithNonce): details is V3TransactionDetails;
5039
+ /**
5040
+ * Determines if the given response matches the specified version.
5041
+ *
5042
+ * @param {('0.5' | '0.6' | '0.7')} version - The version to compare against the response.
5043
+ * @param {string} response - The response to check against the version.
5044
+ * @returns {boolean} - True if the response matches the version, false otherwise.
5045
+ */
5827
5046
  declare function isVersion(version: '0.5' | '0.6' | '0.7', response: string): boolean;
5828
5047
  /**
5829
5048
  * Guard Pending Block
@@ -5857,15 +5076,22 @@ declare namespace provider {
5857
5076
  export { provider_Block as Block, provider_createSierraContractClass as createSierraContractClass, provider_formatHash as formatHash, provider_getDefaultNodeUrl as getDefaultNodeUrl, provider_isPendingBlock as isPendingBlock, provider_isPendingStateUpdate as isPendingStateUpdate, provider_isPendingTransaction as isPendingTransaction, provider_isV3Tx as isV3Tx, provider_isVersion as isVersion, provider_parseContract as parseContract, provider_txIdentifier as txIdentifier, provider_validBlockTags as validBlockTags, provider_wait as wait };
5858
5077
  }
5859
5078
 
5079
+ /**
5080
+ * Retrieves the events from the given ABI.
5081
+ *
5082
+ * @param {Abi} abi - The ABI to extract events from.
5083
+ * @return {AbiEvents} - An object containing the extracted events.
5084
+ */
5860
5085
  declare function getAbiEvents(abi: Abi): AbiEvents;
5861
5086
  /**
5862
5087
  * Parse raw events and structure them into response object based on a contract structs and defined events
5863
5088
  * @param providerReceivedEvents ProviderEvent[] - Array of raw events
5864
5089
  * @param abiEvents AbiEvents - Events defined in the abi
5865
5090
  * @param abiStructs AbiStructs - Structs defined in the abi
5091
+ * @param abiEnums
5866
5092
  * @return ParsedEvents - parsed events corresponding to the abi
5867
5093
  */
5868
- declare function parseEvents(providerReceivedEvents: Event[], abiEvents: AbiEvents, abiStructs: AbiStructs, abiEnums: AbiEnums): ParsedEvents;
5094
+ declare function parseEvents(providerReceivedEvents: Event$1[], abiEvents: AbiEvents, abiStructs: AbiStructs, abiEnums: AbiEnums): ParsedEvents;
5869
5095
 
5870
5096
  declare const index_getAbiEvents: typeof getAbiEvents;
5871
5097
  declare const index_parseEvents: typeof parseEvents;
@@ -5962,6 +5188,14 @@ declare function addAddressPadding(address: BigNumberish): string;
5962
5188
  * @returns {string} Hex string : 0x followed by 64 characters. No upper case characters in the response.
5963
5189
  */
5964
5190
  declare function validateAndParseAddress(address: BigNumberish): string;
5191
+ /**
5192
+ * Computes the checksum address for the given Starknet address.
5193
+ *
5194
+ * From https://github.com/ethers-io/ethers.js/blob/fc1e006575d59792fa97b4efb9ea2f8cca1944cf/packages/address/src.ts/index.ts#L12
5195
+ * @param {BigNumberish} address - The address to compute the checksum for.
5196
+ *
5197
+ * @returns {string} The checksum address.
5198
+ */
5965
5199
  declare function getChecksumAddress(address: BigNumberish): string;
5966
5200
  /**
5967
5201
  * If the casing of an address is mixed, it is a Checksum Address, which uses a specific pattern of uppercase and lowercase letters within
@@ -5977,6 +5211,14 @@ declare function validateChecksumAddress(address: string): boolean;
5977
5211
  * Loosely validate a URL `string`.
5978
5212
  */
5979
5213
  declare function isUrl(s?: string): boolean;
5214
+ /**
5215
+ * Builds a URL using the provided base URL, default path, and optional URL or path.
5216
+ *
5217
+ * @param {string} baseUrl - The base URL of the URL being built.
5218
+ * @param {string} defaultPath - The default path to use if no URL or path is provided.
5219
+ * @param {string} [urlOrPath] - The optional URL or path to append to the base URL.
5220
+ * @return {string} The built URL.
5221
+ */
5980
5222
  declare function buildUrl(baseUrl: string, defaultPath: string, urlOrPath?: string): string;
5981
5223
 
5982
5224
  declare abstract class AbiParserInterface {
@@ -5999,25 +5241,134 @@ declare abstract class AbiParserInterface {
5999
5241
  abstract getLegacyFormat(): Abi;
6000
5242
  }
6001
5243
 
5244
+ /**
5245
+ * Checks if the given name ends with "_len".
5246
+ *
5247
+ * @param {string} name - The name to be checked.
5248
+ * @returns - True if the name ends with "_len", false otherwise.
5249
+ */
6002
5250
  declare const isLen: (name: string) => boolean;
5251
+ /**
5252
+ * Checks if a given type is felt.
5253
+ *
5254
+ * @param {string} type - The type to check.
5255
+ * @returns - True if the type is felt, false otherwise.
5256
+ */
6003
5257
  declare const isTypeFelt: (type: string) => boolean;
5258
+ /**
5259
+ * Checks if the given type is an array type.
5260
+ *
5261
+ * @param {string} type - The type to check.
5262
+ * @returns - `true` if the type is an array type, `false` otherwise.
5263
+ */
6004
5264
  declare const isTypeArray: (type: string) => boolean;
5265
+ /**
5266
+ * Checks if the given type is a tuple type.
5267
+ *
5268
+ * @param {string} type - The type to be checked.
5269
+ * @returns - `true` if the type is a tuple type, otherwise `false`.
5270
+ */
6005
5271
  declare const isTypeTuple: (type: string) => boolean;
5272
+ /**
5273
+ * Checks whether a given type is a named tuple.
5274
+ *
5275
+ * @param {string} type - The type to be checked.
5276
+ * @returns - True if the type is a named tuple, false otherwise.
5277
+ */
6006
5278
  declare const isTypeNamedTuple: (type: string) => boolean;
5279
+ /**
5280
+ * Checks if a given type is a struct.
5281
+ *
5282
+ * @param {string} type - The type to check for existence.
5283
+ * @param {AbiStructs} structs - The collection of structs to search in.
5284
+ * @returns - True if the type exists in the structs, false otherwise.
5285
+ */
6007
5286
  declare const isTypeStruct: (type: string, structs: AbiStructs) => boolean;
5287
+ /**
5288
+ * Checks if a given type is an enum.
5289
+ *
5290
+ * @param {string} type - The type to check.
5291
+ * @param {AbiEnums} enums - The enumeration to search in.
5292
+ * @returns - True if the type exists in the enumeration, otherwise false.
5293
+ */
6008
5294
  declare const isTypeEnum: (type: string, enums: AbiEnums) => boolean;
5295
+ /**
5296
+ * Determines if the given type is an Option type.
5297
+ *
5298
+ * @param {string} type - The type to check.
5299
+ * @returns - True if the type is an Option type, false otherwise.
5300
+ */
6009
5301
  declare const isTypeOption: (type: string) => boolean;
5302
+ /**
5303
+ * Checks whether a given type starts with 'core::result::Result::'.
5304
+ *
5305
+ * @param {string} type - The type to check.
5306
+ * @returns - True if the type starts with 'core::result::Result::', false otherwise.
5307
+ */
6010
5308
  declare const isTypeResult: (type: string) => boolean;
5309
+ /**
5310
+ * Checks if the given value is a valid Uint type.
5311
+ *
5312
+ * @param {string} type - The value to check.
5313
+ * @returns - Returns true if the value is a valid Uint type, otherwise false.
5314
+ */
6011
5315
  declare const isTypeUint: (type: string) => boolean;
5316
+ /**
5317
+ * Checks if the given type is `uint256`.
5318
+ *
5319
+ * @param {string} type - The type to be checked.
5320
+ * @returns - Returns true if the type is `uint256`, otherwise false.
5321
+ */
6012
5322
  declare const isTypeUint256: (type: string) => boolean;
5323
+ /**
5324
+ * Checks if the given type is a literal type.
5325
+ *
5326
+ * @param {string} type - The type to check.
5327
+ * @returns - True if the type is a literal type, false otherwise.
5328
+ */
6013
5329
  declare const isTypeLiteral: (type: string) => boolean;
5330
+ /**
5331
+ * Checks if the given type is a boolean type.
5332
+ *
5333
+ * @param {string} type - The type to be checked.
5334
+ * @returns - Returns true if the type is a boolean type, otherwise false.
5335
+ */
6014
5336
  declare const isTypeBool: (type: string) => boolean;
5337
+ /**
5338
+ * Checks if the provided type is equal to 'core::starknet::contract_address::ContractAddress'.
5339
+ * @param {string} type - The type to be checked.
5340
+ * @returns - true if the type matches 'core::starknet::contract_address::ContractAddress', false otherwise.
5341
+ */
6015
5342
  declare const isTypeContractAddress: (type: string) => boolean;
5343
+ /**
5344
+ * Determines if the given type is an Ethereum address type.
5345
+ *
5346
+ * @param {string} type - The type to check.
5347
+ * @returns - Returns true if the given type is 'core::starknet::eth_address::EthAddress', otherwise false.
5348
+ */
6016
5349
  declare const isTypeEthAddress: (type: string) => boolean;
5350
+ /**
5351
+ * Checks if the given type is 'core::bytes_31::bytes31'.
5352
+ *
5353
+ * @param {string} type - The type to check.
5354
+ * @returns - True if the type is 'core::bytes_31::bytes31', false otherwise.
5355
+ */
6017
5356
  declare const isTypeBytes31: (type: string) => boolean;
5357
+ /**
5358
+ * Checks if the given type is equal to the 'core::byte_array::ByteArray'.
5359
+ *
5360
+ * @param {string} type - The type to check.
5361
+ * @returns - True if the given type is equal to 'core::byte_array::ByteArray', false otherwise.
5362
+ */
6018
5363
  declare const isTypeByteArray: (type: string) => boolean;
6019
5364
  declare const isTypeSecp256k1Point: (type: string) => boolean;
6020
5365
  declare const isCairo1Type: (type: string) => boolean;
5366
+ /**
5367
+ * Retrieves the array type from the given type string.
5368
+ *
5369
+ * @param {string} type - The type string.
5370
+ * @returns - The array type.
5371
+ */
6021
5372
  declare const getArrayType: (type: string) => string;
6022
5373
  /**
6023
5374
  * Test if an ABI comes from a Cairo 1 contract
@@ -6141,6 +5492,17 @@ declare namespace byteArray {
6141
5492
  export { byteArray_byteArrayFromString as byteArrayFromString, byteArray_stringFromByteArray as stringFromByteArray };
6142
5493
  }
6143
5494
 
5495
+ /**
5496
+ * Parse one field of the calldata by using input field from the abi for that method
5497
+ *
5498
+ * @param argsIterator - Iterator for value of the field
5499
+ * @param input - input(field) information from the abi that will be used to parse the data
5500
+ * @param structs - structs from abi
5501
+ * @param enums - enums from abi
5502
+ * @return {string | string[]} - parsed arguments in format that contract is expecting
5503
+ */
5504
+ declare function parseCalldataField(argsIterator: Iterator<any>, input: AbiEntry, structs: AbiStructs, enums: AbiEnums): string | string[];
5505
+
6144
5506
  declare class CallData {
6145
5507
  abi: Abi;
6146
5508
  parser: AbiParserInterface;
@@ -6227,7 +5589,22 @@ declare class CallData {
6227
5589
  decodeParameters(typeCairo: AllowArray<string>, response: string[]): AllowArray<Result>;
6228
5590
  }
6229
5591
 
5592
+ /**
5593
+ * Checks if a given contract is in Sierra (Safe Intermediate Representation) format.
5594
+ *
5595
+ * @param {CairoContract | string} contract - The contract to check. Can be either a CairoContract object or a string representation of the contract.
5596
+ * @return {boolean} - Returns true if the contract is a Sierra contract, otherwise false.
5597
+ */
6230
5598
  declare function isSierra(contract: CairoContract | string): contract is SierraContractClass | CompiledSierra;
5599
+ /**
5600
+ * Extracts contract hashes from `DeclareContractPayload`.
5601
+ *
5602
+ * @param {DeclareContractPayload} payload - The payload containing contract information.
5603
+ *
5604
+ * @return {CompleteDeclareContractPayload} - The `CompleteDeclareContractPayload` with extracted contract hashes.
5605
+ *
5606
+ * @throws {Error} - If extraction of compiledClassHash or classHash fails.
5607
+ */
6231
5608
  declare function extractContractHashes(payload: DeclareContractPayload): CompleteDeclareContractPayload;
6232
5609
  /**
6233
5610
  * Helper to redeclare response Cairo0 contract
@@ -6257,12 +5634,12 @@ declare function parseUDCEvent(txReceipt: InvokeTransactionReceiptResponse): {
6257
5634
  * @param silentMode false: request user interaction allowance. true: return only pre-allowed
6258
5635
  * @returns allowed accounts addresses
6259
5636
  */
6260
- declare function requestAccounts(swo: StarknetWindowObject, silentMode?: boolean): Promise<string[]>;
5637
+ declare function requestAccounts(swo: StarknetWindowObject, silent_mode?: boolean): Promise<string[]>;
6261
5638
  /**
6262
5639
  * Request Permission for wallet account
6263
5640
  * @returns allowed accounts addresses
6264
5641
  */
6265
- declare function getPermissions(swo: StarknetWindowObject): Promise<starknet_types.Permission[]>;
5642
+ declare function getPermissions(swo: StarknetWindowObject): Promise<[] | RPCSPEC07.Permission[]>;
6266
5643
  /**
6267
5644
  * Request adding ERC20 Token to Wallet List
6268
5645
  * @param asset WatchAssetParameters
@@ -6280,51 +5657,60 @@ declare function addStarknetChain(swo: StarknetWindowObject, chain: AddStarknetC
6280
5657
  * @param chainId StarknetChainId
6281
5658
  * @returns boolean
6282
5659
  */
6283
- declare function switchStarknetChain(swo: StarknetWindowObject, chainId: StarknetChainId$1): Promise<boolean>;
5660
+ declare function switchStarknetChain(swo: StarknetWindowObject, chainId: ChainId$1): Promise<boolean>;
6284
5661
  /**
6285
5662
  * Request the current chain ID from the wallet.
6286
5663
  * @returns The current Starknet chain ID.
6287
5664
  */
6288
- declare function requestChainId(swo: StarknetWindowObject): Promise<StarknetChainId$1>;
5665
+ declare function requestChainId(swo: StarknetWindowObject): Promise<string>;
6289
5666
  /**
6290
5667
  * Get deployment data for a contract.
6291
5668
  * @returns The deployment data result.
6292
5669
  */
6293
- declare function deploymentData(swo: StarknetWindowObject): Promise<starknet_types.GetDeploymentDataResult>;
5670
+ declare function deploymentData(swo: StarknetWindowObject): Promise<RPCSPEC07.AccountDeploymentData>;
6294
5671
  /**
6295
5672
  * Add an invoke transaction to the wallet.
6296
5673
  * @param params The parameters required for the invoke transaction.
6297
5674
  * @returns The result of adding the invoke transaction.
6298
5675
  */
6299
- declare function addInvokeTransaction(swo: StarknetWindowObject, params: AddInvokeTransactionParameters): Promise<starknet_types.AddInvokeTransactionResult>;
5676
+ declare function addInvokeTransaction(swo: StarknetWindowObject, params: AddInvokeTransactionParameters): Promise<RPCSPEC07.AddInvokeTransactionResult>;
6300
5677
  /**
6301
5678
  * Add a declare transaction to the wallet.
6302
5679
  * @param params The parameters required for the declare transaction.
6303
5680
  * @returns The result of adding the declare transaction.
6304
5681
  */
6305
- declare function addDeclareTransaction(swo: StarknetWindowObject, params: AddDeclareTransactionParameters): Promise<starknet_types.AddDeclareTransactionResult>;
6306
- /**
6307
- * Add a deploy account transaction to the wallet.
6308
- * @param params The parameters required for the deploy account transaction.
6309
- * @returns The result of adding the deploy account transaction.
6310
- */
6311
- declare function addDeployAccountTransaction(swo: StarknetWindowObject, params: AddDeployAccountTransactionParameters): Promise<starknet_types.AddDeployAccountTransactionResult>;
5682
+ declare function addDeclareTransaction(swo: StarknetWindowObject, params: AddDeclareTransactionParameters): Promise<RPCSPEC07.AddDeclareTransactionResult>;
6312
5683
  /**
6313
5684
  * Sign typed data using the wallet.
6314
5685
  * @param params The typed data to sign.
6315
5686
  * @returns An array of signatures as strings.
6316
5687
  */
6317
- declare function signMessage(swo: StarknetWindowObject, typedData: TypedData): Promise<string[]>;
5688
+ declare function signMessage(swo: StarknetWindowObject, typedData: TypedData): Promise<SIGNATURE$1>;
6318
5689
  /**
6319
5690
  * Get the list of supported specifications.
6320
5691
  * @returns An array of supported specification strings.
6321
5692
  */
6322
5693
  declare function supportedSpecs(swo: StarknetWindowObject): Promise<string[]>;
5694
+ /**
5695
+ * Attaches an event handler function to the "accountsChanged" event of a StarknetWindowObject.
5696
+ * When the accounts are changed, the specified callback function will be called.
5697
+ *
5698
+ * @param {StarknetWindowObject} swo - The StarknetWindowObject to attach the event handler to.
5699
+ * @param {AccountChangeEventHandler} callback - The function to be called when the accounts are changed.
5700
+ * It will receive the changed accounts as a parameter.
5701
+ * @returns {void}
5702
+ */
6323
5703
  declare function onAccountChange(swo: StarknetWindowObject, callback: AccountChangeEventHandler): void;
5704
+ /**
5705
+ * Register a callback function to be called when the network is changed.
5706
+ *
5707
+ * @param {StarknetWindowObject} swo - The StarknetWindowObject instance.
5708
+ * @param {NetworkChangeEventHandler} callback - The callback function to be called when the network is changed.
5709
+ * @return {void}
5710
+ */
6324
5711
  declare function onNetworkChanged(swo: StarknetWindowObject, callback: NetworkChangeEventHandler): void;
6325
5712
 
6326
5713
  declare const connect_addDeclareTransaction: typeof addDeclareTransaction;
6327
- declare const connect_addDeployAccountTransaction: typeof addDeployAccountTransaction;
6328
5714
  declare const connect_addInvokeTransaction: typeof addInvokeTransaction;
6329
5715
  declare const connect_addStarknetChain: typeof addStarknetChain;
6330
5716
  declare const connect_deploymentData: typeof deploymentData;
@@ -6338,7 +5724,7 @@ declare const connect_supportedSpecs: typeof supportedSpecs;
6338
5724
  declare const connect_switchStarknetChain: typeof switchStarknetChain;
6339
5725
  declare const connect_watchAsset: typeof watchAsset;
6340
5726
  declare namespace connect {
6341
- export { connect_addDeclareTransaction as addDeclareTransaction, connect_addDeployAccountTransaction as addDeployAccountTransaction, connect_addInvokeTransaction as addInvokeTransaction, connect_addStarknetChain as addStarknetChain, connect_deploymentData as deploymentData, connect_getPermissions as getPermissions, connect_onAccountChange as onAccountChange, connect_onNetworkChanged as onNetworkChanged, connect_requestAccounts as requestAccounts, connect_requestChainId as requestChainId, connect_signMessage as signMessage, connect_supportedSpecs as supportedSpecs, connect_switchStarknetChain as switchStarknetChain, connect_watchAsset as watchAsset };
5727
+ export { connect_addDeclareTransaction as addDeclareTransaction, connect_addInvokeTransaction as addInvokeTransaction, connect_addStarknetChain as addStarknetChain, connect_deploymentData as deploymentData, connect_getPermissions as getPermissions, connect_onAccountChange as onAccountChange, connect_onNetworkChanged as onNetworkChanged, connect_requestAccounts as requestAccounts, connect_requestChainId as requestChainId, connect_signMessage as signMessage, connect_supportedSpecs as supportedSpecs, connect_switchStarknetChain as switchStarknetChain, connect_watchAsset as watchAsset };
6342
5728
  }
6343
5729
 
6344
5730
  /**
@@ -6348,4 +5734,4 @@ declare namespace connect {
6348
5734
  /** @deprecated prefer the 'num' naming */
6349
5735
  declare const number: typeof num;
6350
5736
 
6351
- 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, CairoUint256, CairoUint512, 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 GetTxReceiptResponseWithoutHelper, 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 MessageToL1, 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, ReceiptTx, type RejectedTransactionReceiptResponse, type Result, type RevertedTransactionReceiptResponse, 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 StarkProfile, type StateUpdate, type StateUpdateResponse, type Storage, type StructAbi, type SuccessfulTransactionReceiptResponse, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptUtilityInterface, type TransactionReceiptValue, TransactionStatus, type TransactionStatusReceiptSets, TransactionType, type Tupled, type TypedContractV2, UINT_128_MAX, UINT_128_MIN, UINT_256_HIGH_MAX, UINT_256_HIGH_MIN, UINT_256_LOW_MAX, UINT_256_LOW_MIN, UINT_256_MAX, UINT_256_MIN, UINT_512_MAX, UINT_512_MIN, Uint, type Uint256, type Uint512, type UniversalDeployerContractPayload, type UniversalDetails, type V2DeclareSignerDetails, type V2DeployAccountSignerDetails, type V2InvocationsSignerDetails, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WalletAccount, 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, connect as wallet };
5737
+ 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, CairoUint256, CairoUint512, 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 GetTxReceiptResponseWithoutHelper, 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 MessageToL1, 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, ReceiptTx, type RejectedTransactionReceiptResponse, type Result, type RevertedTransactionReceiptResponse, 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 StarkProfile, type StateUpdate, type StateUpdateResponse, type Storage, type StructAbi, type SuccessfulTransactionReceiptResponse, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptUtilityInterface, type TransactionReceiptValue, TransactionStatus, type TransactionStatusReceiptSets, TransactionType, type Tupled, type TypedContractV2, UINT_128_MAX, UINT_128_MIN, UINT_256_HIGH_MAX, UINT_256_HIGH_MIN, UINT_256_LOW_MAX, UINT_256_LOW_MIN, UINT_256_MAX, UINT_256_MIN, UINT_512_MAX, UINT_512_MIN, Uint, type Uint256, type Uint512, type UniversalDeployerContractPayload, type UniversalDetails, type V2DeclareSignerDetails, type V2DeployAccountSignerDetails, type V2InvocationsSignerDetails, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WalletAccount, 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, parseCalldataField, 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, connect as wallet };