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

Commit

Permalink
Adding Klaytn, Dogechain, DFK, and Cronos (#149)
Browse files Browse the repository at this point in the history
* init

* amend

* Update .changeset/soft-beers-tickle.md

---------

Co-authored-by: awkweb <tom@meagher.co>
  • Loading branch information
nautsimon and tmm authored Mar 10, 2023
1 parent af971bf commit f9c1f95
Show file tree
Hide file tree
Showing 7 changed files with 113 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/soft-beers-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@wagmi/chains': patch
---

Added Klaytn, Dogechain, DFK, and Cronos Chains.
4 changes: 2 additions & 2 deletions packages/chains/src/boba.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export const boba = {
network: 'boba',
nativeCurrency: {
decimals: 18,
name: 'BOBA',
symbol: 'ETH',
name: 'Boba',
symbol: 'BOBA',
},
rpcUrls: {
default: { http: ['https://mainnet.boba.network'] },
Expand Down
26 changes: 26 additions & 0 deletions packages/chains/src/cronos.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { Chain } from './types'

export const cronos = {
id: 25,
name: 'Cronos',
network: 'cronos',
nativeCurrency: {
decimals: 18,
name: 'Cronos',
symbol: 'CRO',
},
rpcUrls: {
default: { http: ['https://node.croswap.com/rpc'] },
public: { http: ['https://node.croswap.com/rpc'] },
},
blockExplorers: {
etherscan: { name: 'CronosScan', url: 'https://cronoscan.com' },
default: { name: 'CronosScan', url: 'https://cronoscan.com' },
},
contracts: {
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 1963112,
},
},
} as const satisfies Chain
30 changes: 30 additions & 0 deletions packages/chains/src/dfk.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { Chain } from './types'

export const dfk = {
id: 53_935,
name: 'DFK Chain',
network: 'dfk',
nativeCurrency: {
decimals: 18,
name: 'Jewel',
symbol: 'JEWEL',
},
rpcUrls: {
default: {
http: ['https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc'],
},
public: {
http: ['https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc'],
},
},
blockExplorers: {
etherscan: {
name: 'DFKSubnetScan',
url: 'https://subnets.avax.network/defi-kingdoms',
},
default: {
name: 'DFKSubnetScan',
url: 'https://subnets.avax.network/defi-kingdoms',
},
},
} as const satisfies Chain
26 changes: 26 additions & 0 deletions packages/chains/src/dogechain.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { Chain } from './types'

export const dogechain = {
id: 2_000,
name: 'Dogechain',
network: 'dogechain',
nativeCurrency: {
decimals: 18,
name: 'Dogechain',
symbol: 'DC',
},
rpcUrls: {
default: { http: ['https://rpc.dogechain.dog'] },
public: { http: ['https://rpc.dogechain.dog'] },
},
blockExplorers: {
etherscan: {
name: 'DogeChainExplorer',
url: 'https://explorer.dogechain.dog',
},
default: {
name: 'DogeChainExplorer',
url: 'https://explorer.dogechain.dog',
},
},
} as const satisfies Chain
4 changes: 4 additions & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export { bscTestnet } from './bscTestnet'
export { canto } from './canto'
export { celo } from './celo'
export { celoAlfajores } from './celoAlfajores'
export { cronos } from './cronos'
export { crossbell } from './crossbell'
export { dfk } from './dfk'
export { dogechain } from './dogechain'
export { evmos } from './evmos'
export { evmosTestnet } from './evmosTestnet'
export { fantom } from './fantom'
Expand All @@ -33,6 +36,7 @@ export { gnosis } from './gnosis'
export { gnosisChiado } from './gnosisChiado'
export { hardhat } from './hardhat'
export { harmonyOne } from './harmonyOne'
export { klaytn } from './klaytn'
export { localhost } from './localhost'
export { mainnet } from './mainnet'
export { metis } from './metis'
Expand Down
20 changes: 20 additions & 0 deletions packages/chains/src/klaytn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Chain } from './types'

export const klaytn = {
id: 8_217,
name: 'Klaytn',
network: 'klaytn',
nativeCurrency: {
decimals: 18,
name: 'Klaytn',
symbol: 'KLAY',
},
rpcUrls: {
default: { http: ['https://cypress.fautor.app/archive'] },
public: { http: ['https://cypress.fautor.app/archive'] },
},
blockExplorers: {
etherscan: { name: 'KlaytnScope', url: 'https://scope.klaytn.com' },
default: { name: 'KlaytnScope', url: 'https://scope.klaytn.com' },
},
} as const satisfies Chain

0 comments on commit f9c1f95

Please sign in to comment.