Skip to content

IRaindexV7: OrderCalculateReverted - #80

Closed
thedavidmeister wants to merge 10 commits into
mainfrom
2026-10-25-raindex-v7-order-calculate-reverted
Closed

thedavidmeister wants to merge 10 commits into
mainfrom
2026-10-25-raindex-v7-order-calculate-reverted

Conversation

@thedavidmeister

@thedavidmeister thedavidmeister commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

QA

  • Discriminating tests: n/a - interface-only event declaration, no behaviour in this repo; behaviour is tested in raindex.deploy (RaindexV6TakeOrderCalculateRevertTest).
  • Mutations applied: n/a - an event declaration has no executable line to mutate.
  • Oracle: event signature matches the one RaindexV6 emits, OrderCalculateReverted(address,address,bytes32), which the raindex.deploy tests decode from recorded logs.
  • Category check: #2837 asks for the event's interface placement; covered by adding it to the next interface version (V7) only, since older versions are deprecated.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added a new interface version for vault deposits and withdrawals, order management, quotes, order taking, and clearing.
    • Added order-taker callback interfaces, including an arbitrage entry point for executing order-taking tasks.
  • Documentation

    • Updated version references and naming examples to reflect the current interface and callback versions.

thedavidmeister and others added 2 commits October 25, 2026 20:22
…s own eval

IRaindexV7 replaces clear3 with clear4 (new selector) so callers carrying
V6 clear3 assumptions hard-revert instead of silently changing semantics.
IRaindexV6 and its taker interfaces move to deprecated/v6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
takeOrders4 skips an order whose calculate eval reverts, has no
interpreter code, returns undecodable data or too few outputs, emitting
OrderCalculateReverted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thedavidmeister thedavidmeister self-assigned this Oct 25, 2026
@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 35 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: b6e2e69a-8bb2-4db3-9c10-173454ea2334
Commits

Reviewing files that changed from the base of the PR and between 00c2f52 and 7107727.

Files ignored due to path filters: 1
  • soldeer.lock is excluded by !**/*.lock
Files selected for processing: 2
  • CLAUDE.md
  • foundry.toml

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 624b2305-2ab3-4275-a970-8b745de82275
Commits

Reviewing files that changed from the base of the PR and between 2955fce and 00c2f52.

Files ignored due to path filters: 1
  • soldeer.lock is excluded by !**/*.lock
Files selected for processing: 14
  • CLAUDE.md
  • foundry.toml
  • remappings.txt
  • src/interface/IRaindexV7.sol
  • src/interface/IRaindexV7ArbOrderTaker.sol
  • src/interface/IRaindexV7OrderTaker.sol
  • src/interface/deprecated/v1/IOrderBookV1.sol
  • src/interface/deprecated/v2/IOrderBookV2.sol
  • src/interface/deprecated/v3/IOrderBookV3.sol
  • src/interface/deprecated/v4/IOrderBookV4.sol
  • src/interface/deprecated/v5/IOrderBookV5.sol
  • src/interface/deprecated/v6/IRaindexV6.sol
  • src/interface/deprecated/v6/IRaindexV6ArbOrderTaker.sol
  • src/interface/deprecated/v6/IRaindexV6OrderTaker.sol

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

This pull request adds the IRaindexV7 interface and its order-taker callback interfaces. It updates the rainlang-interface dependency and deprecated-interface imports to version 0.2.14. It also revises CLAUDE.md references to identify V7 as current.

Changes

V7 Interface and Dependency Update

Layer / File(s) Summary
Dependency and import updates
foundry.toml, remappings.txt, src/interface/deprecated/*
The rainlang-interface dependency and remapping now use version 0.2.14. Deprecated interface imports use updated package versions and paths.
V7 Raindex interface
src/interface/IRaindexV7.sol, CLAUDE.md
IRaindexV7 adds configuration types, events, errors, and function declarations for vault, task, order, quote, take, clear, and flash-lending operations. CLAUDE.md updates the current-interface entry, type names, and versioned naming examples to V7.
V7 taker callbacks
src/interface/IRaindexV7OrderTaker.sol, src/interface/IRaindexV7ArbOrderTaker.sol
IRaindexV7OrderTaker declares the onTakeOrders2 callback. IRaindexV7ArbOrderTaker extends that interface with the payable arb6 entry point.

Priority: Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Possibly related PRs

  • rainlanguage/raindex.interface#77: Updates the same dependency and import surfaces; this pull request moves those references from version 0.2.13 to 0.2.14 while adding V7 interfaces.
  • rainlanguage/raindex.interface#79: Adds the V7 interface family; this pull request adds OrderCalculateReverted and updates V7 declarations and callback types.
  • rainlanguage/raindex.interface#78: Documents the unsupported dynamic-balance-token behavior for V6; this pull request documents the same restriction for V7.
Merge Risk: Minimal · up to 00c2f

This change adds V7 interface declarations and updates deprecated imports and dependency pins. It adds no runtime behavior in this repository. No actionable merge-blocking risk remains.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the main change: adding the OrderCalculateReverted event to IRaindexV7.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (12 skipped: 12 unsupported.)

Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

thedavidmeister and others added 4 commits October 26, 2026 13:29
Every signed context in IRaindexV7 is now an EIP-712 SignedContextV2 from
IInterpreterCallerV5. Structs carrying signed context are re-versioned
(TaskV3, TakeOrderConfigV5, TakeOrdersConfigV6, QuoteV3) and every function
and event whose ABI changes takes the next version number. rainlang-interface
is pinned to the rainlang.interface#134 merge commit until it publishes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…to 2026-10-25-raindex-v7-order-calculate-reverted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thedavidmeister
thedavidmeister changed the base branch from 2026-10-25-raindex-v7-clear4 to main October 26, 2026 17:53
@thedavidmeister

Copy link
Copy Markdown
Contributor Author

Folded into #79 (fast-forwarded its branch to this head, 7107727); OrderCalculateReverted now ships with IRaindexV7 in one PR.

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