Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Add Linea Testnet Support (#214)
Browse files Browse the repository at this point in the history
* Add Linea Testnet Support

* Update packages/chains/src/lineaTestnet.ts

* Update packages/chains/src/lineaTestnet.ts

* Update packages/chains/src/lineaTestnet.ts

---------

Co-authored-by: awkweb <tom@meagher.co>
  • Loading branch information
Saviour1001 and tmm authored Apr 6, 2023
1 parent 9bb22b6 commit f157ffc
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-badgers-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@wagmi/chains': patch
---

Added Linea Testnet Support
1 change: 1 addition & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export { gnosisChiado } from './gnosisChiado'
export { hardhat } from './hardhat'
export { harmonyOne } from './harmonyOne'
export { klaytn } from './klaytn'
export { lineaTestnet } from './lineaTestnet'
export { localhost } from './localhost'
export { mainnet } from './mainnet'
export { metis } from './metis'
Expand Down
25 changes: 25 additions & 0 deletions packages/chains/src/lineaTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Chain } from './types'

export const lineaTestnet = {
id: 59140,
name: 'Linea Testnet',
network: 'linea-testnet',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.goerli.linea.build'],
webSocket: ['wss://rpc.goerli.linea.build'],
},
public: {
http: ['https://rpc.goerli.linea.build'],
webSocket: ['wss://rpc.goerli.linea.build'],
},
},
blockExplorers: {
default: {
name: 'BlockScout',
url: 'https://explorer.goerli.linea.build',
},
},
testnet: true,
} as const satisfies Chain

0 comments on commit f157ffc

Please sign in to comment.