|
1 | 1 | // SPDX-License-Identifier: Apache 2
|
2 | 2 | pragma solidity ^0.8.0;
|
3 | 3 |
|
| 4 | +// ╭──────────────────────────────────────────────────────────────╮ |
| 5 | +// │ Prefer using WormholeRelayer.sol over the raw interface here │ |
| 6 | +// ╰──────────────────────────────────────────────────────────────╯ |
| 7 | + |
4 | 8 | struct MessageKey {
|
5 | 9 | uint8 keyType; // 0-127 are reserved for standardized KeyTypes, 128-255 are for custom use
|
6 | 10 | bytes encodedKey; //all key types except VaaKeys are encoded with a 4 byte length prefix
|
@@ -44,8 +48,7 @@ interface IWormholeRelayerSend {
|
44 | 48 | *
|
45 | 49 | * `targetAddress` must implement the IWormholeReceiver interface
|
46 | 50 | *
|
47 |
| - * This function must be called with `msg.value` equal to wormholeMessageFee + |
48 |
| - * `quoteEVMDeliveryPrice(targetChain, receiverValue, gasLimit)` |
| 51 | + * This function must be called with `msg.value` equal to `quoteEVMDeliveryPrice(targetChain, receiverValue, gasLimit)` |
49 | 52 | *
|
50 | 53 | * Any refunds (from leftover gas) will be paid to the delivery provider. In order to receive the refunds, use the `sendPayloadToEvm` function
|
51 | 54 | * with `refundChain` and `refundAddress` as parameters
|
@@ -73,8 +76,7 @@ interface IWormholeRelayerSend {
|
73 | 76 | * Any refunds (from leftover gas) will be sent to `refundAddress` on chain `refundChain`
|
74 | 77 | * `targetAddress` must implement the IWormholeReceiver interface
|
75 | 78 | *
|
76 |
| - * This function must be called with `msg.value` equal to wormholeMessageFee + |
77 |
| - * `quoteEVMDeliveryPrice(targetChain, receiverValue, gasLimit)` |
| 79 | + * This function must be called with `msg.value` equal to `quoteEVMDeliveryPrice(targetChain, receiverValue, gasLimit)` |
78 | 80 | *
|
79 | 81 | * @param targetChain in Wormhole Chain ID format
|
80 | 82 | * @param targetAddress address to call on targetChain (that implements IWormholeReceiver)
|
@@ -103,8 +105,7 @@ interface IWormholeRelayerSend {
|
103 | 105 | *
|
104 | 106 | * `targetAddress` must implement the IWormholeReceiver interface
|
105 | 107 | *
|
106 |
| - * This function must be called with `msg.value` equal to wormholeMessageFee + |
107 |
| - * `quoteEVMDeliveryPrice(targetChain, receiverValue, gasLimit)` |
| 108 | + * This function must be called with `msg.value` equal to `quoteEVMDeliveryPrice(targetChain, receiverValue, gasLimit)` |
108 | 109 | *
|
109 | 110 | * Any refunds (from leftover gas) will be paid to the delivery provider. In order to receive the refunds, use the `sendVaasToEvm` function
|
110 | 111 | * with `refundChain` and `refundAddress` as parameters
|
@@ -134,8 +135,7 @@ interface IWormholeRelayerSend {
|
134 | 135 | * Any refunds (from leftover gas) will be sent to `refundAddress` on chain `refundChain`
|
135 | 136 | * `targetAddress` must implement the IWormholeReceiver interface
|
136 | 137 | *
|
137 |
| - * This function must be called with `msg.value` equal to wormholeMessageFee + |
138 |
| - * `quoteEVMDeliveryPrice(targetChain, receiverValue, gasLimit)` |
| 138 | + * This function must be called with `msg.value` equal to `quoteEVMDeliveryPrice(targetChain, receiverValue, gasLimit)` |
139 | 139 | *
|
140 | 140 | * @param targetChain in Wormhole Chain ID format
|
141 | 141 | * @param targetAddress address to call on targetChain (that implements IWormholeReceiver)
|
@@ -168,7 +168,7 @@ interface IWormholeRelayerSend {
|
168 | 168 | * Any refunds (from leftover gas) will be sent to `refundAddress` on chain `refundChain`
|
169 | 169 | * `targetAddress` must implement the IWormholeReceiver interface
|
170 | 170 | *
|
171 |
| - * This function must be called with `msg.value` equal to wormholeMessageFee + |
| 171 | + * This function must be called with `msg.value` equal to |
172 | 172 | * quoteEVMDeliveryPrice(targetChain, receiverValue, gasLimit, deliveryProviderAddress) + paymentForExtraReceiverValue
|
173 | 173 | *
|
174 | 174 | * @param targetChain in Wormhole Chain ID format
|
@@ -210,7 +210,7 @@ interface IWormholeRelayerSend {
|
210 | 210 | * Any refunds (from leftover gas) will be sent to `refundAddress` on chain `refundChain`
|
211 | 211 | * `targetAddress` must implement the IWormholeReceiver interface
|
212 | 212 | *
|
213 |
| - * This function must be called with `msg.value` equal to wormholeMessageFee + |
| 213 | + * This function must be called with `msg.value` equal to |
214 | 214 | * quoteEVMDeliveryPrice(targetChain, receiverValue, gasLimit, deliveryProviderAddress) + paymentForExtraReceiverValue
|
215 | 215 | *
|
216 | 216 | * Note: MessageKeys can specify wormhole messages (VaaKeys) or other types of messages (ex. USDC CCTP attestations). Ensure the selected
|
@@ -255,7 +255,7 @@ interface IWormholeRelayerSend {
|
255 | 255 | * Any refunds (from leftover gas) will be sent to `refundAddress` on chain `refundChain`
|
256 | 256 | * `targetAddress` must implement the IWormholeReceiver interface
|
257 | 257 | *
|
258 |
| - * This function must be called with `msg.value` equal to wormholeMessageFee + |
| 258 | + * This function must be called with `msg.value` equal to |
259 | 259 | * quoteDeliveryPrice(targetChain, receiverValue, encodedExecutionParameters, deliveryProviderAddress) + paymentForExtraReceiverValue
|
260 | 260 | *
|
261 | 261 | * @param targetChain in Wormhole Chain ID format
|
@@ -297,7 +297,7 @@ interface IWormholeRelayerSend {
|
297 | 297 | * Any refunds (from leftover gas) will be sent to `refundAddress` on chain `refundChain`
|
298 | 298 | * `targetAddress` must implement the IWormholeReceiver interface
|
299 | 299 | *
|
300 |
| - * This function must be called with `msg.value` equal to wormholeMessageFee + |
| 300 | + * This function must be called with `msg.value` equal to |
301 | 301 | * quoteDeliveryPrice(targetChain, receiverValue, encodedExecutionParameters, deliveryProviderAddress) + paymentForExtraReceiverValue
|
302 | 302 | *
|
303 | 303 | * Note: MessageKeys can specify wormhole messages (VaaKeys) or other types of messages (ex. USDC CCTP attestations). Ensure the selected
|
@@ -337,7 +337,7 @@ interface IWormholeRelayerSend {
|
337 | 337 | * @notice Requests a previously published delivery instruction to be redelivered
|
338 | 338 | * (e.g. with a different delivery provider)
|
339 | 339 | *
|
340 |
| - * This function must be called with `msg.value` equal to wormholeMessageFee + |
| 340 | + * This function must be called with `msg.value` equal to |
341 | 341 | * quoteEVMDeliveryPrice(targetChain, newReceiverValue, newGasLimit, newDeliveryProviderAddress)
|
342 | 342 | *
|
343 | 343 | * @notice *** This will only be able to succeed if the following is true **
|
@@ -370,7 +370,7 @@ interface IWormholeRelayerSend {
|
370 | 370 | * @notice Requests a previously published delivery instruction to be redelivered
|
371 | 371 | *
|
372 | 372 | *
|
373 |
| - * This function must be called with `msg.value` equal to wormholeMessageFee + |
| 373 | + * This function must be called with `msg.value` equal to |
374 | 374 | * quoteDeliveryPrice(targetChain, newReceiverValue, newEncodedExecutionParameters, newDeliveryProviderAddress)
|
375 | 375 | *
|
376 | 376 | * @param deliveryVaaKey VaaKey identifying the wormhole message containing the
|
|
0 commit comments