Add signedContext to clear3/4#456
Conversation
|
Warning Review limit reached
Next review available in: 36 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR updates the IntraOrderbookTradeSimulator's clear3 calldata generation for V4 orders (on both Orderbook V5 and V6) to include actual signedContext values from order and counterparty order details, replacing previously hardcoded empty arrays. Test fixtures and assertions are updated accordingly. ChangesSignedContext propagation in clear3 calldata
Estimated code review effort: 2 (Simple) | ~10 minutes Related issues: None specified Related PRs: None specified Suggested labels: bug, tests Suggested reviewers: None specified 🐰 A hop, a skip, signed context found, 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/core/modes/intra/simulation.test.ts`:
- Line 107: The signedContext fixtures used in the intra simulation test are
both empty, so the toHaveBeenCalledWith assertion cannot detect if alice and bob
sources are swapped. Update the fixtures in simulation.test.ts for
counterpartyOrderDetails.struct.signedContext and
orderDetails.takeOrder.struct.signedContext to use distinct non-empty values,
then keep the existing assertion against the call made in the relevant
simulation path so the test verifies the correct side-specific signedContext is
passed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 47f153d0-f447-4f99-8971-996b7b8264e1
📒 Files selected for processing (2)
src/core/modes/intra/simulation.test.tssrc/core/modes/intra/simulation.ts
|
@coderabbitai assess this PR size classification for the totality of the PR with the following criterias and report it in your comment: S/M/L PR Classification Guidelines:This guide helps classify merged pull requests by effort and complexity rather than just line count. The goal is to assess the difficulty and scope of changes after they have been completed. Small (S)Characteristics:
Review Effort: Would have taken 5-10 minutes Examples:
Medium (M)Characteristics:
Review Effort: Would have taken 15-30 minutes Examples:
Large (L)Characteristics:
Review Effort: Would have taken 45+ minutes Examples:
Additional Factors to ConsiderWhen deciding between sizes, also consider:
Notes:
|
|
Tip For best results, initiate chat on the files or code changes. SIZE=S |
Motivation
Solution
Checks
By submitting this for review, I'm confirming I've done the following:
Summary by CodeRabbit