Skip to content

Commit

Permalink
feat: add Lumia Mainnet and Testnet chains (#3189)
Browse files Browse the repository at this point in the history
- Introduced Lumia Mainnet and Testnet definitions in the chains module.
- Updated pnpm-lock.yaml to reflect dependency changes, including viem version bump to 2.22.2.
- Added changeset for versioning.
  • Loading branch information
dnzdlklc authored Jan 6, 2025
1 parent d555ad9 commit d566907
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-cups-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Lumia Mainnet and Testnet
33 changes: 29 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

export const lumiaMainnet = /*#__PURE__*/ defineChain({
id: 994873017,
name: 'Lumia Mainnet',
network: 'LumiaMainnet',
nativeCurrency: { name: 'Lumia', symbol: 'LUMIA', decimals: 18 },
rpcUrls: {
default: {
http: ['https://mainnet-rpc.lumia.org'],
},
},
blockExplorers: {
default: {
name: 'Lumia Explorer',
url: 'https://explorer.lumia.org/',
},
},
contracts: {
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 3975939,
},
},
testnet: false,
})
30 changes: 30 additions & 0 deletions src/chains/definitions/lumiaTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const lumiaTestnet = /*#__PURE__*/ defineChain({
id: 1952959480,
name: 'Lumia Testnet',
network: 'LumiaTestnet',
nativeCurrency: {
name: 'Lumia',
symbol: 'LUMIA',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://testnet-rpc.lumia.org'],
},
},
blockExplorers: {
default: {
name: 'Lumia Testnet Explorer',
url: 'https://testnet-explorer.lumia.org/',
},
},
contracts: {
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 2235063,
},
},
testnet: true,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ export { localhost } from './definitions/localhost.js'
export { loop } from './definitions/loop.js'
export { lukso } from './definitions/lukso.js'
export { luksoTestnet } from './definitions/luksoTestnet.js'
export { lumiaMainnet } from './definitions/lumiaMainnet.js'
export { lumiaTestnet } from './definitions/lumiaTestnet.js'
export { lycan } from './definitions/lycan.js'
export { lyra } from './definitions/lyra.js'
export { mainnet } from './definitions/mainnet.js'
Expand Down

0 comments on commit d566907

Please sign in to comment.