@@ -62,6 +62,23 @@ interface V3SpokePoolInterface {
6262 bytes message;
6363 }
6464
65+ // Same as V3RelayData but using addresses instead of bytes32 & depositId is uint32.
66+ // Will be deprecated in favor of V3RelayData in the future.
67+ struct V3RelayDataLegacy {
68+ address depositor;
69+ address recipient;
70+ address exclusiveRelayer;
71+ address inputToken;
72+ address outputToken;
73+ uint256 inputAmount;
74+ uint256 outputAmount;
75+ uint256 originChainId;
76+ uint32 depositId;
77+ uint32 fillDeadline;
78+ uint32 exclusivityDeadline;
79+ bytes message;
80+ }
81+
6582 // Contains parameters passed in by someone who wants to execute a slow relay leaf.
6683 struct V3SlowFill {
6784 V3RelayData relayData;
@@ -82,7 +99,7 @@ interface V3SpokePoolInterface {
8299 uint256 repaymentChainId;
83100 }
84101
85- // Packs together parameters emitted in FilledV3Relay because there are too many emitted otherwise.
102+ // Packs together parameters emitted in FilledRelay because there are too many emitted otherwise.
86103 // Similar to V3RelayExecutionParams, these parameters are not used to uniquely identify the deposit being
87104 // filled so they don't have to be unpacked by all clients.
88105 struct V3RelayExecutionEventInfo {
@@ -113,7 +130,7 @@ interface V3SpokePoolInterface {
113130 * EVENTS *
114131 **************************************/
115132
116- event V3FundsDeposited (
133+ event FundsDeposited (
117134 bytes32 inputToken ,
118135 bytes32 outputToken ,
119136 uint256 inputAmount ,
@@ -129,7 +146,7 @@ interface V3SpokePoolInterface {
129146 bytes message
130147 );
131148
132- event RequestedSpeedUpV3Deposit (
149+ event RequestedSpeedUpDeposit (
133150 uint256 updatedOutputAmount ,
134151 uint256 indexed depositId ,
135152 bytes32 indexed depositor ,
@@ -138,7 +155,7 @@ interface V3SpokePoolInterface {
138155 bytes depositorSignature
139156 );
140157
141- event FilledV3Relay (
158+ event FilledRelay (
142159 bytes32 inputToken ,
143160 bytes32 outputToken ,
144161 uint256 inputAmount ,
@@ -156,7 +173,7 @@ interface V3SpokePoolInterface {
156173 V3RelayExecutionEventInfo relayExecutionInfo
157174 );
158175
159- event RequestedV3SlowFill (
176+ event RequestedSlowFill (
160177 bytes32 inputToken ,
161178 bytes32 outputToken ,
162179 uint256 inputAmount ,
@@ -182,7 +199,7 @@ interface V3SpokePoolInterface {
182199 * FUNCTIONS *
183200 **************************************/
184201
185- function depositV3 (
202+ function deposit (
186203 bytes32 depositor ,
187204 bytes32 recipient ,
188205 bytes32 inputToken ,
@@ -212,7 +229,7 @@ interface V3SpokePoolInterface {
212229 bytes calldata message
213230 ) external payable ;
214231
215- function depositV3Now (
232+ function depositNow (
216233 bytes32 depositor ,
217234 bytes32 recipient ,
218235 bytes32 inputToken ,
@@ -226,7 +243,37 @@ interface V3SpokePoolInterface {
226243 bytes calldata message
227244 ) external payable ;
228245
229- function speedUpV3Deposit (
246+ function depositV3Now (
247+ address depositor ,
248+ address recipient ,
249+ address inputToken ,
250+ address outputToken ,
251+ uint256 inputAmount ,
252+ uint256 outputAmount ,
253+ uint256 destinationChainId ,
254+ address exclusiveRelayer ,
255+ uint32 fillDeadlineOffset ,
256+ uint32 exclusivityDeadline ,
257+ bytes calldata message
258+ ) external payable ;
259+
260+ function unsafeDeposit (
261+ bytes32 depositor ,
262+ bytes32 recipient ,
263+ bytes32 inputToken ,
264+ bytes32 outputToken ,
265+ uint256 inputAmount ,
266+ uint256 outputAmount ,
267+ uint256 destinationChainId ,
268+ bytes32 exclusiveRelayer ,
269+ uint256 depositNonce ,
270+ uint32 quoteTimestamp ,
271+ uint32 fillDeadline ,
272+ uint32 exclusivityParameter ,
273+ bytes calldata message
274+ ) external payable ;
275+
276+ function speedUpDeposit (
230277 bytes32 depositor ,
231278 uint256 depositId ,
232279 uint256 updatedOutputAmount ,
@@ -235,13 +282,24 @@ interface V3SpokePoolInterface {
235282 bytes calldata depositorSignature
236283 ) external ;
237284
238- function fillV3Relay (
285+ function speedUpV3Deposit (
286+ address depositor ,
287+ uint256 depositId ,
288+ uint256 updatedOutputAmount ,
289+ address updatedRecipient ,
290+ bytes calldata updatedMessage ,
291+ bytes calldata depositorSignature
292+ ) external ;
293+
294+ function fillRelay (
239295 V3RelayData calldata relayData ,
240296 uint256 repaymentChainId ,
241297 bytes32 repaymentAddress
242298 ) external ;
243299
244- function fillV3RelayWithUpdatedDeposit (
300+ function fillV3Relay (V3RelayDataLegacy calldata relayData , uint256 repaymentChainId ) external ;
301+
302+ function fillRelayWithUpdatedDeposit (
245303 V3RelayData calldata relayData ,
246304 uint256 repaymentChainId ,
247305 bytes32 repaymentAddress ,
@@ -251,9 +309,9 @@ interface V3SpokePoolInterface {
251309 bytes calldata depositorSignature
252310 ) external ;
253311
254- function requestV3SlowFill (V3RelayData calldata relayData ) external ;
312+ function requestSlowFill (V3RelayData calldata relayData ) external ;
255313
256- function executeV3SlowRelayLeaf (
314+ function executeSlowRelayLeaf (
257315 V3SlowFill calldata slowFillLeaf ,
258316 uint32 rootBundleId ,
259317 bytes32 [] calldata proof
@@ -284,4 +342,67 @@ interface V3SpokePoolInterface {
284342 error LowLevelCallFailed (bytes data );
285343 error InsufficientSpokePoolBalanceToExecuteLeaf ();
286344 error NoRelayerRefundToClaim ();
345+
346+ /**************************************
347+ * LEGACY EVENTS *
348+ **************************************/
349+
350+ // Note: these events are unused, but included in the ABI for ease of migration.
351+ event V3FundsDeposited (
352+ address inputToken ,
353+ address outputToken ,
354+ uint256 inputAmount ,
355+ uint256 outputAmount ,
356+ uint256 indexed destinationChainId ,
357+ uint32 indexed depositId ,
358+ uint32 quoteTimestamp ,
359+ uint32 fillDeadline ,
360+ uint32 exclusivityDeadline ,
361+ address indexed depositor ,
362+ address recipient ,
363+ address exclusiveRelayer ,
364+ bytes message
365+ );
366+
367+ event RequestedSpeedUpV3Deposit (
368+ uint256 updatedOutputAmount ,
369+ uint32 indexed depositId ,
370+ address indexed depositor ,
371+ address updatedRecipient ,
372+ bytes updatedMessage ,
373+ bytes depositorSignature
374+ );
375+
376+ event FilledV3Relay (
377+ address inputToken ,
378+ address outputToken ,
379+ uint256 inputAmount ,
380+ uint256 outputAmount ,
381+ uint256 repaymentChainId ,
382+ uint256 indexed originChainId ,
383+ uint32 indexed depositId ,
384+ uint32 fillDeadline ,
385+ uint32 exclusivityDeadline ,
386+ address exclusiveRelayer ,
387+ address indexed relayer ,
388+ address depositor ,
389+ address recipient ,
390+ bytes message ,
391+ V3RelayExecutionEventInfo relayExecutionInfo
392+ );
393+
394+ event RequestedV3SlowFill (
395+ address inputToken ,
396+ address outputToken ,
397+ uint256 inputAmount ,
398+ uint256 outputAmount ,
399+ uint256 indexed originChainId ,
400+ uint32 indexed depositId ,
401+ uint32 fillDeadline ,
402+ uint32 exclusivityDeadline ,
403+ address exclusiveRelayer ,
404+ address depositor ,
405+ address recipient ,
406+ bytes message
407+ );
287408}
0 commit comments