simulation

package
v8.0.0-...-2960480 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenAndDeliverTxWithRandFees

func GenAndDeliverTxWithRandFees(
	r *rand.Rand,
	app *baseapp.BaseApp,
	txGen client.TxConfig,
	msg legacytx.LegacyMsg,
	coinsSpentInMsg sdk.Coins,
	ctx sdk.Context,
	simAccount simtypes.Account,
	ak stakingTypes.AccountKeeper,
	bk stakingTypes.BankKeeper,
	moduleName string,
) (simtypes.OperationMsg, []simtypes.FutureOperation, error)

Types

type SimulationContext

type SimulationContext struct {
	R      *rand.Rand
	SdkCtx sdk.Context
	App    *baseapp.BaseApp
	Accs   []simtypes.Account
	// contains filtered or unexported fields
}

func NewSimulationContext

func NewSimulationContext(r *rand.Rand, ctx sdk.Context, app *baseapp.BaseApp, accs []simtypes.Account) SimulationContext

func (*SimulationContext) GetMsgSender

func (ctx *SimulationContext) GetMsgSender() simtypes.Account

Jump to

Keyboard shortcuts

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