From 1a3e090d341c0f2e6b19da0090e6ca05b127b2ed Mon Sep 17 00:00:00 2001 From: Philip Kent <41664276+pk-850@users.noreply.github.com> Date: Fri, 8 Nov 2024 06:27:16 +0800 Subject: [PATCH] feat: add ubiq mainnet (#2983) Co-authored-by: Peng Ke --- .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 cfdbdc6223..99c04351b8 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -389,6 +389,7 @@ export { thunderTestnet } from './definitions/thunderTestnet.js' export { tiktrixTestnet } from './definitions/tiktrixTestnet.js' export { tomb } from './definitions/tomb.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'