Skip to content

Commit

Permalink
feat: add taiko mainnet (#2316)
Browse files Browse the repository at this point in the history
* ci: canary with provenance

* add taiko

* typo

* Bun

* bun

* bun

* Update taiko.ts

* Update index.ts

---------

Co-authored-by: Tom Meagher <tom@meagher.co>
Co-authored-by: abs3ntdev <abs3ntdev@users.noreply.github.com>
Co-authored-by: jxom <j@wevm.dev>
  • Loading branch information
4 people committed May 28, 2024
1 parent 7ab8e52 commit c612197
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-pens-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const taiko = /*#__PURE__*/ defineChain({
id: 167000,
name: 'Taiko Mainnet',
nativeCurrency: {
decimals: 18,
name: 'Ether',
symbol: 'ETH',
},
rpcUrls: {
default: {
http: ['https://rpc.mainnet.taiko.xyz'],
webSocket: ['wss://ws.mainnet.taiko.xyz'],
},
},
blockExplorers: {
default: {
name: 'Taikoscan',
url: 'https://taikoscan.network',
apiUrl: 'https://taikoscan.network/api',
},
},
contracts: {
multicall3: {
address: '0xcb2436774C3e191c85056d248EF4260ce5f27A9D',
},
},
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export { stratis } from './definitions/stratis.js'
export { syscoin } from './definitions/syscoin.js'
export { syscoinTestnet } from './definitions/syscoinTestnet.js'
export { taraxa } from './definitions/taraxa.js'
export { taiko } from './definitions/taiko.js'
export { taikoHekla } from './definitions/taikoHekla.js'
export { taikoJolnir } from './definitions/taikoJolnir.js'
export { taikoKatla } from './definitions/taikoKatla.js'
Expand Down

0 comments on commit c612197

Please sign in to comment.