Documentation ¶
Index ¶
- func CronKeeper(tb testing.TB) (keeper.Keeper, sdk.Context)
- func GlobalFeeKeeper(tb testing.TB) (keeper.Keeper, sdk.Context)
- type MockWasmKeeper
- func (k MockWasmKeeper) GetCodeInfo(ctx sdk.Context, codeID uint64) *wasmtypes.CodeInfo
- func (k MockWasmKeeper) GetContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) *wasmtypes.ContractInfo
- func (k MockWasmKeeper) HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool
- func (k MockWasmKeeper) Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CronKeeper ¶
CronKeeper creates a testing keeper for the x/cron 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 (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)
Click to show internal directories.
Click to hide internal directories.