cw-goop

Crates.iocw-goop
lib.rscw-goop
version0.1.5
sourcesrc
created_at2023-10-23 13:53:05.585474
updated_at2023-10-24 22:46:16.445162
descriptionHeadstash Goop Contract
homepage
repository
max_upload_size
id1011340
size77,031
(discoverdefiteam)

documentation

README

CW-Goop

Cw-goop is a customized version of Stargaze's Flexible Whitelist.

InstantiateMsg

#[cw_serde]
pub struct InstantiateMsg {
    pub members: Vec<Member>,
    pub claim_limit: u32,
    pub admins: Vec<String>,
    pub admins_mutable: bool,
}

json example:

{
  "members": [
    {
      "address": "0x24EaSp0rts..",
      "headstash_amount": 123456789,
      "claim_count": 0
    },
    {
      "address": "0x23iMiNtHeGaMe...",
      "headstash_amount": 987654321,
      "claim_count": 1 
    }
  ],
  "claim_limit": 1,
  "admins": [
    "terp1...", 
    "terp1a...."
    ],
  "admins_mutable": true
}

ExecuteMsg

#[cw_serde]
pub enum ExecuteMsg {
    AddMembers(AddMembersMsg),
    UpdateAdmins { admins: Vec<String> },
    Freeze {},
}

AddMembers

{
  "AddMembers": {
    "to_add": [
      {
        "address": "0x24EaSp0rts",
        "claim_count": 0
      },
      {
        "address": "0x23iMiNtHeGaMe",
        "claim_count": 0
      }
    ]
  }
}

UpdateAdmins

{
  "UpdateAdmins": {
    "admins": ["admin_address_1", "admin_address_2"]
  }
}

Freeze

{
  "Freeze": {}
}

QueryMsg

Members

HasMember

Member

Config

AdminList

CanExecute

PerAddressLimit

Commit count: 0

cargo fmt