Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,9 @@
[submodule "protocol-units/settlement/mcr/contracts/lib/solidity-bytes-utils"]
path = protocol-units/settlement/mcr/contracts/lib/solidity-bytes-utils
url = https://github.com/GNSPS/solidity-bytes-utils.git
[submodule "protocol-units/tokens/mainnet/hyperliquid/lib/forge-std"]
path = protocol-units/tokens/mainnet/hyperliquid/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "protocol-units/tokens/mainnet/hyperliquid/lib/devtools"]
path = protocol-units/tokens/mainnet/hyperliquid/lib/devtools
url = https://github.com/LayerZero-Labs/devtools
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dependencies": {
"dotenv": "^17.2.3",
"pnpm": "^9.4.0"
}
}
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6,684 changes: 6,684 additions & 0 deletions protocol-units/settlement/mcr/contracts/layerzero_book/LZAddresses.sol

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,735 changes: 1,735 additions & 0 deletions protocol-units/settlement/mcr/contracts/layerzero_book/LZWorkers.sol

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;

/// @title ILZProtocol
/// @notice Interface for LayerZero Protocol Address Provider
interface ILZProtocol {
struct ProtocolAddresses {
address endpointV2;
address sendUln302;
address receiveUln302;
address executor;
uint256 chainId;
string chainName;
bool exists;
}

function getProtocolAddresses(uint32 eid) external view returns (ProtocolAddresses memory);
function getEidByChainId(uint256 chainId) external view returns (uint32);
function isChainSupported(uint32 eid) external view returns (bool);
function getSupportedEids() external view returns (uint32[] memory);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;

/// @title ILZWorkers
/// @notice Interface for LayerZero Workers Registry
interface ILZWorkers {
function getDVNAddress(string memory dvnName, uint32 eid) external view returns (address dvnAddress);
function getDVNAddressByChainName(string memory dvnName, string memory chainName) external view returns (address dvnAddress);
function dvnExists(string memory dvnName, uint32 eid) external view returns (bool exists);
function getAvailableDVNs() external view returns (string[] memory dvnNames);
function getDVNsForChain(uint32 eid) external view returns (string[] memory names, address[] memory addresses);
function getDVNsForChainByName(string memory chainName) external view returns (string[] memory names, address[] memory addresses);
}
Loading
Loading