PreTxCheckTrait

Trait PreTxCheckTrait 

Source
pub trait PreTxCheckTrait {
    type Error: From<StdError>;

    // Required methods
    fn pre_tx_check(
        &self,
        ctx: QueryCtx<'_>,
        msgs: Vec<CosmosMsg>,
    ) -> Result<bool, Self::Error>;
    fn contract_version(
        &self,
        ctx: QueryCtx<'_>,
    ) -> Result<ContractVersion, StdError>;
}
Expand description

The trait for each authenticator contract

Required Associated Types§

Required Methods§

Source

fn pre_tx_check( &self, ctx: QueryCtx<'_>, msgs: Vec<CosmosMsg>, ) -> Result<bool, Self::Error>

Source

fn contract_version( &self, ctx: QueryCtx<'_>, ) -> Result<ContractVersion, StdError>

Implementors§