You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: claim_contracts/README.md
+27-7Lines changed: 27 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,6 @@
22
22
make deploy-claimable-local
23
23
```
24
24
5. Write down the claimable contract proxy address that is printed in the console output.
25
-
6. Approve the claimable contract to spend the token from the distributor
26
-
```
27
-
make approve-claimable TOKEN=<token-proxy-address> AIRDROP=<claimable-proxy-address> PRIVATE_KEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
28
-
```
29
25
30
26
## Testnet (Sepolia)
31
27
@@ -44,10 +40,34 @@
44
40
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.
45
41
4. Deploy the claimable contract
46
42
```
47
-
make deploy-claimable-testnet RPC_URL=<sepolia-rpc-url> PRIVATE_KEY=<sepolia-funded-account-private-key> ETHERSCAN_API_KEY=<etherscan-api-key>
43
+
make deploy-claimable-testnet RPC_URL=<sepolia-rpc-url> DEPLOYER_PRIVATE_KEY=<sepolia-funded-account-private-key> ETHERSCAN_API_KEY=<etherscan-api-key>
48
44
```
49
45
5. Write down the `claimable-proxy-address` that is printed in the console output.
50
-
6. Approve the claimable contract to spend the token from the distributor
46
+
47
+
## Enabling Claimability
48
+
49
+
### Local
50
+
51
+
1. Deploy the claimable contract as explained above.
52
+
2. Set the correct merkle root
53
+
```
54
+
make claimable-update-root MERKLE_ROOT=<claims-merkle-root>
55
+
```
56
+
3. Set the correct claim time limit
51
57
```
52
-
make approve-claimable TOKEN=<token-proxy-address> AIRDROP=<claimable-proxy-address> PRIVATE_KEY=<sepolia-funded-distributor-private-key>
58
+
make claimable-update-timestamp TIMESTAMP=2733427549
53
59
```
60
+
4. Approve the claimable contract to spend the token from the distributor
61
+
```
62
+
make approve-claimable
63
+
```
64
+
5. Unpause the claimable contract
65
+
```
66
+
make claimable-unpause
67
+
```
68
+
69
+
or
70
+
71
+
```
72
+
make deploy-example MERKLE_ROOT=<claims-merkle-root> TIMESTAMP=2733427549
0 commit comments