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

Fields

amount: Uint128
denom: Option<String>
padding: Option<String>

Deposit

Fields

padding: Option<String>

Transfer

Fields

recipient: HumanAddr
amount: Uint128
memo: Option<String>
padding: Option<String>

Send

Fields

recipient: HumanAddr
recipient_code_hash: Option<String>
amount: Uint128
msg: Option<Binary>
memo: Option<String>
padding: Option<String>

BatchTransfer

Fields

actions: Vec<TransferAction>
padding: Option<String>

BatchSend

Fields

actions: Vec<SendAction>
padding: Option<String>

Burn

Fields

amount: Uint128
memo: Option<String>
padding: Option<String>

RegisterReceive

Fields

code_hash: String
padding: Option<String>

CreateViewingKey

Fields

entropy: String
padding: Option<String>

SetViewingKey

Fields

key: String
padding: Option<String>

IncreaseAllowance

Fields

spender: HumanAddr
amount: Uint128
expiration: Option<u64>
padding: Option<String>

DecreaseAllowance

Fields

spender: HumanAddr
amount: Uint128
expiration: Option<u64>
padding: Option<String>

TransferFrom

Fields

owner: HumanAddr
recipient: HumanAddr
amount: Uint128
memo: Option<String>
padding: Option<String>

SendFrom

Fields

owner: HumanAddr
recipient: HumanAddr
recipient_code_hash: Option<String>
amount: Uint128
msg: Option<Binary>
memo: Option<String>
padding: Option<String>

BatchTransferFrom

Fields

actions: Vec<TransferFromAction>
padding: Option<String>

BatchSendFrom

Fields

actions: Vec<SendFromAction>
padding: Option<String>

BurnFrom

Fields

owner: HumanAddr
amount: Uint128
memo: Option<String>
padding: Option<String>

BatchBurnFrom

Fields

actions: Vec<BurnFromAction>
padding: Option<String>

Mint

Fields

recipient: HumanAddr
amount: Uint128
memo: Option<String>
padding: Option<String>

BatchMint

Fields

actions: Vec<MintAction>
padding: Option<String>

AddMinters

Fields

minters: Vec<HumanAddr>
padding: Option<String>

RemoveMinters

Fields

minters: Vec<HumanAddr>
padding: Option<String>

SetMinters

Fields

minters: Vec<HumanAddr>
padding: Option<String>

ChangeAdmin

Fields

address: HumanAddr
padding: Option<String>

SetContractStatus

Fields

padding: Option<String>

RevokePermit

Fields

permit_name: String
padding: Option<String>

BatchReceiveNft

Fields

sender: HumanAddr

address that sent the tokens. There is no ReceiveNft field equivalent to this

from: HumanAddr

previous owner of sent tokens. This is equivalent to the ReceiveNft sender field

token_ids: Vec<String>

tokens that were sent

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

Fields

amount: Uint128

bid amount denominated in the smallest denomination of the token

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

Fields

amount: Uint128

The amount that the ftoken holder wishes to 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

Fields

amount: Uint128

The amount that the ftoken holder wishes to unstake

Unstake ftokens. Ftoken holders can unstake ftokens after the bonding period

VoteProposal

Fields

prop_id: u32

The proposal ID

vote: Vote

The vote that the user wishes to cast on the proposal

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

Fields

resv_price: Uint128

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.