Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

stake-pool-js: export the StakePoolLayout #7324

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

tomjohn1028
Copy link
Contributor

Necessary to load individual StakePools by their pubkey (possibly across different stake pool program deployments) and decode.

@mergify mergify bot added the community Community contribution label Oct 3, 2024
Copy link
Contributor

@buffalojoec buffalojoec left a 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 ?

@@ -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';
Copy link
Contributor

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.

joncinque
joncinque previously approved these changes Oct 8, 2024
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 good to me (with Joe's question)!

@mergify mergify bot dismissed joncinque’s stale review October 8, 2024 22:54

Pull request has been modified.

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.

Thanks for the contribution!

@joncinque
Copy link
Contributor

Merging early since the stake pool tests passed

@joncinque joncinque merged commit 2e62fd8 into solana-labs:master Oct 8, 2024
34 checks passed
@joncinque joncinque changed the title [@solana/spl-stake-pool] export the StakePoolLayout stake-pool-js: export the StakePoolLayout Oct 8, 2024
joncinque added a commit to joncinque/solana-program-library that referenced this pull request Oct 8, 2024
#### 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.
joncinque added a commit that referenced this pull request Oct 8, 2024
#### Problem

#7324 exposed some needed types, but it's not released yet.

#### Summary of changes

Bump the patch version to release a new version.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants