-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Add more sysvar API docs #26849
Add more sysvar API docs #26849
Conversation
The CI sanity check is tripping on |
I'll think about other ways to present those examples. |
Ah, yeah, our println net is too broad. We ought to allow them in docs. I'll see how tedious that would be to update. |
@CriesofCarrots i just removed the printlns from the examples |
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.
Some nits, but generally great work, as always!
Great reviews, thanks. |
CI failure is a rustsec advisory unrelated to this patch. |
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]>
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]>
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]>
Co-authored-by: Tyera Eulberg <[email protected]>
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, thank you!
I'm going to rebase on master to pick up the audit fix and make sure we get through checks
f245f9f
to
a3f65d2
Compare
Pull request has been modified.
* Add more sysvar API docs * Remove println from examples * Update sdk/program/src/clock.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update sdk/program/src/clock.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update sdk/program/src/clock.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update sdk/program/src/clock.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update sdk/program/src/clock.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update sdk/program/src/clock.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update sdk/program/src/clock.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update sdk/program/src/clock.rs Co-authored-by: Tyera Eulberg <[email protected]> * Fix docs for ACCOUNT_STORAGE_OVERHEAD * Update sdk/program/src/epoch_schedule.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update sdk/program/src/sysvar/slot_hashes.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update sdk/program/src/sysvar/slot_history.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update sdk/program/src/sysvar/slot_history.rs Co-authored-by: Tyera Eulberg <[email protected]> * Update sdk/program/src/sysvar/mod.rs Co-authored-by: Tyera Eulberg <[email protected]> * Fix docs for DEFAULT_LEADER_SCHEDULE_SLOT_OFFSET * Fix recent_blockhash short description * Fix whitespace Co-authored-by: Tyera Eulberg <[email protected]>
Problem
More docs needed.
Summary of Changes
This adds documentation to the sysvar module and its submodules, to the data types and supporting functions associated with each sysvar. It moves the crate-level sysvar docs into the sysvar module.