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§
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 Methods§
fn contract_sc_address(&self) -> Result<ScAddress, Error>
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.