pub enum StoredTxAction {
Mint {
minter: CanonicalAddr,
recipient: CanonicalAddr,
amount: Uint128,
},
Burn {
burner: Option<CanonicalAddr>,
owner: CanonicalAddr,
amount: Uint128,
},
Transfer {
from: CanonicalAddr,
sender: Option<CanonicalAddr>,
recipient: CanonicalAddr,
amount: Uint128,
},
}
Expand description
tx type and specifics for storage
Variants§
Mint
Burn
Fields
§
burner: Option<CanonicalAddr>
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: CanonicalAddr
§
amount: Uint128
Transfer
Fields
§
from: CanonicalAddr
previous owner
§
recipient: CanonicalAddr
new owner
§
amount: Uint128
amount of tokens transferred
transfer
or send
txs
Trait Implementations§
source§impl Clone for StoredTxAction
impl Clone for StoredTxAction
source§fn clone(&self) -> StoredTxAction
fn clone(&self) -> StoredTxAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StoredTxAction
impl Debug for StoredTxAction
source§impl<'de> Deserialize<'de> for StoredTxAction
impl<'de> Deserialize<'de> for StoredTxAction
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 StoredTxAction
impl JsonSchema for StoredTxAction
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