From 2fc6d4c817dd0fd1f059d5292518e6d2220fd5ae Mon Sep 17 00:00:00 2001 From: Angelo RC Date: Sat, 29 Oct 2022 12:54:25 +0200 Subject: [PATCH] update README.md update the README file to reflect the contract msgs --- contracts/cw20-merkle-airdrop/README.md | 40 +++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/contracts/cw20-merkle-airdrop/README.md b/contracts/cw20-merkle-airdrop/README.md index a313d004..7bd5a5b1 100644 --- a/contracts/cw20-merkle-airdrop/README.md +++ b/contracts/cw20-merkle-airdrop/README.md @@ -50,8 +50,9 @@ Uses **SHA256** for merkle root tree construction. ```rust pub struct InstantiateMsg { - pub owner: String, - pub cw20_token_address: String, + pub owner: Option, + pub cw20_token_address: Option, + pub native_token: Option, } ``` @@ -60,15 +61,40 @@ pub struct InstantiateMsg { ```rust pub enum ExecuteMsg { UpdateConfig { - owner: Option, + new_owner: Option, + new_cw20_address: Option, + new_native_token: Option, }, RegisterMerkleRoot { merkle_root: String, + expiration: Option, + start: Option, + total_amount: Option, + hrp: Option, }, Claim { stage: u8, amount: Uint128, proof: Vec, + /// Enables cross chain airdrops. + /// Target wallet proves identity by sending a signed [SignedClaimMsg](SignedClaimMsg) + /// containing the recipient address. + sig_info: Option, + }, + Burn { + stage: u8, + }, + /// Withdraw the remaining tokens after expire time (only owner) + Withdraw { + stage: u8, + address: String, + }, + Pause { + stage: u8, + }, + Resume { + stage: u8, + new_expiration: Option, }, } ``` @@ -87,6 +113,14 @@ pub enum QueryMsg { MerkleRoot { stage: u8 }, LatestStage {}, IsClaimed { stage: u8, address: String }, + TotalClaimed { stage: u8 }, + AccountMap { stage: u8, external_address: String }, + AllAccountMaps { + stage: u8, + start_after: Option, + limit: Option, + }, + IsPaused { stage: u8 }, } ```