Skip to content
Open
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
12 changes: 12 additions & 0 deletions modules/twap-monitor/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ chain_id = 11155111
address = "0xfdaFc9d1902f4e0b84f65F49f244b32b31013b74"
event_signature = "0x2cceac5555b0ca45a3744ced542f54b56ad2eb45e521962372eef212a2cbf361"

# ComposableCoW v2 ConditionalOrderRemoved emissions. topic-0 =
# keccak256("ConditionalOrderRemoved(address,bytes32)"), pinned in
# wit/shepherd-cow/cow-events.wit and parity-tested in strategy.rs.
# This stream and the created stream merge in arrival order, not
# chain order, so a removal drops the watch (with its gates) only
# when it postdates the watch's indexed create.
[[subscription]]
kind = "chain-log"
chain_id = 11155111
address = "0xfdaFc9d1902f4e0b84f65F49f244b32b31013b74"
event_signature = "0x67e0f2b23e842ce65d7edff49765689c9c0931f911fc5971d09bb598cc1af4a9"

# New-block ticks drive the TWAP poll loop (`getTradeableOrderWithSignature`).
[[subscription]]
kind = "block"
Expand Down
7 changes: 4 additions & 3 deletions modules/twap-monitor/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
//! # twap-monitor (Shepherd keeper module)
//!
//! Indexes `ComposableCoW.ConditionalOrderCreated` logs and polls each
//! watched conditional order on every block, submitting tranches to the
//! CoW venue through the pool as they go live.
//! Indexes `ComposableCoW.ConditionalOrderCreated` and v2
//! `ConditionalOrderRemoved` logs and polls each watched conditional
//! order on every block, submitting tranches to the CoW venue through
//! the pool as they go live.
//!
//! ## Module layout
//!
Expand Down
Loading
Loading