-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add more API documentation for Rust RpcClient #19021
Add more API documentation for Rust RpcClient #19021
Conversation
|
Another thing this patch does is add an "RPC Reference" section to some of the methods that links to the RPC spec for the underlying protocol. The intent is to avoid having to reproduce the protocol documentation in the API. |
55b98df to
319c19e
Compare
Codecov Report
@@ Coverage Diff @@
## master #19021 +/- ##
=========================================
- Coverage 82.7% 82.7% -0.1%
=========================================
Files 449 449
Lines 127997 128035 +38
=========================================
- Hits 105968 105961 -7
- Misses 22029 22074 +45 |
CriesofCarrots
left a comment
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.
Thank you! Just a couple suggestions and nits. (Sorry that there's no good way to preserve 80-char wrapping in github suggestions!)
Co-authored-by: Tyera Eulberg <[email protected]>
Co-authored-by: Tyera Eulberg <[email protected]>
Co-authored-by: Tyera Eulberg <[email protected]>
Co-authored-by: Tyera Eulberg <[email protected]>
ca70369 to
0f039ec
Compare
|
Updated with all suggestions resolved. Thanks for the good review @CriesofCarrots |
CriesofCarrots
left a comment
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.
Thanks! lgtm
I'll hand-hold it through CI
* Add doc links to Transaction API docs * Add more RpcClient API docs * Reflow some rpc_client docs * Update client/src/rpc_client.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update client/src/rpc_client.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update client/src/rpc_client.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update sdk/src/transaction.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update RpcClient docs per review Co-authored-by: Tyera Eulberg <[email protected]> (cherry picked from commit b67ffab)
* Add doc links to Transaction API docs * Add more RpcClient API docs * Reflow some rpc_client docs * Update client/src/rpc_client.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update client/src/rpc_client.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update client/src/rpc_client.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update sdk/src/transaction.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update RpcClient docs per review Co-authored-by: Tyera Eulberg <[email protected]> (cherry picked from commit b67ffab) Co-authored-by: Brian Anderson <[email protected]>
This adds more API docs and examples for the Rust RpcClient.
Followup to #18748
The biggest changes here are relatively complete docs for
get_signature_statuses,get_signature_statuses_with_history,confirm_transaction, andconfirm_transaction_with_commitment. I have also added preliminary examples for more methods as I familiarize myself with the code. Some of these examples need improvement still, and I intend to revisit them when I write their full docs.It's been about two weeks of work since my last patch, and this patch is pretty sizable, so I am looking for feedback. After this PR I plan to continue documenting this module. I also have a patch of integration tests for RpcClient that I intend to submit eventually.