client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateModifyInflationHandleFn added in v0.0.8

func CreateModifyInflationHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func CreateParamsChangeHandleFn added in v0.0.8

func CreateParamsChangeHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func CreateSoftwareUpgradeHandleFn added in v0.0.8

func CreateSoftwareUpgradeHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func CreateTaxUsageHandleFn added in v0.0.8

func CreateTaxUsageHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func CreateTextProposalHandleFn added in v0.0.8

func CreateTextProposalHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func DepositCmd

func DepositCmd(cdc *amino.Codec) *cobra.Command

func DepositProposalHandleFn added in v0.0.8

func DepositProposalHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func GetDepositHandleFn added in v0.0.8

func GetDepositHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func GetModuleKeyHandleFn added in v0.0.9

func GetModuleKeyHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func GetModulesHandleFn added in v0.0.9

func GetModulesHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func GetParamsKeyHandleFn added in v0.0.8

func GetParamsKeyHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func GetProposalHandleFn added in v0.0.8

func GetProposalHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func GetProposalTallyHandleFn added in v0.0.8

func GetProposalTallyHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func GetVoteHandleFn added in v0.0.8

func GetVoteHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func ProposalCmd

func ProposalCmd(cdc *amino.Codec) *cobra.Command

func QueryAllDepositsHandleFn added in v0.0.8

func QueryAllDepositsHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func QueryAllProposalsHandleFn added in v0.0.8

func QueryAllProposalsHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func QueryAllVotesHandleFn added in v0.0.8

func QueryAllVotesHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

func QueryCommands

func QueryCommands(cdc *amino.Codec) []*cobra.Command

func RegisterRoutes added in v0.0.8

func RegisterRoutes(ctx context.CLIContext, r *mux.Router)

func TxCommands

func TxCommands(cdc *amino.Codec) []*cobra.Command

func VoteCmd

func VoteCmd(cdc *amino.Codec) *cobra.Command

func VoteProposalHandleFn added in v0.0.8

func VoteProposalHandleFn(cliContext context.CLIContext) func(http.ResponseWriter, *http.Request)

Types

type CreateModifyInflationProposalReq added in v0.0.8

type CreateModifyInflationProposalReq struct {
	rpc.BaseRequest  `json:"base"`
	Title            string        `json:"title"`
	Description      string        `json:"description"`
	Deposit          btypes.BigInt `json:"deposit"`
	InflationPhrases string        `json:"inflation_phrases"`
	TotalAmount      btypes.BigInt `json:"total_amount"`
}

type CreateParamChangeProposalReq added in v0.0.8

type CreateParamChangeProposalReq struct {
	rpc.BaseRequest `json:"base"`
	Title           string        `json:"title"`
	Description     string        `json:"description"`
	Deposit         btypes.BigInt `json:"deposit"`
	Params          string        `json:"params"`
}

type CreateSoftwareUpgradeProposalReq added in v0.0.8

type CreateSoftwareUpgradeProposalReq struct {
	rpc.BaseRequest `json:"base"`
	Title           string        `json:"title"`
	Description     string        `json:"description"`
	Deposit         btypes.BigInt `json:"deposit"`
	Version         string        `json:"version"`
	DataHeight      int64         `json:"data_height"`
	GenesisFile     string        `json:"genesis_file"`
	GenesisMD5      string        `json:"genesis_md5"`
	ForZeroHeight   bool          `json:"for_zero_height"`
}

type CreateTaxUsageProposalReq added in v0.0.8

type CreateTaxUsageProposalReq struct {
	rpc.BaseRequest `json:"base"`
	Title           string        `json:"title"`
	Description     string        `json:"description"`
	Deposit         btypes.BigInt `json:"deposit"`
	DestAddress     string        `json:"dest_address"`
	Percent         string        `json:"percent"`
}

type CreateTextProposalReq added in v0.0.8

type CreateTextProposalReq struct {
	rpc.BaseRequest `json:"base"`
	Title           string        `json:"title"`
	Description     string        `json:"description"`
	Deposit         btypes.BigInt `json:"deposit"`
}

type DepositProposalReq added in v0.0.8

type DepositProposalReq struct {
	rpc.BaseRequest `json:"base"`
	Amount          btypes.BigInt `json:"amount"`
}

type VoteProposalReq added in v0.0.8

type VoteProposalReq struct {
	rpc.BaseRequest `json:"base"`
	Option          string `json:"option"`
}

Jump to

Keyboard shortcuts

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