Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAnteHandler ¶
func NewAnteHandler(opts HandlerOptions) (sdk.AnteHandler, error)
func SetMinStakedTokens ¶
SetMinStakedTokens sets the minimum amount of staked tokens required to vote Should only be used in testing
Types ¶
type GovVoteDecorator ¶
type GovVoteDecorator struct {
// contains filtered or unexported fields
}
func NewGovVoteDecorator ¶
func NewGovVoteDecorator(cdc codec.BinaryCodec, stakingKeeper *stakingkeeper.Keeper) GovVoteDecorator
func (GovVoteDecorator) AnteHandle ¶
func (GovVoteDecorator) ValidateVoteMsgs ¶
ValidateVoteMsgs checks if a voter has enough stake to vote
type HandlerOptions ¶
type HandlerOptions struct { ante.HandlerOptions Codec codec.BinaryCodec IBCkeeper *ibckeeper.Keeper GlobalFeeSubspace paramtypes.Subspace StakingKeeper *stakingkeeper.Keeper TxFeeChecker ante.TxFeeChecker }
HandlerOptions extend the SDK's AnteHandler options by requiring the IBC channel keeper.
Click to show internal directories.
Click to hide internal directories.