Enum tg_bindings::Privilege
source · [−]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
sourceimpl<'de> Deserialize<'de> for Privilege
impl<'de> Deserialize<'de> for Privilege
sourcefn 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
sourceimpl JsonSchema for Privilege
impl JsonSchema for Privilege
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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
impl Copy for Privilege
impl StructuralPartialEq for Privilege
Auto Trait Implementations
impl RefUnwindSafe for Privilege
impl Send for Privilege
impl Sync for Privilege
impl Unpin for Privilege
impl UnwindSafe for Privilege
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more