| Function | Description | Parameters |
|---|---|---|
setUpEndpoints | Sets up multiple simulated endpoints to mimic different blockchains. | uint8 numEndpoints, LibraryType libraryType |
setupOApps | Deploys multiple instances of OApps with specific parameters for testing. | bytes memory _oappCreationCode, uint8 _startEid, uint8 _oappNum |
setupOFTs | Deploys multiple OFTs with specific attributes for testing behavior. | bytes memory _oftCreationCode, uint8 _oftNum, string[] memory _names, string[] memory _symbols, uint8[] memory _localDecimals |
deliverPackets | Manually delivers message packets to a specified destination contract. | uint32 _dstEid, address _dstAddress |
Unit Testing
For example, see how we test theHelloLayerZero contract in the Getting started guide: