Skip to content

Conversation

@Fraser999
Copy link
Contributor

@Fraser999 Fraser999 commented Jan 27, 2026

This PR introduces three new traits to support submitting orders or bundles and fetching orders.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Fraser999 Fraser999 marked this pull request as ready for review January 27, 2026 15:01
@Fraser999 Fraser999 requested a review from a team as a code owner January 27, 2026 15:01
fn submit_order(
&self,
order: SignedOrder,
) -> impl Future<Output = Result<(), Self::Error>> + Send;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be AFIT? or do we want to mandate Send?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm - good question! I defaulted to mandating Send just because that's what I'm generally used to (multi-threaded tokio runtime specifically). I'm not sure if there are expected use cases where this would be a problem, but if not, I'd lean towards mandating Send.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in my experience the main place this causes problems is use in wasm, which is not a priority for use. I'm fine mandating Send

@Fraser999 Fraser999 requested review from Evalir and prestwich January 27, 2026 23:31
Copy link
Member

@Evalir Evalir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Fraser999 Fraser999 merged commit e649c46 into main Jan 28, 2026
7 checks passed
@Fraser999 Fraser999 deleted the fraser/eng-1737/traits branch January 28, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants