WIP
Proposal Contract Executes
Table of contents
Fund Proposal
Execute this command on the YFD contract address to fund a proposal. The YFD contract will then execute the funding message on the proposal contract.
{
send: {
contract: "[proposal_address]",
amount: "[amount]",
msg: encodeBase64({
stake: {}
})
}
}
{
"send": {
"contract": "[proposal_address]",
"amount": "[amount]",
"msg": "eyJzdGFrZSI6e319"
}
}
Finalize Proposal
For this and the rest of the commands, go to Contract in Terra Station, enter the proposal address, and click Execute.
{
finalize_proposal: {}
}
{
"finalize_proposal": {}
}
Pay Developer
Release funds to the developer based on the funding schedule in the proposal.
{
pay_developer: {
amount: "[amount]"
}
}
{
"pay_developer": {
"amount": "[amount]"
}
}
Mint NFT
Execute to mint NFTs.
{
mint_nft: {
metadata: {
strategist_uri: "ifps.example.com/strategist.json",
booster_uri: "ifps.example.com/booster.json",
treasury_uri: "ifps.example.com/treasury.json",
}
}
}
{
"mint_nft": {
"metadata": {
"strategist_uri": "ifps.example.com/strategist.json",
"booster_uri": "ifps.example.com/booster.json",
"treasury_uri": "ifps.example.com/treasury.json",
}
}
}
Claim Stake
Execute to claim stakes once proposal voting ended and it failed.
{
claim_stake: {}
}
{
"claim_stake": {}
}
Emergency Cancel
Execute to initiate emergency cancellation of proposal.
{
emergency_cancel: {
with_penalty: true
}
}
{
"emergency_cancel": {
"with_penalty": true
}
}