simulation

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxPlanId          = 1 << 18
	MaxPlans           = 1 << 10
	MaxPlanPriceAmount = 1 << 10
	MaxPlanValidity    = 1 << 18
	MaxPlanBytes       = math.MaxInt64
)

Variables

View Source
var (
	OperationWeightMsgAddRequest        = "op_weight_" + types.TypeMsgAddRequest
	OperationWeightMsgSetStatusRequest  = "op_weight_" + types.TypeMsgSetStatusRequest
	OperationWeightMsgAddNodeRequest    = "op_weight_" + types.TypeMsgAddNodeRequest
	OperationWeightMsgRemoveNodeRequest = "op_weight_" + types.TypeMsgRemoveNodeRequest
)

Functions

func NewStoreDecoder added in v0.8.0

func NewStoreDecoder(cdc codec.Marshaler) func(kvA, kvB kv.Pair) string

func RandomGenesisPlan added in v0.8.0

func RandomGenesisPlan(r *rand.Rand, items types.GenesisPlans) types.GenesisPlan

func RandomGenesisPlans added in v0.8.0

func RandomGenesisPlans(r *rand.Rand) types.GenesisPlans

func RandomPlan

func RandomPlan(r *rand.Rand, items types.Plans) types.Plan

func RandomPlans added in v0.8.0

func RandomPlans(r *rand.Rand) types.Plans

func RandomizedGenesisState added in v0.4.0

func RandomizedGenesisState(state *module.SimulationState) types.GenesisState

func SimulateMsgAddNodeRequest added in v0.8.0

func SimulateMsgAddNodeRequest(ak expected.AccountKeeper, bk expected.BankKeeper, k keeper.Keeper) simulationtypes.Operation

func SimulateMsgAddRequest added in v0.8.0

func SimulateMsgRemoveNodeRequest added in v0.8.0

func SimulateMsgRemoveNodeRequest(ak expected.AccountKeeper, bk expected.BankKeeper, k keeper.Keeper) simulationtypes.Operation

func SimulateMsgSetStatusRequest added in v0.8.0

func SimulateMsgSetStatusRequest(ak expected.AccountKeeper, bk expected.BankKeeper, k keeper.Keeper) simulationtypes.Operation

Types

This section is empty.

Jump to

Keyboard shortcuts

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