rocketh 0.10.8 → 0.10.9

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,10 +1,926 @@
1
- import { EIP1193ProviderWithoutEvents, EIP1193GenericRequestProvider, EIP1193Web3ClientVersionRequest, EIP1193Web3SHARequest, EIP1193NetVersionRequest, EIP1193NetListeningRequest, EIP1193NetPeerCountRequest, EIP1193ProtocolVersionRequest, EIP1193SyncingRequest, EIP1193SyncingStatus, EIP1193CoinbaseRequest, EIP1193GasPriceRequest, EIP1193AccountsRequest, EIP1193Accounts, EIP1193BlockNumberRequest, EIP1193GetBalanceRequest, EIP1193GetStorageAtRequest, EIP1193GetTransactionCountRequest, EIP1193GetTransactionCountByHashRequest, EIP1193GetTransactionCountByNumberRequest, EIP1193GetUncleCountByBlockHashRequest, EIP1193GetUncleCountByBlockNumberRequest, EIP1193GetCodeRequest, EIP1193LegacySignRequest, EIP1193SignTransactionRequest, EIP1193SendTransactionRequest, EIP1193SendRawTransactionRequest, EIP1193CallRequest, EIP1193EstimateGasRequest, EIP1193GetBlockByHashRequest, EIP1193Block, EIP1193BlockWithTransactions, EIP1193GetBlockByNumberRequest, EIP1193GetTransactionByHashRequest, EIP1193Transaction, EIP1193GetTransactionByBlockHashAndIndexRequest, EIP1193GetTransactionByBlockNumberAndIndexRequest, EIP1193GetTransactionReceiptRequest, EIP1193TransactionReceipt, EIP1193GetUncleByBlockHashAndIndexRequest, EIP1193GetUncleByBlockNumberAndIndexRequest, EIP1193GetLogsRequest, EIP1193Log, EIP1193PersonalSignRequest, EIP1193PTypedSignv4Request, EIP1193PTypedSignRequest, EIP1193ChainIdRequest, EIP1193RequestAccountsRequest, ERIP1193SwitchChainRequest, EIP1193SwitchChainError, ERIP1193AddChainRequest, EIP1193AddChainError, EIP1193SubscribeRequest, EIP1193UnsubscribeRequest, EIP1193GenericRequest, EIP1193Account, EIP1193DATA, EIP1193QUANTITY, EIP1193SignerProvider, EIP1193WalletProvider, EIP1193BlockTag } from 'eip-1193';
2
- import * as abitype from 'abitype';
3
- import { Abi, Narrow } from 'abitype';
4
- export { Abi, AbiConstructor, AbiError, AbiEvent, AbiFallback, AbiFunction, AbiReceive } from 'abitype';
5
1
  import { Chain, Address, DeployContractParameters } from 'viem';
6
2
  import { Chain as Chain$1 } from 'viem/chains';
7
3
 
