simulation

package
v0.33.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2019 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllInvariants

AllInvariants runs all invariants of the staking module. Currently: total supply, positive power

func DelegatorSharesInvariant

func DelegatorSharesInvariant(k staking.Keeper) sdk.Invariant

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

func NonNegativePowerInvariant(k staking.Keeper) sdk.Invariant

NonNegativePowerInvariant checks that all stored validators have >= 0 power.

func PositiveDelegationInvariant

func PositiveDelegationInvariant(k staking.Keeper) sdk.Invariant

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

SupplyInvariants checks that the total supply reflects all held not-bonded tokens, bonded tokens, and unbonding delegations nolint: unparam

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL