pub struct CwBlob<Chain>(/* private fields */);
Implementations§
Trait Implementations§
source§impl<Chain: ChainState> ContractInstance<Chain> for CwBlob<Chain>
impl<Chain: ChainState> ContractInstance<Chain> for CwBlob<Chain>
source§fn as_instance(&self) -> &Contract<Chain>
fn as_instance(&self) -> &Contract<Chain>
Return a reference to the underlying contract instance.
source§fn as_instance_mut(&mut self) -> &mut Contract<Chain>
fn as_instance_mut(&mut self) -> &mut Contract<Chain>
Return a mutable reference to the underlying contract instance.
source§fn set_address(&self, address: &Addr)
fn set_address(&self, address: &Addr)
Sets the address for the contract. Useful when the contract is already initialized
and not registered in the configured state file.
source§fn remove_address(&self)
fn remove_address(&self)
Removes the address for the contract
source§fn set_default_address(&mut self, address: &Addr)
fn set_default_address(&mut self, address: &Addr)
Sets a default address for the contract. If the contract already has an address registered in the state, this won’t be used.
This is mostly used to ship address with a cw-orch package.
source§fn set_code_id(&self, code_id: u64)
fn set_code_id(&self, code_id: u64)
Sets the code_id for the contract. Useful when the contract is already initialized
and not registered in the configured state file.
source§fn remove_code_id(&self)
fn remove_code_id(&self)
Removes the code_id for the contract
source§fn set_default_code_id(&mut self, code_id: u64)
fn set_default_code_id(&mut self, code_id: u64)
Sets a default address for the contract. If the contract already has an address registered in the state, this won’t be used.
This is mostly used to ship address with a cw-orch package.
source§impl<T: CwEnv> Uploadable for CwBlob<T>
impl<T: CwEnv> Uploadable for CwBlob<T>
Auto Trait Implementations§
impl<Chain> Freeze for CwBlob<Chain>where
Chain: Freeze,
impl<Chain> RefUnwindSafe for CwBlob<Chain>where
Chain: RefUnwindSafe,
impl<Chain> Send for CwBlob<Chain>where
Chain: Send,
impl<Chain> Sync for CwBlob<Chain>where
Chain: Sync,
impl<Chain> Unpin for CwBlob<Chain>where
Chain: Unpin,
impl<Chain> UnwindSafe for CwBlob<Chain>where
Chain: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T, Chain> ConditionalUpload<Chain> for Twhere
Chain: CwEnv,
T: CwOrchUpload<Chain>,
impl<T, Chain> ConditionalUpload<Chain> for Twhere
Chain: CwEnv,
T: CwOrchUpload<Chain>,
source§fn upload_if_needed(
&self,
) -> Result<Option<<Chain as TxHandler>::Response>, CwEnvError>
fn upload_if_needed( &self, ) -> Result<Option<<Chain as TxHandler>::Response>, CwEnvError>
Only upload the contract if it is not uploaded yet (checksum does not match)
source§fn latest_is_uploaded(&self) -> Result<bool, CwEnvError>
fn latest_is_uploaded(&self) -> Result<bool, CwEnvError>
Returns whether the checksum of the WASM file matches the checksum of the latest uploaded code for this contract.
source§fn is_running_latest(&self) -> Result<bool, CwEnvError>
fn is_running_latest(&self) -> Result<bool, CwEnvError>
Returns whether the contract is running the latest uploaded code for it
source§impl<T, Chain> CwOrchUpload<Chain> for T
impl<T, Chain> CwOrchUpload<Chain> for T
source§fn upload(&self) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn upload(&self) -> Result<<Chain as TxHandler>::Response, CwEnvError>
upload the contract to the configured environment.
source§fn upload_with_access_config(
&self,
access_config: Option<AccessConfig>,
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn upload_with_access_config( &self, access_config: Option<AccessConfig>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
upload the contract to the configured environment and specify the permissions for instantiating
source§impl<Chain, T> Environment<Chain> for T
impl<Chain, T> Environment<Chain> for T
source§fn environment(&self) -> &Chain
fn environment(&self) -> &Chain
Returns the chain that this structure executes on
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