Documentation ¶
Index ¶
- Constants
- func Max(x, y int) int
- func Min(x, y int) int
- func RandomExactAmountInRoute(ctx sdk.Context, r *rand.Rand, k keeper.Keeper, tokenIn sdk.Coin) (res []types.SwapAmountInRoute, tokenOut sdk.Coin)
- func SimulateMsgCreateBalancerPool(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgSwapExactAmountIn(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( OpWeightMsgCreatePool = "op_weight_create_pool" OpWeightMsgSwapExactAmountIn = "op_weight_swap_exact_amount_in" OpWeightMsgSwapExactAmountOut = "op_weight_swap_exact_amount_out" OpWeightMsgJoinPool = "op_weight_join_pool" OpWeightMsgExitPool = "op_weight_exit_pool" OpWeightMsgJoinSwapExternAmountIn = "op_weight_join_swap_extern_amount_in" OpWeightMsgExitSwapExternAmountOut = "op_weight_exit_swap_extern_amount_out" DefaultWeightMsgCreatePool int = 10 DefaultWeightMsgSwapExactAmountIn int = 25 DefaultWeightMsgSwapExactAmountOut int = 10 DefaultWeightMsgJoinPool int = 10 DefaultWeightMsgExitPool int = 10 DefaultWeightMsgJoinSwapExternAmountIn int = 10 DefaultWeightMsgExitSwapExternAmountOut int = 10 )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func SimulateMsgCreateBalancerPool ¶
func SimulateMsgCreateBalancerPool(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgCreateBalancerPool generates a MsgCreatePool with random values
func SimulateMsgSwapExactAmountIn ¶
func SimulateMsgSwapExactAmountIn(ak stakingTypes.AccountKeeper, bk stakingTypes.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgSwapExactAmountIn generates a MsgSwapExactAmountIn with random values TODO: Change to use expected keepers
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak stakingTypes.AccountKeeper, bk stakingTypes.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.