diff --git a/.vscode/launch.json b/.vscode/launch.json index 0fa8d26d0..168c202d4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -58,6 +58,7 @@ "fantom", "gnosis", "harmony", + "linea", "moonbeam", "optimism", "polygon", diff --git a/src/lib/chains.ts b/src/lib/chains.ts index 2f1b10eb2..a09349d65 100644 --- a/src/lib/chains.ts +++ b/src/lib/chains.ts @@ -24,6 +24,7 @@ export const chainsNames = [ 'polygon', 'polygon-zkevm', 'zksync-era', + 'linea', ] as const export type Chain = (typeof chainsNames)[number] @@ -288,6 +289,23 @@ export const chains = [ }, indexed: true, }, + { + id: 'linea', + chainId: 59144, + name: 'Linea', + rpcUrls: [ + http('https://linea.blockpi.network/v1/rpc/public', { batch: { wait: 0, batchSize: 5_000 } }), + http('https://rpc.linea.build', { batch: { wait: 0, batchSize: 5_000 } }), + http('https://1rpc.io/linea', { batch: { batchSize: 1_000, wait: 10 } }), + ], + nativeCurrency: { + address: ADDRESS_ZERO, + decimals: 18, + name: 'Ether', + symbol: 'ETH', + }, + indexed: false, + }, { id: 'zksync-era', chainId: 324, @@ -333,6 +351,7 @@ export const toDefiLlamaChain: { [key in Chain]: string } = { moonbeam: 'moonbeam', optimism: 'optimism', polygon: 'polygon', + linea: 'linea', 'polygon-zkevm': 'polygon zkevm', 'zksync-era': 'zksync era', }