Skip to content

Commit

Permalink
feat: add OptimismSepolia chain
Browse files Browse the repository at this point in the history
  • Loading branch information
solidovic committed Sep 19, 2024
1 parent 79eeb22 commit ff87e3e
Show file tree
Hide file tree
Showing 2 changed files with 8 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 @@ -17,6 +17,7 @@ export enum CHAINS {
Fuji = 43113,
Avalanche = 43114,
Sepolia = 11155111,
OptimismSepolia = 11155420,
}

export const CHAINS_IDS = [
Expand All @@ -27,6 +28,7 @@ export const CHAINS_IDS = [
CHAINS.Goerli,
CHAINS.Kovan,
CHAINS.Sepolia,
CHAINS.OptimismSepolia,
];

export const CHAINS_COLORS: {
Expand All @@ -39,6 +41,7 @@ export const CHAINS_COLORS: {
[CHAINS.Holesky]: '#AA346A',
[CHAINS.Kovan]: '#9064ff',
[CHAINS.Sepolia]: '#FFD700',
[CHAINS.OptimismSepolia]: '#FF8C00',
};

export const getChainColor = (chainId: CHAINS): string => {
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 @@ -38,6 +38,11 @@ export const TOKENS_BY_NETWORK: {
[TOKENS.STETH]: '0x3e3FE7dBc6B4C189E7128855dD526361c49b40Af',
[TOKENS.LDO]: '0xd06dF83b8ad6D89C86a187fba4Eae918d497BdCB',
},
[CHAINS.OptimismSepolia]: {
[TOKENS.WSTETH]: '0x24B47cd3A74f1799b32B2de11073764Cb1bb318B',
[TOKENS.STETH]: '0xf49d208b5c7b10415c7beafe9e656f2df9edfe3b',
[TOKENS.LDO]: undefined,
},
};

export const getTokenAddress = (chainId: CHAINS, token: TOKENS): string => {
Expand Down

0 comments on commit ff87e3e

Please sign in to comment.