Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
feat(chains): add cronos testnet (#343)
Browse files Browse the repository at this point in the history
* Added cronosTestnet

* Update cronosTestnet.ts

* Added cronos and cronosTestnet to README

* Added changeset

* chore: pr updates

---------

Co-authored-by: Tom Meagher <[email protected]>
  • Loading branch information
0xartcro and tmm authored Jun 20, 2023
1 parent 6fef949 commit a7cbd04
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eighty-papayas-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": minor
---

Added cronos testnet chain
2 changes: 2 additions & 0 deletions packages/chains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const { chains, provider } = configureChains(
- `celo`
- `celoAlfajores`
- `celoCannoli`
- `cronos`
- `cronosTestnet`
- `edgeware`
- `edgewareTestnet`
- `fantom`
Expand Down
1 change: 0 additions & 1 deletion packages/chains/src/cronos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const cronos = {
public: { http: ['https://node.croswap.com/rpc'] },
},
blockExplorers: {
etherscan: { name: 'CronosScan', url: 'https://cronoscan.com' },
default: { name: 'CronosScan', url: 'https://cronoscan.com' },
},
contracts: {
Expand Down
23 changes: 23 additions & 0 deletions packages/chains/src/cronosTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Chain } from './types'

export const cronosTestnet = {
id: 338,
name: 'Cronos Testnet',
network: 'cronos-testnet',
nativeCurrency: {
decimals: 18,
name: 'CRO',
symbol: 'tCRO',
},
rpcUrls: {
default: { http: ['https://evm-t3.cronos.org'] },
public: { http: ['https://evm-t3.cronos.org'] },
},
blockExplorers: {
default: {
name: 'Cronos Explorer',
url: 'https://cronos.org/explorer/testnet3',
},
},
testnet: true,
} as const satisfies Chain
1 change: 1 addition & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export { celoAlfajores } from './celoAlfajores'
export { celoCannoli } from './celoCannoli'
export { confluxESpace } from './confluxESpace'
export { cronos } from './cronos'
export { cronosTestnet } from './cronosTestnet'
export { crossbell } from './crossbell'
export { dfk } from './dfk'
export { dogechain } from './dogechain'
Expand Down

0 comments on commit a7cbd04

Please sign in to comment.