Docs.rs
  • wasm-deploy-0.2.0
    • wasm-deploy 0.2.0
    • Docs.rs crate page
    • MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • ewoolsey
    • Dependencies
      • async-recursion ^1.0.0 normal
      • clap ^4 normal
      • clap_complete ^4 normal
      • colored ^2.0.0 normal
      • colored_json ^3.0.1 normal
      • cosm-tome ^0.2 normal
      • cw20 ^1 normal
      • inquire ^0.5.2 normal
      • interactive-parse ^0.1.0 normal
      • keyring ^1.2.0 normal
      • lazy_static ^1.4.0 normal
      • log ^0.4 normal
      • schemars ^0.8 normal
      • serde ^1.0.137 normal
      • serde_json ^1.0 normal
      • strum ^0.24.1 normal
      • thiserror ^1.0.37 normal
      • tokio ^1.24.1 normal
    • Versions
    • 19.8% of the crate is documented
  • Go to latest version
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

Contract

Required Associated Types

  • Cw20HookMsg
  • ExecuteMsg
  • QueryMsg

Required Methods

  • admin
  • config_msg
  • external_instantiate_msgs
  • instantiate_msg
  • migrate_msg
  • name
  • set_up_msgs

Implementors

In wasm_deploy::contract

?
Change settings

Trait wasm_deploy::contract::Contract

source ·
pub trait Contract: Send + Sync + Debug + From<String> + IntoEnumIterator + Display + Clone + 'static {
    type ExecuteMsg: Execute;
    type QueryMsg: Query;
    type Cw20HookMsg: Cw20Hook;

    // Required methods
    fn name(&self) -> String;
    fn admin(&self) -> String;
    fn instantiate_msg(&self) -> Result<Value, DeployError>;
    fn migrate_msg(&self) -> Result<Option<Value>, DeployError>;
    fn external_instantiate_msgs(
        &self
    ) -> Result<Vec<ExternalInstantiate>, DeployError>;
    fn config_msg(&self) -> Result<Option<Value>, DeployError>;
    fn set_up_msgs(&self) -> Result<Vec<Value>, DeployError>;
}

Required Associated Types§

source

type ExecuteMsg: Execute

source

type QueryMsg: Query

source

type Cw20HookMsg: Cw20Hook

Required Methods§

source

fn name(&self) -> String

source

fn admin(&self) -> String

source

fn instantiate_msg(&self) -> Result<Value, DeployError>

source

fn migrate_msg(&self) -> Result<Option<Value>, DeployError>

source

fn external_instantiate_msgs( &self ) -> Result<Vec<ExternalInstantiate>, DeployError>

source

fn config_msg(&self) -> Result<Option<Value>, DeployError>

source

fn set_up_msgs(&self) -> Result<Vec<Value>, DeployError>

Implementors§