LayerZero Tooling
Configuration tools around setting up your UA Config and Wire Up Config
A set of common tasks for contracts integrating LayerZero
$ npm install @layerzerolabs/ua-utils
The plugin depends on
@nomiclabs/hardhat-ethers
, so you need to import both plugins in your hardhat.config.js
:require("@nomiclabs/hardhat-ethers");
require("@layerzerolabs/ua-utils");
Or if you are using TypeScript, in your
hardhat.config.ts
:import "@nomiclabs/hardhat-ethers";
import "@layerzerolabs/ua-utils";
This config is used to Lock in UA Configuration. To use this script please fill in your Application Configuration according to your applications needs.
This config can be used to set the following on your UA contract:
function setFeeBp(uint16, bool, uint16)
function setDefaultFeeBp(uint16)
function setMinDstGas(uint16, uint16, uint)
function setUseCustomAdapterParams(bool)
function setTrustedRemote(uint16, bytes)
To use this script please fill in your Wire Up Configuration according to your applications needs.
Last modified 3mo ago