rainlanguage / rain.orderbook

Rain orderbook libraries, subgraph and contract implementation.
7 stars 4 forks source link

Quote orders #709

Open hardyjosh opened 1 week ago

hardyjosh commented 1 week ago

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 to IOrderbookV4, 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:

hardyjosh commented 1 week ago

There's a wip PR up now for a basic quote

https://github.com/rainlanguage/rain.orderbook/pull/711

hardyjosh commented 5 days ago

To close this issue: