Enum snip1155_reference_impl::state::txhistory::TxAction
source · pub enum TxAction {
Mint {
minter: Addr,
recipient: Addr,
amount: Uint128,
},
Burn {
burner: Option<Addr>,
owner: Addr,
amount: Uint128,
},
Transfer {
from: Addr,
sender: Option<Addr>,
recipient: Addr,
amount: Uint128,
},
}
Expand description
tx type and specifics for storage with Addr
Variants§
Mint
Burn
Fields
§
burner: Option<Addr>
in the base specification, the burner MUST be the owner. In the additional specifications, it is OPTIONAL to allow other addresses to burn tokens.
§
owner: Addr
§
amount: Uint128
Transfer
Fields
§
from: Addr
previous owner
§
recipient: Addr
new owner
§
amount: Uint128
amount of tokens transferred
transfer
or send
txs
Trait Implementations§
source§impl<'de> Deserialize<'de> for TxAction
impl<'de> Deserialize<'de> for TxAction
source§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
source§impl JsonSchema for TxAction
impl JsonSchema for TxAction
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
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