keeper

package
v11.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CronKeeper

func CronKeeper(tb testing.TB) (*keeper.Keeper, sdk.Context)

CronKeeper creates a testing keeper for the x/cron module

func GlobalFeeKeeper

func GlobalFeeKeeper(tb testing.TB) (keeper.Keeper, sdk.Context)

GlobalFeeKeeper creates a testing keeper for the x/global module

Types

type MockWasmKeeper

type MockWasmKeeper struct {
	HasContractInfoFn func(ctx sdk.Context, contractAddr sdk.AccAddress) bool
	SudoFn            func(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error)
	GetCodeInfoFn     func(ctx sdk.Context, codeID uint64) *wasmtypes.CodeInfo
	GetContractInfoFn func(ctx sdk.Context, contractAddress sdk.AccAddress) *wasmtypes.ContractInfo
}

func (MockWasmKeeper) GetCodeInfo

func (k MockWasmKeeper) GetCodeInfo(ctx sdk.Context, codeID uint64) *wasmtypes.CodeInfo

func (MockWasmKeeper) GetContractInfo

func (k MockWasmKeeper) GetContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) *wasmtypes.ContractInfo

func (MockWasmKeeper) HasContractInfo

func (k MockWasmKeeper) HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool

func (MockWasmKeeper) Sudo

func (k MockWasmKeeper) Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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