|
22 | 22 | > You can do the previous steps in one run with `make deploy-example MERKLE_ROOT=<merkle_root> TIMESTAMP=2733427549`. |
23 | 23 | > Remember to write down the addresses of the proxies and their admins. |
24 | 24 |
|
25 | | -## Testnet (Sepolia) |
| 25 | +## How to run in Sepolia testnet |
26 | 26 |
|
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>`. |
45 | 42 |
|
46 | 43 | ## Enabling Claimability |
47 | 44 |
|
|
0 commit comments