Enum fsnft_utils::InterContrMsg[][src]

pub enum InterContrMsg {
    RegisterReceiveNft {
        code_hash: String,
        also_implements_batch_receive_nft: Option<bool>,
        padding: Option<String>,
    },
    TransferNft {
        recipient: HumanAddr,
        token_id: String,
    },
    SendNft {
        contract: HumanAddr,
        token_id: String,
        msg: Option<Binary>,
    },
    Send {
        recipient: HumanAddr,
        recipient_code_hash: Option<String>,
        amount: Uint128,
        msg: Option<Binary>,
        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>,
    },
    Transfer {
        recipient: HumanAddr,
        amount: Uint128,
        memo: Option<String>,
        padding: Option<String>,
    },
    TransferFrom {
        owner: HumanAddr,
        recipient: HumanAddr,
        amount: Uint128,
        memo: Option<String>,
        padding: Option<String>,
    },
}

Variants

RegisterReceiveNft

Fields

code_hash: String

receving contract’s code hash

also_implements_batch_receive_nft: Option<bool>

optionally true if the contract also implements BatchReceiveNft. Defaults to false if not specified

padding: Option<String>

optional message length padding

Receiver interface function for SNIP721 contract. Msg to be sent to SNIP721 contract register that the message sending contract implements ReceiveNft and possibly BatchReceiveNft. If a contract implements BatchReceiveNft, SendNft will always call BatchReceiveNft even if there is only one token transferred (the token_ids Vec will only contain one ID)

TransferNft

Fields

recipient: HumanAddr
token_id: String

Message to send to SNIP721 contract

SendNft

Fields

contract: HumanAddr

address to send the token to

token_id: String
msg: Option<Binary>

optional message to send with the (Batch)RecieveNft callback

Message to send to SNIP721 contract

Send

Fields

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

Send message to send to SNIP20 token address

SendFrom

Fields

owner: HumanAddr

the address to send from

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

SendFrom message to send to SNIP20 token address

Transfer

Fields

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

Transfer message to send to SNIP20 token address

TransferFrom

Fields

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

TransferFrom message to send to SNIP20 token address

Implementations

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

pad the message to blocks of this size

Returns StdResult 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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.