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

feat: new events for TFHEExecutor and ACL #263

merged 2 commits into from
Jan 22, 2025

Conversation

jatZama
Copy link
Member

@jatZama jatZama commented Jan 22, 2025

This PR is implementing what is asked in issues #254 and #255.

  • TFHEExecutorWithEvents is renamed TFHEExecutor, meaning the version with events is the default one now.
  • TFHEExecutor is renamed TFHEExecutorNoEvents
  • Adds a caller address indexed argument (equal to msg.sender to let ZWS track easily the dApps usage) in all events and adapted mocked mode and the getFHEGasFromTxReceipt utils function accordingly.
  • This also drops the now obsolete flag HARDHAT_TFHEEXECUTOR_EVENTS as well as all code related to legacy mocked mode which was relying on tracing all non reverting sub-calls, since now TFHEExecutor emits events by default.
  • Adds events for allow and allowForDecryption in ACL contract.

chore: prettier

test: forge test new event
@jatZama jatZama merged commit 224468e into main Jan 22, 2025
3 checks passed
@jatZama jatZama deleted the newEvents branch January 22, 2025 12:42
@jatZama jatZama changed the title feat: new events for TFHEExecutor feat: new events for TFHEExecutor and ACL Jan 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants