22pragma solidity ^ 0.8.0 ;
33
44// Contains structs and functions used by SpokePool contracts to facilitate universal settlement.
5- interface USSSpokePoolInterface {
5+ interface V3SpokePoolInterface {
66 /**************************************
77 * ENUMS *
88 **************************************/
@@ -35,7 +35,7 @@ interface USSSpokePoolInterface {
3535 // This data is hashed with the chainId() and saved by the SpokePool to prevent collisions and protect against
3636 // replay attacks on other chains. If any portion of this data differs, the relay is considered to be
3737 // completely distinct.
38- struct USSRelayData {
38+ struct V3RelayData {
3939 // The address that made the deposit on the origin chain.
4040 address depositor;
4141 // The recipient address on the destination chain.
@@ -63,13 +63,13 @@ interface USSSpokePoolInterface {
6363 }
6464
6565 // Contains parameters passed in by someone who wants to execute a slow relay leaf.
66- struct USSSlowFill {
67- USSRelayData relayData;
66+ struct V3SlowFill {
67+ V3RelayData relayData;
6868 uint256 chainId;
6969 uint256 updatedOutputAmount;
7070 }
7171
72- struct USSRelayerRefundLeaf {
72+ struct V3RelayerRefundLeaf {
7373 // This is the amount to return to the HubPool. This occurs when there is a PoolRebalanceLeaf netSendAmount that
7474 // is negative. This is just the negative of this value.
7575 uint256 amountToReturn;
@@ -95,19 +95,19 @@ interface USSSpokePoolInterface {
9595 // relay itself but is required to know how to process the relay. For example, "updatedX" fields can be used
9696 // by the relayer to modify fields of the relay with the depositor's permission, and "repaymentChainId" is specified
9797 // by the relayer to determine where to take a relayer refund, but doesn't affect the uniqueness of the relay.
98- struct USSRelayExecutionParams {
99- USSRelayData relay;
98+ struct V3RelayExecutionParams {
99+ V3RelayData relay;
100100 bytes32 relayHash;
101101 uint256 updatedOutputAmount;
102102 address updatedRecipient;
103103 bytes updatedMessage;
104104 uint256 repaymentChainId;
105105 }
106106
107- // Packs together parameters emitted in FilledUSSRelay because there are too many emitted otherwise.
108- // Similar to USSRelayExecutionParams , these parameters are not used to uniquely identify the deposit being
107+ // Packs together parameters emitted in FilledV3Relay because there are too many emitted otherwise.
108+ // Similar to V3RelayExecutionParams , these parameters are not used to uniquely identify the deposit being
109109 // filled so they don't have to be unpacked by all clients.
110- struct USSRelayExecutionEventInfo {
110+ struct V3RelayExecutionEventInfo {
111111 address updatedRecipient;
112112 bytes updatedMessage;
113113 uint256 updatedOutputAmount;
@@ -118,7 +118,7 @@ interface USSSpokePoolInterface {
118118 * EVENTS *
119119 **************************************/
120120
121- event USSFundsDeposited (
121+ event V3FundsDeposited (
122122 address inputToken ,
123123 address outputToken ,
124124 uint256 inputAmount ,
@@ -134,7 +134,7 @@ interface USSSpokePoolInterface {
134134 bytes message
135135 );
136136
137- event RequestedSpeedUpUSSDeposit (
137+ event RequestedSpeedUpV3Deposit (
138138 uint256 updatedOutputAmount ,
139139 uint32 indexed depositId ,
140140 address indexed depositor ,
@@ -143,7 +143,7 @@ interface USSSpokePoolInterface {
143143 bytes depositorSignature
144144 );
145145
146- event FilledUSSRelay (
146+ event FilledV3Relay (
147147 address inputToken ,
148148 address outputToken ,
149149 uint256 inputAmount ,
@@ -158,10 +158,10 @@ interface USSSpokePoolInterface {
158158 address depositor ,
159159 address recipient ,
160160 bytes message ,
161- USSRelayExecutionEventInfo relayExecutionInfo
161+ V3RelayExecutionEventInfo relayExecutionInfo
162162 );
163163
164- event RequestedUSSSlowFill (
164+ event RequestedV3SlowFill (
165165 address inputToken ,
166166 address outputToken ,
167167 uint256 inputAmount ,
@@ -176,7 +176,7 @@ interface USSSpokePoolInterface {
176176 bytes message
177177 );
178178
179- event ExecutedUSSRelayerRefundRoot (
179+ event ExecutedV3RelayerRefundRoot (
180180 uint256 amountToReturn ,
181181 uint256 indexed chainId ,
182182 uint256 [] refundAmounts ,
@@ -192,7 +192,7 @@ interface USSSpokePoolInterface {
192192 * FUNCTIONS *
193193 **************************************/
194194
195- function depositUSS (
195+ function depositV3 (
196196 address depositor ,
197197 address recipient ,
198198 address inputToken ,
@@ -207,7 +207,7 @@ interface USSSpokePoolInterface {
207207 bytes calldata message
208208 ) external payable ;
209209
210- function speedUpUSSDeposit (
210+ function speedUpV3Deposit (
211211 address depositor ,
212212 uint32 depositId ,
213213 uint256 updatedOutputAmount ,
@@ -216,28 +216,28 @@ interface USSSpokePoolInterface {
216216 bytes calldata depositorSignature
217217 ) external ;
218218
219- function fillUSSRelay (USSRelayData calldata relayData , uint256 repaymentChainId ) external ;
219+ function fillV3Relay (V3RelayData calldata relayData , uint256 repaymentChainId ) external ;
220220
221- function fillUSSRelayWithUpdatedDeposit (
222- USSRelayData calldata relayData ,
221+ function fillV3RelayWithUpdatedDeposit (
222+ V3RelayData calldata relayData ,
223223 uint256 repaymentChainId ,
224224 uint256 updatedOutputAmount ,
225225 address updatedRecipient ,
226226 bytes calldata updatedMessage ,
227227 bytes calldata depositorSignature
228228 ) external ;
229229
230- function requestUSSSlowFill (USSRelayData calldata relayData ) external ;
230+ function requestV3SlowFill (V3RelayData calldata relayData ) external ;
231231
232- function executeUSSSlowRelayLeaf (
233- USSSlowFill calldata slowFillLeaf ,
232+ function executeV3SlowRelayLeaf (
233+ V3SlowFill calldata slowFillLeaf ,
234234 uint32 rootBundleId ,
235235 bytes32 [] calldata proof
236236 ) external ;
237237
238- function executeUSSRelayerRefundLeaf (
238+ function executeV3RelayerRefundLeaf (
239239 uint32 rootBundleId ,
240- USSRelayerRefundLeaf calldata relayerRefundLeaf ,
240+ V3RelayerRefundLeaf calldata relayerRefundLeaf ,
241241 bytes32 [] calldata proof
242242 ) external payable ;
243243
0 commit comments