mocks

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PendingOfferLister

type PendingOfferLister struct {
	mock.Mock
}

PendingOfferLister is an autogenerated mock type for the PendingOfferLister type

func NewPendingOfferLister

func NewPendingOfferLister(t interface {
	mock.TestingT
	Cleanup(func())
}) *PendingOfferLister

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

func (*PendingOfferLister) GetPendingOffersForParty

func (_m *PendingOfferLister) GetPendingOffersForParty(ctx context.Context, partyID string, p indexer.Pagination) (*indexer.Page[indexer.PendingOffer], error)

GetPendingOffersForParty provides a mock function with given fields: ctx, partyID, p

type PendingOfferLister_Expecter

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

func (*PendingOfferLister_Expecter) GetPendingOffersForParty

func (_e *PendingOfferLister_Expecter) GetPendingOffersForParty(ctx interface{}, partyID interface{}, p interface{}) *PendingOfferLister_GetPendingOffersForParty_Call

GetPendingOffersForParty is a helper method to define mock.On call

  • ctx context.Context
  • partyID string
  • p indexer.Pagination

type PendingOfferLister_GetPendingOffersForParty_Call

type PendingOfferLister_GetPendingOffersForParty_Call struct {
	*mock.Call
}

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

func (*PendingOfferLister_GetPendingOffersForParty_Call) Return

func (*PendingOfferLister_GetPendingOffersForParty_Call) Run

type Token

type Token struct {
	mock.Mock
}

Token is an autogenerated mock type for the Token type

func NewToken

func NewToken(t interface {
	mock.TestingT
	Cleanup(func())
}) *Token

NewToken creates a new instance of Token. 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 (*Token) AcceptTransferInstruction

func (_m *Token) AcceptTransferInstruction(ctx context.Context, partyID string, instructionCID string, instrumentAdmin string) error

AcceptTransferInstruction provides a mock function with given fields: ctx, partyID, instructionCID, instrumentAdmin

func (*Token) Burn

func (_m *Token) Burn(ctx context.Context, req *token.BurnRequest) error

Burn provides a mock function with given fields: ctx, req

func (*Token) EXPECT

func (_m *Token) EXPECT() *Token_Expecter

func (*Token) ExecuteTransfer

func (_m *Token) ExecuteTransfer(ctx context.Context, req *token.ExecuteTransferRequest) error

ExecuteTransfer provides a mock function with given fields: ctx, req

func (*Token) FindPendingInboundTransferInstructions

func (_m *Token) FindPendingInboundTransferInstructions(ctx context.Context, partyID string) ([]string, error)

FindPendingInboundTransferInstructions provides a mock function with given fields: ctx, partyID

func (*Token) GetAllHoldings

func (_m *Token) GetAllHoldings(ctx context.Context) ([]*token.Holding, error)

GetAllHoldings provides a mock function with given fields: ctx

func (*Token) GetBalanceByFingerprint

func (_m *Token) GetBalanceByFingerprint(ctx context.Context, fingerprint string, tokenSymbol string) (string, error)

GetBalanceByFingerprint provides a mock function with given fields: ctx, fingerprint, tokenSymbol

func (*Token) GetBalanceByPartyID

func (_m *Token) GetBalanceByPartyID(ctx context.Context, partyID string, tokenSymbol string) (string, error)

GetBalanceByPartyID provides a mock function with given fields: ctx, partyID, tokenSymbol

func (*Token) GetHoldings

func (_m *Token) GetHoldings(ctx context.Context, ownerParty string, tokenSymbol string) ([]*token.Holding, error)

GetHoldings provides a mock function with given fields: ctx, ownerParty, tokenSymbol

func (*Token) GetHoldingsByParty

func (_m *Token) GetHoldingsByParty(ctx context.Context, ownerParty string, instrumentID string) ([]*token.Holding, error)

GetHoldingsByParty provides a mock function with given fields: ctx, ownerParty, instrumentID

func (*Token) GetTokenConfigCID

func (_m *Token) GetTokenConfigCID(ctx context.Context, tokenSymbol string) (string, error)

