Trait zksync_web3_rs::middleware::Policy
pub trait Policy: Sync + Send + Debug {
type Error: Sync + Send + Debug;
// Required method
fn ensure_can_send<'life0, 'async_trait>(
&'life0 self,
tx: TypedTransaction
) -> Pin<Box<dyn Future<Output = Result<TypedTransaction, Self::Error>> + Send + 'async_trait, Global>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Basic trait to ensure that transactions about to be sent follow certain rules.