mocks

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountKeeper

type AccountKeeper struct {
	mock.Mock
}

AccountKeeper is an autogenerated mock type for the AccountKeeper type

func NewAccountKeeper

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

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

AddressCodec provides a mock function with given fields:

func (*AccountKeeper) GetAccount

func (_m *AccountKeeper) GetAccount(ctx context.Context, addr types.AccAddress) types.AccountI

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

func (*AccountKeeper) GetModuleAccount

func (_m *AccountKeeper) GetModuleAccount(ctx context.Context, name string) types.ModuleAccountI

GetModuleAccount provides a mock function with given fields: ctx, name

func (*AccountKeeper) GetModuleAddress

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

GetModuleAddress provides a mock function with given fields: moduleName

func (*AccountKeeper) GetParams

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

GetParams provides a mock function with given fields: ctx

func (*AccountKeeper) NewAccountWithAddress

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

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

func (*AccountKeeper) SetAccount

func (_m *AccountKeeper) SetAccount(ctx context.Context, acc types.AccountI)

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

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 added in v1.1.1

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

func (*BankKeeper) AppendSendRestriction added in v1.1.1

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

AppendSendRestriction provides a mock function with given fields: restriction

func (*BankKeeper) Balance added in v1.1.1

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

func (*BankKeeper) BlockedAddr added in v1.1.1

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

BlockedAddr provides a mock function with given fields: addr

func (*BankKeeper) BurnCoins added in v1.1.1

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 added in v1.1.1

func (_m *BankKeeper) ClearSendRestriction()

ClearSendRestriction provides a mock function with given fields:

func (*BankKeeper) DelegateCoins added in v1.1.1

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 added in v1.1.1

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 added in v1.1.1

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

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

func (*BankKeeper) DenomMetadata added in v1.1.1

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

func (*BankKeeper) DenomMetadataByQueryString added in v1.1.1

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

func (*BankKeeper) DenomOwners added in v1.1.1

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

func (*BankKeeper) DenomOwnersByQuery added in v1.1.1

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

func (*BankKeeper) DenomsMetadata added in v1.1.1

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

func (*BankKeeper) ExportGenesis added in v1.1.1

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

ExportGenesis provides a mock function with given fields: _a0

func (*BankKeeper) GetAccountsBalances added in v1.1.1

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

GetAccountsBalances provides a mock function with given fields: ctx

func (*BankKeeper) GetAllBalances added in v1.1.1

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

func (*BankKeeper) GetAllDenomMetaData added in v1.1.1

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

GetAllDenomMetaData provides a mock function with given fields: ctx

func (*BankKeeper) GetAllSendEnabledEntries added in v1.1.1

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

GetAllSendEnabledEntries provides a mock function with given fields: ctx

func (*BankKeeper) GetAuthority added in v1.1.1

func (_m *BankKeeper) GetAuthority() string

GetAuthority provides a mock function with given fields:

func (*BankKeeper) GetBalance added in v1.1.1

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

func (*BankKeeper) GetBlockedAddresses added in v1.1.1

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

GetBlockedAddresses provides a mock function with given fields:

func (*BankKeeper) GetDenomMetaData added in v1.1.1

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 added in v1.1.1

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 added in v1.1.1

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

GetParams provides a mock function with given fields: ctx

func (*BankKeeper) GetSendEnabledEntry added in v1.1.1

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 added in v1.1.1

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 added in v1.1.1

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

func (*BankKeeper) HasDenomMetaData added in v1.1.1

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

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

func (*BankKeeper) HasSupply added in v1.1.1

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

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

func (*BankKeeper) InitGenesis added in v1.1.1

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

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

func (*BankKeeper) InputOutputCoins added in v1.1.1

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 added in v1.1.1

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 added in v1.1.1

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

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

func (*BankKeeper) IterateAccountBalances added in v1.1.1

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 added in v1.1.1

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 added in v1.1.1

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 added in v1.1.1

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 added in v1.1.1

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 added in v1.1.1

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

func (*BankKeeper) MintCoins added in v1.1.1

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 added in v1.1.1

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

func (*BankKeeper) PrependSendRestriction added in v1.1.1

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.1

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

func (*BankKeeper) SetAllSendEnabled added in v1.1.1

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

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

func (*BankKeeper) SetDenomMetaData added in v1.1.1

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

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

func (*BankKeeper) SetParams added in v1.1.1

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

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

func (*BankKeeper) SetSendEnabled added in v1.1.1

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 added in v1.1.1

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

func (*BankKeeper) SpendableBalances added in v1.1.1

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

func (*BankKeeper) SpendableCoin added in v1.1.1

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 added in v1.1.1

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

func (*BankKeeper) SupplyOf added in v1.1.1

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

func (*BankKeeper) TotalSupply added in v1.1.1

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

func (*BankKeeper) UndelegateCoins added in v1.1.1

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 added in v1.1.1

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 added in v1.1.1

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 added in v1.1.1

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

WithMintCoinsRestriction provides a mock function with given fields: _a0

type FeeGrantKeeper

type FeeGrantKeeper struct {
	mock.Mock
}

FeeGrantKeeper is an autogenerated mock type for the FeeGrantKeeper type

func NewFeeGrantKeeper

func NewFeeGrantKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *FeeGrantKeeper

NewFeeGrantKeeper creates a new instance of FeeGrantKeeper. 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 (*FeeGrantKeeper) UseGrantedFees

func (_m *FeeGrantKeeper) UseGrantedFees(ctx context.Context, granter types.AccAddress, grantee types.AccAddress, fee types.Coins, msgs []proto.Message) error

UseGrantedFees provides a mock function with given fields: ctx, granter, grantee, fee, msgs

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