From 817023fe2de3edeff30e9454410d4ba346594e7e Mon Sep 17 00:00:00 2001 From: parchedpanda <65277457+qi-0826@users.noreply.github.com> Date: Thu, 21 Nov 2024 10:53:13 +0800 Subject: [PATCH] feat: add Six Protocol (#3033) --- .changeset/few-pianos-smoke.md | 5 +++++ src/chains/definitions/sixProtocol.ts | 23 +++++++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 29 insertions(+) create mode 100644 .changeset/few-pianos-smoke.md create mode 100644 src/chains/definitions/sixProtocol.ts diff --git a/.changeset/few-pianos-smoke.md b/.changeset/few-pianos-smoke.md new file mode 100644 index 0000000000..bc9b59190f --- /dev/null +++ b/.changeset/few-pianos-smoke.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Six Protocol. diff --git a/src/chains/definitions/sixProtocol.ts b/src/chains/definitions/sixProtocol.ts new file mode 100644 index 0000000000..3fd53059dd --- /dev/null +++ b/src/chains/definitions/sixProtocol.ts @@ -0,0 +1,23 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const sixProtocol = /*#__PURE__*/ defineChain({ + id: 98, + name: 'Six Protocol', + nativeCurrency: { + decimals: 18, + name: 'SIX', + symbol: 'SIX', + }, + rpcUrls: { + default: { + http: ['https://sixnet-rpc-evm.sixprotocol.net'], + }, + }, + blockExplorers: { + default: { + name: 'Six Protocol Scan', + url: 'https://sixscan.io/sixnet', + }, + }, + testnet: false, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index f2e083d90c..c7fa45a4a0 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -350,6 +350,7 @@ export { shimmer } from './definitions/shimmer.js' export { shimmerTestnet } from './definitions/shimmerTestnet.js' export { silicon } from './definitions/silicon.js' export { siliconSepolia } from './definitions/siliconSepolia.js' +export { sixProtocol } from './definitions/sixProtocol.js' export { skaleBlockBrawlers } from './definitions/skale/brawl.js' export { skaleCalypso } from './definitions/skale/calypso.js' export { skaleCalypsoTestnet } from './definitions/skale/calypsoTestnet.js'