GetTokenConfigCID provides a mock function with given fields: ctx, tokenSymbol

func (*Token) GetTokenTransferEvents

func (_m *Token) GetTokenTransferEvents(ctx context.Context) ([]*token.TokenTransferEvent, error)

GetTokenTransferEvents provides a mock function with given fields: ctx

func (*Token) GetTotalSupply

func (_m *Token) GetTotalSupply(ctx context.Context, tokenSymbol string) (string, error)

GetTotalSupply provides a mock function with given fields: ctx, tokenSymbol

func (*Token) GetTransferFactory

func (_m *Token) GetTransferFactory(ctx context.Context) (*token.TransferFactoryInfo, error)

GetTransferFactory provides a mock function with given fields: ctx

func (*Token) Mint

func (_m *Token) Mint(ctx context.Context, req *token.MintRequest) (string, error)

Mint provides a mock function with given fields: ctx, req

func (*Token) PrepareAcceptTransfer

func (_m *Token) PrepareAcceptTransfer(ctx context.Context, partyID string, instructionCID string, instrumentAdmin string) (*token.PreparedTransfer, error)

PrepareAcceptTransfer provides a mock function with given fields: ctx, partyID, instructionCID, instrumentAdmin

func (*Token) PrepareTransfer

func (_m *Token) PrepareTransfer(ctx context.Context, req *token.PrepareTransferRequest) (*token.PreparedTransfer, error)

PrepareTransfer provides a mock function with given fields: ctx, req

func (*Token) TransferByFingerprint

func (_m *Token) TransferByFingerprint(ctx context.Context, idempotencyKey string, fromFingerprint string, toFingerprint string, amount string, tokenSymbol string) error

TransferByFingerprint provides a mock function with given fields: ctx, idempotencyKey, fromFingerprint, toFingerprint, amount, tokenSymbol

func (*Token) TransferByPartyID

func (_m *Token) TransferByPartyID(ctx context.Context, idempotencyKey string, fromParty string, toParty string, amount string, tokenSymbol string) error

TransferByPartyID provides a mock function with given fields: ctx, idempotencyKey, fromParty, toParty, amount, tokenSymbol

func (*Token) TransferInternalByPartyID

func (_m *Token) TransferInternalByPartyID(ctx context.Context, idempotencyKey string, fromParty string, toParty string, amount string, tokenSymbol string) error

TransferInternalByPartyID provides a mock function with given fields: ctx, idempotencyKey, fromParty, toParty, amount, tokenSymbol

type Token_AcceptTransferInstruction_Call

type Token_AcceptTransferInstruction_Call struct {
	*mock.Call
}

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

func (*Token_AcceptTransferInstruction_Call) Return

func (*Token_AcceptTransferInstruction_Call) Run

func (_c *Token_AcceptTransferInstruction_Call) Run(run func(ctx context.Context, partyID string, instructionCID string, instrumentAdmin string)) *Token_AcceptTransferInstruction_Call

func (*Token_AcceptTransferInstruction_Call) RunAndReturn

type Token_Burn_Call

type Token_Burn_Call struct {
	*mock.Call
}

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

func (*Token_Burn_Call) Return

func (_c *Token_Burn_Call) Return(_a0 error) *Token_Burn_Call

func (*Token_Burn_Call) Run

func (_c *Token_Burn_Call) Run(run func(ctx context.Context, req *token.BurnRequest)) *Token_Burn_Call

func (*Token_Burn_Call) RunAndReturn

func (_c *Token_Burn_Call) RunAndReturn(run func(context.Context, *token.BurnRequest) error) *Token_Burn_Call

type Token_ExecuteTransfer_Call

type Token_ExecuteTransfer_Call struct {
	*mock.Call
}

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

func (*Token_ExecuteTransfer_Call) Return

func (*Token_ExecuteTransfer_Call) Run

func (*Token_ExecuteTransfer_Call) RunAndReturn

type Token_Expecter

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

func (*Token_Expecter) AcceptTransferInstruction

func (_e *Token_Expecter) AcceptTransferInstruction(ctx interface{}, partyID interface{}, instructionCID interface{}, instrumentAdmin interface{}) *Token_AcceptTransferInstruction_Call

