From 6009ed415acdc9289cb45e8256c8800a3f1ccf1a Mon Sep 17 00:00:00 2001 From: parchedpanda Date: Mon, 4 Nov 2024 18:25:29 +0800 Subject: [PATCH] Add Six Protocol --- .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'