Skip to content

feat(recurring): add 0.2.0 admit and revoke cycle helpers - #1766

Open
LeoSlrRf wants to merge 2 commits into
feat/req-429-lib-cancel-hash-signfrom
feat/req-429-lib-admit-revoke
Open

feat(recurring): add 0.2.0 admit and revoke cycle helpers#1766
LeoSlrRf wants to merge 2 commits into
feat/req-429-lib-cancel-hash-signfrom
feat/req-429-lib-admit-revoke

Conversation

@LeoSlrRf

@LeoSlrRf LeoSlrRf commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Add admitCycles and revokeCycles support for ERC20 Recurring Payment Proxy v0.2.0

Exposes two new relayer-role functions from the 0.2.0 recurring payment proxy contract:

  • admitCycles / encodeAdmitCycles — allows a relayer to admit specific cycles (identified by a bitmask) so that a subscriber can self-trigger them.
  • revokeCycles / encodeRevokeCycles — allows a relayer to revoke previously admitted cycles without affecting relayer-initiated triggers.

Both functions accept a scheduleKey and a mask (BigNumberish), and the encode* variants produce calldata without requiring a deployed proxy address. The async variants resolve the proxy address from the known deployment on the target network and throw if none is found.

LeoSlrRf commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@greptile-apps

greptile-apps Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds calldata encoders and signer-based transaction helpers for admitting and revoking cycles through ERC20 Recurring Payment Proxy v0.2.0.

  • Adds encodeAdmitCycles and admitCycles.
  • Adds encodeRevokeCycles and revokeCycles.
  • Adds unit coverage for encoding, missing deployments, and transaction submission.

Confidence Score: 5/5

The PR appears safe to merge because no blocking failure remains.

No blocking failure remains.

Important Files Changed

Filename Overview
packages/payment-processor/src/payment/erc20-recurring-payment-proxy.ts Adds v0.2.0 admit/revoke calldata encoding and transaction-submission helpers using the existing proxy address and sender utilities.
packages/payment-processor/test/payment/erc-20-recurring-payment.test.ts Adds unit tests for the new encoding and submission helpers.

Reviews (2): Last reviewed commit: "test(recurring): use derived schedule ke..." | Re-trigger Greptile

Comment thread packages/payment-processor/test/payment/erc-20-recurring-payment.test.ts Outdated
@LeoSlrRf
LeoSlrRf marked this pull request as ready for review August 25, 2026 13:18
@LeoSlrRf
LeoSlrRf requested review from a team, MantisClone and bassgeta and removed request for a team August 25, 2026 13:18
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.

2 participants