diff --git a/.changeset/soft-beers-tickle.md b/.changeset/soft-beers-tickle.md new file mode 100644 index 00000000..e41cadd9 --- /dev/null +++ b/.changeset/soft-beers-tickle.md @@ -0,0 +1,5 @@ +--- +'@wagmi/chains': patch +--- + +Added Klaytn, Dogechain, DFK, and Cronos Chains. diff --git a/packages/chains/src/boba.ts b/packages/chains/src/boba.ts index ed7e0abc..964db29e 100644 --- a/packages/chains/src/boba.ts +++ b/packages/chains/src/boba.ts @@ -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'] }, diff --git a/packages/chains/src/cronos.ts b/packages/chains/src/cronos.ts new file mode 100644 index 00000000..1b09b0be --- /dev/null +++ b/packages/chains/src/cronos.ts @@ -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 diff --git a/packages/chains/src/dfk.ts b/packages/chains/src/dfk.ts new file mode 100644 index 00000000..c0db938f --- /dev/null +++ b/packages/chains/src/dfk.ts @@ -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 diff --git a/packages/chains/src/dogechain.ts b/packages/chains/src/dogechain.ts new file mode 100644 index 00000000..d3f235d6 --- /dev/null +++ b/packages/chains/src/dogechain.ts @@ -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 diff --git a/packages/chains/src/index.ts b/packages/chains/src/index.ts index 2d3827e7..230e18b6 100644 --- a/packages/chains/src/index.ts +++ b/packages/chains/src/index.ts @@ -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' @@ -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' diff --git a/packages/chains/src/klaytn.ts b/packages/chains/src/klaytn.ts new file mode 100644 index 00000000..ef03ebc3 --- /dev/null +++ b/packages/chains/src/klaytn.ts @@ -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