1
- import { ChainId } from "@certusone/ wormhole-sdk" ;
1
+ import { ChainId } from "@wormhole-foundation/ sdk" ;
2
2
import { ethers } from "ethers" ;
3
3
import { RouterEndpoint , LiveAuctionData , MatchingEngine , RedeemParameters } from "." ;
4
4
import { LiquidityLayerTransactionResult } from ".." ;
@@ -25,7 +25,7 @@ export class EvmMatchingEngine implements MatchingEngine<ethers.ContractTransact
25
25
constructor (
26
26
connection : ethers . Signer | ethers . providers . Provider ,
27
27
contractAddress : string ,
28
- circleBridge : string
28
+ circleBridge : string ,
29
29
) {
30
30
this . contract = IMatchingEngine__factory . connect ( contractAddress , connection ) ;
31
31
this . circle = ITokenMessenger__factory . connect ( circleBridge , connection ) ;
@@ -54,42 +54,42 @@ export class EvmMatchingEngine implements MatchingEngine<ethers.ContractTransact
54
54
async addRouterEndpoint (
55
55
chain : number ,
56
56
endpoint : RouterEndpoint ,
57
- domain : number
57
+ domain : number ,
58
58
) : Promise < ethers . ContractTransaction > {
59
59
return this . contract . addRouterEndpoint ( chain , endpoint , domain ) ;
60
60
}
61
61
62
62
async placeInitialBid (
63
63
fastTransferVaa : Buffer | Uint8Array ,
64
- feeBid : bigint | ethers . BigNumberish
64
+ feeBid : bigint | ethers . BigNumberish ,
65
65
) : Promise < ethers . ContractTransaction > {
66
66
return this . contract . placeInitialBid ( fastTransferVaa , feeBid ) ;
67
67
}
68
68
69
69
async improveBid (
70
70
auctionId : Buffer | Uint8Array ,
71
- feeBid : bigint | ethers . BigNumberish
71
+ feeBid : bigint | ethers . BigNumberish ,
72
72
) : Promise < ethers . ContractTransaction > {
73
73
return this . contract . improveBid ( auctionId , feeBid ) ;
74
74
}
75
75
76
76
async executeFastOrder (
77
- fastTransferVaa : Buffer | Uint8Array
77
+ fastTransferVaa : Buffer | Uint8Array ,
78
78
) : Promise < ethers . ContractTransaction > {
79
79
return this . contract . executeFastOrder ( fastTransferVaa ) ;
80
80
}
81
81
82
82
async executeSlowOrderAndRedeem (
83
83
fastTransferVaa : Buffer | Uint8Array ,
84
- params : RedeemParameters
84
+ params : RedeemParameters ,
85
85
) : Promise < ethers . ContractTransaction > {
86
86
return this . contract . executeSlowOrderAndRedeem ( fastTransferVaa , params ) ;
87
87
}
88
88
89
89
async calculateDynamicPenalty (
90
90
auctionId ?: Buffer | Uint8Array ,
91
91
amount ?: bigint | ethers . BigNumberish ,
92
- blocksElapsed ?: bigint | ethers . BigNumberish
92
+ blocksElapsed ?: bigint | ethers . BigNumberish ,
93
93
) : Promise < [ ethers . BigNumberish , ethers . BigNumberish ] > {
94
94
if ( auctionId !== undefined ) {
95
95
return this . contract [ "calculateDynamicPenalty(bytes32)" ] ( auctionId ) ;
@@ -144,8 +144,8 @@ export class EvmMatchingEngine implements MatchingEngine<ethers.ContractTransact
144
144
this . address ,
145
145
coreBridge . address ,
146
146
txReceipt ,
147
- circleTransmitterAddress
148
- )
147
+ circleTransmitterAddress ,
148
+ ) ,
149
149
) ;
150
150
}
151
151
0 commit comments