Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Holesky testnet #110

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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