-
Notifications
You must be signed in to change notification settings - Fork 32
/
StatementInboxEvents.sol
55 lines (47 loc) · 2.82 KB
/
StatementInboxEvents.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
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
abstract contract StatementInboxEvents {
// ════════════════════════════════════════════ STATEMENT ACCEPTED ═════════════════════════════════════════════════
/**
* @notice Emitted when a snapshot is accepted by the Destination contract.
* @param domain Domain where the signed Notary is active
* @param notary Notary who signed the attestation
* @param attPayload Raw payload with attestation data
* @param attSignature Notary signature for the attestation
*/
event AttestationAccepted(uint32 domain, address notary, bytes attPayload, bytes attSignature);
// ═════════════════════════════════════════ INVALID STATEMENT PROVED ══════════════════════════════════════════════
/**
* @notice Emitted when a proof of invalid receipt statement is submitted.
* @param rcptPayload Raw payload with the receipt statement
* @param rcptSignature Notary signature for the receipt statement
*/
event InvalidReceipt(bytes rcptPayload, bytes rcptSignature);
/**
* @notice Emitted when a proof of invalid receipt report is submitted.
* @param rrPayload Raw payload with report data
* @param rrSignature Guard signature for the report
*/
event InvalidReceiptReport(bytes rrPayload, bytes rrSignature);
/**
* @notice Emitted when a proof of invalid state in the signed attestation is submitted.
* @param stateIndex Index of invalid state in the snapshot
* @param statePayload Raw payload with state data
* @param attPayload Raw payload with Attestation data for snapshot
* @param attSignature Notary signature for the attestation
*/
event InvalidStateWithAttestation(uint8 stateIndex, bytes statePayload, bytes attPayload, bytes attSignature);
/**
* @notice Emitted when a proof of invalid state in the signed snapshot is submitted.
* @param stateIndex Index of invalid state in the snapshot
* @param snapPayload Raw payload with snapshot data
* @param snapSignature Agent signature for the snapshot
*/
event InvalidStateWithSnapshot(uint8 stateIndex, bytes snapPayload, bytes snapSignature);
/**
* @notice Emitted when a proof of invalid state report is submitted.
* @param srPayload Raw payload with report data
* @param srSignature Guard signature for the report
*/
event InvalidStateReport(bytes srPayload, bytes srSignature);
}