Skip to content

Commit

Permalink
change cap to 49, add script for deployment on base sepolia.
Browse files Browse the repository at this point in the history
  • Loading branch information
thurendous committed Sep 19, 2024
1 parent 7db3e79 commit 91fed41
Show file tree
Hide file tree
Showing 5 changed files with 2,153 additions and 41 deletions.
10 changes: 9 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
PRIVATE_KEY=1234567890123456789012345678901234567890123456789012345678901234
PRIVATE_KEY_DEPLOYER=1234567890123456789012345678901234567890123456789012345678901234
PRIVATE_KEY_DEV=1234567890123456789012345678901234567890123456789012345678901234
ETHERSCAN_API_KEY=
BASE_API_KEY=
BASE_SEPOLIA_RPC_URL=
BASE_MAINNET_RPC_URL=
SEPOLIA_RPC_URL=

OPENZEPPELIN_DEFENDER_ADDR=
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,22 @@ snapshot :; forge snapshot
format :; forge fmt

coverage :; forge coverage

coverage-report :; forge coverage --report debug > coverage-report.txt

NETWORK_ARGS := --rpc-url http://localhost:8545 --private-key $(DEFAULT_ANVIL_KEY) --broadcast

ifeq ($(findstring --network sepolia,$(ARGS)),--network sepolia)
NETWORK_ARGS := --rpc-url $(SEPOLIA_RPC_URL) --private-key $(PRIVATE_KEY_DEPLOYER) --broadcast --verify --etherscan-api-key $(ETHERSCAN_API_KEY) -vvvv
endif

ifeq ($(findstring --network basesepolia,$(ARGS)),--network basesepolia)
NETWORK_ARGS := --rpc-url $(BASE_SEPOLIA_RPC_URL) --private-key $(PRIVATE_KEY_DEPLOYER) --broadcast --verify --etherscan-api-key $(BASE_API_KEY) -vvvv
endif

ifeq ($(findstring --network basemainnet,$(ARGS)),--network basemainnet)
NETWORK_ARGS := --rpc-url $(BASE_MAINNET_RPC_URL) --private-key $(PRIVATE_KEY_DEPLOYER) --broadcast --verify --etherscan-api-key $(BASE_API_KEY) -vvvv
endif

deploy:
@forge clean && forge script script/DeployContracts.s.sol:DeployContracts $(NETWORK_ARGS)
Loading

0 comments on commit 91fed41

Please sign in to comment.