Documentation
¶
Index ¶
- type Client
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) GetAllPendingOffers(ctx context.Context, p indexer.Pagination) (*indexer.Page[indexer.PendingOffer], error)
- func (_m *Client) GetBalance(ctx context.Context, partyID string, admin string, id string) (*indexer.Balance, error)
- func (_m *Client) GetEvent(ctx context.Context, contractID string) (*indexer.ParsedEvent, error)
- func (_m *Client) GetPendingOffersForParty(ctx context.Context, partyID string, p indexer.Pagination) (*indexer.Page[indexer.PendingOffer], error)
- func (_m *Client) GetToken(ctx context.Context, admin string, id string) (*indexer.Token, error)
- func (_m *Client) ListBalancesForParty(ctx context.Context, partyID string, p indexer.Pagination) (*indexer.Page[*indexer.Balance], error)
- func (_m *Client) ListBalancesForToken(ctx context.Context, admin string, id string, p indexer.Pagination) (*indexer.Page[*indexer.Balance], error)
- func (_m *Client) ListPartyEvents(ctx context.Context, partyID string, f indexer.EventFilter, ...) (*indexer.Page[*indexer.ParsedEvent], error)
- func (_m *Client) ListTokenEvents(ctx context.Context, admin string, id string, f indexer.EventFilter, ...) (*indexer.Page[*indexer.ParsedEvent], error)
- func (_m *Client) ListTokens(ctx context.Context, p indexer.Pagination) (*indexer.Page[*indexer.Token], error)
- func (_m *Client) TotalSupply(ctx context.Context, admin string, id string) (string, error)
- type Client_Expecter
- func (_e *Client_Expecter) GetAllPendingOffers(ctx interface{}, p interface{}) *Client_GetAllPendingOffers_Call
- func (_e *Client_Expecter) GetBalance(ctx interface{}, partyID interface{}, admin interface{}, id interface{}) *Client_GetBalance_Call
- func (_e *Client_Expecter) GetEvent(ctx interface{}, contractID interface{}) *Client_GetEvent_Call
- func (_e *Client_Expecter) GetPendingOffersForParty(ctx interface{}, partyID interface{}, p interface{}) *Client_GetPendingOffersForParty_Call
- func (_e *Client_Expecter) GetToken(ctx interface{}, admin interface{}, id interface{}) *Client_GetToken_Call
- func (_e *Client_Expecter) ListBalancesForParty(ctx interface{}, partyID interface{}, p interface{}) *Client_ListBalancesForParty_Call
- func (_e *Client_Expecter) ListBalancesForToken(ctx interface{}, admin interface{}, id interface{}, p interface{}) *Client_ListBalancesForToken_Call
- func (_e *Client_Expecter) ListPartyEvents(ctx interface{}, partyID interface{}, f interface{}, p interface{}) *Client_ListPartyEvents_Call
- func (_e *Client_Expecter) ListTokenEvents(ctx interface{}, admin interface{}, id interface{}, f interface{}, ...) *Client_ListTokenEvents_Call
- func (_e *Client_Expecter) ListTokens(ctx interface{}, p interface{}) *Client_ListTokens_Call
- func (_e *Client_Expecter) TotalSupply(ctx interface{}, admin interface{}, id interface{}) *Client_TotalSupply_Call
- type Client_GetAllPendingOffers_Call
- func (_c *Client_GetAllPendingOffers_Call) Return(_a0 *indexer.Page[indexer.PendingOffer], _a1 error) *Client_GetAllPendingOffers_Call
- func (_c *Client_GetAllPendingOffers_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Client_GetAllPendingOffers_Call
- func (_c *Client_GetAllPendingOffers_Call) RunAndReturn(...) *Client_GetAllPendingOffers_Call
- type Client_GetBalance_Call
- func (_c *Client_GetBalance_Call) Return(_a0 *indexer.Balance, _a1 error) *Client_GetBalance_Call
- func (_c *Client_GetBalance_Call) Run(run func(ctx context.Context, partyID string, admin string, id string)) *Client_GetBalance_Call
- func (_c *Client_GetBalance_Call) RunAndReturn(run func(context.Context, string, string, string) (*indexer.Balance, error)) *Client_GetBalance_Call
- type Client_GetEvent_Call
- func (_c *Client_GetEvent_Call) Return(_a0 *indexer.ParsedEvent, _a1 error) *Client_GetEvent_Call
- func (_c *Client_GetEvent_Call) Run(run func(ctx context.Context, contractID string)) *Client_GetEvent_Call
- func (_c *Client_GetEvent_Call) RunAndReturn(run func(context.Context, string) (*indexer.ParsedEvent, error)) *Client_GetEvent_Call
- type Client_GetPendingOffersForParty_Call
- func (_c *Client_GetPendingOffersForParty_Call) Return(_a0 *indexer.Page[indexer.PendingOffer], _a1 error) *Client_GetPendingOffersForParty_Call
- func (_c *Client_GetPendingOffersForParty_Call) Run(run func(ctx context.Context, partyID string, p indexer.Pagination)) *Client_GetPendingOffersForParty_Call
- func (_c *Client_GetPendingOffersForParty_Call) RunAndReturn(...) *Client_GetPendingOffersForParty_Call
- type Client_GetToken_Call
- func (_c *Client_GetToken_Call) Return(_a0 *indexer.Token, _a1 error) *Client_GetToken_Call
- func (_c *Client_GetToken_Call) Run(run func(ctx context.Context, admin string, id string)) *Client_GetToken_Call
- func (_c *Client_GetToken_Call) RunAndReturn(run func(context.Context, string, string) (*indexer.Token, error)) *Client_GetToken_Call
- type Client_ListBalancesForParty_Call
- func (_c *Client_ListBalancesForParty_Call) Return(_a0 *indexer.Page[*indexer.Balance], _a1 error) *Client_ListBalancesForParty_Call
- func (_c *Client_ListBalancesForParty_Call) Run(run func(ctx context.Context, partyID string, p indexer.Pagination)) *Client_ListBalancesForParty_Call
- func (_c *Client_ListBalancesForParty_Call) RunAndReturn(...) *Client_ListBalancesForParty_Call
- type Client_ListBalancesForToken_Call
- func (_c *Client_ListBalancesForToken_Call) Return(_a0 *indexer.Page[*indexer.Balance], _a1 error) *Client_ListBalancesForToken_Call
- func (_c *Client_ListBalancesForToken_Call) Run(run func(ctx context.Context, admin string, id string, p indexer.Pagination)) *Client_ListBalancesForToken_Call
- func (_c *Client_ListBalancesForToken_Call) RunAndReturn(...) *Client_ListBalancesForToken_Call
- type Client_ListPartyEvents_Call
- func (_c *Client_ListPartyEvents_Call) Return(_a0 *indexer.Page[*indexer.ParsedEvent], _a1 error) *Client_ListPartyEvents_Call
- func (_c *Client_ListPartyEvents_Call) Run(run func(ctx context.Context, partyID string, f indexer.EventFilter, ...)) *Client_ListPartyEvents_Call
- func (_c *Client_ListPartyEvents_Call) RunAndReturn(...) *Client_ListPartyEvents_Call
- type Client_ListTokenEvents_Call
- type Client_ListTokens_Call
- func (_c *Client_ListTokens_Call) Return(_a0 *indexer.Page[*indexer.Token], _a1 error) *Client_ListTokens_Call
- func (_c *Client_ListTokens_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Client_ListTokens_Call
- func (_c *Client_ListTokens_Call) RunAndReturn(...) *Client_ListTokens_Call
- type Client_TotalSupply_Call
- func (_c *Client_TotalSupply_Call) Return(_a0 string, _a1 error) *Client_TotalSupply_Call
- func (_c *Client_TotalSupply_Call) Run(run func(ctx context.Context, admin string, id string)) *Client_TotalSupply_Call
- func (_c *Client_TotalSupply_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *Client_TotalSupply_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. 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 (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) GetAllPendingOffers ¶
func (_m *Client) GetAllPendingOffers(ctx context.Context, p indexer.Pagination) (*indexer.Page[indexer.PendingOffer], error)
GetAllPendingOffers provides a mock function with given fields: ctx, p
func (*Client) GetBalance ¶
func (_m *Client) 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 (*Client) GetPendingOffersForParty ¶
func (_m *Client) 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 (*Client) ListBalancesForParty ¶
func (_m *Client) 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 (*Client) ListBalancesForToken ¶
func (_m *Client) 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 (*Client) ListPartyEvents ¶
func (_m *Client) 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 (*Client) ListTokenEvents ¶
func (_m *Client) 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 Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) GetAllPendingOffers ¶
func (_e *Client_Expecter) GetAllPendingOffers(ctx interface{}, p interface{}) *Client_GetAllPendingOffers_Call
GetAllPendingOffers is a helper method to define mock.On call
- ctx context.Context
- p indexer.Pagination
func (*Client_Expecter) GetBalance ¶
func (_e *Client_Expecter) GetBalance(ctx interface{}, partyID interface{}, admin interface{}, id interface{}) *Client_GetBalance_Call
GetBalance is a helper method to define mock.On call
- ctx context.Context
- partyID string
- admin string
- id string
func (*Client_Expecter) GetEvent ¶
func (_e *Client_Expecter) GetEvent(ctx interface{}, contractID interface{}) *Client_GetEvent_Call
GetEvent is a helper method to define mock.On call
- ctx context.Context
- contractID string
func (*Client_Expecter) GetPendingOffersForParty ¶
func (_e *Client_Expecter) GetPendingOffersForParty(ctx interface{}, partyID interface{}, p interface{}) *Client_GetPendingOffersForParty_Call
GetPendingOffersForParty is a helper method to define mock.On call
- ctx context.Context
- partyID string
- p indexer.Pagination
func (*Client_Expecter) GetToken ¶
func (_e *Client_Expecter) GetToken(ctx interface{}, admin interface{}, id interface{}) *Client_GetToken_Call
GetToken is a helper method to define mock.On call
- ctx context.Context
- admin string
- id string
func (*Client_Expecter) ListBalancesForParty ¶
func (_e *Client_Expecter) ListBalancesForParty(ctx interface{}, partyID interface{}, p interface{}) *Client_ListBalancesForParty_Call
ListBalancesForParty is a helper method to define mock.On call
- ctx context.Context
- partyID string
- p indexer.Pagination
func (*Client_Expecter) ListBalancesForToken ¶
func (_e *Client_Expecter) ListBalancesForToken(ctx interface{}, admin interface{}, id interface{}, p interface{}) *Client_ListBalancesForToken_Call
ListBalancesForToken is a helper method to define mock.On call
- ctx context.Context
- admin string
- id string
- p indexer.Pagination
func (*Client_Expecter) ListPartyEvents ¶
func (_e *Client_Expecter) ListPartyEvents(ctx interface{}, partyID interface{}, f interface{}, p interface{}) *Client_ListPartyEvents_Call
ListPartyEvents is a helper method to define mock.On call
- ctx context.Context
- partyID string
- f indexer.EventFilter
- p indexer.Pagination
func (*Client_Expecter) ListTokenEvents ¶
func (_e *Client_Expecter) ListTokenEvents(ctx interface{}, admin interface{}, id interface{}, f interface{}, p interface{}) *Client_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 (*Client_Expecter) ListTokens ¶
func (_e *Client_Expecter) ListTokens(ctx interface{}, p interface{}) *Client_ListTokens_Call
ListTokens is a helper method to define mock.On call
- ctx context.Context
- p indexer.Pagination
func (*Client_Expecter) TotalSupply ¶
func (_e *Client_Expecter) TotalSupply(ctx interface{}, admin interface{}, id interface{}) *Client_TotalSupply_Call
TotalSupply is a helper method to define mock.On call
- ctx context.Context
- admin string
- id string
type Client_GetAllPendingOffers_Call ¶
Client_GetAllPendingOffers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllPendingOffers'
func (*Client_GetAllPendingOffers_Call) Return ¶
func (_c *Client_GetAllPendingOffers_Call) Return(_a0 *indexer.Page[indexer.PendingOffer], _a1 error) *Client_GetAllPendingOffers_Call
func (*Client_GetAllPendingOffers_Call) Run ¶
func (_c *Client_GetAllPendingOffers_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Client_GetAllPendingOffers_Call
func (*Client_GetAllPendingOffers_Call) RunAndReturn ¶
func (_c *Client_GetAllPendingOffers_Call) RunAndReturn(run func(context.Context, indexer.Pagination) (*indexer.Page[indexer.PendingOffer], error)) *Client_GetAllPendingOffers_Call
type Client_GetBalance_Call ¶
Client_GetBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBalance'
func (*Client_GetBalance_Call) Return ¶
func (_c *Client_GetBalance_Call) Return(_a0 *indexer.Balance, _a1 error) *Client_GetBalance_Call
func (*Client_GetBalance_Call) Run ¶
func (_c *Client_GetBalance_Call) Run(run func(ctx context.Context, partyID string, admin string, id string)) *Client_GetBalance_Call
func (*Client_GetBalance_Call) RunAndReturn ¶
func (_c *Client_GetBalance_Call) RunAndReturn(run func(context.Context, string, string, string) (*indexer.Balance, error)) *Client_GetBalance_Call
type Client_GetEvent_Call ¶
Client_GetEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEvent'
func (*Client_GetEvent_Call) Return ¶
func (_c *Client_GetEvent_Call) Return(_a0 *indexer.ParsedEvent, _a1 error) *Client_GetEvent_Call
func (*Client_GetEvent_Call) Run ¶
func (_c *Client_GetEvent_Call) Run(run func(ctx context.Context, contractID string)) *Client_GetEvent_Call
func (*Client_GetEvent_Call) RunAndReturn ¶
func (_c *Client_GetEvent_Call) RunAndReturn(run func(context.Context, string) (*indexer.ParsedEvent, error)) *Client_GetEvent_Call
type Client_GetPendingOffersForParty_Call ¶
Client_GetPendingOffersForParty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPendingOffersForParty'
func (*Client_GetPendingOffersForParty_Call) Return ¶
func (_c *Client_GetPendingOffersForParty_Call) Return(_a0 *indexer.Page[indexer.PendingOffer], _a1 error) *Client_GetPendingOffersForParty_Call
func (*Client_GetPendingOffersForParty_Call) Run ¶
func (_c *Client_GetPendingOffersForParty_Call) Run(run func(ctx context.Context, partyID string, p indexer.Pagination)) *Client_GetPendingOffersForParty_Call
func (*Client_GetPendingOffersForParty_Call) RunAndReturn ¶
func (_c *Client_GetPendingOffersForParty_Call) RunAndReturn(run func(context.Context, string, indexer.Pagination) (*indexer.Page[indexer.PendingOffer], error)) *Client_GetPendingOffersForParty_Call
type Client_GetToken_Call ¶
Client_GetToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetToken'
func (*Client_GetToken_Call) Return ¶
func (_c *Client_GetToken_Call) Return(_a0 *indexer.Token, _a1 error) *Client_GetToken_Call
func (*Client_GetToken_Call) Run ¶
func (_c *Client_GetToken_Call) Run(run func(ctx context.Context, admin string, id string)) *Client_GetToken_Call
func (*Client_GetToken_Call) RunAndReturn ¶
func (_c *Client_GetToken_Call) RunAndReturn(run func(context.Context, string, string) (*indexer.Token, error)) *Client_GetToken_Call
type Client_ListBalancesForParty_Call ¶
Client_ListBalancesForParty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBalancesForParty'
func (*Client_ListBalancesForParty_Call) Return ¶
func (_c *Client_ListBalancesForParty_Call) Return(_a0 *indexer.Page[*indexer.Balance], _a1 error) *Client_ListBalancesForParty_Call
func (*Client_ListBalancesForParty_Call) Run ¶
func (_c *Client_ListBalancesForParty_Call) Run(run func(ctx context.Context, partyID string, p indexer.Pagination)) *Client_ListBalancesForParty_Call
func (*Client_ListBalancesForParty_Call) RunAndReturn ¶
func (_c *Client_ListBalancesForParty_Call) RunAndReturn(run func(context.Context, string, indexer.Pagination) (*indexer.Page[*indexer.Balance], error)) *Client_ListBalancesForParty_Call
type Client_ListBalancesForToken_Call ¶
Client_ListBalancesForToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBalancesForToken'
func (*Client_ListBalancesForToken_Call) Return ¶
func (_c *Client_ListBalancesForToken_Call) Return(_a0 *indexer.Page[*indexer.Balance], _a1 error) *Client_ListBalancesForToken_Call
func (*Client_ListBalancesForToken_Call) Run ¶
func (_c *Client_ListBalancesForToken_Call) Run(run func(ctx context.Context, admin string, id string, p indexer.Pagination)) *Client_ListBalancesForToken_Call
func (*Client_ListBalancesForToken_Call) RunAndReturn ¶
func (_c *Client_ListBalancesForToken_Call) RunAndReturn(run func(context.Context, string, string, indexer.Pagination) (*indexer.Page[*indexer.Balance], error)) *Client_ListBalancesForToken_Call
type Client_ListPartyEvents_Call ¶
Client_ListPartyEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPartyEvents'
func (*Client_ListPartyEvents_Call) Return ¶
func (_c *Client_ListPartyEvents_Call) Return(_a0 *indexer.Page[*indexer.ParsedEvent], _a1 error) *Client_ListPartyEvents_Call
func (*Client_ListPartyEvents_Call) Run ¶
func (_c *Client_ListPartyEvents_Call) Run(run func(ctx context.Context, partyID string, f indexer.EventFilter, p indexer.Pagination)) *Client_ListPartyEvents_Call
func (*Client_ListPartyEvents_Call) RunAndReturn ¶
func (_c *Client_ListPartyEvents_Call) RunAndReturn(run func(context.Context, string, indexer.EventFilter, indexer.Pagination) (*indexer.Page[*indexer.ParsedEvent], error)) *Client_ListPartyEvents_Call
type Client_ListTokenEvents_Call ¶
Client_ListTokenEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTokenEvents'
func (*Client_ListTokenEvents_Call) Return ¶
func (_c *Client_ListTokenEvents_Call) Return(_a0 *indexer.Page[*indexer.ParsedEvent], _a1 error) *Client_ListTokenEvents_Call
func (*Client_ListTokenEvents_Call) Run ¶
func (_c *Client_ListTokenEvents_Call) Run(run func(ctx context.Context, admin string, id string, f indexer.EventFilter, p indexer.Pagination)) *Client_ListTokenEvents_Call
func (*Client_ListTokenEvents_Call) RunAndReturn ¶
func (_c *Client_ListTokenEvents_Call) RunAndReturn(run func(context.Context, string, string, indexer.EventFilter, indexer.Pagination) (*indexer.Page[*indexer.ParsedEvent], error)) *Client_ListTokenEvents_Call
type Client_ListTokens_Call ¶
Client_ListTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTokens'
func (*Client_ListTokens_Call) Return ¶
func (_c *Client_ListTokens_Call) Return(_a0 *indexer.Page[*indexer.Token], _a1 error) *Client_ListTokens_Call
func (*Client_ListTokens_Call) Run ¶
func (_c *Client_ListTokens_Call) Run(run func(ctx context.Context, p indexer.Pagination)) *Client_ListTokens_Call
func (*Client_ListTokens_Call) RunAndReturn ¶
func (_c *Client_ListTokens_Call) RunAndReturn(run func(context.Context, indexer.Pagination) (*indexer.Page[*indexer.Token], error)) *Client_ListTokens_Call
type Client_TotalSupply_Call ¶
Client_TotalSupply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TotalSupply'
func (*Client_TotalSupply_Call) Return ¶
func (_c *Client_TotalSupply_Call) Return(_a0 string, _a1 error) *Client_TotalSupply_Call
func (*Client_TotalSupply_Call) Run ¶
func (_c *Client_TotalSupply_Call) Run(run func(ctx context.Context, admin string, id string)) *Client_TotalSupply_Call
func (*Client_TotalSupply_Call) RunAndReturn ¶
func (_c *Client_TotalSupply_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *Client_TotalSupply_Call