simulation

package
v0.19.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PoolAssetsCoins

func PoolAssetsCoins(assets []types.PoolAsset) sdk.Coins

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

SimulateMsgSwap generates a MsgSwap with random values

func WeightedOperations

WeightedOperations returns all the operations from the module with their respective weights

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL