feat(recurring): add 0.2.0 cancel, hash, and sign helpers - #1765
Merged
Conversation
Contributor
Author
This was referenced Aug 25, 2026
Contributor
Greptile SummaryThe PR adds helpers for encoding and submitting recurring-payment cancellation, deriving schedule hashes and keys, and signing v0.2.0 batch permits.
Confidence Score: 5/5The PR appears safe to merge with no concrete blocking or independently actionable non-blocking issue identified. The new helpers use the v0.2.0 ABI and deployment lookup consistently, and their EIP-712 domain and permit field ordering match the corresponding contract implementation and shared types. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
P[SchedulePermitBatch] --> E[Encode cancellation]
P --> H[EIP-712 hash]
P --> S[Typed-data signature]
P --> K[On-chain schedule key]
E --> T[Submit to v0.2.0 proxy]
H --> V[Permit verification]
S --> V
Reviews (1): Last reviewed commit: "feat(recurring): add 0.2.0 cancel, hash,..." | Re-trigger Greptile |
LeoSlrRf
marked this pull request as ready for review
August 25, 2026 13:17
LeoSlrRf
requested review from
a team,
aimen74 and
rodrigopavezi
and removed request for
a team
August 25, 2026 13:17
rodrigopavezi
approved these changes
Aug 26, 2026
MantisClone
approved these changes
Aug 28, 2026
Contributor
Author
LeoSlrRf
changed the base branch from
feat/req-429-lib-batch-trigger
to
graphite-base/1765
August 31, 2026 08:50
LeoSlrRf
force-pushed
the
feat/req-429-lib-cancel-hash-sign
branch
from
August 31, 2026 09:06
0c91c08 to
1215314
Compare
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.

Add EIP-712 signing, schedule cancellation, and batch key lookup for ERC20 recurring payment proxy v0.2.0
Adds several new capabilities to the ERC20 recurring payment proxy v0.2.0 integration:
cancelScheduleBatch/encodeCancelScheduleBatch: Allows a permit subscriber to cancel an existing schedule by sending acancelScheduleBatchtransaction to the proxy.hashScheduleBatch: Computes the off-chain EIP-712 digest of aSchedulePermitBatchusing theERC20RecurringPaymentProxy/1domain, matching the on-chain contract domain.signSchedulePermitBatch: Signs aSchedulePermitBatchwith EIP-712 typed data, falling back frometh_signTypedDataRPC to_signTypedDatawhen the provider does not support the RPC method directly.scheduleKeyFromBatch: Calls thescheduleKeyFromBatchview function on the deployed v0.2.0 proxy contract to retrieve the on-chain schedule key for a given permit.Extracts a shared
sendToRecurringProxyV2helper to deduplicate transaction dispatch logic acrosstriggerRecurringPaymentBatchandcancelScheduleBatch.