Documentation ¶
Index ¶
- 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
- func WeightedOperations(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simulation.WeightedOperations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PoolAssetsCoins ¶
PoolAssetsCoins returns all the coins corresponding to a slice of pool assets.
func SimulateExitPool ¶
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 ¶
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
SimulateMsgCreatePool generates a MsgCreatePool with random values.
func SimulateMsgSwap ¶
func SimulateMsgSwap(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgSwap generates a MsgSwap with random values
func WeightedOperations ¶
func WeightedOperations( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.