simulation

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: Apache-2.0 Imports: 13 Imported by: ? 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

func AllInvariants(ck bank.Keeper, k stake.Keeper, am auth.AccountMapper) simulation.Invariant

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

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

func SimulateMsgBeginRedelegate

func SimulateMsgBeginRedelegate(m auth.AccountMapper, k stake.Keeper) simulation.TestAndRunTx

SimulateMsgBeginRedelegate

func SimulateMsgBeginUnbonding

func SimulateMsgBeginUnbonding(m auth.AccountMapper, k stake.Keeper) simulation.TestAndRunTx

SimulateMsgBeginUnbonding

func SimulateMsgCompleteRedelegate

func SimulateMsgCompleteRedelegate(k stake.Keeper) simulation.TestAndRunTx

SimulateMsgCompleteRedelegate

func SimulateMsgCompleteUnbonding

func SimulateMsgCompleteUnbonding(k stake.Keeper) simulation.TestAndRunTx

SimulateMsgCompleteUnbonding

func SimulateMsgCreateValidator

func SimulateMsgCreateValidator(m auth.AccountMapper, k stake.Keeper) simulation.TestAndRunTx

SimulateMsgCreateValidator

func SimulateMsgDelegate

func SimulateMsgDelegate(m auth.AccountMapper, k stake.Keeper) simulation.TestAndRunTx

SimulateMsgDelegate

func SimulateMsgEditValidator

func SimulateMsgEditValidator(k stake.Keeper) simulation.TestAndRunTx

SimulateMsgEditValidator

func SupplyInvariants

func SupplyInvariants(ck bank.Keeper, k stake.Keeper, am auth.AccountMapper) simulation.Invariant

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

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