mocks

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Mocks

The mocks in this folder have been generated using the mockery tool. To regenerate the mocks, run the following commands at the root of this repository:

  • BankKeeper (reduced interface defined in ERC20 types):
mockgen -source=./x/erc20/types/interfaces.go -package=mocks -destination=./x/erc20/types/mocks/BankKeeper.go -exclude_interfaces=AccountKeeper,StakingKeeper,EVMKeeper,Erc20Keeper
  • EVMKeeper (reduced interface defined in ERC20 types):
cd x/erc20/types
mockery --name EVMKeeper

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EVMKeeper

type EVMKeeper struct {
	mock.Mock
}

EVMKeeper is an autogenerated mock type for the EVMKeeper type

func NewEVMKeeper

func NewEVMKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *EVMKeeper

NewEVMKeeper creates a new instance of EVMKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EVMKeeper) ApplyMessage

func (_m *EVMKeeper) ApplyMessage(ctx types.Context, stateDB *statedb.StateDB, msg core.Message, tracer *tracing.Hooks, commit bool, callFromPrecompile bool, internal bool) (*vmtypes.MsgEthereumTxResponse, error)

ApplyMessage provides a mock function with given fields: ctx, stateDB, msg, tracer, commit, callFromPrecompile, internal

func (*EVMKeeper) CallEVM

func (_m *EVMKeeper) CallEVM(ctx types.Context, stateDB *statedb.StateDB, _a2 abi.ABI, from common.Address, contract common.Address, commit bool, callFromPrecompile bool, gasCap *big.Int, method string, args ...interface{}) (*vmtypes.MsgEthereumTxResponse, error)

CallEVM provides a mock function with given fields: ctx, stateDB, _a2, from, contract, commit, callFromPrecompile, gasCap, method, args

func (*EVMKeeper) CallEVMWithData

func (_m *EVMKeeper) CallEVMWithData(ctx types.Context, stateDB *statedb.StateDB, from common.Address, contract *common.Address, data []byte, commit bool, callFromPrecompile bool, gasCap *big.Int) (*vmtypes.MsgEthereumTxResponse, error)

CallEVMWithData provides a mock function with given fields: ctx, stateDB, from, contract, data, commit, callFromPrecompile, gasCap

func (*EVMKeeper) DeleteAccount

func (_m *EVMKeeper) DeleteAccount(ctx types.Context, addr common.Address) error

DeleteAccount provides a mock function with given fields: ctx, addr

func (*EVMKeeper) DeleteCode added in v0.6.0

func (_m *EVMKeeper) DeleteCode(ctx types.Context, codeHash []byte)

DeleteCode provides a mock function with given fields: ctx, codeHash

func (*EVMKeeper) DeleteState added in v0.6.0

func (_m *EVMKeeper) DeleteState(ctx types.Context, addr common.Address, key common.Hash)

DeleteState provides a mock function with given fields: ctx, addr, key

func (*EVMKeeper) EstimateGasInternal

func (_m *EVMKeeper) EstimateGasInternal(c context.Context, req *vmtypes.EthCallRequest, fromType vmtypes.CallType) (*vmtypes.EstimateGasResponse, error)

EstimateGasInternal provides a mock function with given fields: c, req, fromType

func (*EVMKeeper) ForEachStorage added in v0.6.0

func (_m *EVMKeeper) ForEachStorage(ctx types.Context, addr common.Address, cb func(common.Hash, common.Hash) bool)

ForEachStorage provides a mock function with given fields: ctx, addr, cb

func (*EVMKeeper) GetAccount

func (_m *EVMKeeper) GetAccount(ctx types.Context, address common.Address) *statedb.Account

GetAccount provides a mock function with given fields: ctx, address

func (*EVMKeeper) GetAccountWithoutBalance

func (_m *EVMKeeper) GetAccountWithoutBalance(ctx types.Context, addr common.Address) *statedb.Account

GetAccountWithoutBalance provides a mock function with given fields: ctx, addr

func (*EVMKeeper) GetCode

func (_m *EVMKeeper) GetCode(ctx types.Context, hash common.Hash) []byte

GetCode provides a mock function with given fields: ctx, hash

