simulation

package
v0.15.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PoolAssetsCoins added in v0.1.0

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

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

SimulateMsgCreatePool generates a MsgCreatePool with random values.

func SimulateMsgSwap added in v0.1.0

SimulateMsgSwap generates a MsgSwap with random values

func WeightedOperations added in v0.15.0

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