Skip to content

Commit

Permalink
feat: add Velas chain
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhangnong committed Oct 8, 2024
1 parent 690f6f5 commit e0a5e18
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 @@ -349,6 +349,7 @@ export { uniqueQuartz } from './definitions/uniqueQuartz.js'
export { uniqueOpal } from './definitions/uniqueOpal.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 e0a5e18

Please sign in to comment.