@@ -37,34 +37,63 @@ impl SettleAuctionNoneCctpShimData {
37
37
}
38
38
39
39
pub struct SettleAuctionNoneCctpShimAccounts < ' ix > {
40
+ /// Payer of the account
40
41
pub payer : & ' ix Pubkey , // 0
42
+ /// Post message message account
41
43
pub post_message_message : & ' ix Pubkey , // 1
44
+ /// Post message sequence account
42
45
pub post_message_sequence : & ' ix Pubkey , // 2
46
+ /// Post message shim event authority CHECK: Mutable. Seeds must be \["core-msg", payer, payer_sequence.value\].
43
47
pub post_message_shim_event_authority : & ' ix Pubkey , // 3
48
+ /// Post message shim program
44
49
pub post_message_shim_program : & ' ix Pubkey , // 4
50
+ /// Cctp message
45
51
pub cctp_message : & ' ix Pubkey , // 5
52
+ /// Custodian account
46
53
pub custodian : & ' ix Pubkey , // 6
54
+ /// Fee recipient token
47
55
pub fee_recipient_token : & ' ix Pubkey , // 7
56
+ /// Closed prepared order response actor (closed_by)
48
57
pub closed_prepared_order_response_actor : & ' ix Pubkey , // 8
58
+ /// Closed prepared order response
49
59
pub closed_prepared_order_response : & ' ix Pubkey , // 9
60
+ /// Closed prepared order response custody token
50
61
pub closed_prepared_order_response_custody_token : & ' ix Pubkey , // 10
62
+ /// Auction account
51
63
pub auction : & ' ix Pubkey , // 11
64
+ /// Cctp mint (must be USDC mint)
52
65
pub cctp_mint : & ' ix Pubkey , // 12
66
+ /// Cctp token messenger minter sender authority
53
67
pub cctp_token_messenger_minter_sender_authority : & ' ix Pubkey , // 13
68
+ /// Cctp message transmitter config
54
69
pub cctp_message_transmitter_config : & ' ix Pubkey , // 14
70
+ /// Cctp token messenger
55
71
pub cctp_token_messenger : & ' ix Pubkey , // 15
72
+ /// Cctp remote token messenger
56
73
pub cctp_remote_token_messenger : & ' ix Pubkey , // 16
74
+ /// Cctp token minter
57
75
pub cctp_token_minter : & ' ix Pubkey , // 17
76
+ /// Cctp local token
58
77
pub cctp_local_token : & ' ix Pubkey , // 18
78
+ /// Cctp token messenger minter event authority
59
79
pub cctp_token_messenger_minter_event_authority : & ' ix Pubkey , // 19
80
+ /// Cctp token messenger minter program
60
81
pub cctp_token_messenger_minter_program : & ' ix Pubkey , // 20
82
+ /// Cctp message transmitter program
61
83
pub cctp_message_transmitter_program : & ' ix Pubkey , // 21
84
+ /// Core bridge program
62
85
pub core_bridge_program : & ' ix Pubkey , // 22
86
+ /// Core bridge fee collector
63
87
pub core_bridge_fee_collector : & ' ix Pubkey , // 23
88
+ /// Core bridge config
64
89
pub core_bridge_config : & ' ix Pubkey , // 24
90
+ /// Token program
65
91
pub token_program : & ' ix Pubkey , // 25
92
+ /// System program
66
93
pub system_program : & ' ix Pubkey , // 26
94
+ /// Clock
67
95
pub clock : & ' ix Pubkey , // 27
96
+ /// Rent
68
97
pub rent : & ' ix Pubkey , // 28
69
98
}
70
99
@@ -179,7 +208,6 @@ pub fn settle_auction_none_cctp_shim(
179
208
let auction_pda = Pubkey :: create_program_address ( & auction_seeds, program_id)
180
209
. map_err ( |_| MatchingEngineError :: InvalidPda ) ?;
181
210
if auction_pda != auction. key ( ) {
182
- msg ! ( "Auction pda is invalid" ) ;
183
211
return Err ( MatchingEngineError :: InvalidPda . into ( ) ) ;
184
212
}
185
213
let auction_signer_seeds = & [ & auction_seeds[ ..] ] ;
@@ -275,7 +303,6 @@ pub fn settle_auction_none_cctp_shim(
275
303
post_message_accounts,
276
304
accounts,
277
305
) ?;
278
- msg ! ( "Got here 17" ) ;
279
306
// TODO: Emit event?
280
307
let close_token_account_ix = spl_token:: instruction:: close_account (
281
308
& spl_token:: ID ,
@@ -284,13 +311,11 @@ pub fn settle_auction_none_cctp_shim(
284
311
& custodian. key ( ) ,
285
312
& [ ] ,
286
313
) ?;
287
- msg ! ( "Got here 18" ) ;
288
314
invoke_signed_unchecked (
289
315
& close_token_account_ix,
290
316
accounts,
291
317
& [ & Custodian :: SIGNER_SEEDS ] ,
292
318
) ?;
293
- msg ! ( "Got here 19" ) ;
294
319
Ok ( ( ) )
295
320
}
296
321
0 commit comments