Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build contracts before running deployment scripts #1618

Open
wants to merge 2 commits into
base: testnet
Choose a base branch
from
Open
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
19 changes: 11 additions & 8 deletions claim_contracts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ help: ## 📚 Show help for each of the Makefile recipes
RPC_URL?=http://localhost:8545
PRIVATE_KEY?=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d

deploy-all: ## 🚀 Deploy all contracts
build:
forge build

deploy-all: build ## 🚀 Deploy all contracts
cd script && forge script DeployAll.s.sol --private-key $(PRIVATE_KEY) --rpc-url $(RPC_URL) --broadcast

CONFIG?=example
deploy-token: ## 🚀 Deploy the token contract
deploy-token: build ## 🚀 Deploy the token contract
cd script && \
forge script DeployAlignedToken.s.sol \
--sig "run(string)" \
Expand All @@ -32,7 +35,7 @@ CLAIM_TIME_LIMIT?=1632960000
MERKLE_ROOT?=0x90076b5fb9a6c81d9fce83dfd51760987b8c49e7c861ea25b328e6e63d2cd3df
TOKEN_OWNER?=$(OWNER)

deploy-proxy-admin: ## 🚀 Deploy the ProxyAdmin contract
deploy-proxy-admin: build ## 🚀 Deploy the ProxyAdmin contract
cd script/proxy_admin && \
forge script DeployProxyAdmin.s.sol \
--sig "run(address)" \
Expand All @@ -41,14 +44,14 @@ deploy-proxy-admin: ## 🚀 Deploy the ProxyAdmin contract
--private-key $(PRIVATE_KEY) \
--broadcast

deploy-aligned-token-implementation: ## 🚀 Deploy the AlignedToken implementation contract
deploy-aligned-token-implementation: build ## 🚀 Deploy the AlignedToken implementation contract
cd script/aligned_token && \
forge script DeployAlignedTokenImplementation.s.sol \
--rpc-url $(RPC_URL) \
--private-key $(PRIVATE_KEY) \
--broadcast

deploy-aligned-token-proxy: ## 🚀 Deploy the AlignedToken proxy contract
deploy-aligned-token-proxy: build ## 🚀 Deploy the AlignedToken proxy contract
cd script/aligned_token && \
forge script DeployAlignedTokenProxy.s.sol \
--sig "run(address,address,address,address,address,address,uint256)" \
Expand All @@ -57,14 +60,14 @@ deploy-aligned-token-proxy: ## 🚀 Deploy the AlignedToken proxy contract
--private-key $(PRIVATE_KEY) \
--broadcast

deploy-claimable-airdrop-implementation: ## 🚀 Deploy the ClaimableAirdrop implementation contract
deploy-claimable-airdrop-implementation: build ## 🚀 Deploy the ClaimableAirdrop implementation contract
cd script/claimable_airdrop && \
forge script DeployClaimableAirdropImplementation.s.sol \
--rpc-url $(RPC_URL) \
--private-key $(PRIVATE_KEY) \
--broadcast

deploy-claimable-airdrop-proxy: ## 🚀 Deploy the ClaimableAirdrop proxy contract
deploy-claimable-airdrop-proxy: build ## 🚀 Deploy the ClaimableAirdrop proxy contract
cd script/claimable_airdrop && \
forge script DeployClaimableAirdropProxy.s.sol \
--sig "run(address,address,address,address,address,uint256,bytes32)" \
Expand All @@ -75,7 +78,7 @@ deploy-claimable-airdrop-proxy: ## 🚀 Deploy the ClaimableAirdrop proxy contra

# Upgrades

upgrade-aligned-token-implementation: ## 🚀 Upgrade the AlignedToken implementation contract
upgrade-aligned-token-implementation: build ## 🚀 Upgrade the AlignedToken implementation contract
cd script/aligned_token && \
forge script UpgradeAlignedTokenImplementation.s.sol \
--sig "function run(address,address,uint256,address,address,address,address,uint256)" \
Expand Down
8 changes: 8 additions & 0 deletions claim_contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

- Foundry

## Build

Install dependencies and compile the project running:

```bash
$ make build
```

## Local deploying

To deploy the contracts, set the following environment variables:
Expand Down
Loading