simulation

package
v0.0.0-...-3452658 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCreateFeed = "op_weight_msg_create_feed"
	OpWeightMsgPauseFeed  = "op_weight_msg_pause_feed"
	OpWeightMsgStartFeed  = "op_weight_msg_start_feed"
	OpWeightMsgEditFeed   = "op_weight_msg_edit_feed"
)

Variables

This section is empty.

Functions

func GenAggregateFunc

func GenAggregateFunc(r *rand.Rand) string

func GenFeed

func GenFeed(k keeper.Keeper, r *rand.Rand, ctx sdk.Context) types.Feed

func GenProviders

func GenProviders(r *rand.Rand, accs []simtypes.Account) (providers []string)

func GenServiceBindingsAndProviders

func GenServiceBindingsAndProviders(
	ctx sdk.Context,
	serviceName, owner string,
	sk types.ServiceKeeper,
	accs []simtypes.Account,
	r *rand.Rand,
	bk types.BankKeeper,
) (providers []string)

func GenServiceDefinition

func GenServiceDefinition(
	r *rand.Rand,
	sk types.ServiceKeeper,
	accs []simtypes.Account,
	ctx sdk.Context,
) (string, string, error)

func NewDecodeStore

func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string

NewDecodeStore unmarshals the KVPair's Value to the corresponding slashing type

func SimulateCreateFeed

func SimulateCreateFeed(
	k keeper.Keeper,
	ak types.AccountKeeper,
	bk types.BankKeeper,
) simtypes.Operation

func SimulateEditFeed

func SimulateEditFeed(
	k keeper.Keeper,
	ak types.AccountKeeper,
	bk types.BankKeeper,
) simtypes.Operation

func SimulatePauseFeed

func SimulatePauseFeed(
	k keeper.Keeper,
	ak types.AccountKeeper,
	bk types.BankKeeper,
) simtypes.Operation

func SimulateStartFeed

func SimulateStartFeed(
	k keeper.Keeper,
	ak types.AccountKeeper,
	bk types.BankKeeper,
) simtypes.Operation

func WeightedOperations

Types

This section is empty.

Jump to

Keyboard shortcuts

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