⚡️ Pass specific fee ids to the sign request#149
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant Policy as Fee Policy
participant Rule as Rule
participant Resolver as Address Resolver
participant Tx as Transaction Builder
participant Keysign as Keysign Request
Policy->>Rule: Retrieve rules
Rule->>Policy: Return rule list
Policy->>Policy: Check exactly one rule
Policy->>Rule: Extract recipient and token constraints
Policy->>Policy: Validate recipient is treasury constant
Policy->>Resolver: Resolve treasury address ("ethereum", "usdc")
Resolver-->>Policy: Return treasury address
Policy->>Policy: Validate token matches config USDC address
Policy->>Tx: Create unsigned ERC20 transfer
Tx-->>Policy: Return transaction data
Policy->>Keysign: Construct keysign request (include "fee_ids")
Keysign-->>Policy: Return keysign request
Policy-->>Caller: Return keysign request
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
2b807cc to
4bb281b
Compare
c7da289 to
8111fcc
Compare
This passes specific fee ids to the verifier rather than the verifier simply wanting to reclear all fees
Summary by CodeRabbit
Refactor
New Features
Bug Fixes