rocketh 0.10.15 → 0.10.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/esm/cli.d.ts +3 -0
- package/dist/esm/cli.d.ts.map +1 -0
- package/dist/esm/cli.js +31 -0
- package/dist/esm/cli.js.map +1 -0
- package/dist/esm/environment/deployments.d.ts +11 -0
- package/dist/esm/environment/deployments.d.ts.map +1 -0
- package/dist/esm/environment/deployments.js +90 -0
- package/dist/esm/environment/deployments.js.map +1 -0
- package/dist/esm/environment/index.d.ts +15 -0
- package/dist/esm/environment/index.d.ts.map +1 -0
- package/dist/esm/environment/index.js +566 -0
- package/dist/esm/environment/index.js.map +1 -0
- package/dist/esm/environment/providers/BaseProvider.d.ts +53 -0
- package/dist/esm/environment/providers/BaseProvider.d.ts.map +1 -0
- package/dist/esm/environment/providers/BaseProvider.js +10 -0
- package/dist/esm/environment/providers/BaseProvider.js.map +1 -0
- package/dist/esm/environment/providers/TransactionHashTracker.d.ts +8 -0
- package/dist/esm/environment/providers/TransactionHashTracker.d.ts.map +1 -0
- package/dist/esm/environment/providers/TransactionHashTracker.js +22 -0
- package/dist/esm/environment/providers/TransactionHashTracker.js.map +1 -0
- package/dist/esm/environment/types.d.ts +294 -0
- package/dist/esm/environment/types.d.ts.map +1 -0
- package/dist/esm/environment/types.js +2 -0
- package/dist/esm/environment/types.js.map +1 -0
- package/dist/esm/environment/utils/artifacts.d.ts +23 -0
- package/dist/esm/environment/utils/artifacts.d.ts.map +1 -0
- package/dist/esm/environment/utils/artifacts.js +142 -0
- package/dist/esm/environment/utils/artifacts.js.map +1 -0
- package/dist/esm/environment/utils/chains.d.ts +10 -0
- package/dist/esm/environment/utils/chains.d.ts.map +1 -0
- package/dist/esm/environment/utils/chains.js +55 -0
- package/dist/esm/environment/utils/chains.js.map +1 -0
- package/dist/esm/executor/index.d.ts +28 -0
- package/dist/esm/executor/index.d.ts.map +1 -0
- package/dist/esm/executor/index.js +354 -0
- package/dist/esm/executor/index.js.map +1 -0
- package/dist/esm/executor/types.d.ts +17 -0
- package/dist/esm/executor/types.d.ts.map +1 -0
- package/dist/esm/executor/types.js +2 -0
- package/dist/esm/executor/types.js.map +1 -0
- package/dist/esm/index.d.ts +9 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/internal/logging.d.ts +11 -0
- package/dist/esm/internal/logging.d.ts.map +1 -0
- package/dist/esm/internal/logging.js +71 -0
- package/dist/esm/internal/logging.js.map +1 -0
- package/dist/esm/internal/types.d.ts +5 -0
- package/dist/esm/internal/types.d.ts.map +1 -0
- package/dist/esm/internal/types.js +2 -0
- package/dist/esm/internal/types.js.map +1 -0
- package/dist/esm/utils/eth.d.ts +24 -0
- package/dist/esm/utils/eth.d.ts.map +1 -0
- package/dist/esm/utils/eth.js +62 -0
- package/dist/esm/utils/eth.js.map +1 -0
- package/dist/esm/utils/fs.d.ts +16 -0
- package/dist/esm/utils/fs.d.ts.map +1 -0
- package/dist/esm/utils/fs.js +52 -0
- package/dist/esm/utils/fs.js.map +1 -0
- package/dist/esm/utils/json.d.ts +5 -0
- package/dist/esm/utils/json.d.ts.map +1 -0
- package/dist/esm/utils/json.js +22 -0
- package/dist/esm/utils/json.js.map +1 -0
- package/package.json +11 -16
- package/src/cli.ts +2 -2
- package/src/environment/deployments.ts +2 -2
- package/src/environment/index.ts +10 -10
- package/src/environment/providers/TransactionHashTracker.ts +1 -1
- package/src/environment/types.ts +2 -2
- package/src/environment/utils/artifacts.ts +1 -1
- package/src/executor/index.ts +8 -14
- package/src/executor/types.ts +1 -1
- package/src/index.ts +8 -8
- package/tsconfig.json +13 -10
- package/dist/cli.cjs +0 -100
- package/dist/cli.cjs.map +0 -1
- package/dist/cli.mjs +0 -97
- package/dist/cli.mjs.map +0 -1
- package/dist/index-CqGGHs42.cjs +0 -1317
- package/dist/index-CqGGHs42.cjs.map +0 -1
- package/dist/index-DESow-6-.mjs +0 -1299
- package/dist/index-DESow-6-.mjs.map +0 -1
- package/dist/index.cjs +0 -33
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts +0 -1442
- package/dist/index.mjs +0 -12
- package/dist/index.mjs.map +0 -1
package/dist/index.d.ts
DELETED
|
@@ -1,1442 +0,0 @@
|
|
|
1
|
-
import { Chain, Address, DeployContractParameters } from 'viem';
|
|
2
|
-
import { Chain as Chain$1 } from 'viem/chains';
|
|
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
|
-
interface Register {
|
|
685
|
-
}
|
|
686
|
-
type ResolvedRegister = {
|
|
687
|
-
/**
|
|
688
|
-
* TypeScript type to use for `address` values
|
|
689
|
-
* @default `0x${string}`
|
|
690
|
-
*/
|
|
691
|
-
addressType: Register extends {
|
|
692
|
-
addressType: infer type;
|
|
693
|
-
} ? type : Register extends {
|
|
694
|
-
AddressType: infer type;
|
|
695
|
-
} ? type : DefaultRegister['addressType'];
|
|
696
|
-
/**
|
|
697
|
-
* TypeScript type to use for `int<M>` and `uint<M>` values, where `M > 48`
|
|
698
|
-
* @default bigint
|
|
699
|
-
*/
|
|
700
|
-
bigIntType: Register extends {
|
|
701
|
-
bigIntType: infer type;
|
|
702
|
-
} ? type : Register extends {
|
|
703
|
-
BigIntType: infer type;
|
|
704
|
-
} ? type : DefaultRegister['bigIntType'];
|
|
705
|
-
/**
|
|
706
|
-
* TypeScript type to use for `bytes` values
|
|
707
|
-
* @default { inputs: `0x${string}`; outputs: `0x${string}`; }
|
|
708
|
-
*/
|
|
709
|
-
bytesType: Register extends {
|
|
710
|
-
bytesType: infer type extends {
|
|
711
|
-
inputs: unknown;
|
|
712
|
-
outputs: unknown;
|
|
713
|
-
};
|
|
714
|
-
} ? type : Register extends {
|
|
715
|
-
BytesType: infer type extends {
|
|
716
|
-
inputs: unknown;
|
|
717
|
-
outputs: unknown;
|
|
718
|
-
};
|
|
719
|
-
} ? type : DefaultRegister['bytesType'];
|
|
720
|
-
/**
|
|
721
|
-
* TypeScript type to use for `int<M>` and `uint<M>` values, where `M <= 48`
|
|
722
|
-
* @default number
|
|
723
|
-
*/
|
|
724
|
-
intType: Register extends {
|
|
725
|
-
intType: infer type;
|
|
726
|
-
} ? type : Register extends {
|
|
727
|
-
IntType: infer type;
|
|
728
|
-
} ? type : DefaultRegister['intType'];
|
|
729
|
-
/**
|
|
730
|
-
* Maximum depth for nested array types (e.g. string[][])
|
|
731
|
-
*
|
|
732
|
-
* Note: You probably only want to set this to a specific number if parsed types are returning as `unknown`
|
|
733
|
-
* and you want to figure out why. If you set this, you should probably also reduce `FixedArrayMaxLength`.
|
|
734
|
-
*
|
|
735
|
-
* @default false
|
|
736
|
-
*/
|
|
737
|
-
arrayMaxDepth: Register extends {
|
|
738
|
-
arrayMaxDepth: infer type extends number | false;
|
|
739
|
-
} ? type : Register extends {
|
|
740
|
-
ArrayMaxDepth: infer type extends number | false;
|
|
741
|
-
} ? type : DefaultRegister['arrayMaxDepth'];
|
|
742
|
-
/**
|
|
743
|
-
* Lower bound for fixed array length
|
|
744
|
-
* @default 1
|
|
745
|
-
*/
|
|
746
|
-
fixedArrayMinLength: Register extends {
|
|
747
|
-
fixedArrayMinLength: infer type extends number;
|
|
748
|
-
} ? type : Register extends {
|
|
749
|
-
FixedArrayMinLength: infer type extends number;
|
|
750
|
-
} ? type : DefaultRegister['fixedArrayMinLength'];
|
|
751
|
-
/**
|
|
752
|
-
* Upper bound for fixed array length
|
|
753
|
-
* @default 99
|
|
754
|
-
*/
|
|
755
|
-
fixedArrayMaxLength: Register extends {
|
|
756
|
-
fixedArrayMaxLength: infer type extends number;
|
|
757
|
-
} ? type : Register extends {
|
|
758
|
-
FixedArrayMaxLength: infer type extends number;
|
|
759
|
-
} ? type : DefaultRegister['fixedArrayMaxLength'];
|
|
760
|
-
/**
|
|
761
|
-
* When set, validates {@link AbiParameter}'s `type` against {@link AbiType}
|
|
762
|
-
*
|
|
763
|
-
* Note: You probably only want to set this to `true` if parsed types are returning as `unknown`
|
|
764
|
-
* and you want to figure out why.
|
|
765
|
-
*
|
|
766
|
-
* @default false
|
|
767
|
-
*/
|
|
768
|
-
strictAbiType: Register extends {
|
|
769
|
-
strictAbiType: infer type extends boolean;
|
|
770
|
-
} ? type : Register extends {
|
|
771
|
-
StrictAbiType: infer type extends boolean;
|
|
772
|
-
} ? type : DefaultRegister['strictAbiType'];
|
|
773
|
-
/** @deprecated Use `addressType` instead */
|
|
774
|
-
AddressType: ResolvedRegister['addressType'];
|
|
775
|
-
/** @deprecated Use `addressType` instead */
|
|
776
|
-
BigIntType: ResolvedRegister['bigIntType'];
|
|
777
|
-
/** @deprecated Use `bytesType` instead */
|
|
778
|
-
BytesType: ResolvedRegister['bytesType'];
|
|
779
|
-
/** @deprecated Use `intType` instead */
|
|
780
|
-
IntType: ResolvedRegister['intType'];
|
|
781
|
-
/** @deprecated Use `arrayMaxDepth` instead */
|
|
782
|
-
ArrayMaxDepth: ResolvedRegister['arrayMaxDepth'];
|
|
783
|
-
/** @deprecated Use `fixedArrayMinLength` instead */
|
|
784
|
-
FixedArrayMinLength: ResolvedRegister['fixedArrayMinLength'];
|
|
785
|
-
/** @deprecated Use `fixedArrayMaxLength` instead */
|
|
786
|
-
FixedArrayMaxLength: ResolvedRegister['fixedArrayMaxLength'];
|
|
787
|
-
/** @deprecated Use `strictAbiType` instead */
|
|
788
|
-
StrictAbiType: ResolvedRegister['strictAbiType'];
|
|
789
|
-
};
|
|
790
|
-
type DefaultRegister = {
|
|
791
|
-
/** Maximum depth for nested array types (e.g. string[][]) */
|
|
792
|
-
arrayMaxDepth: false;
|
|
793
|
-
/** Lower bound for fixed array length */
|
|
794
|
-
fixedArrayMinLength: 1;
|
|
795
|
-
/** Upper bound for fixed array length */
|
|
796
|
-
fixedArrayMaxLength: 99;
|
|
797
|
-
/** TypeScript type to use for `address` values */
|
|
798
|
-
addressType: `0x${string}`;
|
|
799
|
-
/** TypeScript type to use for `bytes` values */
|
|
800
|
-
bytesType: {
|
|
801
|
-
/** TypeScript type to use for `bytes` input values */
|
|
802
|
-
inputs: `0x${string}`;
|
|
803
|
-
/** TypeScript type to use for `bytes` output values */
|
|
804
|
-
outputs: `0x${string}`;
|
|
805
|
-
};
|
|
806
|
-
/** TypeScript type to use for `int<M>` and `uint<M>` values, where `M > 48` */
|
|
807
|
-
bigIntType: bigint;
|
|
808
|
-
/** TypeScript type to use for `int<M>` and `uint<M>` values, where `M <= 48` */
|
|
809
|
-
intType: number;
|
|
810
|
-
/** When set, validates {@link AbiParameter}'s `type` against {@link AbiType} */
|
|
811
|
-
strictAbiType: false;
|
|
812
|
-
/** @deprecated Use `arrayMaxDepth` instead */
|
|
813
|
-
ArrayMaxDepth: DefaultRegister['arrayMaxDepth'];
|
|
814
|
-
/** @deprecated Use `fixedArrayMinLength` instead */
|
|
815
|
-
FixedArrayMinLength: DefaultRegister['fixedArrayMinLength'];
|
|
816
|
-
/** @deprecated Use `fixedArrayMaxLength` instead */
|
|
817
|
-
FixedArrayMaxLength: DefaultRegister['fixedArrayMaxLength'];
|
|
818
|
-
/** @deprecated Use `addressType` instead */
|
|
819
|
-
AddressType: DefaultRegister['addressType'];
|
|
820
|
-
/** @deprecated Use `bytesType` instead */
|
|
821
|
-
BytesType: {
|
|
822
|
-
inputs: DefaultRegister['bytesType']['inputs'];
|
|
823
|
-
outputs: DefaultRegister['bytesType']['outputs'];
|
|
824
|
-
};
|
|
825
|
-
/** @deprecated Use `bigIntType` instead */
|
|
826
|
-
BigIntType: DefaultRegister['bigIntType'];
|
|
827
|
-
/** @deprecated Use `intType` instead */
|
|
828
|
-
IntType: DefaultRegister['intType'];
|
|
829
|
-
/** @deprecated Use `strictAbiType` instead */
|
|
830
|
-
StrictAbiType: DefaultRegister['strictAbiType'];
|
|
831
|
-
};
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* Combines members of an intersection into a readable type.
|
|
835
|
-
*
|
|
836
|
-
* @link https://twitter.com/mattpocockuk/status/1622730173446557697?s=20&t=NdpAcmEFXY01xkqU3KO0Mg
|
|
837
|
-
* @example
|
|
838
|
-
* type Result = Pretty<{ a: string } | { b: string } | { c: number, d: bigint }>
|
|
839
|
-
* // ^? type Result = { a: string; b: string; c: number; d: bigint }
|
|
840
|
-
*/
|
|
841
|
-
type Pretty<type> = {
|
|
842
|
-
[key in keyof type]: type[key];
|
|
843
|
-
} & unknown;
|
|
844
|
-
/**
|
|
845
|
-
* 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).
|
|
846
|
-
*
|
|
847
|
-
* @param start - Number to start range
|
|
848
|
-
* @param stop - Number to end range
|
|
849
|
-
* @returns Array with inclusive range from {@link start} to {@link stop}
|
|
850
|
-
*
|
|
851
|
-
* @example
|
|
852
|
-
* type Result = Range<1, 3>
|
|
853
|
-
* // ^? type Result = [1, 2, 3]
|
|
854
|
-
*/
|
|
855
|
-
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>;
|
|
856
|
-
|
|
857
|
-
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;
|
|
858
|
-
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;
|
|
859
|
-
type SolidityAddress = 'address';
|
|
860
|
-
type SolidityBool = 'bool';
|
|
861
|
-
type SolidityBytes = `bytes${MBytes}`;
|
|
862
|
-
type SolidityFunction = 'function';
|
|
863
|
-
type SolidityString = 'string';
|
|
864
|
-
type SolidityTuple = 'tuple';
|
|
865
|
-
type SolidityInt = `${'u' | ''}int${MBits}`;
|
|
866
|
-
type SolidityFixedArrayRange = Range<ResolvedRegister['fixedArrayMinLength'], ResolvedRegister['fixedArrayMaxLength']>[number];
|
|
867
|
-
/**
|
|
868
|
-
* Recursively build arrays up to maximum depth
|
|
869
|
-
* or use a more broad type when maximum depth is switched "off"
|
|
870
|
-
*/
|
|
871
|
-
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 | ''}]`, [
|
|
872
|
-
...Depth,
|
|
873
|
-
1
|
|
874
|
-
]> : _BuildArrayTypes<`${T}[${SolidityFixedArrayRange | ''}]`, [...Depth, 1]>;
|
|
875
|
-
type SolidityArrayWithoutTuple = _BuildArrayTypes<SolidityAddress | SolidityBool | SolidityBytes | SolidityFunction | SolidityInt | SolidityString>;
|
|
876
|
-
type SolidityArrayWithTuple = _BuildArrayTypes<SolidityTuple>;
|
|
877
|
-
type SolidityArray = SolidityArrayWithoutTuple | SolidityArrayWithTuple;
|
|
878
|
-
type AbiType = SolidityArray | SolidityAddress | SolidityBool | SolidityBytes | SolidityFunction | SolidityInt | SolidityString | SolidityTuple;
|
|
879
|
-
type ResolvedAbiType = ResolvedRegister['strictAbiType'] extends true ? AbiType : string;
|
|
880
|
-
type AbiInternalType = ResolvedAbiType | `address ${string}` | `contract ${string}` | `enum ${string}` | `struct ${string}`;
|
|
881
|
-
type AbiParameter = Pretty<{
|
|
882
|
-
type: ResolvedAbiType;
|
|
883
|
-
name?: string | undefined;
|
|
884
|
-
/** Representation used by Solidity compiler */
|
|
885
|
-
internalType?: AbiInternalType | undefined;
|
|
886
|
-
} & ({
|
|
887
|
-
type: Exclude<ResolvedAbiType, SolidityTuple | SolidityArrayWithTuple>;
|
|
888
|
-
} | {
|
|
889
|
-
type: SolidityTuple | SolidityArrayWithTuple;
|
|
890
|
-
components: readonly AbiParameter[];
|
|
891
|
-
})>;
|
|
892
|
-
type AbiEventParameter = AbiParameter & {
|
|
893
|
-
indexed?: boolean | undefined;
|
|
894
|
-
};
|
|
895
|
-
/**
|
|
896
|
-
* State mutability for {@link AbiFunction}
|
|
897
|
-
*
|
|
898
|
-
* @see https://docs.soliditylang.org/en/latest/contracts.html#state-mutability
|
|
899
|
-
*/
|
|
900
|
-
type AbiStateMutability = 'pure' | 'view' | 'nonpayable' | 'payable';
|
|
901
|
-
/** ABI ["function"](https://docs.soliditylang.org/en/latest/abi-spec.html#json) type */
|
|
902
|
-
type AbiFunction = {
|
|
903
|
-
type: 'function';
|
|
904
|
-
/**
|
|
905
|
-
* @deprecated use `pure` or `view` from {@link AbiStateMutability} instead
|
|
906
|
-
* @see https://github.com/ethereum/solidity/issues/992
|
|
907
|
-
*/
|
|
908
|
-
constant?: boolean | undefined;
|
|
909
|
-
/**
|
|
910
|
-
* @deprecated Vyper used to provide gas estimates
|
|
911
|
-
* @see https://github.com/vyperlang/vyper/issues/2151
|
|
912
|
-
*/
|
|
913
|
-
gas?: number | undefined;
|
|
914
|
-
inputs: readonly AbiParameter[];
|
|
915
|
-
name: string;
|
|
916
|
-
outputs: readonly AbiParameter[];
|
|
917
|
-
/**
|
|
918
|
-
* @deprecated use `payable` or `nonpayable` from {@link AbiStateMutability} instead
|
|
919
|
-
* @see https://github.com/ethereum/solidity/issues/992
|
|
920
|
-
*/
|
|
921
|
-
payable?: boolean | undefined;
|
|
922
|
-
stateMutability: AbiStateMutability;
|
|
923
|
-
};
|
|
924
|
-
/** ABI ["constructor"](https://docs.soliditylang.org/en/latest/abi-spec.html#json) type */
|
|
925
|
-
type AbiConstructor = {
|
|
926
|
-
type: 'constructor';
|
|
927
|
-
inputs: readonly AbiParameter[];
|
|
928
|
-
/**
|
|
929
|
-
* @deprecated use `payable` or `nonpayable` from {@link AbiStateMutability} instead
|
|
930
|
-
* @see https://github.com/ethereum/solidity/issues/992
|
|
931
|
-
*/
|
|
932
|
-
payable?: boolean | undefined;
|
|
933
|
-
stateMutability: Extract<AbiStateMutability, 'payable' | 'nonpayable'>;
|
|
934
|
-
};
|
|
935
|
-
/** ABI ["fallback"](https://docs.soliditylang.org/en/latest/abi-spec.html#json) type */
|
|
936
|
-
type AbiFallback = {
|
|
937
|
-
type: 'fallback';
|
|
938
|
-
inputs?: readonly [] | undefined;
|
|
939
|
-
/**
|
|
940
|
-
* @deprecated use `payable` or `nonpayable` from {@link AbiStateMutability} instead
|
|
941
|
-
* @see https://github.com/ethereum/solidity/issues/992
|
|
942
|
-
*/
|
|
943
|
-
payable?: boolean | undefined;
|
|
944
|
-
stateMutability: Extract<AbiStateMutability, 'payable' | 'nonpayable'>;
|
|
945
|
-
};
|
|
946
|
-
/** ABI ["receive"](https://docs.soliditylang.org/en/latest/contracts.html#receive-ether-function) type */
|
|
947
|
-
type AbiReceive = {
|
|
948
|
-
type: 'receive';
|
|
949
|
-
stateMutability: Extract<AbiStateMutability, 'payable'>;
|
|
950
|
-
};
|
|
951
|
-
/** ABI ["event"](https://docs.soliditylang.org/en/latest/abi-spec.html#events) type */
|
|
952
|
-
type AbiEvent = {
|
|
953
|
-
type: 'event';
|
|
954
|
-
anonymous?: boolean | undefined;
|
|
955
|
-
inputs: readonly AbiEventParameter[];
|
|
956
|
-
name: string;
|
|
957
|
-
};
|
|
958
|
-
/** ABI ["error"](https://docs.soliditylang.org/en/latest/abi-spec.html#errors) type */
|
|
959
|
-
type AbiError = {
|
|
960
|
-
type: 'error';
|
|
961
|
-
inputs: readonly AbiParameter[];
|
|
962
|
-
name: string;
|
|
963
|
-
};
|
|
964
|
-
/**
|
|
965
|
-
* Contract [ABI Specification](https://docs.soliditylang.org/en/latest/abi-spec.html#json)
|
|
966
|
-
*/
|
|
967
|
-
type Abi = readonly (AbiConstructor | AbiError | AbiEvent | AbiFallback | AbiFunction | AbiReceive)[];
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* Infers embedded primitive type of any type
|
|
971
|
-
*
|
|
972
|
-
* @param T - Type to infer
|
|
973
|
-
* @returns Embedded type of {@link type}
|
|
974
|
-
*
|
|
975
|
-
* @example
|
|
976
|
-
* type Result = Narrow<['foo', 'bar', 1]>
|
|
977
|
-
*/
|
|
978
|
-
type Narrow<type> = (unknown extends type ? unknown : never) | (type extends Function ? type : never) | (type extends bigint | boolean | number | string ? type : never) | (type extends [] ? [] : never) | {
|
|
979
|
-
[K in keyof type]: Narrow<type[K]>;
|
|
980
|
-
};
|
|
981
|
-
|
|
982
|
-
type ProgressIndicator = {
|
|
983
|
-
start(msg?: string): ProgressIndicator;
|
|
984
|
-
stop(): ProgressIndicator;
|
|
985
|
-
succeed(msg?: string): ProgressIndicator;
|
|
986
|
-
fail(msg?: string): ProgressIndicator;
|
|
987
|
-
};
|
|
988
|
-
|
|
989
|
-
declare abstract class BaseProvider implements EIP1193ProviderWithoutEvents {
|
|
990
|
-
protected provider: EIP1193GenericRequestProvider;
|
|
991
|
-
constructor(provider: EIP1193GenericRequestProvider);
|
|
992
|
-
request(args: EIP1193Web3ClientVersionRequest): Promise<string>;
|
|
993
|
-
request(args: EIP1193Web3SHARequest): Promise<`0x${string}`>;
|
|
994
|
-
request(args: EIP1193NetVersionRequest): Promise<`0x${string}`>;
|
|
995
|
-
request(args: EIP1193NetListeningRequest): Promise<boolean>;
|
|
996
|
-
request(args: EIP1193NetPeerCountRequest): Promise<`0x${string}`>;
|
|
997
|
-
request(args: EIP1193ProtocolVersionRequest): Promise<string>;
|
|
998
|
-
request(args: EIP1193SyncingRequest): Promise<false | EIP1193SyncingStatus>;
|
|
999
|
-
request(args: EIP1193CoinbaseRequest): Promise<`0x${string}`>;
|
|
1000
|
-
request(args: EIP1193GasPriceRequest): Promise<`0x${string}`>;
|
|
1001
|
-
request(args: EIP1193AccountsRequest): Promise<EIP1193Accounts>;
|
|
1002
|
-
request(args: EIP1193BlockNumberRequest): Promise<`0x${string}`>;
|
|
1003
|
-
request(args: EIP1193GetBalanceRequest): Promise<`0x${string}`>;
|
|
1004
|
-
request(args: EIP1193GetStorageAtRequest): Promise<`0x${string}`>;
|
|
1005
|
-
request(args: EIP1193GetTransactionCountRequest): Promise<`0x${string}`>;
|
|
1006
|
-
request(args: EIP1193GetTransactionCountByHashRequest): Promise<`0x${string}`>;
|
|
1007
|
-
request(args: EIP1193GetTransactionCountByNumberRequest): Promise<`0x${string}`>;
|
|
1008
|
-
request(args: EIP1193GetUncleCountByBlockHashRequest): Promise<`0x${string}`>;
|
|
1009
|
-
request(args: EIP1193GetUncleCountByBlockNumberRequest): Promise<`0x${string}`>;
|
|
1010
|
-
request(args: EIP1193GetCodeRequest): Promise<`0x${string}`>;
|
|
1011
|
-
request(args: EIP1193LegacySignRequest): Promise<`0x${string}`>;
|
|
1012
|
-
request(args: EIP1193SignTransactionRequest): Promise<`0x${string}`>;
|
|
1013
|
-
request(args: EIP1193SendTransactionRequest): Promise<`0x${string}`>;
|
|
1014
|
-
request(args: EIP1193SendRawTransactionRequest): Promise<`0x${string}`>;
|
|
1015
|
-
request(args: EIP1193CallRequest): Promise<`0x${string}`>;
|
|
1016
|
-
request(args: EIP1193EstimateGasRequest): Promise<`0x${string}`>;
|
|
1017
|
-
request(args: EIP1193GetBlockByHashRequest<false>): Promise<EIP1193Block | null>;
|
|
1018
|
-
request(args: EIP1193GetBlockByHashRequest<true>): Promise<EIP1193BlockWithTransactions | null>;
|
|
1019
|
-
request(args: EIP1193GetBlockByNumberRequest<false>): Promise<EIP1193Block | null>;
|
|
1020
|
-
request(args: EIP1193GetBlockByNumberRequest<true>): Promise<EIP1193BlockWithTransactions | null>;
|
|
1021
|
-
request(args: EIP1193GetTransactionByHashRequest): Promise<EIP1193Transaction | null>;
|
|
1022
|
-
request(args: EIP1193GetTransactionByBlockHashAndIndexRequest): Promise<EIP1193Transaction | null>;
|
|
1023
|
-
request(args: EIP1193GetTransactionByBlockNumberAndIndexRequest): Promise<EIP1193Transaction | null>;
|
|
1024
|
-
request(args: EIP1193GetTransactionReceiptRequest): Promise<EIP1193TransactionReceipt | null>;
|
|
1025
|
-
request(args: EIP1193GetUncleByBlockHashAndIndexRequest): Promise<EIP1193Block | null>;
|
|
1026
|
-
request(args: EIP1193GetUncleByBlockNumberAndIndexRequest): Promise<EIP1193Block | null>;
|
|
1027
|
-
request(args: EIP1193GetLogsRequest): Promise<EIP1193Log[]>;
|
|
1028
|
-
request(args: EIP1193PersonalSignRequest): Promise<`0x${string}`>;
|
|
1029
|
-
request(args: EIP1193PTypedSignv4Request): Promise<`0x${string}`>;
|
|
1030
|
-
request(args: EIP1193PTypedSignRequest): Promise<`0x${string}`>;
|
|
1031
|
-
request(args: EIP1193ChainIdRequest): Promise<`0x${string}`>;
|
|
1032
|
-
request(args: EIP1193RequestAccountsRequest): Promise<EIP1193Accounts>;
|
|
1033
|
-
request(args: ERIP1193SwitchChainRequest): Promise<EIP1193SwitchChainError | null>;
|
|
1034
|
-
request(args: ERIP1193AddChainRequest): Promise<EIP1193AddChainError | null>;
|
|
1035
|
-
request(args: EIP1193SubscribeRequest): Promise<string>;
|
|
1036
|
-
request(args: EIP1193UnsubscribeRequest): Promise<boolean>;
|
|
1037
|
-
request<T = unknown, V extends EIP1193GenericRequest = EIP1193GenericRequest>(args: V): Promise<T>;
|
|
1038
|
-
protected abstract _request<T = unknown, V extends EIP1193GenericRequest = EIP1193GenericRequest>(args: V): Promise<T>;
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
declare class TransactionHashTracker extends BaseProvider {
|
|
1042
|
-
transactionHashes: `0x${string}`[];
|
|
1043
|
-
constructor(provider: EIP1193GenericRequestProvider);
|
|
1044
|
-
protected _request<T = unknown, V extends EIP1193GenericRequest = EIP1193GenericRequest>(args: V): Promise<T>;
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
type Libraries = {
|
|
1048
|
-
readonly [libraryName: string]: EIP1193Account;
|
|
1049
|
-
};
|
|
1050
|
-
type GasEstimate = 'infinite' | `${number}`;
|
|
1051
|
-
type CreationGasEstimate = {
|
|
1052
|
-
readonly codeDepositCost: GasEstimate;
|
|
1053
|
-
readonly executionCost: GasEstimate;
|
|
1054
|
-
readonly totalCost: GasEstimate;
|
|
1055
|
-
};
|
|
1056
|
-
type GasEstimates = {
|
|
1057
|
-
readonly creation?: CreationGasEstimate;
|
|
1058
|
-
readonly external?: {
|
|
1059
|
-
readonly [signature: string]: GasEstimate;
|
|
1060
|
-
};
|
|
1061
|
-
readonly internal?: {
|
|
1062
|
-
readonly [signature: string]: GasEstimate;
|
|
1063
|
-
};
|
|
1064
|
-
};
|
|
1065
|
-
type Storage = {
|
|
1066
|
-
readonly astId: number;
|
|
1067
|
-
readonly contract: string;
|
|
1068
|
-
readonly label: string;
|
|
1069
|
-
readonly offset: number;
|
|
1070
|
-
readonly slot: `${number}`;
|
|
1071
|
-
readonly type: string;
|
|
1072
|
-
};
|
|
1073
|
-
type TypeDef = {
|
|
1074
|
-
readonly encoding: 'inplace' | string;
|
|
1075
|
-
readonly label: 'address' | 'byte24' | string;
|
|
1076
|
-
readonly numberOfBytes: `${number}`;
|
|
1077
|
-
readonly key?: string;
|
|
1078
|
-
readonly value?: string;
|
|
1079
|
-
readonly members?: readonly Storage[];
|
|
1080
|
-
};
|
|
1081
|
-
type DevEventDoc = {
|
|
1082
|
-
readonly details?: string;
|
|
1083
|
-
readonly params?: {
|
|
1084
|
-
readonly [name: string]: string;
|
|
1085
|
-
};
|
|
1086
|
-
};
|
|
1087
|
-
type DevErrorDoc = {
|
|
1088
|
-
readonly details?: string;
|
|
1089
|
-
readonly params?: {
|
|
1090
|
-
readonly [name: string]: string;
|
|
1091
|
-
};
|
|
1092
|
-
};
|
|
1093
|
-
type DevMethodDoc = {
|
|
1094
|
-
readonly details?: string;
|
|
1095
|
-
readonly params?: {
|
|
1096
|
-
readonly [name: string]: string;
|
|
1097
|
-
};
|
|
1098
|
-
readonly returns?: {
|
|
1099
|
-
readonly [key: string | `_${number}`]: string;
|
|
1100
|
-
};
|
|
1101
|
-
};
|
|
1102
|
-
type NoticeUserDoc = {
|
|
1103
|
-
readonly notice?: string;
|
|
1104
|
-
};
|
|
1105
|
-
type DevDoc = {
|
|
1106
|
-
readonly events?: {
|
|
1107
|
-
[signature: string]: DevEventDoc;
|
|
1108
|
-
};
|
|
1109
|
-
readonly errors?: {
|
|
1110
|
-
[signature: string]: readonly DevErrorDoc[];
|
|
1111
|
-
};
|
|
1112
|
-
readonly methods: {
|
|
1113
|
-
[signature: string]: DevMethodDoc;
|
|
1114
|
-
};
|
|
1115
|
-
readonly kind?: 'dev';
|
|
1116
|
-
readonly version?: number;
|
|
1117
|
-
readonly title?: string;
|
|
1118
|
-
readonly author?: string;
|
|
1119
|
-
};
|
|
1120
|
-
type UserDoc = {
|
|
1121
|
-
readonly events?: {
|
|
1122
|
-
readonly [signature: string]: NoticeUserDoc;
|
|
1123
|
-
};
|
|
1124
|
-
readonly errors?: {
|
|
1125
|
-
readonly [signature: string]: readonly NoticeUserDoc[];
|
|
1126
|
-
};
|
|
1127
|
-
readonly kind?: 'user';
|
|
1128
|
-
readonly methods: {
|
|
1129
|
-
readonly [signature: string]: NoticeUserDoc;
|
|
1130
|
-
};
|
|
1131
|
-
readonly version?: number;
|
|
1132
|
-
readonly notice?: string;
|
|
1133
|
-
};
|
|
1134
|
-
type StorageLayout = {
|
|
1135
|
-
readonly storage: readonly Storage[];
|
|
1136
|
-
readonly types: {
|
|
1137
|
-
readonly [name: string]: TypeDef;
|
|
1138
|
-
} | null;
|
|
1139
|
-
};
|
|
1140
|
-
type Deployment<TAbi extends Abi> = {
|
|
1141
|
-
readonly address: EIP1193Account;
|
|
1142
|
-
readonly abi: Narrow<TAbi>;
|
|
1143
|
-
readonly transaction?: {
|
|
1144
|
-
readonly hash: EIP1193DATA;
|
|
1145
|
-
readonly origin?: EIP1193Account;
|
|
1146
|
-
readonly nonce?: EIP1193DATA;
|
|
1147
|
-
};
|
|
1148
|
-
readonly receipt?: {
|
|
1149
|
-
confirmations: number;
|
|
1150
|
-
blockHash: EIP1193DATA;
|
|
1151
|
-
blockNumber: EIP1193QUANTITY;
|
|
1152
|
-
transactionIndex: EIP1193QUANTITY;
|
|
1153
|
-
};
|
|
1154
|
-
readonly bytecode: EIP1193DATA;
|
|
1155
|
-
readonly argsData: EIP1193DATA;
|
|
1156
|
-
readonly metadata: string;
|
|
1157
|
-
readonly libraries?: Libraries;
|
|
1158
|
-
readonly linkedData?: any;
|
|
1159
|
-
readonly deployedBytecode?: EIP1193DATA;
|
|
1160
|
-
readonly linkReferences?: any;
|
|
1161
|
-
readonly deployedLinkReferences?: any;
|
|
1162
|
-
readonly contractName?: string;
|
|
1163
|
-
readonly sourceName?: string;
|
|
1164
|
-
readonly devdoc?: DevDoc;
|
|
1165
|
-
readonly evm?: {
|
|
1166
|
-
readonly gasEstimates?: GasEstimates | null;
|
|
1167
|
-
} & any;
|
|
1168
|
-
readonly storageLayout?: StorageLayout;
|
|
1169
|
-
readonly userdoc?: UserDoc;
|
|
1170
|
-
};
|
|
1171
|
-
type Artifact<TAbi extends Abi = Abi> = {
|
|
1172
|
-
readonly abi: TAbi;
|
|
1173
|
-
readonly bytecode: EIP1193DATA;
|
|
1174
|
-
readonly metadata: string;
|
|
1175
|
-
readonly deployedBytecode?: EIP1193DATA;
|
|
1176
|
-
readonly linkReferences?: any;
|
|
1177
|
-
readonly deployedLinkReferences?: any;
|
|
1178
|
-
readonly contractName?: string;
|
|
1179
|
-
readonly sourceName?: string;
|
|
1180
|
-
readonly devdoc?: DevDoc;
|
|
1181
|
-
readonly evm?: {
|
|
1182
|
-
readonly gasEstimates?: GasEstimates | null;
|
|
1183
|
-
} & any;
|
|
1184
|
-
readonly storageLayout?: StorageLayout;
|
|
1185
|
-
readonly userdoc?: UserDoc;
|
|
1186
|
-
};
|
|
1187
|
-
type AccountDefinition = EIP1193Account | string | number;
|
|
1188
|
-
type AccountType = AccountDefinition | {
|
|
1189
|
-
[networkOrChainId: string | number]: AccountDefinition;
|
|
1190
|
-
};
|
|
1191
|
-
type ResolvedAccount = {
|
|
1192
|
-
address: EIP1193Account;
|
|
1193
|
-
} & Signer;
|
|
1194
|
-
type UnknownDeployments = Record<string, Deployment<Abi>>;
|
|
1195
|
-
type UnknownArtifacts = {
|
|
1196
|
-
[name: string]: Artifact;
|
|
1197
|
-
};
|
|
1198
|
-
type UnknownNamedAccounts = {
|
|
1199
|
-
[name: string]: EIP1193Account;
|
|
1200
|
-
};
|
|
1201
|
-
type UnresolvedUnknownNamedAccounts = {
|
|
1202
|
-
[name: string]: AccountType;
|
|
1203
|
-
};
|
|
1204
|
-
type ResolvedNamedAccounts<T extends UnresolvedUnknownNamedAccounts> = {
|
|
1205
|
-
[Property in keyof T]: EIP1193Account;
|
|
1206
|
-
};
|
|
1207
|
-
type Signer = {
|
|
1208
|
-
type: 'signerOnly';
|
|
1209
|
-
signer: EIP1193SignerProvider;
|
|
1210
|
-
} | {
|
|
1211
|
-
type: 'remote';
|
|
1212
|
-
signer: EIP1193ProviderWithoutEvents;
|
|
1213
|
-
} | {
|
|
1214
|
-
type: 'wallet';
|
|
1215
|
-
signer: EIP1193WalletProvider;
|
|
1216
|
-
};
|
|
1217
|
-
type ResolvedNamedSigners<T extends UnknownNamedAccounts> = {
|
|
1218
|
-
[Property in keyof T]: Signer;
|
|
1219
|
-
};
|
|
1220
|
-
type UnknownDeploymentsAcrossNetworks = Record<string, UnknownDeployments>;
|
|
1221
|
-
type Context<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnknownNamedAccounts = UnknownNamedAccounts> = {
|
|
1222
|
-
network: {
|
|
1223
|
-
name: string;
|
|
1224
|
-
tags: {
|
|
1225
|
-
[tag: string]: boolean;
|
|
1226
|
-
};
|
|
1227
|
-
saveDeployments: boolean;
|
|
1228
|
-
};
|
|
1229
|
-
accounts: NamedAccounts;
|
|
1230
|
-
artifacts: Artifacts;
|
|
1231
|
-
};
|
|
1232
|
-
type NetworkConfigBase = {
|
|
1233
|
-
name: string;
|
|
1234
|
-
tags: string[];
|
|
1235
|
-
fork?: boolean;
|
|
1236
|
-
};
|
|
1237
|
-
type NetworkConfigForJSONRPC = NetworkConfigBase & {
|
|
1238
|
-
nodeUrl: string;
|
|
1239
|
-
};
|
|
1240
|
-
type NetworkConfigForEIP1193Provider = NetworkConfigBase & {
|
|
1241
|
-
provider: EIP1193ProviderWithoutEvents;
|
|
1242
|
-
};
|
|
1243
|
-
type NetworkConfig = NetworkConfigForJSONRPC | NetworkConfigForEIP1193Provider;
|
|
1244
|
-
type Config = {
|
|
1245
|
-
network: NetworkConfig;
|
|
1246
|
-
networkTags?: string[];
|
|
1247
|
-
scripts?: string;
|
|
1248
|
-
deployments?: string;
|
|
1249
|
-
saveDeployments?: boolean;
|
|
1250
|
-
tags?: string[];
|
|
1251
|
-
askBeforeProceeding?: boolean;
|
|
1252
|
-
reportGasUse?: boolean;
|
|
1253
|
-
logLevel?: number;
|
|
1254
|
-
gasPricing?: {};
|
|
1255
|
-
};
|
|
1256
|
-
type ResolvedConfig = Config & {
|
|
1257
|
-
deployments: string;
|
|
1258
|
-
scripts: string;
|
|
1259
|
-
tags: string[];
|
|
1260
|
-
network: {
|
|
1261
|
-
name: string;
|
|
1262
|
-
tags: string[];
|
|
1263
|
-
fork?: boolean;
|
|
1264
|
-
};
|
|
1265
|
-
saveDeployments?: boolean;
|
|
1266
|
-
askBeforeProceeding?: boolean;
|
|
1267
|
-
reportGasUse?: boolean;
|
|
1268
|
-
};
|
|
1269
|
-
interface Environment<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnresolvedUnknownNamedAccounts = UnresolvedUnknownNamedAccounts, Deployments extends UnknownDeployments = UnknownDeployments> {
|
|
1270
|
-
config: ResolvedConfig;
|
|
1271
|
-
network: {
|
|
1272
|
-
chain: Chain;
|
|
1273
|
-
name: string;
|
|
1274
|
-
tags: {
|
|
1275
|
-
[tag: string]: boolean;
|
|
1276
|
-
};
|
|
1277
|
-
provider: TransactionHashTracker;
|
|
1278
|
-
};
|
|
1279
|
-
deployments: Deployments;
|
|
1280
|
-
namedAccounts: ResolvedNamedAccounts<NamedAccounts>;
|
|
1281
|
-
namedSigners: ResolvedNamedSigners<ResolvedNamedAccounts<NamedAccounts>>;
|
|
1282
|
-
unnamedAccounts: EIP1193Account[];
|
|
1283
|
-
addressSigners: {
|
|
1284
|
-
[name: `0x${string}`]: Signer;
|
|
1285
|
-
};
|
|
1286
|
-
artifacts: Artifacts;
|
|
1287
|
-
save<TAbi extends Abi = Abi>(name: string, deployment: Deployment<TAbi>): Promise<Deployment<TAbi>>;
|
|
1288
|
-
savePendingDeployment<TAbi extends Abi = Abi>(pendingDeployment: PendingDeployment<TAbi>): Promise<Deployment<TAbi>>;
|
|
1289
|
-
savePendingExecution(pendingExecution: PendingExecution): Promise<EIP1193TransactionReceipt>;
|
|
1290
|
-
get<TAbi extends Abi>(name: string): Deployment<TAbi>;
|
|
1291
|
-
getOrNull<TAbi extends Abi>(name: string): Deployment<TAbi> | null;
|
|
1292
|
-
fromAddressToNamedABI<TAbi extends Abi>(address: Address): {
|
|
1293
|
-
mergedABI: TAbi;
|
|
1294
|
-
names: string[];
|
|
1295
|
-
};
|
|
1296
|
-
fromAddressToNamedABIOrNull<TAbi extends Abi>(address: Address): {
|
|
1297
|
-
mergedABI: TAbi;
|
|
1298
|
-
names: string[];
|
|
1299
|
-
} | null;
|
|
1300
|
-
showMessage(message: string): void;
|
|
1301
|
-
showProgress(message?: string): ProgressIndicator;
|
|
1302
|
-
}
|
|
1303
|
-
type DeploymentConstruction<TAbi extends Abi> = Omit<DeployContractParameters<TAbi>, 'bytecode' | 'account' | 'abi' | 'chain'> & {
|
|
1304
|
-
account: string | EIP1193Account;
|
|
1305
|
-
artifact: string | Artifact<TAbi>;
|
|
1306
|
-
};
|
|
1307
|
-
type PartialDeployment<TAbi extends Abi = Abi> = Artifact<TAbi> & {
|
|
1308
|
-
argsData: EIP1193DATA;
|
|
1309
|
-
libraries?: Libraries;
|
|
1310
|
-
linkedData?: any;
|
|
1311
|
-
};
|
|
1312
|
-
type PendingDeployment<TAbi extends Abi = Abi> = {
|
|
1313
|
-
type: 'deployment';
|
|
1314
|
-
name: string;
|
|
1315
|
-
transaction: {
|
|
1316
|
-
hash: `0x${string}`;
|
|
1317
|
-
nonce?: `0x${string}`;
|
|
1318
|
-
origin?: `0x${string}`;
|
|
1319
|
-
};
|
|
1320
|
-
partialDeployment: PartialDeployment<TAbi>;
|
|
1321
|
-
expectedAddress?: `0x${string}`;
|
|
1322
|
-
};
|
|
1323
|
-
type PendingExecution = {
|
|
1324
|
-
type: 'execution';
|
|
1325
|
-
description?: string;
|
|
1326
|
-
transaction: {
|
|
1327
|
-
hash: `0x${string}`;
|
|
1328
|
-
nonce?: `0x${string}`;
|
|
1329
|
-
origin?: `0x${string}`;
|
|
1330
|
-
};
|
|
1331
|
-
};
|
|
1332
|
-
type PendingTransaction = PendingDeployment | PendingExecution;
|
|
1333
|
-
|
|
1334
|
-
type DeployScriptFunction<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnknownNamedAccounts = UnknownNamedAccounts, ArgumentsTypes = undefined, Deployments extends UnknownDeployments = UnknownDeployments> = (env: Environment<Artifacts, NamedAccounts, Deployments>, args?: ArgumentsTypes) => Promise<void | boolean>;
|
|
1335
|
-
interface DeployScriptModule<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnresolvedUnknownNamedAccounts = UnresolvedUnknownNamedAccounts, ArgumentsTypes = undefined, Deployments extends UnknownDeployments = UnknownDeployments> {
|
|
1336
|
-
(env: Environment<Artifacts, ResolvedNamedAccounts<NamedAccounts>, Deployments>, args?: ArgumentsTypes): Promise<void | boolean>;
|
|
1337
|
-
providedContext: ProvidedContext<Artifacts, NamedAccounts>;
|
|
1338
|
-
skip?: (env: Environment<Artifacts, ResolvedNamedAccounts<NamedAccounts>, Deployments>, args?: ArgumentsTypes) => Promise<boolean>;
|
|
1339
|
-
tags?: string[];
|
|
1340
|
-
dependencies?: string[];
|
|
1341
|
-
runAtTheEnd?: boolean;
|
|
1342
|
-
id?: string;
|
|
1343
|
-
}
|
|
1344
|
-
type ProvidedContext<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnresolvedUnknownNamedAccounts = UnresolvedUnknownNamedAccounts> = {
|
|
1345
|
-
accounts?: NamedAccounts;
|
|
1346
|
-
artifacts: Artifacts;
|
|
1347
|
-
};
|
|
1348
|
-
type ScriptCallback<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnknownNamedAccounts = UnknownNamedAccounts, Deployments extends UnknownDeployments = UnknownDeployments> = (env: Environment<Artifacts, NamedAccounts, Deployments>) => Promise<void>;
|
|
1349
|
-
|
|
1350
|
-
declare function execute<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnresolvedUnknownNamedAccounts = UnresolvedUnknownNamedAccounts, ArgumentsType = undefined, Deployments extends UnknownDeployments = UnknownDeployments>(context: ProvidedContext<Artifacts, NamedAccounts>, callback: DeployScriptFunction<Artifacts, ResolvedNamedAccounts<NamedAccounts>, ArgumentsType, Deployments>, options: {
|
|
1351
|
-
tags?: string[];
|
|
1352
|
-
dependencies?: string[];
|
|
1353
|
-
}): DeployScriptModule<Artifacts, NamedAccounts, ArgumentsType, Deployments>;
|
|
1354
|
-
type ConfigOptions = {
|
|
1355
|
-
network?: string | {
|
|
1356
|
-
fork: string;
|
|
1357
|
-
};
|
|
1358
|
-
deployments?: string;
|
|
1359
|
-
scripts?: string;
|
|
1360
|
-
tags?: string;
|
|
1361
|
-
logLevel?: number;
|
|
1362
|
-
provider?: EIP1193ProviderWithoutEvents | EIP1193GenericRequestProvider;
|
|
1363
|
-
ignoreMissingRPC?: boolean;
|
|
1364
|
-
saveDeployments?: boolean;
|
|
1365
|
-
askBeforeProceeding?: boolean;
|
|
1366
|
-
reportGasUse?: boolean;
|
|
1367
|
-
};
|
|
1368
|
-
declare function readConfig(options: ConfigOptions): Config;
|
|
1369
|
-
declare function readAndResolveConfig(options: ConfigOptions): ResolvedConfig;
|
|
1370
|
-
declare function resolveConfig(config: Config): ResolvedConfig;
|
|
1371
|
-
declare function loadEnvironment<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnresolvedUnknownNamedAccounts = UnresolvedUnknownNamedAccounts>(options: ConfigOptions, context: ProvidedContext<Artifacts, NamedAccounts>): Promise<Environment<Artifacts, NamedAccounts, UnknownDeployments>>;
|
|
1372
|
-
declare function loadAndExecuteDeployments<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnresolvedUnknownNamedAccounts = UnresolvedUnknownNamedAccounts, ArgumentsType = undefined>(options: ConfigOptions, context?: ProvidedContext<Artifacts, NamedAccounts>, args?: ArgumentsType): Promise<Environment<Artifacts, NamedAccounts, UnknownDeployments>>;
|
|
1373
|
-
declare function executeDeployScripts<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnresolvedUnknownNamedAccounts = UnresolvedUnknownNamedAccounts, ArgumentsType = undefined>(config: ResolvedConfig, context?: ProvidedContext<Artifacts, NamedAccounts>, args?: ArgumentsType): Promise<Environment<Artifacts, NamedAccounts, UnknownDeployments>>;
|
|
1374
|
-
|
|
1375
|
-
type EnvironmentExtenstion = (env: Environment) => Environment;
|
|
1376
|
-
declare function extendEnvironment(extension: EnvironmentExtenstion): void;
|
|
1377
|
-
type SignerProtocolFunction = (protocolString: string) => Promise<Signer>;
|
|
1378
|
-
declare function handleSignerProtocol(protocol: string, getSigner: SignerProtocolFunction): void;
|
|
1379
|
-
|
|
1380
|
-
declare function loadDeployments(deploymentsPath: string, networkName: string, onlyABIAndAddress?: boolean, expectedChain?: {
|
|
1381
|
-
chainId: string;
|
|
1382
|
-
genesisHash?: `0x${string}`;
|
|
1383
|
-
deleteDeploymentsIfDifferentGenesisHash?: boolean;
|
|
1384
|
-
}): {
|
|
1385
|
-
deployments: UnknownDeployments;
|
|
1386
|
-
chainId?: string;
|
|
1387
|
-
genesisHash?: `0x${string}`;
|
|
1388
|
-
};
|
|
1389
|
-
|
|
1390
|
-
type CreateMutable<Type> = {
|
|
1391
|
-
-readonly [Property in keyof Type]: Type[Property];
|
|
1392
|
-
};
|
|
1393
|
-
declare function mergeArtifacts(list: {
|
|
1394
|
-
name: string;
|
|
1395
|
-
artifact: Partial<Artifact<Abi>> & {
|
|
1396
|
-
abi: Abi;
|
|
1397
|
-
};
|
|
1398
|
-
}[]): {
|
|
1399
|
-
mergedABI: (AbiConstructor | AbiError | AbiEvent | AbiFallback | AbiFunction | AbiReceive)[];
|
|
1400
|
-
added: Map<string, AbiConstructor | AbiError | AbiEvent | AbiFallback | AbiFunction | AbiReceive>;
|
|
1401
|
-
mergedDevDocs: CreateMutable<DevDoc>;
|
|
1402
|
-
mergedUserDocs: CreateMutable<UserDoc>;
|
|
1403
|
-
sigJSMap: Map<`0x${string}`, {
|
|
1404
|
-
index: number;
|
|
1405
|
-
routeName: string;
|
|
1406
|
-
functionName: string;
|
|
1407
|
-
}>;
|
|
1408
|
-
};
|
|
1409
|
-
|
|
1410
|
-
type ChainType = 'zksync' | 'op-stack' | 'celo' | 'default';
|
|
1411
|
-
declare const chainTypes: {
|
|
1412
|
-
[chainId: string]: ChainType;
|
|
1413
|
-
};
|
|
1414
|
-
declare const chainById: {
|
|
1415
|
-
[chainId: string]: Chain$1;
|
|
1416
|
-
};
|
|
1417
|
-
declare function getChain(id: string): Chain$1;
|
|
1418
|
-
|
|
1419
|
-
type EstimateGasPriceOptions = {
|
|
1420
|
-
blockCount: number;
|
|
1421
|
-
newestBlock: EIP1193BlockTag;
|
|
1422
|
-
rewardPercentiles: number[];
|
|
1423
|
-
};
|
|
1424
|
-
type RoughEstimateGasPriceOptions = {
|
|
1425
|
-
blockCount: number;
|
|
1426
|
-
newestBlock: EIP1193BlockTag;
|
|
1427
|
-
rewardPercentiles: [number, number, number];
|
|
1428
|
-
};
|
|
1429
|
-
type GasPrice = {
|
|
1430
|
-
maxFeePerGas: bigint;
|
|
1431
|
-
maxPriorityFeePerGas: bigint;
|
|
1432
|
-
};
|
|
1433
|
-
type EstimateGasPriceResult = GasPrice[];
|
|
1434
|
-
type RoughEstimateGasPriceResult = {
|
|
1435
|
-
slow: GasPrice;
|
|
1436
|
-
average: GasPrice;
|
|
1437
|
-
fast: GasPrice;
|
|
1438
|
-
};
|
|
1439
|
-
declare function getGasPriceEstimate(provider: EIP1193ProviderWithoutEvents, options?: Partial<EstimateGasPriceOptions>): Promise<EstimateGasPriceResult>;
|
|
1440
|
-
declare function getRoughGasPriceEstimate(provider: EIP1193ProviderWithoutEvents, options?: Partial<RoughEstimateGasPriceOptions>): Promise<RoughEstimateGasPriceResult>;
|
|
1441
|
-
|
|
1442
|
-
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 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 Signer, 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 };
|