Documentation ¶
Index ¶
- Variables
- func CreateConsumerProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
- func NewCreateConsumerChainProposalTxCmd() *cobra.Command
- func NewStopConsumerChainProposalTxCmd() *cobra.Command
- func StopConsumerProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
- type CreateConsumerChainProposalJSON
- type CreateConsumerChainProposalReq
- type StopConsumerChainProposalJSON
- type StopConsumerChainProposalReq
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CreateConsumerProposalHandler = govclient.NewProposalHandler(NewCreateConsumerChainProposalTxCmd, CreateConsumerProposalRESTHandler) StopConsumerProposalHandler = govclient.NewProposalHandler(NewStopConsumerChainProposalTxCmd, StopConsumerProposalRESTHandler) )
ProposalHandler is the param change proposal handler.
Functions ¶
func CreateConsumerProposalRESTHandler ¶
func CreateConsumerProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
CreateConsumerProposalRESTHandler returns a ProposalRESTHandler that exposes the param change REST handler with a given sub-route.
func NewCreateConsumerChainProposalTxCmd ¶
NewCreateConsumerChainProposalTxCmd returns a CLI command handler for creating a new consumer chain proposal governance transaction.
func NewStopConsumerChainProposalTxCmd ¶
NewStopConsumerChainProposalTxCmd returns a CLI command handler for stopping a new consumer chain proposal governance transaction.
func StopConsumerProposalRESTHandler ¶
func StopConsumerProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
StopConsumerProposalRESTHandler returns a ProposalRESTHandler that exposes the param change REST handler with a given sub-route.
Types ¶
type CreateConsumerChainProposalJSON ¶
type CreateConsumerChainProposalJSON struct { Title string `json:"title"` Description string `json:"description"` ChainId string `json:"chain_id"` InitialHeight clienttypes.Height `json:"initial_height"` GenesisHash []byte `json:"genesis_hash"` BinaryHash []byte `json:"binary_hash"` SpawnTime time.Time `json:"spawn_time"` Deposit string `json:"deposit"` }
func ParseCreateConsumerChainProposalJSON ¶
func ParseCreateConsumerChainProposalJSON(proposalFile string) (CreateConsumerChainProposalJSON, error)
type CreateConsumerChainProposalReq ¶
type CreateConsumerChainProposalReq struct { BaseReq rest.BaseReq `json:"base_req"` Proposer sdk.AccAddress `json:"proposer"` Title string `json:"title"` Description string `json:"description"` ChainId string `json:"chainId"` InitialHeight clienttypes.Height `json:"initialHeight"` GenesisHash []byte `json:"genesisHash"` BinaryHash []byte `json:"binaryHash"` SpawnTime time.Time `json:"spawnTime"` Deposit sdk.Coins `json:"deposit"` }
type StopConsumerChainProposalJSON ¶
type StopConsumerChainProposalJSON struct { Title string `json:"title"` Description string `json:"description"` ChainId string `json:"chain_id"` StopTime time.Time `json:"stop_time"` Deposit string `json:"deposit"` }
func ParseStopConsumerChainProposalJSON ¶
func ParseStopConsumerChainProposalJSON(proposalFile string) (StopConsumerChainProposalJSON, error)
Click to show internal directories.
Click to hide internal directories.