@layerzerolabs/devtools-evm-hardhat
v2.0.4
Published
Hardhat utilities for LayerZero EVM projects
Downloads
3,369
Readme
Installation
yarn add @layerzerolabs/devtools-evm-hardhat
pnpm add @layerzerolabs/devtools-evm-hardhat
npm install @layerzerolabs/devtools-evm-hardhat
API Documentation
Omnigraph types
OmniContract
Interface that represents an ethers.js contract connected to a particular endpoint
import { EndpointId } from "@layerzerolabs/lz-definitions";
import { OmniContract } from "@layerzerolabs/devtools-evm";
const omniContract: OmniContract = {
eid: EndpointId.ETHEREUM_MAINNET,
contract: new Contract(address, abi),
};
OmniContractFactory
Type that represents a function that can return an OmniContract
based on an OmniPoint
import { EndpointId } from "@layerzerolabs/lz-definitions";
import { OmniPoint } from "@layerzerolabs/devtools";
import { OmniContractFactory } from "@layerzerolabs/devtools-evm";
declare const omniContractFactory: OmniContractFactory;
const omniPoint: OmniPoint = {
eid: EndpointId.ETHEREUM_MAINNET,
address: "0xEe6cF2E1Bc7645F8439d241ce37820305F2BB3F8",
};
const omniContract = await omniContractFactory(omniPoint);