From f3d6ae98838a863d9db8693308584b0021661143 Mon Sep 17 00:00:00 2001 From: 0xPeluche <0xpeluche@proton.me> Date: Tue, 14 Nov 2023 13:13:01 +0100 Subject: [PATCH 1/2] Add Linea on chain list --- src/lib/chains.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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', } From f4a4f53c82b8f14b1bf1b8d856ce16c32ec82af9 Mon Sep 17 00:00:00 2001 From: 0xPeluche <0xpeluche@proton.me> Date: Tue, 14 Nov 2023 13:14:26 +0100 Subject: [PATCH 2/2] run build --- .vscode/launch.json | 1 + 1 file changed, 1 insertion(+) 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",