Documentation
¶
Index ¶
- Constants
- Variables
- func AddDepositFlags(flags *pflag.FlagSet)
- func AddKeyringFlags(flags *pflag.FlagSet)
- func AddPaginationFlagsToCmd(cmd *cobra.Command, query string)
- func AddQueryFlagsToCmd(cmd *cobra.Command)
- func AddTxFlagsToCmd(cmd *cobra.Command)
- func DetectBidDeposit(ctx context.Context, flags *pflag.FlagSet, cl client.QueryClient) (sdk.Coin, error)
- func DetectDeploymentDeposit(ctx context.Context, flags *pflag.FlagSet, cl client.QueryClient) (sdk.Coin, error)
- func MarkReqDepositFlags(cmd *cobra.Command)
Constants ¶
View Source
const ( // DefaultGasAdjustment is applied to gas estimates to avoid tx execution // failures due to state changes that might occur between the tx simulation // and the actual run. DefaultGasAdjustment = 1.0 DefaultGasLimit = 200000 GasFlagAuto = "auto" DefaultKeyringBackend = keyring.BackendOS // BroadcastSync defines a tx broadcasting mode where the client waits for // a CheckTx execution response only. BroadcastSync = "sync" // BroadcastAsync defines a tx broadcasting mode where the client returns // immediately. BroadcastAsync = "async" BroadcastBlock = "block" // SignModeDirect is the value of the --sign-mode flag for SIGN_MODE_DIRECT SignModeDirect = "direct" // SignModeLegacyAminoJSON is the value of the --sign-mode flag for SIGN_MODE_LEGACY_AMINO_JSON SignModeLegacyAminoJSON = "amino-json" // SignModeDirectAux is the value of the --sign-mode flag for SIGN_MODE_DIRECT_AUX SignModeDirectAux = "direct-aux" // SignModeEIP191 is the value of the --sign-mode flag for SIGN_MODE_EIP_191 SignModeEIP191 = "eip-191" )
View Source
const ( FlagDeposit = "deposit" FlagState = "state" FlagOwner = "owner" FlagDSeq = "dseq" FlagGSeq = "gseq" FlagOSeq = "oseq" FlagProvider = "provider" FlagDepositorAccount = "depositor-account" FlagExpiration = "expiration" FlagHome = cmcli.HomeFlag FlagKeyringDir = "keyring-dir" FlagUseLedger = "ledger" FlagChainID = "chain-id" FlagNode = "node" FlagGRPC = "grpc-addr" FlagGRPCInsecure = "grpc-insecure" FlagHeight = "height" FlagGasAdjustment = "gas-adjustment" FlagFrom = "from" FlagName = "name" FlagAccountNumber = "account-number" FlagSequence = "sequence" FlagNote = "note" FlagFees = "fees" FlagGas = "gas" FlagGasPrices = "gas-prices" FlagBroadcastMode = "broadcast-mode" FlagDryRun = "dry-run" FlagGenerateOnly = "generate-only" FlagOffline = "offline" FlagOutputDocument = "output-document" // inspired by wget -O FlagSkipConfirmation = "yes" FlagProve = "prove" FlagKeyringBackend = "keyring-backend" FlagPage = "page" FlagLimit = "limit" FlagSignMode = "sign-mode" FlagPageKey = "page-key" FlagOffset = "offset" FlagCountTotal = "count-total" FlagTimeoutHeight = "timeout-height" FlagKeyType = "key-type" FlagFeePayer = "fee-payer" FlagFeeGranter = "fee-granter" FlagReverse = "reverse" FlagTip = "tip" FlagAux = "aux" FlagInitHeight = "initial-height" FlagDelayed = "delayed" // FlagOutput is the flag to set the output format. // This differs from FlagOutputDocument that is used to set the output file. FlagOutput = cmcli.OutputFlag // Tendermint logging flags FlagLogLevel = "log_level" FlagLogFormat = "log_format" FlagLogNoColor = "log_no_color" FlagLogColor = "log_color" FlagLogTimestamp = "log_timestamp" )
Variables ¶
LineBreak can be included in a command list to provide a blank line to help with readability
Functions ¶
func AddKeyringFlags ¶
AddKeyringFlags sets common keyring flags
func AddPaginationFlagsToCmd ¶
AddPaginationFlagsToCmd adds common pagination flags to cmd
func AddQueryFlagsToCmd ¶
AddQueryFlagsToCmd adds common flags to a module query command.
func AddTxFlagsToCmd ¶
AddTxFlagsToCmd adds common flags to a module tx command.
func DetectBidDeposit ¶
func DetectDeploymentDeposit ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.