Struct boot_plus::CwPlusContract
source · pub struct CwPlusContract<Chain: TxHandler, E: Serialize + Debug, I: Serialize + Debug, Q: Serialize + Debug, M: Serialize + Debug>(_)
where
<Chain as TxHandler>::Response: IndexResponse;
Implementations
sourceimpl<Chain: TxHandler + Clone> CwPlusContract<Chain, ExecuteMsg<Empty>, InstantiateMsg, QueryMsg<Empty>, Empty>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> CwPlusContract<Chain, ExecuteMsg<Empty>, InstantiateMsg, QueryMsg<Empty>, Empty>where
TxResponse<Chain>: IndexResponse,
sourceimpl<Chain: TxHandler + Clone> CwPlusContract<Chain, Cw20ExecuteMsg, InstantiateMsg, QueryMsg, Empty>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> CwPlusContract<Chain, Cw20ExecuteMsg, InstantiateMsg, QueryMsg, Empty>where
TxResponse<Chain>: IndexResponse,
pub fn new(id: &str, chain: &Chain) -> Self
pub fn send(
&self,
msg: Binary,
amount: u128,
contract: String
) -> Result<TxResponse<Chain>, BootError>
pub fn transfer(
&self,
amount: u128,
recipient: String
) -> Result<TxResponse<Chain>, BootError>
pub fn create_new<T: Into<Uint128>>(
&self,
minter: &Addr,
balance: T
) -> Result<TxResponse<Chain>, BootError>
pub fn balance(&self, address: &Addr) -> Result<Uint128, BootError>
pub fn test_generic(&self, sender: &Addr) -> Result<(), BootError>
sourceimpl CwPlusContract<Chain, Cw20ExecuteMsg, InstantiateMsg, QueryMsg, Empty>
impl CwPlusContract<Chain, Cw20ExecuteMsg, InstantiateMsg, QueryMsg, Empty>
pub fn upload_required(&self) -> Result<bool, BootError>
Methods from Deref<Target = Contract<Chain, E, I, Q, M>>
pub fn chain(&self) -> Chain
pub fn execute(
&self,
msg: &E,
coins: Option<&[Coin]>
) -> Result<<Chain as TxHandler>::Response, BootError>
pub fn instantiate(
&self,
msg: &I,
admin: Option<&Addr>,
coins: Option<&[Coin]>
) -> Result<<Chain as TxHandler>::Response, BootError>
pub fn upload(&mut self) -> Result<<Chain as TxHandler>::Response, BootError>
pub fn query<T>(&self, query_msg: &Q) -> Result<T, BootError>where
T: Serialize + DeserializeOwned,
pub fn migrate(
&self,
migrate_msg: &M,
new_code_id: u64
) -> Result<<Chain as TxHandler>::Response, BootError>
pub fn address(&self) -> Result<Addr, BootError>
pub fn code_id(&self) -> Result<u64, BootError>
pub fn set_address(&self, address: &Addr)
pub fn set_code_id(&self, code_id: u64)
Trait Implementations
Auto Trait Implementations
impl<Chain, E, I, Q, M> !RefUnwindSafe for CwPlusContract<Chain, E, I, Q, M>
impl<Chain, E, I, Q, M> !Send for CwPlusContract<Chain, E, I, Q, M>
impl<Chain, E, I, Q, M> !Sync for CwPlusContract<Chain, E, I, Q, M>
impl<Chain, E, I, Q, M> Unpin for CwPlusContract<Chain, E, I, Q, M>where
Chain: Unpin,
E: Unpin,
I: Unpin,
M: Unpin,
Q: Unpin,
impl<Chain, E, I, Q, M> !UnwindSafe for CwPlusContract<Chain, E, I, Q, M>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request