From 3749838fdd915ebccc56505ecd5a8047bfb8f38d Mon Sep 17 00:00:00 2001 From: Judicodes <36573481+joshuanwankwo@users.noreply.github.com> Date: Wed, 14 Aug 2024 21:41:20 +0100 Subject: [PATCH] feat: add Curtis chain (#2614) * Adds Curtis chain * Delete package-lock.json * Update curtis.ts --------- Co-authored-by: jxom --- .changeset/polite-dogs-sip.md | 5 +++++ src/chains/definitions/curtis.ts | 19 +++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 25 insertions(+) create mode 100644 .changeset/polite-dogs-sip.md create mode 100644 src/chains/definitions/curtis.ts diff --git a/.changeset/polite-dogs-sip.md b/.changeset/polite-dogs-sip.md new file mode 100644 index 0000000000..e7584e9415 --- /dev/null +++ b/.changeset/polite-dogs-sip.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Curtis chain diff --git a/src/chains/definitions/curtis.ts b/src/chains/definitions/curtis.ts new file mode 100644 index 0000000000..4124f71da7 --- /dev/null +++ b/src/chains/definitions/curtis.ts @@ -0,0 +1,19 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const curtis = /*#__PURE__*/ defineChain({ + id: 33_111, + name: 'Curtis', + nativeCurrency: { name: 'ApeCoin', symbol: 'APE', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://rpc.curtis.apechain.com'], + }, + }, + blockExplorers: { + default: { + name: 'Curtis Explorer', + url: 'https://explorer.curtis.apechain.com', + }, + }, + testnet: true, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 0b6563d9a2..3a67d78231 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -68,6 +68,7 @@ export { cronos } from './definitions/cronos.js' export { cronoszkEVMTestnet } from './definitions/cronoszkEVMTestnet.js' export { cronosTestnet } from './definitions/cronosTestnet.js' export { crossbell } from './definitions/crossbell.js' +export { curtis } from './definitions/curtis.js' export { cyber } from './definitions/cyber.js' export { cyberTestnet } from './definitions/cyberTestnet.js' export { darwinia } from './definitions/darwinia.js'