Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMP: Add PrivateKeySubmitted event #204

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/interfaces/modules/auctions/IEncryptedMarginalPrice.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,21 @@ interface IEncryptedMarginalPrice {

// ========== EVENTS ========== //

/// @notice Emitted when a bid is decrypted
///
/// @param lotId The lot ID
/// @param bidId The bid ID
/// @param amountIn The amount in
/// @param amountOut The amount out
event BidDecrypted(
uint96 indexed lotId, uint64 indexed bidId, uint96 amountIn, uint96 amountOut
);

/// @notice Emitted when the private key for an auction lot is submitted
///
/// @param lotId The lot ID
event PrivateKeySubmitted(uint96 indexed lotId);

// ========== DATA STRUCTURES ========== //

/// @notice Parameters that are used to set auction-specific data
Expand Down
2 changes: 2 additions & 0 deletions src/modules/auctions/batch/EMP.sol
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ contract EncryptedMarginalPrice is BatchAuctionModule, IEncryptedMarginalPrice {

// Decrypt and sort bids
_decryptAndSortBids(lotId_, num_, sortHints_);

emit PrivateKeySubmitted(lotId_);
}

/// @inheritdoc IEncryptedMarginalPrice
Expand Down
Loading