mocks

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 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 ListService

type ListService struct {
	mock.Mock
}

ListService is an autogenerated mock type for the ListService type

func NewListService

func NewListService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ListService

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

func (_m *ListService) EXPECT() *ListService_Expecter

func (*ListService) GetSupportedTokens

func (_m *ListService) GetSupportedTokens(ctx context.Context, cursor string, limit int) (*token.TokensPage, error)

GetSupportedTokens provides a mock function with given fields: ctx, cursor, limit

type ListService_Expecter

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

func (*ListService_Expecter) GetSupportedTokens

func (_e *ListService_Expecter) GetSupportedTokens(ctx interface{}, cursor interface{}, limit interface{}) *ListService_GetSupportedTokens_Call

GetSupportedTokens is a helper method to define mock.On call

  • ctx context.Context
  • cursor string
  • limit int

type ListService_GetSupportedTokens_Call

type ListService_GetSupportedTokens_Call struct {
	*mock.Call
}

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

func (*ListService_GetSupportedTokens_Call) Return

func (*ListService_GetSupportedTokens_Call) Run

func (*ListService_GetSupportedTokens_Call) RunAndReturn

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *Provider

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

func (_m *Provider) EXPECT() *Provider_Expecter

func (*Provider) GetBalance

func (_m *Provider) GetBalance(ctx context.Context, tokenSymbol string, partyID string) (string, error)

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

func (*Provider) GetTotalSupply

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

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

type Provider_Expecter

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

func (*Provider_Expecter) GetBalance

func (_e *Provider_Expecter) GetBalance(ctx interface{}, tokenSymbol interface{}, partyID interface{}) *Provider_GetBalance_Call

GetBalance is a helper method to define mock.On call

  • ctx context.Context
  • tokenSymbol string
  • partyID string

func (*Provider_Expecter) GetTotalSupply

func (_e *Provider_Expecter) GetTotalSupply(ctx interface{}, tokenSymbol interface{}) *Provider_GetTotalSupply_Call

GetTotalSupply is a helper method to define mock.On call

  • ctx context.Context
  • tokenSymbol string

type Provider_GetBalance_Call

type Provider_GetBalance_Call struct {
	*mock.Call
}

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

func (*Provider_GetBalance_Call) Return

func (*Provider_GetBalance_Call) Run

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

func (*Provider_GetBalance_Call) RunAndReturn

type Provider_GetTotalSupply_Call

type Provider_GetTotalSupply_Call struct {
	*mock.Call
}

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

func (*Provider_GetTotalSupply_Call) Return

func (*Provider_GetTotalSupply_Call) Run

func (*Provider_GetTotalSupply_Call) RunAndReturn

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

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

func (_m *Store) EXPECT() *Store_Expecter

func (*Store) GetTotalSupply

func (_m *Store) GetTotalSupply(tokenSymbol string) (string, error)

GetTotalSupply provides a mock function with given fields: tokenSymbol

type Store_Expecter

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

func (*Store_Expecter) GetTotalSupply

func (_e *Store_Expecter) GetTotalSupply(tokenSymbol interface{}) *Store_GetTotalSupply_Call

GetTotalSupply is a helper method to define mock.On call

  • tokenSymbol string

type Store_GetTotalSupply_Call

type Store_GetTotalSupply_Call struct {
	*mock.Call
}

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

func (*Store_GetTotalSupply_Call) Return

func (*Store_GetTotalSupply_Call) Run

func (_c *Store_GetTotalSupply_Call) Run(run func(tokenSymbol string)) *Store_GetTotalSupply_Call

func (*Store_GetTotalSupply_Call) RunAndReturn

func (_c *Store_GetTotalSupply_Call) RunAndReturn(run func(string) (string, error)) *Store_GetTotalSupply_Call

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

func (_m *UserStore) GetUserByCantonPartyID(ctx context.Context, partyID string) (*user.User, error)

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

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

func (_e *UserStore_Expecter) GetUserByCantonPartyID(ctx interface{}, partyID interface{}) *UserStore_GetUserByCantonPartyID_Call

GetUserByCantonPartyID is a helper method to define mock.On call

  • ctx context.Context
  • partyID string

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_GetUserByCantonPartyID_Call

type UserStore_GetUserByCantonPartyID_Call struct {
	*mock.Call
}

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

func (*UserStore_GetUserByCantonPartyID_Call) Return

func (*UserStore_GetUserByCantonPartyID_Call) Run

func (*UserStore_GetUserByCantonPartyID_Call) RunAndReturn

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