[−][src]Struct cw3::Cw3Contract
Cw3Contract is a wrapper around HumanAddr that provides a lot of helpers for working with this.
If you wish to persist this, convert to Cw3CanonicalContract via .canonical()
FIXME: Cw3Contract currently only supports CosmosMsg
Implementations
impl Cw3Contract
[src]
pub fn addr(&self) -> HumanAddr
[src]
pub fn canonical<A: Api>(&self, api: &A) -> StdResult<Cw3CanonicalContract>
[src]
Convert this address to a form fit for storage
pub fn encode_msg(&self, msg: Cw3HandleMsg) -> StdResult<CosmosMsg>
[src]
pub fn proposal<T: Into<String>, U: Into<String>>(
&self,
title: T,
description: U,
msgs: Vec<CosmosMsg>,
earliest: Option<Expiration>,
latest: Option<Expiration>
) -> StdResult<CosmosMsg>
[src]
&self,
title: T,
description: U,
msgs: Vec<CosmosMsg>,
earliest: Option<Expiration>,
latest: Option<Expiration>
) -> StdResult<CosmosMsg>
helper doesn't support custom messages now
pub fn vote(&self, proposal_id: u64, vote: Vote) -> StdResult<CosmosMsg>
[src]
pub fn execute(&self, proposal_id: u64) -> StdResult<CosmosMsg>
[src]
pub fn close(&self, proposal_id: u64) -> StdResult<CosmosMsg>
[src]
Trait Implementations
impl Clone for Cw3Contract
[src]
fn clone(&self) -> Cw3Contract
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Cw3Contract
[src]
impl<'de> Deserialize<'de> for Cw3Contract
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl JsonSchema for Cw3Contract
[src]
fn schema_name() -> String
[src]
fn json_schema(gen: &mut SchemaGenerator) -> Schema
[src]
fn is_referenceable() -> bool
[src]
impl PartialEq<Cw3Contract> for Cw3Contract
[src]
fn eq(&self, other: &Cw3Contract) -> bool
[src]
fn ne(&self, other: &Cw3Contract) -> bool
[src]
impl Serialize for Cw3Contract
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Cw3Contract
[src]
Auto Trait Implementations
impl RefUnwindSafe for Cw3Contract
impl Send for Cw3Contract
impl Sync for Cw3Contract
impl Unpin for Cw3Contract
impl UnwindSafe for Cw3Contract
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,