Refactor stake program into solana_program (#17906)
* Move stake state / instructions into solana_program * Update account-decoder * Update cli and runtime * Update all other parts * Commit Cargo.lock changes in programs/bpf * Update cli stake instruction import * Allow integer arithmetic * Update ABI digest * Bump rust mem instruction count * Remove useless structs * Move stake::id() -> stake::program::id() * Re-export from solana_sdk and mark deprecated * Address feedback * Run cargo fmt
This commit is contained in:
@ -29,4 +29,3 @@ tokio = { version = "1", features = ["full"] }
|
||||
|
||||
[dev-dependencies]
|
||||
assert_matches = "1.3.0"
|
||||
solana-stake-program = { path = "../programs/stake", version = "=1.8.0" }
|
||||
|
@ -12,6 +12,10 @@ use {
|
||||
pubkey::Pubkey,
|
||||
rent::Rent,
|
||||
signature::{Keypair, Signer},
|
||||
stake::{
|
||||
instruction as stake_instruction,
|
||||
state::{Authorized, Lockup, StakeState},
|
||||
},
|
||||
system_instruction, system_program,
|
||||
sysvar::{
|
||||
clock,
|
||||
@ -20,10 +24,6 @@ use {
|
||||
},
|
||||
transaction::{Transaction, TransactionError},
|
||||
},
|
||||
solana_stake_program::{
|
||||
stake_instruction,
|
||||
stake_state::{Authorized, Lockup, StakeState},
|
||||
},
|
||||
solana_vote_program::{
|
||||
vote_instruction,
|
||||
vote_state::{VoteInit, VoteState},
|
||||
|
Reference in New Issue
Block a user