simulation

package
v4.2.1-0...-08ce00a Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenAndDeliverTx

func GenAndDeliverTx(
	app *baseapp.BaseApp,
	txGen client.TxConfig,
	msg sdk.Msg,
	fees sdk.Coins,
	ctx sdk.Context,
	simAccount simtypes.Account,
	ak stakingTypes.AccountKeeper,
	moduleName string) (simtypes.OperationMsg, []simtypes.FutureOperation, error)

func GenAndDeliverTxWithRandFees

func GenAndDeliverTxWithRandFees(
	r *rand.Rand,
	app *baseapp.BaseApp,
	txGen client.TxConfig,
	msg sdk.Msg,
	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