Skip to content

Commit

Permalink
Add LoopNetwork Mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
fengbaolong committed Oct 12, 2024
1 parent 64a9f5d commit 4d47c13
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-bags-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const loop = /*#__PURE__*/ defineChain({
id: 15551,
name: 'LoopNetwork Mainnet',
nativeCurrency: {
name: 'LOOP',
symbol: 'LOOP',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://api.mainnetloop.com'],
},
},
blockExplorers: {
default: {
name: 'LoopNetwork Blockchain Explorer',
url: 'https://explorer.mainnetloop.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 @@ -199,6 +199,7 @@ export { lineaTestnet } from './definitions/lineaTestnet.js'
export { lisk } from './definitions/lisk.js'
export { liskSepolia } from './definitions/liskSepolia.js'
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 { lycan } from './definitions/lycan.js'
Expand Down

0 comments on commit 4d47c13

Please sign in to comment.