mocks

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

Mocks

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

  • BankKeeper (from used version of Cosmos SDK):
git clone https://github.com/evmos/cosmos-sdk.git
cd cosmos-sdk
git checkout v0.47.5 # or the version currently used

# Go into bank module and generate mock
cd x/bank
mockery --name Keeper
  • EVMKeeper (reduced interface defined in ERC20 types):
cd x/erc20/types
mockery --name EVMKeeper

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BankKeeper

type BankKeeper struct {
	mock.Mock
}

BankKeeper is an autogenerated mock type for the bankkeeper.Keeper type

func NewKeeper

func NewKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *BankKeeper

NewKeeper creates a new instance of BankKeeper. 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 (*BankKeeper) AllBalances

AllBalances provides a mock function with given fields: _a0, _a1

func (*BankKeeper) Balance

Balance provides a mock function with given fields: _a0, _a1

func (*BankKeeper) BlockedAddr

func (_m *BankKeeper) BlockedAddr(addr cosmos_sdktypes.AccAddress) bool

BlockedAddr provides a mock function with given fields: addr

func (*BankKeeper) BurnCoins

func (_m *BankKeeper) BurnCoins(ctx cosmos_sdktypes.Context, moduleName string, amt cosmos_sdktypes.Coins) error

BurnCoins provides a mock function with given fields: ctx, moduleName, amt

func (*BankKeeper) DelegateCoins

func (_m *BankKeeper) DelegateCoins(ctx cosmos_sdktypes.Context, delegatorAddr cosmos_sdktypes.AccAddress, moduleAccAddr cosmos_sdktypes.AccAddress, amt cosmos_sdktypes.Coins) error

DelegateCoins provides a mock function with given fields: ctx, delegatorAddr, moduleAccAddr, amt

func (*BankKeeper) DelegateCoinsFromAccountToModule

func (_m *BankKeeper) DelegateCoinsFromAccountToModule(ctx cosmos_sdktypes.Context, senderAddr cosmos_sdktypes.AccAddress, recipientModule string, amt cosmos_sdktypes.Coins) error

DelegateCoinsFromAccountToModule provides a mock function with given fields: ctx, senderAddr, recipientModule, amt

func (*BankKeeper) DeleteSendEnabled

func (_m *BankKeeper) DeleteSendEnabled(ctx cosmos_sdktypes.Context, denoms ...string)

DeleteSendEnabled provides a mock function with given fields: ctx, denoms

func (*BankKeeper) DenomMetadata

DenomMetadata provides a mock function with given fields: _a0, _a1

func (*BankKeeper) DenomOwners

DenomOwners provides a mock function with given fields: _a0, _a1

func (*BankKeeper) DenomsMetadata

DenomsMetadata provides a mock function with given fields: _a0, _a1

func (*BankKeeper) ExportGenesis

func (_m *BankKeeper) ExportGenesis(_a0 cosmos_sdktypes.Context) *types.GenesisState

ExportGenesis provides a mock function with given fields: _a0

func (*BankKeeper) GetAccountsBalances

func (_m *BankKeeper) GetAccountsBalances(ctx cosmos_sdktypes.Context) []types.Balance

GetAccountsBalances provides a mock function with given fields: ctx

func (*BankKeeper) GetAllBalances

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

func (*BankKeeper) GetAllDenomMetaData

func (_m *BankKeeper) GetAllDenomMetaData(ctx cosmos_sdktypes.Context) []types.Metadata

GetAllDenomMetaData provides a mock function with given fields: ctx

func (*BankKeeper) GetAllSendEnabledEntries

func (_m *BankKeeper) GetAllSendEnabledEntries(ctx cosmos_sdktypes.Context) []types.SendEnabled

GetAllSendEnabledEntries provides a mock function with given fields: ctx

func (*BankKeeper) GetAuthority

func (_m *BankKeeper) GetAuthority() string

GetAuthority provides a mock function with given fields:

func (*BankKeeper) GetBalance

GetBalance provides a mock function with given fields: ctx, addr, denom

func (*BankKeeper) GetBlockedAddresses

func (_m *BankKeeper) GetBlockedAddresses() map[string]bool

GetBlockedAddresses provides a mock function with given fields:

func (*BankKeeper) GetDenomMetaData

func (_m *BankKeeper) GetDenomMetaData(ctx cosmos_sdktypes.Context, denom string) (types.Metadata, bool)

GetDenomMetaData provides a mock function with given fields: ctx, denom

func (*BankKeeper) GetPaginatedTotalSupply

func (_m *BankKeeper) GetPaginatedTotalSupply(ctx cosmos_sdktypes.Context, pagination *query.PageRequest) (cosmos_sdktypes.Coins, *query.PageResponse, error)

GetPaginatedTotalSupply provides a mock function with given fields: ctx, pagination

func (*BankKeeper) GetParams

func (_m *BankKeeper) GetParams(ctx cosmos_sdktypes.Context) types.Params

GetParams provides a mock function with given fields: ctx

func (*BankKeeper) GetSendEnabledEntry

func (_m *BankKeeper) GetSendEnabledEntry(ctx cosmos_sdktypes.Context, denom string) (types.SendEnabled, bool)

GetSendEnabledEntry provides a mock function with given fields: ctx, denom

func (*BankKeeper) GetSupply

func (_m *BankKeeper) GetSupply(ctx cosmos_sdktypes.Context, denom string) cosmos_sdktypes.Coin

GetSupply provides a mock function with given fields: ctx, denom

func (*BankKeeper) HasBalance

HasBalance provides a mock function with given fields: ctx, addr, amt

func (*BankKeeper) HasDenomMetaData

func (_m *BankKeeper) HasDenomMetaData(ctx cosmos_sdktypes.Context, denom string) bool

HasDenomMetaData provides a mock function with given fields: ctx, denom

func (*BankKeeper) HasSupply

func (_m *BankKeeper) HasSupply(ctx cosmos_sdktypes.Context, denom string) bool

HasSupply provides a mock function with given fields: ctx, denom

func (*BankKeeper) InitGenesis

func (_m *BankKeeper) InitGenesis(_a0 cosmos_sdktypes.Context, _a1 *types.GenesisState)

InitGenesis provides a mock function with given fields: _a0, _a1

func (*BankKeeper) InputOutputCoins

func (_m *BankKeeper) InputOutputCoins(ctx cosmos_sdktypes.Context, inputs []types.Input, outputs []types.Output) error

InputOutputCoins provides a mock function with given fields: ctx, inputs, outputs

func (*BankKeeper) IsSendEnabledCoin

func (_m *BankKeeper) IsSendEnabledCoin(ctx cosmos_sdktypes.Context, coin cosmos_sdktypes.Coin) bool

IsSendEnabledCoin provides a mock function with given fields: ctx, coin

func (*BankKeeper) IsSendEnabledCoins

func (_m *BankKeeper) IsSendEnabledCoins(ctx cosmos_sdktypes.Context, coins ...cosmos_sdktypes.Coin) error

IsSendEnabledCoins provides a mock function with given fields: ctx, coins

func (*BankKeeper) IsSendEnabledDenom

func (_m *BankKeeper) IsSendEnabledDenom(ctx cosmos_sdktypes.Context, denom string) bool

IsSendEnabledDenom provides a mock function with given fields: ctx, denom

func (*BankKeeper) IterateAccountBalances

func (_m *BankKeeper) IterateAccountBalances(ctx cosmos_sdktypes.Context, addr cosmos_sdktypes.AccAddress, cb func(cosmos_sdktypes.Coin) bool)

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

func (*BankKeeper) IterateAllBalances

func (_m *BankKeeper) IterateAllBalances(ctx cosmos_sdktypes.Context, cb func(cosmos_sdktypes.AccAddress, cosmos_sdktypes.Coin) bool)

IterateAllBalances provides a mock function with given fields: ctx, cb

func (*BankKeeper) IterateAllDenomMetaData

func (_m *BankKeeper) IterateAllDenomMetaData(ctx cosmos_sdktypes.Context, cb func(types.Metadata) bool)

IterateAllDenomMetaData provides a mock function with given fields: ctx, cb

func (*BankKeeper) IterateSendEnabledEntries

func (_m *BankKeeper) IterateSendEnabledEntries(ctx cosmos_sdktypes.Context, cb func(string, bool) bool)

IterateSendEnabledEntries provides a mock function with given fields: ctx, cb

func (*BankKeeper) IterateTotalSupply

func (_m *BankKeeper) IterateTotalSupply(ctx cosmos_sdktypes.Context, cb func(cosmos_sdktypes.Coin) bool)

IterateTotalSupply provides a mock function with given fields: ctx, cb

func (*BankKeeper) LockedCoins

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

func (*BankKeeper) MintCoins

func (_m *BankKeeper) MintCoins(ctx cosmos_sdktypes.Context, moduleName string, amt cosmos_sdktypes.Coins) error

MintCoins provides a mock function with given fields: ctx, moduleName, amt

func (*BankKeeper) Params

Params provides a mock function with given fields: _a0, _a1

func (*BankKeeper) SendCoins

SendCoins provides a mock function with given fields: ctx, fromAddr, toAddr, amt

func (*BankKeeper) SendCoinsFromAccountToModule

func (_m *BankKeeper) SendCoinsFromAccountToModule(ctx cosmos_sdktypes.Context, senderAddr cosmos_sdktypes.AccAddress, recipientModule string, amt cosmos_sdktypes.Coins) error

SendCoinsFromAccountToModule provides a mock function with given fields: ctx, senderAddr, recipientModule, amt

func (*BankKeeper) SendCoinsFromModuleToAccount

func (_m *BankKeeper) SendCoinsFromModuleToAccount(ctx cosmos_sdktypes.Context, senderModule string, recipientAddr cosmos_sdktypes.AccAddress, amt cosmos_sdktypes.Coins) error

SendCoinsFromModuleToAccount provides a mock function with given fields: ctx, senderModule, recipientAddr, amt

func (*BankKeeper) SendCoinsFromModuleToModule

func (_m *BankKeeper) SendCoinsFromModuleToModule(ctx cosmos_sdktypes.Context, senderModule string, recipientModule string, amt cosmos_sdktypes.Coins) error

SendCoinsFromModuleToModule provides a mock function with given fields: ctx, senderModule, recipientModule, amt

func (*BankKeeper) SendEnabled

SendEnabled provides a mock function with given fields: _a0, _a1

func (*BankKeeper) SetAllSendEnabled

func (_m *BankKeeper) SetAllSendEnabled(ctx cosmos_sdktypes.Context, sendEnableds []*types.SendEnabled)

SetAllSendEnabled provides a mock function with given fields: ctx, sendEnableds

func (*BankKeeper) SetDenomMetaData

func (_m *BankKeeper) SetDenomMetaData(ctx cosmos_sdktypes.Context, denomMetaData types.Metadata)

SetDenomMetaData provides a mock function with given fields: ctx, denomMetaData

func (*BankKeeper) SetParams

func (_m *BankKeeper) SetParams(ctx cosmos_sdktypes.Context, params types.Params) error

SetParams provides a mock function with given fields: ctx, params

func (*BankKeeper) SetSendEnabled

func (_m *BankKeeper) SetSendEnabled(ctx cosmos_sdktypes.Context, denom string, value bool)

SetSendEnabled provides a mock function with given fields: ctx, denom, value

func (*BankKeeper) SpendableBalanceByDenom

SpendableBalanceByDenom provides a mock function with given fields: _a0, _a1

func (*BankKeeper) SpendableBalances

SpendableBalances provides a mock function with given fields: _a0, _a1

func (*BankKeeper) SpendableCoin

SpendableCoin provides a mock function with given fields: ctx, addr, denom

func (*BankKeeper) SpendableCoins

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

func (*BankKeeper) SupplyOf

SupplyOf provides a mock function with given fields: _a0, _a1

func (*BankKeeper) TotalSupply

TotalSupply provides a mock function with given fields: _a0, _a1

func (*BankKeeper) UndelegateCoins

func (_m *BankKeeper) UndelegateCoins(ctx cosmos_sdktypes.Context, moduleAccAddr cosmos_sdktypes.AccAddress, delegatorAddr cosmos_sdktypes.AccAddress, amt cosmos_sdktypes.Coins) error

UndelegateCoins provides a mock function with given fields: ctx, moduleAccAddr, delegatorAddr, amt

func (*BankKeeper) UndelegateCoinsFromModuleToAccount

func (_m *BankKeeper) UndelegateCoinsFromModuleToAccount(ctx cosmos_sdktypes.Context, senderModule string, recipientAddr cosmos_sdktypes.AccAddress, amt cosmos_sdktypes.Coins) error

UndelegateCoinsFromModuleToAccount provides a mock function with given fields: ctx, senderModule, recipientAddr, amt

func (*BankKeeper) ValidateBalance

func (_m *BankKeeper) ValidateBalance(ctx cosmos_sdktypes.Context, addr cosmos_sdktypes.AccAddress) error

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

func (*BankKeeper) WithMintCoinsRestriction

func (_m *BankKeeper) WithMintCoinsRestriction(_a0 keeper.MintingRestrictionFn) keeper.BaseKeeper

WithMintCoinsRestriction provides a mock function with given fields: _a0

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) AddEVMExtensions

func (_m *EVMKeeper) AddEVMExtensions(ctx types.Context, precompiles ...vm.PrecompiledContract) error

AddEVMExtensions provides a mock function with given fields: ctx, precompiles

func (*EVMKeeper) ApplyMessage

func (_m *EVMKeeper) ApplyMessage(ctx types.Context, msg core.Message, tracer vm.EVMLogger, commit bool) (*evmtypes.MsgEthereumTxResponse, error)

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

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) EstimateGasInternal

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

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

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) GetParams

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

GetParams provides a mock function with given fields: ctx

func (*EVMKeeper) IsAvailablePrecompile

func (_m *EVMKeeper) IsAvailablePrecompile(addr common.Address) bool

IsAvailablePrecompile provides a mock function with given fields: addr

Jump to

Keyboard shortcuts

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