Expand description
Glob (*) import me to get all the types you need to get started with cw-orch.
use cw_orch::prelude::*;
Re-exports§
pub use crate::osmosis_test_tube::OsmosisTestTube;
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 namedartifacts
. It does this by reading the CARGO_MANIFEST_DIR environment variable and going up the file tree until it finds theartifacts
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§
- A human readable address.
- Points to a directory containing WASM files
- This structure wraps the Contract trait implementor and provides generic access to the contract’s entry-points.
- Represents a blockchain node. Is constructed with the DaemonBuilder.
- Represents a blockchain node. It’s constructed using
DaemonAsyncBuilder
. - Create
DaemonAsync
throughDaemonAsyncBuilder
- Create
Daemon
throughDaemonBuilder
- An empty struct that serves as a placeholder in different places, such as contracts that don’t set a custom message.
- Direct path to a
.wasm
file Stored asPathBuf
to avoid lifetimes. Can be constructed fromArtifactsDir
.
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
forChain = Daemon
andBox<&dyn Contract>
forChain = Mock
Type Aliases§
- Response type for actions on an environment