simulation

package
v0.27.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllInvariants

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

func DelegatorSharesInvariant added in v0.27.0

func DelegatorSharesInvariant(k stake.Keeper) simulation.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 PositiveDelegationInvariant added in v0.27.0

func PositiveDelegationInvariant(k stake.Keeper) simulation.Invariant

PositiveDelegationInvariant checks that all stored delegations have > 0 shares.

func PositivePowerInvariant

func PositivePowerInvariant(k stake.Keeper) simulation.Invariant

PositivePowerInvariant checks that all stored validators have > 0 power.

func Setup

func Setup(mapp *mock.App, k stake.Keeper) simulation.RandSetup

Setup nolint: errcheck

func SimulateMsgBeginRedelegate

func SimulateMsgBeginRedelegate(m auth.AccountKeeper, k stake.Keeper) simulation.Operation

SimulateMsgBeginRedelegate

func SimulateMsgBeginUnbonding

func SimulateMsgBeginUnbonding(m auth.AccountKeeper, k stake.Keeper) simulation.Operation

SimulateMsgBeginUnbonding

func SimulateMsgCreateValidator

func SimulateMsgCreateValidator(m auth.AccountKeeper, k stake.Keeper) simulation.Operation

SimulateMsgCreateValidator

func SimulateMsgDelegate

func SimulateMsgDelegate(m auth.AccountKeeper, k stake.Keeper) simulation.Operation

SimulateMsgDelegate

func SimulateMsgEditValidator

func SimulateMsgEditValidator(k stake.Keeper) simulation.Operation

SimulateMsgEditValidator

func SupplyInvariants

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

func ValidatorSetInvariant

func ValidatorSetInvariant(k stake.Keeper) simulation.Invariant

ValidatorSetInvariant checks equivalence of Tendermint validator set and SDK validator set

Types

This section is empty.

Jump to

Keyboard shortcuts

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