Open hardyjosh opened 1 week ago
There's a wip PR up now for a basic quote
To close this issue:
rain_orderbook_common
called OrderQuoter
Forker
under the hood in the same way that FuzzRunner
doesquote
fn so we can quote some orderhash for some orderbook addressquote_many
that takes a vec of orderbooks with a vec of order hashes
At the moment we can eval rainlang on a fork, functionality provided by the crates in https://github.com/rainlanguage/rain.interpreter
For live orders, this doesn't work so easily because orderbook inserts its own context, and has its own namespace for the store.
I believe @thedavidmeister is planning on adding a
quote
fn toIOrderbookV4
, after that we'll need a Rust interface where, for example, we can provide a subgraph endpoint, rpc url, orderbook address and a subgraph hash and the order will be quoted.Some of the features we'd need for this crate: