-
Notifications
You must be signed in to change notification settings - Fork 14
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
DDO: Stats and Prices for exchanges/dispensers #525
Labels
Milestone
Comments
This was referenced Jul 5, 2024
Open
Open
Open
alexcos20
changed the title
DDO: Prices for exchanges/dispensers
DDO: Stats and Prices for exchanges/dispensers
Jul 5, 2024
Updated DDO type (based on what we talked about at EOC meeting)
|
needs update to move all extra metadata in one root key, so we can easily exclude it from hash |
We do also monitor OrderReused and we should also update the count of orders as well. I mentioned it here since it was not included in theissue description just to be aware that we also need to update OrderReused event monitor logic. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to proper display assets in dApps, we need all info regarding assets, including prices.
Every datatoken can have one or more fixed rate exchanges or dispensers.
But we need to be careful when adding this to a DDO, cause this can quickly result to hash missmatches.
To Do:
So , a DDO can look like:
To do:
-[ ] exclude "offchain" from every hash compute
-[ ] for MetaDataCreated:
-[ ] for MetaDataUpdated:
-[ ] indexer: add monitor for DispenserActivated and DispenserDeactivated events (https://github.com/oceanprotocol/contracts/blob/main/contracts/pools/dispenser/Dispenser.sol#L39-L45). If such an event is detected, get all ddos with a match and update it (remove dispenser/add dispenser)
-[ ] indexer: add monitor for ExchangeActivated and ExchangeDeactivated events (https://github.com/oceanprotocol/contracts/blob/main/contracts/pools/fixedRate/FixedRateExchange.sol#L103-L111). If such an event is detected, get all ddos with a match and update it (remove dispenser/add fixed rate)
-[ ] indexer: add monitor for ExchangeRateChanged event(https://github.com/oceanprotocol/contracts/blob/main/contracts/pools/fixedRate/FixedRateExchange.sol#L90C11-L94). If such an event is detected, get all ddos with a match and update them with the new rate
-[ ] indexer: add monitor for OrderStarted event(https://github.com/oceanprotocol/contracts/blob/main/contracts/templates/ERC20TemplateEnterprise.sol#L85-L93). If such an event is detected, get all ddos with a match and update orders count
The text was updated successfully, but these errors were encountered: