-
Notifications
You must be signed in to change notification settings - Fork 33
Add interface crate #17
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
Conversation
joncinque
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.
Looks great overall! Mostly small things
joncinque
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.
Looks really close! Just a few last bits that I noticed on this pass
| //! | ||
| //! The sysvar ID is declared in [`sysvar::stake_history`]. | ||
| //! | ||
| //! [`sysvar::stake_history`]: crate::sysvar::stake_history |
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.
You can do this in follow-up work, but how about bringing in solana-sysvar-id crate and implementing it for stake history in this crate?
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.
Yeah, I will bring the stake history sysvar on a separate PR. 👍
joncinque
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.
Beautiful!
Problem
While the repository contains the source files for the Stake interface, it does not define the interface crate.
Solution
This PR adds the interface
Cargo.tomlconfiguration and updates its dependencies to use the individual crates.There are 2 aspects that will be handled in separate PRs:
StakeHistorysysvar into this repository.