@@ -94,14 +94,14 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
94
94
} ,
95
95
params ,
96
96
) ;
97
- const transaction = await this . createTx ( new SolanaAddress ( owner ) . unwrap ( ) , [ ix ] ) ;
97
+ const transaction = this . createTx ( new SolanaAddress ( owner ) . unwrap ( ) , [ ix ] ) ;
98
98
yield this . createUnsignedTx ( { transaction } , "MatchingEngine.initialize" ) ;
99
99
}
100
100
101
101
async * setPause ( sender : AnySolanaAddress , pause : boolean ) {
102
102
const payer = new SolanaAddress ( sender ) . unwrap ( ) ;
103
103
const ix = await this . setPauseIx ( { ownerOrAssistant : payer } , pause ) ;
104
- const transaction = await this . createTx ( payer , [ ix ] ) ;
104
+ const transaction = this . createTx ( payer , [ ix ] ) ;
105
105
yield this . createUnsignedTx ( { transaction } , "MatchingEngine.setPause" ) ;
106
106
}
107
107
@@ -123,7 +123,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
123
123
{ chain : toChainId ( chain ) , cctpDomain, address, mintRecipient } ,
124
124
) ;
125
125
126
- const transaction = await this . createTx ( ownerOrAssistant , [ ix ] ) ;
126
+ const transaction = this . createTx ( ownerOrAssistant , [ ix ] ) ;
127
127
yield this . createUnsignedTx ( { transaction } , "MatchingEngine.registerRouter" ) ;
128
128
}
129
129
@@ -144,7 +144,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
144
144
{ chain : toChainId ( chain ) , cctpDomain, address, mintRecipient } ,
145
145
) ;
146
146
147
- const transaction = await this . createTx ( owner , [ ix ] ) ;
147
+ const transaction = this . createTx ( owner , [ ix ] ) ;
148
148
yield this . createUnsignedTx ( { transaction } , "MatchingEngine.updateRouter" ) ;
149
149
}
150
150
@@ -153,7 +153,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
153
153
154
154
const ix = await this . disableRouterEndpointIx ( { owner } , toChainId ( chain ) ) ;
155
155
156
- const transaction = await this . createTx ( owner , [ ix ] ) ;
156
+ const transaction = this . createTx ( owner , [ ix ] ) ;
157
157
yield this . createUnsignedTx ( { transaction } , "MatchingEngine.disableRouter" ) ;
158
158
}
159
159
@@ -187,7 +187,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
187
187
{ offerPrice, totalDeposit } ,
188
188
) ;
189
189
190
- const transaction = await this . createTx ( payer , ixs ) ;
190
+ const transaction = this . createTx ( payer , ixs ) ;
191
191
yield this . createUnsignedTx ( { transaction } , "MatchingEngine.placeInitialOffer" ) ;
192
192
}
193
193
@@ -203,7 +203,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
203
203
204
204
const ixs = await this . improveOfferIx ( { participant, auction } , { offerPrice : offer } ) ;
205
205
206
- const transaction = await this . createTx ( participant , ixs ) ;
206
+ const transaction = this . createTx ( participant , ixs ) ;
207
207
yield this . createUnsignedTx ( { transaction } , "MatchingEngine.improveOffer" ) ;
208
208
}
209
209
@@ -256,7 +256,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
256
256
units : 300_000 ,
257
257
} ) ;
258
258
259
- const transaction = await this . createTx ( payer , [ ix , computeIx ] ) ;
259
+ const transaction = this . createTx ( payer , [ ix , computeIx ] ) ;
260
260
yield this . createUnsignedTx ( { transaction } , "MatchingEngine.executeFastOrder" ) ;
261
261
}
262
262
@@ -310,7 +310,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
310
310
311
311
const computeIx = ComputeBudgetProgram . setComputeUnitLimit ( { units : 300_000 } ) ;
312
312
313
- const transaction = await this . createTx ( payer , [ ix , computeIx ] , lookupTables ) ;
313
+ const transaction = this . createTx ( payer , [ ix , computeIx ] , lookupTables ) ;
314
314
yield this . createUnsignedTx ( { transaction } , "MatchingEngine.prepareOrderResponse" ) ;
315
315
}
316
316
@@ -377,16 +377,15 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
377
377
378
378
ixs . push ( settleIx ) ;
379
379
380
- const transaction = await this . createTx ( payer , ixs , lookupTables ) ;
381
-
380
+ const transaction = this . createTx ( payer , ixs , lookupTables ) ;
382
381
yield this . createUnsignedTx ( { transaction } , "MatchingEngine.settleAuctionComplete" ) ;
383
382
}
384
383
385
- private async createTx (
384
+ private createTx (
386
385
payerKey : PublicKey ,
387
386
instructions : TransactionInstruction [ ] ,
388
387
lookupTables ?: AddressLookupTableAccount [ ] ,
389
- ) : Promise < VersionedTransaction > {
388
+ ) : VersionedTransaction {
390
389
const messageV0 = new TransactionMessage ( {
391
390
payerKey,
392
391
recentBlockhash : "" ,
0 commit comments