pub enum WasmCmd {
Show 13 variants
New {
contract_name: String,
target_dir: Option<PathBuf>,
version: Option<String>,
template: Option<String>,
},
Build {
no_wasm_opt: bool,
aarch64: bool,
},
StoreCode {
contract_name: String,
no_wasm_opt: bool,
permit_instantiate_only: Option<String>,
base_tx_args: BaseTxArgs,
},
TsGen {
contract_name: String,
schema_gen_cmd: Option<String>,
out_dir: Option<PathBuf>,
node_package_manager: NodePackageManager,
},
UpdateAdmin {
contract_name: String,
label: String,
new_admin: String,
base_tx_args: BaseTxArgs,
},
ClearAdmin {
contract_name: String,
label: String,
base_tx_args: BaseTxArgs,
},
Instantiate {
contract_name: String,
label: String,
raw: Option<String>,
admin: Option<String>,
funds: Option<String>,
no_proposal_sync: bool,
yes: bool,
base_tx_args: BaseTxArgs,
},
Migrate {
contract_name: String,
label: String,
raw: Option<String>,
no_proposal_sync: bool,
yes: bool,
base_tx_args: BaseTxArgs,
},
Deploy {
contract_name: String,
label: String,
raw: Option<String>,
permit_instantiate_only: Option<String>,
admin: Option<String>,
funds: Option<String>,
no_rebuild: bool,
no_wasm_opt: bool,
base_tx_args: BaseTxArgs,
},
Upgrade {
contract_name: String,
label: String,
raw: Option<String>,
no_rebuild: bool,
no_wasm_opt: bool,
permit_instantiate_only: Option<String>,
base_tx_args: BaseTxArgs,
},
Proposal {
cmd: ProposalCmd,
},
Execute {
contract_name: String,
label: String,
raw: Option<String>,
funds: Option<String>,
base_tx_args: BaseTxArgs,
},
Query {
contract_name: String,
label: String,
raw: Option<String>,
base_tx_args: BaseTxArgs,
},
}Variants§
New
Fields
Create new CosmWasm contract from boilerplate
Build
Fields
Build .wasm for storing contract code on the blockchain
StoreCode
Fields
permit_instantiate_only: Option<String>Restricting the code to be able to instantiate only by given address, no restriction by default
base_tx_args: BaseTxArgsStore .wasm on chain for later initialization
TsGen
Fields
out_dir: Option<PathBuf>Code output directory, ignore remaining ts build process if custom out_dir is specified
node_package_manager: NodePackageManagerCode output directory
UpdateAdmin
Fields
base_tx_args: BaseTxArgsUpdate admin that can migrate contract
ClearAdmin
Fields
base_tx_args: BaseTxArgsClear admin so no one can migrate contract
Instantiate
Fields
admin: Option<String>Specifying admin required for contract migration. Use “signer” for setting tx signer as admin. Use bech32 address (eg. “osmo1cyyzpxplxdzkeea7kwsydadg87357qnahakaks”) for custom admin.
base_tx_args: BaseTxArgsInstanitate .wasm stored on chain
Migrate
Fields
base_tx_args: BaseTxArgsMigrated instanitate contract to use other code stored on chain
Deploy
Fields
permit_instantiate_only: Option<String>Restricting the code to be able to instantiate only by given address, no restriction by default
admin: Option<String>Specifying admin required for contract migration. Use “signer” for setting tx signer as admin. Use bech32 address (eg. “osmo1cyyzpxplxdzkeea7kwsydadg87357qnahakaks”) for custom admin.
base_tx_args: BaseTxArgsBuild, Optimize, Store code, and instantiate contract
Upgrade
Fields
permit_instantiate_only: Option<String>Restricting the code to be able to instantiate only by given address, no restriction by default
base_tx_args: BaseTxArgsBuild, Optimize, Store code, and migrate contract
Proposal
Fields
cmd: ProposalCmdExecute
Fields
base_tx_args: BaseTxArgsExecute contract messages
Query
Query contract state
Trait Implementations§
source§impl<'de> Deserialize<'de> for WasmCmd
impl<'de> Deserialize<'de> for WasmCmd
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl FromArgMatches for WasmCmd
impl FromArgMatches for WasmCmd
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>
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>
ArgMatches to self.source§impl<'a> Module<'a, WasmConfig, WasmCmd, Error> for WasmModule
impl<'a> Module<'a, WasmConfig, WasmCmd, Error> for WasmModule
source§impl Subcommand for WasmCmd
impl Subcommand for WasmCmd
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
Self can parse a specific subcommandAuto Trait Implementations§
impl RefUnwindSafe for WasmCmd
impl Send for WasmCmd
impl Sync for WasmCmd
impl Unpin for WasmCmd
impl UnwindSafe for WasmCmd
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
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>
T in a tonic::Request