Skip to content

Commit

Permalink
feat: add cannon chain (#2742)
Browse files Browse the repository at this point in the history
* Create cannon.js

* fixes for add cannon chain

* release chains

for some reason its acting wierd
  • Loading branch information
dbeal-eth authored Sep 20, 2024
1 parent 91e34c8 commit 38e411d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-geese-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Cannon chain.
14 changes: 14 additions & 0 deletions src/chains/definitions/cannon.ts
Original file line number Diff line number Diff line change
@@ -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'] },
},
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Check failure on line 60 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Test Environments (bun)

Cannot find module './definisions/cannon.js' or its corresponding type declarations.

Check failure on line 60 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Test Environments (node-18)

Cannot find module './definisions/cannon.js' or its corresponding type declarations.

Check failure on line 60 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Test Environments (node-20)

Cannot find module './definisions/cannon.js' or its corresponding type declarations.

Check failure on line 60 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Build

Cannot find module './definisions/cannon.js' or its corresponding type declarations.

Check failure on line 60 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Types (5.0.4)

Cannot find module './definisions/cannon.js' or its corresponding type declarations.

Check failure on line 60 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Types (5.1.6)

Cannot find module './definisions/cannon.js' or its corresponding type declarations.

Check failure on line 60 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Types (5.2.2)

Cannot find module './definisions/cannon.js' or its corresponding type declarations.

Check failure on line 60 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Types (5.3.3)

Cannot find module './definisions/cannon.js' or its corresponding type declarations.
export { canto } from './definitions/canto.js'
export { celo } from './definitions/celo.js'
export { celoAlfajores } from './definitions/celoAlfajores.js'
Expand Down

0 comments on commit 38e411d

Please sign in to comment.