Documentation ¶
Index ¶
- Constants
- func BuildOperationInput(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, msg interface{ ... }, ...) simulation.OperationInput
- func DefaultSimulationDenomSelector(r *rand.Rand, ctx sdk.Context, tfKeeper TokenfactoryKeeper, creator string) (string, bool)
- func ParamChanges(r *rand.Rand) []simtypes.LegacyParamChange
- func RandDenomCreationFeeParam(r *rand.Rand) sdk.Coins
- func RandomizedGenState(simstate *module.SimulationState)
- func SimulateMsgBurn(tfKeeper TokenfactoryKeeper, ak types.AccountKeeper, bk BankKeeper, ...) simtypes.Operation
- func SimulateMsgChangeAdmin(tfKeeper TokenfactoryKeeper, ak types.AccountKeeper, bk BankKeeper, ...) simtypes.Operation
- func SimulateMsgCreateDenom(tfKeeper TokenfactoryKeeper, ak types.AccountKeeper, bk BankKeeper) simtypes.Operation
- func SimulateMsgMint(tfKeeper TokenfactoryKeeper, ak types.AccountKeeper, bk BankKeeper, ...) simtypes.Operation
- func SimulateMsgSetDenomMetadata(tfKeeper TokenfactoryKeeper, ak types.AccountKeeper, bk BankKeeper, ...) simtypes.Operation
- func WeightedOperations(simstate *module.SimulationState, tfKeeper TokenfactoryKeeper, ...) simulation.WeightedOperations
- type BankKeeper
- type DenomSelector
- type TokenfactoryKeeper
Constants ¶
View Source
const ( OpWeightMsgCreateDenom = "op_weight_msg_create_denom" OpWeightMsgMint = "op_weight_msg_mint" OpWeightMsgBurn = "op_weight_msg_burn" OpWeightMsgChangeAdmin = "op_weight_msg_change_admin" OpWeightMsgSetDenomMetadata = "op_weight_msg_set_denom_metadata" )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func BuildOperationInput ¶
func BuildOperationInput( r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, msg interface { sdk.Msg Type() string }, simAccount simtypes.Account, ak types.AccountKeeper, bk BankKeeper, deposit sdk.Coins, ) simulation.OperationInput
BuildOperationInput helper to build object
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simtypes.LegacyParamChange
func RandomizedGenState ¶
func RandomizedGenState(simstate *module.SimulationState)
func SimulateMsgBurn ¶
func SimulateMsgBurn( tfKeeper TokenfactoryKeeper, ak types.AccountKeeper, bk BankKeeper, denomSelector DenomSelector, ) simtypes.Operation
func SimulateMsgChangeAdmin ¶
func SimulateMsgChangeAdmin( tfKeeper TokenfactoryKeeper, ak types.AccountKeeper, bk BankKeeper, denomSelector DenomSelector, ) simtypes.Operation
func SimulateMsgCreateDenom ¶
func SimulateMsgCreateDenom(tfKeeper TokenfactoryKeeper, ak types.AccountKeeper, bk BankKeeper) simtypes.Operation
Simulate msg create denom
func SimulateMsgMint ¶
func SimulateMsgMint( tfKeeper TokenfactoryKeeper, ak types.AccountKeeper, bk BankKeeper, denomSelector DenomSelector, ) simtypes.Operation
Simulate msg mint denom
func SimulateMsgSetDenomMetadata ¶
func SimulateMsgSetDenomMetadata( tfKeeper TokenfactoryKeeper, ak types.AccountKeeper, bk BankKeeper, denomSelector DenomSelector, ) simtypes.Operation
func WeightedOperations ¶
func WeightedOperations( simstate *module.SimulationState, tfKeeper TokenfactoryKeeper, ak types.AccountKeeper, bk BankKeeper, ) simulation.WeightedOperations
Types ¶
type BankKeeper ¶
type BankKeeper interface { simulation.BankKeeper GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin }
type DenomSelector ¶
type TokenfactoryKeeper ¶
Click to show internal directories.
Click to hide internal directories.