Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type EVMKeeper
- func (_m *EVMKeeper) ApplyMessage(ctx types.Context, msg core.Message, tracer *tracing.Hooks, commit bool, ...) (*vmtypes.MsgEthereumTxResponse, error)
- func (_m *EVMKeeper) CallEVM(ctx types.Context, _a1 abi.ABI, from common.Address, contract common.Address, ...) (*vmtypes.MsgEthereumTxResponse, error)
- func (_m *EVMKeeper) CallEVMWithData(ctx types.Context, from common.Address, contract *common.Address, data []byte, ...) (*vmtypes.MsgEthereumTxResponse, error)
- func (_m *EVMKeeper) DeleteAccount(ctx types.Context, addr common.Address) error
- func (_m *EVMKeeper) EstimateGasInternal(c context.Context, req *vmtypes.EthCallRequest, fromType vmtypes.CallType) (*vmtypes.EstimateGasResponse, error)
- func (_m *EVMKeeper) GetAccount(ctx types.Context, address common.Address) *statedb.Account
- func (_m *EVMKeeper) GetAccountWithoutBalance(ctx types.Context, addr common.Address) *statedb.Account
- func (_m *EVMKeeper) GetCode(ctx types.Context, hash common.Hash) []byte
- func (_m *EVMKeeper) GetParams(ctx types.Context) vmtypes.Params
- func (_m *EVMKeeper) IsAvailableStaticPrecompile(params *vmtypes.Params, address common.Address) bool
- func (_m *EVMKeeper) IsContract(ctx types.Context, address common.Address) bool
- func (_m *EVMKeeper) SetAccount(ctx types.Context, address common.Address, account statedb.Account) error
- func (_m *EVMKeeper) SetCode(ctx types.Context, hash []byte, bytecode []byte)
- type MockBankKeeper
- func (m *MockBankKeeper) BlockedAddr(addr types.AccAddress) bool
- func (m *MockBankKeeper) BurnCoins(ctx context.Context, moduleName string, amt types.Coins) error
- func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
- func (m *MockBankKeeper) GetBalance(ctx context.Context, addr types.AccAddress, denom string) types.Coin
- func (m *MockBankKeeper) GetDenomMetaData(ctx context.Context, denom string) (types0.Metadata, bool)
- func (m *MockBankKeeper) GetSupply(ctx context.Context, denom string) types.Coin
- func (m *MockBankKeeper) IsSendEnabledCoin(ctx context.Context, coin types.Coin) bool
- func (m *MockBankKeeper) IterateAccountBalances(ctx context.Context, account types.AccAddress, cb func(types.Coin) bool)
- func (m *MockBankKeeper) IterateTotalSupply(ctx context.Context, cb func(types.Coin) bool)
- func (m *MockBankKeeper) MintCoins(ctx context.Context, moduleName string, amt types.Coins) error
- func (m *MockBankKeeper) SendCoins(ctx context.Context, fromAddr, toAddr types.AccAddress, amt types.Coins) error
- func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr types.AccAddress, recipientModule string, ...) error
- func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types.AccAddress, ...) error
- func (m *MockBankKeeper) SetDenomMetaData(ctx context.Context, denomMetaData types0.Metadata)
- func (m *MockBankKeeper) SpendableCoin(ctx context.Context, addr types.AccAddress, denom string) types.Coin
- type MockBankKeeperMockRecorder
- func (mr *MockBankKeeperMockRecorder) BlockedAddr(addr any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) BurnCoins(ctx, moduleName, amt any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) GetDenomMetaData(ctx, denom any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) GetSupply(ctx, denom any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) IsSendEnabledCoin(ctx, coin any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) IterateAccountBalances(ctx, account, cb any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) IterateTotalSupply(ctx, cb any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amt any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoins(ctx, fromAddr, toAddr, amt any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SetDenomMetaData(ctx, denomMetaData any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SpendableCoin(ctx, addr, denom any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EVMKeeper ¶
EVMKeeper is an autogenerated mock type for the EVMKeeper type
func NewEVMKeeper ¶
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, msg core.Message, tracer *tracing.Hooks, commit bool, internal bool) (*vmtypes.MsgEthereumTxResponse, error)
ApplyMessage provides a mock function with given fields: ctx, msg, tracer, commit
func (*EVMKeeper) CallEVM ¶
func (_m *EVMKeeper) CallEVM(ctx types.Context, _a1 abi.ABI, from common.Address, contract common.Address, commit bool, gasCap *big.Int, method string, args ...interface{}) (*vmtypes.MsgEthereumTxResponse, error)
CallEVM provides a mock function with given fields: ctx, _a1, from, contract, commit, gasCap, method, args
func (*EVMKeeper) CallEVMWithData ¶
func (_m *EVMKeeper) CallEVMWithData(ctx types.Context, from common.Address, contract *common.Address, data []byte, commit bool, gasCap *big.Int) (*vmtypes.MsgEthereumTxResponse, error)
CallEVMWithData provides a mock function with given fields: ctx, from, contract, data, commit, gasCap
func (*EVMKeeper) DeleteAccount ¶
DeleteAccount provides a mock function with given fields: ctx, addr
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) GetAccount ¶
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) 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
IsContract provides a mock function with given fields: ctx, address
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) EXPECT ¶ added in v0.5.0
func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
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) IsSendEnabledCoin ¶ added in v0.5.0
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
IterateTotalSupply 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.