Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new chains from Etherscan #25

Merged
merged 2 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
345 changes: 344 additions & 1 deletion evmchains/chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!
!!!! DO NOT EDIT THIS FILE DIRECTLY! !!!!
!!!! This file is auto-generated by scripts/update.py !!!!
!!!! 2024-10-16 17:21:51.952134+00:00 !!!!
!!!! 2024-10-25 13:16:30.325248+00:00 !!!!
!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!
"""

Expand Down Expand Up @@ -596,6 +596,114 @@
"slip44": 1,
},
},
"cronos": {
"mainnet": {
"chain": "CRO",
"chainId": 25,
"ens": None,
"explorers": [
{
"name": "Cronos Explorer",
"standard": "none",
"url": "https://explorer.cronos.org",
}
],
"faucets": [],
"features": [{"name": "EIP1559"}],
"icon": None,
"infoURL": "https://cronos.org/",
"name": "Cronos Mainnet",
"nativeCurrency": {"decimals": 18, "name": "Cronos", "symbol": "CRO"},
"networkId": 25,
"rpc": [
"https://evm.cronos.org",
"https://cronos-evm-rpc.publicnode.com",
"https://cronos.drpc.org",
],
"shortName": "cro",
"slip44": None,
},
"testnet": {
"chain": "CRO",
"chainId": 338,
"ens": None,
"explorers": [
{
"name": "Cronos Testnet Explorer",
"standard": "none",
"url": "https://explorer.cronos.org/testnet",
}
],
"faucets": ["https://cronos.org/faucet"],
"features": None,
"icon": None,
"infoURL": "https://cronos.org",
"name": "Cronos Testnet",
"nativeCurrency": {
"decimals": 18,
"name": "Cronos Test Coin",
"symbol": "TCRO",
},
"networkId": 338,
"rpc": ["https://evm-t3.cronos.org", "https://cronos-testnet.drpc.org"],
"shortName": "tcro",
"slip44": 1,
},
},
"cronos-zkevm": {
"mainnet": {
"chain": "CronosZkEVMMainnet",
"chainId": 388,
"ens": None,
"explorers": [
{
"name": "Cronos zkEVM (Mainnet) Chain Explorer",
"standard": "none",
"url": "https://explorer.zkevm.cronos.org",
}
],
"faucets": [],
"features": None,
"icon": None,
"infoURL": "https://cronos.org/zkevm",
"name": "Cronos zkEVM Mainnet",
"nativeCurrency": {
"decimals": 18,
"name": "Cronos zkEVM CRO",
"symbol": "zkCRO",
},
"networkId": 388,
"rpc": ["https://mainnet.zkevm.cronos.org"],
"shortName": "zkCRO",
"slip44": None,
},
"testnet": {
"chain": "CronosZkEVMTestnet",
"chainId": 282,
"ens": None,
"explorers": [
{
"name": "Cronos zkEVM Testnet Explorer",
"standard": "none",
"url": "https://explorer.zkevm.cronos.org/testnet",
}
],
"faucets": ["https://zkevm.cronos.org/faucet"],
"features": None,
"icon": None,
"infoURL": "https://docs-zkevm.cronos.org",
"name": "Cronos zkEVM Testnet",
"nativeCurrency": {
"decimals": 18,
"name": "Cronos zkEVM Test Coin",
"symbol": "zkTCRO",
},
"networkId": 282,
"rpc": ["https://testnet.zkevm.cronos.org"],
"shortName": "zkTCRO",
"slip44": 1,
},
},
"ethereum": {
"mainnet": {
"chain": "ETH",
Expand Down Expand Up @@ -1059,6 +1167,87 @@
"slip44": 1,
},
},
"mantle": {
"mainnet": {
"chain": "ETH",
"chainId": 5000,
"ens": None,
"explorers": [
{
"name": "mantlescan",
"standard": "EIP3091",
"url": "https://mantlescan.xyz",
},
{
"name": "Mantle Explorer",
"standard": "EIP3091",
"url": "https://explorer.mantle.xyz",
},
],
"faucets": [],
"features": None,
"icon": "mantle",
"infoURL": "https://mantle.xyz",
"name": "Mantle",
"nativeCurrency": {"decimals": 18, "name": "Mantle", "symbol": "MNT"},
"networkId": 5000,
"rpc": ["https://rpc.mantle.xyz", "https://mantle-rpc.publicnode.com"],
"shortName": "mantle",
"slip44": None,
},
"testnet": {
"chain": "ETH",
"chainId": 5001,
"ens": None,
"explorers": [
{
"name": "Mantle Testnet Explorer",
"standard": "EIP3091",
"url": "https://explorer.testnet.mantle.xyz",
}
],
"faucets": ["https://faucet.testnet.mantle.xyz"],
"features": None,
"icon": None,
"infoURL": "https://mantle.xyz",
"name": "Mantle Testnet",
"nativeCurrency": {
"decimals": 18,
"name": "Testnet Mantle",
"symbol": "MNT",
},
"networkId": 5001,
"rpc": ["https://rpc.testnet.mantle.xyz"],
"shortName": "mantle-testnet",
"slip44": 1,
},
"sepolia": {
"chain": "ETH",
"chainId": 5003,
"ens": None,
"explorers": [
{
"name": "blockscout",
"standard": "EIP3091",
"url": "https://explorer.sepolia.mantle.xyz",
}
],
"faucets": ["https://faucet.sepolia.mantle.xyz"],
"features": None,
"icon": None,
"infoURL": "https://mantle.xyz",
"name": "Mantle Sepolia Testnet",
"nativeCurrency": {
"decimals": 18,
"name": "Sepolia Mantle",
"symbol": "MNT",
},
"networkId": 5003,
"rpc": ["https://rpc.sepolia.mantle.xyz"],
"shortName": "mnt-sep",
"slip44": 1,
},
},
"moonbeam": {
"mainnet": {
"chain": "MOON",
Expand Down Expand Up @@ -1627,6 +1816,63 @@
"slip44": 1,
},
},
"taiko": {
"mainnet": {
"chain": "ETH",
"chainId": 167000,
"ens": None,
"explorers": [
{
"name": "etherscan",
"standard": "EIP3091",
"url": "https://taikoscan.io",
}
],
"faucets": [],
"features": None,
"icon": "taiko",
"infoURL": "https://taiko.xyz",
"name": "Taiko Mainnet",
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
"networkId": 167000,
"rpc": [
"https://rpc.mainnet.taiko.xyz",
"https://taiko-rpc.publicnode.com",
],
"shortName": "tko-mainnet",
"slip44": None,
},
"hekla": {
"chain": "ETH",
"chainId": 167009,
"ens": None,
"explorers": [
{
"name": "blockscout",
"standard": "EIP3091",
"url": "https://blockscoutapi.hekla.taiko.xyz",
},
{
"name": "routescan",
"standard": "EIP3091",
"url": "https://hekla.taikoscan.network",
},
],
"faucets": [],
"features": None,
"icon": "taiko",
"infoURL": "https://taiko.xyz",
"name": "Taiko Hekla L2",
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
"networkId": 167009,
"rpc": [
"https://rpc.hekla.taiko.xyz",
"https://taiko-hekla-rpc.publicnode.com",
],
"shortName": "tko-hekla",
"slip44": None,
},
},
"unichain": {
"sepolia": {
"chain": "ETH",
Expand Down Expand Up @@ -1710,4 +1956,101 @@
"slip44": 1,
},
},
"xai": {
"mainnet": {
"chain": "XAI",
"chainId": 660279,
"ens": None,
"explorers": [
{
"name": "Blockscout",
"standard": "EIP3091",
"url": "https://explorer.xai-chain.net",
}
],
"faucets": [],
"features": None,
"icon": None,
"infoURL": "https://xai.games",
"name": "Xai Mainnet",
"nativeCurrency": {"decimals": 18, "name": "Xai", "symbol": "XAI"},
"networkId": 660279,
"rpc": ["https://xai-chain.net/rpc"],
"shortName": "xai",
"slip44": None,
},
"sepolia": {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hard to tell that this was actually sepolia besides documented from Etherscan, but also this: https://xai-foundation.gitbook.io/xai-network/build-on-xai/xai-chains-and-parameters/connect-to-xai-testnet-sepolia

"chain": "XAI Testnet",
"chainId": 37714555429,
"ens": None,
"explorers": [
{
"name": "Blockscout",
"standard": "EIP3091",
"url": "https://testnet-explorer-v2.xai-chain.net",
}
],
"faucets": [],
"features": None,
"icon": None,
"infoURL": "https://xai.games",
"name": "Xai Testnet v2",
"nativeCurrency": {"decimals": 18, "name": "sXai", "symbol": "sXAI"},
"networkId": 37714555429,
"rpc": ["https://testnet-v2.xai-chain.net/rpc"],
"shortName": "xaitestnet",
"slip44": None,
},
},
"zksync": {
"mainnet": {
"chain": "ETH",
"chainId": 324,
"ens": None,
"explorers": [
{
"icon": "zksync-era",
"name": "zkSync Era Block Explorer",
"standard": "EIP3091",
"url": "https://explorer.zksync.io",
}
],
"faucets": [],
"features": None,
"icon": "zksync-era",
"infoURL": "https://zksync.io/",
"name": "zkSync Mainnet",
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
"networkId": 324,
"rpc": ["https://mainnet.era.zksync.io", "https://zksync.drpc.org"],
"shortName": "zksync",
"slip44": None,
},
"sepolia": {
"chain": "ETH",
"chainId": 300,
"ens": None,
"explorers": [
{
"icon": "zksync-era",
"name": "zkSync Block Explorer",
"standard": "EIP3091",
"url": "https://sepolia.explorer.zksync.io",
}
],
"faucets": [],
"features": None,
"icon": "zksync-era",
"infoURL": "https://zksync.io/",
"name": "zkSync Sepolia Testnet",
"nativeCurrency": {"decimals": 18, "name": "Ether", "symbol": "ETH"},
"networkId": 300,
"rpc": [
"https://sepolia.era.zksync.dev",
"https://zksync-sepolia.drpc.org",
],
"shortName": "zksync-sepolia",
"slip44": 1,
},
},
}
Loading
Loading