-
Notifications
You must be signed in to change notification settings - Fork 15
/
IRelayer.sol
61 lines (55 loc) · 2.98 KB
/
IRelayer.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.13;
import { RelayedNonceCancellation } from "../types/RelayedNonceCancellation.sol";
import { RelayedGroupCancellation } from "../types/RelayedGroupCancellation.sol";
import { RelayedOperatorUpdate } from "../types/RelayedOperatorUpdate.sol";
import { RelayedSignerUpdate } from "../types/RelayedSignerUpdate.sol";
import { RelayedAccessUpdateBatch } from "../types/RelayedAccessUpdateBatch.sol";
// @notice Relays messages to downstream handlers, compensating keepers for the transaction
interface IRelayer {
/// @notice Relays a message to Verifier extension to invalidate a nonce
/// @param message Request with details needed for keeper compensation
/// @param outerSignature Signature of the RelayedNonceCancellation message
/// @param innerSignature Signature of the embedded Common message
function relayNonceCancellation(
RelayedNonceCancellation calldata message,
bytes calldata outerSignature,
bytes calldata innerSignature
) external;
/// @notice Relays a message to Verifier extension to invalidate a group nonce
/// @param message Request with details needed for keeper compensation
/// @param outerSignature Signature of the RelayedGroupCancellation message
/// @param innerSignature Signature of the embedded GroupCancellation message
function relayGroupCancellation(
RelayedGroupCancellation calldata message,
bytes calldata outerSignature,
bytes calldata innerSignature
) external;
/// @notice Relays a message to MarketFactory to update status of an operator
/// @param message Request with details needed for keeper compensation
/// @param outerSignature Signature of the RelayedOperatorUpdate message
/// @param innerSignature Signature of the embedded OperatorUpdate message
function relayOperatorUpdate(
RelayedOperatorUpdate calldata message,
bytes calldata outerSignature,
bytes calldata innerSignature
) external;
/// @notice Relays a message to MarketFactory to update status of a delegated signer
/// @param message Request with details needed for keeper compensation
/// @param outerSignature Signature of the RelayedSignerUpdate message
/// @param innerSignature Signature of the embedded SignerUpdate message
function relaySignerUpdate(
RelayedSignerUpdate calldata message,
bytes calldata outerSignature,
bytes calldata innerSignature
) external;
/// @notice Relays a message to MarketFactory to update multiple operators and signers
/// @param message Request with details needed for keeper compensation
/// @param outerSignature Signature of the RelayedAccessUpdateBatch message
/// @param innerSignature Signature of the embedded AccessUpdateBatch message
function relayAccessUpdateBatch(
RelayedAccessUpdateBatch calldata message,
bytes calldata outerSignature,
bytes calldata innerSignature
) external;
}