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
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ ifeq ($(findstring --network arc-testnet,$(ARGS)),--network arc-testnet)
NETWORK_ARGS := --rpc-url $(ARC_TESTNET_RPC_URL) --account $(ACCOUNT) --broadcast --verify --verifier blockscout --verifier-url https://testnet.arcscan.app/api --chain 5042002 -vvvv
endif

ifeq ($(findstring --network polygon-mainnet,$(ARGS)),--network polygon-mainnet)
NETWORK_ARGS := --rpc-url $(POLYGON_MAINNET_RPC_URL) --account $(ACCOUNT) --broadcast --verify --etherscan-api-key $(ETHERSCAN_API_KEY) --chain 137 -vvvv
endif

ifeq ($(findstring --network polygon-amoy,$(ARGS)),--network polygon-amoy)
NETWORK_ARGS := --rpc-url $(POLYGON_AMOY_RPC_URL) --account $(ACCOUNT) --broadcast --verify --etherscan-api-key $(ETHERSCAN_API_KEY) --chain 80002 -vvvv
endif

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

Expand Down Expand Up @@ -195,3 +203,8 @@ deploy-gnosis-mainnet:
deploy-arc-testnet:
@forge script script/DeployJustaPermissionManager.s.sol:DeployJustaPermissionManager $(NETWORK_ARGS)

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

deploy-polygon-amoy:
@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 @@ -21,6 +21,7 @@
| DOS | 7979 | | |
| Gnosis | 100 | - | - |
| - | - | Arc Testnet | 5042002 |
| Polygon | 137 | - | - |

## Overview

Expand Down

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

uint256 public constant ARC_TESTNET_CHAIN_ID = 5_042_002;

uint256 public constant POLYGON_CHAIN_ID = 137;
uint256 public constant POLYGON_AMOY_CHAIN_ID = 80_002;

////////////////////////////////////////////////////////////////////////
// ENTRY POINT
////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -129,7 +132,8 @@ contract HelperConfig is CodeConstants, Script {
|| chainId == LINEA_CHAIN_ID || chainId == LINEA_SEPOLIA_CHAIN_ID || chainId == CELO_CHAIN_ID
|| chainId == CELO_SEPOLIA_CHAIN_ID || chainId == FLARE_CHAIN_ID || chainId == FLARE_COSTON2_CHAIN_ID
|| chainId == INK_CHAIN_ID || chainId == INK_SEPOLIA_CHAIN_ID || chainId == DOS_CHAIN_ID
|| chainId == GNOSIS_CHAIN_ID || chainId == ARC_TESTNET_CHAIN_ID;
|| chainId == GNOSIS_CHAIN_ID || chainId == ARC_TESTNET_CHAIN_ID || chainId == POLYGON_CHAIN_ID
|| chainId == POLYGON_AMOY_CHAIN_ID;
}

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