Documentation ¶
Index ¶
- Variables
- func ConsumerAdditionProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
- func ConsumerRemovalProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
- func EquivocationProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
- func SubmitConsumerAdditionPropTxCmd() *cobra.Command
- func SubmitConsumerRemovalProposalTxCmd() *cobra.Command
- func SubmitEquivocationProposalTxCmd() *cobra.Command
- type ConsumerAdditionProposalJSON
- type ConsumerAdditionProposalReq
- type ConsumerRemovalProposalJSON
- type ConsumerRemovalProposalReq
- type EquivocationProposalJSON
- type EquivocationProposalReq
Constants ¶
This section is empty.
Variables ¶
var ( ConsumerAdditionProposalHandler = govclient.NewProposalHandler(SubmitConsumerAdditionPropTxCmd, ConsumerAdditionProposalRESTHandler) ConsumerRemovalProposalHandler = govclient.NewProposalHandler(SubmitConsumerRemovalProposalTxCmd, ConsumerRemovalProposalRESTHandler) EquivocationProposalHandler = govclient.NewProposalHandler(SubmitEquivocationProposalTxCmd, EquivocationProposalRESTHandler) )
Functions ¶
func ConsumerAdditionProposalRESTHandler ¶ added in v0.2.0
func ConsumerAdditionProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
ConsumerAdditionProposalRESTHandler returns a ProposalRESTHandler that exposes the consumer addition rest handler.
func ConsumerRemovalProposalRESTHandler ¶ added in v0.2.0
func ConsumerRemovalProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
ConsumerRemovalProposalRESTHandler returns a ProposalRESTHandler that exposes the consumer removal rest handler.
func EquivocationProposalRESTHandler ¶ added in v1.0.0
func EquivocationProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
EquivocationProposalRESTHandler returns a ProposalRESTHandler that exposes the equivocation rest handler.
func SubmitConsumerAdditionPropTxCmd ¶ added in v0.2.0
SubmitConsumerAdditionPropTxCmd returns a CLI command handler for submitting a consumer addition proposal via a transaction.
func SubmitConsumerRemovalProposalTxCmd ¶ added in v0.2.0
SubmitConsumerRemovalPropTxCmd returns a CLI command handler for submitting a consumer addition proposal via a transaction.
func SubmitEquivocationProposalTxCmd ¶ added in v1.0.0
SubmitEquivocationProposalTxCmd returns a CLI command handler for submitting a equivocation proposal via a transaction.
Types ¶
type ConsumerAdditionProposalJSON ¶ added in v0.2.0
type ConsumerAdditionProposalJSON 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"` ConsumerRedistributionFraction string `json:"consumer_redistribution_fraction"` BlocksPerDistributionTransmission int64 `json:"blocks_per_distribution_transmission"` HistoricalEntries int64 `json:"historical_entries"` CcvTimeoutPeriod time.Duration `json:"ccv_timeout_period"` TransferTimeoutPeriod time.Duration `json:"transfer_timeout_period"` UnbondingPeriod time.Duration `json:"unbonding_period"` Deposit string `json:"deposit"` }
func ParseConsumerAdditionProposalJSON ¶ added in v0.2.0
func ParseConsumerAdditionProposalJSON(proposalFile string) (ConsumerAdditionProposalJSON, error)
type ConsumerAdditionProposalReq ¶ added in v0.2.0
type ConsumerAdditionProposalReq 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"` ConsumerRedistributionFraction string `json:"consumer_redistribution_fraction"` BlocksPerDistributionTransmission int64 `json:"blocks_per_distribution_transmission"` HistoricalEntries int64 `json:"historical_entries"` CcvTimeoutPeriod time.Duration `json:"ccv_timeout_period"` TransferTimeoutPeriod time.Duration `json:"transfer_timeout_period"` UnbondingPeriod time.Duration `json:"unbonding_period"` Deposit sdk.Coins `json:"deposit"` }
type ConsumerRemovalProposalJSON ¶ added in v0.2.0
type ConsumerRemovalProposalJSON 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 ParseConsumerRemovalProposalJSON ¶ added in v0.2.0
func ParseConsumerRemovalProposalJSON(proposalFile string) (ConsumerRemovalProposalJSON, error)
type ConsumerRemovalProposalReq ¶ added in v0.2.0
type EquivocationProposalJSON ¶ added in v1.0.0
type EquivocationProposalJSON struct { // evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" types.EquivocationProposal Deposit string `json:"deposit"` }
func ParseEquivocationProposalJSON ¶ added in v1.0.0
func ParseEquivocationProposalJSON(proposalFile string) (EquivocationProposalJSON, error)
type EquivocationProposalReq ¶ added in v1.0.0
type EquivocationProposalReq struct { BaseReq rest.BaseReq `json:"base_req"` Proposer sdk.AccAddress `json:"proposer"` // evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" types.EquivocationProposal Deposit sdk.Coins `json:"deposit"` }