Skip to content

Add Protocol Fee Config, PC20/PC721 Chain-Support Mapping, Public Getters, Events, and Tests to UniversalGatewayPC + Adjust Storage Gap#56

Draft
HarshRajat wants to merge 1 commit intomainfrom
pc20-token-implementation
Draft

Add Protocol Fee Config, PC20/PC721 Chain-Support Mapping, Public Getters, Events, and Tests to UniversalGatewayPC + Adjust Storage Gap#56
HarshRajat wants to merge 1 commit intomainfrom
pc20-token-implementation

Conversation

@HarshRajat
Copy link
Contributor

UniversalGatewayPC.sol

  • public getters added PC20_PROTOCOL_FEES, PC721_PROTOCOL_FEES, DEFAULT_PROTOCOL_FEES
  • setter setProtocolFees added with onlyUEModule modifier
  • event ProtocolFeesUpdated added
  • added testcases
  • added isPC20SupportedOnChain, isPC721SupportedOnChain mapping
  • added functions setPC20SupportOnChain, setPC721SupportOnChain
  • added testcases for the same
  • changed gap to 45 since 3 uint and 2 mapping are added (at the bottom of the variables decleration)

UniversalGatewayPC.sol
- public getters added PC20_PROTOCOL_FEES, PC721_PROTOCOL_FEES, DEFAULT_PROTOCOL_FEES
- setter setProtocolFees added with onlyUEModule modifier
- event ProtocolFeesUpdated added
- added testcases
- added isPC20SupportedOnChain, isPC721SupportedOnChain mapping
- added functions setPC20SupportOnChain, setPC721SupportOnChain
- added testcases for the same
- changed gap to 45 since 3 uint and 2 mapping are added (at the bottom of the variables decleration)
@zaryab2000 zaryab2000 marked this pull request as draft February 9, 2026 10:34
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

Comments