One-stop-shop for developing LayerZero applications with foundry
yarn add @layerzerolabs/toolbox-foundry
pnpm add @layerzerolabs/toolbox-foundry
npm install @layerzerolabs/toolbox-foundry
To use @layerzerolabs/toolbox-foundry
you will need to point to it in your foundry.toml
config file.
libs = [
'node_modules/@layerzerolabs/toolbox-foundry/lib',
# Any other library folders you need, e.g.
'node_modules'
]
This package comes with support for forge-std
out of the box so you can start using:
// forge-std is automatically resolved without needing to install it
// so you can start using forge test helpers in your tests
import "forge-std/console.sol";
import { Test } from "forge-std/Test.sol";
The supporting packages for @layerzerolabs/
dependencies are also included - namely solidity-bytes-utils
.