Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 749 Bytes

README.md

File metadata and controls

37 lines (30 loc) · 749 Bytes

CW1-Lockbox

CW1 Lockbox is designed to keep a certain amount of native coins or CW20 tokens locked in the contract for a predetermined amount of time before those with the claim rights can withdraw their designated share of coins/tokens.

Instantiate

pub struct InstantiateMsg {
}

Execute

pub enum ExecuteMsg {
  CreateLockbox {
    owner: String,
    raw_claims: Vec<RawClaim>,
    expiration: Scheduled,
    native_token: Option<String>,
    cw20_addr: Option<String>
  },

  Reset { id: Uint64 },

  Deposit { id: Uint64 },

  Receive(Cw20ReceiveMsg),

  Claim { id: Uint64 },
}

Query

pub enum QueryMsg {
  GetLockBox {id: Uint64},

  ListLockBoxes {start_after: Option<u64>, limit: Option<u32>}
}