Crowdfund
Introduction
InstantiateMsg
pub struct InstantiateMsg {
pub campaign_config: CampaignConfig,
pub tiers: Vec<Tier>,
pub kernel_address: String,
pub owner: Option<String>,
}{
"campaign_config": {
"title": "Campaign Title",
"description": "This is a short description of the campaign.",
"banner": "https://example.com/banner.jpg",
"url": "https://example.com",
"token_address": "andr1...",
"denom": {
"native_token": "uandr"
},
"withdrawal_recipient": {
"address": "andr1..."
},
"soft_cap": "100",
"hard_cap": "500"
},
"tiers": [
{
"level": "1",
"label": "Bronze",
"price": "1000",
"limit": null,
"sold_amount": "0",
"metadata": {
"extension": {
"publisher": "Publisher Name"
}
}
},
{
"level": "2",
"label": "Silver",
"price": "2000",
"limit": "500",
"metadata": {
"token_uri": "https://example.com/tier2.json",
"extension": {
"publisher": "Publisher Name"
}
}
}
],
"kernel_address":"andr1..."
}Name
Type
Desctription
CampaignConfig
Name
Type
Desctription
Tier
Name
Type
Description
TierMetadata
Name
Type
Description
TokenExtension
Name
Type
Description
ExecuteMsg
AddTier
Name
Type
Description
UpdateTier
Name
Type
Description
RemoveTier
Name
Type
Description
StartCampaign
Name
Type
Description
PresaleTierOrder
PurchaseTiers (Native)
Name
Type
Description
SimpleTierOrders
Name
Type
Description
Receive
PurchaseTiers (CW20)
Name
Type
Description
Claim
EndCampaign
DiscardCampaign
Base Executes
QueryMsg
CampaignSummary
CampaignSummaryResponse
TierOrders
Name
Type
Description
OrderBy
TierOrdersResponse
Tiers
Name
Type
TierResponse
Base Queries
Last updated
Was this helpful?