A CosmWasm smart contract that enables users to create and manage proposals with optional gifts. The contract facilitates proposal creation, responses, and gift transfers between proposers and receivers.
- Create proposals with optional titles, speeches, and gifts
- Cancel pending proposals
- Respond to proposals (Yes/No) with optional replies
- Query proposals by proposer, receiver, or status
- Configurable proposal fee system
- Owner-controlled contract configuration
owner
: Optional contract owner addresssuccessful_proposal_fee
: Fee charged for successful proposals
CreateProposal
: Create a new proposal with optional giftCancelProposal
: Cancel a pending proposalYes
: Accept a proposal with optional replyNo
: Reject a proposal with optional replyUpdateConfig
: Update contract configuration (owner only)UpdateOwnership
: Transfer or renounce contract ownership
Config
: Get contract configurationProposal
: Get proposal details by IDProposals
: List proposals with optional filtersOwnership
: Get current contract ownershipStatus
: Get proposal manager status
id
: Unique proposal identifierproposer
: Address of proposal creatorreceiver
: Address of proposal recipientgift
: Optional coins to be transferredfee
: Proposal feetitle
: Optional proposal titlespeech
: Optional proposal messagereply
: Optional response messagestatus
: Current proposal statuscreated_at
: Block height at creationreplied_at
: Block height at response