pub struct StorageOutpostContract(pub Addr);
Expand description
StorageOutpostContract
is a wrapper around Addr that provides helpers
for working with this contract.
Tuple Fields§
§0: Addr
Implementations§
Source§impl StorageOutpostContract
impl StorageOutpostContract
Sourcepub const fn new(addr: Addr) -> Self
pub const fn new(addr: Addr) -> Self
new creates a new StorageOutpostContract
Sourcepub fn call(&self, msg: impl Into<ExecuteMsg>) -> StdResult<CosmosMsg>
pub fn call(&self, msg: impl Into<ExecuteMsg>) -> StdResult<CosmosMsg>
call creates a WasmMsg::Execute
message targeting this contract,
§Errors
This function returns an error if the given message cannot be serialized
Sourcepub fn query_channel(
&self,
querier: QuerierWrapper<'_>,
) -> StdResult<ChannelState>
pub fn query_channel( &self, querier: QuerierWrapper<'_>, ) -> StdResult<ChannelState>
query_channel
queries the state::ChannelState
of this contract
§Errors
This function returns an error if the query fails
Sourcepub fn query_state(
&self,
querier: QuerierWrapper<'_>,
) -> StdResult<ContractState>
pub fn query_state( &self, querier: QuerierWrapper<'_>, ) -> StdResult<ContractState>
query_state
queries the state::ContractState
of this contract
§Errors
This function returns an error if the query fails
Sourcepub fn migrate(
&self,
msg: impl Into<MigrateMsg>,
new_code_id: u64,
) -> StdResult<CosmosMsg>
pub fn migrate( &self, msg: impl Into<MigrateMsg>, new_code_id: u64, ) -> StdResult<CosmosMsg>
migrate
creates a WasmMsg::Migrate
message targeting this contract
§Errors
This function returns an error if the given message cannot be serialized
Trait Implementations§
Source§impl Clone for StorageOutpostContract
impl Clone for StorageOutpostContract
Source§fn clone(&self) -> StorageOutpostContract
fn clone(&self) -> StorageOutpostContract
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StorageOutpostContract
impl Debug for StorageOutpostContract
Source§impl<'de> Deserialize<'de> for StorageOutpostContract
impl<'de> Deserialize<'de> for StorageOutpostContract
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for StorageOutpostContract
impl JsonSchema for StorageOutpostContract
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for StorageOutpostContract
impl PartialEq for StorageOutpostContract
Source§impl Serialize for StorageOutpostContract
impl Serialize for StorageOutpostContract
impl Eq for StorageOutpostContract
impl StructuralPartialEq for StorageOutpostContract
Auto Trait Implementations§
impl Freeze for StorageOutpostContract
impl RefUnwindSafe for StorageOutpostContract
impl Send for StorageOutpostContract
impl Sync for StorageOutpostContract
impl Unpin for StorageOutpostContract
impl UnwindSafe for StorageOutpostContract
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more