@@ -18,9 +18,8 @@ use super::burn_and_post::{burn_and_post, PostMessageAccounts};
18
18
19
19
const NUM_ACCOUNTS : usize = 32 ;
20
20
21
- // TODO: Rename to "ExecuteOrderCctpV2Accounts".
22
21
#[ derive( Debug , Clone , PartialEq , Eq , Copy ) ]
23
- pub struct ExecuteOrderShimAccounts < ' ix > {
22
+ pub struct ExecuteOrderV2Accounts < ' ix > {
24
23
/// The signer account.
25
24
pub payer : & ' ix Pubkey , // 0
26
25
/// The cctp message account. Seeds must be \["cctp-msg", auction_address.as_ref()\].
@@ -78,26 +77,18 @@ pub struct ExecuteOrderShimAccounts<'ix> {
78
77
pub core_bridge_fee_collector : & ' ix Pubkey , // 27
79
78
/// The event authority account of the post message shim program
80
79
pub post_message_shim_event_authority : & ' ix Pubkey , // 28
81
- /// The program id of the system program
82
- // TODO: Remove.
83
- pub system_program : & ' ix Pubkey , // 29
84
- /// The program id of the token program
85
- // TODO: Remove.
86
- pub token_program : & ' ix Pubkey , // 30
87
- /// The clock account
88
- // TODO: Remove.
89
- pub clock : & ' ix Pubkey , // 31
90
80
}
81
+
91
82
92
83
// TODO: Rename to "ExecuteOrderCctpV2".
93
84
pub struct ExecuteOrderCctpShim < ' ix > {
94
85
pub program_id : & ' ix Pubkey ,
95
- pub accounts : ExecuteOrderShimAccounts < ' ix > ,
86
+ pub accounts : ExecuteOrderV2Accounts < ' ix > ,
96
87
}
97
88
98
89
impl ExecuteOrderCctpShim < ' _ > {
99
90
pub fn instruction ( & self ) -> Instruction {
100
- let ExecuteOrderShimAccounts {
91
+ let ExecuteOrderV2Accounts {
101
92
payer,
102
93
new_cctp_message,
103
94
custodian,
@@ -130,9 +121,6 @@ impl ExecuteOrderCctpShim<'_> {
130
121
core_bridge_config,
131
122
core_bridge_fee_collector,
132
123
post_message_shim_event_authority,
133
- system_program : _,
134
- token_program : _,
135
- clock : _,
136
124
} = self . accounts ;
137
125
138
126
let accounts = vec ! [
@@ -470,7 +458,7 @@ mod test {
470
458
fn test_instruction ( ) {
471
459
ExecuteOrderCctpShim {
472
460
program_id : & Default :: default ( ) ,
473
- accounts : ExecuteOrderShimAccounts {
461
+ accounts : ExecuteOrderV2Accounts {
474
462
payer : & Default :: default ( ) ,
475
463
new_cctp_message : & Default :: default ( ) ,
476
464
custodian : & Default :: default ( ) ,
@@ -500,9 +488,6 @@ mod test {
500
488
core_bridge_config : & Default :: default ( ) ,
501
489
core_bridge_fee_collector : & Default :: default ( ) ,
502
490
post_message_shim_event_authority : & Default :: default ( ) ,
503
- system_program : & Default :: default ( ) ,
504
- token_program : & Default :: default ( ) ,
505
- clock : & Default :: default ( ) ,
506
491
} ,
507
492
}
508
493
. instruction ( ) ;
0 commit comments