forked from storyprotocol/protocol-core
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implemented SPG registration with fee payer support
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 ```
- Loading branch information
1 parent
23afff8
commit b5342ac
Showing
3 changed files
with
126 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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