Trait evm_rpc::BridgeERPC[][src]

pub trait BridgeERPC: Sized + Send + Sync + 'static {
    type Metadata: Metadata;
    fn accounts(&self, meta: Self::Metadata) -> Result<Vec<Hex<Address>>, Error>;
fn sign(
        &self,
        meta: Self::Metadata,
        address: Hex<Address>,
        data: Bytes
    ) -> Result<Bytes, Error>;
fn send_transaction(
        &self,
        meta: Self::Metadata,
        tx: RPCTransaction
    ) -> Result<Hex<H256>, Error>;
fn send_raw_transaction(
        &self,
        meta: Self::Metadata,
        tx: Bytes
    ) -> Result<Hex<H256>, Error>;
fn gas_price(&self, meta: Self::Metadata) -> Result<Hex<Gas>, Error>;
fn compilers(&self, meta: Self::Metadata) -> Result<Vec<String>, Error>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata> { ... } }

Associated Types

type Metadata: Metadata[src]

Loading content...

Required methods

fn accounts(&self, meta: Self::Metadata) -> Result<Vec<Hex<Address>>, Error>[src]

fn sign(
    &self,
    meta: Self::Metadata,
    address: Hex<Address>,
    data: Bytes
) -> Result<Bytes, Error>
[src]

fn send_transaction(
    &self,
    meta: Self::Metadata,
    tx: RPCTransaction
) -> Result<Hex<H256>, Error>
[src]

fn send_raw_transaction(
    &self,
    meta: Self::Metadata,
    tx: Bytes
) -> Result<Hex<H256>, Error>
[src]

fn gas_price(&self, meta: Self::Metadata) -> Result<Hex<Gas>, Error>[src]

fn compilers(&self, meta: Self::Metadata) -> Result<Vec<String>, Error>[src]

Loading content...

Provided methods

fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>[src]

Create an IoDelegate, wiring rpc calls to the trait methods.

Loading content...

Implementors

Loading content...