Socket
Socket
Sign inDemoInstall

@layerzerolabs/error-parser

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@layerzerolabs/error-parser


Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 01 Oct 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