generated from PaulRBerg/hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update LayerZero adapter to V2
- Loading branch information
1 parent
1e146b0
commit 6b073de
Showing
6 changed files
with
79 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
packages/evm/contracts/adapters/LayerZero/interfaces/ILayerZeroEndpoint.sol
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
packages/evm/contracts/adapters/LayerZero/interfaces/ILayerZeroEndpointV2.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity >=0.8.0; | ||
|
||
struct MessagingParams { | ||
uint32 dstEid; | ||
bytes32 receiver; | ||
bytes message; | ||
bytes options; | ||
bool payInLzToken; | ||
} | ||
|
||
struct MessagingReceipt { | ||
bytes32 guid; | ||
uint64 nonce; | ||
MessagingFee fee; | ||
} | ||
|
||
struct MessagingFee { | ||
uint256 nativeFee; | ||
uint256 lzTokenFee; | ||
} | ||
|
||
struct Origin { | ||
uint32 srcEid; | ||
bytes32 sender; | ||
uint64 nonce; | ||
} | ||
|
||
interface ILayerZeroEndpointV2 { | ||
function send( | ||
MessagingParams calldata _params, | ||
address _refundAddress | ||
) external payable returns (MessagingReceipt memory); | ||
} |
11 changes: 0 additions & 11 deletions
11
packages/evm/contracts/adapters/LayerZero/interfaces/ILayerZeroReceiver.sol
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters