Struct cubist_proxy::transformer::eth_creds::CredProxy
source · pub struct CredProxy { /* private fields */ }
Expand description
EthProxy
can wrap around a Pair
, intercepting and transforming traffic
related to credentials.
Implementations§
source§impl CredProxy
impl CredProxy
sourcepub fn from_cfg(cfg: &EthProxyConfig) -> Result<Self, FatalErr>
pub fn from_cfg(cfg: &EthProxyConfig) -> Result<Self, FatalErr>
Instantiates a proxy using the provided config, including account generation
sourcepub fn wrap(
self: &Arc<CredProxy>,
endpoint: impl Pair<Value, JrpcRequest> + 'static
) -> impl Pair<Value, JrpcRequest>
pub fn wrap(
self: &Arc<CredProxy>,
endpoint: impl Pair<Value, JrpcRequest> + 'static
) -> impl Pair<Value, JrpcRequest>
Handles ethereum requests that pertain to credentials