@@ -4,18 +4,16 @@ pragma solidity >=0.8.0;
44
55import './IPayable.sol ' ;
66
7- // @title Interface for event subscription service.
8- // @notice Reactive contracts receive notifications about new events matching the criteria of their event subscriptions.
7+ /// @title Interface for event subscription service.
8+ /// @notice Reactive contracts receive notifications about new events matching the criteria of their event subscriptions.
99interface ISubscriptionService is IPayable {
10- // @notice Subscribes the calling contract to receive events matching the criteria specified.
11- // @param chain_id EIP155 source chain ID for the event (as a `uint256`), or `0` for all chains.
12- // @param _contract Contract address to monitor, or `0` for all contracts.
13- // @param topic_0 Topic 0 to monitor, or `REACTIVE_IGNORE` for all topics.
14- // @param topic_1 Topic 1 to monitor, or `REACTIVE_IGNORE` for all topics.
15- // @param topic_2 Topic 2 to monitor, or `REACTIVE_IGNORE` for all topics.
16- // @param topic_3 Topic 3 to monitor, or `REACTIVE_IGNORE` for all topics.
17- // @dev At least one of criteria above must be non-`REACTIVE_IGNORE`.
18- // @dev Will allow duplicate or overlapping subscriptions, clients must ensure idempotency.
10+ /// @notice Subscribes the calling contract to receive events matching the criteria specified.
11+ /// @param chain_id EIP155 source chain ID for the event (as a `uint256`), or `0` for all chains.
12+ /// @param _contract Contract address to monitor, or `0` for all contracts.
13+ /// @param topic_0 Topic 0 to monitor, or `REACTIVE_IGNORE` for all topics.
14+ /// @param topic_1 Topic 1 to monitor, or `REACTIVE_IGNORE` for all topics.
15+ /// @param topic_2 Topic 2 to monitor, or `REACTIVE_IGNORE` for all topics.
16+ /// @param topic_3 Topic 3 to monitor, or `REACTIVE_IGNORE` for all topics.
1917 function subscribe (
2018 uint256 chain_id ,
2119 address _contract ,
@@ -25,14 +23,13 @@ interface ISubscriptionService is IPayable {
2523 uint256 topic_3
2624 ) external ;
2725
28- // @notice Removes active subscription of the calling contract, matching the criteria specified, if one exists.
29- // @param chain_id Chain ID criterion of the original subscription.
30- // @param _contract Contract address criterion of the original subscription.
31- // @param topic_0 Topic 0 criterion of the original subscription.
32- // @param topic_1 Topic 0 criterion of the original subscription.
33- // @param topic_2 Topic 0 criterion of the original subscription.
34- // @param topic_3 Topic 0 criterion of the original subscription.
35- // @dev This is very expensive.
26+ /// @notice Removes active subscription of the calling contract, matching the criteria specified, if one exists.
27+ /// @param chain_id Chain ID criterion of the original subscription.
28+ /// @param _contract Contract address criterion of the original subscription.
29+ /// @param topic_0 Topic 0 criterion of the original subscription.
30+ /// @param topic_1 Topic 0 criterion of the original subscription.
31+ /// @param topic_2 Topic 0 criterion of the original subscription.
32+ /// @param topic_3 Topic 0 criterion of the original subscription.
3633 function unsubscribe (
3734 uint256 chain_id ,
3835 address _contract ,
0 commit comments