pub enum Commands<C, S>where
    C: Contract,
    S: Subcommand,
{
Show 20 variants Update, Init, Build { contracts: Vec<C>, }, Chain { add: bool, delete: bool, }, Key { add: bool, delete: bool, }, Contract { add: bool, delete: bool, }, Deploy { contracts: Vec<C>, no_build: bool, }, Env { add: bool, delete: bool, select: bool, }, Schema { contracts: Vec<C>, }, StoreCode { contracts: Vec<C>, }, Instantiate { contracts: Vec<C>, }, Migrate { contracts: Vec<C>, }, SetConfig { contracts: Vec<C>, }, Execute { contract: C, }, Cw20Send { contract: C, }, Cw20Transfer {}, ExecutePayload { contract: C, payload: String, }, CustomCommand { command: S, }, Query { contract: C, }, SetUp { contracts: Vec<C>, },
}

Variants§

§

Update

Rebuilds deploy

§

Init

Initializes deploy, adding keys, chains, and envs

§

Build

Fields

§contracts: Vec<C>

Name of the contract

Builds the contracts

§

Chain

Fields

§add: bool

Triggers dialogue to add a chain

§delete: bool

Triggers dialogue to delete a chain

Modify chains

§

Key

Fields

§add: bool

Triggers dialogue to add a key

§delete: bool

Triggers dialogue to delete a key

Modify keys

§

Contract

Fields

§add: bool

Triggers dialogue to add a contract

§delete: bool

Triggers dialogue to delete a contract

Modify chains

§

Deploy

Fields

§contracts: Vec<C>

Name of the contract

§no_build: bool

Deploys but does not recompile first

Builds, optimizes, stores, instantiates and sets configs. Does not run set_up

§

Env

Fields

§add: bool

Triggers dialogue to add a deployment environment

§delete: bool

Triggers dialogue to delete deployment environment

§select: bool

Triggers dialogue to select an env to activate

Modify deployment environments

§

Schema

Fields

§contracts: Vec<C>

Name of the contract

Generates and imports schemas

§

StoreCode

Fields

§contracts: Vec<C>

Name of the contract

Stores code for the contracts

§

Instantiate

Fields

§contracts: Vec<C>

Name of the contract

Instantiates a contract

§

Migrate

Fields

§contracts: Vec<C>

Name of the contract

Migrates contracts

§

SetConfig

Fields

§contracts: Vec<C>

Name of the contract

Sets the config of a contract

§

Execute

Fields

§contract: C

Executes a contract

§

Cw20Send

Fields

§contract: C

Sends Cw20 tokens to a contract along with a payload

§

Cw20Transfer

Fields

Transfers Cw20 tokens to another address

§

ExecutePayload

Fields

§contract: C
§payload: String

Executes a contract with a custom payload

§

CustomCommand

Fields

§command: S

Executes a user defined command

§

Query

Fields

§contract: C

Sends a query to a contract

§

SetUp

Fields

§contracts: Vec<C>

Name of the contract

Sets up the smart contract env with executes

Trait Implementations§

Build a Command that can instantiate Self. Read more
Build a Command that can update self. Read more
Formats the value using the given formatter. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Parse from std::env::args_os(), exit on error
Parse from std::env::args_os(), return Err on error.
Parse from iterator, exit on error
Parse from iterator, return Err on error.
Update from iterator, exit on error
Update from iterator, return Err on error.
Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more