@@ -10,20 +10,22 @@ use {
1010 pubkey:: Pubkey ,
1111 signature:: { Keypair , Signer } ,
1212 signers:: Signers ,
13- stake:: {
14- self ,
15- instruction:: { self as ixn, LockupArgs , StakeError } ,
16- state:: { Authorized , Delegation , Lockup , Meta , Stake , StakeAuthorize , StakeStateV2 } ,
17- } ,
18- system_instruction, system_program,
19- sysvar:: { clock:: Clock , stake_history:: StakeHistory } ,
2013 transaction:: { Transaction , TransactionError } ,
2114 vote:: {
2215 instruction as vote_instruction,
2316 state:: { VoteInit , VoteState , VoteStateVersions } ,
2417 } ,
2518 } ,
26- solana_stake_program:: id,
19+ solana_sdk_ids:: system_program,
20+ solana_stake_interface:: {
21+ error:: StakeError ,
22+ instruction:: { self as ixn, LockupArgs } ,
23+ program:: id,
24+ stake_history:: StakeHistory ,
25+ state:: { Authorized , Delegation , Lockup , Meta , Stake , StakeAuthorize , StakeStateV2 } ,
26+ } ,
27+ solana_system_interface:: instruction as system_instruction,
28+ solana_sysvar:: clock:: Clock ,
2729 test_case:: { test_case, test_matrix} ,
2830} ;
2931
@@ -186,7 +188,7 @@ pub async fn get_stake_account(
186188
187189pub async fn get_stake_account_rent ( banks_client : & mut BanksClient ) -> u64 {
188190 let rent = banks_client. get_rent ( ) . await . unwrap ( ) ;
189- rent. minimum_balance ( std:: mem:: size_of :: < stake :: state :: StakeStateV2 > ( ) )
191+ rent. minimum_balance ( std:: mem:: size_of :: < StakeStateV2 > ( ) )
190192}
191193
192194pub async fn get_effective_stake ( banks_client : & mut BanksClient , pubkey : & Pubkey ) -> u64 {
@@ -206,7 +208,7 @@ pub async fn get_effective_stake(banks_client: &mut BanksClient, pubkey: &Pubkey
206208
207209async fn get_minimum_delegation ( context : & mut ProgramTestContext ) -> u64 {
208210 let transaction = Transaction :: new_signed_with_payer (
209- & [ stake :: instruction :: get_minimum_delegation ( ) ] ,
211+ & [ ixn :: get_minimum_delegation ( ) ] ,
210212 Some ( & context. payer . pubkey ( ) ) ,
211213 & [ & context. payer ] ,
212214 context. last_blockhash ,
@@ -254,10 +256,10 @@ pub async fn create_independent_stake_account_with_lockup(
254256 & context. payer. pubkey( ) ,
255257 & stake. pubkey( ) ,
256258 lamports,
257- std:: mem:: size_of:: <stake :: state :: StakeStateV2 >( ) as u64 ,
259+ std:: mem:: size_of:: <StakeStateV2 >( ) as u64 ,
258260 & id( ) ,
259261 ) ,
260- stake :: instruction :: initialize( & stake. pubkey( ) , authorized, lockup) ,
262+ ixn :: initialize( & stake. pubkey( ) , authorized, lockup) ,
261263 ] ;
262264
263265 let transaction = Transaction :: new_signed_with_payer (
0 commit comments