Skip to content

Commit

Permalink
feat: add Velas chain (#2919)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhangnong authored Oct 24, 2024
1 parent f633907 commit 5ff60a3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-llamas-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const velas = /*#__PURE__*/ defineChain({
id: 106,
name: 'Velas EVM Mainnet',
nativeCurrency: { name: 'VLX', symbol: 'VLX', decimals: 18 },
rpcUrls: {
default: {
http: ['https://evmexplorer.velas.com/rpc'],
},
},
blockExplorers: {
default: {
name: 'Velas Explorer',
url: 'https://evmexplorer.velas.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 @@ -378,6 +378,7 @@ export { uniqueOpal } from './definitions/uniqueOpal.js'
export { uniqueQuartz } from './definitions/uniqueQuartz.js'
export { unreal } from './definitions/unreal.js'
export { vechain } from './definitions/vechain.js'
export { velas } from './definitions/velas.js'
export { viction } from './definitions/viction.js'
export { victionTestnet } from './definitions/victionTestnet.js'
export { vision } from './definitions/vision.js'
Expand Down

0 comments on commit 5ff60a3

Please sign in to comment.