-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
stake-pool-js: export the StakePoolLayout #7324
stake-pool-js: export the StakePoolLayout #7324
Conversation
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.
Wfm. Any opposition to making the layouts public here @joncinque ?
stake-pool/js/src/index.ts
Outdated
@@ -46,6 +46,7 @@ import BN from 'bn.js'; | |||
export type { StakePool, AccountType, ValidatorList, ValidatorStakeInfo } from './layouts'; | |||
export { STAKE_POOL_PROGRAM_ID } from './constants'; | |||
export * from './instructions'; | |||
export { StakePoolLayout } from './layouts'; |
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.
If we're going to make this one public, might as well do ValidatorStakeInfoLayout
and ValidatorListLayout
as well.
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 good to me (with Joe's question)!
Pull request has been modified.
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 for the contribution!
Merging early since the stake pool tests passed |
#### Problem solana-labs#7324 exposed some needed types, but it's not released yet. #### Summary of changes Bump the patch version to release a new version.
#### Problem #7324 exposed some needed types, but it's not released yet. #### Summary of changes Bump the patch version to release a new version.
Necessary to load individual StakePools by their pubkey (possibly across different stake pool program deployments) and decode.