mocks

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

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 type

func NewBankKeeper

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

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

func (*BankKeeper) AppendSendRestriction

func (_m *BankKeeper) AppendSendRestriction(restriction types.SendRestrictionFn)

AppendSendRestriction provides a mock function with given fields: restriction

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 context.Context, moduleName string, amt cosmos_sdktypes.Coins) error

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

func (*BankKeeper) ClearSendRestriction

func (_m *BankKeeper) ClearSendRestriction()

ClearSendRestriction provides a mock function with given fields:

func (*BankKeeper) DelegateCoins

func (_m *BankKeeper) DelegateCoins(ctx context.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 context.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 context.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) DenomMetadataByQueryString

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

func (*BankKeeper) DenomOwners

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

func (*BankKeeper) DenomOwnersByQuery

DenomOwnersByQuery 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 context.Context) *types.GenesisState

ExportGenesis provides a mock function with given fields: _a0

func (*BankKeeper) GetAccountsBalances

func (_m *BankKeeper) GetAccountsBalances(ctx context.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 context.Context) []types.Metadata

GetAllDenomMetaData provides a mock function with given fields: ctx

func (*BankKeeper) GetAllSendEnabledEntries

func (_m *BankKeeper) GetAllSendEnabledEntries(ctx context.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 context.Context, denom string) (types.Metadata, bool)

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

func (*BankKeeper) GetPaginatedTotalSupply

func (_m *BankKeeper) GetPaginatedTotalSupply(ctx context.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 context.Context) types.Params

GetParams provides a mock function with given fields: ctx

func (*BankKeeper) GetSendEnabledEntry

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

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

func (*BankKeeper) GetSupply

func (_m *BankKeeper) GetSupply(ctx context.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 context.Context, denom string) bool

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

func (*BankKeeper) HasSupply

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

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

func (*BankKeeper) InitGenesis

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

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

func (*BankKeeper) InputOutputCoins

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

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

func (*BankKeeper) IsSendEnabledCoin

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

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

func (*BankKeeper) IsSendEnabledCoins

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

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

func (*BankKeeper) IsSendEnabledDenom

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

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

func (*BankKeeper) IterateAccountBalances

func (_m *BankKeeper) IterateAccountBalances(ctx context.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 context.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 context.Context, cb func(types.Metadata) bool)

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

func (*BankKeeper) IterateSendEnabledEntries

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

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

func (*BankKeeper) IterateTotalSupply

func (_m *BankKeeper) IterateTotalSupply(ctx context.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 context.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) PrependSendRestriction

func (_m *BankKeeper) PrependSendRestriction(restriction types.SendRestrictionFn)

PrependSendRestriction provides a mock function with given fields: restriction

func (*BankKeeper) SendCoins

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

func (*BankKeeper) SendCoinsFromAccountToModule

func (_m *BankKeeper) SendCoinsFromAccountToModule(ctx context.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 context.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 context.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 context.Context, sendEnableds []*types.SendEnabled)

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

func (*BankKeeper) SetDenomMetaData

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

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

func (*BankKeeper) SetParams

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

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

func (*BankKeeper) SetSendEnabled

func (_m *BankKeeper) SetSendEnabled(ctx context.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

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

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 context.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 context.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 context.Context, addr cosmos_sdktypes.AccAddress) error

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

func (*BankKeeper) WithMintCoinsRestriction

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

WithMintCoinsRestriction provides a mock function with given fields: _a0

type FeeMarketKeeper

type FeeMarketKeeper struct {
	mock.Mock
}

FeeMarketKeeper is an autogenerated mock type for the FeeMarketKeeper type

func NewFeeMarketKeeper

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

func (_m *FeeMarketKeeper) GetEnabledHeight(ctx types.Context) (int64, error)

GetEnabledHeight provides a mock function with given fields: ctx

func (*FeeMarketKeeper) GetMinGasPrice

func (_m *FeeMarketKeeper) GetMinGasPrice(ctx types.Context, denom string) (types.DecCoin, error)

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

func (*FeeMarketKeeper) GetParams

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

GetParams provides a mock function with given fields: ctx

func (*FeeMarketKeeper) GetState

func (_m *FeeMarketKeeper) GetState(ctx types.Context) (feemarkettypes.State, error)

GetState provides a mock function with given fields: ctx

func (*FeeMarketKeeper) ResolveToDenom

func (_m *FeeMarketKeeper) ResolveToDenom(ctx types.Context, coin types.DecCoin, denom string) (types.DecCoin, error)

ResolveToDenom provides a mock function with given fields: ctx, coin, denom

func (*FeeMarketKeeper) SetParams

func (_m *FeeMarketKeeper) SetParams(ctx types.Context, params feemarkettypes.Params) error

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

func (*FeeMarketKeeper) SetState

func (_m *FeeMarketKeeper) SetState(ctx types.Context, state feemarkettypes.State) error

SetState provides a mock function with given fields: ctx, state

Jump to

Keyboard shortcuts

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