pub fn runtime_host_call(service: String, cmd: String, data: Vec<u8>) -> Result<Vec<u8>> {
    trace!(
        "Making host call {}::{}::len={}::",
        service,
        cmd,
        data.len()
    );
    match host_call("wapc", &service[..], &cmd[..], &data) {
        Ok(v) => Ok(v),
        Err(e) => {
            debug!("{:?}", e);
            Err(e)
        }
    }
}
/// The API calls made by the users contract implementation via the Collection, State interfaces etc..
/// get rounted to here. They are then passed over the Wasm boundary to be sent off (somehow) to the peer
///
The API calls made by the users contract implementation via the Collection, State interfaces etc
get rounted to here. They are then passed over the Wasm boundary to be sent off (somehow) to the peer
The API calls made by the users contract implementation via the Collection State interfaces etc get rounted to here . They are then passed over the Wasm boundary to be sent off ( somehow ) to the peer
pub fn runtime_host_call(service: String, cmd: String, data: Vec<u8>) -> Result<Vec<u8>> {
    trace!(
        "Making host call {}::{}::len={}::",
        service,
        cmd,
        data.len()
    );
    match host_call("wapc", &service[..], &cmd[..], &data) {
        Ok(v) => Ok(v),
        Err(e) => {
            debug!("{:?}", e);
            Err(e)
        }
    }
}
pub fn runtime_host_call ( service : String , cmd : String , data : Vec < u8 > ) -> Result < Vec < u8 > > { trace ! ( " " service cmd data len ( ) ) ; match host_call ( " " , & service [ .. ] , & cmd [ .. ] , & data ) { Ok ( v ) => Ok ( v ) , Err ( e ) => { debug ! ( " " e ) ; Err ( e ) } } }
The API calls made by the users contract implementation via the Collection, State interfaces etc..
get rounted to here.
The API calls made by the users contract implementation via the Collection State interfaces etc .. get rounted to here .
service
String
cmd
String
data
Vec<u8>