From d5832151d26355e98cd8f06d7013c3684762bf61 Mon Sep 17 00:00:00 2001 From: Zhangnong Date: Mon, 4 Nov 2024 16:31:56 +0800 Subject: [PATCH] feat: add one world chain --- .changeset/light-socks-notice.md | 5 +++++ src/chains/definitions/oneWorld.ts | 21 +++++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 27 insertions(+) create mode 100644 .changeset/light-socks-notice.md create mode 100644 src/chains/definitions/oneWorld.ts diff --git a/.changeset/light-socks-notice.md b/.changeset/light-socks-notice.md new file mode 100644 index 0000000000..e7bcdefd81 --- /dev/null +++ b/.changeset/light-socks-notice.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added One World Chain Mainnet. diff --git a/src/chains/definitions/oneWorld.ts b/src/chains/definitions/oneWorld.ts new file mode 100644 index 0000000000..c23968f47a --- /dev/null +++ b/src/chains/definitions/oneWorld.ts @@ -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, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 81fc709809..e3cce43c7d 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -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'