Documentation ¶
Index ¶
- Variables
- func ChangeRewardDenomsProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
- func CheckPropUnbondingPeriod(clientCtx client.Context, propUnbondingPeriod time.Duration)
- func ConsumerAdditionProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
- func ConsumerRemovalProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
- func SubmitChangeRewardDenomsProposalTxCmd() *cobra.Command
- func SubmitConsumerAdditionPropTxCmd() *cobra.Command
- func SubmitConsumerRemovalProposalTxCmd() *cobra.Command
- type ChangeRewardDenomsProposalJSON
- type ChangeRewardDenomsProposalReq
- type ConsumerAdditionProposalJSON
- type ConsumerAdditionProposalReq
- type ConsumerRemovalProposalJSON
- type ConsumerRemovalProposalReq
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConsumerAdditionProposalHandler = govclient.NewProposalHandler(SubmitConsumerAdditionPropTxCmd, ConsumerAdditionProposalRESTHandler) ConsumerRemovalProposalHandler = govclient.NewProposalHandler(SubmitConsumerRemovalProposalTxCmd, ConsumerRemovalProposalRESTHandler) ChangeRewardDenomsProposalHandler = govclient.NewProposalHandler(SubmitChangeRewardDenomsProposalTxCmd, ChangeRewardDenomsProposalRESTHandler) )
Functions ¶
func ChangeRewardDenomsProposalRESTHandler ¶
func ChangeRewardDenomsProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
func ConsumerAdditionProposalRESTHandler ¶
func ConsumerAdditionProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
ConsumerAdditionProposalRESTHandler returns a ProposalRESTHandler that exposes the consumer addition rest handler.
func ConsumerRemovalProposalRESTHandler ¶
func ConsumerRemovalProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler
ConsumerRemovalProposalRESTHandler returns a ProposalRESTHandler that exposes the consumer removal rest handler.
func SubmitChangeRewardDenomsProposalTxCmd ¶
SubmitChangeRewardDenomsProposalTxCmd returns a CLI command handler for submitting a change reward denoms proposal via a transaction.
func SubmitConsumerAdditionPropTxCmd ¶
SubmitConsumerAdditionPropTxCmd returns a CLI command handler for submitting a consumer addition proposal via a transaction.
func SubmitConsumerRemovalProposalTxCmd ¶
SubmitConsumerRemovalPropTxCmd returns a CLI command handler for submitting a consumer addition proposal via a transaction.
Types ¶
type ChangeRewardDenomsProposalJSON ¶
type ChangeRewardDenomsProposalJSON struct { Summary string `json:"summary"` types.ChangeRewardDenomsProposal Deposit string `json:"deposit"` }
func ParseChangeRewardDenomsProposalJSON ¶
func ParseChangeRewardDenomsProposalJSON(proposalFile string) (ChangeRewardDenomsProposalJSON, error)
type ChangeRewardDenomsProposalReq ¶
type ChangeRewardDenomsProposalReq struct { BaseReq rest.BaseReq `json:"base_req"` Proposer sdk.AccAddress `json:"proposer"` types.ChangeRewardDenomsProposal Deposit sdk.Coins `json:"deposit"` }
type ConsumerAdditionProposalJSON ¶
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"` DistributionTransmissionChannel string `json:"distribution_transmission_channel"` 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 ¶
func ParseConsumerAdditionProposalJSON(proposalFile string) (ConsumerAdditionProposalJSON, error)
type ConsumerAdditionProposalReq ¶
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"` DistributionTransmissionChannel string `json:"distribution_transmission_channel"` 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 ¶
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 ¶
func ParseConsumerRemovalProposalJSON(proposalFile string) (ConsumerRemovalProposalJSON, error)
Click to show internal directories.
Click to hide internal directories.