pub trait ValidationHandler {
type Context;
type Error;
// Required methods
fn validate_env(&self, context: &Self::Context) -> Result<(), Self::Error>;
fn validate_tx_against_state(
&self,
context: &mut Self::Context,
) -> Result<(), Self::Error>;
fn validate_initial_tx_gas(
&self,
context: &Self::Context,
) -> Result<InitialAndFloorGas, Self::Error>;
}
Required Associated Types§
Required Methods§
Sourcefn validate_tx_against_state(
&self,
context: &mut Self::Context,
) -> Result<(), Self::Error>
fn validate_tx_against_state( &self, context: &mut Self::Context, ) -> Result<(), Self::Error>
Validate transactions against state.
Sourcefn validate_initial_tx_gas(
&self,
context: &Self::Context,
) -> Result<InitialAndFloorGas, Self::Error>
fn validate_initial_tx_gas( &self, context: &Self::Context, ) -> Result<InitialAndFloorGas, Self::Error>
Validate initial gas.