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

Linea #1035

Merged
merged 2 commits into from
Nov 14, 2023
Merged

Linea #1035

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
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"fantom",
"gnosis",
"harmony",
"linea",
"moonbeam",
"optimism",
"polygon",
Expand Down
19 changes: 19 additions & 0 deletions src/lib/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const chainsNames = [
'polygon',
'polygon-zkevm',
'zksync-era',
'linea',
] as const

export type Chain = (typeof chainsNames)[number]
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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',
}
Expand Down