Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

feat: new events for TFHEExecutor and ACL #263

Merged
merged 2 commits into from
Jan 22, 2025
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
12 changes: 10 additions & 2 deletions contracts/contracts/ACL.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ contract ACL is UUPSUpgradeable, Ownable2StepUpgradeable {
error SenderNotAllowed(address sender);

/// @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(uint256[] handlesList);
event AllowedForDecryption(address indexed caller, uint256[] handlesList);

/// @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, uint256 handle);

/// @notice Emitted when a new delegate address is added.
/// @param sender Sender address
Expand Down Expand Up @@ -76,6 +83,7 @@ contract ACL is UUPSUpgradeable, Ownable2StepUpgradeable {
revert SenderNotAllowed(msg.sender);
}
$.persistedAllowedPairs[handle][account] = true;
emit Allowed(msg.sender, account, handle);
}

/**
Expand All @@ -92,7 +100,7 @@ contract ACL is UUPSUpgradeable, Ownable2StepUpgradeable {
}
$.allowedForDecryption[handle] = true;
}
emit AllowedForDecryption(handlesList);
emit AllowedForDecryption(msg.sender, handlesList);
}

/**
Expand Down
748 changes: 138 additions & 610 deletions contracts/contracts/TFHEExecutor.sol

Large diffs are not rendered by default.

Loading
Loading