Skip to content

Commit

Permalink
feat: add sei chain (#2349)
Browse files Browse the repository at this point in the history
* sei

* websocket

* websocket

* update multicall3

* match name

---------

Co-authored-by: abs3ntdev <[email protected]>
  • Loading branch information
abs3ntdev and abs3ntdev authored Jun 1, 2024
1 parent 6cb084d commit 4bfe975
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/witty-beans-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added sei chain
24 changes: 24 additions & 0 deletions src/chains/definitions/sei.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const sei = /*#__PURE__*/ defineChain({
id: 1329,
name: 'Sei Network',
nativeCurrency: { name: 'Sei', symbol: 'SEI', decimals: 18 },
rpcUrls: {
default: {
http: ['https://evm-rpc.sei-apis.com/'],
webSocket: ['wss://evm-ws.sei-apis.com/'],
},
},
blockExplorers: {
default: {
name: 'Seitrace',
url: 'https://seitrace.com',
},
},
contracts: {
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
},
},
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ export { sapphire } from './definitions/sapphire.js'
export { sapphireTestnet } from './definitions/sapphireTestnet.js'
export { scroll } from './definitions/scroll.js'
export { scrollSepolia } from './definitions/scrollSepolia.js'
export { sei } from './definitions/sei.js'
export { seiDevnet } from './definitions/seiDevnet.js'
export { sepolia } from './definitions/sepolia.js'
export { shimmer } from './definitions/shimmer.js'
Expand Down

0 comments on commit 4bfe975

Please sign in to comment.