Documentation ¶
Index ¶
Constants ¶
View Source
const OracleMessageGas = 500
Variables ¶
View Source
var ( ErrOracleAnte = registerError("oracle ante error") ErrMaxValidatorCommission = registerError("validator commission rate is above max") )
app/ante "sentinel" errors
Functions ¶
func MAX_COMMISSION ¶ added in v1.0.0
func NewErrMaxValidatorCommission ¶ added in v1.0.0
Types ¶
type AnteDecoratorStakingCommission ¶ added in v1.0.0
type AnteDecoratorStakingCommission struct{}
AnteDecoratorStakingCommission: Implements sdk.AnteDecorator, enforcing the maximum staking commission for validators on the network.
func (AnteDecoratorStakingCommission) AnteHandle ¶ added in v1.0.0
type EnsureSinglePostPriceMessageDecorator ¶
type EnsureSinglePostPriceMessageDecorator struct{}
EnsureSinglePostPriceMessageDecorator ensures that there is only one oracle vote message in the transaction and sets the gas meter to a fixed value.
func NewPostPriceFixedPriceDecorator ¶
func NewPostPriceFixedPriceDecorator() EnsureSinglePostPriceMessageDecorator
func (EnsureSinglePostPriceMessageDecorator) AnteHandle ¶
Click to show internal directories.
Click to hide internal directories.