rocketh 0.10.7 → 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.cts DELETED
@@ -1,463 +0,0 @@
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
- import { Chain, Address, DeployContractParameters } from 'viem';
6
- import { Chain as Chain$1 } from 'viem/chains';
7
-
8
- type ProgressIndicator = {
9
- start(msg?: string): ProgressIndicator;
10
- stop(): ProgressIndicator;
11
- succeed(msg?: string): ProgressIndicator;
12
- fail(msg?: string): ProgressIndicator;
13
- };
14
-
15
- declare abstract class BaseProvider implements EIP1193ProviderWithoutEvents {
16
- protected provider: EIP1193GenericRequestProvider;
17
- constructor(provider: EIP1193GenericRequestProvider);
18
- request(args: EIP1193Web3ClientVersionRequest): Promise<string>;
19
- request(args: EIP1193Web3SHARequest): Promise<`0x${string}`>;
20
- request(args: EIP1193NetVersionRequest): Promise<`0x${string}`>;
21
- request(args: EIP1193NetListeningRequest): Promise<boolean>;
22
- request(args: EIP1193NetPeerCountRequest): Promise<`0x${string}`>;
23
- request(args: EIP1193ProtocolVersionRequest): Promise<string>;
24
- request(args: EIP1193SyncingRequest): Promise<false | EIP1193SyncingStatus>;
25
- request(args: EIP1193CoinbaseRequest): Promise<`0x${string}`>;
26
- request(args: EIP1193GasPriceRequest): Promise<`0x${string}`>;
27
- request(args: EIP1193AccountsRequest): Promise<EIP1193Accounts>;
28
- request(args: EIP1193BlockNumberRequest): Promise<`0x${string}`>;
29
- request(args: EIP1193GetBalanceRequest): Promise<`0x${string}`>;
30
- request(args: EIP1193GetStorageAtRequest): Promise<`0x${string}`>;
31
- request(args: EIP1193GetTransactionCountRequest): Promise<`0x${string}`>;
32
- request(args: EIP1193GetTransactionCountByHashRequest): Promise<`0x${string}`>;
33
- request(args: EIP1193GetTransactionCountByNumberRequest): Promise<`0x${string}`>;
34
- request(args: EIP1193GetUncleCountByBlockHashRequest): Promise<`0x${string}`>;
35
- request(args: EIP1193GetUncleCountByBlockNumberRequest): Promise<`0x${string}`>;
36
- request(args: EIP1193GetCodeRequest): Promise<`0x${string}`>;
37
- request(args: EIP1193LegacySignRequest): Promise<`0x${string}`>;
38
- request(args: EIP1193SignTransactionRequest): Promise<`0x${string}`>;
39
- request(args: EIP1193SendTransactionRequest): Promise<`0x${string}`>;
40
- request(args: EIP1193SendRawTransactionRequest): Promise<`0x${string}`>;
41
- request(args: EIP1193CallRequest): Promise<`0x${string}`>;
42
- request(args: EIP1193EstimateGasRequest): Promise<`0x${string}`>;
43
- request(args: EIP1193GetBlockByHashRequest<false>): Promise<EIP1193Block | null>;
44
- request(args: EIP1193GetBlockByHashRequest<true>): Promise<EIP1193BlockWithTransactions | null>;
45
- request(args: EIP1193GetBlockByNumberRequest<false>): Promise<EIP1193Block | null>;
46
- request(args: EIP1193GetBlockByNumberRequest<true>): Promise<EIP1193BlockWithTransactions | null>;
47
- request(args: EIP1193GetTransactionByHashRequest): Promise<EIP1193Transaction | null>;
48
- request(args: EIP1193GetTransactionByBlockHashAndIndexRequest): Promise<EIP1193Transaction | null>;
49
- request(args: EIP1193GetTransactionByBlockNumberAndIndexRequest): Promise<EIP1193Transaction | null>;
50
- request(args: EIP1193GetTransactionReceiptRequest): Promise<EIP1193TransactionReceipt | null>;
51
- request(args: EIP1193GetUncleByBlockHashAndIndexRequest): Promise<EIP1193Block | null>;
52
- request(args: EIP1193GetUncleByBlockNumberAndIndexRequest): Promise<EIP1193Block | null>;
53
- request(args: EIP1193GetLogsRequest): Promise<EIP1193Log[]>;
54
- request(args: EIP1193PersonalSignRequest): Promise<`0x${string}`>;
55
- request(args: EIP1193PTypedSignv4Request): Promise<`0x${string}`>;
56
- request(args: EIP1193PTypedSignRequest): Promise<`0x${string}`>;
57
- request(args: EIP1193ChainIdRequest): Promise<`0x${string}`>;
58
- request(args: EIP1193RequestAccountsRequest): Promise<EIP1193Accounts>;
59
- request(args: ERIP1193SwitchChainRequest): Promise<EIP1193SwitchChainError | null>;
60
- request(args: ERIP1193AddChainRequest): Promise<EIP1193AddChainError | null>;
61
- request(args: EIP1193SubscribeRequest): Promise<string>;
62
- request(args: EIP1193UnsubscribeRequest): Promise<boolean>;
63
- request<T = unknown, V extends EIP1193GenericRequest = EIP1193GenericRequest>(args: V): Promise<T>;
64
- protected abstract _request<T = unknown, V extends EIP1193GenericRequest = EIP1193GenericRequest>(args: V): Promise<T>;
65
- }
66
-
67
- declare class TransactionHashTracker extends BaseProvider {
68
- transactionHashes: `0x${string}`[];
69
- constructor(provider: EIP1193GenericRequestProvider);
70
- protected _request<T = unknown, V extends EIP1193GenericRequest = EIP1193GenericRequest>(args: V): Promise<T>;
71
- }
72
-
73
- type Libraries = {
74
- readonly [libraryName: string]: EIP1193Account;
75
- };
76
- type GasEstimate = 'infinite' | `${number}`;
77
- type CreationGasEstimate = {
78
- readonly codeDepositCost: GasEstimate;
79
- readonly executionCost: GasEstimate;
80
- readonly totalCost: GasEstimate;
81
- };
82
- type GasEstimates = {
83
- readonly creation?: CreationGasEstimate;
84
- readonly external?: {
85
- readonly [signature: string]: GasEstimate;
86
- };
87
- readonly internal?: {
88
- readonly [signature: string]: GasEstimate;
89
- };
90
- };
91
- type Storage = {
92
- readonly astId: number;
93
- readonly contract: string;
94
- readonly label: string;
95
- readonly offset: number;
96
- readonly slot: `${number}`;
97
- readonly type: string;
98
- };
99
- type TypeDef = {
100
- readonly encoding: 'inplace' | string;
101
- readonly label: 'address' | 'byte24' | string;
102
- readonly numberOfBytes: `${number}`;
103
- readonly key?: string;
104
- readonly value?: string;
105
- readonly members?: readonly Storage[];
106
- };
107
- type DevEventDoc = {
108
- readonly details?: string;
109
- readonly params?: {
110
- readonly [name: string]: string;
111
- };
112
- };
113
- type DevErrorDoc = {
114
- readonly details?: string;
115
- readonly params?: {
116
- readonly [name: string]: string;
117
- };
118
- };
119
- type DevMethodDoc = {
120
- readonly details?: string;
121
- readonly params?: {
122
- readonly [name: string]: string;
123
- };
124
- readonly returns?: {
125
- readonly [key: string | `_${number}`]: string;
126
- };
127
- };
128
- type NoticeUserDoc = {
129
- readonly notice?: string;
130
- };
131
- type DevDoc = {
132
- readonly events?: {
133
- [signature: string]: DevEventDoc;
134
- };
135
- readonly errors?: {
136
- [signature: string]: readonly DevErrorDoc[];
137
- };
138
- readonly methods: {
139
- [signature: string]: DevMethodDoc;
140
- };
141
- readonly kind?: 'dev';
142
- readonly version?: number;
143
- readonly title?: string;
144
- readonly author?: string;
145
- };
146
- type UserDoc = {
147
- readonly events?: {
148
- readonly [signature: string]: NoticeUserDoc;
149
- };
150
- readonly errors?: {
151
- readonly [signature: string]: readonly NoticeUserDoc[];
152
- };
153
- readonly kind?: 'user';
154
- readonly methods: {
155
- readonly [signature: string]: NoticeUserDoc;
156
- };
157
- readonly version?: number;
158
- readonly notice?: string;
159
- };
160
- type StorageLayout = {
161
- readonly storage: readonly Storage[];
162
- readonly types: {
163
- readonly [name: string]: TypeDef;
164
- } | null;
165
- };
166
- type Deployment<TAbi extends Abi> = {
167
- readonly address: EIP1193Account;
168
- readonly abi: Narrow<TAbi>;
169
- readonly transaction?: {
170
- readonly hash: EIP1193DATA;
171
- readonly origin?: EIP1193Account;
172
- readonly nonce?: EIP1193DATA;
173
- };
174
- readonly receipt?: {
175
- confirmations: number;
176
- blockHash: EIP1193DATA;
177
- blockNumber: EIP1193QUANTITY;
178
- transactionIndex: EIP1193QUANTITY;
179
- };
180
- readonly bytecode: EIP1193DATA;
181
- readonly argsData: EIP1193DATA;
182
- readonly metadata: string;
183
- readonly libraries?: Libraries;
184
- readonly linkedData?: any;
185
- readonly deployedBytecode?: EIP1193DATA;
186
- readonly linkReferences?: any;
187
- readonly deployedLinkReferences?: any;
188
- readonly contractName?: string;
189
- readonly sourceName?: string;
190
- readonly devdoc?: DevDoc;
191
- readonly evm?: {
192
- readonly gasEstimates?: GasEstimates | null;
193
- } & any;
194
- readonly storageLayout?: StorageLayout;
195
- readonly userdoc?: UserDoc;
196
- };
197
- type Artifact<TAbi extends Abi = Abi> = {
198
- readonly abi: TAbi;
199
- readonly bytecode: EIP1193DATA;
200
- readonly metadata: string;
201
- readonly deployedBytecode?: EIP1193DATA;
202
- readonly linkReferences?: any;
203
- readonly deployedLinkReferences?: any;
204
- readonly contractName?: string;
205
- readonly sourceName?: string;
206
- readonly devdoc?: DevDoc;
207
- readonly evm?: {
208
- readonly gasEstimates?: GasEstimates | null;
209
- } & any;
210
- readonly storageLayout?: StorageLayout;
211
- readonly userdoc?: UserDoc;
212
- };
213
- type AccountDefinition = EIP1193Account | string | number;
214
- type AccountType = AccountDefinition | {
215
- [networkOrChainId: string | number]: AccountDefinition;
216
- };
217
- type ResolvedAccount = {
218
- address: EIP1193Account;
219
- } & NamedSigner;
220
- type UnknownDeployments = Record<string, Deployment<Abi>>;
221
- type UnknownArtifacts = {
222
- [name: string]: Artifact;
223
- };
224
- type UnknownNamedAccounts = {
225
- [name: string]: EIP1193Account;
226
- };
227
- type UnresolvedUnknownNamedAccounts = {
228
- [name: string]: AccountType;
229
- };
230
- type ResolvedNamedAccounts<T extends UnresolvedUnknownNamedAccounts> = {
231
- [Property in keyof T]: EIP1193Account;
232
- };
233
- type NamedSigner = {
234
- type: 'signerOnly';
235
- signer: EIP1193SignerProvider;
236
- } | {
237
- type: 'remote';
238
- signer: EIP1193ProviderWithoutEvents;
239
- } | {
240
- type: 'wallet';
241
- signer: EIP1193WalletProvider;
242
- };
243
- type ResolvedNamedSigners<T extends UnknownNamedAccounts> = {
244
- [Property in keyof T]: NamedSigner;
245
- };
246
- type UnknownDeploymentsAcrossNetworks = Record<string, UnknownDeployments>;
247
- type Context<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnknownNamedAccounts = UnknownNamedAccounts> = {
248
- network: {
249
- name: string;
250
- tags: {
251
- [tag: string]: boolean;
252
- };
253
- saveDeployments: boolean;
254
- };
255
- accounts: NamedAccounts;
256
- artifacts: Artifacts;
257
- };
258
- type NetworkConfigBase = {
259
- name: string;
260
- tags: string[];
261
- fork?: boolean;
262
- };
263
- type NetworkConfigForJSONRPC = NetworkConfigBase & {
264
- nodeUrl: string;
265
- };
266
- type NetworkConfigForEIP1193Provider = NetworkConfigBase & {
267
- provider: EIP1193ProviderWithoutEvents;
268
- };
269
- type NetworkConfig = NetworkConfigForJSONRPC | NetworkConfigForEIP1193Provider;
270
- type Config = {
271
- network: NetworkConfig;
272
- networkTags?: string[];
273
- scripts?: string;
274
- deployments?: string;
275
- saveDeployments?: boolean;
276
- tags?: string[];
277
- askBeforeProceeding?: boolean;
278
- reportGasUse?: boolean;
279
- logLevel?: number;
280
- gasPricing?: {};
281
- };
282
- type ResolvedConfig = Config & {
283
- deployments: string;
284
- scripts: string;
285
- tags: string[];
286
- network: {
287
- name: string;
288
- tags: string[];
289
- fork?: boolean;
290
- };
291
- saveDeployments?: boolean;
292
- askBeforeProceeding?: boolean;
293
- reportGasUse?: boolean;
294
- };
295
- interface Environment<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnresolvedUnknownNamedAccounts = UnresolvedUnknownNamedAccounts, Deployments extends UnknownDeployments = UnknownDeployments> {
296
- config: ResolvedConfig;
297
- network: {
298
- chain: Chain;
299
- name: string;
300
- tags: {
301
- [tag: string]: boolean;
302
- };
303
- provider: TransactionHashTracker;
304
- };
305
- deployments: Deployments;
306
- accounts: ResolvedNamedAccounts<NamedAccounts>;
307
- signers: ResolvedNamedSigners<ResolvedNamedAccounts<NamedAccounts>>;
308
- addressSigners: {
309
- [name: `0x${string}`]: NamedSigner;
310
- };
311
- artifacts: Artifacts;
312
- save<TAbi extends Abi = Abi>(name: string, deployment: Deployment<TAbi>): Promise<Deployment<TAbi>>;
313
- savePendingDeployment<TAbi extends Abi = Abi>(pendingDeployment: PendingDeployment<TAbi>): Promise<Deployment<TAbi>>;
314
- savePendingExecution(pendingExecution: PendingExecution): Promise<EIP1193TransactionReceipt>;
315
- get<TAbi extends Abi>(name: string): Deployment<TAbi>;
316
- getOrNull<TAbi extends Abi>(name: string): Deployment<TAbi> | null;
317
- fromAddressToNamedABI<TAbi extends Abi>(address: Address): {
318
- mergedABI: TAbi;
319
- names: string[];
320
- };
321
- fromAddressToNamedABIOrNull<TAbi extends Abi>(address: Address): {
322
- mergedABI: TAbi;
323
- names: string[];
324
- } | null;
325
- showMessage(message: string): void;
326
- showProgress(message?: string): ProgressIndicator;
327
- }
328
- type DeploymentConstruction<TAbi extends Abi> = Omit<DeployContractParameters<TAbi>, 'bytecode' | 'account' | 'abi' | 'chain'> & {
329
- account: string | EIP1193Account;
330
- artifact: string | Artifact<TAbi>;
331
- };
332
- type PartialDeployment<TAbi extends Abi = Abi> = Artifact<TAbi> & {
333
- argsData: EIP1193DATA;
334
- libraries?: Libraries;
335
- linkedData?: any;
336
- };
337
- type PendingDeployment<TAbi extends Abi = Abi> = {
338
- type: 'deployment';
339
- name: string;
340
- transaction: {
341
- hash: `0x${string}`;
342
- nonce?: `0x${string}`;
343
- origin?: `0x${string}`;
344
- };
345
- partialDeployment: PartialDeployment<TAbi>;
346
- expectedAddress?: `0x${string}`;
347
- };
348
- type PendingExecution = {
349
- type: 'execution';
350
- description?: string;
351
- transaction: {
352
- hash: `0x${string}`;
353
- nonce?: `0x${string}`;
354
- origin?: `0x${string}`;
355
- };
356
- };
357
- type PendingTransaction = PendingDeployment | PendingExecution;
358
-
359
- 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>;
360
- interface DeployScriptModule<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnresolvedUnknownNamedAccounts = UnresolvedUnknownNamedAccounts, ArgumentsTypes = undefined, Deployments extends UnknownDeployments = UnknownDeployments> {
361
- (env: Environment<Artifacts, ResolvedNamedAccounts<NamedAccounts>, Deployments>, args?: ArgumentsTypes): Promise<void | boolean>;
362
- providedContext: ProvidedContext<Artifacts, NamedAccounts>;
363
- skip?: (env: Environment<Artifacts, ResolvedNamedAccounts<NamedAccounts>, Deployments>, args?: ArgumentsTypes) => Promise<boolean>;
364
- tags?: string[];
365
- dependencies?: string[];
366
- runAtTheEnd?: boolean;
367
- id?: string;
368
- }
369
- type ProvidedContext<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnresolvedUnknownNamedAccounts = UnresolvedUnknownNamedAccounts> = {
370
- accounts?: NamedAccounts;
371
- artifacts: Artifacts;
372
- };
373
- type ScriptCallback<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnknownNamedAccounts = UnknownNamedAccounts, Deployments extends UnknownDeployments = UnknownDeployments> = (env: Environment<Artifacts, NamedAccounts, Deployments>) => Promise<void>;
374
-
375
- 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: {
376
- tags?: string[];
377
- dependencies?: string[];
378
- }): DeployScriptModule<Artifacts, NamedAccounts, ArgumentsType, Deployments>;
379
- type ConfigOptions = {
380
- network?: string | {
381
- fork: string;
382
- };
383
- deployments?: string;
384
- scripts?: string;
385
- tags?: string;
386
- logLevel?: number;
387
- provider?: EIP1193ProviderWithoutEvents | EIP1193GenericRequestProvider;
388
- ignoreMissingRPC?: boolean;
389
- saveDeployments?: boolean;
390
- askBeforeProceeding?: boolean;
391
- reportGasUse?: boolean;
392
- };
393
- declare function readConfig(options: ConfigOptions): Config;
394
- declare function readAndResolveConfig(options: ConfigOptions): ResolvedConfig;
395
- declare function resolveConfig(config: Config): ResolvedConfig;
396
- declare function loadEnvironment<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnresolvedUnknownNamedAccounts = UnresolvedUnknownNamedAccounts>(options: ConfigOptions, context: ProvidedContext<Artifacts, NamedAccounts>): Promise<Environment>;
397
- declare function loadAndExecuteDeployments<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnresolvedUnknownNamedAccounts = UnresolvedUnknownNamedAccounts, ArgumentsType = undefined, Deployments extends UnknownDeployments = UnknownDeployments>(options: ConfigOptions, args?: ArgumentsType): Promise<Environment>;
398
- declare function executeDeployScripts<Artifacts extends UnknownArtifacts = UnknownArtifacts, NamedAccounts extends UnresolvedUnknownNamedAccounts = UnresolvedUnknownNamedAccounts, ArgumentsType = undefined, Deployments extends UnknownDeployments = UnknownDeployments>(config: ResolvedConfig, args?: ArgumentsType): Promise<Environment>;
399
-
400
- type EnvironmentExtenstion = (env: Environment) => Environment;
401
- declare function extendEnvironment(extension: EnvironmentExtenstion): void;
402
- type SignerProtocolFunction = (protocolString: string) => Promise<NamedSigner>;
403
- declare function handleSignerProtocol(protocol: string, getSigner: SignerProtocolFunction): void;
404
-
405
- declare function loadDeployments(deploymentsPath: string, networkName: string, onlyABIAndAddress?: boolean, expectedChain?: {
406
- chainId: string;
407
- genesisHash?: `0x${string}`;
408
- deleteDeploymentsIfDifferentGenesisHash?: boolean;
409
- }): {
410
- deployments: UnknownDeployments;
411
- chainId?: string;
412
- genesisHash?: `0x${string}`;
413
- };
414
-
415
- type CreateMutable<Type> = {
416
- -readonly [Property in keyof Type]: Type[Property];
417
- };
418
- declare function mergeArtifacts(list: {
419
- name: string;
420
- artifact: Partial<Artifact<Abi>> & {
421
- abi: Abi;
422
- };
423
- }[]): {
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>;
426
- mergedDevDocs: CreateMutable<DevDoc>;
427
- mergedUserDocs: CreateMutable<UserDoc>;
428
- sigJSMap: Map<`0x${string}`, {
429
- index: number;
430
- routeName: string;
431
- functionName: string;
432
- }>;
433
- };
434
-
435
- declare const chainById: {
436
- [chainId: string]: Chain$1;
437
- };
438
- declare function getChain(id: string): Chain$1;
439
-
440
- type EstimateGasPriceOptions = {
441
- blockCount: number;
442
- newestBlock: EIP1193BlockTag;
443
- rewardPercentiles: number[];
444
- };
445
- type RoughEstimateGasPriceOptions = {
446
- blockCount: number;
447
- newestBlock: EIP1193BlockTag;
448
- rewardPercentiles: [number, number, number];
449
- };
450
- type GasPrice = {
451
- maxFeePerGas: bigint;
452
- maxPriorityFeePerGas: bigint;
453
- };
454
- type EstimateGasPriceResult = GasPrice[];
455
- type RoughEstimateGasPriceResult = {
456
- slow: GasPrice;
457
- average: GasPrice;
458
- fast: GasPrice;
459
- };
460
- declare function getGasPriceEstimate(provider: EIP1193ProviderWithoutEvents, options?: Partial<EstimateGasPriceOptions>): Promise<EstimateGasPriceResult>;
461
- declare function getRoughGasPriceEstimate(provider: EIP1193ProviderWithoutEvents, options?: Partial<RoughEstimateGasPriceOptions>): Promise<RoughEstimateGasPriceResult>;
462
-
463
- export { type AccountDefinition, type AccountType, type Artifact, 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, execute, executeDeployScripts, extendEnvironment, getChain, getGasPriceEstimate, getRoughGasPriceEstimate, handleSignerProtocol, loadAndExecuteDeployments, loadDeployments, loadEnvironment, mergeArtifacts, readAndResolveConfig, readConfig, resolveConfig };
package/dist/index.js DELETED
@@ -1,35 +0,0 @@
1
- import {
2
- chainById,
3
- execute,
4
- executeDeployScripts,
5
- extendEnvironment,
6
- getChain,
7
- getGasPriceEstimate,
8
- getRoughGasPriceEstimate,
9
- handleSignerProtocol,
10
- loadAndExecuteDeployments,
11
- loadDeployments,
12
- loadEnvironment,
13
- mergeArtifacts,
14
- readAndResolveConfig,
15
- readConfig,
16
- resolveConfig
17
- } from "./chunk-MEL67HDP.js";
18
- export {
19
- chainById,
20
- execute,
21
- executeDeployScripts,
22
- extendEnvironment,
23
- getChain,
24
- getGasPriceEstimate,
25
- getRoughGasPriceEstimate,
26
- handleSignerProtocol,
27
- loadAndExecuteDeployments,
28
- loadDeployments,
29
- loadEnvironment,
30
- mergeArtifacts,
31
- readAndResolveConfig,
32
- readConfig,
33
- resolveConfig
34
- };
35
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/tsup.config.ts DELETED
@@ -1,5 +0,0 @@
1
- import {defineConfig} from 'tsup';
2
- export default defineConfig({
3
- outDir: 'dist',
4
- sourcemap: true,
5
- });