Skip to content

Commit

Permalink
➕ Add Mode Network Configurations
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed Apr 30, 2024
1 parent e1d8f79 commit 854cb17
Show file tree
Hide file tree
Showing 3 changed files with 154 additions and 120 deletions.
33 changes: 32 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const config: HardhatUserConfig = {
},
},
zksolc: {
version: "1.4.0",
version: "1.4.1",
compilerSource: "binary",
settings: {
isSystem: false,
Expand Down Expand Up @@ -678,6 +678,18 @@ const config: HardhatUserConfig = {
accounts,
ledgerAccounts,
},
modeTestnet: {
chainId: 919,
url: vars.get("MODE_TESTNET_URL", "https://sepolia.mode.network"),
accounts,
ledgerAccounts,
},
modeMain: {
chainId: 34443,
url: vars.get("MODE_MAINNET_URL", "https://mainnet.mode.network"),
accounts,
ledgerAccounts,
},
},
xdeploy: {
// Change this name to the name of your main contract
Expand Down Expand Up @@ -855,6 +867,9 @@ const config: HardhatUserConfig = {
// For Metis testnet & mainnet
metis: vars.get("METIS_API_KEY", ""),
metisTestnet: vars.get("METIS_API_KEY", ""),
// For Mode testnet & mainnet
mode: vars.get("MODE_API_KEY", ""),
modeTestnet: vars.get("MODE_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1275,6 +1290,22 @@ const config: HardhatUserConfig = {
browserURL: "https://sepolia-explorer.metisdevops.link",
},
},
{
network: "mode",
chainId: 34443,
urls: {
apiURL: "https://explorer.mode.network/api",
browserURL: "https://explorer.mode.network",
},
},
{
network: "modeTestnet",
chainId: 919,
urls: {
apiURL: "https://sepolia.explorer.mode.network/api",
browserURL: "https://sepolia.explorer.mode.network",
},
},
],
},
tenderly: {
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@
"deploy:kavamain": "npx hardhat run --network kavaMain scripts/deploy.ts",
"deploy:metistestnet": "npx hardhat run --network metisTestnet scripts/deploy.ts",
"deploy:metismain": "npx hardhat run --network metisMain scripts/deploy.ts",
"deploy:modetestnet": "npx hardhat run --network modeTestnet scripts/deploy.ts",
"deploy:modemain": "npx hardhat run --network modeMain 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 Down Expand Up @@ -167,8 +169,8 @@
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.4.5",
"typescript-eslint": "^7.7.1",
"xdeployer": "^3.0.7",
"typescript-eslint": "^7.8.0",
"xdeployer": "^3.0.8",
"zksync-ethers": "^6.7.0"
}
}
Loading

0 comments on commit 854cb17

Please sign in to comment.