cli

package
v0.0.0-...-f498596 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Overview

nolint

nolint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChangeDistributionTypeProposal

func GetChangeDistributionTypeProposal(cdcP *codec.CodecProxy, reg interfacetypes.InterfaceRegistry) *cobra.Command

GetChangeDistributionTypeProposal implements the command to submit a change-distr-type proposal

func GetCmdCommunityPoolSpendProposal

func GetCmdCommunityPoolSpendProposal(cdcP *codec.CodecProxy, reg interfacetypes.InterfaceRegistry) *cobra.Command

GetCmdCommunityPoolSpendProposal implements the command to submit a community-pool-spend proposal

func GetCmdQueryCommunityPool

func GetCmdQueryCommunityPool(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryCommunityPool returns the command for fetching community pool info

func GetCmdQueryDelegatorRewards

func GetCmdQueryDelegatorRewards(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryDelegatorRewards implements the query delegator rewards command.

func GetCmdQueryParams

func GetCmdQueryParams(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryParams implements the query params command.

func GetCmdQueryValidatorCommission

func GetCmdQueryValidatorCommission(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryValidatorCommission implements the query validator commission command.

func GetCmdQueryValidatorOutstandingRewards

func GetCmdQueryValidatorOutstandingRewards(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryValidatorOutstandingRewards implements the query validator outstanding rewards command.

func GetCmdQueryWithdrawAddr

func GetCmdQueryWithdrawAddr(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryWithdrawAddr implements the query the delegator's withdraw address for commission and reward

func GetCmdSetWithdrawAddr

func GetCmdSetWithdrawAddr(cdc *codec.Codec) *cobra.Command

command to replace a delegator's withdrawal address

func GetCmdWithdrawAllRewards

func GetCmdWithdrawAllRewards(cdc *codec.Codec, queryRoute string) *cobra.Command

GetCmdWithdrawAllRewards command to withdraw all rewards

func GetCmdWithdrawRewards

func GetCmdWithdrawRewards(cdc *codec.Codec) *cobra.Command

GetCmdWithdrawRewards command to withdraw rewards

func GetQueryCmd

func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the cli query commands for this module

func GetRewardTruncatePrecisionProposal

func GetRewardTruncatePrecisionProposal(cdcP *codec.CodecProxy, reg interfacetypes.InterfaceRegistry) *cobra.Command

GetRewardTruncatePrecisionProposal implements the command to submit a reward-truncate-precision proposal

func GetTxCmd

func GetTxCmd(storeKey string, cdc *codec.Codec) *cobra.Command

GetTxCmd returns the transaction commands for this module

func GetWithdrawRewardEnabledProposal

func GetWithdrawRewardEnabledProposal(cdcP *codec.CodecProxy, reg interfacetypes.InterfaceRegistry) *cobra.Command

GetWithdrawRewardEnabledProposal implements the command to submit a withdraw-reward-enabled proposal

Types

type ChangeDistributionTypeProposalJSON

type ChangeDistributionTypeProposalJSON struct {
	Title       string       `json:"title" yaml:"title"`
	Description string       `json:"description" yaml:"description"`
	Type        uint32       `json:"type" yaml:"type"`
	Deposit     sdk.SysCoins `json:"deposit" yaml:"deposit"`
}

ChangeDistributionTypeProposalJSON defines a ChangeDistributionTypeProposal with a deposit

func ParseChangeDistributionTypeProposalJSON

func ParseChangeDistributionTypeProposalJSON(cdc *codec.Codec, proposalFile string) (ChangeDistributionTypeProposalJSON, error)

ParseChangeDistributionTypeProposalJSON reads and parses a ChangeDistributionTypeProposalJSON from a file.

type CommunityPoolSpendProposalJSON

type CommunityPoolSpendProposalJSON struct {
	Title       string         `json:"title" yaml:"title"`
	Description string         `json:"description" yaml:"description"`
	Recipient   sdk.AccAddress `json:"recipient" yaml:"recipient"`
	Amount      sdk.SysCoins   `json:"amount" yaml:"amount"`
	Deposit     sdk.SysCoins   `json:"deposit" yaml:"deposit"`
}

CommunityPoolSpendProposalJSON defines a CommunityPoolSpendProposal with a deposit

func ParseCommunityPoolSpendProposalJSON

func ParseCommunityPoolSpendProposalJSON(cdc *codec.Codec, proposalFile string) (CommunityPoolSpendProposalJSON, error)

ParseCommunityPoolSpendProposalJSON reads and parses a CommunityPoolSpendProposalJSON from a file.

type RewardTruncatePrecisonProposalJSON

type RewardTruncatePrecisonProposalJSON struct {
	Title       string       `json:"title" yaml:"title"`
	Description string       `json:"description" yaml:"description"`
	Deposit     sdk.SysCoins `json:"deposit" yaml:"deposit"`
	Precision   int64        `json:"precision" yaml:"precision"`
}

RewardTruncatePrecisonProposalJSON defines a RewardTruncatePrecisionProposal with a deposit

func ParseRewardTruncatePrecisionProposalJSON

func ParseRewardTruncatePrecisionProposalJSON(cdc *codec.Codec, proposalFile string) (RewardTruncatePrecisonProposalJSON, error)

ParseRewardTruncatePrecisionProposalJSON reads and parses a RewardTruncatePrecisonProposalJSON from a file.

type WithdrawRewardEnabledProposalJSON

type WithdrawRewardEnabledProposalJSON struct {
	Title       string       `json:"title" yaml:"title"`
	Description string       `json:"description" yaml:"description"`
	Enabled     bool         `json:"enabled" yaml:"enabled"`
	Deposit     sdk.SysCoins `json:"deposit" yaml:"deposit"`
}

WithdrawRewardEnabledProposalJSON defines a WithdrawRewardEnabledProposal with a deposit

func ParseWithdrawRewardEnabledProposalJSON

func ParseWithdrawRewardEnabledProposalJSON(cdc *codec.Codec, proposalFile string) (WithdrawRewardEnabledProposalJSON, error)

ParseWithdrawRewardEnabledProposalJSON reads and parses a WithdrawRewardEnabledProposalJSON from a file.

Jump to

Keyboard shortcuts

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