gammsimulation

package
v16.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PoolCreationFee = sdk.NewInt64Coin("stake", 10_000_000)

Functions

func DefaultActions

func DefaultActions(keeper keeper.Keeper) []simtypes.Action

func RandomCreateUniV2Msg

func RandomCreateUniV2Msg(k keeper.Keeper, sim *simtypes.SimCtx, ctx sdk.Context) (*balancertypes.MsgCreateBalancerPool, error)

RandomCreatePoolMsg attempts to find an account with two or more distinct denoms and attempts to send a create pool message composed of those denoms

func RandomExitPoolMsg

func RandomExitPoolMsg(k keeper.Keeper, sim *simtypes.SimCtx, ctx sdk.Context) (*types.MsgExitPool, error)

RandomExitPoolMsg pseudo-randomly selects an existing pool ID, attempts to find an account with the respective unbonded gamm shares, and attempts to execute an exit pool transaction

func RandomExitSwapExternAmountOut

func RandomExitSwapExternAmountOut(k keeper.Keeper, sim *simtypes.SimCtx, ctx sdk.Context) (*types.MsgExitSwapExternAmountOut, error)

RandomExitSwapExternAmountOut utilizes a random pool and with a random account and swaps a maximum number of LP shares for an exact amount of one of the token pairs

func RandomExitSwapShareAmountIn

func RandomExitSwapShareAmountIn(k keeper.Keeper, sim *simtypes.SimCtx, ctx sdk.Context) (*types.MsgExitSwapShareAmountIn, error)

RandomExitSwapShareAmountIn utilizes a random pool and with a random account and swaps an number of LP shares for a minimum amount of one of the token pairs

func RandomJoinPoolMsg

func RandomJoinPoolMsg(k keeper.Keeper, sim *simtypes.SimCtx, ctx sdk.Context) (*types.MsgJoinPool, error)

RandomJoinPoolMsg pseudo-randomly selects an existing pool ID, attempts to find an account with the respective underlying token denoms, and attempts to execute a join pool transaction

func RandomJoinSwapExternAmountIn

func RandomJoinSwapExternAmountIn(k keeper.Keeper, sim *simtypes.SimCtx, ctx sdk.Context) (*types.MsgJoinSwapExternAmountIn, error)

RandomJoinSwapExternAmountIn utilizes a random pool and with a random account does a single asset join with an exact amount of an asset for a minimum number of LP shares

func RandomJoinSwapShareAmountOut

func RandomJoinSwapShareAmountOut(k keeper.Keeper, sim *simtypes.SimCtx, ctx sdk.Context) (*types.MsgJoinSwapShareAmountOut, error)

RandomJoinSwapShareAmountOut utilizes a random pool and with a random account and swaps a maximum of a specified token for an exact amount of LP shares

func RandomSwapExactAmountIn

func RandomSwapExactAmountIn(k keeper.Keeper, sim *simtypes.SimCtx, ctx sdk.Context) (*types.MsgSwapExactAmountIn, error)

RandomSwapExactAmountIn utilizes a random pool and swaps and exact amount in for minimum of the secondary pool token TODO: Improve this to swap through multiple pools

func RandomSwapExactAmountOut

func RandomSwapExactAmountOut(k keeper.Keeper, sim *simtypes.SimCtx, ctx sdk.Context) (*types.MsgSwapExactAmountOut, error)

RandomSwapExactAmountOut utilizes a random pool and swaps a max amount amount in for an exact amount of the secondary pool token TODO: Improve this to swap through multiple pools

Types

This section is empty.

Jump to

Keyboard shortcuts

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