cli

package module
v0.0.2-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 108 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextTypeClient      = ContextType("context-client")
	ContextTypeQueryClient = ContextType("context-query-client")
)
View Source
const ClientContextKey = sdk.ContextKey("client.context")
View Source
const (
	MaxMessagesPerTxDefault = 0
)
View Source
const ServerContextKey = sdk.ContextKey("server.context")

Variables

View Source
var (
	FlagCommission       = "commission"
	FlagMaxMessagesPerTx = "max-msgs"
)

Transaction flags for the x/distribution module

View Source
var (
	DefaultPowerReduction   = sdkmath.NewIntFromUint64(sdk.DefaultPowerReduction.Uint64())
	DefaultMinDepositTokens = sdkmath.NewIntFromUint64(govv1.DefaultMinDepositTokens.Uint64())
)
View Source
var (
	DefaultTokens = sdk.DefaultPowerReduction.Mul(sdk.NewInt(100))
)

default values

View Source
var (
	ErrDuplicatedAttribute = errors.New("provider: duplicated attribute")
)
View Source
var (
	ErrInvalidClient = errors.New("invalid client")
)

ProposalFlags defines the core required fields of a legacy proposal. It is used to verify that these values are not provided in conjunction with a JSON proposal file.

Functions

func AddGovPropFlagsToCmd

func AddGovPropFlagsToCmd(cmd *cobra.Command)

AddGovPropFlagsToCmd adds flags for defining MsgSubmitProposal fields.

See also ReadGovPropFlags.

func BuildCreateValidatorMsg

func BuildCreateValidatorMsg(clientCtx client.Context, config TxCreateValidatorConfig, txBldr tx.Factory, generateOnly bool) (tx.Factory, sdk.Msg, error)

BuildCreateValidatorMsg makes a new MsgCreateValidator.

func CmdCreateProviderAttributes

func CmdCreateProviderAttributes() *cobra.Command

func CmdDeleteProviderAttributes

func CmdDeleteProviderAttributes() *cobra.Command

func ConvertBech32Cmd

func ConvertBech32Cmd() *cobra.Command

ConvertBech32Cmd get cmd to convert any bech32 address to an akash prefix.

func CreateValidatorMsgFlagSet

func CreateValidatorMsgFlagSet(ipDefault string) (fs *flag.FlagSet, defaultsDesc string)

CreateValidatorMsgFlagSet returns the flagset, particular flags, and a description of defaults this is anticipated to be used with the gen-tx

func DetectBidDeposit

func DetectBidDeposit(ctx context.Context, flags *pflag.FlagSet, cl client.QueryClient) (sdk.Coin, error)

func DetectDeploymentDeposit

func DetectDeploymentDeposit(ctx context.Context, flags *pflag.FlagSet, cl client.QueryClient) (sdk.Coin, error)

func DiscoverClient

func DiscoverClient(ctx context.Context, cctx sdkclient.Context, opts ...cltypes.ClientOption) (v1beta3.Client, error)

func DiscoverQueryClient

func DiscoverQueryClient(ctx context.Context, cctx sdkclient.Context) (v1beta3.LightClient, error)

func GetAuditProviderCmd

func GetAuditProviderCmd() *cobra.Command

func GetAuditProvidersCmd

func GetAuditProvidersCmd() *cobra.Command

func GetAuthMultiSignCmd

func GetAuthMultiSignCmd() *cobra.Command

GetAuthMultiSignCmd returns the multi-sign command

func GetAuxToFeeCommand

func GetAuxToFeeCommand() *cobra.Command

func GetBroadcastCommand

func GetBroadcastCommand() *cobra.Command

GetBroadcastCommand returns the tx broadcast command.

func GetClientContextFromCmd

func GetClientContextFromCmd(cmd *cobra.Command) sdkclient.Context

GetClientContextFromCmd returns a Context from a command or an empty Context if it has not been set.

func GetClientQueryContext

func GetClientQueryContext(cmd *cobra.Command) (sdkclient.Context, error)

GetClientQueryContext returns a Context from a command with fields set based on flags defined in AddQueryFlagsToCmd. An error is returned if any flag query fails.

- client.Context field not pre-populated & flag not set: uses default flag value - client.Context field not pre-populated & flag set: uses set flag value - client.Context field pre-populated & flag not set: uses pre-populated value - client.Context field pre-populated & flag set: uses set flag value

func GetClientTxContext

func GetClientTxContext(cmd *cobra.Command) (sdkclient.Context, error)

GetClientTxContext returns a Context from a command with fields set based on flags defined in AddTxFlagsToCmd. An error is returned if any flag query fails.

- client.Context field not pre-populated & flag not set: uses default flag value - client.Context field not pre-populated & flag set: uses set flag value - client.Context field pre-populated & flag not set: uses pre-populated value - client.Context field pre-populated & flag set: uses set flag value

func GetDecodeCommand

func GetDecodeCommand() *cobra.Command

GetDecodeCommand returns the decode command to take serialized bytes and turn it into a JSON-encoded transaction.

func GetDeploymentGroupPauseCmd

func GetDeploymentGroupPauseCmd() *cobra.Command

func GetDeploymentGroupStartCmd

func GetDeploymentGroupStartCmd() *cobra.Command

func GetEncodeCommand

func GetEncodeCommand() *cobra.Command

GetEncodeCommand returns the encode command to take a JSONified transaction and turn it into Amino-serialized bytes

func GetGenesisAddAccountCmd

func GetGenesisAddAccountCmd(defaultNodeHome string) *cobra.Command

GetGenesisAddAccountCmd returns add-genesis-account cobra Command. This command is provided as a default, applications are expected to provide their own command if custom genesis accounts are needed.

func GetGenesisCmd

func GetGenesisCmd(
	mbm module.BasicManager,
	txCfg client.TxEncodingConfig,
	defaultNodeHome string,
) *cobra.Command

func GetGenesisCollectCmd

func GetGenesisCollectCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string, validator types.MessageValidator) *cobra.Command

GetGenesisCollectCmd - return the cobra command to collect genesis transactions

func GetGenesisGenTxCmd

func GetGenesisGenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command

GetGenesisGenTxCmd builds the application's gentx command.

func GetGenesisInitCmd

func GetGenesisInitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command

GetGenesisInitCmd returns a command that initializes all files needed for Tendermint and the respective application.

func GetMigrationCallback

func GetMigrationCallback(version string) types.MigrationCallback

GetMigrationCallback returns a MigrationCallback for a given version.

func GetMigrationVersions

func GetMigrationVersions() []string

GetMigrationVersions get all migration version in a sorted slice.

func GetMultiSignBatchCmd

func GetMultiSignBatchCmd() *cobra.Command

func GetQueryAuditCmd

func GetQueryAuditCmd() *cobra.Command

func GetQueryAuthAccountAddressByIDCmd

func GetQueryAuthAccountAddressByIDCmd() *cobra.Command

GetQueryAuthAccountAddressByIDCmd returns a query account that will display the account address of a given account id.

func GetQueryAuthAccountCmd

func GetQueryAuthAccountCmd() *cobra.Command

GetQueryAuthAccountCmd returns a query account that will display the state of the account at a given address.

func GetQueryAuthAccountsCmd

func GetQueryAuthAccountsCmd() *cobra.Command

