Trait ethers_middleware::transformer::Transformer
source · pub trait Transformer: Send + Sync + Debug {
// Required method
fn transform(
&self,
tx: &mut TypedTransaction
) -> Result<(), TransformerError>;
}
Expand description
Transformer
is a trait to be implemented by a proxy wallet, eg. DsProxy
, that intends to
intercept a transaction request and transform it into one that is instead sent via the proxy
contract.
Required Methods§
sourcefn transform(&self, tx: &mut TypedTransaction) -> Result<(), TransformerError>
fn transform(&self, tx: &mut TypedTransaction) -> Result<(), TransformerError>
Transforms a transaction request
into one that can be broadcasted and execute via the
proxy contract.