AcceptTransferInstruction is a helper method to define mock.On call

  • ctx context.Context
  • partyID string
  • instructionCID string
  • instrumentAdmin string

func (*Token_Expecter) Burn

func (_e *Token_Expecter) Burn(ctx interface{}, req interface{}) *Token_Burn_Call

Burn is a helper method to define mock.On call

  • ctx context.Context
  • req *token.BurnRequest

func (*Token_Expecter) ExecuteTransfer

func (_e *Token_Expecter) ExecuteTransfer(ctx interface{}, req interface{}) *Token_ExecuteTransfer_Call

ExecuteTransfer is a helper method to define mock.On call

  • ctx context.Context
  • req *token.ExecuteTransferRequest

func (*Token_Expecter) FindPendingInboundTransferInstructions

func (_e *Token_Expecter) FindPendingInboundTransferInstructions(ctx interface{}, partyID interface{}) *Token_FindPendingInboundTransferInstructions_Call

FindPendingInboundTransferInstructions is a helper method to define mock.On call

  • ctx context.Context
  • partyID string

func (*Token_Expecter) GetAllHoldings

func (_e *Token_Expecter) GetAllHoldings(ctx interface{}) *Token_GetAllHoldings_Call

GetAllHoldings is a helper method to define mock.On call

  • ctx context.Context

func (*Token_Expecter) GetBalanceByFingerprint

func (_e *Token_Expecter) GetBalanceByFingerprint(ctx interface{}, fingerprint interface{}, tokenSymbol interface{}) *Token_GetBalanceByFingerprint_Call

GetBalanceByFingerprint is a helper method to define mock.On call

  • ctx context.Context
  • fingerprint string
  • tokenSymbol string

func (*Token_Expecter) GetBalanceByPartyID

func (_e *Token_Expecter) GetBalanceByPartyID(ctx interface{}, partyID interface{}, tokenSymbol interface{}) *Token_GetBalanceByPartyID_Call

GetBalanceByPartyID is a helper method to define mock.On call

  • ctx context.Context
  • partyID string
  • tokenSymbol string

func (*Token_Expecter) GetHoldings

func (_e *Token_Expecter) GetHoldings(ctx interface{}, ownerParty interface{}, tokenSymbol interface{}) *Token_GetHoldings_Call

GetHoldings is a helper method to define mock.On call

  • ctx context.Context
  • ownerParty string
  • tokenSymbol string

func (*Token_Expecter) GetHoldingsByParty

func (_e *Token_Expecter) GetHoldingsByParty(ctx interface{}, ownerParty interface{}, instrumentID interface{}) *Token_GetHoldingsByParty_Call

GetHoldingsByParty is a helper method to define mock.On call

  • ctx context.Context
  • ownerParty string
  • instrumentID string

func (*Token_Expecter) GetTokenConfigCID

func (_e *Token_Expecter) GetTokenConfigCID(ctx interface{}, tokenSymbol interface{}) *Token_GetTokenConfigCID_Call

GetTokenConfigCID is a helper method to define mock.On call

  • ctx context.Context
  • tokenSymbol string

func (*Token_Expecter) GetTokenTransferEvents

func (_e *Token_Expecter) GetTokenTransferEvents(ctx interface{}) *Token_GetTokenTransferEvents_Call

GetTokenTransferEvents is a helper method to define mock.On call

  • ctx context.Context

func (*Token_Expecter) GetTotalSupply

func (_e *Token_Expecter) GetTotalSupply(ctx interface{}, tokenSymbol interface{}) *Token_GetTotalSupply_Call

GetTotalSupply is a helper method to define mock.On call

  • ctx context.Context
  • tokenSymbol string

func (*Token_Expecter) GetTransferFactory

func (_e *Token_Expecter) GetTransferFactory(ctx interface{}) *Token_GetTransferFactory_Call

GetTransferFactory is a helper method to define mock.On call

  • ctx context.Context

func (*Token_Expecter) Mint

func (_e *Token_Expecter) Mint(ctx interface{}, req interface{}) *Token_Mint_Call

