Skip to content

Conversation

@matthiasgeihs
Copy link
Contributor

@matthiasgeihs matthiasgeihs commented Sep 16, 2025

Explanation

Context: ShieldController

Once a transaction is submitted or a signature request is fulfilled, the transaction hash or signature, respectively, are logged on the backend.

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, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@matthiasgeihs matthiasgeihs marked this pull request as ready for review September 16, 2025 20:46
@matthiasgeihs matthiasgeihs requested review from a team as code owners September 16, 2025 20:46
@matthiasgeihs matthiasgeihs force-pushed the mg/shield/log-confirmation branch from b0573d4 to 62a74ae Compare September 16, 2025 20:48
cursor[bot]

This comment was marked as outdated.

@matthiasgeihs matthiasgeihs force-pushed the mg/shield/log-confirmation branch from 62a74ae to 71e30cd Compare September 16, 2025 21:02
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

// Log signature once the signature request has been fulfilled.
if (
signatureRequest.status === SignatureRequestStatus.Signed &&
signatureRequest.status !== previousSignatureRequest?.status
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanna verify, this might change when we wanna do log on the confirmation reject, right?

signatureRequest.status === SignatureRequestStatus.Signed &&
signatureRequest.status !== previousSignatureRequest?.status
) {
this.#logSignature(signatureRequest).catch(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the log logic will probably change after the discussion today.
But as of now, logging should be done only when the coverage result is available?

await this.#backend.logSignature({
coverageId,
signature: sig,
// Status is 'shown' because the coverageId can only be retrieved after
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the log logic will probably change after the discussion today.
But as of now, logging should be done only when the coverage result is available?

await this.#backend.logTransaction({
coverageId,
transactionHash: txHash,
// Status is 'shown' because the coverageId can only be retrieved after
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matthiasgeihs matthiasgeihs enabled auto-merge (squash) September 17, 2025 15:35
cursor[bot]

This comment was marked as outdated.

@matthiasgeihs matthiasgeihs merged commit d095ab1 into main Sep 17, 2025
239 checks passed
@matthiasgeihs matthiasgeihs deleted the mg/shield/log-confirmation branch September 17, 2025 15:47
@jeffsmale90 jeffsmale90 mentioned this pull request Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants