Documentation
¶
Index ¶
- type Service
- func (_m *Service) EXPECT() *Service_Expecter
- func (_m *Service) GetAllPendingOffers(ctx context.Context, p indexer.Pagination) (*indexer.Page[indexer.PendingOffer], error)
- 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) GetPendingOffersForParty(ctx context.Context, partyID string, p indexer.Pagination) (*indexer.Page[indexer.PendingOffer], error)
- func (_m *Service) GetToken(ctx context.Context, admin string, id string) (*indexer.Token, 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) GetAllPendingOffers(ctx interface{}, p interface{}) *Service_GetAllPendingOffers_Call
- 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) GetPendingOffersForParty(ctx interface{}, partyID interface{}, p interface{}) *Service_GetPendingOffersForParty_Call
- func (_e *Service_Expecter) GetToken(ctx interface{}, admin interface{}, id interface{}) *Service_GetToken_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_GetAllPendingOffers_Call
- func (_c *Service_GetAllPendingOffers_Call) Return(_a0 *indexer.Page[indexer.PendingOffer], _a1 error) *Service_GetAllPendingOffers_Call
- func (_c *Service_GetAllPendingOffers_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Service_GetAllPendingOffers_Call
- func (_c *Service_GetAllPendingOffers_Call) RunAndReturn(...) *Service_GetAllPendingOffers_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_GetPendingOffersForParty_Call
- func (_c *Service_GetPendingOffersForParty_Call) Return(_a0 *indexer.Page[indexer.PendingOffer], _a1 error) *Service_GetPendingOffersForParty_Call
- func (_c *Service_GetPendingOffersForParty_Call) Run(run func(ctx context.Context, partyID string, p indexer.Pagination)) *Service_GetPendingOffersForParty_Call
- func (_c *Service_GetPendingOffersForParty_Call) RunAndReturn(...) *Service_GetPendingOffersForParty_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_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) ListAllPendingOffers(ctx context.Context, p indexer.Pagination) ([]indexer.PendingOffer, int64, 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) ListPendingOffersForParty(ctx context.Context, partyID string, p indexer.Pagination) ([]indexer.PendingOffer, int64, error)
- func (_m *Store) ListTokens(ctx context.Context, p indexer.Pagination) ([]*indexer.Token, 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) ListAllPendingOffers(ctx interface{}, p interface{}) *Store_ListAllPendingOffers_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) ListPendingOffersForParty(ctx interface{}, partyID interface{}, p interface{}) *Store_ListPendingOffersForParty_Call
- func (_e *Store_Expecter) ListTokens(ctx interface{}, p interface{}) *Store_ListTokens_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_ListAllPendingOffers_Call
- func (_c *Store_ListAllPendingOffers_Call) Return(_a0 []indexer.PendingOffer, _a1 int64, _a2 error) *Store_ListAllPendingOffers_Call
- func (_c *Store_ListAllPendingOffers_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Store_ListAllPendingOffers_Call
- func (_c *Store_ListAllPendingOffers_Call) RunAndReturn(...) *Store_ListAllPendingOffers_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_ListPendingOffersForParty_Call
- func (_c *Store_ListPendingOffersForParty_Call) Return(_a0 []indexer.PendingOffer, _a1 int64, _a2 error) *Store_ListPendingOffersForParty_Call
- func (_c *Store_ListPendingOffersForParty_Call) Run(run func(ctx context.Context, partyID string, p indexer.Pagination)) *Store_ListPendingOffersForParty_Call
- func (_c *Store_ListPendingOffersForParty_Call) RunAndReturn(...) *Store_ListPendingOffersForParty_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
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) GetAllPendingOffers ¶
func (_m *Service) GetAllPendingOffers(ctx context.Context, p indexer.Pagination) (*indexer.Page[indexer.PendingOffer], error)
GetAllPendingOffers provides a mock function with given fields: ctx, p
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) GetPendingOffersForParty ¶
func (_m *Service) GetPendingOffersForParty(ctx context.Context, partyID string, p indexer.Pagination) (*indexer.Page[indexer.PendingOffer], error)
GetPendingOffersForParty provides a mock function with given fields: ctx, partyID, p
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) GetAllPendingOffers ¶
func (_e *Service_Expecter) GetAllPendingOffers(ctx interface{}, p interface{}) *Service_GetAllPendingOffers_Call
GetAllPendingOffers is a helper method to define mock.On call
- ctx context.Context
- p indexer.Pagination
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) GetPendingOffersForParty ¶
func (_e *Service_Expecter) GetPendingOffersForParty(ctx interface{}, partyID interface{}, p interface{}) *Service_GetPendingOffersForParty_Call
GetPendingOffersForParty is a helper method to define mock.On call
- ctx context.Context
- partyID string
- 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) 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_GetAllPendingOffers_Call ¶
Service_GetAllPendingOffers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllPendingOffers'
func (*Service_GetAllPendingOffers_Call) Return ¶
func (_c *Service_GetAllPendingOffers_Call) Return(_a0 *indexer.Page[indexer.PendingOffer], _a1 error) *Service_GetAllPendingOffers_Call
func (*Service_GetAllPendingOffers_Call) Run ¶
func (_c *Service_GetAllPendingOffers_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Service_GetAllPendingOffers_Call
func (*Service_GetAllPendingOffers_Call) RunAndReturn ¶
func (_c *Service_GetAllPendingOffers_Call) RunAndReturn(run func(context.Context, indexer.Pagination) (*indexer.Page[indexer.PendingOffer], error)) *Service_GetAllPendingOffers_Call
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_GetPendingOffersForParty_Call ¶
Service_GetPendingOffersForParty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPendingOffersForParty'
func (*Service_GetPendingOffersForParty_Call) Return ¶
func (_c *Service_GetPendingOffersForParty_Call) Return(_a0 *indexer.Page[indexer.PendingOffer], _a1 error) *Service_GetPendingOffersForParty_Call
func (*Service_GetPendingOffersForParty_Call) Run ¶
func (_c *Service_GetPendingOffersForParty_Call) Run(run func(ctx context.Context, partyID string, p indexer.Pagination)) *Service_GetPendingOffersForParty_Call
func (*Service_GetPendingOffersForParty_Call) RunAndReturn ¶
func (_c *Service_GetPendingOffersForParty_Call) RunAndReturn(run func(context.Context, string, indexer.Pagination) (*indexer.Page[indexer.PendingOffer], error)) *Service_GetPendingOffersForParty_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_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) ListAllPendingOffers ¶
func (_m *Store) ListAllPendingOffers(ctx context.Context, p indexer.Pagination) ([]indexer.PendingOffer, int64, error)
ListAllPendingOffers provides a mock function with given fields: ctx, p
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) ListPendingOffersForParty ¶
func (_m *Store) ListPendingOffersForParty(ctx context.Context, partyID string, p indexer.Pagination) ([]indexer.PendingOffer, int64, error)
ListPendingOffersForParty provides a mock function with given fields: ctx, partyID, 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) ListAllPendingOffers ¶
func (_e *Store_Expecter) ListAllPendingOffers(ctx interface{}, p interface{}) *Store_ListAllPendingOffers_Call
ListAllPendingOffers is a helper method to define mock.On call
- ctx context.Context
- p indexer.Pagination
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) ListPendingOffersForParty ¶
func (_e *Store_Expecter) ListPendingOffersForParty(ctx interface{}, partyID interface{}, p interface{}) *Store_ListPendingOffersForParty_Call
ListPendingOffersForParty is a helper method to define mock.On call
- ctx context.Context
- partyID string
- 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
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_ListAllPendingOffers_Call ¶
Store_ListAllPendingOffers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAllPendingOffers'
func (*Store_ListAllPendingOffers_Call) Return ¶
func (_c *Store_ListAllPendingOffers_Call) Return(_a0 []indexer.PendingOffer, _a1 int64, _a2 error) *Store_ListAllPendingOffers_Call
func (*Store_ListAllPendingOffers_Call) Run ¶
func (_c *Store_ListAllPendingOffers_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Store_ListAllPendingOffers_Call
func (*Store_ListAllPendingOffers_Call) RunAndReturn ¶
func (_c *Store_ListAllPendingOffers_Call) RunAndReturn(run func(context.Context, indexer.Pagination) ([]indexer.PendingOffer, int64, error)) *Store_ListAllPendingOffers_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_ListPendingOffersForParty_Call ¶
Store_ListPendingOffersForParty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPendingOffersForParty'
func (*Store_ListPendingOffersForParty_Call) Return ¶
func (_c *Store_ListPendingOffersForParty_Call) Return(_a0 []indexer.PendingOffer, _a1 int64, _a2 error) *Store_ListPendingOffersForParty_Call
func (*Store_ListPendingOffersForParty_Call) Run ¶
func (_c *Store_ListPendingOffersForParty_Call) Run(run func(ctx context.Context, partyID string, p indexer.Pagination)) *Store_ListPendingOffersForParty_Call
func (*Store_ListPendingOffersForParty_Call) RunAndReturn ¶
func (_c *Store_ListPendingOffersForParty_Call) RunAndReturn(run func(context.Context, string, indexer.Pagination) ([]indexer.PendingOffer, int64, error)) *Store_ListPendingOffersForParty_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