-
-
Notifications
You must be signed in to change notification settings - Fork 888
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added corn testnet Co-authored-by: jxom <7336481+jxom@users.noreply.github.com>
- Loading branch information
1 parent
29fc493
commit c2beb14
Showing
3 changed files
with
38 additions
and
0 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 @@ | ||
--- | ||
"viem": patch | ||
--- | ||
|
||
Added Corn Testnet. |
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,32 @@ | ||
import { defineChain } from '../../utils/chain/defineChain.js' | ||
|
||
const sourceId = 11_155_111 // sepolia | ||
|
||
export const cornTestnet = /*#__PURE__*/ defineChain({ | ||
id: 21_000_001, | ||
name: 'Corn Testnet', | ||
nativeCurrency: { | ||
decimals: 18, | ||
name: 'Bitcorn', | ||
symbol: 'BTCN', | ||
}, | ||
rpcUrls: { | ||
default: { http: ['https://rpc.ankr.com/corn_testnet'] }, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: 'Corn Testnet Explorer', | ||
url: 'https://testnet.cornscan.io', | ||
apiUrl: | ||
'https://api.routescan.io/v2/network/testnet/evm/21000001/etherscan/api', | ||
}, | ||
}, | ||
contracts: { | ||
multicall3: { | ||
address: '0xcA11bde05977b3631167028862bE2a173976CA11', | ||
blockCreated: 4886, | ||
}, | ||
}, | ||
testnet: true, | ||
sourceId, | ||
}) |
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