This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Klaytn, Dogechain, DFK, and Cronos (#149)
* init * amend * Update .changeset/soft-beers-tickle.md --------- Co-authored-by: awkweb <tom@meagher.co>
- Loading branch information
Showing
7 changed files
with
113 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@wagmi/chains': patch | ||
--- | ||
|
||
Added Klaytn, Dogechain, DFK, and Cronos Chains. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |