Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@layerzerolabs/devtools-evm-hardhat

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@layerzerolabs/devtools-evm-hardhat

Hardhat utilities for LayerZero EVM projects

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
805
increased by13.06%
Maintainers
1
Weekly downloads
 
Created
Source

LayerZero

@layerzerolabs/devtools-evm-hardhat

NPM Version Downloads NPM License

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);

FAQs

Package last updated on 13 Dec 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc