Skip to content

Commit

Permalink
feat: add viction chain (#2789)
Browse files Browse the repository at this point in the history
* Add vechain chain

* Update victionTestnet's contracts

* Create one-paper-swim.md

---------

Co-authored-by: peterhappynow <[email protected]>
  • Loading branch information
sina-london and peterhappynow authored Sep 29, 2024
1 parent 320e2dc commit b61a231
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/one-paper-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const viction = /*#__PURE__*/ defineChain({
id: 88,
name: 'Viction',
nativeCurrency: { name: 'Viction', symbol: 'VIC', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.viction.xyz'],
},
},
blockExplorers: {
default: {
name: 'VIC Scan',
url: 'https://vicscan.xyz',
},
},
testnet: false,
})
25 changes: 25 additions & 0 deletions src/chains/definitions/victionTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const victionTestnet = /*#__PURE__*/ defineChain({
id: 89,
name: 'Viction Testnet',
nativeCurrency: { name: 'Viction', symbol: 'VIC', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc-testnet.viction.xyz'],
},
},
blockExplorers: {
default: {
name: 'VIC Scan',
url: 'https://testnet.vicscan.xyz',
},
},
contracts: {
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 12170179,
},
},
testnet: true,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ 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 { viction } from './definitions/viction.js'
export { victionTestnet } from './definitions/victionTestnet.js'
export { wanchain } from './definitions/wanchain.js'
export { wanchainTestnet } from './definitions/wanchainTestnet.js'
export { weaveVMAlphanet } from './definitions/weavevmAlphanet.js'
Expand Down

0 comments on commit b61a231

Please sign in to comment.