GetQueryAuthAccountsCmd returns a query command that will display a list of accounts

func GetQueryAuthCmd

func GetQueryAuthCmd() *cobra.Command

GetQueryAuthCmd returns the transaction commands for this module

func GetQueryAuthModuleAccountByNameCmd

func GetQueryAuthModuleAccountByNameCmd() *cobra.Command

GetQueryAuthModuleAccountByNameCmd returns a command to

func GetQueryAuthModuleAccountsCmd

func GetQueryAuthModuleAccountsCmd() *cobra.Command

GetQueryAuthModuleAccountsCmd returns a list of all the existing module accounts with their account information and permissions

func GetQueryAuthParamsCmd

func GetQueryAuthParamsCmd() *cobra.Command

GetQueryAuthParamsCmd returns the command handler for evidence parameter querying.

func GetQueryAuthTxCmd

func GetQueryAuthTxCmd() *cobra.Command

GetQueryAuthTxCmd implements the default command for a tx query.

func GetQueryAuthTxsByEventsCmd

func GetQueryAuthTxsByEventsCmd() *cobra.Command

GetQueryAuthTxsByEventsCmd returns a command to search through transactions by events.

func GetQueryAuthzCmd

func GetQueryAuthzCmd() *cobra.Command

GetQueryAuthzCmd returns the cli query commands for this module

func GetQueryAuthzGranteeGrantsCmd

func GetQueryAuthzGranteeGrantsCmd() *cobra.Command

GetQueryAuthzGranteeGrantsCmd returns cmd to query for all grants for a grantee.

func GetQueryAuthzGranterGrantsCmd

func GetQueryAuthzGranterGrantsCmd() *cobra.Command

GetQueryAuthzGranterGrantsCmd returns cmd to query for all grants for a granter.

func GetQueryAuthzGrantsCmd

func GetQueryAuthzGrantsCmd() *cobra.Command

GetQueryAuthzGrantsCmd implements the query authorization command.

func GetQueryBankBalancesCmd

func GetQueryBankBalancesCmd() *cobra.Command

func GetQueryBankCmd

func GetQueryBankCmd() *cobra.Command

GetQueryBankCmd returns the parent command for all x/bank CLi query commands. The provided cctx should have, at a minimum, a verifier, Tendermint RPC client, and marshaler set.

func GetQueryBankDenomsMetadataCmd

func GetQueryBankDenomsMetadataCmd() *cobra.Command

GetQueryBankDenomsMetadataCmd defines the cobra command to query client denomination metadata.

func GetQueryBankSendEnabledCmd

func GetQueryBankSendEnabledCmd() *cobra.Command

func GetQueryBankSpendableBalancesCmd

func GetQueryBankSpendableBalancesCmd() *cobra.Command

func GetQueryBankTotalSupplyCmd

func GetQueryBankTotalSupplyCmd() *cobra.Command

func GetQueryCertCertificatesCmd

func GetQueryCertCertificatesCmd() *cobra.Command

func GetQueryCertCmd

func GetQueryCertCmd() *cobra.Command

func GetQueryDeploymentCmd

func GetQueryDeploymentCmd() *cobra.Command

func GetQueryDeploymentCmds

func GetQueryDeploymentCmds() *cobra.Command

GetQueryDeploymentCmds returns the query commands for the deployment module

func GetQueryDeploymentGroupCmd

func GetQueryDeploymentGroupCmd() *cobra.Command

func GetQueryDeploymentGroupCmds

func GetQueryDeploymentGroupCmds() *cobra.Command

func GetQueryDeploymentsCmd

func GetQueryDeploymentsCmd() *cobra.Command

func GetQueryDistributionCmd

func GetQueryDistributionCmd() *cobra.Command

GetQueryDistributionCmd returns the cli query commands for this module

func GetQueryDistributionCommunityPoolCmd

func GetQueryDistributionCommunityPoolCmd() *cobra.Command

GetQueryDistributionCommunityPoolCmd returns the command for fetching community pool info.

func GetQueryDistributionDelegatorRewardsCmd

func GetQueryDistributionDelegatorRewardsCmd() *cobra.Command

GetQueryDistributionDelegatorRewardsCmd implements the query delegator rewards command.

func GetQueryDistributionParamsCmd

func GetQueryDistributionParamsCmd() *cobra.Command

GetQueryDistributionParamsCmd implements the query params command.

func GetQueryDistributionTokenizeShareRecordRewardCmd

func GetQueryDistributionTokenizeShareRecordRewardCmd() *cobra.Command

GetQueryDistributionTokenizeShareRecordRewardCmd implements the query tokenize share record rewards

func GetQueryDistributionValidatorCommissionCmd

func GetQueryDistributionValidatorCommissionCmd() *cobra.Command

GetQueryDistributionValidatorCommissionCmd implements the query validator commission command.

func GetQueryDistributionValidatorDistributionInfoCmd

func GetQueryDistributionValidatorDistributionInfoCmd() *cobra.Command

GetQueryDistributionValidatorDistributionInfoCmd implements the query validator distribution info command.

func GetQueryDistributionValidatorOutstandingRewardsCmd

func GetQueryDistributionValidatorOutstandingRewardsCmd() *cobra.Command

GetQueryDistributionValidatorOutstandingRewardsCmd implements the query validator outstanding rewards command.

func GetQueryDistributionValidatorSlashesCmd

func GetQueryDistributionValidatorSlashesCmd() *cobra.Command

GetQueryDistributionValidatorSlashesCmd implements the query validator slashes command.

func GetQueryEscrowBlocksRemainingCmd

func GetQueryEscrowBlocksRemainingCmd() *cobra.Command

func GetQueryEscrowCmd

func GetQueryEscrowCmd() *cobra.Command

func GetQueryEvidenceCmd

func GetQueryEvidenceCmd() *cobra.Command

GetQueryEvidenceCmd returns the CLI command with all evidence module query commands mounted.

func GetQueryFeeGrantCmd

func GetQueryFeeGrantCmd() *cobra.Command

GetQueryFeeGrantCmd returns cmd to query for a grant between granter and grantee.

func GetQueryFeeGrantsByGranteeCmd

func GetQueryFeeGrantsByGranteeCmd() *cobra.Command

GetQueryFeeGrantsByGranteeCmd returns cmd to query for all grants for a grantee.

func GetQueryFeeGrantsByGranterCmd

func GetQueryFeeGrantsByGranterCmd() *cobra.Command

GetQueryFeeGrantsByGranterCmd returns cmd to query for all grants by a granter.

func GetQueryFeegrantCmd

func GetQueryFeegrantCmd() *cobra.Command

GetQueryFeegrantCmd returns the cli query commands for this module

func GetQueryGetProvidersCmd

func GetQueryGetProvidersCmd() *cobra.Command

func GetQueryGovCmd

func GetQueryGovCmd() *cobra.Command

GetQueryGovCmd returns the cli query commands for this module

func GetQueryGovDepositCmd

func GetQueryGovDepositCmd() *cobra.Command

GetQueryGovDepositCmd implements the query proposal deposit command. Command to get a specific Deposit Information.

func GetQueryGovDepositsCmd

func GetQueryGovDepositsCmd() *cobra.Command

