From e7ec668c6b8bce480f19df33833026b447f6dd12 Mon Sep 17 00:00:00 2001 From: Isabelle Ho Date: Tue, 19 Nov 2024 12:17:00 +0800 Subject: [PATCH] feat: add DisChain --- .changeset/polite-teachers-sniff.md | 5 +++++ src/chains/definitions/disChain.ts | 22 ++++++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 28 insertions(+) create mode 100644 .changeset/polite-teachers-sniff.md create mode 100644 src/chains/definitions/disChain.ts diff --git a/.changeset/polite-teachers-sniff.md b/.changeset/polite-teachers-sniff.md new file mode 100644 index 0000000000..59cc40b0e4 --- /dev/null +++ b/.changeset/polite-teachers-sniff.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added DisChain. diff --git a/src/chains/definitions/disChain.ts b/src/chains/definitions/disChain.ts new file mode 100644 index 0000000000..c48327b845 --- /dev/null +++ b/src/chains/definitions/disChain.ts @@ -0,0 +1,22 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const disChain = /*#__PURE__*/ defineChain({ + id: 513100, + name: 'DisChain', + nativeCurrency: { + decimals: 18, + name: 'DIS', + symbol: 'DIS', + }, + rpcUrls: { + default: { + http: ['https://rpc.dischain.xyz'], + }, + }, + blockExplorers: { + default: { + name: 'DisChain Explorer', + url: 'https://www.oklink.com/dis', + }, + }, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index c3dc9ca87d..6b64c8bb5d 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -103,6 +103,7 @@ export { defichainEvmTestnet } from './definitions/defichainEvmTestnet.js' export { degen } from './definitions/degen.js' export { dfk } from './definitions/dfk.js' export { diode } from './definitions/diode.js' +export { disChain } from './definitions/disChain.js' export { dodochainTestnet } from './definitions/dodochainTestnet.js' export { dogechain } from './definitions/dogechain.js' export { dosChain } from './definitions/dosChain.js'