pub struct IbcClient<Chain: BootEnvironment>(_);

Implementations§

source§

impl<Chain: BootEnvironment> IbcClient<Chain>

source

pub fn new(name: &str, chain: Chain) -> Self

Trait Implementations§

source§

impl<Chain: Clone + BootEnvironment> Clone for IbcClient<Chain>

source§

fn clone(&self) -> IbcClient<Chain>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Chain: BootEnvironment> ContractInstance<Chain> for IbcClient<Chain>

source§

fn as_instance(&self) -> &Contract<Chain>

source§

fn as_instance_mut(&mut self) -> &mut Contract<Chain>

source§

fn id(&self) -> String

source§

fn address(&self) -> Result<Addr, BootError>

source§

fn addr_str(&self) -> Result<String, BootError>

source§

fn code_id(&self) -> Result<u64, BootError>

source§

fn set_address(&self, address: &Addr)

source§

fn set_code_id(&self, code_id: u64)

source§

fn get_chain(&self) -> &Chain

source§

impl<Chain: BootEnvironment> CwInterface for IbcClient<Chain>

Auto Trait Implementations§

§

impl<Chain> !RefUnwindSafe for IbcClient<Chain>

§

impl<Chain> !Send for IbcClient<Chain>

§

impl<Chain> !Sync for IbcClient<Chain>

§

impl<Chain> Unpin for IbcClient<Chain>where Chain: Unpin,

§

impl<Chain> !UnwindSafe for IbcClient<Chain>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T, Chain> BootExecute<Chain> for Twhere T: CwInterface + ContractInstance<Chain>, Chain: BootEnvironment,

§

type ExecuteMsg = <T as CwInterface>::ExecuteMsg

source§

fn execute( &self, execute_msg: &<T as BootExecute<Chain>>::ExecuteMsg, coins: Option<&[Coin]> ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

impl<T, Chain> BootInstantiate<Chain> for Twhere T: CwInterface + ContractInstance<Chain>, Chain: BootEnvironment,

§

type InstantiateMsg = <T as CwInterface>::InstantiateMsg

source§

fn instantiate( &self, instantiate_msg: &<T as BootInstantiate<Chain>>::InstantiateMsg, admin: Option<&Addr>, coins: Option<&[Coin]> ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

impl<T, Chain> BootMigrate<Chain> for Twhere T: CwInterface + ContractInstance<Chain>, Chain: BootEnvironment,

§

type MigrateMsg = <T as CwInterface>::MigrateMsg

source§

fn migrate( &self, migrate_msg: &<T as BootMigrate<Chain>>::MigrateMsg, new_code_id: u64 ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

impl<T, Chain> BootQuery<Chain> for Twhere T: CwInterface + ContractInstance<Chain>, Chain: BootEnvironment,

§

type QueryMsg = <T as CwInterface>::QueryMsg

source§

fn query<G>( &self, query_msg: &<T as BootQuery<Chain>>::QueryMsg ) -> Result<G, BootError>where G: Serialize + DeserializeOwned + Debug,

source§

impl<T, Chain> BootUpload<Chain> for Twhere T: ContractInstance<Chain>, Chain: BootEnvironment,

source§

fn upload(&mut self) -> Result<<Chain as TxHandler>::Response, BootError>

source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CallAs for Twhere T: BootExecute<Mock<MockState>> + ContractInstance<Mock<MockState>> + Clone,

source§

fn call_as(&self, sender: &Addr) -> Self

source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<SupportedContract, Chain> ExecuteMsgFns<Chain> for SupportedContractwhere Chain: BootEnvironment, SupportedContract: BootExecute<Chain, ExecuteMsg = ExecuteMsg>,

source§

fn update_admin( &self, admin: String ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn update_config( &self, ans_host: Option<String>, version_control: Option<String> ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn send_funds( &self, funds: Vec<Coin, Global>, host_chain: String ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn register( &self, host_chain: String ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn send_packet( &self, action: HostAction, host_chain: String, retries: u8, callback_info: Option<CallbackInfo> ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn remove_host( &self, host_chain: String ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<SupportedContract, Chain> QueryMsgFns<Chain> for SupportedContractwhere Chain: BootEnvironment, SupportedContract: BootQuery<Chain, QueryMsg = QueryMsg>,

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.