keeper

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthzKeeper

type AuthzKeeper struct {
	mock.Mock
}

AuthzKeeper is an autogenerated mock type for the AuthzKeeper type

func NewAuthzKeeper

func NewAuthzKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthzKeeper

NewAuthzKeeper creates a new instance of AuthzKeeper. 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 (*AuthzKeeper) DeleteGrant

func (_mock *AuthzKeeper) DeleteGrant(ctx context.Context, grantee types.AccAddress, granter types.AccAddress, msgType string) error

DeleteGrant provides a mock function for the type AuthzKeeper

func (*AuthzKeeper) EXPECT

func (_m *AuthzKeeper) EXPECT() *AuthzKeeper_Expecter

func (*AuthzKeeper) GetAuthorization

func (_mock *AuthzKeeper) GetAuthorization(ctx context.Context, grantee types.AccAddress, granter types.AccAddress, msgType string) (authz.Authorization, *time.Time)

GetAuthorization provides a mock function for the type AuthzKeeper

func (*AuthzKeeper) GetGranteeGrantsByMsgType

func (_mock *AuthzKeeper) GetGranteeGrantsByMsgType(ctx context.Context, grantee types.AccAddress, msgType string, onGrant keeper.OnGrantFn)

GetGranteeGrantsByMsgType provides a mock function for the type AuthzKeeper

func (*AuthzKeeper) IterateGrants

func (_mock *AuthzKeeper) IterateGrants(ctx context.Context, handler func(granterAddr types.AccAddress, granteeAddr types.AccAddress, grant authz.Grant) bool)

IterateGrants provides a mock function for the type AuthzKeeper

func (*AuthzKeeper) SaveGrant

func (_mock *AuthzKeeper) SaveGrant(ctx context.Context, grantee types.AccAddress, granter types.AccAddress, authorization authz.Authorization, expiration *time.Time) error

SaveGrant provides a mock function for the type AuthzKeeper

type AuthzKeeper_DeleteGrant_Call

type AuthzKeeper_DeleteGrant_Call struct {
	*mock.Call
}

AuthzKeeper_DeleteGrant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteGrant'

func (*AuthzKeeper_DeleteGrant_Call) Return

func (*AuthzKeeper_DeleteGrant_Call) Run

func (*AuthzKeeper_DeleteGrant_Call) RunAndReturn

func (_c *AuthzKeeper_DeleteGrant_Call) RunAndReturn(run func(ctx context.Context, grantee types.AccAddress, granter types.AccAddress, msgType string) error) *AuthzKeeper_DeleteGrant_Call

type AuthzKeeper_Expecter

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

func (*AuthzKeeper_Expecter) DeleteGrant

func (_e *AuthzKeeper_Expecter) DeleteGrant(ctx interface{}, grantee interface{}, granter interface{}, msgType interface{}) *AuthzKeeper_DeleteGrant_Call

DeleteGrant is a helper method to define mock.On call

  • ctx context.Context
  • grantee types.AccAddress
  • granter types.AccAddress
  • msgType string

func (*AuthzKeeper_Expecter) GetAuthorization

func (_e *AuthzKeeper_Expecter) GetAuthorization(ctx interface{}, grantee interface{}, granter interface{}, msgType interface{}) *AuthzKeeper_GetAuthorization_Call

GetAuthorization is a helper method to define mock.On call

  • ctx context.Context
  • grantee types.AccAddress
  • granter types.AccAddress
  • msgType string

func (*AuthzKeeper_Expecter) GetGranteeGrantsByMsgType

func (_e *AuthzKeeper_Expecter) GetGranteeGrantsByMsgType(ctx interface{}, grantee interface{}, msgType interface{}, onGrant interface{}) *AuthzKeeper_GetGranteeGrantsByMsgType_Call

GetGranteeGrantsByMsgType is a helper method to define mock.On call

  • ctx context.Context
  • grantee types.AccAddress
  • msgType string
  • onGrant keeper.OnGrantFn

func (*AuthzKeeper_Expecter) IterateGrants

func (_e *AuthzKeeper_Expecter) IterateGrants(ctx interface{}, handler interface{}) *AuthzKeeper_IterateGrants_Call

IterateGrants is a helper method to define mock.On call

  • ctx context.Context
  • handler func(granterAddr types.AccAddress, granteeAddr types.AccAddress, grant authz.Grant) bool

func (*AuthzKeeper_Expecter) SaveGrant

func (_e *AuthzKeeper_Expecter) SaveGrant(ctx interface{}, grantee interface{}, granter interface{}, authorization interface{}, expiration interface{}) *AuthzKeeper_SaveGrant_Call

SaveGrant is a helper method to define mock.On call

  • ctx context.Context
  • grantee types.AccAddress
  • granter types.AccAddress
  • authorization authz.Authorization
  • expiration *time.Time

type AuthzKeeper_GetAuthorization_Call

