Enum tg_bindings::TgradeMsg
source · [−]pub enum TgradeMsg {
Privilege(PrivilegeMsg),
MintTokens {
denom: String,
amount: Uint128,
recipient: String,
},
ConsensusParams(ConsensusParams),
WasmSudo {
contract_addr: String,
msg: Binary,
},
ExecuteGovProposal {
title: String,
description: String,
proposal: GovProposal,
},
}Expand description
A number of Custom messages that can be returned by ‘privileged’ contracts. Returning them from any other contract will return an error and abort the transaction.
Variants
Privilege(PrivilegeMsg)
request or release some privileges, such as BeginBlocker or TokenMinter
MintTokens
privileged contracts can mint arbitrary native tokens (extends BankMsg)
ConsensusParams(ConsensusParams)
as well as adjust tendermint consensus params
WasmSudo
Fields
contract_addr: Stringmsg: Binarymsg is the json-encoded SudoMsg struct (as raw Binary). Note the contract may support different variants than the base TgradeSudoMsg, which defines the base chain->contract interface
Run another contract in “sudo” mode (extends WasmMsg)
ExecuteGovProposal
This will execute an approved proposal in the Cosmos SDK “Gov Router”. That allows access to many of the system internals, like sdk params or x/upgrade, as well as privileged access to the wasm module (eg. mark module privileged)
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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for TgradeMsg
impl UnwindSafe for TgradeMsg
Blanket Implementations
Mutably borrows from an owned value. Read more