cw-orch-daemon 0.26.0

Scripting library for deploying and interacting with CosmWasm smart-contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::sync::Arc;

use cw_orch_core::environment::ChainInfoOwned;

use crate::DaemonError;

/// Allows building a `Sender` from `SenderBuilder::Options`
/// `async`` because it could do network requests during build
pub trait SenderBuilder {
    type Error: Into<DaemonError> + std::error::Error + std::fmt::Debug + Send + Sync + 'static;
    type Sender;

    /// Build a new `Sender`.
    fn build(
        &self,
        chain_info: &Arc<ChainInfoOwned>,
    ) -> impl std::future::Future<Output = Result<Self::Sender, Self::Error>> + Send;
}