Mint is a helper method to define mock.On call

  • ctx context.Context
  • req *token.MintRequest

func (*Token_Expecter) PrepareAcceptTransfer

func (_e *Token_Expecter) PrepareAcceptTransfer(ctx interface{}, partyID interface{}, instructionCID interface{}, instrumentAdmin interface{}) *Token_PrepareAcceptTransfer_Call

PrepareAcceptTransfer is a helper method to define mock.On call

  • ctx context.Context
  • partyID string
  • instructionCID string
  • instrumentAdmin string

func (*Token_Expecter) PrepareTransfer

func (_e *Token_Expecter) PrepareTransfer(ctx interface{}, req interface{}) *Token_PrepareTransfer_Call

PrepareTransfer is a helper method to define mock.On call

  • ctx context.Context
  • req *token.PrepareTransferRequest

func (*Token_Expecter) TransferByFingerprint

func (_e *Token_Expecter) TransferByFingerprint(ctx interface{}, idempotencyKey interface{}, fromFingerprint interface{}, toFingerprint interface{}, amount interface{}, tokenSymbol interface{}) *Token_TransferByFingerprint_Call

TransferByFingerprint is a helper method to define mock.On call

  • ctx context.Context
  • idempotencyKey string
  • fromFingerprint string
  • toFingerprint string
  • amount string
  • tokenSymbol string

func (*Token_Expecter) TransferByPartyID

func (_e *Token_Expecter) TransferByPartyID(ctx interface{}, idempotencyKey interface{}, fromParty interface{}, toParty interface{}, amount interface{}, tokenSymbol interface{}) *Token_TransferByPartyID_Call

TransferByPartyID is a helper method to define mock.On call

  • ctx context.Context
  • idempotencyKey string
  • fromParty string
  • toParty string
  • amount string
  • tokenSymbol string

func (*Token_Expecter) TransferInternalByPartyID

func (_e *Token_Expecter) TransferInternalByPartyID(ctx interface{}, idempotencyKey interface{}, fromParty interface{}, toParty interface{}, amount interface{}, tokenSymbol interface{}) *Token_TransferInternalByPartyID_Call

TransferInternalByPartyID is a helper method to define mock.On call

  • ctx context.Context
  • idempotencyKey string
  • fromParty string
  • toParty string
  • amount string
  • tokenSymbol string

type Token_FindPendingInboundTransferInstructions_Call

type Token_FindPendingInboundTransferInstructions_Call struct {
	*mock.Call
}

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

func (*Token_FindPendingInboundTransferInstructions_Call) Return

func (*Token_FindPendingInboundTransferInstructions_Call) Run

func (*Token_FindPendingInboundTransferInstructions_Call) RunAndReturn

type Token_GetAllHoldings_Call

type Token_GetAllHoldings_Call struct {
	*mock.Call
}

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

func (*Token_GetAllHoldings_Call) Return

func (*Token_GetAllHoldings_Call) Run

func (*Token_GetAllHoldings_Call) RunAndReturn

type Token_GetBalanceByFingerprint_Call

type Token_GetBalanceByFingerprint_Call struct {
	*mock.Call
}

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

func (*Token_GetBalanceByFingerprint_Call) Return

func (*Token_GetBalanceByFingerprint_Call) Run

func (_c *Token_GetBalanceByFingerprint_Call) Run(run func(ctx context.Context, fingerprint string, tokenSymbol string)) *Token_GetBalanceByFingerprint_Call

func (*Token_GetBalanceByFingerprint_Call) RunAndReturn

type Token_GetBalanceByPartyID_Call

type Token_GetBalanceByPartyID_Call struct {
	*mock.Call
}

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

func (*Token_GetBalanceByPartyID_Call) Return

func (*Token_GetBalanceByPartyID_Call) Run

func (_c *Token_GetBalanceByPartyID_Call) Run(run func(ctx context.Context, partyID string, tokenSymbol string)) *Token_GetBalanceByPartyID_Call

func (*Token_GetBalanceByPartyID_Call) RunAndReturn

type Token_GetHoldingsByParty_Call

