|
1 | 1 | // TODO: create a new package "config" instead of this file |
2 | 2 | import { NetworkName } from "types/lib"; |
3 | | -import { BigNumberish, Wallet, providers, utils } from "ethers"; |
4 | | - |
5 | | -export interface NetworkConfig { |
6 | | - entryPoints: string[]; |
7 | | - relayer: string; |
8 | | - beneficiary: string; |
9 | | - name?: NetworkName; |
10 | | - rpcEndpoint: string; |
11 | | - minInclusionDenominator: number; |
12 | | - throttlingSlack: number; |
13 | | - banSlack: number; |
14 | | - minSignerBalance: BigNumberish; |
15 | | - multicall: string; |
16 | | -} |
17 | | - |
18 | | -export type BundlerConfig = Omit< |
| 3 | +import { Wallet, providers, utils } from "ethers"; |
| 4 | +import { |
| 5 | + BundlerConfig, |
| 6 | + ConfigOptions, |
19 | 7 | NetworkConfig, |
20 | | - "entryPoints" | "rpcEndpoint" | "relayer" | "beneficiary" |
21 | | ->; |
22 | | - |
23 | | -export type Networks = { |
24 | | - [network in NetworkName]?: NetworkConfig; |
25 | | -}; |
26 | | - |
27 | | -export interface ConfigOptions { |
28 | | - networks: Networks; |
29 | | - testingMode?: boolean; |
30 | | - unsafeMode: boolean; |
31 | | -} |
| 8 | + Networks, |
| 9 | +} from "./interfaces"; |
32 | 10 |
|
33 | 11 | export class Config { |
34 | 12 | supportedNetworks: NetworkName[]; |
@@ -131,6 +109,9 @@ const bundlerDefaultConfigs: BundlerConfig = { |
131 | 109 | banSlack: 10, |
132 | 110 | minSignerBalance: utils.parseEther("0.1"), |
133 | 111 | multicall: "0xcA11bde05977b3631167028862bE2a173976CA11", // default multicall address |
| 112 | + estimationBaseFeeDivisor: 25, |
| 113 | + estimationStaticBuffer: 21000, |
| 114 | + validationGasLimit: 10e6, |
134 | 115 | }; |
135 | 116 |
|
136 | 117 | const RELAYER_ENV = (network: NetworkName): string | undefined => |
|
0 commit comments