Skip to content

Commit a9c8140

Browse files
committed
feat(codexeth): add contract deployment config for Codex EVM L2
CECHO-596
1 parent f70ae16 commit a9c8140

3 files changed

Lines changed: 48 additions & 3 deletions

File tree

config/chainIds.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export const CHAIN_IDS = {
6161
XTZEVM: 42793,
6262
H: 6985385,
6363
HOODETH: 999999, //TODO: update with correct mainnet chain ID when available
64+
CODEXETH: 81224,
6465

6566
// Testnet Networks
6667
BSC_TESTNET: 97,
@@ -110,5 +111,6 @@ export const CHAIN_IDS = {
110111
UNICHAIN_TESTNET: 1301,
111112
HPP_TESTNET: 181228,
112113
H_TESTNET: 7080969,
113-
HOODETH_TESTNET: 46630
114+
HOODETH_TESTNET: 46630,
115+
CODEXETH_TESTNET: 812242
114116
} as const;

hardhat.config.ts

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ const {
5757
FLOW_EXPLORER_API_KEY,
5858
HBAREVM_EXPLORER_API_KEY,
5959
ARCUSDC_EXPLORER_API_KEY,
60-
DOGEOS_EXPLORER_API_KEY
60+
DOGEOS_EXPLORER_API_KEY,
61+
CODEX_EXPLORER_API_KEY
6162
} = process.env;
6263

6364
const PLACEHOLDER_KEY: string =
@@ -960,6 +961,22 @@ const config: HardhatUserConfig = {
960961
`${PLACEHOLDER_KEY}`,
961962
`${PRIVATE_KEY_FOR_BATCHER_CONTRACT_DEPLOYMENT}`
962963
]
964+
},
965+
codexeth: {
966+
url: `https://rpc.codex.xyz/`,
967+
accounts: [
968+
`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`,
969+
`${PLACEHOLDER_KEY}`,
970+
`${PRIVATE_KEY_FOR_BATCHER_CONTRACT_DEPLOYMENT}`
971+
]
972+
},
973+
tcodexeth: {
974+
url: `https://rpc.codex-stg.xyz/`,
975+
accounts: [
976+
`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`,
977+
`${PLACEHOLDER_KEY}`,
978+
`${PRIVATE_KEY_FOR_BATCHER_CONTRACT_DEPLOYMENT}`
979+
]
963980
}
964981
},
965982
gasReporter: {
@@ -1137,7 +1154,11 @@ const config: HardhatUserConfig = {
11371154

11381155
// Robinhood Chain (explorer.testnet.chain.robinhood.com)
11391156
hoodethTestnet: `${ETHERSCAN_API_KEY}`,
1140-
hoodethMainnet: `${ETHERSCAN_API_KEY}`
1157+
hoodethMainnet: `${ETHERSCAN_API_KEY}`,
1158+
1159+
// CODEXETH
1160+
codexethTestnet: `${CODEX_EXPLORER_API_KEY}`,
1161+
codexethMainnet: `${CODEX_EXPLORER_API_KEY}`
11411162
},
11421163
customChains: [
11431164
{
@@ -1919,6 +1940,22 @@ const config: HardhatUserConfig = {
19191940
apiURL: 'https://explorer.testnet.chain.robinhood.com/api', // TODO: update to mainnet explorer API when available
19201941
browserURL: 'https://explorer.testnet.chain.robinhood.com' // TODO: update to mainnet explorer when available
19211942
}
1943+
},
1944+
{
1945+
network: 'codexethTestnet',
1946+
chainId: CHAIN_IDS.CODEXETH_TESTNET,
1947+
urls: {
1948+
apiURL: 'https://explorer.codex-stg.xyz/api',
1949+
browserURL: 'https://explorer.codex-stg.xyz'
1950+
}
1951+
},
1952+
{
1953+
network: 'codexethMainnet',
1954+
chainId: CHAIN_IDS.CODEXETH,
1955+
urls: {
1956+
apiURL: 'https://explorer.codex.xyz/api',
1957+
browserURL: 'https://explorer.codex.xyz'
1958+
}
19221959
}
19231960
]
19241961
},

scripts/chainConfig.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ export async function getChainConfig(chainId: number): Promise<ChainConfig> {
352352
forwarderContractName = 'ForwarderV4';
353353
forwarderFactoryContractName = 'ForwarderFactoryV4';
354354
break;
355+
356+
case CHAIN_IDS.CODEXETH:
357+
case CHAIN_IDS.CODEXETH_TESTNET:
358+
forwarderContractName = 'ForwarderV4';
359+
forwarderFactoryContractName = 'ForwarderFactoryV4';
360+
break;
355361
}
356362

357363
return {

0 commit comments

Comments
 (0)