diff --git a/packages/constants/src/chains.ts b/packages/constants/src/chains.ts index 53a1417..c9c309a 100644 --- a/packages/constants/src/chains.ts +++ b/packages/constants/src/chains.ts @@ -4,6 +4,7 @@ export enum CHAINS { Mainnet = 1, Ropsten = 3, Rinkeby = 4, + Holesky = 17000, Goerli = 5, Kovan = 42, Kintsugi = 1337702, @@ -20,6 +21,7 @@ export enum CHAINS { export const CHAINS_IDS = [ CHAINS.Mainnet, CHAINS.Ropsten, + CHAINS.Holesky, CHAINS.Rinkeby, CHAINS.Goerli, CHAINS.Kovan, @@ -32,6 +34,7 @@ export const CHAINS_COLORS: { [CHAINS.Ropsten]: '#ff4a8d', [CHAINS.Rinkeby]: '#f6c343', [CHAINS.Goerli]: '#3099f2', + [CHAINS.Holesky]: '#AA336A', [CHAINS.Kovan]: '#9064ff', }; diff --git a/packages/constants/src/tokens.ts b/packages/constants/src/tokens.ts index 351a6c5..13fe136 100644 --- a/packages/constants/src/tokens.ts +++ b/packages/constants/src/tokens.ts @@ -28,6 +28,11 @@ export const TOKENS_BY_NETWORK: { [TOKENS.STETH]: '0x1643e812ae58766192cf7d2cf9567df2c37e9b7f', [TOKENS.LDO]: '0x56340274fB5a72af1A3C6609061c451De7961Bd4', }, + [CHAINS.Holesky]: { + [TOKENS.WSTETH]: '0xHOLESKY_TODO', + [TOKENS.STETH]: '0xHOLESKY_TODO', + [TOKENS.LDO]: '0xHOLESKY_TODO', + }, }; export const getTokenAddress = (chainId: CHAINS, token: TOKENS): string => { diff --git a/packages/constants/src/withdrawal_queue.ts b/packages/constants/src/withdrawal_queue.ts index 04ae382..6125c07 100644 --- a/packages/constants/src/withdrawal_queue.ts +++ b/packages/constants/src/withdrawal_queue.ts @@ -6,6 +6,7 @@ export const WITHDRAWAL_QUEUE_BY_NETWORK: { } = { [CHAINS.Mainnet]: '0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1', [CHAINS.Goerli]: '0xCF117961421cA9e546cD7f50bC73abCdB3039533', + [CHAINS.Holesky]: '0xHOLESKY_TODO', }; export const getWithdrawalQueueAddress = (chainId: CHAINS): string => { diff --git a/packages/fetch/src/providersUrls.ts b/packages/fetch/src/providersUrls.ts index 8510d31..03ba5c9 100644 --- a/packages/fetch/src/providersUrls.ts +++ b/packages/fetch/src/providersUrls.ts @@ -15,6 +15,8 @@ export const getInfuraRPCUrl = (chainId: CHAINS, apiKey: string): string => { return `https://goerli.infura.io/v3/${apiKey}`; case CHAINS.Kovan: return `https://kovan.infura.io/v3/${apiKey}`; + case CHAINS.Holesky: + return `0xHOLESKY_TODO`; default: invariant(false, 'Chain is not supported'); } @@ -34,6 +36,8 @@ export const getAlchemyRPCUrl = (chainId: CHAINS, apiKey: string): string => { return `https://eth-goerli.alchemyapi.io/v2/${apiKey}`; case CHAINS.Kovan: return `https://eth-kovan.alchemyapi.io/v2/${apiKey}`; + case CHAINS.Holesky: + return `0xHOLESKY_TODO`; default: invariant(false, 'Chain is not supported'); } diff --git a/packages/helpers/src/etherscan.ts b/packages/helpers/src/etherscan.ts index 18cc3c7..fc1f9da 100644 --- a/packages/helpers/src/etherscan.ts +++ b/packages/helpers/src/etherscan.ts @@ -14,6 +14,7 @@ export const ETHERSCAN_PREFIX_BY_NETWORK: { } = { [CHAINS.Mainnet]: '', [CHAINS.Ropsten]: 'ropsten.', + [CHAINS.Holesky]: '0xHOLESKY_TODO', [CHAINS.Rinkeby]: 'rinkeby.', [CHAINS.Goerli]: 'goerli.', [CHAINS.Kovan]: 'kovan.',