Skip to content

Commit d4a50d0

Browse files
author
ilitteri
committed
Add Sepolia deployment step-by-step
1 parent edcfa91 commit d4a50d0

1 file changed

Lines changed: 16 additions & 19 deletions

File tree

claim_contracts/README.md

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,23 @@
2222
> You can do the previous steps in one run with `make deploy-example MERKLE_ROOT=<merkle_root> TIMESTAMP=2733427549`.
2323
> Remember to write down the addresses of the proxies and their admins.
2424
25-
## Testnet (Sepolia)
25+
## How to run in Sepolia testnet
2626

27-
### Requisites
28-
29-
- Foundry
30-
- Etherscan API key
31-
32-
### Run
33-
34-
1. Create a file `script-config/config.sepolia.json` following the example in `script-config/config.sepolia.example.json`.
35-
2. Deploy the token
36-
```
37-
make deploy-token-testnet RPC_URL=<sepolia-rpc-url> PRIVATE_KEY=<sepolia-funded-account-private-key>
38-
```
39-
3. Write down the `token-proxy-address` that is printed in the console output. Do this in the `config.sepolia.json` file, under the `tokenProxy` key.
40-
4. Deploy the claimable contract
41-
```
42-
make deploy-claimable-testnet RPC_URL=<sepolia-rpc-url> DEPLOYER_PRIVATE_KEY=<sepolia-funded-account-private-key> ETHERSCAN_API_KEY=<etherscan-api-key>
43-
```
44-
5. Write down the `claimable-proxy-address` that is printed in the console output.
27+
> [!IMPORTANT]
28+
> Foundry must be installed and running.
29+
> You must have an Etherscan API key.
30+
31+
1. Get your **foundation** and **token distributor** wallet addresses and write them down in the `claim_contracts/script-config/config.sepolia.json` file (as it is done in the `claim_contracts/script-config/config.example.json` file).
32+
2. Run `make deploy-token-testnet DEPLOYER_PRIVATE_KEY=<deployer_private_key> RPC_URL=<sepolia_rpc_url> ETHERSCAN_API_KEY=<your_etherscan_api_key>`.
33+
3. Write down the forge script's output (the addresses of the token proxy and its admin preferably).
34+
4. From the output of the previous step, complete the `claim_contracts/script-config/config.sepolia.json` file with the token proxy address.
35+
5. Run `make deploy-claimable-testnet DEPLOYER_PRIVATE_KEY=<deployer_private_key> RPC_URL=<sepolia_rpc_url> ETHERSCAN_API_KEY=<your_etherscan_api_key>`.
36+
6. Write down the forge script's output (the addresses of the claimable proxy and its admin preferably).
37+
7. From the output of the previous step, complete the `claim_contracts/script-config/config.sepolia.json` file with the claimable proxy address.
38+
8. Run `make claimable-update-root RPC_URL=<sepolia_rpc_url> OWNER_PRIVATE_KEY=<foundation_private_key> AIRDROP=<claimable_proxy_address> MERKLE_ROOT=<merkle_root>`.
39+
9. Run `make claimable-update-timestamp RPC_URL=<sepolia_rpc_url> OWNER_PRIVATE_KEY=<foundation_private_key> AIRDROP=<claimable_proxy_address> TIMESTAMP=2733427549`.
40+
10. Run `make approve-claimable RPC_URL=<sepolia_rpc_url> DISTRIBUTOR_PRIVATE_KEY=<token_distributor_private_key> TOKEN=<token_proxy_address> AIRDROP=<claimable_proxy_address>`.
41+
11. Run `make claimable-unpause RPC_URL=<sepolia_rpc_url> OWNER_PRIVATE_KEY=<foundation_private_key> AIRDROP=<claimable_proxy_address>`.
4542

4643
## Enabling Claimability
4744

0 commit comments

Comments
 (0)