-
-
Notifications
You must be signed in to change notification settings - Fork 809
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Linea Sepolia chain (#2056)
* feat: Add Linea Sepolia chain * fix: format code * fix: deprecate lineaTestnet in favor of lineaGoerli
- Loading branch information
Showing
4 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"viem": patch | ||
--- | ||
|
||
Added Linea Sepolia chain. | ||
Updated Linea Goerli export name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { defineChain } from '../../utils/chain/defineChain.js' | ||
|
||
export const lineaGoerli = /*#__PURE__*/ defineChain({ | ||
id: 59_140, | ||
name: 'Linea Goerli Testnet', | ||
nativeCurrency: { name: 'Linea Ether', symbol: 'ETH', decimals: 18 }, | ||
rpcUrls: { | ||
default: { | ||
http: ['https://rpc.goerli.linea.build'], | ||
webSocket: ['wss://rpc.goerli.linea.build'], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Etherscan', | ||
url: 'https://goerli.lineascan.build', | ||
apiUrl: 'https://api-goerli.lineascan.build/api', | ||
}, | ||
}, | ||
contracts: { | ||
multicall3: { | ||
address: '0xca11bde05977b3631167028862be2a173976ca11', | ||
blockCreated: 498623, | ||
}, | ||
}, | ||
testnet: true, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { defineChain } from '../../utils/chain/defineChain.js' | ||
|
||
export const lineaSepolia = /*#__PURE__*/ defineChain({ | ||
id: 59_141, | ||
name: 'Linea Sepolia Testnet', | ||
nativeCurrency: { name: 'Linea Ether', symbol: 'ETH', decimals: 18 }, | ||
rpcUrls: { | ||
default: { | ||
http: ['https://rpc.sepolia.linea.build'], | ||
webSocket: ['wss://rpc.sepolia.linea.build'], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Etherscan', | ||
url: 'https://sepolia.lineascan.build', | ||
apiUrl: 'https://api-sepolia.lineascan.build/api', | ||
}, | ||
}, | ||
contracts: { | ||
multicall3: { | ||
address: '0xca11bde05977b3631167028862be2a173976ca11', | ||
blockCreated: 227427, | ||
}, | ||
}, | ||
testnet: true, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters