Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 2.12 KB

File metadata and controls

55 lines (40 loc) · 2.12 KB

LayerZero

@layerzerolabs/script-devtools-evm-foundry

NPM Version Downloads NPM License

Installation

$ npm install @layerzerolabs/script-devtools-evm-foundry

Usage

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 --ffi

Since 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 --ffi

2. GasProfiler

Profile the gas usage of OFT transfers on multiple mainnet networks - Read more Source code: OFTProfilerExample.s.sol Shell command: Not available