Skip to content

Commit

Permalink
Merge pull request #110 from lidofinance/feature/holesky-testnet
Browse files Browse the repository at this point in the history
Holesky testnet
  • Loading branch information
DiRaiks authored Oct 3, 2023
2 parents 2df55db + d5a0929 commit 749550e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/constants/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn add @lido-sdk/constants
```ts
import { CHAINS } from '@lido-sdk/constants';

console.log(CHAINS.Mainnet, CHAINS.Goerli); // 1, 5
console.log(CHAINS.Mainnet, CHAINS.Holesky); // 1, 17000
```

### Array of chains ids
Expand Down
13 changes: 7 additions & 6 deletions packages/constants/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import invariant from 'tiny-invariant';

export enum CHAINS {
Mainnet = 1,
Ropsten = 3,
Rinkeby = 4,
Goerli = 5,
Kovan = 42,
Kintsugi = 1337702,
Kiln = 1337802,
Ropsten = 3, // decommissioned
Rinkeby = 4, // decommissioned
Goerli = 5, // deprecated
Kovan = 42, // decommissioned
Kintsugi = 1337702, // decommissioned
Kiln = 1337802, // decommissioned
Holesky = 17000,
Moonbeam = 1284,
Moonriver = 1285,
Moonbase = 1287,
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]: '0x8d09a4502Cc8Cf1547aD300E066060D043f6982D',
[TOKENS.STETH]: '0x3F1c547b21f65e10480dE3ad8E19fAAC46C95034',
[TOKENS.LDO]: '0x14ae7daeecdf57034f3E9db8564e46Dba8D97344',
},
};

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]: '0xc7cc160b58F8Bb0baC94b80847E2CF2800565C50',
};

export const getWithdrawalQueueAddress = (chainId: CHAINS): string => {
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 @@ -17,6 +17,7 @@ export const ETHERSCAN_PREFIX_BY_NETWORK: {
[CHAINS.Rinkeby]: 'rinkeby.',
[CHAINS.Goerli]: 'goerli.',
[CHAINS.Kovan]: 'kovan.',
[CHAINS.Holesky]: 'holesky.',
};

export const getEtherscanPrefix = (chainId: CHAINS): string => {
Expand Down

0 comments on commit 749550e

Please sign in to comment.