mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 20 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.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAddress    common.Address = common.BigToAddress(big.NewInt(100))
	EmptyCodeHash                = crypto.Keccak256(nil)
)

Functions

This section is empty.

Types

type Account

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

type AccountKeeper added in v0.4.0

type AccountKeeper struct {
	mock.Mock
}

AccountKeeper is an autogenerated mock type for the AccountKeeper type

func NewAccountKeeper added in v0.4.0

func NewAccountKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *AccountKeeper

NewAccountKeeper creates a new instance of AccountKeeper. 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 (*AccountKeeper) AddressCodec added in v0.4.0

func (_m *AccountKeeper) AddressCodec() address.Codec

AddressCodec provides a mock function with given fields:

func (*AccountKeeper) GetAccount added in v0.4.0

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

func (*AccountKeeper) GetModuleAddress added in v0.4.0

func (_m *AccountKeeper) GetModuleAddress(moduleName string) cosmos_sdktypes.AccAddress

GetModuleAddress provides a mock function with given fields: moduleName

func (*AccountKeeper) GetParams added in v0.4.0

func (_m *AccountKeeper) GetParams(ctx context.Context) authtypes.Params

GetParams provides a mock function with given fields: ctx

func (*AccountKeeper) GetSequence added in v0.4.0

func (_m *AccountKeeper) GetSequence(ctx context.Context, account cosmos_sdktypes.AccAddress) (uint64, error)

GetSequence provides a mock function with given fields: ctx, account

func (*AccountKeeper) HasAccount added in v0.4.0

func (_m *AccountKeeper) HasAccount(ctx context.Context, addr cosmos_sdktypes.AccAddress) bool

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

func (*AccountKeeper) NewAccountWithAddress added in v0.4.0

func (_m *AccountKeeper) NewAccountWithAddress(ctx context.Context, addr cosmos_sdktypes.AccAddress) cosmos_sdktypes.AccountI

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

func (*AccountKeeper) RemoveAccount added in v0.4.0

func (_m *AccountKeeper) RemoveAccount(ctx context.Context, account cosmos_sdktypes.AccountI)

RemoveAccount provides a mock function with given fields: ctx, account

func (*AccountKeeper) RemoveExpiredUnorderedNonces added in v0.4.0

func (_m *AccountKeeper) RemoveExpiredUnorderedNonces(ctx cosmos_sdktypes.Context) error

RemoveExpiredUnorderedNonces provides a mock function with given fields: ctx

func (*AccountKeeper) SetAccount added in v0.4.0

func (_m *AccountKeeper) SetAccount(ctx context.Context, account cosmos_sdktypes.AccountI)

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

func (*AccountKeeper) TryAddUnorderedNonce added in v0.4.0

func (_m *AccountKeeper) TryAddUnorderedNonce(ctx cosmos_sdktypes.Context, sender []byte, timestamp time.Time) error

TryAddUnorderedNonce provides a mock function with given fields: ctx, sender, timestamp

func (*AccountKeeper) UnorderedTransactionsEnabled added in v0.4.0

func (_m *AccountKeeper) UnorderedTransactionsEnabled() bool

UnorderedTransactionsEnabled provides a mock function with given fields:

type BankKeeper added in v0.4.0

type BankKeeper struct {
	mock.Mock
}

BankKeeper is an autogenerated mock type for the BankKeeper type

func NewBankKeeper added in v0.4.0

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

NewBankKeeper 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) BurnCoins added in v0.4.0

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

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

func (*BankKeeper) GetBalance added in v0.4.0

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

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

func (*BankKeeper) GetDenomMetaData added in v0.4.0

func (_m *BankKeeper) GetDenomMetaData(ctx context.Context, denom string) (banktypes.Metadata, bool)

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

func (*BankKeeper) GetSupply added in v0.4.0

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

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

func (*BankKeeper) IsSendEnabledCoins added in v0.4.0

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

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

func (*BankKeeper) IterateAccountBalances added in v0.4.0

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

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

func (*BankKeeper) IterateTotalSupply added in v0.4.0

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

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

func (*BankKeeper) MintCoins added in v0.4.0

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

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

func (*BankKeeper) SendCoins added in v0.4.0

func (_m *BankKeeper) SendCoins(ctx context.Context, from types.AccAddress, to types.AccAddress, amt types.Coins) error

SendCoins provides a mock function with given fields: ctx, from, to, amt

func (*BankKeeper) SendCoinsFromAccountToModule added in v0.4.0

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

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

func (*BankKeeper) SendCoinsFromModuleToAccount added in v0.4.0

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

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

func (*BankKeeper) SetDenomMetaData added in v0.4.0

func (_m *BankKeeper) SetDenomMetaData(ctx context.Context, denomMetaData banktypes.Metadata)

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

func (*BankKeeper) SpendableCoin added in v0.4.0

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

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

type ConsensusParamsKeeper added in v0.4.0

type ConsensusParamsKeeper struct {
	mock.Mock
}

ConsensusParamsKeeper is an autogenerated mock type for the ConsensusParamsKeeper type

func NewConsensusParamsKeeper added in v0.4.0

func NewConsensusParamsKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *ConsensusParamsKeeper

