1
1
use anchor_lang:: prelude:: * ;
2
2
use anchor_spl:: token:: spl_token;
3
3
use matching_engine:: {
4
- fallback:: {
5
- settle_auction_none_cctp:: {
6
- SettleAuctionNoneCctpShimAccounts , SettleAuctionNoneCctpShimData ,
7
- } ,
8
- FallbackMatchingEngineInstruction ,
4
+ fallback:: settle_auction_none_cctp:: {
5
+ SettleAuctionNoneCctpShim , SettleAuctionNoneCctpShimAccounts , SettleAuctionNoneCctpShimData ,
9
6
} ,
10
7
state:: Auction ,
11
8
} ;
12
- use solana_program:: instruction:: Instruction ;
13
9
use solana_program_test:: ProgramTestContext ;
14
10
use solana_sdk:: { signature:: Signer , sysvar:: SysvarId , transaction:: Transaction } ;
15
11
use wormhole_svm_definitions:: solana:: {
@@ -30,22 +26,6 @@ use crate::{
30
26
31
27
use super :: shims_execute_order:: { create_cctp_accounts, CctpAccounts } ;
32
28
33
- pub struct SettleAuctionNoneCctpShim < ' ix > {
34
- pub program_id : & ' ix Pubkey ,
35
- pub accounts : SettleAuctionNoneCctpShimAccounts < ' ix > ,
36
- pub data : SettleAuctionNoneCctpShimData ,
37
- }
38
-
39
- impl SettleAuctionNoneCctpShim < ' _ > {
40
- pub fn instruction ( self ) -> Instruction {
41
- Instruction {
42
- program_id : * self . program_id ,
43
- accounts : self . accounts . to_account_metas ( ) ,
44
- data : FallbackMatchingEngineInstruction :: SettleAuctionNoneCctpShim ( & self . data ) . to_vec ( ) ,
45
- }
46
- }
47
- }
48
-
49
29
pub async fn settle_auction_none_shimful (
50
30
testing_context : & TestingContext ,
51
31
test_context : & mut ProgramTestContext ,
@@ -170,7 +150,7 @@ fn create_settle_auction_none_cctp_shimful_accounts(
170
150
let OrderPreparedState {
171
151
prepared_order_response_address,
172
152
prepared_custody_token,
173
- base_fee_token,
153
+ base_fee_token : _ ,
174
154
actor_enum : _,
175
155
prepared_by,
176
156
} = * order_prepared_state;
0 commit comments