simulation

package
v0.0.0-...-abdbe5d Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProbabilityCreateRewardPool = 70
	ProbabilityCloseRewardPool  = 70

	ActionCreate = iota
	ActionEdit
	ActionClose
)

Variables

This section is empty.

Functions

func FindRandomChainWithCoordBalance

func FindRandomChainWithCoordBalance(
	r *rand.Rand,
	ctx sdk.Context,
	k keeper.Keeper,
	bk types.BankKeeper,
	hasRewardPool,
	checkBalance bool,
	wantCoins sdk.Coins,
) (chain launchtypes.Chain, found bool)

FindRandomChainWithCoordBalance find a random chain from store

func SimulateMsgSetRewards

func SimulateMsgSetRewards(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
	txGen client.TxConfig,
) simtypes.Operation

Types

This section is empty.

Jump to

Keyboard shortcuts

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