-
Notifications
You must be signed in to change notification settings - Fork 299
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
Oracle should use the TimestampedValue
from orml_traits
#904
Comments
Yeah that's likely caused by a bad refactor |
@xlc I just remembered this issue, if you want, I can open another PR, taking advance of the changes in the oracles to fix it. |
Please do! |
Go deeper with it. I'm not sure the change is "so" fast-forward. I feel like if after this change, If not, the only thing we would be doing with this change is "moving" oracle-related implementation to Having said that, I prefer not to touch anything regarding this now, or maybe only remove the |
Hi!
Both
orml_oracle
andorml_traits
define the sameTimestampedValue
struct. This is not an issue at all. Nevertheless,orml_oracle
is using its ownTimestampedValue
as a requirement inCombineData
andDataProviderExtended
traits. This means that if from my pallet I want to have aConfig
parameter with any of these types, I need to have a hard dependency against theorml_oracle
because of thatTimestampedValue
inside of it, when ideally I only needorml_traits
as a dependency, losing the power that abstracting by traits gives.It seems like the
TimestampedValue
fromorml_oracle
can be safely removed, and instead, using the one found inorml_traits
.The text was updated successfully, but these errors were encountered: