Skip to content

Commit

Permalink
♻️ Add further networks to hardhat.config.ts
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Dec 21, 2023
1 parent 0dd64ac commit 8acf101
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 65 deletions.
66 changes: 56 additions & 10 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ const config: HardhatUserConfig = {
},
bobaMain: {
chainId: 288,
url: vars.get("BOBA_MAINNET_URL", "https://mainnet.boba.network"),
url: vars.get("BOBA_MAINNET_URL", "https://replica.boba.network"),
accounts,
ledgerAccounts,
},
Expand Down Expand Up @@ -521,8 +521,8 @@ const config: HardhatUserConfig = {
ledgerAccounts,
},
zoraTestnet: {
chainId: 999,
url: vars.get("ZORA_TESTNET_URL", "https://testnet.rpc.zora.energy"),
chainId: 999999999,
url: vars.get("ZORA_TESTNET_URL", "https://sepolia.rpc.zora.energy"),
accounts,
ledgerAccounts,
},
Expand Down Expand Up @@ -574,6 +574,12 @@ const config: HardhatUserConfig = {
accounts,
ledgerAccounts,
},
frameTestnet: {
chainId: 68840142,
url: vars.get("FRAME_TESTNET_URL", "https://rpc.testnet.frame.xyz/http"),
accounts,
ledgerAccounts,
},
},
xdeploy: {
// Change this name to the name of your main contract
Expand Down Expand Up @@ -674,6 +680,9 @@ const config: HardhatUserConfig = {
moonbeam: vars.get("MOONBEAM_API_KEY", ""),
moonriver: vars.get("MOONBEAM_API_KEY", ""),
moonbaseAlpha: vars.get("MOONBEAM_API_KEY", ""),
// For Celo testnet & mainnet
celo: vars.get("CELO_API_KEY", ""),
alfajores: vars.get("CELO_API_KEY", ""),
// For Harmony testnet & mainnet
harmony: vars.get("HARMONY_API_KEY", ""),
harmonyTest: vars.get("HARMONY_API_KEY", ""),
Expand Down Expand Up @@ -706,6 +715,9 @@ const config: HardhatUserConfig = {
// For Mantle testnet & mainnet
mantle: vars.get("MANTLE_API_KEY", ""),
mantleTestnet: vars.get("MANTLE_API_KEY", ""),
// For Filecoin testnet & mainnet
filecoin: vars.get("FILECOIN_API_KEY", ""),
filecoinTestnet: vars.get("FILECOIN_API_KEY", ""),
// For Scroll testnet & mainnet
scroll: vars.get("SCROLL_API_KEY", ""),
scrollTestnet: vars.get("SCROLL_API_KEY", ""),
Expand Down Expand Up @@ -739,8 +751,8 @@ const config: HardhatUserConfig = {
network: "optimisticSepolia",
chainId: 11155420,
urls: {
apiURL: "https://optimism-sepolia.blockscout.com/api",
browserURL: "https://optimism-sepolia.blockscout.com",
apiURL: "https://api-sepolia-optimistic.etherscan.io/api",
browserURL: "https://sepolia-optimism.etherscan.io",
},
},
{
Expand All @@ -751,6 +763,22 @@ const config: HardhatUserConfig = {
browserURL: "https://gnosis-chiado.blockscout.com",
},
},
{
network: "celo",
chainId: 42220,
urls: {
apiURL: "https://explorer.celo.org/mainnet/api",
browserURL: "https://explorer.celo.org/mainnet",
},
},
{
network: "alfajores",
chainId: 44787,
urls: {
apiURL: "https://explorer.celo.org/alfajores/api",
browserURL: "https://explorer.celo.org/alfajores",
},
},
{
network: "cronos",
chainId: 25,
Expand Down Expand Up @@ -803,15 +831,17 @@ const config: HardhatUserConfig = {
network: "boba",
chainId: 288,
urls: {
apiURL: "https://api.bobascan.com/api",
apiURL:
"https://api.routescan.io/v2/network/mainnet/evm/288/etherscan",
browserURL: "https://bobascan.com",
},
},
{
network: "bobaTestnet",
chainId: 2888,
urls: {
apiURL: "https://api-testnet.bobascan.com/api",
apiURL:
"https://api.routescan.io/v2/network/testnet/evm/2888/etherscan",
browserURL: "https://testnet.bobascan.com",
},
},
Expand Down Expand Up @@ -887,6 +917,22 @@ const config: HardhatUserConfig = {
browserURL: "https://explorer.testnet.mantle.xyz",
},
},
{
network: "filecoin",
chainId: 314,
urls: {
apiURL: "https://filfox.info/api/v1/tools/verifyContract",
browserURL: "https://filfox.info/en",
},
},
{
network: "filecoinTestnet",
chainId: 314159,
urls: {
apiURL: "https://calibration.filfox.info/api/v1/tools/verifyContract",
browserURL: "https://calibration.filfox.info/en",
},
},
{
network: "scroll",
chainId: 534352,
Expand Down Expand Up @@ -953,10 +999,10 @@ const config: HardhatUserConfig = {
},
{
network: "zoraTestnet",
chainId: 999,
chainId: 999999999,
urls: {
apiURL: "https://testnet.explorer.zora.energy/api",
browserURL: "https://testnet.explorer.zora.energy",
apiURL: "https://sepolia.explorer.zora.energy/api",
browserURL: "https://sepolia.explorer.zora.energy",
},
},
{
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"deploy:mantamain": "npx hardhat run --network mantaMain scripts/deploy.ts",
"deploy:shardeumtestnet": "npx hardhat run --network shardeumTestnet scripts/deploy.ts",
"deploy:artheratestnet": "npx hardhat run --network artheraTestnet scripts/deploy.ts",
"deploy:frametestnet": "npx hardhat run --network frameTestnet scripts/deploy.ts",
"prettier:check": "npx prettier -c **/*.{js,ts,md,sol,json,yml,yaml}",
"prettier:fix": "npx prettier -w **/*.{js,ts,md,sol,json,yml,yaml}",
"solhint:check": "npx solhint 'contracts/**/*.sol'",
Expand All @@ -128,7 +129,7 @@
"@nomicfoundation/hardhat-toolbox": "^4.0.0",
"@nomicfoundation/hardhat-verify": "^2.0.3",
"@openzeppelin/contracts": "^5.0.1",
"@tenderly/hardhat-tenderly": "^2.0.1",
"@tenderly/hardhat-tenderly": "^2.1.0",
"@truffle/dashboard-hardhat-plugin": "^0.2.15",
"@typechain/ethers-v6": "^0.5.1",
"@typechain/hardhat": "^9.1.0",
Expand All @@ -140,7 +141,7 @@
"chai": "^4.3.10",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"ethers": "^6.9.0",
"ethers": "^6.9.1",
"hardhat": "^2.19.3",
"hardhat-abi-exporter": "^2.10.1",
"hardhat-contract-sizer": "^2.10.0",
Expand Down
Loading

0 comments on commit 8acf101

Please sign in to comment.