Conversation
WalkthroughThis change is a large-scale refactor that migrates the Rain Orderbook webapp and Tauri app to use a new Changes
Sequence Diagram(s)sequenceDiagram
participant UI
participant RaindexClient
participant WASM
participant Subgraph/RPC
UI->>RaindexClient: Call getOrderByHash(chainId, orderbookAddress, orderHash)
RaindexClient->>WASM: Convert params, get orderbook client
WASM->>Subgraph/RPC: Query subgraph for order by hash
Subgraph/RPC-->>WASM: Return order data
WASM-->>RaindexClient: Return RaindexOrder
RaindexClient-->>UI: Return RaindexOrder
UI->>RaindexOrder: Call getQuotes(blockNumber, gas)
RaindexOrder->>RaindexClient: Get RPC URLs for chain
RaindexOrder->>WASM: Call get_order_quotes with params
WASM->>Subgraph/RPC: Perform quote simulation
Subgraph/RPC-->>WASM: Return quote result
WASM-->>RaindexOrder: Return BatchOrderQuotesResponse[]
RaindexOrder-->>UI: Return quotes
Assessment against linked issues
Assessment against linked issues: Out-of-scope changes
Possibly related PRs
Suggested labels
Suggested reviewers
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
npm error Exit handler never called! 🔧 Clippy (1.86.0)error: failed to get Caused by: Caused by: Caused by: Caused by: ✨ Finishing Touches
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. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Caution
Merge this PR before merge rainlanguage/rain.strategies#46
Motivation
See issue: #1960
This PR implements the new RaindexClient sdk into the webapp and tauri app and removes the old versions of the wasm bindings during the process.
Things changed in this PR:
Solution
Checks
By submitting this for review, I'm confirming I've done the following:
fix #1960
Summary by CodeRabbit
New Features
Refactor
Bug Fixes
Chores
Tests