Skip to content
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

feat: implemented SPG registration with fee payer support #373

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0xObsidian
Copy link

Description

This PR introduces changes that allows the fee to be paid by the intended user while SPG performs the registration:

  1. Added registerWithFeePayer for SPG to register IPs with user-paid fees
  2. Added SPG address to storage with restricted setter
  3. Added access control to make sure only SPG can use the new function
  4. Added comprehensive test suite for SPG registration flows

Test Plan

Fetch this PR branch and from the root directory, run:

forge test --match-test "test_SPGRegistrationWithFeePayer|test_revert_NonSPGCannotRegisterWithFeePayer|test_revert_SPGCannotRegisterWhenFeeActive" -vv

Related Issue

This PR addresses ticket #305

@0xObsidian
Copy link
Author

Hi @kingster-will
Feel free to let me know if you have any question regarding this PR

@0xObsidian 0xObsidian force-pushed the 0xObsidian/SPG-registration-with-fee-payer-support branch from b5342ac to cd75232 Compare January 1, 2025 06:11
This PR introduces changes that allows the fee to be paid
by the intended user while SPG performs the registration.

Description:
------------
- Added registerWithFeePayer for SPG to register IPs with user-paid fees
- Added SPG address to storage with restricted setter
- Added access control to make sure only SPG can use the new function
- Added comprehensive test suite for SPG registration flows

Testing the introduced `feat`:
------------------------------
Fetch this PR branch and from the root directory, run:
```
forge test --match-test "test_SPGRegistrationWithFeePayer|test_revert_NonSPGCannotRegisterWithFeePayer|test_revert_SPGCannotRegisterWhenFeeActive" -vv
```
@0xObsidian 0xObsidian force-pushed the 0xObsidian/SPG-registration-with-fee-payer-support branch from cd75232 to a866395 Compare January 1, 2025 06:16
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.

1 participant