0.3.28 • Published 8 months ago

@layerzerolabs/devtools v0.3.28

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months 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.28

8 months ago

0.3.27

8 months ago

0.3.26

9 months ago

0.3.25

10 months ago

0.3.17

12 months ago

0.3.16

1 year ago

0.3.15

1 year ago

0.3.14

1 year ago

0.3.13

1 year ago

0.3.20

11 months ago

0.3.24

10 months ago

0.3.23

11 months ago

0.3.22

11 months ago

0.3.21

11 months ago

0.3.18

11 months ago

0.3.12

1 year ago

0.3.11

1 year ago

0.3.10

1 year ago

0.3.9

1 year ago

0.3.8

1 year ago

0.3.7

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.10

1 year ago

0.2.9

1 year ago

0.2.7

1 year ago

0.2.8

1 year ago

0.2.6

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago