From 1537d144504b23942a2a56389b53e25e9f3aa9f8 Mon Sep 17 00:00:00 2001 From: Peng Ke Date: Sat, 26 Oct 2024 21:36:28 +0800 Subject: [PATCH] feat: add ubiq mainnet --- .changeset/late-walls-compete.md | 5 +++++ src/chains/definitions/ubiq.ts | 19 +++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 25 insertions(+) create mode 100644 .changeset/late-walls-compete.md create mode 100644 src/chains/definitions/ubiq.ts diff --git a/.changeset/late-walls-compete.md b/.changeset/late-walls-compete.md new file mode 100644 index 0000000000..da93f39f86 --- /dev/null +++ b/.changeset/late-walls-compete.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Ubiq Mainnet. diff --git a/src/chains/definitions/ubiq.ts b/src/chains/definitions/ubiq.ts new file mode 100644 index 0000000000..d2c96ec052 --- /dev/null +++ b/src/chains/definitions/ubiq.ts @@ -0,0 +1,19 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const ubiq = /*#__PURE__*/ defineChain({ + id: 8, + name: 'Ubiq Mainnet', + nativeCurrency: { name: 'UBQ', symbol: 'UBQ', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://pyrus2.ubiqscan.io'], + }, + }, + blockExplorers: { + default: { + name: 'Ubiq Scan', + url: 'https://ubiqscan.io', + }, + }, + testnet: false, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 58be9dcbe9..c66aab940d 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -365,6 +365,7 @@ export { thunderCore } from './definitions/thunderCore.js' export { thunderTestnet } from './definitions/thunderTestnet.js' export { tiktrixTestnet } from './definitions/tiktrixTestnet.js' export { tron } from './definitions/tron.js' +export { ubiq } from './definitions/ubiq.js' export { ultron } from './definitions/ultron.js' export { ultronTestnet } from './definitions/ultronTestnet.js' export { unichainSepolia } from './definitions/unichainSepolia.js'