pub trait DeterministicInstantiation<Chain: CwEnv>:
ContractInstance<Chain>
+ CwOrchUpload<Chain>
+ MigratableContract {
// Provided methods
fn deterministic_instantiate(
&self,
migrate_msg: &Self::MigrateMsg,
blob_code_id: u64,
expected_addr: CanonicalAddr,
salt: Binary,
) -> Result<(), CwOrchError> { ... }
fn deterministic_address(
&self,
salt: &Binary,
) -> Result<CanonicalAddr, Instantiate2AddressError> { ... }
}
Provided Methods§
sourcefn deterministic_instantiate(
&self,
migrate_msg: &Self::MigrateMsg,
blob_code_id: u64,
expected_addr: CanonicalAddr,
salt: Binary,
) -> Result<(), CwOrchError>
fn deterministic_instantiate( &self, migrate_msg: &Self::MigrateMsg, blob_code_id: u64, expected_addr: CanonicalAddr, salt: Binary, ) -> Result<(), CwOrchError>
Instantiate blob and migrate to your desired contract. It will upload your contract, if it’s not uploaded already
Checksum of the uploaded blob_code_id on chain should match [CwBlob::checksum()]
fn deterministic_address( &self, salt: &Binary, ) -> Result<CanonicalAddr, Instantiate2AddressError>
Object Safety§
This trait is not object safe.