keeper

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ModuleBasics is a mock module basic manager for testing
	ModuleBasics = module.NewBasicManager(
		auth.AppModuleBasic{},
		bank.AppModuleBasic{},
		mint.AppModuleBasic{},
		params.AppModuleBasic{},
	)
)

Functions

func FundMaxSupported

func FundMaxSupported(denom string) string

This is for funding an account capable of `MaxSupportedCoin`

func MakeTestCodec

func MakeTestCodec() codec.Codec

MakeTestCodec creates a proto codec for use in testing

func MakeTestLegacyCodec

func MakeTestLegacyCodec() *codec.LegacyAmino

MakeTestLegacyCodec creates a legacy codec for use in testing

func MaxSupportedCoin

func MaxSupportedCoin(denom string) string

Returns an amount postfixed by `denom` that represents approximately the max amount in a single action that we want to support with the market module

func MaxSupportedDrop

func MaxSupportedDrop(denom string) string

Equal to `MaxSupportedCoin`

Types

type TestInput

type TestInput struct {
	AccountKeeper authkeeper.AccountKeeper
	BankKeeper    bankkeeper.BaseKeeper
	MintKeeper    mintkeeper.Keeper
	Context       sdk.Context
	Marshaler     codec.Codec
	MarketKeeper  *keeper.Keeper
	LegacyAmino   *codec.LegacyAmino
}

TestInput stores the various keepers required to test the exchange

func CreateTestEnvironment

func CreateTestEnvironment(t testing.TB) TestInput

Jump to

Keyboard shortcuts

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