From e135e9fd966fce6791a6eee1e59fe7bdae7be73b Mon Sep 17 00:00:00 2001 From: parchedpanda <65277457+qi-0826@users.noreply.github.com> Date: Mon, 25 Nov 2024 15:04:38 +0800 Subject: [PATCH] feat: add SwissDLT Mainnet (#3053) --- .changeset/young-tips-mix.md | 5 +++++ src/chains/definitions/swissdlt.ts | 23 +++++++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 29 insertions(+) create mode 100644 .changeset/young-tips-mix.md create mode 100644 src/chains/definitions/swissdlt.ts diff --git a/.changeset/young-tips-mix.md b/.changeset/young-tips-mix.md new file mode 100644 index 0000000000..c3b51c664c --- /dev/null +++ b/.changeset/young-tips-mix.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added SwissDLT Mainnet. diff --git a/src/chains/definitions/swissdlt.ts b/src/chains/definitions/swissdlt.ts new file mode 100644 index 0000000000..e63fd9d5c2 --- /dev/null +++ b/src/chains/definitions/swissdlt.ts @@ -0,0 +1,23 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const swissdlt = /*#__PURE__*/ defineChain({ + id: 94, + name: 'SwissDLT Mainnet', + nativeCurrency: { + decimals: 18, + name: 'BCTS', + symbol: 'BCTS', + }, + rpcUrls: { + default: { + http: ['https://rpc.swissdlt.ch'], + }, + }, + blockExplorers: { + default: { + name: 'SwissDLT Explorer', + url: 'https://explorer.swissdlt.ch', + }, + }, + testnet: false, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index af1e1663f3..9bd45718e7 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -389,6 +389,7 @@ export { superposition } from './definitions/superposition.js' export { swan } from './definitions/swan.js' export { swanProximaTestnet } from './definitions/swanProximaTestnet.js' export { swanSaturnTestnet } from './definitions/swanSaturnTestnet.js' +export { swissdlt } from './definitions/swissdlt.js' export { syscoin } from './definitions/syscoin.js' export { syscoinTestnet } from './definitions/syscoinTestnet.js' export { taiko } from './definitions/taiko.js'