GetQueryGovDepositsCmd implements the command to query for proposal deposits.

func GetQueryGovParamCmd

func GetQueryGovParamCmd() *cobra.Command

GetQueryGovParamCmd implements the query param command.

func GetQueryGovProposalCmd

func GetQueryGovProposalCmd() *cobra.Command

GetQueryGovProposalCmd implements the query proposal command.

func GetQueryGovProposalsCmd

func GetQueryGovProposalsCmd() *cobra.Command

GetQueryGovProposalsCmd implements a query proposals command. Command to Get Proposals Information.

func GetQueryGovProposerCmd

func GetQueryGovProposerCmd() *cobra.Command

GetQueryGovProposerCmd implements the query proposer command.

func GetQueryGovQueryParamsCmd

func GetQueryGovQueryParamsCmd() *cobra.Command

GetQueryGovQueryParamsCmd implements the query params command.

nolint:staticcheck // this function contains deprecated commands that we need.

func GetQueryGovTallyCmd

func GetQueryGovTallyCmd() *cobra.Command

GetQueryGovTallyCmd implements the command to query for proposal tally result.

func GetQueryGovVoteCmd

func GetQueryGovVoteCmd() *cobra.Command

GetQueryGovVoteCmd implements the query proposal vote command. Command to Get a Vote Information.

func GetQueryGovVotesCmd

func GetQueryGovVotesCmd() *cobra.Command

GetQueryGovVotesCmd implements the command to query for proposal votes.

func GetQueryMarketBidCmd

func GetQueryMarketBidCmd() *cobra.Command

func GetQueryMarketBidCmds

func GetQueryMarketBidCmds() *cobra.Command

func GetQueryMarketBidsCmd

func GetQueryMarketBidsCmd() *cobra.Command

func GetQueryMarketCmds

func GetQueryMarketCmds() *cobra.Command

GetQueryMarketCmds returns the transaction commands for the market module

func GetQueryMarketLeaseCmd

func GetQueryMarketLeaseCmd() *cobra.Command

func GetQueryMarketLeaseCmds

func GetQueryMarketLeaseCmds() *cobra.Command

func GetQueryMarketLeasesCmd

func GetQueryMarketLeasesCmd() *cobra.Command

func GetQueryMarketOrderCmd

func GetQueryMarketOrderCmd() *cobra.Command

func GetQueryMarketOrderCmds

func GetQueryMarketOrderCmds() *cobra.Command

func GetQueryMarketOrdersCmd

func GetQueryMarketOrdersCmd() *cobra.Command

func GetQueryMintAnnualProvisionsCmd

func GetQueryMintAnnualProvisionsCmd() *cobra.Command

GetQueryMintAnnualProvisionsCmd implements a command to return the current minting annual provisions value.

func GetQueryMintCmd

func GetQueryMintCmd() *cobra.Command

GetQueryMintCmd returns the cli query commands for the minting module.

func GetQueryMintInflationCmd

func GetQueryMintInflationCmd() *cobra.Command

GetQueryMintInflationCmd implements a command to return the current minting inflation value.

func GetQueryMintParamsCmd

func GetQueryMintParamsCmd() *cobra.Command

GetQueryMintParamsCmd implements a command to return the current minting parameters.

func GetQueryParamsCmd

func GetQueryParamsCmd() *cobra.Command

GetQueryParamsCmd returns a root CLI command handler for all x/params query commands.

func GetQueryParamsSubspaceCmd

func GetQueryParamsSubspaceCmd() *cobra.Command

GetQueryParamsSubspaceCmd returns a CLI command handler for querying subspace parameters managed by the x/params module.

func GetQueryProviderCmd

func GetQueryProviderCmd() *cobra.Command

func GetQueryProviderCmds

func GetQueryProviderCmds() *cobra.Command

GetQueryProviderCmds returns the transaction commands for the provider module

func GetQuerySlashingCmd

func GetQuerySlashingCmd() *cobra.Command

GetQuerySlashingCmd returns the cli query commands for this module

func GetQuerySlashingParamsCmd

func GetQuerySlashingParamsCmd() *cobra.Command

GetQuerySlashingParamsCmd implements a command to fetch slashing parameters.

func GetQuerySlashingSigningInfoCmd

func GetQuerySlashingSigningInfoCmd() *cobra.Command

GetQuerySlashingSigningInfoCmd implements the command to query signing info.

func GetQuerySlashingSigningInfosCmd

func GetQuerySlashingSigningInfosCmd() *cobra.Command

GetQuerySlashingSigningInfosCmd implements the command to query signing infos.

func GetQueryStakingAllTokenizeShareRecordsCmd

func GetQueryStakingAllTokenizeShareRecordsCmd() *cobra.Command

GetQueryStakingAllTokenizeShareRecordsCmd implements the query for all tokenize share records

func GetQueryStakingCmd

func GetQueryStakingCmd() *cobra.Command

GetQueryStakingCmd returns the cli query commands for this module

func GetQueryStakingDelegationCmd

func GetQueryStakingDelegationCmd() *cobra.Command

GetQueryStakingDelegationCmd the query delegation command.

func GetQueryStakingDelegationsCmd

func GetQueryStakingDelegationsCmd() *cobra.Command

GetQueryStakingDelegationsCmd implements the command to query all the delegations made from one delegator.

func GetQueryStakingHistoricalInfoCmd

func GetQueryStakingHistoricalInfoCmd() *cobra.Command

GetQueryStakingHistoricalInfoCmd implements the historical info query command

func GetQueryStakingLastTokenizeShareRecordIDCmd

func GetQueryStakingLastTokenizeShareRecordIDCmd() *cobra.Command

GetQueryStakingLastTokenizeShareRecordIDCmd implements the query for last tokenize share record id

func GetQueryStakingParamsCmd

func GetQueryStakingParamsCmd() *cobra.Command

GetQueryStakingParamsCmd implements the params query command.

func GetQueryStakingPoolCmd

func GetQueryStakingPoolCmd() *cobra.Command

GetQueryStakingPoolCmd implements the pool query command.

func GetQueryStakingRedelegationCmd

func GetQueryStakingRedelegationCmd() *cobra.Command

GetQueryStakingRedelegationCmd implements the command to query a single redelegation record.

func GetQueryStakingRedelegationsCmd

func GetQueryStakingRedelegationsCmd() *cobra.Command

GetQueryStakingRedelegationsCmd implements the command to query all the redelegation records for a delegator.

func GetQueryStakingTokenizeShareLockInfoCmd

func GetQueryStakingTokenizeShareLockInfoCmd() *cobra.Command

GetQueryStakingTokenizeShareLockInfoCmd returns the tokenize share lock status for a user

func GetQueryStakingTokenizeShareRecordByDenomCmd

func GetQueryStakingTokenizeShareRecordByDenomCmd() *cobra.Command

GetQueryStakingTokenizeShareRecordByDenomCmd implements the query for individual tokenize share record information by share denom

func GetQueryStakingTokenizeShareRecordByIDCmd

func GetQueryStakingTokenizeShareRecordByIDCmd() *cobra.Command

GetQueryStakingTokenizeShareRecordByIDCmd implements the query for individual tokenize share record information by share by id

func GetQueryStakingTokenizeShareRecordsOwnedCmd

