Skip to content

Commit

Permalink
Add LUKSO Testnet (#1966)
Browse files Browse the repository at this point in the history
  • Loading branch information
YamenMerhi committed Mar 16, 2024
1 parent cadff3d commit a215b6f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-rats-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added LUKSO Testnet
6 changes: 6 additions & 0 deletions src/chains/definitions/lukso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ export const lukso = /*#__PURE__*/ defineChain({
apiUrl: 'https://api.explorer.execution.mainnet.lukso.network/api',
},
},
contracts: {
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 468183,
},
},
})
31 changes: 31 additions & 0 deletions src/chains/definitions/luksoTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const luksoTestnet = /*#__PURE__*/ defineChain({
id: 4201,
name: 'LUKSO Testnet',
nativeCurrency: {
decimals: 18,
name: 'LUKSO Testnet',
symbol: 'LYXt',
},
rpcUrls: {
default: {
http: ['https://rpc.testnet.lukso.network'],
webSocket: ['wss://ws-rpc.testnet.lukso.network'],
},
},
blockExplorers: {
default: {
name: 'LUKSO Testnet Explorer',
url: 'https://explorer.execution.testnet.lukso.network',
apiUrl: 'https://api.explorer.execution.testnet.lukso.network/api',
},
},
contracts: {
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 605348,
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export { lineaTestnet } from './definitions/lineaTestnet.js'
export { liskSepolia } from './definitions/liskSepolia.js'
export { localhost } from './definitions/localhost.js'
export { lukso } from './definitions/lukso.js'
export { luksoTestnet } from './definitions/luksoTestnet.js'
export { mainnet } from './definitions/mainnet.js'
export { mandala } from './definitions/mandala.js'
export { manta } from './definitions/manta.js'
Expand Down

0 comments on commit a215b6f

Please sign in to comment.