Skip to content

Commit

Permalink
feat: add ql1 chain (#2859)
Browse files Browse the repository at this point in the history
* Added ql1 chain

* Updated ql1 file

* Revert pnpm-lock.yaml file

* Update index.ts

---------

Co-authored-by: jxom <j@wevm.dev>
  • Loading branch information
RobotMasterxo and jxom authored Oct 15, 2024
1 parent 5c9ed2f commit 5889209
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-rats-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const ql1 = /*#__PURE__*/ defineChain({
id: 766,
name: 'QL1',
nativeCurrency: {
decimals: 18,
name: 'QOM',
symbol: 'QOM',
},
rpcUrls: {
default: {
http: [
'https://rpc.qom.one',
],
},
},
blockExplorers: {
default: {
name: 'Ql1 Explorer',
url: 'https://scan.qom.one',
},
},
contracts: {
multicall3: {
address: '0x7A52370716ea730585884F5BDB0f6E60C39b8C64',
},
},
testnet: false,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ export { polygonZkEvmCardona } from './definitions/polygonZkEvmCardona.js'
export { polygonZkEvmTestnet } from './definitions/polygonZkEvmTestnet.js'
export { pulsechain } from './definitions/pulsechain.js'
export { pulsechainV4 } from './definitions/pulsechainV4.js'
export { ql1 } from './definitions/ql1.js'
export { qMainnet } from './definitions/qMainnet.js'
export { qTestnet } from './definitions/qTestnet.js'
export { real } from './definitions/real.js'
Expand Down

0 comments on commit 5889209

Please sign in to comment.