Skip to content

Conversation

@febo
Copy link
Contributor

@febo febo commented Nov 15, 2024

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.toml configuration and updates its dependencies to use the individual crates.

There are 2 aspects that will be handled in separate PRs:

  1. Interface scripts for the CI: this will be added once script: Add features and rustdoc checks system#23 is merged, since it will follow a similar pattern.
  2. Move the StakeHistory sysvar into this repository.

@febo febo mentioned this pull request Nov 15, 2024
@febo febo requested a review from joncinque November 15, 2024 21:20
Copy link
Contributor

@joncinque joncinque left a 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

Copy link
Contributor

@joncinque joncinque left a 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

Comment on lines -4 to -7
//!
//! The sysvar ID is declared in [`sysvar::stake_history`].
//!
//! [`sysvar::stake_history`]: crate::sysvar::stake_history
Copy link
Contributor

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?

Copy link
Contributor Author

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. 👍

@febo febo requested a review from joncinque November 22, 2024 01:19
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful!

@febo febo merged commit eef358e into master Nov 22, 2024
6 checks passed
@febo febo deleted the febo/interface-crate branch December 5, 2024 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants