[][src]Trait oasis_client::gateway::Gateway

pub trait Gateway {
    fn deploy(&self, initcode: &[u8]) -> Result<Address, RpcError>;
fn rpc(&self, address: Address, payload: &[u8]) -> Result<Vec<u8>, RpcError>; }

Required methods

fn deploy(&self, initcode: &[u8]) -> Result<Address, RpcError>

Deploys a new service with the provided initcode. initcode is expected to be the Wasm bytecode concatenated with the the constructor stdin. Upon success, returns the address of the new service.

fn rpc(&self, address: Address, payload: &[u8]) -> Result<Vec<u8>, RpcError>

Returns the output of calling the service at address with data as stdin.

Loading content...

Implementors

impl Gateway for HttpGateway[src]

Loading content...