func GetQueryStakingTokenizeShareRecordsOwnedCmd() *cobra.Command

GetQueryStakingTokenizeShareRecordsOwnedCmd implements the query tokenize share records by address

func GetQueryStakingTotalLiquidStakedCmd

func GetQueryStakingTotalLiquidStakedCmd() *cobra.Command

GetQueryStakingTotalLiquidStakedCmd implements the query for total liquid staked tokens

func GetQueryStakingTotalTokenizeSharedAssetsCmd

func GetQueryStakingTotalTokenizeSharedAssetsCmd() *cobra.Command

GetQueryStakingTotalTokenizeSharedAssetsCmd implements the query for total tokenized staked assets

func GetQueryStakingUnbondingDelegationCmd

func GetQueryStakingUnbondingDelegationCmd() *cobra.Command

GetQueryStakingUnbondingDelegationCmd implements the command to query a single unbonding-delegation record.

func GetQueryStakingUnbondingDelegationsCmd

func GetQueryStakingUnbondingDelegationsCmd() *cobra.Command

GetQueryStakingUnbondingDelegationsCmd implements the command to query all the unbonding-delegation records for a delegator.

func GetQueryStakingValidatorCmd

func GetQueryStakingValidatorCmd() *cobra.Command

GetQueryStakingValidatorCmd implements the validator query command.

func GetQueryStakingValidatorDelegationsCmd

func GetQueryStakingValidatorDelegationsCmd() *cobra.Command

GetQueryStakingValidatorDelegationsCmd implements the command to query all the delegations to a specific validator.

func GetQueryStakingValidatorRedelegationsCmd

func GetQueryStakingValidatorRedelegationsCmd() *cobra.Command

GetQueryStakingValidatorRedelegationsCmd implements the query all redelegatations from a validator command.

func GetQueryStakingValidatorUnbondingDelegationsCmd

func GetQueryStakingValidatorUnbondingDelegationsCmd() *cobra.Command

GetQueryStakingValidatorUnbondingDelegationsCmd implements the query all unbonding delegatations from a validator command.

func GetQueryStakingValidatorsCmd

func GetQueryStakingValidatorsCmd() *cobra.Command

GetQueryStakingValidatorsCmd implements the query all validators command.

func GetQueryUpgradeAppliedPlanCmd

func GetQueryUpgradeAppliedPlanCmd() *cobra.Command

GetQueryUpgradeAppliedPlanCmd returns information about the block at which a completed upgrade was applied.

func GetQueryUpgradeCmd

func GetQueryUpgradeCmd() *cobra.Command

GetQueryUpgradeCmd returns the parent command for all x/upgrade CLI query commands.

func GetQueryUpgradeCurrentPlanCmd

func GetQueryUpgradeCurrentPlanCmd() *cobra.Command

GetQueryUpgradeCurrentPlanCmd returns the query upgrade plan command.

func GetQueryUpgradeModuleVersionsCmd

func GetQueryUpgradeModuleVersionsCmd() *cobra.Command

GetModuleVersionsCmd returns the module version list from state

func GetSignBatchCommand

func GetSignBatchCommand() *cobra.Command

GetSignBatchCommand returns the transaction sign-batch command.

func GetSignCommand

func GetSignCommand() *cobra.Command

GetSignCommand returns the transaction sign command.

func GetTxAuditAttributesCmd

func GetTxAuditAttributesCmd() *cobra.Command

func GetTxAuditCmd

func GetTxAuditCmd() *cobra.Command

GetTxAuditCmd returns the transaction commands for audit module

func GetTxAuthzCmd

func GetTxAuthzCmd() *cobra.Command

GetTxAuthzCmd returns the transaction commands for this module

func GetTxAuthzExecAuthorizationCmd

func GetTxAuthzExecAuthorizationCmd() *cobra.Command

GetTxAuthzExecAuthorizationCmd returns a CLI command handler for creating a MsgExec transaction.

func GetTxAuthzGrantAuthorizationCmd

func GetTxAuthzGrantAuthorizationCmd() *cobra.Command

GetTxAuthzGrantAuthorizationCmd returns a CLI command handler for creating a MsgGrant transaction.

func GetTxAuthzRevokeAuthorizationCmd

func GetTxAuthzRevokeAuthorizationCmd() *cobra.Command

GetTxAuthzRevokeAuthorizationCmd returns a CLI command handler for creating a MsgRevoke transaction.

func GetTxBankCmd

func GetTxBankCmd() *cobra.Command

GetTxBankCmd returns a root CLI command handler for all x/bank transaction commands.

func GetTxBankMultiSendTxCmd

func GetTxBankMultiSendTxCmd() *cobra.Command

GetTxBankMultiSendTxCmd returns a CLI command handler for creating a MsgMultiSend transaction. For a better UX this command is limited to send funds from one account to two or more accounts.

func GetTxBankSendTxCmd

func GetTxBankSendTxCmd() *cobra.Command

GetTxBankSendTxCmd returns a CLI command handler for creating a MsgSend transaction.

func GetTxCertCmd

func GetTxCertCmd() *cobra.Command

func GetTxCertGenerateClientCmd

func GetTxCertGenerateClientCmd() *cobra.Command

func GetTxCertGenerateCmd

func GetTxCertGenerateCmd() *cobra.Command

func GetTxCertGenerateServerCmd

func GetTxCertGenerateServerCmd() *cobra.Command

func GetTxCertPublishClientCmd

func GetTxCertPublishClientCmd() *cobra.Command

func GetTxCertPublishCmd

func GetTxCertPublishCmd() *cobra.Command

func GetTxCertPublishServerCmd

func GetTxCertPublishServerCmd() *cobra.Command

func GetTxCertRevokeCmd

func GetTxCertRevokeCmd() *cobra.Command

func GetTxCertRevokeServerCmd

func GetTxCertRevokeServerCmd() *cobra.Command

func GetTxCertsRevokeClientCmd

func GetTxCertsRevokeClientCmd() *cobra.Command

func GetTxCrisisCmd

func GetTxCrisisCmd() *cobra.Command

GetTxCrisisCmd returns a root CLI command handler for all x/crisis transaction commands.

func GetTxCrisisVerifyInvariantTxCmd

func GetTxCrisisVerifyInvariantTxCmd() *cobra.Command

GetTxCrisisVerifyInvariantTxCmd returns a CLI command handler for creating a MsgVerifyInvariant transaction.

func GetTxDeploymentAuthzCmd

func GetTxDeploymentAuthzCmd() *cobra.Command

func GetTxDeploymentCloseCmd

func GetTxDeploymentCloseCmd() *cobra.Command

func GetTxDeploymentCmds

func GetTxDeploymentCmds() *cobra.Command

GetTxDeploymentCmds returns the transaction commands for this module

func GetTxDeploymentCreateCmd

func GetTxDeploymentCreateCmd() *cobra.Command

func GetTxDeploymentDepositCmd

func GetTxDeploymentDepositCmd() *cobra.Command

func GetTxDeploymentGrantAuthorizationCmd

func GetTxDeploymentGrantAuthorizationCmd() *cobra.Command

func GetTxDeploymentGroupCloseCmd

func GetTxDeploymentGroupCloseCmd() *cobra.Command

func GetTxDeploymentGroupCmds

