pub enum Privilege {
BeginBlocker,
EndBlocker,
ValidatorSetUpdater,
GovProposalExecutor,
Sudoer,
TokenMinter,
ConsensusParamChanger,
Delegator,
StateExporterImporter,
}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
Delegator
contracts registered here are allowed to use Delegate / Undelegate to stake funds using the Cosmos SDK
StateExporterImporter
contracts registered here are allowed to use Export / Import to export / import their state
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Privilege
impl<'de> Deserialize<'de> for Privilege
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 JsonSchema for Privilege
impl JsonSchema for Privilege
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