func (*EVMKeeper) GetCodeHash added in v0.6.0

func (_m *EVMKeeper) GetCodeHash(ctx types.Context, addr common.Address) common.Hash

GetCodeHash provides a mock function with given fields: ctx, addr

func (*EVMKeeper) GetParams

func (_m *EVMKeeper) GetParams(ctx types.Context) vmtypes.Params

GetParams provides a mock function with given fields: ctx

func (*EVMKeeper) GetState added in v0.6.0

func (_m *EVMKeeper) GetState(ctx types.Context, addr common.Address, key common.Hash) common.Hash

GetState provides a mock function with given fields: ctx, addr, key

func (*EVMKeeper) IsAvailableStaticPrecompile

func (_m *EVMKeeper) IsAvailableStaticPrecompile(params *vmtypes.Params, address common.Address) bool

IsAvailableStaticPrecompile provides a mock function with given fields: params, address

func (*EVMKeeper) IsContract added in v0.5.0

func (_m *EVMKeeper) IsContract(ctx types.Context, address common.Address) bool

IsContract provides a mock function with given fields: ctx, address

func (*EVMKeeper) KVStoreKeys added in v0.6.0

func (_m *EVMKeeper) KVStoreKeys() map[string]storetypes.StoreKey

KVStoreKeys provides a mock function with no fields

func (*EVMKeeper) SetAccount

func (_m *EVMKeeper) SetAccount(ctx types.Context, address common.Address, account statedb.Account) error

SetAccount provides a mock function with given fields: ctx, address, account

func (*EVMKeeper) SetCode

func (_m *EVMKeeper) SetCode(ctx types.Context, hash []byte, bytecode []byte)

SetCode provides a mock function with given fields: ctx, hash, bytecode

func (*EVMKeeper) SetState added in v0.6.0

func (_m *EVMKeeper) SetState(ctx types.Context, addr common.Address, key common.Hash, value []byte)

SetState provides a mock function with given fields: ctx, addr, key, value

type MockBankKeeper added in v0.5.0

type MockBankKeeper struct {
	// contains filtered or unexported fields
}

MockBankKeeper is a mock of BankKeeper interface.

func NewMockBankKeeper

func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper

NewMockBankKeeper creates a new mock instance.

func (*MockBankKeeper) BlockedAddr added in v0.5.0

func (m *MockBankKeeper) BlockedAddr(addr types.AccAddress) bool

BlockedAddr mocks base method.

func (*MockBankKeeper) BurnCoins added in v0.5.0

func (m *MockBankKeeper) BurnCoins(ctx context.Context, moduleName string, amt types.Coins) error

BurnCoins mocks base method.

func (*MockBankKeeper) EXPECT added in v0.5.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBankKeeper) GetBalance added in v0.5.0

func (m *MockBankKeeper) GetBalance(ctx context.Context, addr types.AccAddress, denom string) types.Coin

GetBalance mocks base method.

func (*MockBankKeeper) GetDenomMetaData added in v0.5.0

func (m *MockBankKeeper) GetDenomMetaData(ctx context.Context, denom string) (types0.Metadata, bool)

GetDenomMetaData mocks base method.

func (*MockBankKeeper) GetSupply added in v0.5.0

func (m *MockBankKeeper) GetSupply(ctx context.Context, denom string) types.Coin

GetSupply mocks base method.

func (*MockBankKeeper) IsSendEnabledCoin added in v0.5.0

func (m *MockBankKeeper) IsSendEnabledCoin(ctx context.Context, coin types.Coin) bool

IsSendEnabledCoin mocks base method.

func (*MockBankKeeper) IterateAccountBalances added in v0.5.0

func (m *MockBankKeeper) IterateAccountBalances(ctx context.Context, account types.AccAddress, cb func(types.Coin) bool)

IterateAccountBalances mocks base method.

func (*MockBankKeeper) IterateTotalSupply added in v0.5.0

func (m *MockBankKeeper) IterateTotalSupply(ctx context.Context, cb func(types.Coin) bool)

IterateTotalSupply mocks base method.

func (*MockBankKeeper) MintCoins added in v0.5.0

