Documentation
¶
Index ¶
- type Token
- func (_m *Token) AcceptTransferInstruction(ctx context.Context, partyID string, instructionCID string, ...) error
- func (_m *Token) Burn(ctx context.Context, req *token.BurnRequest) error
- func (_m *Token) EXPECT() *Token_Expecter
- func (_m *Token) ExecuteTransfer(ctx context.Context, req *token.ExecuteTransferRequest) error
- func (_m *Token) FindPendingInboundTransferInstructions(ctx context.Context, partyID string) ([]string, error)
- func (_m *Token) GetAllHoldings(ctx context.Context) ([]*token.Holding, error)
- func (_m *Token) GetBalanceByFingerprint(ctx context.Context, fingerprint string, tokenSymbol string) (string, error)
- func (_m *Token) GetBalanceByPartyID(ctx context.Context, partyID string, tokenSymbol string) (string, error)
- func (_m *Token) GetHoldings(ctx context.Context, ownerParty string, tokenSymbol string) ([]*token.Holding, error)
- func (_m *Token) GetHoldingsByParty(ctx context.Context, ownerParty string, instrumentID string) ([]*token.Holding, error)
- func (_m *Token) GetTokenConfigCID(ctx context.Context, tokenSymbol string) (string, error)
- func (_m *Token) GetTokenTransferEvents(ctx context.Context) ([]*token.TokenTransferEvent, error)
- func (_m *Token) GetTotalSupply(ctx context.Context, tokenSymbol string) (string, error)
- func (_m *Token) GetTransferFactory(ctx context.Context) (*token.TransferFactoryInfo, error)
- func (_m *Token) Mint(ctx context.Context, req *token.MintRequest) (string, error)
- func (_m *Token) PrepareAcceptTransfer(ctx context.Context, partyID string, instructionCID string, ...) (*token.PreparedTransfer, error)
- func (_m *Token) PrepareTransfer(ctx context.Context, req *token.PrepareTransferRequest) (*token.PreparedTransfer, error)
- func (_m *Token) TransferByFingerprint(ctx context.Context, idempotencyKey string, fromFingerprint string, ...) error
- func (_m *Token) TransferByPartyID(ctx context.Context, idempotencyKey string, fromParty string, toParty string, ...) error
- func (_m *Token) TransferInternalByPartyID(ctx context.Context, idempotencyKey string, fromParty string, toParty string, ...) error
- type Token_AcceptTransferInstruction_Call
- func (_c *Token_AcceptTransferInstruction_Call) Return(_a0 error) *Token_AcceptTransferInstruction_Call
- func (_c *Token_AcceptTransferInstruction_Call) Run(run func(ctx context.Context, partyID string, instructionCID string, ...)) *Token_AcceptTransferInstruction_Call
- func (_c *Token_AcceptTransferInstruction_Call) RunAndReturn(run func(context.Context, string, string, string) error) *Token_AcceptTransferInstruction_Call
- type Token_Burn_Call
- type Token_ExecuteTransfer_Call
- func (_c *Token_ExecuteTransfer_Call) Return(_a0 error) *Token_ExecuteTransfer_Call
- func (_c *Token_ExecuteTransfer_Call) Run(run func(ctx context.Context, req *token.ExecuteTransferRequest)) *Token_ExecuteTransfer_Call
- func (_c *Token_ExecuteTransfer_Call) RunAndReturn(run func(context.Context, *token.ExecuteTransferRequest) error) *Token_ExecuteTransfer_Call
- type Token_Expecter
- func (_e *Token_Expecter) AcceptTransferInstruction(ctx interface{}, partyID interface{}, instructionCID interface{}, ...) *Token_AcceptTransferInstruction_Call
- func (_e *Token_Expecter) Burn(ctx interface{}, req interface{}) *Token_Burn_Call
- func (_e *Token_Expecter) ExecuteTransfer(ctx interface{}, req interface{}) *Token_ExecuteTransfer_Call
- func (_e *Token_Expecter) FindPendingInboundTransferInstructions(ctx interface{}, partyID interface{}) *Token_FindPendingInboundTransferInstructions_Call
- func (_e *Token_Expecter) GetAllHoldings(ctx interface{}) *Token_GetAllHoldings_Call
- func (_e *Token_Expecter) GetBalanceByFingerprint(ctx interface{}, fingerprint interface{}, tokenSymbol interface{}) *Token_GetBalanceByFingerprint_Call
- func (_e *Token_Expecter) GetBalanceByPartyID(ctx interface{}, partyID interface{}, tokenSymbol interface{}) *Token_GetBalanceByPartyID_Call
- func (_e *Token_Expecter) GetHoldings(ctx interface{}, ownerParty interface{}, tokenSymbol interface{}) *Token_GetHoldings_Call
- func (_e *Token_Expecter) GetHoldingsByParty(ctx interface{}, ownerParty interface{}, instrumentID interface{}) *Token_GetHoldingsByParty_Call
- func (_e *Token_Expecter) GetTokenConfigCID(ctx interface{}, tokenSymbol interface{}) *Token_GetTokenConfigCID_Call
- func (_e *Token_Expecter) GetTokenTransferEvents(ctx interface{}) *Token_GetTokenTransferEvents_Call
- func (_e *Token_Expecter) GetTotalSupply(ctx interface{}, tokenSymbol interface{}) *Token_GetTotalSupply_Call
- func (_e *Token_Expecter) GetTransferFactory(ctx interface{}) *Token_GetTransferFactory_Call
- func (_e *Token_Expecter) Mint(ctx interface{}, req interface{}) *Token_Mint_Call
- func (_e *Token_Expecter) PrepareAcceptTransfer(ctx interface{}, partyID interface{}, instructionCID interface{}, ...) *Token_PrepareAcceptTransfer_Call
- func (_e *Token_Expecter) PrepareTransfer(ctx interface{}, req interface{}) *Token_PrepareTransfer_Call
- func (_e *Token_Expecter) TransferByFingerprint(ctx interface{}, idempotencyKey interface{}, fromFingerprint interface{}, ...) *Token_TransferByFingerprint_Call
- func (_e *Token_Expecter) TransferByPartyID(ctx interface{}, idempotencyKey interface{}, fromParty interface{}, ...) *Token_TransferByPartyID_Call
- func (_e *Token_Expecter) TransferInternalByPartyID(ctx interface{}, idempotencyKey interface{}, fromParty interface{}, ...) *Token_TransferInternalByPartyID_Call
- type Token_FindPendingInboundTransferInstructions_Call
- func (_c *Token_FindPendingInboundTransferInstructions_Call) Return(_a0 []string, _a1 error) *Token_FindPendingInboundTransferInstructions_Call
- func (_c *Token_FindPendingInboundTransferInstructions_Call) Run(run func(ctx context.Context, partyID string)) *Token_FindPendingInboundTransferInstructions_Call
- func (_c *Token_FindPendingInboundTransferInstructions_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *Token_FindPendingInboundTransferInstructions_Call
- type Token_GetAllHoldings_Call
- func (_c *Token_GetAllHoldings_Call) Return(_a0 []*token.Holding, _a1 error) *Token_GetAllHoldings_Call
- func (_c *Token_GetAllHoldings_Call) Run(run func(ctx context.Context)) *Token_GetAllHoldings_Call
- func (_c *Token_GetAllHoldings_Call) RunAndReturn(run func(context.Context) ([]*token.Holding, error)) *Token_GetAllHoldings_Call
- type Token_GetBalanceByFingerprint_Call
- func (_c *Token_GetBalanceByFingerprint_Call) Return(_a0 string, _a1 error) *Token_GetBalanceByFingerprint_Call
- func (_c *Token_GetBalanceByFingerprint_Call) Run(run func(ctx context.Context, fingerprint string, tokenSymbol string)) *Token_GetBalanceByFingerprint_Call
- func (_c *Token_GetBalanceByFingerprint_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *Token_GetBalanceByFingerprint_Call
- type Token_GetBalanceByPartyID_Call
- func (_c *Token_GetBalanceByPartyID_Call) Return(_a0 string, _a1 error) *Token_GetBalanceByPartyID_Call
- func (_c *Token_GetBalanceByPartyID_Call) Run(run func(ctx context.Context, partyID string, tokenSymbol string)) *Token_GetBalanceByPartyID_Call
- func (_c *Token_GetBalanceByPartyID_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *Token_GetBalanceByPartyID_Call
- type Token_GetHoldingsByParty_Call
- func (_c *Token_GetHoldingsByParty_Call) Return(_a0 []*token.Holding, _a1 error) *Token_GetHoldingsByParty_Call
- func (_c *Token_GetHoldingsByParty_Call) Run(run func(ctx context.Context, ownerParty string, instrumentID string)) *Token_GetHoldingsByParty_Call
- func (_c *Token_GetHoldingsByParty_Call) RunAndReturn(run func(context.Context, string, string) ([]*token.Holding, error)) *Token_GetHoldingsByParty_Call
- type Token_GetHoldings_Call
- func (_c *Token_GetHoldings_Call) Return(_a0 []*token.Holding, _a1 error) *Token_GetHoldings_Call
- func (_c *Token_GetHoldings_Call) Run(run func(ctx context.Context, ownerParty string, tokenSymbol string)) *Token_GetHoldings_Call
- func (_c *Token_GetHoldings_Call) RunAndReturn(run func(context.Context, string, string) ([]*token.Holding, error)) *Token_GetHoldings_Call
- type Token_GetTokenConfigCID_Call
- func (_c *Token_GetTokenConfigCID_Call) Return(_a0 string, _a1 error) *Token_GetTokenConfigCID_Call
- func (_c *Token_GetTokenConfigCID_Call) Run(run func(ctx context.Context, tokenSymbol string)) *Token_GetTokenConfigCID_Call
- func (_c *Token_GetTokenConfigCID_Call) RunAndReturn(run func(context.Context, string) (string, error)) *Token_GetTokenConfigCID_Call
- type Token_GetTokenTransferEvents_Call
- func (_c *Token_GetTokenTransferEvents_Call) Return(_a0 []*token.TokenTransferEvent, _a1 error) *Token_GetTokenTransferEvents_Call
- func (_c *Token_GetTokenTransferEvents_Call) Run(run func(ctx context.Context)) *Token_GetTokenTransferEvents_Call
- func (_c *Token_GetTokenTransferEvents_Call) RunAndReturn(run func(context.Context) ([]*token.TokenTransferEvent, error)) *Token_GetTokenTransferEvents_Call
- type Token_GetTotalSupply_Call
- func (_c *Token_GetTotalSupply_Call) Return(_a0 string, _a1 error) *Token_GetTotalSupply_Call
- func (_c *Token_GetTotalSupply_Call) Run(run func(ctx context.Context, tokenSymbol string)) *Token_GetTotalSupply_Call
- func (_c *Token_GetTotalSupply_Call) RunAndReturn(run func(context.Context, string) (string, error)) *Token_GetTotalSupply_Call
- type Token_GetTransferFactory_Call
- func (_c *Token_GetTransferFactory_Call) Return(_a0 *token.TransferFactoryInfo, _a1 error) *Token_GetTransferFactory_Call
- func (_c *Token_GetTransferFactory_Call) Run(run func(ctx context.Context)) *Token_GetTransferFactory_Call
- func (_c *Token_GetTransferFactory_Call) RunAndReturn(run func(context.Context) (*token.TransferFactoryInfo, error)) *Token_GetTransferFactory_Call
- type Token_Mint_Call
- type Token_PrepareAcceptTransfer_Call
- func (_c *Token_PrepareAcceptTransfer_Call) Return(_a0 *token.PreparedTransfer, _a1 error) *Token_PrepareAcceptTransfer_Call
- func (_c *Token_PrepareAcceptTransfer_Call) Run(run func(ctx context.Context, partyID string, instructionCID string, ...)) *Token_PrepareAcceptTransfer_Call
- func (_c *Token_PrepareAcceptTransfer_Call) RunAndReturn(...) *Token_PrepareAcceptTransfer_Call
- type Token_PrepareTransfer_Call
- func (_c *Token_PrepareTransfer_Call) Return(_a0 *token.PreparedTransfer, _a1 error) *Token_PrepareTransfer_Call
- func (_c *Token_PrepareTransfer_Call) Run(run func(ctx context.Context, req *token.PrepareTransferRequest)) *Token_PrepareTransfer_Call
- func (_c *Token_PrepareTransfer_Call) RunAndReturn(...) *Token_PrepareTransfer_Call
- type Token_TransferByFingerprint_Call
- func (_c *Token_TransferByFingerprint_Call) Return(_a0 error) *Token_TransferByFingerprint_Call
- func (_c *Token_TransferByFingerprint_Call) Run(...) *Token_TransferByFingerprint_Call
- func (_c *Token_TransferByFingerprint_Call) RunAndReturn(run func(context.Context, string, string, string, string, string) error) *Token_TransferByFingerprint_Call
- type Token_TransferByPartyID_Call
- func (_c *Token_TransferByPartyID_Call) Return(_a0 error) *Token_TransferByPartyID_Call
- func (_c *Token_TransferByPartyID_Call) Run(...) *Token_TransferByPartyID_Call
- func (_c *Token_TransferByPartyID_Call) RunAndReturn(run func(context.Context, string, string, string, string, string) error) *Token_TransferByPartyID_Call
- type Token_TransferInternalByPartyID_Call
- func (_c *Token_TransferInternalByPartyID_Call) Return(_a0 error) *Token_TransferInternalByPartyID_Call
- func (_c *Token_TransferInternalByPartyID_Call) Run(...) *Token_TransferInternalByPartyID_Call
- func (_c *Token_TransferInternalByPartyID_Call) RunAndReturn(run func(context.Context, string, string, string, string, string) error) *Token_TransferInternalByPartyID_Call
- type UserLister
- type UserLister_Expecter
- type UserLister_ListCustodialUsers_Call
- func (_c *UserLister_ListCustodialUsers_Call) Return(_a0 []*user.User, _a1 error) *UserLister_ListCustodialUsers_Call
- func (_c *UserLister_ListCustodialUsers_Call) Run(run func(ctx context.Context)) *UserLister_ListCustodialUsers_Call
- func (_c *UserLister_ListCustodialUsers_Call) RunAndReturn(run func(context.Context) ([]*user.User, error)) *UserLister_ListCustodialUsers_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
Token is an autogenerated mock type for the Token type
func NewToken ¶
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) EXPECT ¶
func (_m *Token) EXPECT() *Token_Expecter
func (*Token) ExecuteTransfer ¶
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 ¶
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 ¶
GetTokenConfigCID provides a mock function with given fields: ctx, tokenSymbol
func (*Token) GetTokenTransferEvents ¶
GetTokenTransferEvents provides a mock function with given fields: ctx
func (*Token) GetTotalSupply ¶
GetTotalSupply provides a mock function with given fields: ctx, tokenSymbol
func (*Token) GetTransferFactory ¶
GetTransferFactory provides a mock function with given fields: ctx
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 ¶
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 (_c *Token_AcceptTransferInstruction_Call) Return(_a0 error) *Token_AcceptTransferInstruction_Call
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 ¶
func (_c *Token_AcceptTransferInstruction_Call) RunAndReturn(run func(context.Context, string, string, string) error) *Token_AcceptTransferInstruction_Call
type Token_Burn_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 ¶
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 (_c *Token_ExecuteTransfer_Call) Return(_a0 error) *Token_ExecuteTransfer_Call
func (*Token_ExecuteTransfer_Call) Run ¶
func (_c *Token_ExecuteTransfer_Call) Run(run func(ctx context.Context, req *token.ExecuteTransferRequest)) *Token_ExecuteTransfer_Call
func (*Token_ExecuteTransfer_Call) RunAndReturn ¶
func (_c *Token_ExecuteTransfer_Call) RunAndReturn(run func(context.Context, *token.ExecuteTransferRequest) error) *Token_ExecuteTransfer_Call
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 ¶
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 (_c *Token_FindPendingInboundTransferInstructions_Call) Return(_a0 []string, _a1 error) *Token_FindPendingInboundTransferInstructions_Call
func (*Token_FindPendingInboundTransferInstructions_Call) Run ¶
func (_c *Token_FindPendingInboundTransferInstructions_Call) Run(run func(ctx context.Context, partyID string)) *Token_FindPendingInboundTransferInstructions_Call
func (*Token_FindPendingInboundTransferInstructions_Call) RunAndReturn ¶
func (_c *Token_FindPendingInboundTransferInstructions_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *Token_FindPendingInboundTransferInstructions_Call
type Token_GetAllHoldings_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 (_c *Token_GetAllHoldings_Call) Return(_a0 []*token.Holding, _a1 error) *Token_GetAllHoldings_Call
func (*Token_GetAllHoldings_Call) Run ¶
func (_c *Token_GetAllHoldings_Call) Run(run func(ctx context.Context)) *Token_GetAllHoldings_Call
func (*Token_GetAllHoldings_Call) RunAndReturn ¶
func (_c *Token_GetAllHoldings_Call) RunAndReturn(run func(context.Context) ([]*token.Holding, error)) *Token_GetAllHoldings_Call
type Token_GetBalanceByFingerprint_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 (_c *Token_GetBalanceByFingerprint_Call) Return(_a0 string, _a1 error) *Token_GetBalanceByFingerprint_Call
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 ¶
func (_c *Token_GetBalanceByFingerprint_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *Token_GetBalanceByFingerprint_Call
type Token_GetBalanceByPartyID_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 (_c *Token_GetBalanceByPartyID_Call) Return(_a0 string, _a1 error) *Token_GetBalanceByPartyID_Call
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 ¶
func (_c *Token_GetBalanceByPartyID_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *Token_GetBalanceByPartyID_Call
type Token_GetHoldingsByParty_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 (_c *Token_GetHoldingsByParty_Call) Return(_a0 []*token.Holding, _a1 error) *Token_GetHoldingsByParty_Call
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 ¶
func (_c *Token_GetHoldingsByParty_Call) RunAndReturn(run func(context.Context, string, string) ([]*token.Holding, error)) *Token_GetHoldingsByParty_Call
type Token_GetHoldings_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 (_c *Token_GetHoldings_Call) Return(_a0 []*token.Holding, _a1 error) *Token_GetHoldings_Call
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 ¶
func (_c *Token_GetHoldings_Call) RunAndReturn(run func(context.Context, string, string) ([]*token.Holding, error)) *Token_GetHoldings_Call
type Token_GetTokenConfigCID_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 (_c *Token_GetTokenConfigCID_Call) Return(_a0 string, _a1 error) *Token_GetTokenConfigCID_Call
func (*Token_GetTokenConfigCID_Call) Run ¶
func (_c *Token_GetTokenConfigCID_Call) Run(run func(ctx context.Context, tokenSymbol string)) *Token_GetTokenConfigCID_Call
func (*Token_GetTokenConfigCID_Call) RunAndReturn ¶
func (_c *Token_GetTokenConfigCID_Call) RunAndReturn(run func(context.Context, string) (string, error)) *Token_GetTokenConfigCID_Call
type Token_GetTokenTransferEvents_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 (_c *Token_GetTokenTransferEvents_Call) Return(_a0 []*token.TokenTransferEvent, _a1 error) *Token_GetTokenTransferEvents_Call
func (*Token_GetTokenTransferEvents_Call) Run ¶
func (_c *Token_GetTokenTransferEvents_Call) Run(run func(ctx context.Context)) *Token_GetTokenTransferEvents_Call
func (*Token_GetTokenTransferEvents_Call) RunAndReturn ¶
func (_c *Token_GetTokenTransferEvents_Call) RunAndReturn(run func(context.Context) ([]*token.TokenTransferEvent, error)) *Token_GetTokenTransferEvents_Call
type Token_GetTotalSupply_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 (_c *Token_GetTotalSupply_Call) Return(_a0 string, _a1 error) *Token_GetTotalSupply_Call
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 ¶
func (_c *Token_GetTotalSupply_Call) RunAndReturn(run func(context.Context, string) (string, error)) *Token_GetTotalSupply_Call
type Token_GetTransferFactory_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 (_c *Token_GetTransferFactory_Call) Return(_a0 *token.TransferFactoryInfo, _a1 error) *Token_GetTransferFactory_Call
func (*Token_GetTransferFactory_Call) Run ¶
func (_c *Token_GetTransferFactory_Call) Run(run func(ctx context.Context)) *Token_GetTransferFactory_Call
func (*Token_GetTransferFactory_Call) RunAndReturn ¶
func (_c *Token_GetTransferFactory_Call) RunAndReturn(run func(context.Context) (*token.TransferFactoryInfo, error)) *Token_GetTransferFactory_Call
type Token_Mint_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 ¶
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 (_c *Token_PrepareAcceptTransfer_Call) Return(_a0 *token.PreparedTransfer, _a1 error) *Token_PrepareAcceptTransfer_Call
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 ¶
func (_c *Token_PrepareAcceptTransfer_Call) RunAndReturn(run func(context.Context, string, string, string) (*token.PreparedTransfer, error)) *Token_PrepareAcceptTransfer_Call
type Token_PrepareTransfer_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 (_c *Token_PrepareTransfer_Call) Return(_a0 *token.PreparedTransfer, _a1 error) *Token_PrepareTransfer_Call
func (*Token_PrepareTransfer_Call) Run ¶
func (_c *Token_PrepareTransfer_Call) Run(run func(ctx context.Context, req *token.PrepareTransferRequest)) *Token_PrepareTransfer_Call
func (*Token_PrepareTransfer_Call) RunAndReturn ¶
func (_c *Token_PrepareTransfer_Call) RunAndReturn(run func(context.Context, *token.PrepareTransferRequest) (*token.PreparedTransfer, error)) *Token_PrepareTransfer_Call
type Token_TransferByFingerprint_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 (_c *Token_TransferByFingerprint_Call) Return(_a0 error) *Token_TransferByFingerprint_Call
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 ¶
func (_c *Token_TransferByFingerprint_Call) RunAndReturn(run func(context.Context, string, string, string, string, string) error) *Token_TransferByFingerprint_Call
type Token_TransferByPartyID_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 (_c *Token_TransferByPartyID_Call) Return(_a0 error) *Token_TransferByPartyID_Call
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 ¶
func (_c *Token_TransferByPartyID_Call) RunAndReturn(run func(context.Context, string, string, string, string, string) error) *Token_TransferByPartyID_Call
type Token_TransferInternalByPartyID_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 (_c *Token_TransferInternalByPartyID_Call) Return(_a0 error) *Token_TransferInternalByPartyID_Call
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 ¶
func (_c *Token_TransferInternalByPartyID_Call) RunAndReturn(run func(context.Context, string, string, string, string, string) error) *Token_TransferInternalByPartyID_Call
type UserLister ¶
UserLister is an autogenerated mock type for the UserLister type
func NewUserLister ¶
func NewUserLister(t interface {
mock.TestingT
Cleanup(func())
}) *UserLister
NewUserLister creates a new instance of UserLister. 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 (*UserLister) EXPECT ¶
func (_m *UserLister) EXPECT() *UserLister_Expecter
func (*UserLister) ListCustodialUsers ¶
ListCustodialUsers provides a mock function with given fields: ctx
type UserLister_Expecter ¶
type UserLister_Expecter struct {
// contains filtered or unexported fields
}
func (*UserLister_Expecter) ListCustodialUsers ¶
func (_e *UserLister_Expecter) ListCustodialUsers(ctx interface{}) *UserLister_ListCustodialUsers_Call
ListCustodialUsers is a helper method to define mock.On call
- ctx context.Context
type UserLister_ListCustodialUsers_Call ¶
UserLister_ListCustodialUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCustodialUsers'
func (*UserLister_ListCustodialUsers_Call) Return ¶
func (_c *UserLister_ListCustodialUsers_Call) Return(_a0 []*user.User, _a1 error) *UserLister_ListCustodialUsers_Call
func (*UserLister_ListCustodialUsers_Call) Run ¶
func (_c *UserLister_ListCustodialUsers_Call) Run(run func(ctx context.Context)) *UserLister_ListCustodialUsers_Call
func (*UserLister_ListCustodialUsers_Call) RunAndReturn ¶
func (_c *UserLister_ListCustodialUsers_Call) RunAndReturn(run func(context.Context) ([]*user.User, error)) *UserLister_ListCustodialUsers_Call