feat: FHE operations and tags #3180
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description and Related Issue(s)
This PR adds support for displaying Fully Homomorphic Encryption (FHE) operations in transaction details. The feature integrates with the backend API to fetch and display FHE operations associated with transactions, providing users with visibility into encrypted computation operations on the blockchain.
This frontend implementation complements the backend work for FHE operations support (see related PR: blockscout/blockscout#13742). The backend API endpoint
/api/v2/transactions/:hash/fhe-operationsmust be available for this frontend feature to function.Proposed Changes
FHE Operations Feature:
tx_fhe_operationsthat fetches FHE operations for a specific transaction via/api/v2/transactions/:hash/fhe-operationsTransactiontype to include an optionalfhe_operations_countfield to track the number of FHE operations in a transactionTxFHEOperationscomponent into the transaction page with conditional rendering - the "FHE Operations" tab only appears whenfhe_operations_count > 0FheOperationsResponseto ensure type safetyTxFHEOperationscomponentBreaking or Incompatible Changes
No breaking changes - This PR is fully backward compatible:
fhe_operations_countfield is optional in theTransactiontype, so existing code will continue to workChecklist for PR author
I have tested these changes locally.
I added tests to cover any new functionality, following this guide
Whenever I fix a bug, I include a regression test to ensure that the bug does not reappear silently.
If I have added, changed, renamed, or removed an environment variable
I updated the list of environment variables in the documentation
I made the necessary changes to the validator script according to the guide
I added "ENVs" label to this pull request