-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathACLEvents.sol
More file actions
59 lines (52 loc) · 3.17 KB
/
ACLEvents.sol
File metadata and controls
59 lines (52 loc) · 3.17 KB
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
// SPDX-License-Identifier: BSD-3-Clause-Clear
pragma solidity ^0.8.24;
/// @custom:security-contact https://github.com/zama-ai/fhevm/blob/main/SECURITY.md
contract ACLEvents {
/// @notice Emitted when a handle is allowed.
/// @param caller account calling the allow function.
/// @param account account being allowed for the handle.
/// @param handle handle being allowed.
event Allowed(address indexed caller, address indexed account, bytes32 handle);
/// @notice Emitted when a list of handles is allowed for decryption.
/// @param caller account calling the allowForDecryption function.
/// @param handlesList List of handles allowed for decryption.
event AllowedForDecryption(address indexed caller, bytes32[] handlesList);
/// @notice Emitted when an account invalidates older decryption signatures.
/// @param account The account invalidating its signatures.
/// @param beforeTimestamp The oldest timestamp that remains valid.
event DecryptionSignaturesInvalidated(address indexed account, uint256 beforeTimestamp);
/// @notice Emitted when an account is delegated for user decryption.
/// @param delegator The address of the account that delegates access to its handles.
/// @param delegate The address of the account that receives the delegation.
/// @param contractAddress The contract address to delegate access to.
/// @param delegationCounter Counter that tracks the order of each delegation or revocation.
/// @param oldExpirationDate The previous UNIX timestamp when the user decryption delegation expires.
/// @param newExpirationDate The new UNIX timestamp when the user decryption delegation expires.
event DelegatedForUserDecryption(
address indexed delegator,
address indexed delegate,
address contractAddress,
uint64 delegationCounter,
uint64 oldExpirationDate,
uint64 newExpirationDate
);
/// @notice Emitted when a delegation for user decryption is revoked.
/// @param delegator The address of the account that delegates access to its handles.
/// @param delegate The address of the account that receives the delegation.
/// @param contractAddress The contract address to delegate access to.
/// @param delegationCounter Counter that tracks the order of each delegation or revocation.
/// @param oldExpirationDate The expiration UNIX timestamp of the revoked user decryption delegation.
event RevokedDelegationForUserDecryption(
address indexed delegator,
address indexed delegate,
address contractAddress,
uint64 delegationCounter,
uint64 oldExpirationDate
);
/// @notice Emitted when an account is added to the deny list.
/// @param account The address of the account that is blocked.
event BlockedAccount(address indexed account);
/// @notice Emitted when an account is removed from the deny list.
/// @param account The address of the account that is unblocked.
event UnblockedAccount(address indexed account);
}