func GetTxDeploymentGroupCmds() *cobra.Command

func GetTxDeploymentRevokeAuthorizationCmd

func GetTxDeploymentRevokeAuthorizationCmd() *cobra.Command

func GetTxDeploymentUpdateCmd

func GetTxDeploymentUpdateCmd() *cobra.Command

func GetTxDistributionFundCommunityPoolCmd

func GetTxDistributionFundCommunityPoolCmd() *cobra.Command

GetTxDistributionFundCommunityPoolCmd returns a CLI command handler for creating a MsgFundCommunityPool transaction.

func GetTxDistributionSetWithdrawAddrCmd

func GetTxDistributionSetWithdrawAddrCmd() *cobra.Command

GetTxDistributionSetWithdrawAddrCmd returns a CLI command handler for creating a MsgSetWithdrawAddress transaction.

func GetTxDistributionWithdrawAllRewardsCmd

func GetTxDistributionWithdrawAllRewardsCmd() *cobra.Command

GetTxDistributionWithdrawAllRewardsCmd returns a CLI command handler for creating a MsgWithdrawDelegatorReward transaction.

func GetTxDistributionWithdrawAllTokenizeShareRecordRewardCmd

func GetTxDistributionWithdrawAllTokenizeShareRecordRewardCmd() *cobra.Command

GetTxDistributionWithdrawAllTokenizeShareRecordRewardCmd defines a method to withdraw reward for all owning TokenizeShareRecord

func GetTxDistributionWithdrawRewardsCmd

func GetTxDistributionWithdrawRewardsCmd() *cobra.Command

GetTxDistributionWithdrawRewardsCmd returns a CLI command handler for creating a MsgWithdrawDelegatorReward transaction.

func GetTxDistributionWithdrawTokenizeShareRecordRewardCmd

func GetTxDistributionWithdrawTokenizeShareRecordRewardCmd() *cobra.Command

GetTxDistributionWithdrawTokenizeShareRecordRewardCmd defines a method to withdraw reward for an owning TokenizeShareRecord

func GetTxEncoder

func GetTxEncoder(cdc *codec.LegacyAmino) (encoder sdk.TxEncoder)

GetTxEncoder return tx encoder from global sdk configuration if ones is defined. Otherwise, returns encoder with default logic.

func GetTxEscrowCmd

func GetTxEscrowCmd() *cobra.Command

func GetTxEvidenceCmd

func GetTxEvidenceCmd(childCmds []*cobra.Command) *cobra.Command

GetTxEvidenceCmd returns a CLI command that has all the native evidence module tx commands mounted. In addition, it mounts all childCmds, implemented by outside modules, under a sub-command. This allows external modules to implement custom Evidence types and Handlers while having the ability to create and sign txs containing them all from a single root command.

func GetTxFeegrantCmd

func GetTxFeegrantCmd() *cobra.Command

GetTxFeegrantCmd returns the transaction commands for this module

func GetTxFeegrantGrantCmd

func GetTxFeegrantGrantCmd() *cobra.Command

GetTxFeegrantGrantCmd returns a CLI command handler for creating a MsgGrantAllowance transaction.

func GetTxFeegrantRevokeCmd

func GetTxFeegrantRevokeCmd() *cobra.Command

GetTxFeegrantRevokeCmd returns a CLI command handler for creating a MsgRevokeAllowance transaction.

func GetTxGovCmd

func GetTxGovCmd(legacyPropCmds []*cobra.Command) *cobra.Command

GetTxGovCmd returns the transaction commands for this module governance ModuleClient is slightly different from other ModuleClients in that it contains a slice of legacy "proposal" child commands. These commands are respective to the proposal type handlers that are implemented in other modules but are mounted under the governance CLI (eg. parameter change proposals).

func GetTxGovDepositCmd

func GetTxGovDepositCmd() *cobra.Command

GetTxGovDepositCmd implements depositing tokens for an active proposal.

func GetTxGovDraftProposalCmd

func GetTxGovDraftProposalCmd() *cobra.Command

GetTxGovDraftProposalCmd let a user generate a draft proposal.

func GetTxGovSubmitLegacyProposalCmd

func GetTxGovSubmitLegacyProposalCmd() *cobra.Command

GetTxGovSubmitLegacyProposalCmd implements submitting a proposal transaction command. Deprecated: please use GetTxGovSubmitProposalCmd instead.

func GetTxGovSubmitProposalCmd

func GetTxGovSubmitProposalCmd() *cobra.Command

GetTxGovSubmitProposalCmd implements submitting a proposal transaction command.

func GetTxGovVoteCmd

func GetTxGovVoteCmd() *cobra.Command

GetTxGovVoteCmd implements creating a new vote command.

func GetTxGovWeightedVoteCmd

func GetTxGovWeightedVoteCmd() *cobra.Command

GetTxGovWeightedVoteCmd implements creating a new weighted vote command.

func GetTxMarketBidCloseCmd

func GetTxMarketBidCloseCmd() *cobra.Command

func GetTxMarketBidCmds

func GetTxMarketBidCmds() *cobra.Command

func GetTxMarketBidCreateCmd

func GetTxMarketBidCreateCmd() *cobra.Command

func GetTxMarketCmds

func GetTxMarketCmds() *cobra.Command

GetTxMarketCmds returns the transaction commands for market module

func GetTxMarketLeaseCloseCmd

func GetTxMarketLeaseCloseCmd() *cobra.Command

func GetTxMarketLeaseCmds

func GetTxMarketLeaseCmds() *cobra.Command

func GetTxMarketLeaseCreateCmd

func GetTxMarketLeaseCreateCmd() *cobra.Command

func GetTxMarketLeaseWithdrawCmd

func GetTxMarketLeaseWithdrawCmd() *cobra.Command

func GetTxParamsSubmitParamChangeProposalCmd

func GetTxParamsSubmitParamChangeProposalCmd() *cobra.Command

GetTxParamsSubmitParamChangeProposalCmd returns a CLI command handler for creating a parameter change proposal governance transaction.

func GetTxProviderCmd

func GetTxProviderCmd() *cobra.Command

GetTxProviderCmd returns the transaction commands for provider module

func GetTxProviderCreateCmd

func GetTxProviderCreateCmd() *cobra.Command

func GetTxProviderUpdateCmd

func GetTxProviderUpdateCmd() *cobra.Command

func GetTxSlashingCmd

func GetTxSlashingCmd() *cobra.Command

GetTxSlashingCmd returns a root CLI command handler for all x/slashing transaction commands.

func GetTxSlashingUnjailCmd

func GetTxSlashingUnjailCmd() *cobra.Command

GetTxSlashingUnjailCmd returns a CLI command handler for creating a MsgUnjail transaction.

func GetTxStakingCancelUnbondingDelegationCmd

func GetTxStakingCancelUnbondingDelegationCmd() *cobra.Command

GetTxStakingCancelUnbondingDelegationCmd returns a CLI command handler for creating a MsgCancelUnbondingDelegation transaction.

func GetTxStakingCmd

func GetTxStakingCmd() *cobra.Command

GetTxStakingCmd returns a root CLI command handler for all x/staking transaction commands.

func GetTxStakingCreateValidatorCmd

func GetTxStakingCreateValidatorCmd() *cobra.Command

GetTxStakingCreateValidatorCmd returns a CLI command handler for creating a MsgCreateValidator transaction.

func GetTxStakingDelegateCmd

func GetTxStakingDelegateCmd() *cobra.Command

GetTxStakingDelegateCmd returns a CLI command handler for creating a MsgDelegate transaction.

func GetTxStakingDisableTokenizeShares

func GetTxStakingDisableTokenizeShares() *cobra.Command

GetTxStakingDisableTokenizeShares defines a command to disable tokenization for an address

func GetTxStakingEditValidatorCmd

func GetTxStakingEditValidatorCmd() *cobra.Command

GetTxStakingEditValidatorCmd returns a CLI command handler for creating a MsgEditValidator transaction.

func GetTxStakingEnableTokenizeShares

func GetTxStakingEnableTokenizeShares() *cobra.Command

GetTxStakingEnableTokenizeShares defines a command to re-enable tokenization for an address

func GetTxStakingRedeemTokensCmd

func GetTxStakingRedeemTokensCmd() *cobra.Command

GetTxStakingRedeemTokensCmd defines a command for redeeming tokens from a validator for shares.

func GetTxStakingRedelegateCmd

func GetTxStakingRedelegateCmd() *cobra.Command

GetTxStakingRedelegateCmd returns a CLI command handler for creating a MsgBeginRedelegate transaction.

func GetTxStakingTokenizeSharesCmd

func GetTxStakingTokenizeSharesCmd() *cobra.Command

GetTxStakingTokenizeSharesCmd defines a command for tokenizing shares from a validator.

func GetTxStakingTransferTokenizeShareRecordCmd

func GetTxStakingTransferTokenizeShareRecordCmd() *cobra.Command

GetTxStakingTransferTokenizeShareRecordCmd defines a command to transfer ownership of TokenizeShareRecord

func GetTxStakingUnbondCmd

func GetTxStakingUnbondCmd() *cobra.Command

GetTxStakingUnbondCmd returns a CLI command handler for creating a MsgUndelegate transaction.

func GetTxStakingUnbondValidatorCmd

func GetTxStakingUnbondValidatorCmd() *cobra.Command

func GetTxStakingValidatorBondCmd

func GetTxStakingValidatorBondCmd() *cobra.Command

GetTxStakingValidatorBondCmd defines a command to mark a delegation as a validator self bond

func GetTxUpgradeCmd

func GetTxUpgradeCmd() *cobra.Command

GetTxUpgradeCmd returns the transaction commands for this module

func GetTxUpgradeSubmitLegacyCancelUpgradeProposal

func GetTxUpgradeSubmitLegacyCancelUpgradeProposal() *cobra.Command

GetTxUpgradeSubmitLegacyCancelUpgradeProposal implements a command handler for submitting a software upgrade cancel proposal transaction. Deprecated: please use NewCmdSubmitCancelUpgradeProposal instead.

func GetTxUpgradeSubmitLegacyUpgradeProposal

func GetTxUpgradeSubmitLegacyUpgradeProposal() *cobra.Command

GetTxUpgradeSubmitLegacyUpgradeProposal implements a command handler for submitting a software upgrade proposal transaction.

func GetTxVestingCmd

func GetTxVestingCmd() *cobra.Command

GetTxVestingCmd returns vesting module's transaction commands.

func GetTxVestingCreateAccountCmd

func GetTxVestingCreateAccountCmd() *cobra.Command

GetTxVestingCreateAccountCmd returns a CLI command handler for creating a MsgCreateVestingAccount transaction.

func GetTxVestingCreatePeriodicAccountCmd

func GetTxVestingCreatePeriodicAccountCmd() *cobra.Command

GetTxVestingCreatePeriodicAccountCmd returns a CLI command handler for creating a MsgCreatePeriodicVestingAccountCmd transaction.

func GetTxVestingCreatePermanentLockedAccountCmd

func GetTxVestingCreatePermanentLockedAccountCmd() *cobra.Command

GetTxVestingCreatePermanentLockedAccountCmd returns a CLI command handler for creating a MsgCreatePermanentLockedAccount transaction.

func GetValidateSignaturesCommand

func GetValidateSignaturesCommand() *cobra.Command

func LeaseCalcBalanceRemain

func LeaseCalcBalanceRemain(balance sdk.Dec, currBlock, settledAt int64, leasePrice sdk.Dec) float64

func LeaseCalcBlocksRemain

func LeaseCalcBlocksRemain(balance float64, leasePrice sdk.Dec) int64

func MigrateGenesisCmd

func MigrateGenesisCmd() *cobra.Command

MigrateGenesisCmd returns a command to execute genesis state migration.

func MigrateHandler

func MigrateHandler(cmd *cobra.Command, args []string, migrations types.MigrationMap) error

MigrateHandler handles the migration command with a migration map as input, returning an error upon failure.

func MustClientFromContext

func MustClientFromContext(ctx context.Context) v1beta3.Client

func MustQueryClientFromContext

func MustQueryClientFromContext(ctx context.Context) v1beta3.LightClient

func ParseQueryResponse

func ParseQueryResponse(bz []byte) (sdk.SimulationResponse, error)

func ParseSigArgs

func ParseSigArgs(args []string) ([]string, error)

ParseSigArgs parses comma-separated signatures from the CLI arguments.

func Prompt

func Prompt[T any](data T, namePrefix string) (T, error)

Prompt prompts the user for all values of the given type. data is the struct to be filled namePrefix is the name to be displayed as "Enter <namePrefix> <field>"

func PromptMetadata

func PromptMetadata(skip bool) (types.ProposalMetadata, error)

PromptMetadata prompts for proposal metadata or only title and summary if skip is true

func QueryCmd

func QueryCmd() *cobra.Command

func QueryPersistentPreRunE

func QueryPersistentPreRunE(cmd *cobra.Command, _ []string) error

func RPCAkash

func RPCAkash(_ *cmtrpctypes.Context) (*aclient.Akash, error)

func ReadGovPropFlags

func ReadGovPropFlags(clientCtx client.Context, flagSet *pflag.FlagSet) (*govv1.MsgSubmitProposal, error)

ReadGovPropFlags parses a MsgSubmitProposal from the provided context and flags. Setting the messages is up to the caller.

See also AddGovPropFlagsToCmd.

func ReadPersistentCommandFlags

func ReadPersistentCommandFlags(cctx sdkclient.Context, flagSet *pflag.FlagSet) (sdkclient.Context, error)

ReadPersistentCommandFlags returns a Context with fields set for "persistent" or common flags that do not necessarily change with context.

Note, the provided clientCtx may have field pre-populated. The following order of precedence occurs:

- client.Context field not pre-populated & flag not set: uses default flag value - client.Context field not pre-populated & flag set: uses set flag value - client.Context field pre-populated & flag not set: uses pre-populated value - client.Context field pre-populated & flag set: uses set flag value

func ReadQueryCommandFlags

func ReadQueryCommandFlags(cctx sdkclient.Context, flagSet *pflag.FlagSet) (sdkclient.Context, error)

ReadQueryCommandFlags returns an updated Context with fields set based on flags defined in AddQueryFlagsToCmd. An error is returned if any flag query fails.

Note, the provided clientCtx may have field pre-populated. The following order of precedence occurs:

