Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions modules/ethflow-watcher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ shepherd-sdk = { path = "../../crates/shepherd-sdk" }
cowprotocol = { version = "1.0.0-alpha.3", default-features = false }
alloy-primitives = { version = "1.5", default-features = false, features = ["std"] }
alloy-sol-types = { version = "1.5", default-features = false, features = ["std"] }
serde_json = { version = "1", default-features = false, features = ["alloc"] }
thiserror = "2"
wit-bindgen = { version = "0.57", default-features = false, features = ["macros", "realloc"] }

[dev-dependencies]
Expand Down
11 changes: 7 additions & 4 deletions modules/ethflow-watcher/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
//! # ethflow-watcher (Shepherd module)
//!
//! Subscribes to `CoWSwapOnchainOrders.OrderPlacement` logs from the
//! CoWSwap EthFlow contracts and resubmits each placed order through
//! the orderbook API with `Signature::Eip1271`. The EthFlow contract
//! is the EIP-1271 verifier, so the `from` field on the resubmission
//! is the contract address (not the original native-token seller).
//! canonical CoWSwap EthFlow contracts and verifies the orderbook's
//! native indexer caught each placement via `GET /api/v1/orders/{uid}`.
//! See `strategy.rs` for the design rationale (COW-1076): the orderbook
//! backend indexes EthFlow `OrderPlacement` events server-side with
//! its own dual-validTo bookkeeping, so `POST /api/v1/orders` is
//! structurally the wrong endpoint for on-chain EthFlow orders. The
//! module observes and verifies, it does not submit.
//!
//! ## Module layout (BLEU-855)
//!
Expand Down
Loading