Split ERC7943 into separate dedicated interfaces#216
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughReplaces the single IERC7943 interface with three variants (Fungible, NonFungible, MultiToken) and aliases IERC7943 to IERC7943MultiToken. Updates ERC20Freezable and ERC20uRWA to use IERC7943Fungible. Renames functions/events (e.g., isTransferAllowed→canTransfer, forceTransfer→forcedTransfer) and adjusts Frozen/ForcedTransfer event parameters. Tests updated accordingly. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Admin
participant Token as ERC20uRWA (IERC7943Fungible)
rect rgb(245,248,255)
note right of Token: Permission/freeze management
Admin->>Token: setFrozenTokens(user, amount)
Token-->>Admin: emit Frozen(user, amount)
end
rect rgb(245,255,245)
note right of Token: Transfer capability check
participant From as from
participant To as to
From->>Token: canTransfer(from, to, amount)
Token-->>From: bool allowed
end
rect rgb(255,248,245)
note right of Token: Administrative forced move
Admin->>Token: forcedTransfer(from, to, amount)
Token-->>Admin: emit ForcedTransfer(from, to, amount)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
See ethereum/ERCs#1210
Summary by CodeRabbit
New Features
Refactor
Tests
Documentation