- client.Context field not pre-populated & flag not set: uses default flag value - client.Context field not pre-populated & flag set: uses set flag value - client.Context field pre-populated & flag not set: uses pre-populated value - client.Context field pre-populated & flag set: uses set flag value

func ReadTxCommandFlags

func ReadTxCommandFlags(cctx sdkclient.Context, flagSet *pflag.FlagSet) (sdkclient.Context, error)

ReadTxCommandFlags returns an updated Context with fields set based on flags defined in AddTxFlagsToCmd. An error is returned if any flag query fails.

Note, the provided clientCtx may have field pre-populated. The following order of precedence occurs:

- client.Context field not pre-populated & flag not set: uses default flag value - client.Context field not pre-populated & flag set: uses set flag value - client.Context field pre-populated & flag not set: uses pre-populated value - client.Context field pre-populated & flag set: uses set flag value

func ReadTxFromFile

func ReadTxFromFile(ctx client.Context, filename string) (tx sdk.Tx, err error)

ReadTxFromFile and decode a StdTx from the given filename. Can pass "-" to read from stdin.

func SetCmdClientContext

func SetCmdClientContext(cmd *cobra.Command, cctx sdkclient.Context) error

SetCmdClientContext sets a command's Context value to the provided argument.

func SetCmdClientContextHandler

func SetCmdClientContextHandler(cctx sdkclient.Context, cmd *cobra.Command) (err error)

SetCmdClientContextHandler is to be used in a command pre-hook execution to read flags that populate a Context and sets that to the command's Context.

func SignTx

func SignTx(txFactory tx.Factory, clientCtx client.Context, name string, txBuilder client.TxBuilder, offline, overwriteSig bool) error

SignTx signs a transaction managed by the TxBuilder using a `name` key stored in Keybase. The new signature is appended to the TxBuilder when overwrite=false or overwritten otherwise. Don't perform online validation or lookups if offline is true.

func SignTxWithSignerAddress

func SignTxWithSignerAddress(txFactory tx.Factory, clientCtx client.Context, addr sdk.AccAddress,
	name string, txBuilder client.TxBuilder, offline, overwrite bool,
) (err error)

SignTxWithSignerAddress attaches a signature to a transaction. Don't perform online validation or lookups if offline is true, else populate account and sequence numbers from a foreign account. This function should only be used when signing with a multisig. For normal keys, please use SignTx directly.

func SubmitEvidenceCmd

func SubmitEvidenceCmd() *cobra.Command

SubmitEvidenceCmd returns the top-level evidence submission command handler. All concrete evidence submission child command handlers should be registered under this command.

func TxCmd

func TxCmd() *cobra.Command

func TxPersistentPreRunE

func TxPersistentPreRunE(cmd *cobra.Command, _ []string) error

func ValidateCmd

func ValidateCmd(cmd *cobra.Command, args []string) error

ValidateCmd returns unknown command error or Help display if help flag set

Types

type BatchScanner

type BatchScanner struct {
	*bufio.Scanner
	// contains filtered or unexported fields
}

BatchScanner provides a convenient interface for reading batch data such as a file of newline-delimited JSON encoded StdTx.

func NewBatchScanner

func NewBatchScanner(cfg client.TxConfig, r io.Reader) *BatchScanner

NewBatchScanner returns a new BatchScanner to read newline-delimited StdTx transactions from r.

func ReadTxsFromInput

func ReadTxsFromInput(txCfg client.TxConfig, filenames ...string) (scanner *BatchScanner, err error)

ReadTxsFromInput reads multiples txs from the given filename(s). Can pass "-" to read from stdin. Unlike ReadTxFromFile, this function does not decode the txs.

func (*BatchScanner) Scan

func (bs *BatchScanner) Scan() bool

Scan advances the Scanner to the next line.

func (BatchScanner) Tx

func (bs BatchScanner) Tx() sdk.Tx

Tx returns the most recent Tx unmarshalled by a call to Scan.

func (BatchScanner) UnmarshalErr

func (bs BatchScanner) UnmarshalErr() error

UnmarshalErr returns the first unmarshalling error that was encountered by the scanner.

type BroadcastReq

type BroadcastReq struct {
	Tx   legacytx.StdTx `json:"tx" yaml:"tx"`
	Mode string         `json:"mode" yaml:"mode"`
}

BroadcastReq defines a tx broadcasting request.

type ContextType

type ContextType string

type FlagsSet

type FlagsSet []string

func TestFlags

func TestFlags() FlagsSet

func (FlagsSet) Append

func (df FlagsSet) Append(rhs FlagsSet) FlagsSet

func (FlagsSet) With

func (df FlagsSet) With(flags ...string) FlagsSet

func (FlagsSet) WithAccountNumber

func (df FlagsSet) WithAccountNumber(val uint64) FlagsSet

func (FlagsSet) WithAllowList

func (df FlagsSet) WithAllowList(val string) FlagsSet

func (FlagsSet) WithAllowedMsgs

func (df FlagsSet) WithAllowedMsgs(val string) FlagsSet

func (FlagsSet) WithAllowedValidators

func (df FlagsSet) WithAllowedValidators(val string) FlagsSet

func (FlagsSet) WithAmount

func (df FlagsSet) WithAmount(val string) FlagsSet

func (FlagsSet) WithAux

func (df FlagsSet) WithAux() FlagsSet

func (FlagsSet) WithBidID

func (df FlagsSet) WithBidID(val mtypes.BidID) FlagsSet

func (FlagsSet) WithBroadcastModeBlock

func (df FlagsSet) WithBroadcastModeBlock() FlagsSet

func (FlagsSet) WithBroadcastModeSync

func (df FlagsSet) WithBroadcastModeSync() FlagsSet

func (FlagsSet) WithChainID

func (df FlagsSet) WithChainID(val string) FlagsSet

func (FlagsSet) WithCommission

func (df FlagsSet) WithCommission() FlagsSet

func (FlagsSet) WithCommissionMaxChangeRate

func (df FlagsSet) WithCommissionMaxChangeRate(val string) FlagsSet

func (FlagsSet) WithCommissionMaxRate

func (df FlagsSet) WithCommissionMaxRate(val string) FlagsSet

func (FlagsSet) WithCommissionRate

func (df FlagsSet) WithCommissionRate(val string) FlagsSet

func (FlagsSet) WithDenom

func (df FlagsSet) WithDenom(val string) FlagsSet

func (FlagsSet) WithDenyValidators

func (df FlagsSet) WithDenyValidators(val string) FlagsSet

func (FlagsSet) WithDeploymentID

func (df FlagsSet) WithDeploymentID(val dv1.DeploymentID) FlagsSet

func (FlagsSet) WithDeposit

func (df FlagsSet) WithDeposit(coin sdk.Coin) FlagsSet

func (FlagsSet) WithDepositor

func (df FlagsSet) WithDepositor(acc sdk.Address) FlagsSet

func (FlagsSet) WithDescription

func (df FlagsSet) WithDescription(val string) FlagsSet

func (FlagsSet) WithDetails

func (df FlagsSet) WithDetails(val string) FlagsSet

func (FlagsSet) WithDseq

func (df FlagsSet) WithDseq(val uint64) FlagsSet

func (FlagsSet) WithEvents