type Token_GetHoldingsByParty_Call struct {
	*mock.Call
}

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

func (*Token_GetHoldingsByParty_Call) Return

func (*Token_GetHoldingsByParty_Call) Run

func (_c *Token_GetHoldingsByParty_Call) Run(run func(ctx context.Context, ownerParty string, instrumentID string)) *Token_GetHoldingsByParty_Call

func (*Token_GetHoldingsByParty_Call) RunAndReturn

type Token_GetHoldings_Call

type Token_GetHoldings_Call struct {
	*mock.Call
}

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

func (*Token_GetHoldings_Call) Return

func (*Token_GetHoldings_Call) Run

func (_c *Token_GetHoldings_Call) Run(run func(ctx context.Context, ownerParty string, tokenSymbol string)) *Token_GetHoldings_Call

func (*Token_GetHoldings_Call) RunAndReturn

type Token_GetTokenConfigCID_Call

type Token_GetTokenConfigCID_Call struct {
	*mock.Call
}

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

func (*Token_GetTokenConfigCID_Call) Return

func (*Token_GetTokenConfigCID_Call) Run

func (*Token_GetTokenConfigCID_Call) RunAndReturn

type Token_GetTokenTransferEvents_Call

type Token_GetTokenTransferEvents_Call struct {
	*mock.Call
}

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

func (*Token_GetTokenTransferEvents_Call) Return

func (*Token_GetTokenTransferEvents_Call) Run

func (*Token_GetTokenTransferEvents_Call) RunAndReturn

type Token_GetTotalSupply_Call

type Token_GetTotalSupply_Call struct {
	*mock.Call
}

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

func (*Token_GetTotalSupply_Call) Return

func (*Token_GetTotalSupply_Call) Run

func (_c *Token_GetTotalSupply_Call) Run(run func(ctx context.Context, tokenSymbol string)) *Token_GetTotalSupply_Call

func (*Token_GetTotalSupply_Call) RunAndReturn

type Token_GetTransferFactory_Call

type Token_GetTransferFactory_Call struct {
	*mock.Call
}

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

func (*Token_GetTransferFactory_Call) Return

func (*Token_GetTransferFactory_Call) Run

func (*Token_GetTransferFactory_Call) RunAndReturn

type Token_Mint_Call

type Token_Mint_Call struct {
	*mock.Call
}

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

func (*Token_Mint_Call) Return

func (_c *Token_Mint_Call) Return(_a0 string, _a1 error) *Token_Mint_Call

func (*Token_Mint_Call) Run

func (_c *Token_Mint_Call) Run(run func(ctx context.Context, req *token.MintRequest)) *Token_Mint_Call

func (*Token_Mint_Call) RunAndReturn

func (_c *Token_Mint_Call) RunAndReturn(run func(context.Context, *token.MintRequest) (string, error)) *Token_Mint_Call

type Token_PrepareAcceptTransfer_Call

type Token_PrepareAcceptTransfer_Call struct {
	*mock.Call
}

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

func (*Token_PrepareAcceptTransfer_Call) Return

func (*Token_PrepareAcceptTransfer_Call) Run

func (_c *Token_PrepareAcceptTransfer_Call) Run(run func(ctx context.Context, partyID string, instructionCID string, instrumentAdmin string)) *Token_PrepareAcceptTransfer_Call

func (*Token_PrepareAcceptTransfer_Call) RunAndReturn

type Token_PrepareTransfer_Call

type Token_PrepareTransfer_Call struct {
	*mock.Call
}

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

func (*Token_PrepareTransfer_Call) Return

func (*Token_PrepareTransfer_Call) Run

func (*Token_PrepareTransfer_Call) RunAndReturn

type Token_TransferByFingerprint_Call

type Token_TransferByFingerprint_Call struct {
	*mock.Call
}

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

func (*Token_TransferByFingerprint_Call) Return

func (*Token_TransferByFingerprint_Call) Run

func (_c *Token_TransferByFingerprint_Call) Run(run func(ctx context.Context, idempotencyKey string, fromFingerprint string, toFingerprint string, amount string, tokenSymbol string)) *Token_TransferByFingerprint_Call