type AuthzKeeper_GetAuthorization_Call struct {
	*mock.Call
}

AuthzKeeper_GetAuthorization_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAuthorization'

func (*AuthzKeeper_GetAuthorization_Call) Return

func (*AuthzKeeper_GetAuthorization_Call) Run

func (*AuthzKeeper_GetAuthorization_Call) RunAndReturn

type AuthzKeeper_GetGranteeGrantsByMsgType_Call

type AuthzKeeper_GetGranteeGrantsByMsgType_Call struct {
	*mock.Call
}

AuthzKeeper_GetGranteeGrantsByMsgType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGranteeGrantsByMsgType'

func (*AuthzKeeper_GetGranteeGrantsByMsgType_Call) Return

func (*AuthzKeeper_GetGranteeGrantsByMsgType_Call) Run

func (*AuthzKeeper_GetGranteeGrantsByMsgType_Call) RunAndReturn

type AuthzKeeper_IterateGrants_Call

type AuthzKeeper_IterateGrants_Call struct {
	*mock.Call
}

AuthzKeeper_IterateGrants_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IterateGrants'

func (*AuthzKeeper_IterateGrants_Call) Return

func (*AuthzKeeper_IterateGrants_Call) Run

func (_c *AuthzKeeper_IterateGrants_Call) Run(run func(ctx context.Context, handler func(granterAddr types.AccAddress, granteeAddr types.AccAddress, grant authz.Grant) bool)) *AuthzKeeper_IterateGrants_Call

func (*AuthzKeeper_IterateGrants_Call) RunAndReturn

func (_c *AuthzKeeper_IterateGrants_Call) RunAndReturn(run func(ctx context.Context, handler func(granterAddr types.AccAddress, granteeAddr types.AccAddress, grant authz.Grant) bool)) *AuthzKeeper_IterateGrants_Call

type AuthzKeeper_SaveGrant_Call

type AuthzKeeper_SaveGrant_Call struct {
	*mock.Call
}

AuthzKeeper_SaveGrant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveGrant'

func (*AuthzKeeper_SaveGrant_Call) Return

func (*AuthzKeeper_SaveGrant_Call) Run

func (_c *AuthzKeeper_SaveGrant_Call) Run(run func(ctx context.Context, grantee types.AccAddress, granter types.AccAddress, authorization authz.Authorization, expiration *time.Time)) *AuthzKeeper_SaveGrant_Call

func (*AuthzKeeper_SaveGrant_Call) RunAndReturn

func (_c *AuthzKeeper_SaveGrant_Call) RunAndReturn(run func(ctx context.Context, grantee types.AccAddress, granter types.AccAddress, authorization authz.Authorization, expiration *time.Time) error) *AuthzKeeper_SaveGrant_Call

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

func (_m *BankKeeper) EXPECT() *BankKeeper_Expecter

func (*BankKeeper) SendCoinsFromAccountToModule

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

SendCoinsFromAccountToModule provides a mock function for the type BankKeeper

func (*BankKeeper) SendCoinsFromModuleToAccount

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

SendCoinsFromModuleToAccount provides a mock function for the type BankKeeper

func (*BankKeeper) SendCoinsFromModuleToModule

func (_mock *BankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderModule string, recipientModule string, amt types.Coins) error

SendCoinsFromModuleToModule provides a mock function for the type BankKeeper

func (*BankKeeper) SpendableCoin

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

SpendableCoin provides a mock function for the type BankKeeper

func (*BankKeeper) SpendableCoins

func (_mock *BankKeeper) SpendableCoins(ctx context.Context, addr types.AccAddress) types.Coins

SpendableCoins provides a mock function for the type BankKeeper

type BankKeeper_Expecter

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

func (*BankKeeper_Expecter) SendCoinsFromAccountToModule

func (_e *BankKeeper_Expecter) SendCoinsFromAccountToModule(ctx interface{}, senderAddr interface{}, recipientModule interface{}, amt interface{}) *BankKeeper_SendCoinsFromAccountToModule_Call

SendCoinsFromAccountToModule is a helper method to define mock.On call

  • ctx context.Context
  • senderAddr types.AccAddress
  • recipientModule string
  • amt types.Coins

func (*BankKeeper_Expecter) SendCoinsFromModuleToAccount

func (_e *BankKeeper_Expecter) SendCoinsFromModuleToAccount(ctx interface{}, senderModule interface{}, recipientAddr interface{}, amt interface{}) *BankKeeper_SendCoinsFromModuleToAccount_Call

SendCoinsFromModuleToAccount is a helper method to define mock.On call

  • ctx context.Context
  • senderModule string
  • recipientAddr types.AccAddress
  • amt types.Coins

func (*BankKeeper_Expecter) SendCoinsFromModuleToModule

