Skip to content

Commit

Permalink
support koi
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 committed Jul 17, 2024
1 parent 5828a8b commit b0817f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ arbitrum-goerli = "https://goerli-rollup.arbitrum.io/rpc"
arbitrum-sepolia = "https://sepolia-rollup.arbitrum.io/rpc"
goerli = "https://rpc.ankr.com/eth_goerli"
sepolia = "https://rpc.ankr.com/eth_sepolia"
pangolin = "https://pangolin-rpc.darwinia.network"
koi = "https://koi-rpc.darwinia.network"
crab = "https://crab-rpc.darwinia.network"
darwinia = "https://rpc.darwinia.network"
arbitrum = "https://arb1.arbitrum.io/rpc"
Expand All @@ -26,6 +26,7 @@ mantle = "https://rpc.mantle.xyz"
blast = "https://rpc.blast.io"
optimism = "https://optimism-mainnet.infura.io/v3/${INFURA_KEY}"
base = "https://mainnet.base.org"
base-sepolia = "https://sepolia.base.org"
scroll = "https://rpc.scroll.io"

[etherscan]
Expand All @@ -36,7 +37,8 @@ arbitrum = { key = "${ETHERSCAN_ARBITRUM_KEY}" }
arbitrum-goerli = { key = "${ETHERSCAN_ARBITRUM_KEY}" }
arbitrum-sepolia = { key = "${ETHERSCAN_ARBITRUM_KEY}" }
darwinia = { key = "${ETHERSCAN_DARWINIA_KEY}", url = "https://darwinia.api.subscan.io/api/scan/evm/contract/verifysource" }
pangolin = { key = "${ETHERSCAN_DARWINIA_KEY}", url = "https://pangolin.api.subscan.io/api/scan/evm/contract/verifysource" }
koi = { key = "${ETHERSCAN_DARWINIA_KEY}", url = "https://koi-scan.darwinia.network/api" }
crab = { key = "${ETHERSCAN_DARWINIA_KEY}", url = "https://crab.api.subscan.io/api/scan/evm/contract/verifysource" }
optimism = { key = "${ETHERSCAN_OPTIMISM_KEY}" }
base = { key = "${ETHERSCAN_BASE_KEY}" }
base-sepolia = { key = "${ETHERSCAN_BASE_KEY}" }
6 changes: 3 additions & 3 deletions script/Chains.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ library Chains {
uint256 internal constant Ethereum = 1;
uint256 internal constant Goerli = 5;
uint256 internal constant Optimism = 10;
uint256 internal constant Pangolin = 43;
uint256 internal constant Crab = 44;
uint256 internal constant Pangoro = 45;
uint256 internal constant Darwinia = 46;
uint256 internal constant Polygon = 137;
uint256 internal constant Zksync = 324;
uint256 internal constant OptimismGoerli = 420;
uint256 internal constant Koi = 701;
uint256 internal constant Mantle = 5000;
uint256 internal constant Base = 8453;
uint256 internal constant Arbitrum = 42161;
Expand All @@ -35,8 +35,6 @@ library Chains {
return "goerli";
} else if (chainid == Optimism) {
return "optimism";
} else if (chainid == Pangolin) {
return "pangolin";
} else if (chainid == Crab) {
return "crab";
} else if (chainid == Pangoro) {
Expand All @@ -49,6 +47,8 @@ library Chains {
return "zksync";
} else if (chainid == OptimismGoerli) {
return "optimism-goerli";
} else if (chainid == Koi) {
return "koi";
} else if (chainid == Mantle) {
return "mantle";
} else if (chainid == Base) {
Expand Down

0 comments on commit b0817f8

Please sign in to comment.