Enum tg_bindings::Privilege
source · [−]pub enum Privilege {
BeginBlocker,
EndBlocker,
ValidatorSetUpdater,
GovProposalExecutor,
Sudoer,
TokenMinter,
ConsensusParamChanger,
}Variants
BeginBlocker
contracts registered here are called the beginning of each block with possible double-sign evidence
EndBlocker
contracts registered here are called the end of every block
ValidatorSetUpdater
only max 1 contract can be registered here, this is called in EndBlock (after everything else) and can change the validator set.
GovProposalExecutor
contracts registered here are allowed to call ExecuteGovProposal{} (Any privileged contract can register, but this means you must explicitly request permission before sending such a message)
Sudoer
contracts registered here are allowed to use WasmSudo msg to call other contracts
TokenMinter
contracts registered here are allowed to use MintTokens msg
ConsensusParamChanger
contracts registered here are allowed to use ConsensusParams msg to adjust tendermint
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
Auto Trait Implementations
impl RefUnwindSafe for Privilege
impl UnwindSafe for Privilege
Blanket Implementations
Mutably borrows from an owned value. Read more