func (m *MockBankKeeper) MintCoins(ctx context.Context, moduleName string, amt types.Coins) error

MintCoins mocks base method.

func (*MockBankKeeper) SendCoins added in v0.5.0

func (m *MockBankKeeper) SendCoins(ctx context.Context, fromAddr, toAddr types.AccAddress, amt types.Coins) error

SendCoins mocks base method.

func (*MockBankKeeper) SendCoinsFromAccountToModule added in v0.5.0

func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr types.AccAddress, recipientModule string, amt types.Coins) error

SendCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToAccount added in v0.5.0

func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error

SendCoinsFromModuleToAccount mocks base method.

func (*MockBankKeeper) SetDenomMetaData added in v0.5.0

func (m *MockBankKeeper) SetDenomMetaData(ctx context.Context, denomMetaData types0.Metadata)

SetDenomMetaData mocks base method.

func (*MockBankKeeper) SpendableCoin added in v0.5.0

func (m *MockBankKeeper) SpendableCoin(ctx context.Context, addr types.AccAddress, denom string) types.Coin

SpendableCoin mocks base method.

type MockBankKeeperMockRecorder

type MockBankKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.

func (*MockBankKeeperMockRecorder) BlockedAddr

func (mr *MockBankKeeperMockRecorder) BlockedAddr(addr any) *gomock.Call

BlockedAddr indicates an expected call of BlockedAddr.

func (*MockBankKeeperMockRecorder) BurnCoins

func (mr *MockBankKeeperMockRecorder) BurnCoins(ctx, moduleName, amt any) *gomock.Call

BurnCoins indicates an expected call of BurnCoins.

func (*MockBankKeeperMockRecorder) GetBalance

func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom any) *gomock.Call

GetBalance indicates an expected call of GetBalance.

func (*MockBankKeeperMockRecorder) GetDenomMetaData

func (mr *MockBankKeeperMockRecorder) GetDenomMetaData(ctx, denom any) *gomock.Call

GetDenomMetaData indicates an expected call of GetDenomMetaData.

func (*MockBankKeeperMockRecorder) GetSupply

func (mr *MockBankKeeperMockRecorder) GetSupply(ctx, denom any) *gomock.Call

GetSupply indicates an expected call of GetSupply.

func (*MockBankKeeperMockRecorder) IsSendEnabledCoin

func (mr *MockBankKeeperMockRecorder) IsSendEnabledCoin(ctx, coin any) *gomock.Call

IsSendEnabledCoin indicates an expected call of IsSendEnabledCoin.

func (*MockBankKeeperMockRecorder) IterateAccountBalances

func (mr *MockBankKeeperMockRecorder) IterateAccountBalances(ctx, account, cb any) *gomock.Call

IterateAccountBalances indicates an expected call of IterateAccountBalances.

func (*MockBankKeeperMockRecorder) IterateTotalSupply

func (mr *MockBankKeeperMockRecorder) IterateTotalSupply(ctx, cb any) *gomock.Call

IterateTotalSupply indicates an expected call of IterateTotalSupply.

func (*MockBankKeeperMockRecorder) MintCoins

func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amt any) *gomock.Call

MintCoins indicates an expected call of MintCoins.

func (*MockBankKeeperMockRecorder) SendCoins

func (mr *MockBankKeeperMockRecorder) SendCoins(ctx, fromAddr, toAddr, amt any) *gomock.Call

SendCoins indicates an expected call of SendCoins.

func (*MockBankKeeperMockRecorder) SendCoinsFromAccountToModule

func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt any) *gomock.Call

SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt any) *gomock.Call

SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.

func (*MockBankKeeperMockRecorder) SetDenomMetaData

func (mr *MockBankKeeperMockRecorder) SetDenomMetaData(ctx, denomMetaData any) *gomock.Call

SetDenomMetaData indicates an expected call of SetDenomMetaData.

func (*MockBankKeeperMockRecorder) SpendableCoin

func (mr *MockBankKeeperMockRecorder) SpendableCoin(ctx, addr, denom any) *gomock.Call

SpendableCoin indicates an expected call of SpendableCoin.

Jump to

Keyboard shortcuts

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