Documentation ¶
Index ¶
- Constants
- Variables
- func AddBidFilterFlags(flags *pflag.FlagSet)
- func AddBidIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
- func AddDeploymentFilterFlags(flags *pflag.FlagSet)
- func AddDeploymentIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
- func AddDepositFlags(flags *pflag.FlagSet)
- func AddDepositorFlag(flags *pflag.FlagSet)
- func AddGroupIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
- func AddKeyringFlags(flags *pflag.FlagSet)
- func AddLeaseFilterFlags(flags *pflag.FlagSet)
- func AddLeaseIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
- func AddOrderFilterFlags(flags *pflag.FlagSet)
- func AddOrderIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
- func AddPaginationFlagsToCmd(cmd *cobra.Command, query string)
- func AddProviderFlag(flags *pflag.FlagSet)
- func AddQueryBidIDFlags(flags *pflag.FlagSet)
- func AddQueryFlagsToCmd(cmd *cobra.Command)
- func AddTxFlagsToCmd(cmd *cobra.Command)
- func BidFiltersFromFlags(flags *pflag.FlagSet) (v1beta5.BidFilters, error)
- func BidIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (v1.BidID, error)
- func ClientOptionsFromFlags(flagSet *pflag.FlagSet) ([]cltypes.ClientOption, error)
- func DepFiltersFromFlags(flags *pflag.FlagSet) (dv1beta4.DeploymentFilters, error)
- func DeploymentIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (dv1.DeploymentID, error)
- func DeploymentIDFromFlagsForOwner(flags *pflag.FlagSet, owner sdk.Address) (dv1.DeploymentID, error)
- func DepositorFromFlags(flags *pflag.FlagSet, owner string) (string, error)
- func FlagSetAmount() *pflag.FlagSet
- func FlagSetCommissionCreate() *pflag.FlagSet
- func FlagSetCommissionUpdate() *pflag.FlagSet
- func FlagSetDescriptionCreate() *pflag.FlagSet
- func FlagSetDescriptionEdit() *pflag.FlagSet
- func FlagSetPublicKey() *pflag.FlagSet
- func GroupIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (dv1.GroupID, error)
- func LeaseFiltersFromFlags(flags *pflag.FlagSet) (v1.LeaseFilters, error)
- func LeaseIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (v1.LeaseID, error)
- func MarkReqBidIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
- func MarkReqDeploymentIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
- func MarkReqDepositFlags(cmd *cobra.Command)
- func MarkReqGroupIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
- func MarkReqLeaseIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
- func MarkReqOrderIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
- func MarkReqProviderFlag(cmd *cobra.Command)
- func OrderFiltersFromFlags(flags *pflag.FlagSet) (v1beta5.OrderFilters, error)
- func OrderIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (v1.OrderID, error)
- func ParseGasSetting(gasStr string) (cltypes.GasSetting, error)
- type DeploymentIDOption
- type DeploymentIDOptions
- type MarketOption
- type MarketOptions
Constants ¶
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 = constants.DefaultGasAdjustment GasFlagAuto = constants.DefaultGas DefaultGasLimit = 200000 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" )
const ( FlagGenesisTime = "genesis-time" FlagGenTxDir = "gentx-dir" FlagRecover = "recover" // FlagDefaultBondDenom defines the default denom to use in the genesis file. FlagDefaultBondDenom = "default-denom" FlagDenom = "denom" FlagVestingStart = "vesting-start-time" FlagVestingEnd = "vesting-end-time" FlagVestingAmt = "vesting-amount" FlagAppendMode = "append" FlagEvents = "events" FlagType = "type" FlagMultisig = "multisig" FlagOverwrite = "overwrite" FlagSigOnly = "signature-only" FlagAmino = "amino" FlagNoAutoIncrement = "no-auto-increment" FlagAppend = "append" FlagTitle = "title" FlagMetadata = "metadata" FlagSummary = "summary" FlagNoValidate = "no-validate" FlagDaemonName = "daemon-name" FlagPeriod = "period" FlagPeriodLimit = "period-limit" FlagAllowedMsgs = "allowed-messages" FlagMsgType = "msg-type" FlagAllowedValidators = "allowed-validators" FlagDenyValidators = "deny-validators" FlagAllowList = "allow-list" FlagDeposit = "deposit" FlagStatus = "status" FlagState = "state" FlagOwner = "owner" FlagDSeq = "dseq" FlagGSeq = "gseq" FlagOSeq = "oseq" FlagProvider = "provider" FlagSerial = "serial" FlagPrice = "price" FlagDepositorAccount = "depositor-account" FlagExpiration = "expiration" FlagSpendLimit = "spend-limit" 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" FlagModulesToExport = "modules-to-export" FlagOutputDocument = "output-document" // inspired by wget -O FlagForZeroHeight = "for-zero-height" FlagJailAllowedAddrs = "jail-allowed-addrs" 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 FlagSplit = "split" FlagLogLevel = "log_level" FlagLogFormat = "log_format" FlagLogNoColor = "log_no_color" FlagLogColor = "log_color" FlagLogTimestamp = "log_timestamp" FlagTrace = "trace" FlagAddressValidator = "validator" FlagAddressValidatorSrc = "addr-validator-source" FlagAddressValidatorDst = "addr-validator-dest" FlagPubKey = "pubkey" FlagAmount = "amount" FlagMoniker = "moniker" FlagEditMoniker = "new-moniker" FlagIdentity = "identity" FlagWebsite = "website" FlagSecurityContact = "security-contact" FlagDetails = "details" FlagCommission = "commission" FlagCommissionRate = "commission-rate" FlagCommissionMaxRate = "commission-max-rate" FlagCommissionMaxChangeRate = "commission-max-change-rate" FlagGenesisFormat = "genesis-format" FlagNodeID = "node-id" FlagIP = "ip" FlagP2PPort = "p2p-port" FlagWithTendermint = "with-tendermint" FlagAddress = "address" FlagTransport = "transport" FlagTraceStore = "trace-store" FlagCPUProfile = "cpu-profile" FlagMinGasPrices = "minimum-gas-prices" FlagHaltHeight = "halt-height" FlagHaltTime = "halt-time" FlagInterBlockCache = "inter-block-cache" FlagUnsafeSkipUpgrades = "unsafe-skip-upgrades" FlagInvCheckPeriod = "inv-check-period" FlagPruning = "pruning" FlagPruningKeepRecent = "pruning-keep-recent" FlagPruningInterval = "pruning-interval" FlagIndexEvents = "index-events" FlagMinRetainBlocks = "min-retain-blocks" FlagIAVLCacheSize = "iavl-cache-size" FlagDisableIAVLFastNode = "iavl-disable-fastnode" FlagIAVLLazyLoading = "iavl-lazy-loading" FlagStateSyncSnapshotInterval = "state-sync.snapshot-interval" FlagStateSyncSnapshotKeepRecent = "state-sync.snapshot-keep-recent" )
const ( // FlagProposal only used for v1beta1 legacy proposals. FlagProposal = "proposal" // FlagDescription only used for v1beta1 legacy proposals. FlagDescription = "description" // FlagProposalType only used for v1beta1 legacy proposals. FlagProposalType = "type" // FlagUpgradeHeight only used for v1beta1 legacy proposals. FlagUpgradeHeight = "upgrade-height" // FlagUpgradeInfo only used for v1beta1 legacy proposals. FlagUpgradeInfo = "upgrade-info" )
Deprecated
Variables ¶
LineBreak can be included in a command list to provide a blank line to help with readability
Functions ¶
func AddBidFilterFlags ¶
AddBidFilterFlags add flags to filter for bid list
func AddBidIDFlags ¶
func AddBidIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
AddBidIDFlags add flags for bid
func AddDeploymentFilterFlags ¶
AddDeploymentFilterFlags add flags to filter for deployment list
func AddDeploymentIDFlags ¶
func AddDeploymentIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
AddDeploymentIDFlags add flags for deployment except for Owner when NoOwner is set
func AddDepositorFlag ¶
AddDepositorFlag adds the `--depositor-account` flag
func AddGroupIDFlags ¶
func AddGroupIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
AddGroupIDFlags add flags for Group
func AddKeyringFlags ¶
AddKeyringFlags sets common keyring flags
func AddLeaseFilterFlags ¶
AddLeaseFilterFlags add flags to filter for lease list
func AddLeaseIDFlags ¶
func AddLeaseIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
func AddOrderFilterFlags ¶
AddOrderFilterFlags add flags to filter for order list
func AddOrderIDFlags ¶
func AddOrderIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
AddOrderIDFlags add flags for order
func AddPaginationFlagsToCmd ¶
AddPaginationFlagsToCmd adds common pagination flags to cmd
func AddProviderFlag ¶
AddProviderFlag add provider flag to command flags set
func AddQueryBidIDFlags ¶
AddQueryBidIDFlags add flags for bid in query commands
func AddQueryFlagsToCmd ¶
AddQueryFlagsToCmd adds common flags to a module query command.
func AddTxFlagsToCmd ¶
AddTxFlagsToCmd adds common flags to a module tx command.
func BidFiltersFromFlags ¶
func BidFiltersFromFlags(flags *pflag.FlagSet) (v1beta5.BidFilters, error)
BidFiltersFromFlags returns BidFilters with given flags and error if occurred
func BidIDFromFlags ¶
BidIDFromFlags returns BidID with given flags and error if occurred Here provider value is taken from flags
func ClientOptionsFromFlags ¶
func ClientOptionsFromFlags(flagSet *pflag.FlagSet) ([]cltypes.ClientOption, error)
ClientOptionsFromFlags reads client options from cli flag set.
func DepFiltersFromFlags ¶
func DepFiltersFromFlags(flags *pflag.FlagSet) (dv1beta4.DeploymentFilters, error)
DepFiltersFromFlags returns DeploymentFilters with given flags and error if occurred
func DeploymentIDFromFlags ¶
func DeploymentIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (dv1.DeploymentID, error)
DeploymentIDFromFlags returns DeploymentID with given flags, owner and error if occurred
func DeploymentIDFromFlagsForOwner ¶
func DeploymentIDFromFlagsForOwner(flags *pflag.FlagSet, owner sdk.Address) (dv1.DeploymentID, error)
DeploymentIDFromFlagsForOwner returns DeploymentID with given flags, owner and error if occurred
func DepositorFromFlags ¶
DepositorFromFlags returns the depositor account if one was specified in flags, otherwise it returns the owner's account.
func FlagSetAmount ¶
FlagSetAmount Returns the FlagSet for amount related operations.
func FlagSetCommissionCreate ¶
FlagSetCommissionCreate Returns the FlagSet used for commission create.
func FlagSetPublicKey ¶
FlagSetPublicKey Returns the flagset for Public Key related operations.
func GroupIDFromFlags ¶
GroupIDFromFlags returns GroupID with given flags and error if occurred
func LeaseFiltersFromFlags ¶
func LeaseFiltersFromFlags(flags *pflag.FlagSet) (v1.LeaseFilters, error)
LeaseFiltersFromFlags returns LeaseFilters with given flags and error if occurred
func LeaseIDFromFlags ¶
LeaseIDFromFlags returns LeaseID with given flags and error if occurred Here provider value is taken from flags
func MarkReqBidIDFlags ¶
func MarkReqBidIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
MarkReqBidIDFlags marks flags required for bid Used in get bid query command
func MarkReqDeploymentIDFlags ¶
func MarkReqDeploymentIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
MarkReqDeploymentIDFlags marks flags required except for Owner when NoOwner is set
func MarkReqGroupIDFlags ¶
func MarkReqGroupIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
MarkReqGroupIDFlags marks flags required for group
func MarkReqLeaseIDFlags ¶
func MarkReqLeaseIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
MarkReqLeaseIDFlags marks flags required for bid Used in get bid query command
func MarkReqOrderIDFlags ¶
func MarkReqOrderIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
MarkReqOrderIDFlags marks flags required for order
func MarkReqProviderFlag ¶
MarkReqProviderFlag marks provider flag as required
func OrderFiltersFromFlags ¶
func OrderFiltersFromFlags(flags *pflag.FlagSet) (v1beta5.OrderFilters, error)
OrderFiltersFromFlags returns OrderFilters with given flags and error if occurred
func OrderIDFromFlags ¶
OrderIDFromFlags returns OrderID with given flags and error if occurred
func ParseGasSetting ¶
func ParseGasSetting(gasStr string) (cltypes.GasSetting, error)
ParseGasSetting parses a string gas value. The value may either be 'auto', which indicates a transaction should be executed in simulate mode to automatically find a sufficient gas value, or a string integer. It returns an error if a string integer is provided which cannot be parsed.
Types ¶
type DeploymentIDOption ¶
type DeploymentIDOption func(*DeploymentIDOptions)
func DeploymentIDOptionNoOwner ¶
func DeploymentIDOptionNoOwner(val bool) DeploymentIDOption
DeploymentIDOptionNoOwner do not add mark as required owner flag
type MarketOption ¶
type MarketOption func(*MarketOptions)
func WithOwner ¶
func WithOwner(val sdk.AccAddress) MarketOption
func WithProvider ¶
func WithProvider(val sdk.AccAddress) MarketOption
type MarketOptions ¶
type MarketOptions struct { Owner sdk.AccAddress Provider sdk.AccAddress }