Documentation ¶
Index ¶
- func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool)
- func Max(x, y int) int
- func Min(x, y int) int
- func PoolAssetsCoins(assets []types.PoolAsset) sdk.Coins
- func SimulateExitPool(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateJoinPool(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgCreatePool(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgSwap(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAccount ¶
FindAccount find a specific address from an account list
func PoolAssetsCoins ¶ added in v0.1.0
PoolAssetsCoins returns all the coins corresponding to a slice of pool assets.
func SimulateExitPool ¶ added in v0.1.0
func SimulateExitPool(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateExitPool generates a MsgExitPool with random values This function has a 33% chance of swapping a random fraction of the balance of a random token
func SimulateJoinPool ¶ added in v0.1.0
func SimulateJoinPool(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateJoinPool generates a MsgJoinPool with random values This function has a 33% chance of swapping a random fraction of the balance of a random token
func SimulateMsgCreatePool ¶
func SimulateMsgCreatePool(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgCreateBalancerPool generates a MsgCreatePool with random values.
func SimulateMsgSwap ¶ added in v0.1.0
func SimulateMsgSwap(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgSwap generates a MsgSwap with random values This function has a 33% chance of swapping a random fraction of the balance of a random token
Types ¶
This section is empty.