-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
abcoathup GSN Bouncers review #1916
Conversation
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.
Thanks @abcoathup! There are some good improvements here. I think the GSNBouncerERC20Fee
section could use some restructuring of the content. I left some details in a comment below.
|
||
The only thing you must do is extend from `GSNRecipient` and implement the accept method. | ||
Depending on the logic for your Custom Bouncer, you may need to implement `_postRelayedCall` and `_preRelayedCall`. |
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 think we should explain how the charge estimates work, and why they work that way: that pre
will tell you the maximum possible charge, and later post
will tell you the real amount. Or point towards GSNBouncerERC20Fee
as an example of how to deal with it.
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 have pointed to the GitHub repo 2.4.0 versions of GSNBouncerERC20Fee
and GSNBouncerSignature
. Is there a better way to do this?
Co-Authored-By: Francisco Giordano <[email protected]>
Co-Authored-By: Francisco Giordano <[email protected]>
WIP, still a couple of points to handle tomorrow. |
Updated, ready for review |
Co-Authored-By: Francisco Giordano <[email protected]>
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.
LGTM. Thank you @abcoathup for reviewing this document!
* Fix typo * Replace pseudo code contracts with sample code * Update GSN Bouncers text * More text changes * Update with latest code and remove reference to allowance * Capitalize Custom Bouncer * Update docs/modules/ROOT/pages/gsn-bouncers.adoc Co-Authored-By: Francisco Giordano <[email protected]> * Update gsn-bouncers.adoc with Antora cross reference Co-Authored-By: Francisco Giordano <[email protected]> * Revert to handling msg.sender msg.data differently * Change by default to simplest implementation * Change signing to include signature for GSNBouncerSignature * Reword summary of what is in the guide * Remove "The" from before `GSNBouncer...` * Fix code snippet markdown * Change to API references to xref:api * Remove code from How it works sections * Explain 1:1 exchange rate * Change transaction request to relayed call * Minor fixes * Add info to Custom Bouncers * Typo * Minor fixes * reorder sentence based on review gsn-bouncers.adoc Co-Authored-By: Francisco Giordano <[email protected]> * Improve wording of signing of relayed call parameters by trusted signer (cherry picked from commit 18473d0)
* Fix typo * Replace pseudo code contracts with sample code * Update GSN Bouncers text * More text changes * Update with latest code and remove reference to allowance * Capitalize Custom Bouncer * Update docs/modules/ROOT/pages/gsn-bouncers.adoc Co-Authored-By: Francisco Giordano <[email protected]> * Update gsn-bouncers.adoc with Antora cross reference Co-Authored-By: Francisco Giordano <[email protected]> * Revert to handling msg.sender msg.data differently * Change by default to simplest implementation * Change signing to include signature for GSNBouncerSignature * Reword summary of what is in the guide * Remove "The" from before `GSNBouncer...` * Fix code snippet markdown * Change to API references to xref:api * Remove code from How it works sections * Explain 1:1 exchange rate * Change transaction request to relayed call * Minor fixes * Add info to Custom Bouncers * Typo * Minor fixes * reorder sentence based on review gsn-bouncers.adoc Co-Authored-By: Francisco Giordano <[email protected]> * Improve wording of signing of relayed call parameters by trusted signer (cherry picked from commit 18473d0)
I have updated the document based on my review.
I used request transactions rather than call, though the code uses call.