-
Notifications
You must be signed in to change notification settings - Fork 512
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
feat(xrpl): custom definitions support #2683
base: main
Are you sure you want to change the base?
feat(xrpl): custom definitions support #2683
Conversation
Hey there, did you also check #2214 |
Co-authored-by: Mayukha Vadari <[email protected]>
Co-authored-by: tequ <[email protected]>
…n_support Support custom definitions for `client.submit()`, `client.submitAndWait()`
@elmurci looks like something broke TS |
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.
Applying this change resolved the build error (in my local).
Co-authored-by: tequ <[email protected]>
@elmurci |
@coderabbitai full review |
Actions performedFull review triggered. |
Warning Rate limit exceeded@justinr1234 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 29 minutes and 55 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
High Level Overview of Change
In previous versions, custom definition support was added to the
ripple-binary-codec
methods but not the proxy ones in thexrpl
package.This PR adds support for Custom Definitions to the following
xrpl
methods:utils.encode
utils.decode
utils.encodeForSigning
Wallet.sign
client.submit()
(@tequdev)client.submitAndWait
(@tequdev)Context of Change
When using custom definitions, you had to directly use the
encode
,decode
, andencodeForSigning
methods fromripple-binary-codec
. Those features can now be used via the proxy methods in thexrpl
package.Custom definition support has also been added to the
Wallet.sign
method which wasn't the case before.Type of Change
Did you update HISTORY.md?
Test Plan
Added 3 unit tests for:
Wallet.sign
(single signature)Wallet.sign
(multisignature)Wallet.sign
(unknown transaction type)