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

Commit edf07b1

Browse files
authored
stake-pool: Update version for crate publish (#1967)
Finalize the stake pool struct for when a lockup will eventually be present.
1 parent 329d7e3 commit edf07b1

File tree

6 files changed

+20
-15
lines changed

6 files changed

+20
-15
lines changed

Cargo.lock

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stake-pool/cli/Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ homepage = "https://spl.solana.com/stake-pool"
66
license = "Apache-2.0"
77
name = "spl-stake-pool-cli"
88
repository = "https://github.com/solana-labs/solana-program-library"
9-
version = "0.2.0"
9+
version = "0.3.0"
1010

1111
[dependencies]
1212
borsh = "0.8"
1313
clap = "2.33.3"
1414
serde_json = "1.0.62"
15-
solana-account-decoder = "1.7.3"
16-
solana-clap-utils = "1.7.3"
17-
solana-cli-config = "1.7.3"
18-
solana-client = "1.7.3"
19-
solana-logger = "1.7.3"
20-
solana-sdk = "1.7.3"
21-
solana-program = "1.7.3"
15+
solana-account-decoder = "=1.7.3"
16+
solana-clap-utils = "=1.7.3"
17+
solana-cli-config = "=1.7.3"
18+
solana-client = "=1.7.3"
19+
solana-logger = "=1.7.3"
20+
solana-sdk = "=1.7.3"
21+
solana-program = "=1.7.3"
2222
spl-associated-token-account = { version = "1.0", path="../../associated-token-account/program", features = [ "no-entrypoint" ] }
23-
spl-stake-pool = { version = "0.2", path="../program", features = [ "no-entrypoint" ] }
23+
spl-stake-pool = { version = "0.3", path="../program", features = [ "no-entrypoint" ] }
2424
spl-token = { version = "3.1", path="../../token/program", features = [ "no-entrypoint" ] }
2525
bs58 = "0.4.0"
2626
bincode = "1.3.1"

stake-pool/program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "spl-stake-pool"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
description = "Solana Program Library Stake Pool"
55
authors = ["Solana Maintainers <[email protected]>"]
66
repository = "https://github.com/solana-labs/solana-program-library"

stake-pool/program/program-id.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
poo1B9L9nR3CrcaziKVYVpRX6A9Y1LAXYasjjfCbApj
1+
SPoo1XJbrC5pXDfg5NQAXo2RKyfimXKm6KpqicGvpbo

stake-pool/program/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ pub fn find_transient_stake_program_address(
101101
)
102102
}
103103

104-
solana_program::declare_id!("poo1B9L9nR3CrcaziKVYVpRX6A9Y1LAXYasjjfCbApj");
104+
solana_program::declare_id!("SPoo1XJbrC5pXDfg5NQAXo2RKyfimXKm6KpqicGvpbo");

stake-pool/program/src/state.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! State transition types
22
33
use {
4-
crate::error::StakePoolError,
4+
crate::{error::StakePoolError, stake_program::Lockup},
55
borsh::{BorshDeserialize, BorshSchema, BorshSerialize},
66
solana_program::{account_info::AccountInfo, msg, program_error::ProgramError, pubkey::Pubkey},
77
std::convert::TryFrom,
@@ -79,6 +79,9 @@ pub struct StakePool {
7979
/// Last epoch the `total_stake_lamports` field was updated
8080
pub last_update_epoch: u64,
8181

82+
/// Lockup that all stakes in the pool must have
83+
pub lockup: Lockup,
84+
8285
/// Fee taken as a proportion of rewards each epoch
8386
pub fee: Fee,
8487

0 commit comments

Comments
 (0)