Skip to content

Commit

Permalink
feat: add ubiq mainnet (#2983)
Browse files Browse the repository at this point in the history
Co-authored-by: Peng Ke <[email protected]>
  • Loading branch information
pk-850 and pk-850 authored Nov 7, 2024
1 parent 7d9ec2e commit 1a3e090
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-walls-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Ubiq Mainnet.
19 changes: 19 additions & 0 deletions src/chains/definitions/ubiq.ts
Original file line number Diff line number Diff line change
@@ -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,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 1a3e090

Please sign in to comment.