test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AddressKey1 = "A58856F0FD53BF058B4909A21AEC019107BA6"
	AddressKey2 = "A58856F0FD53BF058B4909A21AEC019107BA7"
	AddressKey3 = "A58856F0FD53BF058B4909A21AEC019107BA9"
)

Constants for test scripts only .

Variables

This section is empty.

Functions

func CreateTestApp

func CreateTestApp(isCheckTx bool) (*gridapp.GridironchainApp, sdk.Context)

CreateTestApp returns context and app with params set on account keeper

func CreateTestAppClp

func CreateTestAppClp(isCheckTx bool) (sdk.Context, *gridapp.GridironchainApp)

func CreateTestAppClpFromGenesis

func CreateTestAppClpFromGenesis(isCheckTx bool, genesisTransformer func(*gridapp.GridironchainApp, gridapp.GenesisState) gridapp.GenesisState) (sdk.Context, *gridapp.GridironchainApp)

func CreateTestAppClpWithBlacklist

func CreateTestAppClpWithBlacklist(isCheckTx bool, blacklist []sdk.AccAddress) (sdk.Context, *gridapp.GridironchainApp)

func GenerateAddress

func GenerateAddress(key string) sdk.AccAddress

func GenerateAddress2

func GenerateAddress2(key string) sdk.AccAddress

func GeneratePoolsAndLPs

func GeneratePoolsAndLPs(keeper clpkeeper.Keeper, ctx sdk.Context, tokens []string) ([]types.Pool, []types.LiquidityProvider)

func GeneratePoolsFromFile

func GeneratePoolsFromFile(app *gridapp.GridironchainApp, keeper clpkeeper.Keeper, ctx sdk.Context) []*types.Pool

func GeneratePoolsSetLPs

func GeneratePoolsSetLPs(keeper clpkeeper.Keeper, ctx sdk.Context, nPools, nLPs int) []*types.Pool

func GenerateRandomLP

func GenerateRandomLP(numberOfLp int) []types.LiquidityProvider

func GenerateRandomLPWithUnits

func GenerateRandomLPWithUnits(poolUnitss []uint64) []*types.LiquidityProvider

func GenerateRandomLPWithUnitsAndAsset

func GenerateRandomLPWithUnitsAndAsset(poolUnitss []uint64, asset types.Asset) []*types.LiquidityProvider

func GenerateRandomPool

func GenerateRandomPool(numberOfPools int) []types.Pool

func GenerateWhitelistAddress

func GenerateWhitelistAddress(key string) sdk.AccAddress

func TrimFirstRune

func TrimFirstRune(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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