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,
},
Delegate {
funds: Coin,
staker: String,
},
Undelegate {
funds: Coin,
recipient: String,
},
}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
Run another contract in “sudo” mode (extends WasmMsg)
Fields
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)
Delegate
This will stake funds from the sender’s vesting account. Requires Delegator privilege.
Undelegate
This will unstake funds to the recipient’s vesting account. Requires Delegator privilege.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TgradeMsg
impl<'de> Deserialize<'de> for TgradeMsg
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>,
Source§impl From<PrivilegeMsg> for TgradeMsg
impl From<PrivilegeMsg> for TgradeMsg
Source§fn from(msg: PrivilegeMsg) -> TgradeMsg
fn from(msg: PrivilegeMsg) -> TgradeMsg
Source§impl JsonSchema for TgradeMsg
impl JsonSchema for TgradeMsg
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more