From fb9d29267b8f1a9d30b13dce1581504282ffaee6 Mon Sep 17 00:00:00 2001 From: Defiboy Date: Mon, 9 Dec 2024 08:15:39 +0100 Subject: [PATCH] feat: add Creator testnet (#3108) * Added creatorTestnet * feat: Added Creator Testnet Chain * feat: added creatorTestnet chain * Update creatorTestnet.ts * Create old-kiwis-sneeze.md --------- Co-authored-by: jxom <7336481+jxom@users.noreply.github.com> --- .changeset/old-kiwis-sneeze.md | 5 +++++ src/chains/definitions/creatorTestnet.ts | 25 ++++++++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 31 insertions(+) create mode 100644 .changeset/old-kiwis-sneeze.md create mode 100644 src/chains/definitions/creatorTestnet.ts diff --git a/.changeset/old-kiwis-sneeze.md b/.changeset/old-kiwis-sneeze.md new file mode 100644 index 0000000000..6cddeac159 --- /dev/null +++ b/.changeset/old-kiwis-sneeze.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Creator testnet. diff --git a/src/chains/definitions/creatorTestnet.ts b/src/chains/definitions/creatorTestnet.ts new file mode 100644 index 0000000000..de048fd9a8 --- /dev/null +++ b/src/chains/definitions/creatorTestnet.ts @@ -0,0 +1,25 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const creatorTestnet = defineChain({ + id: 66665, + name: 'Creator', + nativeCurrency: { + decimals: 18, + name: 'Ether', + symbol: 'ETH', + }, + rpcUrls: { + default: { + http: ['https://rpc.creatorchain.io'], + }, + }, + blockExplorers: { + default: { name: 'Explorer', url: 'https://explorer.creatorchain.io' }, + }, + contracts: { + multicall3: { + address: '0xcA11bde05977b3631167028862bE2a173976CA11', + }, + }, + testnet: true, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 18f5fffd75..4ccc82b62e 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -91,6 +91,7 @@ export { coreDao } from './definitions/coreDao.js' export { corn } from './definitions/corn.js' export { cornTestnet } from './definitions/cornTestnet.js' export { crab } from './definitions/crab.js' +export { creatorTestnet } from './definitions/creatorTestnet.js' export { cronos } from './definitions/cronos.js' export { cronosTestnet } from './definitions/cronosTestnet.js' export { cronoszkEVM } from './definitions/cronoszkEVM.js'