@@ -290,7 +290,7 @@ describe("Matching Engine", function () {
290
290
ownerAssistant . publicKey ,
291
291
feeRecipient ,
292
292
{ ...auctionParams , duration : 0 } ,
293
- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
293
+ USDC_MINT_ADDRESS ,
294
294
) ;
295
295
await expectTxsErr ( payerSigner , txs , "Error Code: ZeroDuration" ) ;
296
296
} ) ;
@@ -301,7 +301,7 @@ describe("Matching Engine", function () {
301
301
ownerAssistant . publicKey ,
302
302
feeRecipient ,
303
303
{ ...auctionParams , gracePeriod : 0 } ,
304
- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
304
+ USDC_MINT_ADDRESS ,
305
305
) ;
306
306
await expectTxsErr ( payerSigner , txs , "Error Code: ZeroGracePeriod" ) ;
307
307
} ) ;
@@ -312,7 +312,7 @@ describe("Matching Engine", function () {
312
312
ownerAssistant . publicKey ,
313
313
feeRecipient ,
314
314
{ ...auctionParams , penaltyPeriod : 0 } ,
315
- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
315
+ USDC_MINT_ADDRESS ,
316
316
) ;
317
317
await expectTxsErr ( payerSigner , txs , "Error Code: ZeroPenaltyPeriod" ) ;
318
318
} ) ;
@@ -323,7 +323,7 @@ describe("Matching Engine", function () {
323
323
ownerAssistant . publicKey ,
324
324
feeRecipient ,
325
325
{ ...auctionParams , userPenaltyRewardBps : 1_000_001 } ,
326
- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
326
+ USDC_MINT_ADDRESS ,
327
327
) ;
328
328
await expectTxsErr ( payerSigner , txs , "Error Code: UserPenaltyRewardBpsTooLarge" ) ;
329
329
} ) ;
@@ -334,7 +334,7 @@ describe("Matching Engine", function () {
334
334
ownerAssistant . publicKey ,
335
335
feeRecipient ,
336
336
{ ...auctionParams , initialPenaltyBps : 1_000_001 } ,
337
- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
337
+ USDC_MINT_ADDRESS ,
338
338
) ;
339
339
await expectTxsErr ( payerSigner , txs , "Error Code: InitialPenaltyBpsTooLarge" ) ;
340
340
} ) ;
@@ -345,7 +345,7 @@ describe("Matching Engine", function () {
345
345
ownerAssistant . publicKey ,
346
346
feeRecipient ,
347
347
{ ...auctionParams , minOfferDeltaBps : 1_000_001 } ,
348
- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
348
+ USDC_MINT_ADDRESS ,
349
349
) ;
350
350
await expectTxsErr ( payerSigner , txs , "Error Code: MinOfferDeltaBpsTooLarge" ) ;
351
351
} ) ;
@@ -356,7 +356,7 @@ describe("Matching Engine", function () {
356
356
ownerAssistant . publicKey ,
357
357
feeRecipient ,
358
358
{ ...auctionParams , securityDepositBase : uint64ToBN ( 0 ) } ,
359
- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
359
+ USDC_MINT_ADDRESS ,
360
360
) ;
361
361
await expectTxsErr ( payerSigner , txs , "Error Code: ZeroSecurityDepositBase" ) ;
362
362
} ) ;
@@ -367,7 +367,7 @@ describe("Matching Engine", function () {
367
367
ownerAssistant . publicKey ,
368
368
feeRecipient ,
369
369
{ ...auctionParams , securityDepositBps : 1_000_001 } ,
370
- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
370
+ USDC_MINT_ADDRESS ,
371
371
) ;
372
372
await expectTxsErr ( payerSigner , txs , "Error Code: SecurityDepositBpsTooLarge" ) ;
373
373
} ) ;
@@ -378,7 +378,7 @@ describe("Matching Engine", function () {
378
378
ownerAssistant . publicKey ,
379
379
feeRecipient ,
380
380
auctionParams ,
381
- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
381
+ USDC_MINT_ADDRESS ,
382
382
) ;
383
383
await expectTxsOk ( payerSigner , txs ) ;
384
384
@@ -409,7 +409,7 @@ describe("Matching Engine", function () {
409
409
ownerAssistant . publicKey ,
410
410
feeRecipient ,
411
411
auctionParams ,
412
- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
412
+ USDC_MINT_ADDRESS ,
413
413
) ;
414
414
await expectTxsErr (
415
415
payerSigner ,
@@ -704,7 +704,7 @@ describe("Matching Engine", function () {
704
704
705
705
for ( const endpointChain of endpointChains ) {
706
706
const txs = engine . registerRouter (
707
- new SolanaAddress ( owner . publicKey ) ,
707
+ owner . publicKey ,
708
708
endpointChain ,
709
709
CHAIN_TO_DOMAIN [ endpointChain ] ! ,
710
710
REGISTERED_TOKEN_ROUTERS_V2 [ endpointChain ] ! ,
@@ -717,7 +717,7 @@ describe("Matching Engine", function () {
717
717
it ( "Cannot Add Router Endpoint as Non-Owner and Non-Assistant" , async function ( ) {
718
718
const endpointChain = "Ethereum" ;
719
719
const txs = engine . registerRouter (
720
- new SolanaAddress ( payerSigner . address ( ) ) ,
720
+ payer . publicKey ,
721
721
endpointChain ,
722
722
CHAIN_TO_DOMAIN [ endpointChain ] ! ,
723
723
REGISTERED_TOKEN_ROUTERS_V2 [ endpointChain ] ! ,
@@ -4187,7 +4187,7 @@ describe("Matching Engine", function () {
4187
4187
4188
4188
// Place the initial offer.
4189
4189
const txs = engine . placeInitialOffer (
4190
- new SolanaAddress ( accounts . payer ) ,
4190
+ accounts . payer ,
4191
4191
// @ts -ignore -- may still be a Uint8array payload for testing invalid VAA
4192
4192
fastMarketOrderVAA ,
4193
4193
args . offerPrice ,
0 commit comments