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
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
Message to send to SNIP721 contract
SendNft
Fields
token_id: String
msg: Option<Binary>
optional message to send with the (Batch)RecieveNft callback
Message to send to SNIP721 contract
Send
Fields
msg: Option<Binary>
Send
message to send to SNIP20 token address
SendFrom
Fields
msg: Option<Binary>
SendFrom
message to send to SNIP20 token address
Transfer
Transfer
message to send to SNIP20 token address
TransferFrom
Fields
TransferFrom
message to send to SNIP20 token address
Implementations
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
pad the message to blocks of this size
fn to_cosmos_msg(
&self,
callback_code_hash: String,
contract_addr: HumanAddr,
send_amount: Option<Uint128>
) -> Result<CosmosMsg<Empty>, StdError>
fn to_cosmos_msg(
&self,
callback_code_hash: String,
contract_addr: HumanAddr,
send_amount: Option<Uint128>
) -> Result<CosmosMsg<Empty>, StdError>
Returns StdResult
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for InterContrMsg
impl Send for InterContrMsg
impl Sync for InterContrMsg
impl Unpin for InterContrMsg
impl UnwindSafe for InterContrMsg
Blanket Implementations
Mutably borrows from an owned value. Read more