Trait NetworkContract

Source
pub trait NetworkContract {
    // Required methods
    fn contract_id(&self) -> Result<Contract, Error>;
    fn invoke_registry(
        &self,
        slop: &[&str],
        fee: Option<&Args>,
        view_only: bool,
    ) -> impl Future<Output = Result<String, Error>> + Send;
    fn rpc_client(&self) -> Result<Client, Error>;

    // Provided method
    fn contract_sc_address(&self) -> Result<ScAddress, Error> { ... }
}

Required Methods§

Source

fn contract_id(&self) -> Result<Contract, Error>

Source

fn invoke_registry( &self, slop: &[&str], fee: Option<&Args>, view_only: bool, ) -> impl Future<Output = Result<String, Error>> + Send

Source

fn rpc_client(&self) -> Result<Client, Error>

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NetworkContract for Args

Source§

fn contract_id(&self) -> Result<Contract, Error>

Source§

async fn invoke_registry( &self, slop: &[&str], fee: Option<&Args>, view_only: bool, ) -> Result<String, Error>

Source§

fn rpc_client(&self) -> Result<Client, Error>

Implementors§