4
+ // ------------------------------------------------------------------------------------------------
5
+ // TYPES
6
+ // ------------------------------------------------------------------------------------------------
7
+ type BaseEIP1193Transaction = {
8
+ blockHash: EIP1193DATA;
9
+ blockNumber: EIP1193QUANTITY | null;
10
+ from: EIP1193Account;
11
+ gas: EIP1193QUANTITY;
12
+ hash: EIP1193DATA;
13
+ input: EIP1193DATA;
14
+ nonce: EIP1193QUANTITY;
15
+ to: EIP1193Account | null;
16
+ transactionIndex: EIP1193QUANTITY | null;
17
+ value: EIP1193QUANTITY;
18
+ v: EIP1193QUANTITY;
19
+ r: EIP1193QUANTITY;
20
+ s: EIP1193QUANTITY;
21
+ };
22
+
23
+ type EIP1193TransactionType0 = BaseEIP1193Transaction & {
24
+ type?: '0x0';
25
+ gasPrice: EIP1193QUANTITY;
26
+ };
27
+
28
+ type EIP1193TransactionType1 = BaseEIP1193Transaction & {
29
+ type: '0x1';
30
+ gasPrice: EIP1193QUANTITY;
31
+ chainId: EIP1193ChainId;
32
+ accessList?: EIP1193AccessList;
33
+ };
34
+
35
+ type EIP1193TransactionType2 = BaseEIP1193Transaction & {
36
+ type: '0x2';
37
+ chainId: EIP1193ChainId;
38
+ accessList?: EIP1193AccessList;
39
+ maxFeePerGas: EIP1193QUANTITY;
40
+ maxPriorityFeePerGas: EIP1193QUANTITY;
41
+ };
42
+
43
+ type EIP1193Transaction = EIP1193TransactionType0 | EIP1193TransactionType1 | EIP1193TransactionType2;
44
+
45
+ type BaseEIP1193TransactionData = {
46
+ from: EIP1193Account;
47
+ to?: EIP1193Account;
48
+ gas?: EIP1193QUANTITY;
49
+ value?: EIP1193QUANTITY;
50
+ data?: EIP1193DATA;
51
+ nonce?: EIP1193QUANTITY;
52
+ };
53
+
54
+ type EIP1193LegacyTransactionData = BaseEIP1193TransactionData & {
55
+ type?: '0x0';
56
+ gasPrice?: EIP1193QUANTITY;
57
+ };
58
+
59
+ type EIP1193TransactionDataOfType1 = BaseEIP1193TransactionData & {
60
+ type: '0x1';
61
+ chainId?: EIP1193ChainId;
62
+ accessList?: EIP1193AccessList;
63
+ gasPrice?: EIP1193QUANTITY;
64
+ };
65
+
66
+ type EIP1193AccessListEntry = {address: EIP1193Account; storageKeys: EIP1193DATA[]};
67
+ type EIP1193AccessList = EIP1193AccessListEntry[];
68
+
69
+ type EIP1193TransactionDataOfType2 = BaseEIP1193TransactionData & {
70
+ type: '0x2';
71
+ chainId?: EIP1193ChainId;
72
+ accessList?: EIP1193AccessList;
73
+ maxFeePerGas?: EIP1193QUANTITY;
74
+ maxPriorityFeePerGas?: EIP1193QUANTITY;
75
+ };
76
+
77
+ type EIP1193TransactionData =
78
+ | EIP1193LegacyTransactionData
79
+ | EIP1193TransactionDataOfType1
80
+ | EIP1193TransactionDataOfType2;
81
+
82
+ type EIP1193SyncingStatus = {
83
+ startingBlock: EIP1193QUANTITY;
84
+ currentBlock: EIP1193QUANTITY;
85
+ highestBlock: EIP1193QUANTITY;
86
+ };
87
+
88
+ type EIP1193Block = {
89
+ number: EIP1193QUANTITY;
90
+ hash: EIP1193DATA;
91
+ parentHash: EIP1193DATA;
92
+ nonce: EIP1193DATA;
93
+ sha3Uncles: EIP1193DATA;
94
+ logsBloom: EIP1193DATA;
95
+ transactionsRoot: EIP1193DATA;
96
+ stateRoot: EIP1193DATA;
97
+ receiptsRoot: EIP1193DATA;
98
+ miner: EIP1193Account;
99
+ difficulty: EIP1193QUANTITY;
100
+ totalDifficulty: EIP1193QUANTITY;
101
+ extraData: EIP1193DATA;
102
+ size: EIP1193QUANTITY;
103
+ gasLimit: EIP1193QUANTITY;
104
+ gasUsed: EIP1193QUANTITY;
105
+ timestamp: EIP1193QUANTITY;
106
+ uncles: EIP1193DATA[];
107
+ };
108
+
109
+ type EIP1193Log = {
110
+ removed: boolean;
111
+ logIndex: EIP1193QUANTITY | null;
112
+ transactionIndex: EIP1193QUANTITY | null;
113
+ transactionHash: EIP1193DATA | null;
114
+ blockHash: EIP1193DATA | null;
115
+ blockNumber: EIP1193QUANTITY | null;
116
+ address: EIP1193Account;
117
+ data: EIP1193DATA;
118
+ topics: EIP1193DATA[];
119
+ };
120
+
121
+ type EIP1193TransactionReceipt = {
122
+ transactionHash: EIP1193DATA;
123
+ transactionIndex: EIP1193QUANTITY;
124
+ blockHash: EIP1193DATA;
125
+ blockNumber: EIP1193QUANTITY;
126
+ from: EIP1193Account;
127
+ to: EIP1193Account;
128
+ cumulativeGasUsed: EIP1193QUANTITY;
129
+ effectiveGasPrice: EIP1193QUANTITY;
130
+ gasUsed: EIP1193QUANTITY;
131
+ contractAddress: EIP1193Account;
132
+ logs: EIP1193Log[];
133
+ logsBloom: EIP1193DATA;
134
+ type: EIP1193DATA;
135
+ root: EIP1193DATA;
136
+ status: EIP1193QUANTITY;
137
+ };
138
+
139
+ type EIP1193BlockWithTransactions = EIP1193Block & {
140
+ transactions: EIP1193Transaction[];
141
+ };
142
+
143
+ type EIP1193CallParam = {
144
+ from?: EIP1193Account;
145
+ to: EIP1193Account;
146
+ gas?: EIP1193QUANTITY;
147
+ gasPrice?: EIP1193QUANTITY;
148
+ value?: EIP1193QUANTITY;
149
+ data?: EIP1193DATA;
150
+ };
151
+
152
+ type EIP1193AddChainParam = {
153
+ chainId: EIP1193ChainId;
154
+ rpcUrls?: string[];
155
+ blockExplorerUrls?: string[];
156
+ chainName?: string;
157
+ iconUrls?: string[];
158
+ nativeCurrency?: {
159
+ name: string;
160
+ symbol: string;
161
+ decimals: number;
162
+ };
163
+ };
164
+
165
+ type EIP1193LogsParam = {
166
+ fromBlock?: EIP1193BlockTag;
167
+ toBlock?: EIP1193BlockTag;
168
+ address?: EIP1193Account | EIP1193Accounts;
169
+ topics?: (EIP1193DATA | EIP1193DATA[])[];
170
+ blockhash?: EIP1193DATA;
171
+ };
172
+
173
+ type EIP1193TypedSignatureParam = {[field: string]: any}; // TODO
174
+ // ------------------------------------------------------------------------------------------------
175
+ // REQUEST TYPES
176
+ // ------------------------------------------------------------------------------------------------
177
+
178
+ type EIP1193Web3ClientVersionRequest = {
179
+ readonly method: 'web3_clientVersion';
180
+ };
181
+
182
+ type EIP1193Web3SHARequest = {
183
+ readonly method: 'web3_sha';
184
+ readonly params: [EIP1193DATA];
185
+ };
186
+
187
+ type EIP1193NetVersionRequest = {
188
+ readonly method: 'net_version';
189
+ };
190
+
191
+ type EIP1193NetListeningRequest = {
192
+ readonly method: 'net_listening';
193
+ };
194
+
195
+ type EIP1193NetPeerCountRequest = {
196
+ readonly method: 'net_peerCount';
197
+ };
198
+
199
+ type EIP1193ProtocolVersionRequest = {
200
+ readonly method: 'eth_protocolVersion';
201
+ };
202
+
203
+ type EIP1193SyncingRequest = {
204
+ readonly method: 'eth_syncing';
205
+ };
206
+
207
+ type EIP1193CoinbaseRequest = {
208
+ readonly method: 'eth_coinbase';
209
+ };
210
+
211
+ type EIP1193GasPriceRequest = {
212
+ readonly method: 'eth_gasPrice';
213
+ };
214
+
215
+ type EIP1193AccountsRequest = {
216
+ readonly method: 'eth_accounts';
217
+ };
218
+
219
+ type EIP1193BlockNumberRequest = {
220
+ readonly method: 'eth_blockNumber';
221
+ };
222
+
223
+ type EIP1193GetBalanceRequest = {
224
+ readonly method: 'eth_getBalance';
225
+ readonly params: [EIP1193Account] | [EIP1193Account, EIP1898BlockTag];
226
+ };
227
+
228
+ type EIP1193GetStorageAtRequest = {
229
+ readonly method: 'eth_getStorageAt';
230
+ readonly params: [EIP1193Account, EIP1193QUANTITY] | [EIP1193Account, EIP1193QUANTITY, EIP1898BlockTag];
231
+ };
232
+
233
+ type EIP1193GetTransactionCountRequest = {
234
+ readonly method: 'eth_getTransactionCount';
235
+ readonly params: [EIP1193Account] | [EIP1193Account, EIP1898BlockTag];
236
+ };
237
+
238
+ type EIP1193GetTransactionCountByHashRequest = {
239
+ readonly method: 'eth_getBlockTransactionCountByHash';
240
+ readonly params: [EIP1193DATA];
241
+ };
242
+
243
+ type EIP1193GetTransactionCountByNumberRequest = {
244
+ readonly method: 'eth_getBlockTransactionCountByNumber';
245
+ readonly params: [EIP1193BlockTag];
246
+ };
247
+
248
+ type EIP1193GetUncleCountByBlockHashRequest = {
249
+ readonly method: 'eth_getUncleCountByBlockHash';
250
+ readonly params: [EIP1193DATA];
251
+ };
252
+
253
+ type EIP1193GetUncleCountByBlockNumberRequest = {
254
+ readonly method: 'eth_getUncleCountByBlockNumber';
255
+ readonly params: [EIP1193BlockTag];
256
+ };
257
+
258
+ type EIP1193GetCodeRequest = {
259
+ readonly method: 'eth_getCode';
260
+ readonly params: [EIP1193Account] | [EIP1193Account, EIP1898BlockTag]; // TODO EIP1898BlockTag mandatory (base network gateway seems to think so)?
261
+ };
262
+
263
+ type EIP1193LegacySignRequest = {
264
+ readonly method: 'eth_sign';
265
+ readonly params: [EIP1193Account, EIP1193DATA];
266
+ };
267
+
268
+ type EIP1193SignTransactionRequest = {
269
+ readonly method: 'eth_signTransaction';
270
+ readonly params: [EIP1193TransactionData];
271
+ };
272
+
273
+ type EIP1193SendTransactionRequest = {
274
+ readonly method: 'eth_sendTransaction';
275
+ readonly params: [EIP1193TransactionData];
276
+ };
277
+
278
+ type EIP1193SendRawTransactionRequest = {
279
+ readonly method: 'eth_sendRawTransaction';
280
+ readonly params: [EIP1193DATA];
281
+ };
282
+
283
+ type EIP1193CallRequest = {
284
+ readonly method: 'eth_call';
285
+ readonly params: [EIP1193CallParam] | [EIP1193CallParam, EIP1898BlockTag];
286
+ };
287
+
288
+ type EIP1193EstimateGasRequest = {
289
+ readonly method: 'eth_estimateGas';
290
+ readonly params: [EIP1193CallParam] | [EIP1193CallParam, EIP1193BlockTag]; // EIP1898BlockTag ?
291
+ };
292
+
293
+ type EIP1193GetBlockByHashRequest<T extends boolean = false> = {
294
+ readonly method: 'eth_getBlockByHash';
295
+ readonly params: [EIP1193DATA, T];
296
+ };
297
+
298
+ type EIP1193GetBlockByNumberRequest<T = false> = {
299
+ readonly method: 'eth_getBlockByNumber';
300
+ readonly params: [EIP1193BlockTag, T];
301
+ };
302
+
303
+ type EIP1193GetTransactionByHashRequest = {
304
+ readonly method: 'eth_getTransactionByHash';
305
+ readonly params: [EIP1193DATA];
306
+ };
307
+
308
+ type EIP1193GetTransactionByBlockHashAndIndexRequest = {
309
+ readonly method: 'eth_getTransactionByBlockHashAndIndex';
310
+ readonly params: [EIP1193DATA, EIP1193QUANTITY];
311
+ };
312
+
313
+ type EIP1193GetTransactionByBlockNumberAndIndexRequest = {
314
+ readonly method: 'eth_getTransactionByBlockNumberAndIndex';
315
+ readonly params: [EIP1193BlockTag, EIP1193QUANTITY];
316
+ };
317
+
318
+ type EIP1193GetTransactionReceiptRequest = {
319
+ readonly method: 'eth_getTransactionReceipt';
320
+ readonly params: [EIP1193DATA];
321
+ };
322
+
323
+ type EIP1193GetUncleByBlockHashAndIndexRequest = {
324
+ readonly method: 'eth_getUncleByBlockHashAndIndex';
325
+ readonly params: [EIP1193DATA, EIP1193QUANTITY];
326
+ };
327
+
328
+ type EIP1193GetUncleByBlockNumberAndIndexRequest = {
329
+ readonly method: 'eth_getUncleByBlockNumberAndIndex';
330
+ readonly params: [EIP1193BlockTag, EIP1193QUANTITY];
331
+ };
332
+
333
+ type EIP1193GetLogsRequest = {
334
+ readonly method: 'eth_getLogs';
335
+ readonly params: [EIP1193LogsParam];
336
+ };
337
+
338
+ // ------------------------------------------------------------------------------------------------
339
+ // MORE REQUEST TYPES
340
+ // ------------------------------------------------------------------------------------------------
341
+
342
+ type EIP1193PersonalSignRequest = {
343
+ readonly method: 'personal_sign';
344
+ readonly params: [EIP1193DATA, EIP1193Account];
345
+ };
346
+
347
+ type EIP1193PTypedSignv4Request = {
348
+ readonly method: 'eth_signTypedData_v4';
349
+ readonly params: [EIP1193Account, EIP1193TypedSignatureParam];
350
+ };
351
+
352
+ type EIP1193PTypedSignRequest = {
353
+ readonly method: 'eth_signTypedData';
354
+ readonly params: [EIP1193Account, EIP1193TypedSignatureParam];
355
+ };
356
+
357
+ type EIP1193ChainIdRequest = {
358
+ readonly method: 'eth_chainId';
359
+ };
360
+
361
+ type EIP1193RequestAccountsRequest = {
362
+ readonly method: 'eth_requestAccounts';
363
+ };
364
+
365
+ type ERIP1193SwitchChainRequest = {
366
+ readonly method: 'wallet_switchEthereumChain';
367
+ readonly params: [
368
+ {
369
+ chainId: EIP1193ChainId;
370
+ }
371
+ ];
372
+ };
373
+ type ERIP1193AddChainRequest = {
374
+ readonly method: 'wallet_addEthereumChain';
375
+ readonly params: [EIP1193AddChainParam];
376
+ };
377
+
378
+ type EIP1193OtherSubscribeRequest = {
379
+ readonly method: 'eth_subscribe';
380
+ readonly params: ['newHeads' | 'newPendingTransactions' | 'syncing'];
381
+ };
382
+
383
+ type EIP1193LogsSubscribeRequest = {
384
+ readonly method: 'eth_subscribe';
385
+ readonly params: [
386
+ 'logs',
387
+ {
388
+ address: EIP1193Account | EIP1193Account[];
389
+ topics: (EIP1193DATA[] | EIP1193DATA)[];
390
+ }
391
+ ];
392
+ };
393
+
394
+ type EIP1193SubscribeRequest = EIP1193LogsSubscribeRequest | EIP1193OtherSubscribeRequest;
395
+
396
+ type EIP1193UnsubscribeRequest = {
397
+ readonly method: 'eth_unsubscribe';
398
+ readonly params: [EIP1193DATA];
399
+ };
400
+
401
+ type EIP1193GenericRequest = {
402
+ method: string;
403
+ params?: any[];
404
+ };
405
+
406
+ type EIP1193AddChainError = {
407
+ // TODO
408
+ };
409
+
410
+ type EIP1193SwitchChainError = {
411
+ // TODO
412
+ };
413
+
414
+ type EIP1193Web3ClientVersionProvider = {
415
+ request(args: EIP1193Web3ClientVersionRequest): Promise<string>;
416
+ };
417
+
418
+ type EIP1193Web3SHAProvider = {
419
+ request(args: EIP1193Web3SHARequest): Promise<EIP1193DATA>;
420
+ };
421
+
422
+ type EIP1193NetVersionProvider = {
423
+ request(args: EIP1193NetVersionRequest): Promise<EIP1193ChainId>;
424
+ };
425
+
426
+ type EIP1193NetListeningProvider = {
427
+ request(args: EIP1193NetListeningRequest): Promise<boolean>;
428
+ };
429
+
430
+ type EIP1193NetPeerCountProvider = {
431
+ request(args: EIP1193NetPeerCountRequest): Promise<EIP1193QUANTITY>;
432
+ };
433
+
434
+ type EIP1193ProtocolVersionProvider = {
435
+ request(args: EIP1193ProtocolVersionRequest): Promise<string>;
436
+ };
437
+
438
+ type EIP1193SyncingProvider = {
439
+ request(args: EIP1193SyncingRequest): Promise<EIP1193SyncingStatus | false>;
440
+ };
441
+ type EIP1193CoinbaseProvider = {
442
+ request(args: EIP1193CoinbaseRequest): Promise<EIP1193Account>;
443
+ };
444
+ type EIP1193GasPriceProvider = {
445
+ request(args: EIP1193GasPriceRequest): Promise<EIP1193QUANTITY>;
446
+ };
447
+ type EIP1193AccountsProvider = {
448
+ request(args: EIP1193AccountsRequest): Promise<EIP1193Accounts>;
449
+ };
450
+ type EIP1193BlockNumberProvider = {
451
+ request(args: EIP1193BlockNumberRequest): Promise<EIP1193QUANTITY>;
452
+ };
453
+ type EIP1193GetBalanceProvider = {
454
+ request(args: EIP1193GetBalanceRequest): Promise<EIP1193QUANTITY>;
455
+ };
456
+ type EIP1193GetStorageAtProvider = {
457
+ request(args: EIP1193GetStorageAtRequest): Promise<EIP1193DATA>;
458
+ };
459
+ type EIP1193GetTransactionCountProvider = {
460
+ request(args: EIP1193GetTransactionCountRequest): Promise<EIP1193QUANTITY>;
461
+ };
462
+ type EIP1193GetTransactionCountByHashProvider = {
463
+ request(args: EIP1193GetTransactionCountByHashRequest): Promise<EIP1193QUANTITY>;
464
+ };
465
+ type EIP1193GetTransactionCountByNumberProvider = {
466
+ request(args: EIP1193GetTransactionCountByNumberRequest): Promise<EIP1193QUANTITY>;
467
+ };
468
+
469
+ type EIP1193GetUncleCountByBlockHashProvider = {
470
+ request(args: EIP1193GetUncleCountByBlockHashRequest): Promise<EIP1193QUANTITY>;
471
+ };
472
+
473
+ type EIP1193GetUncleCountByBlockNumberProvider = {
474
+ request(args: EIP1193GetUncleCountByBlockNumberRequest): Promise<EIP1193QUANTITY>;
475
+ };
476
+
477
+ type EIP1193GetCodeProvider = {
478
+ request(args: EIP1193GetCodeRequest): Promise<EIP1193DATA>;
479
+ };
480
+
481
+ type EIP1193LegacySignProvider = {
482
+ request(args: EIP1193LegacySignRequest): Promise<EIP1193DATA>;
483
+ };
484
+
485
+ type EIP1193SignTransactionProvider = {
486
+ request(args: EIP1193SignTransactionRequest): Promise<EIP1193DATA>;
487
+ };
488
+
489
+ type EIP1193SendTransactionProvider = {
490
+ request(args: EIP1193SendTransactionRequest): Promise<EIP1193DATA>;
491
+ };
492
+
493
+ type EIP1193SendRawTransactionProvider = {
494
+ request(args: EIP1193SendRawTransactionRequest): Promise<EIP1193DATA>;
495
+ };
496
+
497
+ type EIP1193CallProvider = {
498
+ request(args: EIP1193CallRequest): Promise<EIP1193DATA>;
499
+ };
500
+
501
+ type EIP1193EstimateGasProvider = {
502
+ request(args: EIP1193EstimateGasRequest): Promise<EIP1193QUANTITY>;
503
+ };
504
+
505
+ type EIP1193GetBlockByHashProvider = {
506
+ request(args: EIP1193GetBlockByHashRequest): Promise<EIP1193Block | null>;
507
+ request(args: EIP1193GetBlockByHashRequest<true>): Promise<EIP1193BlockWithTransactions | null>;
508
+ };
509
+
510
+ type EIP1193GetBlockByNumberProvider = {
511
+ request(args: EIP1193GetBlockByNumberRequest): Promise<EIP1193Block | null>;
512
+ request(args: EIP1193GetBlockByNumberRequest<true>): Promise<EIP1193BlockWithTransactions | null>;
513
+ };
514
+
515
+ type EIP1193GetTransactionByHashProvider = {
516
+ request(args: EIP1193GetTransactionByHashRequest): Promise<EIP1193Transaction | null>;
517
+ };
518
+ type EIP1193GetTransactionByBlockHashAndIndexProvider = {
519
+ request(args: EIP1193GetTransactionByBlockHashAndIndexRequest): Promise<EIP1193Transaction | null>;
520
+ };
521
+ type EIP1193GetTransactionByBlockNumberAndIndexProvider = {
522
+ request(args: EIP1193GetTransactionByBlockNumberAndIndexRequest): Promise<EIP1193Transaction | null>;
523
+ };
524
+ type EIP1193GetTransactionReceiptProvider = {
525
+ request(args: EIP1193GetTransactionReceiptRequest): Promise<EIP1193TransactionReceipt | null>;
526
+ };
527
+ type EIP1193GetUncleByBlockHashAndIndexProvider = {
528
+ request(args: EIP1193GetUncleByBlockHashAndIndexRequest): Promise<EIP1193Block | null>;
529
+ };
530
+ type EIP1193GetUncleByBlockNumberAndIndexProvider = {
531
+ request(args: EIP1193GetUncleByBlockNumberAndIndexRequest): Promise<EIP1193Block | null>;
532
+ };
533
+ type EIP1193GetLogsProvider = {
534
+ request(args: EIP1193GetLogsRequest): Promise<EIP1193Log[]>;
535
+ };
536
+ type EIP1193PersonalSignProvider = {
537
+ request(args: EIP1193PersonalSignRequest): Promise<EIP1193DATA>;
538
+ };
539
+ type EIP1193PTypedSignv4Provider = {
540
+ request(args: EIP1193PTypedSignv4Request): Promise<EIP1193DATA>;
541
+ };
542
+
543
+ type EIP1193PTypedSignProvider = {
544
+ request(args: EIP1193PTypedSignRequest): Promise<EIP1193DATA>;
545
+ };
546
+
547
+ type EIP1193ChainIdProvider = {
548
+ request(args: EIP1193ChainIdRequest): Promise<EIP1193ChainId>;
549
+ };
550
+
551
+ type EIP1193RequestAccountsProvider = {
552
+ request(args: EIP1193RequestAccountsRequest): Promise<EIP1193Accounts>;
553
+ };
554
+
555
+ type ERIP1193SwitchChainProvider = {
556
+ request(args: ERIP1193SwitchChainRequest): Promise<EIP1193SwitchChainError | null>;
557
+ };
558
+
559
+ type ERIP1193AddChainProvider = {
560
+ request(args: ERIP1193AddChainRequest): Promise<EIP1193AddChainError | null>;
561
+ };
562
+
563
+ type EIP1193SubscribtionProvider = {
564
+ request(args: EIP1193SubscribeRequest): Promise<string>;
565
+ request(args: EIP1193UnsubscribeRequest): Promise<boolean>;
566
+ };
567
+
568
+ // export type EIP1193RequestProvider<V extends EIP1193GenericRequest = EIP1193GenericRequest> = {
569
+ // request<T = unknown>(args: V): Promise<T>;
570
+ // };
571
+
572
+ type EIP1193GenericRequestProvider = {
573
+ request<T = unknown, V extends EIP1193GenericRequest = EIP1193GenericRequest>(args: V): Promise<T>;
574
+ };
575
+
576
+ type EIP1193ProviderWithoutEvents = EIP1193Web3ClientVersionProvider &
577
+ EIP1193Web3SHAProvider &
578
+ EIP1193NetVersionProvider &
579
+ EIP1193NetListeningProvider &
580
+ EIP1193NetPeerCountProvider &
581
+ EIP1193ProtocolVersionProvider &
582
+ EIP1193SyncingProvider &
583
+ EIP1193CoinbaseProvider &
584
+ EIP1193GasPriceProvider &
585
+ EIP1193AccountsProvider &
586
+ EIP1193BlockNumberProvider &
587
+ EIP1193GetBalanceProvider &
588
+ EIP1193GetStorageAtProvider &
589
+ EIP1193GetTransactionCountProvider &
590
+ EIP1193GetTransactionCountByHashProvider &
591
+ EIP1193GetTransactionCountByNumberProvider &
592
+ EIP1193GetUncleCountByBlockHashProvider &
593
+ EIP1193GetUncleCountByBlockNumberProvider &
594
+ EIP1193GetCodeProvider &
595
+ EIP1193LegacySignProvider &
596
+ EIP1193SignTransactionProvider &
597
+ EIP1193SendTransactionProvider &
598
+ EIP1193SendRawTransactionProvider &
599
+ EIP1193CallProvider &
600
+ EIP1193EstimateGasProvider &
601
+ EIP1193GetBlockByHashProvider &
602
+ EIP1193GetBlockByNumberProvider &
603
+ EIP1193GetTransactionByHashProvider &
604
+ EIP1193GetTransactionByBlockHashAndIndexProvider &
605
+ EIP1193GetTransactionByBlockNumberAndIndexProvider &
606
+ EIP1193GetTransactionReceiptProvider &
607
+ EIP1193GetUncleByBlockHashAndIndexProvider &
608
+ EIP1193GetUncleByBlockNumberAndIndexProvider &
609
+ EIP1193GetLogsProvider &
610
+ EIP1193PersonalSignProvider &
611
+ EIP1193PTypedSignv4Provider &
612
+ EIP1193PTypedSignProvider &
613
+ EIP1193ChainIdProvider &
614
+ EIP1193RequestAccountsProvider &
615
+ ERIP1193SwitchChainProvider &
616
+ ERIP1193AddChainProvider &
617
+ EIP1193SubscribtionProvider &
618
+ EIP1193GenericRequestProvider;
619
+
620
+ // export type EIP1193WindowWalletProvider = EIP1193Provider;
621
+
622
+ type EIP1193WalletProvider = EIP1193GasPriceProvider &
623
+ EIP1193AccountsProvider &
624
+ EIP1193BlockNumberProvider &
625
+ EIP1193GetBalanceProvider &
626
+ EIP1193GetStorageAtProvider &
627
+ EIP1193GetTransactionCountProvider &
628
+ EIP1193GetTransactionCountByHashProvider &
629
+ EIP1193GetTransactionCountByNumberProvider &
630
+ EIP1193GetUncleCountByBlockHashProvider &
631
+ EIP1193GetUncleCountByBlockNumberProvider &
632
+ EIP1193GetCodeProvider &
633
+ EIP1193LegacySignProvider &
634
+ // EIP1193SignTransactionProvider &
635
+ EIP1193SendTransactionProvider &
636
+ EIP1193SendRawTransactionProvider &
637
+ EIP1193CallProvider &
638
+ EIP1193EstimateGasProvider &
639
+ EIP1193GetBlockByHashProvider &
640
+ EIP1193GetBlockByNumberProvider &
641
+ EIP1193GetTransactionByHashProvider &
642
+ EIP1193GetTransactionByBlockHashAndIndexProvider &
643
+ EIP1193GetTransactionByBlockNumberAndIndexProvider &
644
+ EIP1193GetTransactionReceiptProvider &
645
+ EIP1193GetUncleByBlockHashAndIndexProvider &
646
+ EIP1193GetUncleByBlockNumberAndIndexProvider &
647
+ EIP1193GetLogsProvider &
648
+ EIP1193PersonalSignProvider &
649
+ EIP1193PTypedSignv4Provider &
650
+ EIP1193PTypedSignProvider &
651
+ EIP1193ChainIdProvider &
652
+ EIP1193RequestAccountsProvider &
653
+ ERIP1193SwitchChainProvider &
654
+ ERIP1193AddChainProvider &
655
+ EIP1193SubscribtionProvider &
656
+ EIP1193GenericRequestProvider;
657
+
658
+ type EIP1193SignerProvider = EIP1193AccountsProvider &
659
+ EIP1193LegacySignProvider &
660
+ EIP1193SignTransactionProvider &
661
+ EIP1193PersonalSignProvider &
662
+ EIP1193PTypedSignv4Provider &
663
+ EIP1193PTypedSignProvider &
664
+ EIP1193GenericRequestProvider;
665
+
666
+ type EIP1193DATA = `0x${string}`;
667
+ type EIP1193BlockTag = EIP1193QUANTITY | 'latest' | 'earliest' | 'pending' | 'safe' | 'finalized';
668
+
669
+ type EIP1898BlockTag =
670
+ | EIP1193QUANTITY
671
+ | 'latest'
672
+ | 'earliest'
673
+ | 'pending'
674
+ | 'safe'
675
+ | 'finalized'
676
+ | {blockHash: EIP1193QUANTITY; requireCanonical?: boolean} // EIP-1898
677
+ | {blockNumber: EIP1193QUANTITY}; // EIP-1898
678
+
679
+ type EIP1193QUANTITY = `0x${string}`;
680
+ type EIP1193ChainId = `0x${string}`;
681
+ type EIP1193Account = `0x${string}`;
682
+ type EIP1193Accounts = EIP1193Account[];
683
+
684
+ type Register = {};
685
+ type ResolvedRegister = {
686
+ /**
687
+ * TypeScript type to use for `address` values
688
+ * @default `0x${string}`
689
+ */
690
+ AddressType: Register extends {
691
+ AddressType: infer type;
692
+ } ? type : DefaultRegister['AddressType'];
693
+ /**
694
+ * TypeScript type to use for `int<M>` and `uint<M>` values, where `M > 48`
695
+ * @default bigint
696
+ */
697
+ BigIntType: Register extends {
698
+ BigIntType: infer type;
699
+ } ? type : DefaultRegister['BigIntType'];
700
+ /**
701
+ * TypeScript type to use for `bytes` values
702
+ * @default { inputs: `0x${string}`; outputs: `0x${string}`; }
703
+ */
704
+ BytesType: Register extends {
705
+ BytesType: infer type extends {
706
+ inputs: unknown;
707
+ outputs: unknown;
708
+ };
709
+ } ? type : DefaultRegister['BytesType'];
710
+ /**
711
+ * TypeScript type to use for `int<M>` and `uint<M>` values, where `M <= 48`
712
+ * @default number
713
+ */
714
+ IntType: Register extends {
715
+ IntType: infer type;
716
+ } ? type : DefaultRegister['IntType'];
717
+ /**
718
+ * Maximum depth for nested array types (e.g. string[][])
719
+ *
720
+ * Note: You probably only want to set this to a specific number if parsed types are returning as `unknown`
721
+ * and you want to figure out why. If you set this, you should probably also reduce `FixedArrayMaxLength`.
722
+ *
723
+ * @default false
724
+ */
725
+ ArrayMaxDepth: Register extends {
726
+ ArrayMaxDepth: infer type extends number | false;
727
+ } ? type : DefaultRegister['ArrayMaxDepth'];
728
+ /**
729
+ * Lower bound for fixed array length
730
+ * @default 1
731
+ */
732
+ FixedArrayMinLength: Register extends {
733
+ FixedArrayMinLength: infer type extends number;
734
+ } ? type : DefaultRegister['FixedArrayMinLength'];
735
+ /**
736
+ * Upper bound for fixed array length
737
+ * @default 99
738
+ */
739
+ FixedArrayMaxLength: Register extends {
740
+ FixedArrayMaxLength: infer type extends number;
741
+ } ? type : DefaultRegister['FixedArrayMaxLength'];
742
+ /**
743
+ * When set, validates {@link AbiParameter}'s `type` against {@link AbiType}
744
+ *
745
+ * Note: You probably only want to set this to `true` if parsed types are returning as `unknown`
746
+ * and you want to figure out why.
747
+ *
748
+ * @default false
749
+ */
750
+ StrictAbiType: Register extends {
751
+ StrictAbiType: infer type extends boolean;
752
+ } ? type : DefaultRegister['StrictAbiType'];
753
+ };
754
+ type DefaultRegister = {
755
+ /** Maximum depth for nested array types (e.g. string[][]) */
756
+ ArrayMaxDepth: false;
757
+ /** Lower bound for fixed array length */
758
+ FixedArrayMinLength: 1;
759
+ /** Upper bound for fixed array length */
760
+ FixedArrayMaxLength: 99;
761
+ /** TypeScript type to use for `address` values */
762
+ AddressType: `0x${string}`;
763
+ /** TypeScript type to use for `bytes` values */
764
+ BytesType: {
765
+ /** TypeScript type to use for `bytes` input values */
766
+ inputs: `0x${string}`;
767
+ /** TypeScript type to use for `bytes` output values */
768
+ outputs: `0x${string}`;
769
+ };
770
+ /** TypeScript type to use for `int<M>` and `uint<M>` values, where `M > 48` */
771
+ BigIntType: bigint;
772
+ /** TypeScript type to use for `int<M>` and `uint<M>` values, where `M <= 48` */
773
+ IntType: number;
774
+ /** When set, validates {@link AbiParameter}'s `type` against {@link AbiType} */
775
+ StrictAbiType: false;
776
+ };
777
+
778
+ /**
779
+ * Combines members of an intersection into a readable type.
780
+ *
781
+ * @link https://twitter.com/mattpocockuk/status/1622730173446557697?s=20&t=NdpAcmEFXY01xkqU3KO0Mg
782
+ * @example
783
+ * type Result = Pretty<{ a: string } | { b: string } | { c: number, d: bigint }>
784
+ * // ^? type Result = { a: string; b: string; c: number; d: bigint }
785
+ */
786
+ type Pretty<T> = {
787
+ [K in keyof T]: T[K];
788
+ } & unknown;
789
+ /**
790
+ * Creates range between two positive numbers using [tail recursion](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#tail-recursion-elimination-on-conditional-types).
791
+ *
792
+ * @param Start - Number to start range
793
+ * @param Stop - Number to end range
794
+ * @returns Array with inclusive range from {@link Start} to {@link Stop}
795
+ *
796
+ * @example
797
+ * type Result = Range<1, 3>
798
+ * // ^? type Result = [1, 2, 3]
799
+ */
800
+ type Range<Start extends number, Stop extends number, Result extends number[] = [], Padding extends 0[] = [], Current extends number = [...Padding, ...Result]['length'] & number> = Current extends Stop ? Current extends Start ? [Current] : Result extends [] ? [] : [...Result, Current] : Current extends Start ? Range<Start, Stop, [Current], Padding> : Result extends [] ? Range<Start, Stop, [], [...Padding, 0]> : Range<Start, Stop, [...Result, Current], Padding>;
801
+
802
+ type MBytes = '' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32;
803
+ type MBits = '' | 8 | 16 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 88 | 96 | 104 | 112 | 120 | 128 | 136 | 144 | 152 | 160 | 168 | 176 | 184 | 192 | 200 | 208 | 216 | 224 | 232 | 240 | 248 | 256;
804
+ type SolidityAddress = 'address';
805
+ type SolidityBool = 'bool';
806
+ type SolidityBytes = `bytes${MBytes}`;
807
+ type SolidityFunction = 'function';
808
+ type SolidityString = 'string';
809
+ type SolidityTuple = 'tuple';
810
+ type SolidityInt = `${'u' | ''}int${MBits}`;
811
+ type SolidityFixedArrayRange = Range<ResolvedRegister['FixedArrayMinLength'], ResolvedRegister['FixedArrayMaxLength']>[number];
812
+ /**
813
+ * Recursively build arrays up to maximum depth
814
+ * or use a more broad type when maximum depth is switched "off"
815
+ */
816
+ type _BuildArrayTypes<T extends string, Depth extends readonly number[] = []> = ResolvedRegister['ArrayMaxDepth'] extends false ? `${T}[${string}]` : Depth['length'] extends ResolvedRegister['ArrayMaxDepth'] ? T : T extends `${any}[${SolidityFixedArrayRange | ''}]` ? _BuildArrayTypes<T | `${T}[${SolidityFixedArrayRange | ''}]`, [...Depth, 1]> : _BuildArrayTypes<`${T}[${SolidityFixedArrayRange | ''}]`, [...Depth, 1]>;
817
+ type SolidityArrayWithoutTuple = _BuildArrayTypes<SolidityAddress | SolidityBool | SolidityBytes | SolidityFunction | SolidityInt | SolidityString>;
818
+ type SolidityArrayWithTuple = _BuildArrayTypes<SolidityTuple>;
819
+ type SolidityArray = SolidityArrayWithoutTuple | SolidityArrayWithTuple;
820
+ type AbiType = SolidityArray | SolidityAddress | SolidityBool | SolidityBytes | SolidityFunction | SolidityInt | SolidityString | SolidityTuple;
821
+ type ResolvedAbiType = ResolvedRegister['StrictAbiType'] extends true ? AbiType : string;
822
+ type AbiInternalType = ResolvedAbiType | `address ${string}` | `contract ${string}` | `enum ${string}` | `struct ${string}`;
823
+ type AbiParameter = Pretty<{
824
+ type: ResolvedAbiType;
825
+ name?: string | undefined;
826
+ /** Representation used by Solidity compiler */
827
+ internalType?: AbiInternalType | undefined;
828
+ } & ({
829
+ type: Exclude<ResolvedAbiType, SolidityTuple | SolidityArrayWithTuple>;
830
+ } | {
831
+ type: SolidityTuple | SolidityArrayWithTuple;
832
+ components: readonly AbiParameter[];
833
+ })>;
834
+ type AbiEventParameter = Pretty<AbiParameter & {
835
+ indexed?: boolean | undefined;
836
+ }>;
837
+ /**
838
+ * State mutability for {@link AbiFunction}
839
+ *
840
+ * @see https://docs.soliditylang.org/en/latest/contracts.html#state-mutability
841
+ */
842
+ type AbiStateMutability = 'pure' | 'view' | 'nonpayable' | 'payable';
843
+ /** ABI ["function"](https://docs.soliditylang.org/en/latest/abi-spec.html#json) type */
844
+ type AbiFunction = {
845
+ type: 'function';
846
+ /**
847
+ * @deprecated use `pure` or `view` from {@link AbiStateMutability} instead
848
+ * @see https://github.com/ethereum/solidity/issues/992
849
+ */
850
+ constant?: boolean | undefined;
851
+ /**
852
+ * @deprecated Vyper used to provide gas estimates
853
+ * @see https://github.com/vyperlang/vyper/issues/2151
854
+ */
855
+ gas?: number | undefined;
856
+ inputs: readonly AbiParameter[];
857
+ name: string;
858
+ outputs: readonly AbiParameter[];
859
+ /**
860
+ * @deprecated use `payable` or `nonpayable` from {@link AbiStateMutability} instead
861
+ * @see https://github.com/ethereum/solidity/issues/992
862
+ */
863
+ payable?: boolean | undefined;
864
+ stateMutability: AbiStateMutability;
865
+ };
866
+ /** ABI ["constructor"](https://docs.soliditylang.org/en/latest/abi-spec.html#json) type */
867
+ type AbiConstructor = {
868
+ type: 'constructor';
869
+ inputs: readonly AbiParameter[];
870
+ /**
871
+ * @deprecated use `payable` or `nonpayable` from {@link AbiStateMutability} instead
872
+ * @see https://github.com/ethereum/solidity/issues/992
873
+ */
874
+ payable?: boolean | undefined;
875
+ stateMutability: Extract<AbiStateMutability, 'payable' | 'nonpayable'>;
876
+ };
877
+ /** ABI ["fallback"](https://docs.soliditylang.org/en/latest/abi-spec.html#json) type */
878
+ type AbiFallback = {
879
+ type: 'fallback';
880
+ inputs?: readonly [] | undefined;
881
+ /**
882
+ * @deprecated use `payable` or `nonpayable` from {@link AbiStateMutability} instead
883
+ * @see https://github.com/ethereum/solidity/issues/992
884
+ */
885
+ payable?: boolean | undefined;
886
+ stateMutability: Extract<AbiStateMutability, 'payable' | 'nonpayable'>;
887
+ };
888
+ /** ABI ["receive"](https://docs.soliditylang.org/en/latest/contracts.html#receive-ether-function) type */
889
+ type AbiReceive = {
890
+ type: 'receive';
891
+ stateMutability: Extract<AbiStateMutability, 'payable'>;
892
+ };
893
+ /** ABI ["event"](https://docs.soliditylang.org/en/latest/abi-spec.html#events) type */
894
+ type AbiEvent = {
895
+ type: 'event';
896
+ anonymous?: boolean | undefined;
897
+ inputs: readonly AbiEventParameter[];
898
+ name: string;
899
+ };
900
+ /** ABI ["error"](https://docs.soliditylang.org/en/latest/abi-spec.html#errors) type */
901
+ type AbiError = {
902
+ type: 'error';
903
+ inputs: readonly AbiParameter[];
904
+ name: string;
905
+ };
906
+ /**
907
+ * Contract [ABI Specification](https://docs.soliditylang.org/en/latest/abi-spec.html#json)
908
+ */
909
+ type Abi = readonly (AbiConstructor | AbiError | AbiEvent | AbiFallback | AbiFunction | AbiReceive)[];
910
+
911
+ /**
912
+ * Infers embedded primitive type of any type
913
+ *
914
+ * @param T - Type to infer
915
+ * @returns Embedded type of {@link TType}
916
+ *
917
+ * @example
918
+ * type Result = Narrow<['foo', 'bar', 1]>
919
+ */
920
+ type Narrow<TType> = (unknown extends TType ? unknown : never) | (TType extends Function ? TType : never) | (TType extends bigint | boolean | number | string ? TType : never) | (TType extends [] ? [] : never) | {
921
+ [K in keyof TType]: Narrow<TType[K]>;
922
+ };
923
+
8
924
  type ProgressIndicator = {
9
925
  start(msg?: string): ProgressIndicator;
10
926
  stop(): ProgressIndicator;
@@ -421,8 +1337,8 @@ declare function mergeArtifacts(list: {
421
1337
  abi: Abi;
422
1338
  };
423
1339
  }[]): {
424
- mergedABI: (abitype.AbiConstructor | abitype.AbiError | abitype.AbiEvent | abitype.AbiFallback | abitype.AbiFunction | abitype.AbiReceive)[];
425
- added: Map<string, abitype.AbiConstructor | abitype.AbiError | abitype.AbiEvent | abitype.AbiFallback | abitype.AbiFunction | abitype.AbiReceive>;
1340
+ mergedABI: (AbiConstructor | AbiError | AbiEvent | AbiFallback | AbiFunction | AbiReceive)[];
1341
+ added: Map<string, AbiConstructor | AbiError | AbiEvent | AbiFallback | AbiFunction | AbiReceive>;
426
1342
  mergedDevDocs: CreateMutable<DevDoc>;
427
1343
  mergedUserDocs: CreateMutable<UserDoc>;
428
1344
  sigJSMap: Map<`0x${string}`, {
@@ -464,4 +1380,4 @@ type RoughEstimateGasPriceResult = {
464
1380
  declare function getGasPriceEstimate(provider: EIP1193ProviderWithoutEvents, options?: Partial<EstimateGasPriceOptions>): Promise<EstimateGasPriceResult>;
465
1381
  declare function getRoughGasPriceEstimate(provider: EIP1193ProviderWithoutEvents, options?: Partial<RoughEstimateGasPriceOptions>): Promise<RoughEstimateGasPriceResult>;
466
1382
 
467
- export { type AccountDefinition, type AccountType, type Artifact, type ChainType, type Config, type ConfigOptions, type Context, type CreationGasEstimate, type DeployScriptFunction, type DeployScriptModule, type Deployment, type DeploymentConstruction, type DevDoc, type DevErrorDoc, type DevEventDoc, type DevMethodDoc, type Environment, type EstimateGasPriceOptions, type EstimateGasPriceResult, type GasEstimate, type GasEstimates, type GasPrice, type Libraries, type NamedSigner, type NetworkConfig, type NoticeUserDoc, type PartialDeployment, type PendingDeployment, type PendingExecution, type PendingTransaction, type ProvidedContext, type ResolvedAccount, type ResolvedConfig, type ResolvedNamedAccounts, type ResolvedNamedSigners, type RoughEstimateGasPriceOptions, type RoughEstimateGasPriceResult, type ScriptCallback, type Storage, type StorageLayout, type TypeDef, type UnknownArtifacts, type UnknownDeployments, type UnknownDeploymentsAcrossNetworks, type UnknownNamedAccounts, type UnresolvedUnknownNamedAccounts, type UserDoc, chainById, chainTypes, execute, executeDeployScripts, extendEnvironment, getChain, getGasPriceEstimate, getRoughGasPriceEstimate, handleSignerProtocol, loadAndExecuteDeployments, loadDeployments, loadEnvironment, mergeArtifacts, readAndResolveConfig, readConfig, resolveConfig };
1383
+ export { type Abi, type AbiConstructor, type AbiError, type AbiEvent, type AbiFallback, type AbiFunction, type AbiReceive, type AccountDefinition, type AccountType, type Artifact, type ChainType, type Config, type ConfigOptions, type Context, type CreationGasEstimate, type DeployScriptFunction, type DeployScriptModule, type Deployment, type DeploymentConstruction, type DevDoc, type DevErrorDoc, type DevEventDoc, type DevMethodDoc, type Environment, type EstimateGasPriceOptions, type EstimateGasPriceResult, type GasEstimate, type GasEstimates, type GasPrice, type Libraries, type NamedSigner, type NetworkConfig, type NoticeUserDoc, type PartialDeployment, type PendingDeployment, type PendingExecution, type PendingTransaction, type ProvidedContext, type ResolvedAccount, type ResolvedConfig, type ResolvedNamedAccounts, type ResolvedNamedSigners, type RoughEstimateGasPriceOptions, type RoughEstimateGasPriceResult, type ScriptCallback, type Storage, type StorageLayout, type TypeDef, type UnknownArtifacts, type UnknownDeployments, type UnknownDeploymentsAcrossNetworks, type UnknownNamedAccounts, type UnresolvedUnknownNamedAccounts, type UserDoc, chainById, chainTypes, execute, executeDeployScripts, extendEnvironment, getChain, getGasPriceEstimate, getRoughGasPriceEstimate, handleSignerProtocol, loadAndExecuteDeployments, loadDeployments, loadEnvironment, mergeArtifacts, readAndResolveConfig, readConfig, resolveConfig };