Skip to content

Commit bb4e9d5

Browse files
committed
program: implement stricter instruction processors
1 parent 6d3c671 commit bb4e9d5

File tree

5 files changed

+228
-171
lines changed

5 files changed

+228
-171
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
@@ -21,6 +21,7 @@ solana-pubkey = "3.0.0"
2121
solana-rent = "3.0.0"
2222
solana-stake-interface = { version = "2", features = ["bincode", "borsh", "sysvar"] }
2323
solana-sysvar = "3.0.0"
24+
solana-sysvar-id = "3.0.0"
2425
solana-vote-interface = { version = "4.0.4", features = ["bincode"] }
2526

2627
[dev-dependencies]
@@ -43,7 +44,6 @@ solana-signature = "3.0.0"
4344
solana-signer = "3.0.0"
4445
solana-svm-log-collector = "3.0.0"
4546
solana-system-interface = { version = "2.0.0", features = ["bincode"] }
46-
solana-sysvar-id = "3.0.0"
4747
solana-transaction = "3.0.0"
4848
test-case = "3.3.1"
4949

0 commit comments

Comments
 (0)