Crates.io | cw-goop |
lib.rs | cw-goop |
version | 0.1.5 |
source | src |
created_at | 2023-10-23 13:53:05.585474 |
updated_at | 2023-10-24 22:46:16.445162 |
description | Headstash Goop Contract |
homepage | |
repository | |
max_upload_size | |
id | 1011340 |
size | 77,031 |
Cw-goop is a customized version of Stargaze's Flexible Whitelist.
#[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
}
#[cw_serde]
pub enum ExecuteMsg {
AddMembers(AddMembersMsg),
UpdateAdmins { admins: Vec<String> },
Freeze {},
}
{
"AddMembers": {
"to_add": [
{
"address": "0x24EaSp0rts",
"claim_count": 0
},
{
"address": "0x23iMiNtHeGaMe",
"claim_count": 0
}
]
}
}
{
"UpdateAdmins": {
"admins": ["admin_address_1", "admin_address_2"]
}
}
{
"Freeze": {}
}