From 5889209f74b00a3441b582e0bb29237ba94cdc1a Mon Sep 17 00:00:00 2001 From: RobotMasterxo <91569053+RobotMasterxo@users.noreply.github.com> Date: Wed, 16 Oct 2024 01:54:43 +0200 Subject: [PATCH] feat: add ql1 chain (#2859) * Added ql1 chain * Updated ql1 file * Revert pnpm-lock.yaml file * Update index.ts --------- Co-authored-by: jxom --- .changeset/fifty-rats-cross.md | 5 +++++ src/chains/definitions/ql1.ts | 30 ++++++++++++++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 36 insertions(+) create mode 100644 .changeset/fifty-rats-cross.md create mode 100644 src/chains/definitions/ql1.ts diff --git a/.changeset/fifty-rats-cross.md b/.changeset/fifty-rats-cross.md new file mode 100644 index 0000000000..748a95fe57 --- /dev/null +++ b/.changeset/fifty-rats-cross.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added ql1 chain diff --git a/src/chains/definitions/ql1.ts b/src/chains/definitions/ql1.ts new file mode 100644 index 0000000000..bd32046eb3 --- /dev/null +++ b/src/chains/definitions/ql1.ts @@ -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, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 72f7ffdaa8..7be9593f5a 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -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'