Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancellationConsumer ¶
type CancellationConsumer struct {
// contains filtered or unexported fields
}
func NewCancellationConsumer ¶
func NewCancellationConsumer(allPublisher channels.Publisher, changePublisher channels.Publisher, lookup CancellationLookup, concurrency int) CancellationConsumer
func (*CancellationConsumer) Consume ¶
func (consumer *CancellationConsumer) Consume(msg channels.Delivery)
type CancellationLookup ¶
func NewDBCancellationLookup ¶
func NewDBCancellationLookup(db *gorm.DB) CancellationLookup
func NewMockCancellationLookup ¶
func NewMockCancellationLookup(cancelled bool) CancellationLookup
type FillConsumer ¶
type FillConsumer struct {
// contains filtered or unexported fields
}
func NewFillConsumer ¶
func NewFillConsumer(allPublisher channels.Publisher, changePublisher channels.Publisher, lookup FilledLookup, concurrency int) FillConsumer
func (*FillConsumer) Consume ¶
func (consumer *FillConsumer) Consume(msg channels.Delivery)
type FilledLookup ¶
type FilledLookup interface { GetCancelled(order *types.Order) (bool, error) GetAmountFilled(order *types.Order) (*types.Uint256, error) }
func NewMockFilledLookup ¶
func NewMockFilledLookup(cancelled bool, filled string, err error) FilledLookup
func NewRPCFilledLookup ¶
func NewRPCFilledLookup(rpcURL string, fillBloom *fillbloom.FillBloom) (FilledLookup, error)
type MockCancellationLookup ¶
type MockCancellationLookup struct {
// contains filtered or unexported fields
}
func (*MockCancellationLookup) GetCancelled ¶
func (filled *MockCancellationLookup) GetCancelled(order *types.Order) (bool, error)
type MockFilledLookup ¶
type MockFilledLookup struct {
// contains filtered or unexported fields
}
func (*MockFilledLookup) GetAmountFilled ¶
func (*MockFilledLookup) GetCancelled ¶
func (filled *MockFilledLookup) GetCancelled(order *types.Order) (bool, error)
type OrderValidator ¶
func NewOrderValidator ¶
func NewOrderValidator(checker balance.BalanceChecker, feeToken config.FeeToken, tokenProxy config.TokenProxy) OrderValidator
func NewRpcOrderValidator ¶
func NewRpcOrderValidator(rpcUrl string, feeToken config.FeeToken, tokenProxy config.TokenProxy, invalidationChannel channels.ConsumerChannel) (OrderValidator, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.