Skip to content

Commit 261e75e

Browse files
authored
Merge pull request #41 from flashbots/N-05-add-indexed-params-in-events
add indexes to IFlashtestationRegistry and IBlockBuilderPolicy events
2 parents ff1ef38 + b921c24 commit 261e75e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/interfaces/IBlockBuilderPolicy.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ interface IBlockBuilderPolicy {
3131

3232
/// @notice Emitted when a workload is added to the policy
3333
/// @param workloadId The workload identifier
34-
event WorkloadAddedToPolicy(bytes32 workloadId);
34+
event WorkloadAddedToPolicy(bytes32 indexed workloadId);
3535
/// @notice Emitted when a workload is removed from the policy
3636
/// @param workloadId The workload identifier
37-
event WorkloadRemovedFromPolicy(bytes32 workloadId);
37+
event WorkloadRemovedFromPolicy(bytes32 indexed workloadId);
3838
/// @notice Emitted when the registry is set in the initializer
3939
/// @param registry The address of the registry
40-
event RegistrySet(address registry);
40+
event RegistrySet(address indexed registry);
4141
/// @notice Emitted when a block builder proof is successfully verified
4242
/// @param caller The address that called the verification function (TEE address)
4343
/// @param workloadId The workload identifier of the TEE

src/interfaces/IFlashtestationRegistry.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ interface IFlashtestationRegistry {
2525
/// @param teeAddress The address of the TEE service
2626
/// @param rawQuote The raw quote from the TEE device
2727
/// @param alreadyExists Whether the TEE service is already registered
28-
event TEEServiceRegistered(address teeAddress, bytes rawQuote, bool alreadyExists);
28+
event TEEServiceRegistered(address indexed teeAddress, bytes rawQuote, bool alreadyExists);
2929
/// @notice Emitted when a TEE service is invalidated
3030
/// @param teeAddress The address of the TEE service
31-
event TEEServiceInvalidated(address teeAddress);
31+
event TEEServiceInvalidated(address indexed teeAddress);
3232
/// @notice Emitted when a previous signature is invalidated
3333
/// @param teeAddress The address of the TEE service
3434
/// @param invalidatedNonce The nonce of the invalidated signature
35-
event PreviousSignatureInvalidated(address teeAddress, uint256 invalidatedNonce);
35+
event PreviousSignatureInvalidated(address indexed teeAddress, uint256 invalidatedNonce);
3636

3737
// ============ Errors ============
3838

0 commit comments

Comments
 (0)