Skip to content

Commit

Permalink
♻️ Add Additional Network Configs and Bump Dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Mar 16, 2024
1 parent 5cbf154 commit 04c9f6f
Show file tree
Hide file tree
Showing 3 changed files with 474 additions and 502 deletions.
60 changes: 54 additions & 6 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import "@nomicfoundation/hardhat-verify";
import "@nomicfoundation/hardhat-ledger";
import "@nomicfoundation/hardhat-foundry";
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-ignition-ethers";
import "@typechain/hardhat";

import "xdeployer";
Expand Down Expand Up @@ -110,7 +111,7 @@ const config: HardhatUserConfig = {
hardhat: {
initialBaseFeePerGas: 0,
chainId: 31337,
hardfork: "shanghai",
hardfork: "cancun",
forking: {
url: vars.get("ETH_MAINNET_URL", ethMainnetUrl),
// The Hardhat network will by default fork from the latest mainnet block
Expand Down Expand Up @@ -232,10 +233,10 @@ const config: HardhatUserConfig = {
ledgerAccounts,
},
polygonZkEVMTestnet: {
chainId: 1442,
chainId: 2442,
url: vars.get(
"POLYGON_ZKEVM_TESTNET_URL",
"https://rpc.public.zkevm-test.net",
"https://rpc.cardona.zkevm-rpc.com",
),
accounts,
ledgerAccounts,
Expand Down Expand Up @@ -608,6 +609,24 @@ const config: HardhatUserConfig = {
accounts,
ledgerAccounts,
},
dosTestnet: {
chainId: 3939,
url: vars.get("DOS_TESTNET_URL", "https://test.doschain.com"),
accounts,
ledgerAccounts,
},
dosMain: {
chainId: 7979,
url: vars.get("DOS_MAINNET_URL", "https://main.doschain.com"),
accounts,
ledgerAccounts,
},
fraxtalTestnet: {
chainId: 2522,
url: vars.get("FRAXTAL_TESTNET_URL", "https://rpc.testnet.frax.com"),
accounts,
ledgerAccounts,
},
},
xdeploy: {
// Change this name to the name of your main contract
Expand Down Expand Up @@ -771,6 +790,11 @@ const config: HardhatUserConfig = {
// For Kroma testnet & mainnet
kroma: vars.get("KROMA_API_KEY", ""),
kromaTestnet: vars.get("KROMA_API_KEY", ""),
// For DOS Chain testnet & mainnet
dos: vars.get("DOS_API_KEY", ""),
dosTestnet: vars.get("DOS_API_KEY", ""),
// For Fraxtal testnet
fraxtalTestnet: vars.get("FRAXTAL_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -993,10 +1017,10 @@ const config: HardhatUserConfig = {
},
{
network: "polygonZkEVMTestnet",
chainId: 1442,
chainId: 2442,
urls: {
apiURL: "https://api-testnet-zkevm.polygonscan.com/api",
browserURL: "https://testnet-zkevm.polygonscan.com",
apiURL: "https://api-cardona-zkevm.polygonscan.com/api",
browserURL: "https://cardona-zkevm.polygonscan.com",
},
},
{
Expand Down Expand Up @@ -1111,6 +1135,30 @@ const config: HardhatUserConfig = {
browserURL: "https://sepolia.kromascan.com",
},
},
{
network: "dos",
chainId: 7979,
urls: {
apiURL: "https://doscan.io/api",
browserURL: "https://doscan.io",
},
},
{
network: "dosTestnet",
chainId: 3939,
urls: {
apiURL: "https://test.doscan.io/api",
browserURL: "https://test.doscan.io",
},
},
{
network: "fraxtalTestnet",
chainId: 2522,
urls: {
apiURL: "https://api-holesky.fraxscan.com/api",
browserURL: "https://holesky.fraxscan.com",
},
},
],
},
tenderly: {
Expand Down
17 changes: 11 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
"deploy:blastmain": "npx hardhat run --network blastMain scripts/deploy.ts",
"deploy:kromatestnet": "npx hardhat run --network kromaTestnet scripts/deploy.ts",
"deploy:kromamain": "npx hardhat run --network kromaMain scripts/deploy.ts",
"deploy:dostestnet": "npx hardhat run --no-compile --network dosTestnet scripts/deploy.ts",
"deploy:dosmain": "npx hardhat run --no-compile --network dosMain scripts/deploy.ts",
"deploy:fraxtaltestnet": "npx hardhat run --no-compile --network fraxtalTestnet 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 @@ -129,29 +132,31 @@
"@nomicfoundation/hardhat-chai-matchers": "^2.0.6",
"@nomicfoundation/hardhat-ethers": "^3.0.5",
"@nomicfoundation/hardhat-foundry": "^1.1.1",
"@nomicfoundation/hardhat-ignition": "^0.15.0",
"@nomicfoundation/hardhat-ignition-ethers": "^0.15.0",
"@nomicfoundation/hardhat-ledger": "^1.0.2",
"@nomicfoundation/hardhat-network-helpers": "^1.0.10",
"@nomicfoundation/hardhat-toolbox": "^4.0.0",
"@nomicfoundation/hardhat-verify": "^2.0.4",
"@nomicfoundation/hardhat-verify": "^2.0.5",
"@nomicfoundation/ignition-core": "^0.15.0",
"@openzeppelin/contracts": "^5.0.2",
"@tenderly/hardhat-tenderly": "^2.2.2",
"@truffle/dashboard-hardhat-plugin": "^0.2.15",
"@typechain/ethers-v6": "^0.5.1",
"@typechain/hardhat": "^9.1.0",
"@types/chai": "^4.3.12",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.27",
"@types/node": "^20.11.28",
"chai": "^4.4.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"ethers": "^6.11.1",
"hardhat": "^2.21.0",
"hardhat": "^2.22.1",
"hardhat-abi-exporter": "^2.10.1",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^1.0.10",
"hardhat-gas-reporter": "^2.0.2",
"prettier": "^3.2.5",
"prettier-plugin-solidity": "^1.3.1",
"solhint": "^4.1.1",
"solhint": "^4.5.2",
"solidity-coverage": "^0.8.11",
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
Expand Down
Loading

0 comments on commit 04c9f6f

Please sign in to comment.