0.3.12 • Published 10 days ago

@layerzerolabs/devtools v0.3.12

Weekly downloads
-
License
MIT
Repository
github
Last release
10 days ago

Installation

yarn add @layerzerolabs/devtools

pnpm add @layerzerolabs/devtools

npm install @layerzerolabs/devtools

API Documentation

Omnigraph types

OmniPoint

Type that uniquely identifies a contract (a point) in an omnichain universe. It consists of eid (EndpointId) to which the contract is connected to and the address of the contract.

import { EndpointId } from "@layerzerolabs/lz-definitions";
import { OmniPoint } from "@layerzerolabs/devtools";

const omniPoint: OmniPoint = {
  eid: EndpointId.ETHEREUM_MAINNET,
  address: "0xEe6cF2E1Bc7645F8439d241ce37820305F2BB3F8",
};

OmniVector

Type that uniquely identifies a connection between two OmniPoints, two contracts in an omnichain universe. It consists of two OmniPoint instances - from and to.

import { EndpointId } from "@layerzerolabs/lz-definitions";
import { OmniVector } from "@layerzerolabs/devtools";

const from: OmniPoint = {
  eid: EndpointId.ETHEREUM_MAINNET,
  address: "0xEe6cF2E1Bc7645F8439d241ce37820305F2BB3F8",
};

const to: OmniPoint = {
  eid: EndpointId.AVALANCHE_MAINNET,
  address: "0xEe6cF2E1Bc7645F8439d241ce37820305F2BB3F8",
};

const omniVector: OmniVector = { from, to };

Common utilities

isDeepEqual(a, b)

Compares two objects by value, returning true if they match, false otherwise.

isDeepEqual({ a: 1 }, { a: 1 }); // true
isDeepEqual({ a: 1 }, { a: "1" }); // false
0.3.12

10 days ago

0.3.11

19 days ago

0.3.10

20 days ago

0.3.9

25 days ago

0.3.8

1 month ago

0.3.7

1 month ago

0.3.6

1 month ago

0.3.5

1 month ago

0.3.4

2 months ago

0.3.3

2 months ago

0.3.2

2 months ago

0.3.1

2 months ago

0.3.0

2 months ago

0.2.10

2 months ago

0.2.9

2 months ago

0.2.7

2 months ago

0.2.8

2 months ago

0.2.6

3 months ago

0.2.5

3 months ago

0.2.4

3 months ago

0.2.3

3 months ago

0.2.2

3 months ago

0.2.1

3 months ago

0.2.0

3 months ago

0.1.4

3 months ago

0.1.3

3 months ago

0.1.2

4 months ago

0.1.1

4 months ago

0.1.0

4 months ago

0.0.6

4 months ago

0.0.5

4 months ago

0.0.4

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

5 months ago