Documentation
¶
Index ¶
- type Service
- func (_m *Service) EXPECT() *Service_Expecter
- func (_m *Service) GetBalance(ctx context.Context, partyID string, admin string, id string) (*indexer.Balance, error)
- func (_m *Service) GetEvent(ctx context.Context, contractID string) (*indexer.ParsedEvent, error)
- func (_m *Service) GetPendingTransfers(ctx context.Context, p indexer.Pagination) (*indexer.Page[indexer.Transfer], error)
- func (_m *Service) GetToken(ctx context.Context, admin string, id string) (*indexer.Token, error)
- func (_m *Service) GetTransfer(ctx context.Context, contractID string) (*indexer.Transfer, error)
- func (_m *Service) GetTransfers(ctx context.Context, partyID string, query indexer.TransferQuery, ...) (*indexer.Page[indexer.Transfer], error)
- func (_m *Service) ListBalancesForParty(ctx context.Context, partyID string, p indexer.Pagination) (*indexer.Page[*indexer.Balance], error)
- func (_m *Service) ListBalancesForToken(ctx context.Context, admin string, id string, p indexer.Pagination) (*indexer.Page[*indexer.Balance], error)
- func (_m *Service) ListPartyEvents(ctx context.Context, partyID string, f indexer.EventFilter, ...) (*indexer.Page[*indexer.ParsedEvent], error)
- func (_m *Service) ListTokenEvents(ctx context.Context, admin string, id string, f indexer.EventFilter, ...) (*indexer.Page[*indexer.ParsedEvent], error)
- func (_m *Service) ListTokens(ctx context.Context, p indexer.Pagination) (*indexer.Page[*indexer.Token], error)
- func (_m *Service) TotalSupply(ctx context.Context, admin string, id string) (string, error)
- type Service_Expecter
- func (_e *Service_Expecter) GetBalance(ctx interface{}, partyID interface{}, admin interface{}, id interface{}) *Service_GetBalance_Call
- func (_e *Service_Expecter) GetEvent(ctx interface{}, contractID interface{}) *Service_GetEvent_Call
- func (_e *Service_Expecter) GetPendingTransfers(ctx interface{}, p interface{}) *Service_GetPendingTransfers_Call
- func (_e *Service_Expecter) GetToken(ctx interface{}, admin interface{}, id interface{}) *Service_GetToken_Call
- func (_e *Service_Expecter) GetTransfer(ctx interface{}, contractID interface{}) *Service_GetTransfer_Call
- func (_e *Service_Expecter) GetTransfers(ctx interface{}, partyID interface{}, query interface{}, p interface{}) *Service_GetTransfers_Call
- func (_e *Service_Expecter) ListBalancesForParty(ctx interface{}, partyID interface{}, p interface{}) *Service_ListBalancesForParty_Call
- func (_e *Service_Expecter) ListBalancesForToken(ctx interface{}, admin interface{}, id interface{}, p interface{}) *Service_ListBalancesForToken_Call
- func (_e *Service_Expecter) ListPartyEvents(ctx interface{}, partyID interface{}, f interface{}, p interface{}) *Service_ListPartyEvents_Call
- func (_e *Service_Expecter) ListTokenEvents(ctx interface{}, admin interface{}, id interface{}, f interface{}, ...) *Service_ListTokenEvents_Call
- func (_e *Service_Expecter) ListTokens(ctx interface{}, p interface{}) *Service_ListTokens_Call
- func (_e *Service_Expecter) TotalSupply(ctx interface{}, admin interface{}, id interface{}) *Service_TotalSupply_Call
- type Service_GetBalance_Call
- func (_c *Service_GetBalance_Call) Return(_a0 *indexer.Balance, _a1 error) *Service_GetBalance_Call
- func (_c *Service_GetBalance_Call) Run(run func(ctx context.Context, partyID string, admin string, id string)) *Service_GetBalance_Call
- func (_c *Service_GetBalance_Call) RunAndReturn(run func(context.Context, string, string, string) (*indexer.Balance, error)) *Service_GetBalance_Call
- type Service_GetEvent_Call
- func (_c *Service_GetEvent_Call) Return(_a0 *indexer.ParsedEvent, _a1 error) *Service_GetEvent_Call
- func (_c *Service_GetEvent_Call) Run(run func(ctx context.Context, contractID string)) *Service_GetEvent_Call
- func (_c *Service_GetEvent_Call) RunAndReturn(run func(context.Context, string) (*indexer.ParsedEvent, error)) *Service_GetEvent_Call
- type Service_GetPendingTransfers_Call
- func (_c *Service_GetPendingTransfers_Call) Return(_a0 *indexer.Page[indexer.Transfer], _a1 error) *Service_GetPendingTransfers_Call
- func (_c *Service_GetPendingTransfers_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Service_GetPendingTransfers_Call
- func (_c *Service_GetPendingTransfers_Call) RunAndReturn(...) *Service_GetPendingTransfers_Call
- type Service_GetToken_Call
- func (_c *Service_GetToken_Call) Return(_a0 *indexer.Token, _a1 error) *Service_GetToken_Call
- func (_c *Service_GetToken_Call) Run(run func(ctx context.Context, admin string, id string)) *Service_GetToken_Call
- func (_c *Service_GetToken_Call) RunAndReturn(run func(context.Context, string, string) (*indexer.Token, error)) *Service_GetToken_Call
- type Service_GetTransfer_Call
- func (_c *Service_GetTransfer_Call) Return(_a0 *indexer.Transfer, _a1 error) *Service_GetTransfer_Call
- func (_c *Service_GetTransfer_Call) Run(run func(ctx context.Context, contractID string)) *Service_GetTransfer_Call
- func (_c *Service_GetTransfer_Call) RunAndReturn(run func(context.Context, string) (*indexer.Transfer, error)) *Service_GetTransfer_Call
- type Service_GetTransfers_Call
- type Service_ListBalancesForParty_Call
- func (_c *Service_ListBalancesForParty_Call) Return(_a0 *indexer.Page[*indexer.Balance], _a1 error) *Service_ListBalancesForParty_Call
- func (_c *Service_ListBalancesForParty_Call) Run(run func(ctx context.Context, partyID string, p indexer.Pagination)) *Service_ListBalancesForParty_Call
- func (_c *Service_ListBalancesForParty_Call) RunAndReturn(...) *Service_ListBalancesForParty_Call
- type Service_ListBalancesForToken_Call
- func (_c *Service_ListBalancesForToken_Call) Return(_a0 *indexer.Page[*indexer.Balance], _a1 error) *Service_ListBalancesForToken_Call
- func (_c *Service_ListBalancesForToken_Call) Run(run func(ctx context.Context, admin string, id string, p indexer.Pagination)) *Service_ListBalancesForToken_Call
- func (_c *Service_ListBalancesForToken_Call) RunAndReturn(...) *Service_ListBalancesForToken_Call
- type Service_ListPartyEvents_Call
- func (_c *Service_ListPartyEvents_Call) Return(_a0 *indexer.Page[*indexer.ParsedEvent], _a1 error) *Service_ListPartyEvents_Call
- func (_c *Service_ListPartyEvents_Call) Run(run func(ctx context.Context, partyID string, f indexer.EventFilter, ...)) *Service_ListPartyEvents_Call
- func (_c *Service_ListPartyEvents_Call) RunAndReturn(...) *Service_ListPartyEvents_Call
- type Service_ListTokenEvents_Call
- type Service_ListTokens_Call
- func (_c *Service_ListTokens_Call) Return(_a0 *indexer.Page[*indexer.Token], _a1 error) *Service_ListTokens_Call
- func (_c *Service_ListTokens_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Service_ListTokens_Call
- func (_c *Service_ListTokens_Call) RunAndReturn(...) *Service_ListTokens_Call
- type Service_TotalSupply_Call
- func (_c *Service_TotalSupply_Call) Return(_a0 string, _a1 error) *Service_TotalSupply_Call
- func (_c *Service_TotalSupply_Call) Run(run func(ctx context.Context, admin string, id string)) *Service_TotalSupply_Call
- func (_c *Service_TotalSupply_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *Service_TotalSupply_Call
- type Store
- func (_m *Store) EXPECT() *Store_Expecter
- func (_m *Store) GetBalance(ctx context.Context, partyID string, admin string, id string) (*indexer.Balance, error)
- func (_m *Store) GetEvent(ctx context.Context, contractID string) (*indexer.ParsedEvent, error)
- func (_m *Store) GetToken(ctx context.Context, admin string, id string) (*indexer.Token, error)
- func (_m *Store) GetTransfer(ctx context.Context, contractID string) (*indexer.Transfer, error)
- func (_m *Store) ListBalancesForParty(ctx context.Context, partyID string, p indexer.Pagination) ([]*indexer.Balance, int64, error)
- func (_m *Store) ListBalancesForToken(ctx context.Context, admin string, id string, p indexer.Pagination) ([]*indexer.Balance, int64, error)
- func (_m *Store) ListEvents(ctx context.Context, f indexer.EventFilter, p indexer.Pagination) ([]*indexer.ParsedEvent, int64, error)
- func (_m *Store) ListPendingTransfers(ctx context.Context, p indexer.Pagination) ([]indexer.Transfer, int64, error)
- func (_m *Store) ListTokens(ctx context.Context, p indexer.Pagination) ([]*indexer.Token, int64, error)
- func (_m *Store) ListTransfers(ctx context.Context, partyID string, query indexer.TransferQuery, ...) ([]indexer.Transfer, int64, error)
- type Store_Expecter
- func (_e *Store_Expecter) GetBalance(ctx interface{}, partyID interface{}, admin interface{}, id interface{}) *Store_GetBalance_Call
- func (_e *Store_Expecter) GetEvent(ctx interface{}, contractID interface{}) *Store_GetEvent_Call
- func (_e *Store_Expecter) GetToken(ctx interface{}, admin interface{}, id interface{}) *Store_GetToken_Call
- func (_e *Store_Expecter) GetTransfer(ctx interface{}, contractID interface{}) *Store_GetTransfer_Call
- func (_e *Store_Expecter) ListBalancesForParty(ctx interface{}, partyID interface{}, p interface{}) *Store_ListBalancesForParty_Call
- func (_e *Store_Expecter) ListBalancesForToken(ctx interface{}, admin interface{}, id interface{}, p interface{}) *Store_ListBalancesForToken_Call
- func (_e *Store_Expecter) ListEvents(ctx interface{}, f interface{}, p interface{}) *Store_ListEvents_Call
- func (_e *Store_Expecter) ListPendingTransfers(ctx interface{}, p interface{}) *Store_ListPendingTransfers_Call
- func (_e *Store_Expecter) ListTokens(ctx interface{}, p interface{}) *Store_ListTokens_Call
- func (_e *Store_Expecter) ListTransfers(ctx interface{}, partyID interface{}, query interface{}, p interface{}) *Store_ListTransfers_Call
- type Store_GetBalance_Call
- func (_c *Store_GetBalance_Call) Return(_a0 *indexer.Balance, _a1 error) *Store_GetBalance_Call
- func (_c *Store_GetBalance_Call) Run(run func(ctx context.Context, partyID string, admin string, id string)) *Store_GetBalance_Call
- func (_c *Store_GetBalance_Call) RunAndReturn(run func(context.Context, string, string, string) (*indexer.Balance, error)) *Store_GetBalance_Call
- type Store_GetEvent_Call
- func (_c *Store_GetEvent_Call) Return(_a0 *indexer.ParsedEvent, _a1 error) *Store_GetEvent_Call
- func (_c *Store_GetEvent_Call) Run(run func(ctx context.Context, contractID string)) *Store_GetEvent_Call
- func (_c *Store_GetEvent_Call) RunAndReturn(run func(context.Context, string) (*indexer.ParsedEvent, error)) *Store_GetEvent_Call
- type Store_GetToken_Call
- func (_c *Store_GetToken_Call) Return(_a0 *indexer.Token, _a1 error) *Store_GetToken_Call
- func (_c *Store_GetToken_Call) Run(run func(ctx context.Context, admin string, id string)) *Store_GetToken_Call
- func (_c *Store_GetToken_Call) RunAndReturn(run func(context.Context, string, string) (*indexer.Token, error)) *Store_GetToken_Call
- type Store_GetTransfer_Call
- func (_c *Store_GetTransfer_Call) Return(_a0 *indexer.Transfer, _a1 error) *Store_GetTransfer_Call
- func (_c *Store_GetTransfer_Call) Run(run func(ctx context.Context, contractID string)) *Store_GetTransfer_Call
- func (_c *Store_GetTransfer_Call) RunAndReturn(run func(context.Context, string) (*indexer.Transfer, error)) *Store_GetTransfer_Call
- type Store_ListBalancesForParty_Call
- func (_c *Store_ListBalancesForParty_Call) Return(_a0 []*indexer.Balance, _a1 int64, _a2 error) *Store_ListBalancesForParty_Call
- func (_c *Store_ListBalancesForParty_Call) Run(run func(ctx context.Context, partyID string, p indexer.Pagination)) *Store_ListBalancesForParty_Call
- func (_c *Store_ListBalancesForParty_Call) RunAndReturn(...) *Store_ListBalancesForParty_Call
- type Store_ListBalancesForToken_Call
- func (_c *Store_ListBalancesForToken_Call) Return(_a0 []*indexer.Balance, _a1 int64, _a2 error) *Store_ListBalancesForToken_Call
- func (_c *Store_ListBalancesForToken_Call) Run(run func(ctx context.Context, admin string, id string, p indexer.Pagination)) *Store_ListBalancesForToken_Call
- func (_c *Store_ListBalancesForToken_Call) RunAndReturn(...) *Store_ListBalancesForToken_Call
- type Store_ListEvents_Call
- func (_c *Store_ListEvents_Call) Return(_a0 []*indexer.ParsedEvent, _a1 int64, _a2 error) *Store_ListEvents_Call
- func (_c *Store_ListEvents_Call) Run(run func(ctx context.Context, f indexer.EventFilter, p indexer.Pagination)) *Store_ListEvents_Call
- func (_c *Store_ListEvents_Call) RunAndReturn(...) *Store_ListEvents_Call
- type Store_ListPendingTransfers_Call
- func (_c *Store_ListPendingTransfers_Call) Return(_a0 []indexer.Transfer, _a1 int64, _a2 error) *Store_ListPendingTransfers_Call
- func (_c *Store_ListPendingTransfers_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Store_ListPendingTransfers_Call
- func (_c *Store_ListPendingTransfers_Call) RunAndReturn(...) *Store_ListPendingTransfers_Call
- type Store_ListTokens_Call
- func (_c *Store_ListTokens_Call) Return(_a0 []*indexer.Token, _a1 int64, _a2 error) *Store_ListTokens_Call
- func (_c *Store_ListTokens_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Store_ListTokens_Call
- func (_c *Store_ListTokens_Call) RunAndReturn(run func(context.Context, indexer.Pagination) ([]*indexer.Token, int64, error)) *Store_ListTokens_Call
- type Store_ListTransfers_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
NewService creates a new instance of Service. 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 (*Service) EXPECT ¶
func (_m *Service) EXPECT() *Service_Expecter
func (*Service) GetBalance ¶
func (_m *Service) GetBalance(ctx context.Context, partyID string, admin string, id string) (*indexer.Balance, error)
GetBalance provides a mock function with given fields: ctx, partyID, admin, id
func (*Service) GetPendingTransfers ¶ added in v0.8.0
func (_m *Service) GetPendingTransfers(ctx context.Context, p indexer.Pagination) (*indexer.Page[indexer.Transfer], error)
GetPendingTransfers provides a mock function with given fields: ctx, p
func (*Service) GetTransfer ¶ added in v0.8.0
GetTransfer provides a mock function with given fields: ctx, contractID
func (*Service) GetTransfers ¶ added in v0.8.0
func (_m *Service) GetTransfers(ctx context.Context, partyID string, query indexer.TransferQuery, p indexer.Pagination) (*indexer.Page[indexer.Transfer], error)
GetTransfers provides a mock function with given fields: ctx, partyID, query, p
func (*Service) ListBalancesForParty ¶
func (_m *Service) ListBalancesForParty(ctx context.Context, partyID string, p indexer.Pagination) (*indexer.Page[*indexer.Balance], error)
ListBalancesForParty provides a mock function with given fields: ctx, partyID, p
func (*Service) ListBalancesForToken ¶
func (_m *Service) ListBalancesForToken(ctx context.Context, admin string, id string, p indexer.Pagination) (*indexer.Page[*indexer.Balance], error)
ListBalancesForToken provides a mock function with given fields: ctx, admin, id, p
func (*Service) ListPartyEvents ¶
func (_m *Service) ListPartyEvents(ctx context.Context, partyID string, f indexer.EventFilter, p indexer.Pagination) (*indexer.Page[*indexer.ParsedEvent], error)
ListPartyEvents provides a mock function with given fields: ctx, partyID, f, p
func (*Service) ListTokenEvents ¶
func (_m *Service) ListTokenEvents(ctx context.Context, admin string, id string, f indexer.EventFilter, p indexer.Pagination) (*indexer.Page[*indexer.ParsedEvent], error)
ListTokenEvents provides a mock function with given fields: ctx, admin, id, f, p
type Service_Expecter ¶
type Service_Expecter struct {
// contains filtered or unexported fields
}
func (*Service_Expecter) GetBalance ¶
func (_e *Service_Expecter) GetBalance(ctx interface{}, partyID interface{}, admin interface{}, id interface{}) *Service_GetBalance_Call
GetBalance is a helper method to define mock.On call
- ctx context.Context
- partyID string
- admin string
- id string
func (*Service_Expecter) GetEvent ¶
func (_e *Service_Expecter) GetEvent(ctx interface{}, contractID interface{}) *Service_GetEvent_Call
GetEvent is a helper method to define mock.On call
- ctx context.Context
- contractID string
func (*Service_Expecter) GetPendingTransfers ¶ added in v0.8.0
func (_e *Service_Expecter) GetPendingTransfers(ctx interface{}, p interface{}) *Service_GetPendingTransfers_Call
GetPendingTransfers is a helper method to define mock.On call
- ctx context.Context
- p indexer.Pagination
func (*Service_Expecter) GetToken ¶
func (_e *Service_Expecter) GetToken(ctx interface{}, admin interface{}, id interface{}) *Service_GetToken_Call
GetToken is a helper method to define mock.On call
- ctx context.Context
- admin string
- id string
func (*Service_Expecter) GetTransfer ¶ added in v0.8.0
func (_e *Service_Expecter) GetTransfer(ctx interface{}, contractID interface{}) *Service_GetTransfer_Call
GetTransfer is a helper method to define mock.On call
- ctx context.Context
- contractID string
func (*Service_Expecter) GetTransfers ¶ added in v0.8.0
func (_e *Service_Expecter) GetTransfers(ctx interface{}, partyID interface{}, query interface{}, p interface{}) *Service_GetTransfers_Call
GetTransfers is a helper method to define mock.On call
- ctx context.Context
- partyID string
- query indexer.TransferQuery
- p indexer.Pagination
func (*Service_Expecter) ListBalancesForParty ¶
func (_e *Service_Expecter) ListBalancesForParty(ctx interface{}, partyID interface{}, p interface{}) *Service_ListBalancesForParty_Call
ListBalancesForParty is a helper method to define mock.On call
- ctx context.Context
- partyID string
- p indexer.Pagination
func (*Service_Expecter) ListBalancesForToken ¶
func (_e *Service_Expecter) ListBalancesForToken(ctx interface{}, admin interface{}, id interface{}, p interface{}) *Service_ListBalancesForToken_Call
ListBalancesForToken is a helper method to define mock.On call
- ctx context.Context
- admin string
- id string
- p indexer.Pagination
func (*Service_Expecter) ListPartyEvents ¶
func (_e *Service_Expecter) ListPartyEvents(ctx interface{}, partyID interface{}, f interface{}, p interface{}) *Service_ListPartyEvents_Call
ListPartyEvents is a helper method to define mock.On call
- ctx context.Context
- partyID string
- f indexer.EventFilter
- p indexer.Pagination
func (*Service_Expecter) ListTokenEvents ¶
func (_e *Service_Expecter) ListTokenEvents(ctx interface{}, admin interface{}, id interface{}, f interface{}, p interface{}) *Service_ListTokenEvents_Call
ListTokenEvents is a helper method to define mock.On call
- ctx context.Context
- admin string
- id string
- f indexer.EventFilter
- p indexer.Pagination
func (*Service_Expecter) ListTokens ¶
func (_e *Service_Expecter) ListTokens(ctx interface{}, p interface{}) *Service_ListTokens_Call
ListTokens is a helper method to define mock.On call
- ctx context.Context
- p indexer.Pagination
func (*Service_Expecter) TotalSupply ¶
func (_e *Service_Expecter) TotalSupply(ctx interface{}, admin interface{}, id interface{}) *Service_TotalSupply_Call
TotalSupply is a helper method to define mock.On call
- ctx context.Context
- admin string
- id string
type Service_GetBalance_Call ¶
Service_GetBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBalance'
func (*Service_GetBalance_Call) Return ¶
func (_c *Service_GetBalance_Call) Return(_a0 *indexer.Balance, _a1 error) *Service_GetBalance_Call
func (*Service_GetBalance_Call) Run ¶
func (_c *Service_GetBalance_Call) Run(run func(ctx context.Context, partyID string, admin string, id string)) *Service_GetBalance_Call
func (*Service_GetBalance_Call) RunAndReturn ¶
func (_c *Service_GetBalance_Call) RunAndReturn(run func(context.Context, string, string, string) (*indexer.Balance, error)) *Service_GetBalance_Call
type Service_GetEvent_Call ¶
Service_GetEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEvent'
func (*Service_GetEvent_Call) Return ¶
func (_c *Service_GetEvent_Call) Return(_a0 *indexer.ParsedEvent, _a1 error) *Service_GetEvent_Call
func (*Service_GetEvent_Call) Run ¶
func (_c *Service_GetEvent_Call) Run(run func(ctx context.Context, contractID string)) *Service_GetEvent_Call
func (*Service_GetEvent_Call) RunAndReturn ¶
func (_c *Service_GetEvent_Call) RunAndReturn(run func(context.Context, string) (*indexer.ParsedEvent, error)) *Service_GetEvent_Call
type Service_GetPendingTransfers_Call ¶ added in v0.8.0
Service_GetPendingTransfers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPendingTransfers'
func (*Service_GetPendingTransfers_Call) Return ¶ added in v0.8.0
func (_c *Service_GetPendingTransfers_Call) Return(_a0 *indexer.Page[indexer.Transfer], _a1 error) *Service_GetPendingTransfers_Call
func (*Service_GetPendingTransfers_Call) Run ¶ added in v0.8.0
func (_c *Service_GetPendingTransfers_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Service_GetPendingTransfers_Call
func (*Service_GetPendingTransfers_Call) RunAndReturn ¶ added in v0.8.0
func (_c *Service_GetPendingTransfers_Call) RunAndReturn(run func(context.Context, indexer.Pagination) (*indexer.Page[indexer.Transfer], error)) *Service_GetPendingTransfers_Call
type Service_GetToken_Call ¶
Service_GetToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetToken'
func (*Service_GetToken_Call) Return ¶
func (_c *Service_GetToken_Call) Return(_a0 *indexer.Token, _a1 error) *Service_GetToken_Call
func (*Service_GetToken_Call) Run ¶
func (_c *Service_GetToken_Call) Run(run func(ctx context.Context, admin string, id string)) *Service_GetToken_Call
func (*Service_GetToken_Call) RunAndReturn ¶
func (_c *Service_GetToken_Call) RunAndReturn(run func(context.Context, string, string) (*indexer.Token, error)) *Service_GetToken_Call
type Service_GetTransfer_Call ¶ added in v0.8.0
Service_GetTransfer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransfer'
func (*Service_GetTransfer_Call) Return ¶ added in v0.8.0
func (_c *Service_GetTransfer_Call) Return(_a0 *indexer.Transfer, _a1 error) *Service_GetTransfer_Call
func (*Service_GetTransfer_Call) Run ¶ added in v0.8.0
func (_c *Service_GetTransfer_Call) Run(run func(ctx context.Context, contractID string)) *Service_GetTransfer_Call
func (*Service_GetTransfer_Call) RunAndReturn ¶ added in v0.8.0
func (_c *Service_GetTransfer_Call) RunAndReturn(run func(context.Context, string) (*indexer.Transfer, error)) *Service_GetTransfer_Call
type Service_GetTransfers_Call ¶ added in v0.8.0
Service_GetTransfers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransfers'
func (*Service_GetTransfers_Call) Return ¶ added in v0.8.0
func (_c *Service_GetTransfers_Call) Return(_a0 *indexer.Page[indexer.Transfer], _a1 error) *Service_GetTransfers_Call
func (*Service_GetTransfers_Call) Run ¶ added in v0.8.0
func (_c *Service_GetTransfers_Call) Run(run func(ctx context.Context, partyID string, query indexer.TransferQuery, p indexer.Pagination)) *Service_GetTransfers_Call
func (*Service_GetTransfers_Call) RunAndReturn ¶ added in v0.8.0
func (_c *Service_GetTransfers_Call) RunAndReturn(run func(context.Context, string, indexer.TransferQuery, indexer.Pagination) (*indexer.Page[indexer.Transfer], error)) *Service_GetTransfers_Call
type Service_ListBalancesForParty_Call ¶
Service_ListBalancesForParty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBalancesForParty'
func (*Service_ListBalancesForParty_Call) Return ¶
func (_c *Service_ListBalancesForParty_Call) Return(_a0 *indexer.Page[*indexer.Balance], _a1 error) *Service_ListBalancesForParty_Call
func (*Service_ListBalancesForParty_Call) Run ¶
func (_c *Service_ListBalancesForParty_Call) Run(run func(ctx context.Context, partyID string, p indexer.Pagination)) *Service_ListBalancesForParty_Call
func (*Service_ListBalancesForParty_Call) RunAndReturn ¶
func (_c *Service_ListBalancesForParty_Call) RunAndReturn(run func(context.Context, string, indexer.Pagination) (*indexer.Page[*indexer.Balance], error)) *Service_ListBalancesForParty_Call
type Service_ListBalancesForToken_Call ¶
Service_ListBalancesForToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBalancesForToken'
func (*Service_ListBalancesForToken_Call) Return ¶
func (_c *Service_ListBalancesForToken_Call) Return(_a0 *indexer.Page[*indexer.Balance], _a1 error) *Service_ListBalancesForToken_Call
func (*Service_ListBalancesForToken_Call) Run ¶
func (_c *Service_ListBalancesForToken_Call) Run(run func(ctx context.Context, admin string, id string, p indexer.Pagination)) *Service_ListBalancesForToken_Call
func (*Service_ListBalancesForToken_Call) RunAndReturn ¶
func (_c *Service_ListBalancesForToken_Call) RunAndReturn(run func(context.Context, string, string, indexer.Pagination) (*indexer.Page[*indexer.Balance], error)) *Service_ListBalancesForToken_Call
type Service_ListPartyEvents_Call ¶
Service_ListPartyEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPartyEvents'
func (*Service_ListPartyEvents_Call) Return ¶
func (_c *Service_ListPartyEvents_Call) Return(_a0 *indexer.Page[*indexer.ParsedEvent], _a1 error) *Service_ListPartyEvents_Call
func (*Service_ListPartyEvents_Call) Run ¶
func (_c *Service_ListPartyEvents_Call) Run(run func(ctx context.Context, partyID string, f indexer.EventFilter, p indexer.Pagination)) *Service_ListPartyEvents_Call
func (*Service_ListPartyEvents_Call) RunAndReturn ¶
func (_c *Service_ListPartyEvents_Call) RunAndReturn(run func(context.Context, string, indexer.EventFilter, indexer.Pagination) (*indexer.Page[*indexer.ParsedEvent], error)) *Service_ListPartyEvents_Call
type Service_ListTokenEvents_Call ¶
Service_ListTokenEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTokenEvents'
func (*Service_ListTokenEvents_Call) Return ¶
func (_c *Service_ListTokenEvents_Call) Return(_a0 *indexer.Page[*indexer.ParsedEvent], _a1 error) *Service_ListTokenEvents_Call
func (*Service_ListTokenEvents_Call) Run ¶
func (_c *Service_ListTokenEvents_Call) Run(run func(ctx context.Context, admin string, id string, f indexer.EventFilter, p indexer.Pagination)) *Service_ListTokenEvents_Call
func (*Service_ListTokenEvents_Call) RunAndReturn ¶
func (_c *Service_ListTokenEvents_Call) RunAndReturn(run func(context.Context, string, string, indexer.EventFilter, indexer.Pagination) (*indexer.Page[*indexer.ParsedEvent], error)) *Service_ListTokenEvents_Call
type Service_ListTokens_Call ¶
Service_ListTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTokens'
func (*Service_ListTokens_Call) Return ¶
func (_c *Service_ListTokens_Call) Return(_a0 *indexer.Page[*indexer.Token], _a1 error) *Service_ListTokens_Call
func (*Service_ListTokens_Call) Run ¶
func (_c *Service_ListTokens_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Service_ListTokens_Call
func (*Service_ListTokens_Call) RunAndReturn ¶
func (_c *Service_ListTokens_Call) RunAndReturn(run func(context.Context, indexer.Pagination) (*indexer.Page[*indexer.Token], error)) *Service_ListTokens_Call
type Service_TotalSupply_Call ¶
Service_TotalSupply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TotalSupply'
func (*Service_TotalSupply_Call) Return ¶
func (_c *Service_TotalSupply_Call) Return(_a0 string, _a1 error) *Service_TotalSupply_Call
func (*Service_TotalSupply_Call) Run ¶
func (_c *Service_TotalSupply_Call) Run(run func(ctx context.Context, admin string, id string)) *Service_TotalSupply_Call
func (*Service_TotalSupply_Call) RunAndReturn ¶
func (_c *Service_TotalSupply_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *Service_TotalSupply_Call
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
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) GetBalance ¶
func (_m *Store) GetBalance(ctx context.Context, partyID string, admin string, id string) (*indexer.Balance, error)
GetBalance provides a mock function with given fields: ctx, partyID, admin, id
func (*Store) GetTransfer ¶ added in v0.8.0
GetTransfer provides a mock function with given fields: ctx, contractID
func (*Store) ListBalancesForParty ¶
func (_m *Store) ListBalancesForParty(ctx context.Context, partyID string, p indexer.Pagination) ([]*indexer.Balance, int64, error)
ListBalancesForParty provides a mock function with given fields: ctx, partyID, p
func (*Store) ListBalancesForToken ¶
func (_m *Store) ListBalancesForToken(ctx context.Context, admin string, id string, p indexer.Pagination) ([]*indexer.Balance, int64, error)
ListBalancesForToken provides a mock function with given fields: ctx, admin, id, p
func (*Store) ListEvents ¶
func (_m *Store) ListEvents(ctx context.Context, f indexer.EventFilter, p indexer.Pagination) ([]*indexer.ParsedEvent, int64, error)
ListEvents provides a mock function with given fields: ctx, f, p
func (*Store) ListPendingTransfers ¶ added in v0.8.0
func (_m *Store) ListPendingTransfers(ctx context.Context, p indexer.Pagination) ([]indexer.Transfer, int64, error)
ListPendingTransfers provides a mock function with given fields: ctx, p
func (*Store) ListTokens ¶
func (_m *Store) ListTokens(ctx context.Context, p indexer.Pagination) ([]*indexer.Token, int64, error)
ListTokens provides a mock function with given fields: ctx, p
func (*Store) ListTransfers ¶ added in v0.8.0
func (_m *Store) ListTransfers(ctx context.Context, partyID string, query indexer.TransferQuery, p indexer.Pagination) ([]indexer.Transfer, int64, error)
ListTransfers provides a mock function with given fields: ctx, partyID, query, p
type Store_Expecter ¶
type Store_Expecter struct {
// contains filtered or unexported fields
}
func (*Store_Expecter) GetBalance ¶
func (_e *Store_Expecter) GetBalance(ctx interface{}, partyID interface{}, admin interface{}, id interface{}) *Store_GetBalance_Call
GetBalance is a helper method to define mock.On call
- ctx context.Context
- partyID string
- admin string
- id string
func (*Store_Expecter) GetEvent ¶
func (_e *Store_Expecter) GetEvent(ctx interface{}, contractID interface{}) *Store_GetEvent_Call
GetEvent is a helper method to define mock.On call
- ctx context.Context
- contractID string
func (*Store_Expecter) GetToken ¶
func (_e *Store_Expecter) GetToken(ctx interface{}, admin interface{}, id interface{}) *Store_GetToken_Call
GetToken is a helper method to define mock.On call
- ctx context.Context
- admin string
- id string
func (*Store_Expecter) GetTransfer ¶ added in v0.8.0
func (_e *Store_Expecter) GetTransfer(ctx interface{}, contractID interface{}) *Store_GetTransfer_Call
GetTransfer is a helper method to define mock.On call
- ctx context.Context
- contractID string
func (*Store_Expecter) ListBalancesForParty ¶
func (_e *Store_Expecter) ListBalancesForParty(ctx interface{}, partyID interface{}, p interface{}) *Store_ListBalancesForParty_Call
ListBalancesForParty is a helper method to define mock.On call
- ctx context.Context
- partyID string
- p indexer.Pagination
func (*Store_Expecter) ListBalancesForToken ¶
func (_e *Store_Expecter) ListBalancesForToken(ctx interface{}, admin interface{}, id interface{}, p interface{}) *Store_ListBalancesForToken_Call
ListBalancesForToken is a helper method to define mock.On call
- ctx context.Context
- admin string
- id string
- p indexer.Pagination
func (*Store_Expecter) ListEvents ¶
func (_e *Store_Expecter) ListEvents(ctx interface{}, f interface{}, p interface{}) *Store_ListEvents_Call
ListEvents is a helper method to define mock.On call
- ctx context.Context
- f indexer.EventFilter
- p indexer.Pagination
func (*Store_Expecter) ListPendingTransfers ¶ added in v0.8.0
func (_e *Store_Expecter) ListPendingTransfers(ctx interface{}, p interface{}) *Store_ListPendingTransfers_Call
ListPendingTransfers is a helper method to define mock.On call
- ctx context.Context
- p indexer.Pagination
func (*Store_Expecter) ListTokens ¶
func (_e *Store_Expecter) ListTokens(ctx interface{}, p interface{}) *Store_ListTokens_Call
ListTokens is a helper method to define mock.On call
- ctx context.Context
- p indexer.Pagination
func (*Store_Expecter) ListTransfers ¶ added in v0.8.0
func (_e *Store_Expecter) ListTransfers(ctx interface{}, partyID interface{}, query interface{}, p interface{}) *Store_ListTransfers_Call
ListTransfers is a helper method to define mock.On call
- ctx context.Context
- partyID string
- query indexer.TransferQuery
- p indexer.Pagination
type Store_GetBalance_Call ¶
Store_GetBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBalance'
func (*Store_GetBalance_Call) Return ¶
func (_c *Store_GetBalance_Call) Return(_a0 *indexer.Balance, _a1 error) *Store_GetBalance_Call
func (*Store_GetBalance_Call) Run ¶
func (_c *Store_GetBalance_Call) Run(run func(ctx context.Context, partyID string, admin string, id string)) *Store_GetBalance_Call
func (*Store_GetBalance_Call) RunAndReturn ¶
func (_c *Store_GetBalance_Call) RunAndReturn(run func(context.Context, string, string, string) (*indexer.Balance, error)) *Store_GetBalance_Call
type Store_GetEvent_Call ¶
Store_GetEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEvent'
func (*Store_GetEvent_Call) Return ¶
func (_c *Store_GetEvent_Call) Return(_a0 *indexer.ParsedEvent, _a1 error) *Store_GetEvent_Call
func (*Store_GetEvent_Call) Run ¶
func (_c *Store_GetEvent_Call) Run(run func(ctx context.Context, contractID string)) *Store_GetEvent_Call
func (*Store_GetEvent_Call) RunAndReturn ¶
func (_c *Store_GetEvent_Call) RunAndReturn(run func(context.Context, string) (*indexer.ParsedEvent, error)) *Store_GetEvent_Call
type Store_GetToken_Call ¶
Store_GetToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetToken'
func (*Store_GetToken_Call) Return ¶
func (_c *Store_GetToken_Call) Return(_a0 *indexer.Token, _a1 error) *Store_GetToken_Call
func (*Store_GetToken_Call) Run ¶
func (_c *Store_GetToken_Call) Run(run func(ctx context.Context, admin string, id string)) *Store_GetToken_Call
func (*Store_GetToken_Call) RunAndReturn ¶
func (_c *Store_GetToken_Call) RunAndReturn(run func(context.Context, string, string) (*indexer.Token, error)) *Store_GetToken_Call
type Store_GetTransfer_Call ¶ added in v0.8.0
Store_GetTransfer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransfer'
func (*Store_GetTransfer_Call) Return ¶ added in v0.8.0
func (_c *Store_GetTransfer_Call) Return(_a0 *indexer.Transfer, _a1 error) *Store_GetTransfer_Call
func (*Store_GetTransfer_Call) Run ¶ added in v0.8.0
func (_c *Store_GetTransfer_Call) Run(run func(ctx context.Context, contractID string)) *Store_GetTransfer_Call
func (*Store_GetTransfer_Call) RunAndReturn ¶ added in v0.8.0
func (_c *Store_GetTransfer_Call) RunAndReturn(run func(context.Context, string) (*indexer.Transfer, error)) *Store_GetTransfer_Call
type Store_ListBalancesForParty_Call ¶
Store_ListBalancesForParty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBalancesForParty'
func (*Store_ListBalancesForParty_Call) Return ¶
func (_c *Store_ListBalancesForParty_Call) Return(_a0 []*indexer.Balance, _a1 int64, _a2 error) *Store_ListBalancesForParty_Call
func (*Store_ListBalancesForParty_Call) Run ¶
func (_c *Store_ListBalancesForParty_Call) Run(run func(ctx context.Context, partyID string, p indexer.Pagination)) *Store_ListBalancesForParty_Call
func (*Store_ListBalancesForParty_Call) RunAndReturn ¶
func (_c *Store_ListBalancesForParty_Call) RunAndReturn(run func(context.Context, string, indexer.Pagination) ([]*indexer.Balance, int64, error)) *Store_ListBalancesForParty_Call
type Store_ListBalancesForToken_Call ¶
Store_ListBalancesForToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBalancesForToken'
func (*Store_ListBalancesForToken_Call) Return ¶
func (_c *Store_ListBalancesForToken_Call) Return(_a0 []*indexer.Balance, _a1 int64, _a2 error) *Store_ListBalancesForToken_Call
func (*Store_ListBalancesForToken_Call) Run ¶
func (_c *Store_ListBalancesForToken_Call) Run(run func(ctx context.Context, admin string, id string, p indexer.Pagination)) *Store_ListBalancesForToken_Call
func (*Store_ListBalancesForToken_Call) RunAndReturn ¶
func (_c *Store_ListBalancesForToken_Call) RunAndReturn(run func(context.Context, string, string, indexer.Pagination) ([]*indexer.Balance, int64, error)) *Store_ListBalancesForToken_Call
type Store_ListEvents_Call ¶
Store_ListEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEvents'
func (*Store_ListEvents_Call) Return ¶
func (_c *Store_ListEvents_Call) Return(_a0 []*indexer.ParsedEvent, _a1 int64, _a2 error) *Store_ListEvents_Call
func (*Store_ListEvents_Call) Run ¶
func (_c *Store_ListEvents_Call) Run(run func(ctx context.Context, f indexer.EventFilter, p indexer.Pagination)) *Store_ListEvents_Call
func (*Store_ListEvents_Call) RunAndReturn ¶
func (_c *Store_ListEvents_Call) RunAndReturn(run func(context.Context, indexer.EventFilter, indexer.Pagination) ([]*indexer.ParsedEvent, int64, error)) *Store_ListEvents_Call
type Store_ListPendingTransfers_Call ¶ added in v0.8.0
Store_ListPendingTransfers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPendingTransfers'
func (*Store_ListPendingTransfers_Call) Return ¶ added in v0.8.0
func (_c *Store_ListPendingTransfers_Call) Return(_a0 []indexer.Transfer, _a1 int64, _a2 error) *Store_ListPendingTransfers_Call
func (*Store_ListPendingTransfers_Call) Run ¶ added in v0.8.0
func (_c *Store_ListPendingTransfers_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Store_ListPendingTransfers_Call
func (*Store_ListPendingTransfers_Call) RunAndReturn ¶ added in v0.8.0
func (_c *Store_ListPendingTransfers_Call) RunAndReturn(run func(context.Context, indexer.Pagination) ([]indexer.Transfer, int64, error)) *Store_ListPendingTransfers_Call
type Store_ListTokens_Call ¶
Store_ListTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTokens'
func (*Store_ListTokens_Call) Return ¶
func (_c *Store_ListTokens_Call) Return(_a0 []*indexer.Token, _a1 int64, _a2 error) *Store_ListTokens_Call
func (*Store_ListTokens_Call) Run ¶
func (_c *Store_ListTokens_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Store_ListTokens_Call
func (*Store_ListTokens_Call) RunAndReturn ¶
func (_c *Store_ListTokens_Call) RunAndReturn(run func(context.Context, indexer.Pagination) ([]*indexer.Token, int64, error)) *Store_ListTokens_Call
type Store_ListTransfers_Call ¶ added in v0.8.0
Store_ListTransfers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTransfers'
func (*Store_ListTransfers_Call) Return ¶ added in v0.8.0
func (_c *Store_ListTransfers_Call) Return(_a0 []indexer.Transfer, _a1 int64, _a2 error) *Store_ListTransfers_Call
func (*Store_ListTransfers_Call) Run ¶ added in v0.8.0
func (_c *Store_ListTransfers_Call) Run(run func(ctx context.Context, partyID string, query indexer.TransferQuery, p indexer.Pagination)) *Store_ListTransfers_Call
func (*Store_ListTransfers_Call) RunAndReturn ¶ added in v0.8.0
func (_c *Store_ListTransfers_Call) RunAndReturn(run func(context.Context, string, indexer.TransferQuery, indexer.Pagination) ([]indexer.Transfer, int64, error)) *Store_ListTransfers_Call