keeper

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package keeper provides methods to initialize SDK keepers with local storage for test purposes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auction

func Auction(
	initializer *testkeeper.Initializer,
	authKeeper authkeeper.AccountKeeper,
	bankKeeper bankkeeper.Keeper,
	distrKeeper distrkeeper.Keeper,
	stakingKeeper *stakingkeeper.Keeper,
) auctionkeeper.Keeper

Auction initializes the auction module using the testkeepers intializer.

func NewTestSetup

func NewTestSetup(t testing.TB, options ...testkeeper.SetupOption) (sdk.Context, TestKeepers, TestMsgServers)

NewTestSetup returns initialized instances of all the keepers and message servers of the modules

Types

type TestKeepers

type TestKeepers struct {
	testkeeper.TestKeepers
	AuctionKeeper auctionkeeper.Keeper
}

TestKeepers holds all keepers used during keeper tests for all modules

type TestMsgServers

type TestMsgServers struct {
	testkeeper.TestMsgServers
	AuctionMsgServer auctiontypes.MsgServer
}

TestMsgServers holds all message servers used during keeper tests for all modules

Jump to

Keyboard shortcuts

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