From 38e411d379aef6171c35c01afe10cf9f52dfb430 Mon Sep 17 00:00:00 2001 From: dbeal Date: Fri, 20 Sep 2024 10:23:07 +0900 Subject: [PATCH] feat: add cannon chain (#2742) * Create cannon.js * fixes for add cannon chain * release chains for some reason its acting wierd --- .changeset/breezy-geese-train.md | 5 +++++ src/chains/definitions/cannon.ts | 14 ++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 20 insertions(+) create mode 100644 .changeset/breezy-geese-train.md create mode 100644 src/chains/definitions/cannon.ts diff --git a/.changeset/breezy-geese-train.md b/.changeset/breezy-geese-train.md new file mode 100644 index 0000000000..9614ab3d19 --- /dev/null +++ b/.changeset/breezy-geese-train.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Cannon chain. diff --git a/src/chains/definitions/cannon.ts b/src/chains/definitions/cannon.ts new file mode 100644 index 0000000000..6b98f7fa1b --- /dev/null +++ b/src/chains/definitions/cannon.ts @@ -0,0 +1,14 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const cannon = /*#__PURE__*/ defineChain({ + id: 13_370, + name: 'Cannon', + nativeCurrency: { + decimals: 18, + name: 'Ether', + symbol: 'ETH', + }, + rpcUrls: { + default: { http: ['http://127.0.0.1:8545'] }, + }, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 80d35583a4..e53dab8fa5 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -57,6 +57,7 @@ export { btr } from './definitions/btr.js' export { btrTestnet } from './definitions/btrTestnet.js' export { bxn } from './definitions/bxn.js' export { bxnTestnet } from './definitions/bxnTestnet.js' +export { cannon } from './definisions/cannon.js' export { canto } from './definitions/canto.js' export { celo } from './definitions/celo.js' export { celoAlfajores } from './definitions/celoAlfajores.js'