Skip to content

Commit

Permalink
updated event
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikelle committed Apr 1, 2024
1 parent e050538 commit ba27e8e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions contracts/PreConfirmations.sol
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ contract PreConfCommitmentStore is Ownable {
}

event CommitmentStored(
bytes32 commitmentIndex,
address bidder,
address commiter,
uint64 bid,
Expand All @@ -113,6 +114,14 @@ contract PreConfCommitmentStore is Ownable {
uint256 blockCommitedAt;
}

event EncryptedCommitmentStored(
bytes32 commitmentIndex,
address commiter,
bytes32 commitmentDigest,
bytes commitmentSignature,
uint256 blockCommitedAt
);

/// @dev Event to log successful verifications
event SignatureVerified(
address indexed signer,
Expand Down Expand Up @@ -445,6 +454,7 @@ contract PreConfCommitmentStore is Ownable {
bidderRegistry.OpenBid(commitmentDigest, bid, bidderAddress);

emit CommitmentStored(
commitmentIndex,
bidderAddress,
commiterAddress,
bid,
Expand Down Expand Up @@ -497,6 +507,14 @@ contract PreConfCommitmentStore is Ownable {

commitmentCount++;
commitmentsCount[commiterAddress] += 1;

emit EncryptedCommitmentStored(
commitmentIndex,
commiterAddress,
commitmentDigest,
commitmentSignature,
block.number
);
}

return commitmentIndex;
Expand Down

0 comments on commit ba27e8e

Please sign in to comment.