Skip to content

Commit

Permalink
feat: add one world chain (#3013)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhangnong authored Nov 17, 2024
1 parent b57213a commit 70994fa
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/light-socks-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const oneWorld = /*#__PURE__*/ defineChain({
id: 309075,
name: 'One World Chain Mainnet',
nativeCurrency: {
decimals: 18,
name: 'OWCT',
symbol: 'OWCT',
},
rpcUrls: {
default: { http: ['https://mainnet-rpc.oneworldchain.org'] },
},
blockExplorers: {
default: {
name: 'One World Explorer',
url: 'https://mainnet.oneworldchain.org',
},
},
testnet: false,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ export { oasisTestnet } from './definitions/oasisTestnet.js'
export { oasys } from './definitions/oasys.js'
export { odysseyTestnet } from './definitions/odysseyTestnet.js'
export { okc } from './definitions/okc.js'
export { oneWorld } from './definitions/oneWorld.js'
export { oortMainnetDev } from './definitions/oortmainnetDev.js'
export { opBNB } from './definitions/opBNB.js'
export { opBNBTestnet } from './definitions/opBNBTestnet.js'
Expand Down

0 comments on commit 70994fa

Please sign in to comment.