-
Notifications
You must be signed in to change notification settings - Fork 294
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
dex: inventorize useful ABCI events to index #3645
Comments
Nice to have for 65 (#3554), but really we can ship without it, and follow up with a point release. The downside of shipping without it is that anyone who wants this functionality would need to reset their node and resync in order to have the older events indexed. We accept that as a downside if it helps us ship 65 sooner. |
Explorer Events
Price Monitoring Events
Event based trading bot
|
Rather than framing this as "position reserves changed", i think it would be useful to frame it as a "position execution", since that's what causes the position reserves to change. That way we can emit events on all the micro-executions as well as for the overall batch execution. |
Going through the code right now and checking off completed events:
|
Noticed this comment on // TODO: should we have another event triggered by the position manager for when
// the position is actually closed? I'm not sure what the distinction of "actually closed" here is, but I haven't gone through the call chain yet. Leaving this comment to remind myself. |
This adds code to emit ABCI events for the following DEX actions: - Position created - Position executed against - Position closed - Position withdrawn - Swap - Swap Claim - Batch swap executed - Arbitrage execution Closes #3645
As part of #3504, we ported all of our event recording to use the
ProtoEvent
interface. We should run through a few indexing use cases (e.g. an explorer, a price monitoring tool, an event-based trading bot etc.) to check if the ABCI event coverage of the DEX is complete.The text was updated successfully, but these errors were encountered: