Conversation
|
Caution Review failedFailed to post review comments WalkthroughThis PR removes the powerRound parameter dependency from donation eligibility calculations, replacing it with a date-window-based approach using a 16:00 UTC window for the current month. Tests are updated accordingly. Additionally, the transaction service gains RPC trace fallback logic, and givback factor calculation is refactored with enhanced input validation. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Service as transactionService
participant Explorer as Block Explorer
participant RPC as RPC Node
Client->>Service: getInternalTransactionsByTxHash(txHash)
Service->>Explorer: Fetch internal transactions
alt Explorer Success
Explorer-->>Service: Return transactions
Service-->>Client: Return results
else Explorer Failure
Explorer-->>Service: Error/Timeout
Service->>RPC: debug_traceTransaction (callTracer)
RPC-->>Service: Trace data with value transfers
Service->>Service: parseTraceValueToWei()<br/>collectValueTransfersFromCallTrace()
Service-->>Client: Return RPC-derived transactions
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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 |
Summary by CodeRabbit
New Features
Bug Fixes
Chores