Skip to content

Commit 5971b45

Browse files
committed
program: implement stricter instruction processors
1 parent 6fba289 commit 5971b45

File tree

5 files changed

+229
-172
lines changed

5 files changed

+229
-172
lines changed

interface/src/instruction.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ const RENT_ID: Pubkey = Pubkey::from_str_const("SysvarRent1111111111111111111111
2929
const STAKE_HISTORY_ID: Pubkey =
3030
Pubkey::from_str_const("SysvarStakeHistory1111111111111111111111111");
3131

32+
// NOTE the stake program is in the process of removing dependence on all sysvars
33+
// once this version of the program is live on all clusters, we can remove them here
34+
// namely, from all doc comments in `StakeInstruction` and in all instruction builders
35+
// we may also remove all use of and reference to the stake config account
3236
#[cfg_attr(
3337
feature = "serde",
3438
derive(serde_derive::Deserialize, serde_derive::Serialize)

program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ solana-pubkey = "3.0.0"
2525
solana-rent = "3.0.0"
2626
solana-stake-interface = { version = "2", features = ["bincode", "borsh", "sysvar"] }
2727
solana-sysvar = "3.0.0"
28+
solana-sysvar-id = "3.0.0"
2829
solana-vote-interface = { version = "4.0.3", features = ["bincode"] }
2930

3031
[dev-dependencies]
@@ -46,7 +47,6 @@ solana-sdk-ids = "3.0.0"
4647
solana-signature = "3.0.0"
4748
solana-signer = "3.0.0"
4849
solana-system-interface = { version = "2.0.0", features = ["bincode"] }
49-
solana-sysvar-id = "3.0.0"
5050
solana-transaction = "3.0.0"
5151
test-case = "3.3.1"
5252

0 commit comments

Comments
 (0)