Skip to content

Commit

Permalink
feat: add Omax mainnet (#3012)
Browse files Browse the repository at this point in the history
Co-authored-by: jxom <[email protected]>
  • Loading branch information
Zhangnong and jxom authored Nov 17, 2024
1 parent 70994fa commit bc7f4ae
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-pandas-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const omax = /*#__PURE__*/ defineChain({
id: 311,
name: 'Omax Mainnet',
nativeCurrency: {
decimals: 18,
name: 'OMAX',
symbol: 'OMAX',
},
rpcUrls: {
default: { http: ['https://mainapi.omaxray.com'] },
},
blockExplorers: {
default: {
name: 'Omax Explorer',
url: 'https://omaxscan.com',
},
},
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 { omax } from './definitions/omax.js'
export { oneWorld } from './definitions/oneWorld.js'
export { oortMainnetDev } from './definitions/oortmainnetDev.js'
export { opBNB } from './definitions/opBNB.js'
Expand Down

0 comments on commit bc7f4ae

Please sign in to comment.