Skip to content

Commit

Permalink
feat: add Vanar Mainnet (#3019)
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 18, 2024
1 parent 42ea113 commit 4653893
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/neat-donkeys-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const vanar = /*#__PURE__*/ defineChain({
id: 2040,
name: 'Vanar Mainnet',
nativeCurrency: { name: 'VANRY', symbol: 'VANRY', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.vanarchain.com'],
},
},
blockExplorers: {
default: {
name: 'Vanar Mainnet Explorer',
url: 'https://explorer.vanarchain.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 @@ -411,6 +411,7 @@ export { unique } from './definitions/unique.js'
export { uniqueOpal } from './definitions/uniqueOpal.js'
export { uniqueQuartz } from './definitions/uniqueQuartz.js'
export { unreal } from './definitions/unreal.js'
export { vanar } from './definitions/vanar.js'
export { vechain } from './definitions/vechain.js'
export { velas } from './definitions/velas.js'
export { viction } from './definitions/viction.js'
Expand Down

0 comments on commit 4653893

Please sign in to comment.