func (_e *BankKeeper_Expecter) SendCoinsFromModuleToModule(ctx interface{}, senderModule interface{}, recipientModule interface{}, amt interface{}) *BankKeeper_SendCoinsFromModuleToModule_Call

SendCoinsFromModuleToModule is a helper method to define mock.On call

  • ctx context.Context
  • senderModule string
  • recipientModule string
  • amt types.Coins

func (*BankKeeper_Expecter) SpendableCoin

func (_e *BankKeeper_Expecter) SpendableCoin(ctx interface{}, addr interface{}, denom interface{}) *BankKeeper_SpendableCoin_Call

SpendableCoin is a helper method to define mock.On call

  • ctx context.Context
  • addr types.AccAddress
  • denom string

func (*BankKeeper_Expecter) SpendableCoins

func (_e *BankKeeper_Expecter) SpendableCoins(ctx interface{}, addr interface{}) *BankKeeper_SpendableCoins_Call

SpendableCoins is a helper method to define mock.On call

  • ctx context.Context
  • addr types.AccAddress

type BankKeeper_SendCoinsFromAccountToModule_Call

type BankKeeper_SendCoinsFromAccountToModule_Call struct {
	*mock.Call
}

BankKeeper_SendCoinsFromAccountToModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoinsFromAccountToModule'

func (*BankKeeper_SendCoinsFromAccountToModule_Call) Return

func (*BankKeeper_SendCoinsFromAccountToModule_Call) Run

func (*BankKeeper_SendCoinsFromAccountToModule_Call) RunAndReturn

type BankKeeper_SendCoinsFromModuleToAccount_Call

type BankKeeper_SendCoinsFromModuleToAccount_Call struct {
	*mock.Call
}

BankKeeper_SendCoinsFromModuleToAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoinsFromModuleToAccount'

func (*BankKeeper_SendCoinsFromModuleToAccount_Call) Return

func (*BankKeeper_SendCoinsFromModuleToAccount_Call) Run

func (*BankKeeper_SendCoinsFromModuleToAccount_Call) RunAndReturn

type BankKeeper_SendCoinsFromModuleToModule_Call

type BankKeeper_SendCoinsFromModuleToModule_Call struct {
	*mock.Call
}

BankKeeper_SendCoinsFromModuleToModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoinsFromModuleToModule'

func (*BankKeeper_SendCoinsFromModuleToModule_Call) Return

func (*BankKeeper_SendCoinsFromModuleToModule_Call) Run

func (*BankKeeper_SendCoinsFromModuleToModule_Call) RunAndReturn

func (_c *BankKeeper_SendCoinsFromModuleToModule_Call) RunAndReturn(run func(ctx context.Context, senderModule string, recipientModule string, amt types.Coins) error) *BankKeeper_SendCoinsFromModuleToModule_Call

type BankKeeper_SpendableCoin_Call

type BankKeeper_SpendableCoin_Call struct {
	*mock.Call
}

BankKeeper_SpendableCoin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SpendableCoin'

func (*BankKeeper_SpendableCoin_Call) Return

func (*BankKeeper_SpendableCoin_Call) Run

func (*BankKeeper_SpendableCoin_Call) RunAndReturn

type BankKeeper_SpendableCoins_Call

type BankKeeper_SpendableCoins_Call struct {
	*mock.Call
}

BankKeeper_SpendableCoins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SpendableCoins'

func (*BankKeeper_SpendableCoins_Call) Return

func (*BankKeeper_SpendableCoins_Call) Run

func (*BankKeeper_SpendableCoins_Call) RunAndReturn

type TakeKeeper

type TakeKeeper struct {
	mock.Mock
}

TakeKeeper is an autogenerated mock type for the TakeKeeper type

func NewTakeKeeper

func NewTakeKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *TakeKeeper

NewTakeKeeper creates a new instance of TakeKeeper. 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 (*TakeKeeper) EXPECT

func (_m *TakeKeeper) EXPECT() *TakeKeeper_Expecter

func (*TakeKeeper) SubtractFees

func (_mock *TakeKeeper) SubtractFees(ctx types.Context, amt types.Coin) (types.Coin, types.Coin, error)

SubtractFees provides a mock function for the type TakeKeeper

type TakeKeeper_Expecter

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

func (*TakeKeeper_Expecter) SubtractFees

func (_e *TakeKeeper_Expecter) SubtractFees(ctx interface{}, amt interface{}) *TakeKeeper_SubtractFees_Call

SubtractFees is a helper method to define mock.On call

  • ctx types.Context
  • amt types.Coin

type TakeKeeper_SubtractFees_Call

type TakeKeeper_SubtractFees_Call struct {
	*mock.Call
}

TakeKeeper_SubtractFees_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubtractFees'

func (*TakeKeeper_SubtractFees_Call) Return

func (*TakeKeeper_SubtractFees_Call) Run

func (*TakeKeeper_SubtractFees_Call) RunAndReturn

Jump to

Keyboard shortcuts

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