@@ -22,43 +22,34 @@ const NUM_ACCOUNTS: usize = 32;
22
22
#[ derive( Debug , Clone , PartialEq , Eq , Copy ) ]
23
23
pub struct ExecuteOrderShimAccounts < ' ix > {
24
24
/// The signer account.
25
- // TODO: Rename to "payer".
26
- pub signer : & ' ix Pubkey , // 0
25
+ pub payer : & ' ix Pubkey , // 0
27
26
/// The cctp message account. Seeds must be \["cctp-msg", auction_address.as_ref()\].
28
- // TODO: Rename to "new_cctp_message".
29
- pub cctp_message : & ' ix Pubkey , // 1
27
+ pub new_cctp_message : & ' ix Pubkey , // 1
30
28
pub custodian : & ' ix Pubkey , // 2
31
29
/// Seeds must be \["fast_market_order", auction_address.as_ref()\].
32
30
pub fast_market_order : & ' ix Pubkey , // 3
33
31
/// The auction account created from the place initial offer instruction.
34
32
pub active_auction : & ' ix Pubkey , // 4
35
33
/// The associated token address of the auction's custody token.
36
- // TODO: Rename to "auction_custody".
37
- pub active_auction_custody_token : & ' ix Pubkey , // 5
34
+ pub auction_custody : & ' ix Pubkey , // 5
38
35
/// The auction config account created from the place initial offer instruction.
39
- // TODO: Rename to "auction_config".
40
- pub active_auction_config : & ' ix Pubkey , // 6
36
+ pub auction_config : & ' ix Pubkey , // 6
41
37
/// The token account of the auction's best offer
42
- // TODO: Rename to "auction_best_offer_token".
43
- pub active_auction_best_offer_token : & ' ix Pubkey , // 7
38
+ pub auction_best_offer_token : & ' ix Pubkey , // 7
44
39
/// The token account of the executor
45
40
pub executor_token : & ' ix Pubkey , // 8
46
41
/// The token account of the auction's initial offer
47
- // TODO: Rename to "auction_initial_offer_token".
48
- pub initial_offer_token : & ' ix Pubkey , // 9
42
+ pub auction_initial_offer_token : & ' ix Pubkey , // 9
49
43
/// The account that signed the creation of the auction when placing the initial offer.
50
- // TODO: Rename to "auction_initial_participant".
51
- pub initial_participant : & ' ix Pubkey , // 10
44
+ pub auction_initial_participant : & ' ix Pubkey , // 10
52
45
/// The router endpoint account of the auction's target chain
53
- // TODO: Rename to "to_endpoint".
54
- pub to_router_endpoint : & ' ix Pubkey , // 11
46
+ pub to_endpoint : & ' ix Pubkey , // 11
55
47
/// The program id of the post message shim program
56
48
pub post_message_shim_program : & ' ix Pubkey , // 12
57
49
/// The emitter sequence of the core bridge program (can be derived)
58
50
pub core_bridge_emitter_sequence : & ' ix Pubkey , // 13
59
51
/// The message account of the post message shim program (can be derived)
60
- // TODO: Rename to "shim_message".
61
- pub post_shim_message : & ' ix Pubkey , // 14
52
+ pub shim_message : & ' ix Pubkey , // 14
62
53
pub cctp_deposit_for_burn_token_messenger_minter_program : & ' ix Pubkey , // 15
63
54
/// The mint account of the CCTP token to be burned
64
55
pub cctp_deposit_for_burn_mint : & ' ix Pubkey , // 16
@@ -107,21 +98,21 @@ pub struct ExecuteOrderCctpShim<'ix> {
107
98
impl ExecuteOrderCctpShim < ' _ > {
108
99
pub fn instruction ( & self ) -> Instruction {
109
100
let ExecuteOrderShimAccounts {
110
- signer : payer,
111
- cctp_message : new_cctp_message,
101
+ payer,
102
+ new_cctp_message,
112
103
custodian,
113
104
fast_market_order,
114
105
active_auction,
115
- active_auction_custody_token : auction_custody,
116
- active_auction_config : auction_config,
117
- active_auction_best_offer_token : auction_best_offer_token,
106
+ auction_custody,
107
+ auction_config,
108
+ auction_best_offer_token,
118
109
executor_token,
119
- initial_offer_token : auction_initial_offer_token,
120
- initial_participant : auction_initial_participant,
121
- to_router_endpoint : to_endpoint,
110
+ auction_initial_offer_token,
111
+ auction_initial_participant,
112
+ to_endpoint,
122
113
post_message_shim_program,
123
114
core_bridge_emitter_sequence,
124
- post_shim_message : shim_message,
115
+ shim_message,
125
116
cctp_deposit_for_burn_mint : cctp_mint,
126
117
cctp_deposit_for_burn_token_messenger_minter_sender_authority :
127
118
cctp_token_messenger_minter_sender_authority,
@@ -480,21 +471,21 @@ mod test {
480
471
ExecuteOrderCctpShim {
481
472
program_id : & Default :: default ( ) ,
482
473
accounts : ExecuteOrderShimAccounts {
483
- signer : & Default :: default ( ) ,
484
- cctp_message : & Default :: default ( ) ,
474
+ payer : & Default :: default ( ) ,
475
+ new_cctp_message : & Default :: default ( ) ,
485
476
custodian : & Default :: default ( ) ,
486
477
fast_market_order : & Default :: default ( ) ,
487
478
active_auction : & Default :: default ( ) ,
488
- active_auction_custody_token : & Default :: default ( ) ,
489
- active_auction_config : & Default :: default ( ) ,
490
- active_auction_best_offer_token : & Default :: default ( ) ,
479
+ auction_custody : & Default :: default ( ) ,
480
+ auction_config : & Default :: default ( ) ,
481
+ auction_best_offer_token : & Default :: default ( ) ,
491
482
executor_token : & Default :: default ( ) ,
492
- initial_offer_token : & Default :: default ( ) ,
493
- initial_participant : & Default :: default ( ) ,
494
- to_router_endpoint : & Default :: default ( ) ,
483
+ auction_initial_offer_token : & Default :: default ( ) ,
484
+ auction_initial_participant : & Default :: default ( ) ,
485
+ to_endpoint : & Default :: default ( ) ,
495
486
post_message_shim_program : & Default :: default ( ) ,
496
487
core_bridge_emitter_sequence : & Default :: default ( ) ,
497
- post_shim_message : & Default :: default ( ) ,
488
+ shim_message : & Default :: default ( ) ,
498
489
cctp_deposit_for_burn_mint : & Default :: default ( ) ,
499
490
cctp_deposit_for_burn_token_messenger_minter_sender_authority : & Default :: default ( ) ,
500
491
cctp_deposit_for_burn_message_transmitter_config : & Default :: default ( ) ,
0 commit comments