rainlanguage / rain.orderbook

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

show and ability to change the owner that is being used to eval the debug panel #649

Open thedavidmeister opened 2 months ago

thedavidmeister commented 2 months ago

motivation

want to be able to debug against production data for existing deployed get/set

for example, if i deploy a sampler and it is running, i want to be able to see the samples when i am debugging my trading strat

currently this doesn't work, it always returns 0 for the results of the sampler, i think this is because the owner is not being set during debugging

i tried to connect my wallet but it didn't help

solution

hardyjosh commented 2 months ago

@thedavidmeister is the context grid changing for obv4?

hardyjosh commented 1 month ago

This is because the namespace that is used when evalling is set to default

https://github.com/rainlanguage/rain.orderbook/blob/95f69a815fc42f28544c42daa29287b8c105582f/crates/common/src/fuzz/mod.rs#L276

To resolve this issue we need three things: