-
Notifications
You must be signed in to change notification settings - Fork 87
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
Support for PriceOracles #701
Conversation
…s, tecError codes
…atibility with definitions.json, update integration tests
remove extraneous debug print statements
…json - oracle_set and oracle_delete
errors = super()._get_errors() | ||
|
||
# If price_data_series is not set, do not perform further validation | ||
if "price_data_series" not in errors and ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if "price_data_series" not in errors and ( | |
if self.price_data_series and ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these two statements are not equivalent. surprisingly, self.price_dataa-series
is interpreted as an [Object object]
, even when it is not specified as an input by the user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.price_data_series
**
c'mon guys, please approve the PR soon! we've had enough back and forth :) |
Co-authored-by: Omar Khan <[email protected]>
Co-authored-by: Omar Khan <[email protected]>
transaction_type: TransactionType = field( | ||
default=TransactionType.ORACLE_DELETE, | ||
init=False, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only tem...
error code pertaining to OracleDelete
stems from a misuse of the Flags
field. Since none of the transactions OracleSet
or OracleDelete
, the request GetAggregatePrice
or the LedgerEntry
Oracle
make use of a non-zero Flag, I chose to not model it.
Consequently, there are no other tem...
errors pertaining to this transaction
I have resolved those comments which I could address -- If any of the reviewers prefer to resolve the comments yourself, please let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great work! 👏
thanks to all the reviewers for patiently working through this PR. If there are any other comments, please let me know. I'll create a separate PR. |
High Level Overview of Change
This PR adds client library support for Price Oracle amendment.
Please refer to the spec: XRPLF/XRPL-Standards#129
CPP Implementation: XRPLF/rippled#4789
Context of Change
Support for transactions
OracleSet
andOracleDelete
has been added.GetAggregatePrice
request is included in the client library.Type of Change
Did you update CHANGELOG.md?
Test Plan
Unit, Integration and snippet tests have been included. There is some overlap between integration and snippet tests, perhaps they could be streamlined better.