Skip to content

feat: provide watch-tower hints on order creation #75

@mfw78

Description

@mfw78

Problem

When the watch-tower is indexing single orders, it will immediately attempt to poll on the same block at which the order was created. This may not be the desired effect.

Suggested solution

In the create and createWithContext functions within ComposableCoW, in ConditionalOrderCreated, emit the polling hints.

Alternatives considered

Rely on adapted interfaces in #73 to supply the block hints. Effectively the addition of on-creation hints will save one standard block polling cycle for the conditional order.

Additional context

This is only valid for single orders. As setRoot provides a root of many orders, these orders may have different logic, and therefore it's not practicable, or gas efficient to emit events for all orders within indicating when they should be polled.

Acceptance criteria

  • ConditionalOrderCreated event updated to also emit watch tower hints for single orders.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions