Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@layerzerolabs/script-devtools-evm-foundry

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@layerzerolabs/script-devtools-evm-foundry

Scripts to help develop LayerZero EVM contracts using foundry

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 13 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts