|
| 1 | +"use strict"; |
| 2 | +const ADDRESS_LENGTH = 40; |
| 3 | + |
| 4 | +module.exports = { |
| 5 | + contractOwner: "0xf8ff2AF0DC1D5BA4811f22aCb02936A1529fd2Be", |
| 6 | + l1ChainId: 1, |
| 7 | + chainId: 167000, |
| 8 | + seedAccounts: [ |
| 9 | + { |
| 10 | + "0x69AA0361Dbb0527d4F1e5312403Bd41788fe61Fe": 199, |
| 11 | + }, |
| 12 | + { |
| 13 | + "0x00000968bfe78aa27cd380d629d61c89bd6b03e8": 1, |
| 14 | + }, |
| 15 | + ], |
| 16 | + get contractAddresses() { |
| 17 | + return { |
| 18 | + // ============ Implementations ============ |
| 19 | + // Shared Contracts |
| 20 | + BridgeImpl: getConstantAddress(`0${this.chainId}`, 1), |
| 21 | + ERC20VaultImpl: getConstantAddress(`0${this.chainId}`, 2), |
| 22 | + ERC721VaultImpl: getConstantAddress(`0${this.chainId}`, 3), |
| 23 | + ERC1155VaultImpl: getConstantAddress(`0${this.chainId}`, 4), |
| 24 | + SignalServiceImpl: getConstantAddress(`0${this.chainId}`, 5), |
| 25 | + SharedAddressManagerImpl: getConstantAddress(`0${this.chainId}`, 6), |
| 26 | + BridgedERC20Impl: getConstantAddress(`0${this.chainId}`, 10096), |
| 27 | + BridgedERC721Impl: getConstantAddress(`0${this.chainId}`, 10097), |
| 28 | + BridgedERC1155Impl: getConstantAddress(`0${this.chainId}`, 10098), |
| 29 | + // Rollup Contracts |
| 30 | + TaikoL2Impl: getConstantAddress(`0${this.chainId}`, 10001), |
| 31 | + RollupAddressManagerImpl: getConstantAddress(`0${this.chainId}`, 10002), |
| 32 | + // ============ Proxies ============ |
| 33 | + // Shared Contracts |
| 34 | + Bridge: getConstantAddress(this.chainId, 1), |
| 35 | + ERC20Vault: getConstantAddress(this.chainId, 2), |
| 36 | + ERC721Vault: getConstantAddress(this.chainId, 3), |
| 37 | + ERC1155Vault: getConstantAddress(this.chainId, 4), |
| 38 | + SignalService: getConstantAddress(this.chainId, 5), |
| 39 | + SharedAddressManager: getConstantAddress(this.chainId, 6), |
| 40 | + // Rollup Contracts |
| 41 | + TaikoL2: getConstantAddress(this.chainId, 10001), |
| 42 | + RollupAddressManager: getConstantAddress(this.chainId, 10002), |
| 43 | + }; |
| 44 | + }, |
| 45 | + param1559: { |
| 46 | + gasExcess: 1, |
| 47 | + }, |
| 48 | + predeployERC20: false, |
| 49 | +}; |
| 50 | + |
| 51 | +function getConstantAddress(prefix, suffix) { |
| 52 | + return `0x${prefix}${"0".repeat( |
| 53 | + ADDRESS_LENGTH - String(prefix).length - String(suffix).length, |
| 54 | + )}${suffix}`; |
| 55 | +} |
0 commit comments