Enum ftoken::msg::HandleMsg [−][src]
pub enum HandleMsg {
Show 38 variants
Redeem {
amount: Uint128,
denom: Option<String>,
padding: Option<String>,
},
Deposit {
padding: Option<String>,
},
Transfer {
recipient: HumanAddr,
amount: Uint128,
memo: Option<String>,
padding: Option<String>,
},
Send {
recipient: HumanAddr,
recipient_code_hash: Option<String>,
amount: Uint128,
msg: Option<Binary>,
memo: Option<String>,
padding: Option<String>,
},
BatchTransfer {
actions: Vec<TransferAction>,
padding: Option<String>,
},
BatchSend {
actions: Vec<SendAction>,
padding: Option<String>,
},
Burn {
amount: Uint128,
memo: Option<String>,
padding: Option<String>,
},
RegisterReceive {
code_hash: String,
padding: Option<String>,
},
CreateViewingKey {
entropy: String,
padding: Option<String>,
},
SetViewingKey {
key: String,
padding: Option<String>,
},
IncreaseAllowance {
spender: HumanAddr,
amount: Uint128,
expiration: Option<u64>,
padding: Option<String>,
},
DecreaseAllowance {
spender: HumanAddr,
amount: Uint128,
expiration: Option<u64>,
padding: Option<String>,
},
TransferFrom {
owner: HumanAddr,
recipient: HumanAddr,
amount: Uint128,
memo: Option<String>,
padding: Option<String>,
},
SendFrom {
owner: HumanAddr,
recipient: HumanAddr,
recipient_code_hash: Option<String>,
amount: Uint128,
msg: Option<Binary>,
memo: Option<String>,
padding: Option<String>,
},
BatchTransferFrom {
actions: Vec<TransferFromAction>,
padding: Option<String>,
},
BatchSendFrom {
actions: Vec<SendFromAction>,
padding: Option<String>,
},
BurnFrom {
owner: HumanAddr,
amount: Uint128,
memo: Option<String>,
padding: Option<String>,
},
BatchBurnFrom {
actions: Vec<BurnFromAction>,
padding: Option<String>,
},
Mint {
recipient: HumanAddr,
amount: Uint128,
memo: Option<String>,
padding: Option<String>,
},
BatchMint {
actions: Vec<MintAction>,
padding: Option<String>,
},
AddMinters {
minters: Vec<HumanAddr>,
padding: Option<String>,
},
RemoveMinters {
minters: Vec<HumanAddr>,
padding: Option<String>,
},
SetMinters {
minters: Vec<HumanAddr>,
padding: Option<String>,
},
ChangeAdmin {
address: HumanAddr,
padding: Option<String>,
},
SetContractStatus {
level: ContractStatusLevel,
padding: Option<String>,
},
RevokePermit {
permit_name: String,
padding: Option<String>,
},
BatchReceiveNft {
sender: HumanAddr,
from: HumanAddr,
token_ids: Vec<String>,
msg: Option<Binary>,
},
Bid {
amount: Uint128,
},
Stake {
amount: Uint128,
},
Unstake {
amount: Uint128,
},
VoteProposal {
prop_id: u32,
vote: Vote,
},
FinalizeAuction {},
RetrieveBid {},
ClaimProceeds {},
Propose {
proposal: Proposal,
stake: Uint128,
},
FinalizeExecuteProp {
prop_id: u32,
},
RetrievePropStake {
prop_id: u32,
},
VoteReservationPrice {
resv_price: Uint128,
},
}
Variants
Redeem
Deposit
Transfer
Send
Fields
msg: Option<Binary>
BatchTransfer
BatchSend
Burn
RegisterReceive
CreateViewingKey
SetViewingKey
IncreaseAllowance
DecreaseAllowance
TransferFrom
Fields
SendFrom
Fields
msg: Option<Binary>
BatchTransferFrom
BatchSendFrom
BurnFrom
BatchBurnFrom
Mint
BatchMint
AddMinters
RemoveMinters
SetMinters
ChangeAdmin
SetContractStatus
RevokePermit
BatchReceiveNft
Fields
msg: Option<Binary>
optional message to control receiving logic
ftoken additions: SNIP721 receiver Receiver interface function for SNIP721 contract. Msg to be received from SNIP721 contract BatchReceiveNft may be a HandleMsg variant of any contract that wants to implement a receiver interface. BatchReceiveNft, which is more informative and more efficient, is preferred over ReceiveNft.
Bid
Bidder calls this function to place a bid for underlying NFT. Bid needs to be at least as large as the reservation price, otherwise the tx is invalid
Stake
Stake ftokens. Ftoken holders need to stake ftokens before voting on either proposals or the reservation price. Staked ftokens will be bonded for a period specified by the configuration
Unstake
Unstake ftokens. Ftoken holders can unstake ftokens after the bonding period
VoteProposal
Votes for DAO proposals to change configuration of the ftokens or send messages to the underlying NFT
FinalizeAuction
Fields
RetrieveBid
Fields
Message bidder calls to retrieve underlying NFT after winning a bid If a bidder fails to win an auction, the bidder can retrieve its bid after the auction period if over
ClaimProceeds
Fields
Once an underlying NFT is bought out, ftoken holders can claim their pro-rata share of sales proceeds
Propose
Fields
proposal: Proposal
stake: Uint128
Users need to stake a certain number of ftokens when making proposals, which
is set initially and can be later configured through the DAO. This stake can
be retrieve once the proposal’s voting period is over and the outcome finalized.
Proposers lose their stake if their proposal outcome is LostWithVeto
Make a DAO proposal
FinalizeExecuteProp
Fields
prop_id: u32
Once a proposal reaches the end of its voting period, anyone may call this transaction to simultaneously finalize the vote count and execute the proposal
RetrievePropStake
Fields
prop_id: u32
Proposers may retrieve their staked ftokens after proposals are finalized and
executed. This stake is lost if the vote outcome is LostWithVeto
VoteReservationPrice
ftoken holders whic have staked ftokens may vote a reservation price for the underlying NFT. The weighted average votes on reservation price will be the minimum bid amount that bidders need to make to buy out the underlying NFT
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
The name of the generated JSON Schema. Read more
Generates a JSON Schema for this type. Read more
fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. Read more
Auto Trait Implementations
impl RefUnwindSafe for HandleMsg
impl UnwindSafe for HandleMsg
Blanket Implementations
Mutably borrows from an owned value. Read more