Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ ifeq ($(findstring --network unichain-mainnet,$(ARGS)),--network unichain-mainne
NETWORK_ARGS := --rpc-url $(UNICHAIN_MAINNET_RPC_URL) --account $(ACCOUNT) --broadcast --verify --verifier-url https://api.etherscan.io/v2/api --etherscan-api-key $(ETHERSCAN_API_KEY) --chain 130 -vvvv
endif

# forge 1.5.1 has no chain alias for Monad mainnet, so --chain 143 cannot resolve an
# Etherscan API URL. Use the custom verifier with chainid and apikey in the URL instead.
ifeq ($(findstring --network monad-mainnet,$(ARGS)),--network monad-mainnet)
NETWORK_ARGS := --rpc-url $(MONAD_MAINNET_RPC_URL) --account $(ACCOUNT) --broadcast --verify --verifier custom --verifier-url "https://api.etherscan.io/v2/api?chainid=143&apikey=$(ETHERSCAN_API_KEY)" --chain 143 -vvvv
endif

deploy-mainnet:
@forge script script/DeployJustaPermissionManager.s.sol:DeployJustaPermissionManager $(NETWORK_ARGS)

Expand Down Expand Up @@ -235,4 +241,7 @@ deploy-hyvechain-mainnet:
@forge script script/DeployJustaPermissionManager.s.sol:DeployJustaPermissionManager $(NETWORK_ARGS)

deploy-unichain-mainnet:
@forge script script/DeployJustaPermissionManager.s.sol:DeployJustaPermissionManager $(NETWORK_ARGS)

deploy-monad-mainnet:
@forge script script/DeployJustaPermissionManager.s.sol:DeployJustaPermissionManager $(NETWORK_ARGS)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
| Soneium | 1868 | - | - |
| HyveChain | 7847 | - | - |
| Unichain | 130 | - | - |
| Monad | 143 | - | - |

## Overview

Expand Down

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions broadcast/DeployJustaPermissionManager.s.sol/143/run-latest.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion script/HelperConfig.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ abstract contract CodeConstants {

uint256 public constant UNICHAIN_CHAIN_ID = 130;

uint256 public constant MONAD_CHAIN_ID = 143;

////////////////////////////////////////////////////////////////////////
// ENTRY POINT
////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -142,7 +144,7 @@ contract HelperConfig is CodeConstants, Script {
|| chainId == INK_CHAIN_ID || chainId == INK_SEPOLIA_CHAIN_ID || chainId == DOS_CHAIN_ID
|| chainId == GNOSIS_CHAIN_ID || chainId == ARC_TESTNET_CHAIN_ID || chainId == POLYGON_CHAIN_ID
|| chainId == POLYGON_AMOY_CHAIN_ID || chainId == ROBINHOOD_CHAIN_ID || chainId == SONEIUM_CHAIN_ID
|| chainId == HYVECHAIN_CHAIN_ID || chainId == UNICHAIN_CHAIN_ID;
|| chainId == HYVECHAIN_CHAIN_ID || chainId == UNICHAIN_CHAIN_ID || chainId == MONAD_CHAIN_ID;
}

function getConfigByChainId(uint256 chainId) public returns (NetworkConfig memory) {
Expand Down
Loading