Skip to content

Commit

Permalink
➕ Add Mode Main Network Deployment
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 29, 2024
1 parent e2d4dda commit bbce972
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2207,6 +2207,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Endurance](https://explorer-endurance.fusionist.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Kava](https://kavascan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Metis Andromeda](https://andromeda-explorer.metis.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Mode](https://explorer.mode.network/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

#### Ethereum Test Networks

Expand Down
8 changes: 8 additions & 0 deletions deployments/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,14 @@
"https://andromeda-explorer.metis.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Mode",
"chainId": 34443,
"urls": [
"https://explorer.mode.network/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"https://repo.sourcify.dev/contracts/partial_match/34443/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed/"
]
},
{
"name": "Sepolia",
"chainId": 11155111,
Expand Down
16 changes: 15 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,11 @@ const config: HardhatUserConfig = {
url: vars.get("MODE_TESTNET_URL", "https://sepolia.mode.network"),
accounts,
},
modeMain: {
chainId: 34443,
url: vars.get("MODE_MAINNET_URL", "https://mainnet.mode.network"),
accounts,
},
},
contractSizer: {
alphaSort: true,
Expand Down Expand Up @@ -656,7 +661,8 @@ const config: HardhatUserConfig = {
// For Metis testnet & mainnet
metis: vars.get("METIS_API_KEY", ""),
metisTestnet: vars.get("METIS_API_KEY", ""),
// For Mode testnet
// For Mode testnet & mainnet
mode: vars.get("MODE_API_KEY", ""),
modeTestnet: vars.get("MODE_API_KEY", ""),
},
customChains: [
Expand Down Expand Up @@ -1078,6 +1084,14 @@ 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,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
"deploy:metistestnet": "npx hardhat run --no-compile --network metisTestnet scripts/deploy.ts",
"deploy:metismain": "npx hardhat run --no-compile --network metisMain scripts/deploy.ts",
"deploy:modetestnet": "npx hardhat run --no-compile --network modeTestnet scripts/deploy.ts",
"deploy:modemain": "npx hardhat run --no-compile --network modeMain scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:check:interface": "cd interface && pnpm prettier:check",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
Expand Down

0 comments on commit bbce972

Please sign in to comment.