-
-
Notifications
You must be signed in to change notification settings - Fork 256
feat: Shield: log transaction and signature #6633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
b0573d4 to
62a74ae
Compare
62a74ae to
71e30cd
Compare
| // Log signature once the signature request has been fulfilled. | ||
| if ( | ||
| signatureRequest.status === SignatureRequestStatus.Signed && | ||
| signatureRequest.status !== previousSignatureRequest?.status |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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