NewConsensusParamsKeeper creates a new instance of ConsensusParamsKeeper. 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 (*ConsensusParamsKeeper) Params added in v0.4.0

Params provides a mock function with given fields: ctx, request

type EVMKeeper

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

func NewEVMKeeper

func NewEVMKeeper() *EVMKeeper

func (EVMKeeper) Clone

func (k EVMKeeper) Clone() *EVMKeeper

func (EVMKeeper) DeleteAccount

func (k EVMKeeper) DeleteAccount(_ sdk.Context, addr common.Address) error

func (EVMKeeper) DeleteCode

func (k EVMKeeper) DeleteCode(_ sdk.Context, codeHash []byte)

func (EVMKeeper) DeleteState

func (k EVMKeeper) DeleteState(_ sdk.Context, addr common.Address, key common.Hash)

func (EVMKeeper) ForEachStorage

func (k EVMKeeper) ForEachStorage(_ sdk.Context, addr common.Address, cb func(key, value common.Hash) bool)

func (EVMKeeper) GetAccount

func (k EVMKeeper) GetAccount(_ sdk.Context, addr common.Address) *statedb.Account

func (EVMKeeper) GetCode

func (k EVMKeeper) GetCode(_ sdk.Context, codeHash common.Hash) []byte

func (EVMKeeper) GetCodeHash added in v0.4.0

func (k EVMKeeper) GetCodeHash(_ sdk.Context, _ common.Address) common.Hash

func (EVMKeeper) GetState

func (k EVMKeeper) GetState(_ sdk.Context, addr common.Address, key common.Hash) common.Hash

func (EVMKeeper) KVStoreKeys

func (k EVMKeeper) KVStoreKeys() map[string]*storetypes.KVStoreKey

func (EVMKeeper) SetAccount

func (k EVMKeeper) SetAccount(_ sdk.Context, addr common.Address, account statedb.Account) error

func (EVMKeeper) SetCode

func (k EVMKeeper) SetCode(_ sdk.Context, codeHash []byte, code []byte)

func (EVMKeeper) SetState

func (k EVMKeeper) SetState(_ sdk.Context, addr common.Address, key common.Hash, value []byte)

type Erc20Keeper added in v0.4.0

type Erc20Keeper struct {
	mock.Mock
}

Erc20Keeper is an autogenerated mock type for the Erc20Keeper type

func NewErc20Keeper added in v0.4.0

func NewErc20Keeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Erc20Keeper

NewErc20Keeper creates a new instance of Erc20Keeper. 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 (*Erc20Keeper) GetERC20PrecompileInstance added in v0.4.0

func (_m *Erc20Keeper) GetERC20PrecompileInstance(ctx types.Context, address common.Address) (vm.PrecompiledContract, bool, error)

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

type FeeMarketKeeper added in v0.4.0

type FeeMarketKeeper struct {
	mock.Mock
}

FeeMarketKeeper is an autogenerated mock type for the FeeMarketKeeper type

func NewFeeMarketKeeper added in v0.4.0

func NewFeeMarketKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *FeeMarketKeeper

NewFeeMarketKeeper creates a new instance of FeeMarketKeeper. 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 (*FeeMarketKeeper) CalculateBaseFee added in v0.4.0

func (_m *FeeMarketKeeper) CalculateBaseFee(ctx types.Context) math.LegacyDec

CalculateBaseFee provides a mock function with given fields: ctx

func (*FeeMarketKeeper) GetBaseFee added in v0.4.0

func (_m *FeeMarketKeeper) GetBaseFee(ctx types.Context) math.LegacyDec

GetBaseFee provides a mock function with given fields: ctx

func (*FeeMarketKeeper) GetParams added in v0.4.0

func (_m *FeeMarketKeeper) GetParams(ctx types.Context) feemarkettypes.Params

GetParams provides a mock function with given fields: ctx

type StakingKeeper added in v0.4.0

type StakingKeeper struct {
	mock.Mock
}

StakingKeeper is an autogenerated mock type for the StakingKeeper type

func NewStakingKeeper added in v0.4.0

func NewStakingKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *StakingKeeper

NewStakingKeeper creates a new instance of StakingKeeper. 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 (*StakingKeeper) BondDenom added in v0.5.0

func (_m *StakingKeeper) BondDenom(ctx context.Context) (string, error)

func (*StakingKeeper) GetHistoricalInfo added in v0.4.0

func (_m *StakingKeeper) GetHistoricalInfo(ctx context.Context, height int64) (types.HistoricalInfo, error)

GetHistoricalInfo provides a mock function with given fields: ctx, height

func (*StakingKeeper) GetValidatorByConsAddr added in v0.4.0

func (_m *StakingKeeper) GetValidatorByConsAddr(ctx context.Context, consAddr cosmos_sdktypes.ConsAddress) (types.Validator, error)

GetValidatorByConsAddr provides a mock function with given fields: ctx, consAddr

func (*StakingKeeper) ValidatorAddressCodec added in v0.4.0

func (_m *StakingKeeper) ValidatorAddressCodec() address.Codec

ValidatorAddressCodec provides a mock function with given fields:

Jump to

Keyboard shortcuts

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