Skip to content

feat(tron): add send flow security telemetry - #660

Open
taran-a wants to merge 2 commits into
feat/utils-security-propertiesfrom
feat/tron-send-security-telemetry
Open

taran-a wants to merge 2 commits into
feat/utils-security-propertiesfrom
feat/tron-send-security-telemetry

Conversation

@taran-a

@taran-a taran-a commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explanation

This PR attaches the security verdict for the send confirmation. Transaction Approved, Transaction Rejected, Transaction Submitted, and Transaction Finalized events have now security fields, so telemetry could show which verdict a sent transaction was shown.

  • ConfirmTransactionRequest/render returns the user's decision together with context.securityProperties. These are built with the shared getTransactionSecurityProperties helper from the scan the user saw. They are undefined when validation was not requested or the contract type is not scanned.
  • ConfirmationHandler.confirmTransactionRequest returns { confirmed, context } and spreads context.securityProperties into the Approved and Rejected events.
  • ClientRequestHandler (ConfirmSend) passes context to SendService.signAndSendTransaction. That method spreads it into Transaction Submitted and includes it in the scheduled TrackTransaction background event.
  • CronHandler.trackTransaction accepts optional securityProperties and keeps them when it reschedules or retries. Transaction Finalized receives them as flat fields.
  • TrackTransactionParamsStruct accepts the nested securityProperties, using the shared TransactionSecurityPropertiesStruct.
Screenshot 2026-11-20 at 15 41 25

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

@taran-a
taran-a requested review from a team as code owners November 20, 2026 15:24
@taran-a
taran-a added this pull request to stack #661 November 20, 2026 15:24
@github-actions github-actions Bot added the size-L size-L label Nov 20, 2026
@taran-a
taran-a force-pushed the feat/tron-send-security-telemetry branch from 0810ce8 to c13814f Compare November 20, 2026 15:29
@taran-a
taran-a force-pushed the feat/tron-send-security-telemetry branch from c13814f to 84eee93 Compare November 20, 2026 15:35
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant