@layerzerolabs/error-parser
TypeScript icon, indicating that this package has built-in type declarations

3.0.88 • Public • Published

Overview

This package provides utilities for handling errors returned by LayerZero protocol contracts. It offers a streamlined way to check and parse hexadecimal strings that may represent errors sent by Solidity contracts.

Installation

To use this package, include it in your project using npm or yarn:

npm install @layerzerolabs/error-parser

or

yarn add @layerzerolabs/error-parser

Usage

The package exports two main functions:

checkError(data: string): void

This function checks a given string for any errors sent by a LayerZero contract.

parseError(data: string): LayerZeroParsedError | null

This function parses a given string for error and decodes it.

Readme

Keywords

none

Package Sidebar

Install

npm i @layerzerolabs/error-parser

Weekly Downloads

360

Version

3.0.88

License

BUSL-1.1

Unpacked Size

70.4 kB

Total Files

9

Last publish

Collaborators

  • layerzero-bot