keeper

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 35 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,
	}
)
View Source
var EVMTestApp = app.Setup(false, true)

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 MockAddressPair

func MockAddressPair() (sdk.AccAddress, common.Address)

func MockEVMKeeper

func MockEVMKeeper() (*evmkeeper.Keeper, sdk.Context)

func MockEVMKeeperWithPrecompiles

func MockEVMKeeperWithPrecompiles() (*evmkeeper.Keeper, sdk.Context)

func MockPrivateKey

func MockPrivateKey() cryptotypes.PrivKey

func PrivateKeyToAddresses

func PrivateKeyToAddresses(privKey cryptotypes.PrivKey) (sdk.AccAddress, common.Address)

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