@@ -10,8 +10,7 @@ pub struct InitializeFastMarketOrderAccounts<'ix> {
10
10
/// Lamports from this signer will be used to create the new fast market
11
11
/// order account. This account will be the only authority allowed to
12
12
/// close this account.
13
- // TODO: Rename to "payer".
14
- pub signer : & ' ix Pubkey , // 0
13
+ pub payer : & ' ix Pubkey , // 0
15
14
16
15
/// The from router endpoint account for the hash of the fast market order
17
16
pub from_endpoint : & ' ix Pubkey ,
@@ -21,14 +20,10 @@ pub struct InitializeFastMarketOrderAccounts<'ix> {
21
20
pub verify_vaa_shim_program : & ' ix Pubkey , // 1
22
21
pub guardian_set : & ' ix Pubkey , // 2
23
22
/// The guardian set signatures of fast market order VAA.
24
- // TODO: Rename to "shim_guardian_signatures".
25
- pub guardian_set_signatures : & ' ix Pubkey , // 3
23
+ pub shim_guardian_signatures : & ' ix Pubkey , // 3
26
24
/// The fast market order account pubkey (that is created by the
27
25
/// instruction).
28
- // TODO: Rename to "new_fast_market_order".
29
- pub fast_market_order_account : & ' ix Pubkey , // 4
30
- // TODO: Remove.
31
- pub system_program : & ' ix Pubkey , // 5
26
+ pub new_fast_market_order : & ' ix Pubkey , // 4
32
27
}
33
28
34
29
#[ derive( Debug , Copy , Clone , Pod , Zeroable ) ]
@@ -71,14 +66,13 @@ pub struct InitializeFastMarketOrder<'ix> {
71
66
impl InitializeFastMarketOrder < ' _ > {
72
67
pub fn instruction ( & self ) -> Instruction {
73
68
let InitializeFastMarketOrderAccounts {
74
- signer : payer,
75
- fast_market_order_account : new_fast_market_order,
69
+ payer,
70
+ new_fast_market_order,
76
71
from_endpoint,
77
72
78
73
guardian_set : wormhole_guardian_set,
79
- guardian_set_signatures : shim_guardian_signatures,
74
+ shim_guardian_signatures,
80
75
verify_vaa_shim_program,
81
- system_program : _,
82
76
} = self . accounts ;
83
77
84
78
let accounts = vec ! [
@@ -195,13 +189,12 @@ mod test {
195
189
InitializeFastMarketOrder {
196
190
program_id : & Default :: default ( ) ,
197
191
accounts : InitializeFastMarketOrderAccounts {
198
- signer : & Default :: default ( ) ,
199
- fast_market_order_account : & Default :: default ( ) ,
192
+ payer : & Default :: default ( ) ,
193
+ new_fast_market_order : & Default :: default ( ) ,
200
194
from_endpoint : & Default :: default ( ) ,
201
195
verify_vaa_shim_program : & Default :: default ( ) ,
202
196
guardian_set : & Default :: default ( ) ,
203
- guardian_set_signatures : & Default :: default ( ) ,
204
- system_program : & Default :: default ( ) ,
197
+ shim_guardian_signatures : & Default :: default ( ) ,
205
198
} ,
206
199
data : InitializeFastMarketOrderData :: new (
207
200
FastMarketOrder :: new ( FastMarketOrderParams {
0 commit comments