pub struct CwIcaControllerCode(pub u64);Expand description
CwIcaControllerCodeId is a wrapper around u64 that provides helpers for
initializing this contract.
Tuple Fields§
§0: u64Implementations§
Source§impl CwIcaControllerCode
impl CwIcaControllerCode
Sourcepub const fn new(code_id: u64) -> Self
pub const fn new(code_id: u64) -> Self
new creates a new CwIcaControllerCode
Sourcepub fn instantiate(
&self,
msg: impl Into<InstantiateMsg>,
label: impl Into<String>,
admin: Option<impl Into<String>>,
) -> StdResult<CosmosMsg>
pub fn instantiate( &self, msg: impl Into<InstantiateMsg>, label: impl Into<String>, admin: Option<impl Into<String>>, ) -> StdResult<CosmosMsg>
instantiate creates a WasmMsg::Instantiate message targeting this code
§Errors
This function returns an error if the given message cannot be serialized
Sourcepub fn instantiate2(
&self,
api: &dyn Api,
querier: &QuerierWrapper<'_>,
env: &Env,
msg: impl Into<InstantiateMsg>,
label: impl Into<String>,
admin: Option<impl Into<String>>,
salt: impl Into<String>,
) -> StdResult<(CosmosMsg, Addr)>
pub fn instantiate2( &self, api: &dyn Api, querier: &QuerierWrapper<'_>, env: &Env, msg: impl Into<InstantiateMsg>, label: impl Into<String>, admin: Option<impl Into<String>>, salt: impl Into<String>, ) -> StdResult<(CosmosMsg, Addr)>
instantiate2 returns a WasmMsg::Instantiate2 message targeting this code
and the contract address.
Warning: This function won’t work on chains which have substantially changed address generation such as Injective, test carefully.
§Errors
This function returns an error if the given message cannot be serialized or if the contract address cannot be calculated.
Trait Implementations§
Source§impl Clone for CwIcaControllerCode
impl Clone for CwIcaControllerCode
Source§fn clone(&self) -> CwIcaControllerCode
fn clone(&self) -> CwIcaControllerCode
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 CwIcaControllerCode
impl Debug for CwIcaControllerCode
Source§impl<'de> Deserialize<'de> for CwIcaControllerCode
impl<'de> Deserialize<'de> for CwIcaControllerCode
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 CwIcaControllerCode
impl JsonSchema for CwIcaControllerCode
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 CwIcaControllerCode
impl PartialEq for CwIcaControllerCode
Source§impl Serialize for CwIcaControllerCode
impl Serialize for CwIcaControllerCode
impl Eq for CwIcaControllerCode
impl StructuralPartialEq for CwIcaControllerCode
Auto Trait Implementations§
impl Freeze for CwIcaControllerCode
impl RefUnwindSafe for CwIcaControllerCode
impl Send for CwIcaControllerCode
impl Sync for CwIcaControllerCode
impl Unpin for CwIcaControllerCode
impl UnwindSafe for CwIcaControllerCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more