func (*Token_TransferByFingerprint_Call) RunAndReturn

type Token_TransferByPartyID_Call

type Token_TransferByPartyID_Call struct {
	*mock.Call
}

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

func (*Token_TransferByPartyID_Call) Return

func (*Token_TransferByPartyID_Call) Run

func (_c *Token_TransferByPartyID_Call) Run(run func(ctx context.Context, idempotencyKey string, fromParty string, toParty string, amount string, tokenSymbol string)) *Token_TransferByPartyID_Call

func (*Token_TransferByPartyID_Call) RunAndReturn

type Token_TransferInternalByPartyID_Call

type Token_TransferInternalByPartyID_Call struct {
	*mock.Call
}

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

func (*Token_TransferInternalByPartyID_Call) Return

func (*Token_TransferInternalByPartyID_Call) Run

func (_c *Token_TransferInternalByPartyID_Call) Run(run func(ctx context.Context, idempotencyKey string, fromParty string, toParty string, amount string, tokenSymbol string)) *Token_TransferInternalByPartyID_Call

func (*Token_TransferInternalByPartyID_Call) RunAndReturn

type TransferCache

type TransferCache struct {
	mock.Mock
}

TransferCache is an autogenerated mock type for the TransferCache type

func NewTransferCache

func NewTransferCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransferCache

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

func (_m *TransferCache) EXPECT() *TransferCache_Expecter

func (*TransferCache) GetAndDelete

func (_m *TransferCache) GetAndDelete(transferID string) (*token.PreparedTransfer, error)

GetAndDelete provides a mock function with given fields: transferID

func (*TransferCache) Put

func (_m *TransferCache) Put(_a0 *token.PreparedTransfer) error

Put provides a mock function with given fields: _a0

type TransferCache_Expecter

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

func (*TransferCache_Expecter) GetAndDelete

func (_e *TransferCache_Expecter) GetAndDelete(transferID interface{}) *TransferCache_GetAndDelete_Call

GetAndDelete is a helper method to define mock.On call

  • transferID string

func (*TransferCache_Expecter) Put

func (_e *TransferCache_Expecter) Put(_a0 interface{}) *TransferCache_Put_Call

Put is a helper method to define mock.On call

  • _a0 *token.PreparedTransfer

type TransferCache_GetAndDelete_Call

type TransferCache_GetAndDelete_Call struct {
	*mock.Call
}

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

func (*TransferCache_GetAndDelete_Call) Return

func (*TransferCache_GetAndDelete_Call) Run

func (*TransferCache_GetAndDelete_Call) RunAndReturn

type TransferCache_Put_Call

type TransferCache_Put_Call struct {
	*mock.Call
}

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

func (*TransferCache_Put_Call) Return

func (*TransferCache_Put_Call) Run

func (*TransferCache_Put_Call) RunAndReturn

type UserStore

type UserStore struct {
	mock.Mock
}

UserStore is an autogenerated mock type for the UserStore type

func NewUserStore

func NewUserStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserStore

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

func (_m *UserStore) EXPECT() *UserStore_Expecter

func (*UserStore) GetUserByEVMAddress

func (_m *UserStore) GetUserByEVMAddress(ctx context.Context, evmAddress string) (*user.User, error)

GetUserByEVMAddress provides a mock function with given fields: ctx, evmAddress

type UserStore_Expecter

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

func (*UserStore_Expecter) GetUserByEVMAddress

func (_e *UserStore_Expecter) GetUserByEVMAddress(ctx interface{}, evmAddress interface{}) *UserStore_GetUserByEVMAddress_Call

GetUserByEVMAddress is a helper method to define mock.On call

  • ctx context.Context
  • evmAddress string

type UserStore_GetUserByEVMAddress_Call

type UserStore_GetUserByEVMAddress_Call struct {
	*mock.Call
}

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

func (*UserStore_GetUserByEVMAddress_Call) Return

func (*UserStore_GetUserByEVMAddress_Call) Run

func (*UserStore_GetUserByEVMAddress_Call) RunAndReturn

Jump to

Keyboard shortcuts

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