Documentation ¶
Index ¶
- func AllInvariants(k staking.Keeper, f staking.FeeCollectionKeeper, d staking.DistributionKeeper, ...) sdk.Invariant
- func DelegatorSharesInvariant(k staking.Keeper) sdk.Invariant
- func NonNegativePowerInvariant(k staking.Keeper) sdk.Invariant
- func PositiveDelegationInvariant(k staking.Keeper) sdk.Invariant
- func SimulateMsgBeginRedelegate(m auth.AccountKeeper, k staking.Keeper) simulation.Operation
- func SimulateMsgCreateValidator(m auth.AccountKeeper, k staking.Keeper) simulation.Operation
- func SimulateMsgDelegate(m auth.AccountKeeper, k staking.Keeper) simulation.Operation
- func SimulateMsgEditValidator(k staking.Keeper) simulation.Operation
- func SimulateMsgUndelegate(m auth.AccountKeeper, k staking.Keeper) simulation.Operation
- func SupplyInvariants(k staking.Keeper, f staking.FeeCollectionKeeper, d staking.DistributionKeeper, ...) sdk.Invariant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllInvariants ¶ added in v0.30.0
func AllInvariants(k staking.Keeper, f staking.FeeCollectionKeeper, d staking.DistributionKeeper, am auth.AccountKeeper) sdk.Invariant
AllInvariants runs all invariants of the staking module. Currently: total supply, positive power
func DelegatorSharesInvariant ¶ added in v0.30.0
DelegatorSharesInvariant checks whether all the delegator shares which persist in the delegator object add up to the correct total delegator shares amount stored in each validator
func NonNegativePowerInvariant ¶ added in v0.30.0
NonNegativePowerInvariant checks that all stored validators have >= 0 power.
func PositiveDelegationInvariant ¶ added in v0.30.0
PositiveDelegationInvariant checks that all stored delegations have > 0 shares.
func SimulateMsgBeginRedelegate ¶
func SimulateMsgBeginRedelegate(m auth.AccountKeeper, k staking.Keeper) simulation.Operation
SimulateMsgBeginRedelegate
func SimulateMsgCreateValidator ¶
func SimulateMsgCreateValidator(m auth.AccountKeeper, k staking.Keeper) simulation.Operation
SimulateMsgCreateValidator
func SimulateMsgDelegate ¶
func SimulateMsgDelegate(m auth.AccountKeeper, k staking.Keeper) simulation.Operation
SimulateMsgDelegate
func SimulateMsgEditValidator ¶
func SimulateMsgEditValidator(k staking.Keeper) simulation.Operation
SimulateMsgEditValidator
func SimulateMsgUndelegate ¶
func SimulateMsgUndelegate(m auth.AccountKeeper, k staking.Keeper) simulation.Operation
SimulateMsgUndelegate
func SupplyInvariants ¶ added in v0.30.0
func SupplyInvariants(k staking.Keeper, f staking.FeeCollectionKeeper, d staking.DistributionKeeper, am auth.AccountKeeper) sdk.Invariant
SupplyInvariants checks that the total supply reflects all held not-bonded tokens, bonded tokens, and unbonding delegations nolint: unparam
Types ¶
This section is empty.