keeper

package
v0.0.0-...-f42d900 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestAccount    = "sei1yezq49upxhunjjhudql2fnj5dgvcwjj87pn2wx"
	TestContract   = "sei1ghd753shjuwexxywmgs4xz7x2q732vcnkm6h2pyv9s6ah3hylvrqladqwc"
	TestAccount2   = "sei1vk2f6aps83xahv2sql4equx8fa95jgcnsdxkvr"
	TestContract2  = "sei17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgsrtqewe"
	TestPriceDenom = "usdc"
	TestAssetDenom = "atom"
)

Variables

View Source
var (
	TestTicksize = sdk.OneDec()
	TestPair     = types.Pair{
		PriceDenom:       TestPriceDenom,
		AssetDenom:       TestAssetDenom,
		PriceTicksize:    &TestTicksize,
		QuantityTicksize: &TestTicksize,
	}
)

Functions

func CreateAssetMetadata

func CreateAssetMetadata(keeper *keeper.Keeper, ctx sdk.Context) types.AssetMetadata

func CreateNLongBook

func CreateNLongBook(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.LongBook

func CreateNShortBook

func CreateNShortBook(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.ShortBook

func DexKeeper

func DexKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)

func EpochKeeper

func EpochKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)

func SeedPriceSnapshot

func SeedPriceSnapshot(ctx sdk.Context, k *keeper.Keeper, price string, timestamp uint64)

func TestApp

func TestApp() *app.App

Types

This section is empty.

Jump to

Keyboard shortcuts

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