Trait cw_multi_test::Contract[][src]

pub trait Contract {
    fn handle(
        &self,
        deps: DepsMut<'_>,
        env: Env,
        info: MessageInfo,
        msg: Vec<u8>
    ) -> Result<Response, String>;
fn init(
        &self,
        deps: DepsMut<'_>,
        env: Env,
        info: MessageInfo,
        msg: Vec<u8>
    ) -> Result<Response, String>;
fn query(
        &self,
        deps: Deps<'_>,
        env: Env,
        msg: Vec<u8>
    ) -> Result<Binary, String>; }

Interface to call into a Contract

Required methods

fn handle(
    &self,
    deps: DepsMut<'_>,
    env: Env,
    info: MessageInfo,
    msg: Vec<u8>
) -> Result<Response, String>
[src]

fn init(
    &self,
    deps: DepsMut<'_>,
    env: Env,
    info: MessageInfo,
    msg: Vec<u8>
) -> Result<Response, String>
[src]

fn query(
    &self,
    deps: Deps<'_>,
    env: Env,
    msg: Vec<u8>
) -> Result<Binary, String>
[src]

Loading content...

Implementors

impl<T1, T2, T3, E1, E2, E3> Contract for ContractWrapper<T1, T2, T3, E1, E2, E3> where
    T1: DeserializeOwned,
    T2: DeserializeOwned,
    T3: DeserializeOwned,
    E1: Display,
    E2: Display,
    E3: Display
[src]

Loading content...