Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces support for meta-transactions (ERC-2771) in the
ClaimCLPccontract, updates deployment documentation with new contract addresses and flow explanations, and enhances the Makefile with new claim and meta-transaction commands. The most important changes are grouped below:Smart contract: ERC-2771 meta-transaction support and refactoring
trustedForwardersupport inClaimCLPc, including storage, setter (setTrustedForwarder), getter (isTrustedForwarder), and an internal_msgSender()that extracts the original sender from calldata if called via the trusted forwarder. This enables meta-transaction compatibility. [1] [2] [3]_msgSender()for proper sender resolution (including meta-tx), and added an event for forwarder updates. [1] [2] [3]Makefile: Claim and meta-transaction operations
check-claim,claim-direct,grant-claim-minter, etc.) and meta-transaction configuration (set-forwarder,check-forwarder, etc.), supporting easier contract interaction and admin tasks.MINTER,FORWARDER, andUSER_PKto support these new operations.Documentation: Deployment and usage updates
ClaimCLPcand added the newForwarderaddress across deployment and smoke-test documentation, ensuring all references are current. [1] [2] [3]These changes collectively enable gasless claims via meta-transactions, improve contract maintainability, and make it easier for developers and admins to interact with and verify the system.