Enum wasm_deploy::cli::Commands
source · pub enum Commands<C, S>where
C: Deploy + Clone,
S: Subcommand + Clone + Debug,{
Show 22 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,
id: bool,
},
Schema {
contracts: Vec<C>,
},
StoreCode {
contracts: Vec<C>,
},
Instantiate {
contracts: Vec<C>,
interactive: bool,
},
Migrate {
contracts: Vec<C>,
interactive: bool,
},
SetConfig {
contracts: Vec<C>,
},
Execute {
contract: C,
},
Cw20Send {
contract: C,
},
Cw20Execute {},
Cw20Query {},
Cw20Instantiate {},
ExecutePayload {
contract: C,
payload: String,
},
Custom(S),
Query {
contract: C,
},
SetUp {
contracts: Vec<C>,
},
}Variants§
Update
Rebuilds deploy
Init
Initializes deploy, adding keys, chains, and envs
Build
Builds the contracts
Chain
Modify chains
Key
Modify keys
Contract
Fields
Modify contracts
Deploy
Builds, optimizes, stores, instantiates and sets configs.
Env
Fields
Modify deployment environments
Schema
Generates and imports schemas
StoreCode
Stores code for the contracts
Instantiate
Instantiates a contract using the preprogrammed messages
Migrate
Migrates contracts
SetConfig
Sets the config of a contract
Execute
Fields
§
contract: CExecutes a contract
Cw20Send
Fields
§
contract: CSends Cw20 tokens to a contract along with a payload
Cw20Execute
Fields
Executes a Cw20 message
Cw20Query
Fields
Queries a Cw20 contract
Cw20Instantiate
Fields
Instantiate a Cw20 contract
ExecutePayload
Executes a contract with a custom payload
Custom(S)
Executes a user defined command
Query
Fields
§
contract: CSends a query to a contract
SetUp
Sets up the smart contract env with executes
Trait Implementations§
source§impl<C, S> Clone for Commands<C, S>where
C: Deploy + Clone + Clone,
S: Subcommand + Clone + Debug + Clone,
impl<C, S> Clone for Commands<C, S>where C: Deploy + Clone + Clone, S: Subcommand + Clone + Debug + Clone,
source§impl<C, S> CommandFactory for Commands<C, S>where
C: Deploy + Clone,
S: Subcommand + Clone + Debug,
impl<C, S> CommandFactory for Commands<C, S>where C: Deploy + Clone, S: Subcommand + Clone + Debug,
source§impl<C, S> Debug for Commands<C, S>where
C: Deploy + Clone + Debug,
S: Subcommand + Clone + Debug + Debug,
impl<C, S> Debug for Commands<C, S>where C: Deploy + Clone + Debug, S: Subcommand + Clone + Debug + Debug,
source§impl<C, S> FromArgMatches for Commands<C, S>where
C: Deploy + Clone,
S: Subcommand + Clone + Debug,
impl<C, S> FromArgMatches for Commands<C, S>where C: Deploy + Clone, S: Subcommand + Clone + Debug,
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§impl<C, S> Parser for Commands<C, S>where
C: Deploy + Clone,
S: Subcommand + Clone + Debug,
impl<C, S> Parser for Commands<C, S>where C: Deploy + Clone, S: Subcommand + Clone + Debug,
§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
Parse from
std::env::args_os(), return Err on error.§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, exit on error
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, exit on error
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, return Err on error.
source§impl<C, S> Subcommand for Commands<C, S>where
C: Deploy + Clone,
S: Subcommand + Clone + Debug,
impl<C, S> Subcommand for Commands<C, S>where C: Deploy + Clone, S: Subcommand + Clone + Debug,
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl<C, S> RefUnwindSafe for Commands<C, S>where C: RefUnwindSafe, S: RefUnwindSafe,
impl<C, S> Send for Commands<C, S>where S: Send,
impl<C, S> Sync for Commands<C, S>where S: Sync,
impl<C, S> Unpin for Commands<C, S>where C: Unpin, S: Unpin,
impl<C, S> UnwindSafe for Commands<C, S>where C: UnwindSafe, S: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request