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

Enable claimability through calldata #1686

Merged
merged 8 commits into from
Dec 23, 2024

Conversation

ilitteri
Copy link
Collaborator

@ilitteri ilitteri commented Dec 23, 2024

Enabling Claimability

By Calldata

Important

  • This step-by-step assumes that the claimable proxy contract is already deployed and that is already paused. If it is not paused, the first transaction should be to pause it using this calldata cast calldata "pause()".
  • This method only generates the necessary calldata to call the methods through transactions. It does not actually call the methods. This method is useful for copy-pasting the calldata into a multisig wallet.
  • Steps 1, 2, and 4 can be batched into a single transaction in a multisig wallet. This multisig must be the ClaimableAirdrop contract owner.
  • Step 3 must be done by the token distributor multisig as it is the one that has the tokens to be claimed.

Warning

  • Double-check the data you passing into the commands, any mistake can lead to undesired behavior.
  • The data below is an example and should be replaced with the actual data.
  1. Update the merkle root
    cast calldata "updateMerkleRoot(bytes32)" 0x97619aea42a289b94acc9fb98f5030576fa7449f1dd6701275815a6e99441927
    
  2. Update the claim time limit
    cast calldata "extendClaimPeriod(uint256)" 2733427550
    
  3. Approve the claimable proxy contract to spend the token from the distributor (2.6B, taking into account the 18 decimals)
    cast calldata "approve(address,uint256)" 0x0234947ce63d1a5E731e5700b911FB32ec54C3c3 2600000000000000000000000000
    
  4. Unpause the claimable contract (it is paused by default)
    cast calldata "unpause()"
    

@ilitteri ilitteri self-assigned this Dec 23, 2024
@MauroToscano MauroToscano merged commit 8b3e51d into testnet Dec 23, 2024
0 of 3 checks passed
@MauroToscano MauroToscano deleted the enable_claimability_through_calldata branch December 23, 2024 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants