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 ¶
This is for funding an account capable of `MaxSupportedCoin`
func MakeTestCodec ¶
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 ¶
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
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 ¶
Click to show internal directories.
Click to hide internal directories.