Module cw_orch::prelude

source ·
Expand description

Glob (*) import me to get all the types you need to get started with cw-orch.

use cw_orch::prelude::*;

Re-exports§

Modules§

  • Live mock is a mock that uses a live chain to query for data. It can be used to do chain-backed unit-testing. It can’t be used for state-changing operations.
  • Cosmos blockchain networks
  • DaemonQuerier

Macros§

  • Creates an ArtifactsDir from the current workspace by searching the file tree for a directory named artifacts. It does this by reading the CARGO_MANIFEST_DIR environment variable and going up the file tree until it finds the artifacts directory.
  • This functions allows for making sure the tests are stabilised and changes made to contracts don’t have an impact on the internal storage This should ONLY be used when cw_orch is in scope Usage:

Structs§

Enums§

  • cw-orchestrator error wrapper using thiserror.

Traits§

  • Enables calling a contract with a different sender.
  • Helper methods for conditional migration of a contract.
  • Helper methods for conditional uploading of a contract.
  • Interface to the underlying Contract struct. Implemented automatically when using our macros.
  • Signals a supported execution environment for CosmWasm contracts
  • Smart contract execute entry point.
  • Smart contract instantiate entry point.
  • Smart contract migrate entry point.
  • Smart contract query entry point.
  • Trait that indicates that the contract can be uploaded.
  • Indicates the ability to deploy an application to a mock chain.
  • Trait that indicates that the contract can be executed with the associated message.
  • Index data returned by transactions which are applicable to both AppResponse (mock env) and TxResponse (live env)
  • Trait that indicates that the contract can be instantiated with the associated message.
  • Trait that indicates that the contract can be migrated with the associated message.
  • This trait serves as a primary interface for interacting with contracts.
  • This trait acts as the high-level trait bound for supported queries on a CwEnv environment. It also implements some high-level functionality to make it easy to access.
  • Trait that indicates that the contract can be queried with the associated message.
  • Alows the execution of stargate like messages on cw-orch environments
  • This Interface allows for managing the local state of a deployment on any CosmWasm-supported environment.
  • Signer trait for chains. Accesses the sender information from the chain object to perform actions.
  • Trait to implement on the contract to enable it to be uploaded Should return WasmPath for Chain = Daemon and Box<&dyn Contract> for Chain = Mock

Type Aliases§