Skip to content

Commit

Permalink
chore: setup holesky placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Sep 8, 2023
1 parent 160b4eb commit 954328c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/constants/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export enum CHAINS {
Mainnet = 1,
Ropsten = 3,
Rinkeby = 4,
Holesky = 17000,
Goerli = 5,
Kovan = 42,
Kintsugi = 1337702,
Expand All @@ -20,6 +21,7 @@ export enum CHAINS {
export const CHAINS_IDS = [
CHAINS.Mainnet,
CHAINS.Ropsten,
CHAINS.Holesky,
CHAINS.Rinkeby,
CHAINS.Goerli,
CHAINS.Kovan,
Expand All @@ -32,6 +34,7 @@ export const CHAINS_COLORS: {
[CHAINS.Ropsten]: '#ff4a8d',
[CHAINS.Rinkeby]: '#f6c343',
[CHAINS.Goerli]: '#3099f2',
[CHAINS.Holesky]: '#AA336A',
[CHAINS.Kovan]: '#9064ff',
};

Expand Down
5 changes: 5 additions & 0 deletions packages/constants/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
1 change: 1 addition & 0 deletions packages/constants/src/withdrawal_queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
4 changes: 4 additions & 0 deletions packages/fetch/src/providersUrls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand All @@ -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');
}
Expand Down
1 change: 1 addition & 0 deletions packages/helpers/src/etherscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down

0 comments on commit 954328c

Please sign in to comment.