-
Notifications
You must be signed in to change notification settings - Fork 18
wip on exact swap #2366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip on exact swap #2366
Changes from all commits
cad8053
d479f78
c9b02c8
921f588
a4ff8ac
0bf8930
71642d2
51c86e0
7d3a147
774e682
ea43d29
9cdbea6
63a2682
7ac6638
7893dba
30faaf2
8fb6434
f03a724
65afba9
89465c3
f822a10
d205f66
5e640a0
6ad1984
c80a569
4a7e240
8cd8487
432a78e
e668c65
9b116c9
8c53d90
579da40
0e8dc85
6c13228
88104f7
9bafc9d
ed69e74
3ac5c6c
1febde1
4cfd936
3457623
207fc73
3137fb4
6064164
30b3d13
95e7554
c2b8477
e87494c
cf600d9
92aa5cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ use crate::raindex_client::orders::{fetch_orders_dotrain_sources, RaindexOrder}; | |
| use crate::retry::{retry_with_constant_interval, RetryError}; | ||
| use alloy::primitives::{hex::decode, Bytes, B256}; | ||
| use alloy::sol_types::{SolCall, SolValue}; | ||
| use rain_orderbook_bindings::IOrderBookV5::{removeOrder3Call, OrderV4}; | ||
| use rain_orderbook_bindings::IOrderBookV6::{removeOrder3Call, OrderV4}; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, let's read the remove_orders.rs file to see the full context
cat -n crates/common/src/raindex_client/remove_orders.rs | head -50Repository: rainlanguage/rain.orderbook Length of output: 2375 🏁 Script executed: # Check for the documentation inconsistency mentioned (line 179)
sed -n '175,185p' crates/common/src/raindex_client/remove_orders.rsRepository: rainlanguage/rain.orderbook Length of output: 436 🏁 Script executed: # Check the test section around line 621-624
sed -n '615,630p' crates/common/src/raindex_client/remove_orders.rsRepository: rainlanguage/rain.orderbook Length of output: 2141 🏁 Script executed: # Search for IOrderBookV6 bindings definition
fd "bindings" --type f | head -20Repository: rainlanguage/rain.orderbook Length of output: 53 🏁 Script executed: # Check for any remaining IOrderBookV5 references in the raindex_client directory
rg 'IOrderBookV5' crates/common/src/raindex_client/ -nRepository: rainlanguage/rain.orderbook Length of output: 53 🏁 Script executed: # Search for the rain_orderbook_bindings crate location
fd -t d "rain.orderbook.bindings|bindings" --max-depth 3 2>/dev/null || echo "Checking Cargo.toml for bindings info"Repository: rainlanguage/rain.orderbook Length of output: 87 🏁 Script executed: # Look for removeOrder3 or removeOrder2 in the codebase to verify the selector
rg 'removeOrder3|removeOrder2' --type rs -A 3 -B 1 | head -80Repository: rainlanguage/rain.orderbook Length of output: 97 🏁 Script executed: # Check Cargo.toml or Cargo.lock to understand where bindings come from
cat Cargo.toml | grep -A 3 "rain.orderbook.bindings" | head -20Repository: rainlanguage/rain.orderbook Length of output: 192 🏁 Script executed: # Search for function selector definitions or ABI related to removeOrder
rg '0x1f69cb75' --type rs -B 5 -A 5Repository: rainlanguage/rain.orderbook Length of output: 97 🏁 Script executed: # Search for removeOrder3 or removeOrder2 without file type flag
rg 'removeOrder3|removeOrder2' -A 3 -B 1 | head -100Repository: rainlanguage/rain.orderbook Length of output: 8668 🏁 Script executed: # Search for the selector in the codebase
rg '0x1f69cb75' -B 5 -A 5Repository: rainlanguage/rain.orderbook Length of output: 4636 🏁 Script executed: # Check the bindings directory structure
ls -la crates/bindings/Repository: rainlanguage/rain.orderbook Length of output: 370 🏁 Script executed: # Look for IOrderBookV6 definition in bindings
find crates/bindings -name "*.rs" -o -name "*.sol" | head -20Repository: rainlanguage/rain.orderbook Length of output: 194 🏁 Script executed: # Check the bindings source to verify removeOrder3Call exists
cat crates/bindings/src/lib.rs | head -100Repository: rainlanguage/rain.orderbook Length of output: 1635 🏁 Script executed: # Search for removeOrder3Call definition
rg 'removeOrder3Call' crates/bindings/Repository: rainlanguage/rain.orderbook Length of output: 691 🏁 Script executed: # Get the documentation comment from line 179 more completely
sed -n '170,190p' crates/common/src/raindex_client/remove_orders.rsRepository: rainlanguage/rain.orderbook Length of output: 871 🏁 Script executed: # Verify removeOrder3Call is generated from IOrderBookV6 by checking if there are any V5 references in bindings
rg 'removeOrder3Call' crates/bindings/src/lib.rs || echo "Generated from sol! macro - not explicitly defined"Repository: rainlanguage/rain.orderbook Length of output: 121 🏁 Script executed: # Check if there's a removeOrder2 anywhere in the codebase for comparison
rg 'removeOrder2' --no-heading | head -20Repository: rainlanguage/rain.orderbook Length of output: 219 Fix documentation: change The import migration to IOrderBookV6 is correct. The 🤖 Prompt for AI Agents |
||
| use rain_orderbook_subgraph_client::types::order_detail_traits::OrderDetailError; | ||
| use std::rc::Rc; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.