UNPKG

@lido-sdk/constants

Version:

This project is being slowly deprecated and may not receive further updates. Check out [modern Lido SDK](https://github.com/lidofinance/lido-ethereum-sdk/pulls) to access latest functionality. It is actively maintained and is built for interacting with Li

18 lines (15 loc) 716 B
import invariant from 'tiny-invariant'; import { CHAINS } from './chains.js'; const WITHDRAWAL_QUEUE_BY_NETWORK = { [CHAINS.Mainnet]: '0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1', [CHAINS.Goerli]: '0xCF117961421cA9e546cD7f50bC73abCdB3039533', [CHAINS.Holesky]: '0xc7cc160b58F8Bb0baC94b80847E2CF2800565C50', [CHAINS.Sepolia]: '0x1583C7b3f4C3B008720E6BcE5726336b0aB25fdd', [CHAINS.Hoodi]: '0xfe56573178f1bcdf53F01A6E9977670dcBBD9186', }; const getWithdrawalQueueAddress = (chainId) => { const address = WITHDRAWAL_QUEUE_BY_NETWORK[chainId]; invariant(address, 'Chain is not supported'); return address; }; export { WITHDRAWAL_QUEUE_BY_NETWORK, getWithdrawalQueueAddress };