func (df FlagsSet) WithEvents(val string) FlagsSet

func (FlagsSet) WithExpiration

func (df FlagsSet) WithExpiration(val string) FlagsSet

func (FlagsSet) WithFeeGranter

func (df FlagsSet) WithFeeGranter(val sdk.AccAddress) FlagsSet

func (FlagsSet) WithFeePayer

func (df FlagsSet) WithFeePayer(val sdk.AccAddress) FlagsSet

func (FlagsSet) WithFees

func (df FlagsSet) WithFees(coins sdk.Coins) FlagsSet

func (FlagsSet) WithFrom

func (df FlagsSet) WithFrom(acc string) FlagsSet

func (FlagsSet) WithGas

func (df FlagsSet) WithGas(val int) FlagsSet

func (FlagsSet) WithGasAutoFlags

func (df FlagsSet) WithGasAutoFlags() FlagsSet

func (FlagsSet) WithGenerateOnly

func (df FlagsSet) WithGenerateOnly() FlagsSet

func (FlagsSet) WithGroupID

func (df FlagsSet) WithGroupID(val dv1.GroupID) FlagsSet

func (FlagsSet) WithGseq

func (df FlagsSet) WithGseq(val uint32) FlagsSet

func (FlagsSet) WithHeight

func (df FlagsSet) WithHeight(val uint64) FlagsSet

func (FlagsSet) WithHome

func (df FlagsSet) WithHome(val string) FlagsSet

func (FlagsSet) WithIdentity

func (df FlagsSet) WithIdentity(val string) FlagsSet

func (FlagsSet) WithLeaseID

func (df FlagsSet) WithLeaseID(val mtypes.LeaseID) FlagsSet

func (FlagsSet) WithLimit

func (df FlagsSet) WithLimit(val int64) FlagsSet

func (FlagsSet) WithMetadata

func (df FlagsSet) WithMetadata(val string) FlagsSet

func (FlagsSet) WithMoniker

func (df FlagsSet) WithMoniker(val string) FlagsSet

func (FlagsSet) WithMsgType

func (df FlagsSet) WithMsgType(val string) FlagsSet

func (FlagsSet) WithMultisig

func (df FlagsSet) WithMultisig(val string) FlagsSet

func (FlagsSet) WithNote

func (df FlagsSet) WithNote(val string) FlagsSet

func (FlagsSet) WithOffline

func (df FlagsSet) WithOffline() FlagsSet

func (FlagsSet) WithOrderID

func (df FlagsSet) WithOrderID(val mtypes.OrderID) FlagsSet

func (FlagsSet) WithOseq

func (df FlagsSet) WithOseq(val uint32) FlagsSet

func (FlagsSet) WithOutput

func (df FlagsSet) WithOutput(val string) FlagsSet

func (FlagsSet) WithOutputJSON

func (df FlagsSet) WithOutputJSON() FlagsSet

func (FlagsSet) WithOutputText

func (df FlagsSet) WithOutputText() FlagsSet

func (FlagsSet) WithOutputYAML

func (df FlagsSet) WithOutputYAML() FlagsSet

func (FlagsSet) WithOverwrite

func (df FlagsSet) WithOverwrite() FlagsSet

func (FlagsSet) WithOwner

func (df FlagsSet) WithOwner(val string) FlagsSet

func (FlagsSet) WithPeriod

func (df FlagsSet) WithPeriod(val int64) FlagsSet

func (FlagsSet) WithPeriodLimit

func (df FlagsSet) WithPeriodLimit(val string) FlagsSet

func (FlagsSet) WithPrice

func (df FlagsSet) WithPrice(coin sdk.DecCoin) FlagsSet

func (FlagsSet) WithProposal

func (df FlagsSet) WithProposal(val string) FlagsSet

func (FlagsSet) WithProposalType

func (df FlagsSet) WithProposalType(val string) FlagsSet

func (FlagsSet) WithProvider

func (df FlagsSet) WithProvider(val string) FlagsSet

func (FlagsSet) WithPubkey

func (df FlagsSet) WithPubkey(val string) FlagsSet

func (FlagsSet) WithSecurityContact

func (df FlagsSet) WithSecurityContact(val string) FlagsSet

func (FlagsSet) WithSequence

func (df FlagsSet) WithSequence(val uint64) FlagsSet

func (FlagsSet) WithSerial

func (df FlagsSet) WithSerial(val string) FlagsSet

func (FlagsSet) WithSignMode

func (df FlagsSet) WithSignMode(val string) FlagsSet

func (FlagsSet) WithSignatureOnly

func (df FlagsSet) WithSignatureOnly() FlagsSet

func (FlagsSet) WithSkipConfirm

func (df FlagsSet) WithSkipConfirm() FlagsSet

func (FlagsSet) WithSpendLimit

func (df FlagsSet) WithSpendLimit(val string) FlagsSet

func (FlagsSet) WithState

func (df FlagsSet) WithState(val string) FlagsSet

func (FlagsSet) WithStatus

func (df FlagsSet) WithStatus(val string) FlagsSet

func (FlagsSet) WithTip

func (df FlagsSet) WithTip(val sdk.Coin) FlagsSet

func (FlagsSet) WithTitle

func (df FlagsSet) WithTitle(val string) FlagsSet

func (FlagsSet) WithType

func (df FlagsSet) WithType(val string) FlagsSet

func (FlagsSet) WithWebsite

func (df FlagsSet) WithWebsite(val string) FlagsSet

type GasEstimateResponse

type GasEstimateResponse struct {
	GasEstimate uint64 `json:"gas_estimate" yaml:"gas_estimate"`
}

GasEstimateResponse defines a response definition for tx gas estimation.

func (GasEstimateResponse) String

func (gr GasEstimateResponse) String() string

type InputPeriod

type InputPeriod struct {
	Coins  string `json:"coins"`
	Length int64  `json:"length_seconds"`
}

type ProviderConfig

type ProviderConfig struct {
	Host       string           `json:"host" yaml:"host"`
	Info       types.Info       `json:"info" yaml:"info"`
	Attributes tattr.Attributes `json:"attributes" yaml:"attributes"`
}

ProviderConfig is the struct that stores provider config

func ReadProviderConfigPath

func ReadProviderConfigPath(path string) (ProviderConfig, error)

ReadProviderConfigPath reads and parses file

func (ProviderConfig) GetAttributes

func (c ProviderConfig) GetAttributes() tattr.Attributes

GetAttributes returns config attributes into key value pairs

type TxCreateValidatorConfig

type TxCreateValidatorConfig struct {
	ChainID string
	NodeID  string
	Moniker string

	Amount string

	CommissionRate          string
	CommissionMaxRate       string
	CommissionMaxChangeRate string

	PubKey cryptotypes.PubKey

	IP              string
	P2PPort         uint
	Website         string
	SecurityContact string
	Details         string
	Identity        string
}

func PrepareConfigForTxCreateValidator

func PrepareConfigForTxCreateValidator(flagSet *flag.FlagSet, moniker, nodeID, chainID string, valPubKey cryptotypes.PubKey) (TxCreateValidatorConfig, error)

type VestingData

type VestingData struct {
	StartTime int64         `json:"start_time"`
	Periods   []InputPeriod `json:"periods"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL