@layerzerolabs/script-devtools-evm-foundry
v2.0.0
Published
Scripts to help develop LayerZero EVM contracts using foundry
Readme
Installation
$ npm install @layerzerolabs/script-devtools-evm-foundryUsage
This package not only exports a bunch of scripts for you to use in your foundry projects. But since they compile into your artifacts folder, you can run them from your command line.
forge script SimulateReceive --rpc-url YOUR_DESTINATION_CHAIN_RPC_URL --ffiSince all the scripts are bundled into LZScripts.s.sol, you can import them in your own scripts like this:
import { LZUtils } from "@layerzerolabs/script-devtools-evm-foundry/scripts/LZScripts.s.sol";List of scripts
1. SimulateReceive
Simulate receiving a message on an EVM chain - Read more Source code: SimulateReceive.s.sol Shell command:
forge script SimulateReceive --rpc-url $DESTINATION_CHAIN_RPC_URL --ffi2. GasProfiler
Profile the gas usage of OFT transfers on multiple mainnet networks - Read more Source code: OFTProfilerExample.s.sol Shell command: Not available
