The Merkle-Airdrop ADO is a smart contract that allows projects to launch airdrops using the Merkle-tree (hashing). Uses the same logic of the base cw20-merkel-airdrop contract. If you do not know what is a Merkle-airdrop and how it is different from a normal airdrop, please refer to the following article.
The merkle airdorp can be used to either airdrop CW20 tokens or native tokens.
In case of CW20 tokens, the airdrop ADO should be the owner of the CW20 tokens to distribute.
Ado_type: merkle-airdrop
Version: 2.0.1-beta.1
Name | Type | Description |
---|---|---|
Sets the provided Merkle-root that contains the whitelisted addresses that can claim tokens from the airdrop.
Only the owner can execute RegisterMerkleRoot
.
Claims the funds assigned to the address executing the claim.
Only addresses found in the Merkle-Root can claim tokens.
Burn the remaining tokens (unclaimed) after expire time for the specified stage
.
Only the owner can execute Burn
.
The rest of the execute messages can be found in the ADO Base section.
Queries the Merkle-Root for the specified stage
.
Queries the last stage.
Checks if the specified address
has claimed the airdrop tokens.
The rest of the query messages can be found in the ADO Base section.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
asset_info
The assets to airdrop. Can be either a native token or a CW20.
kernel_address
String
Contract address of the kernel contract to be used for AMP messaging. Kernel contract address can be found in our deployed contracts.
owner
Option<String>
Optional address to specify as the owner of the ADO being created. Defaults to the sender if not specified.
merkle_root
String
A hex-encoded Merkle root.
expiration
Option<Expiry>
An optional expiration for the root. Defaults to never if not specified.
total_amount
Option<Uint128>
An optional amount to specify the maximum number of tokens that can be claimed from the airdrop.
stage
u8
Stage is used to index which airdrop to claim from. There can be more than one airdrop and each is referenced by it's designated stage.
amount
Uint128
The amount of tokens to claim.
proof
Vec<String>
Hex-encoded Merkle proof that proves that the address claiming the tokens from the airdrop is found in the Merkle-Root. Needs to be calculated similar to this.
stage
u8
The stage of the airdrop used to specify which airdrop to execute burn on.
asset_info
The type of Asset.
stage
u8
The stage which we want to get the Merkle root for.
stage
u8
The stage that belongs to this root.
merkle_root
String
The Merkle-Root of this stage.
expiration
The expiration for the airdrop of this stage.
total_amount
Uint128
The total amount of funds to be airdropped belonging to this stage.
stage
u8
The stage to check.
address
String
The address to check.
is_claimed
bool
Returns true if the funds have claimed and false otherwise.
stage
u8
The stage to check the amount claimed.
total_claimed
Uint128
The stage to check the amount claimed.