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

@layerzerolabs/error-parser

Package Overview
Dependencies
Maintainers
1
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@layerzerolabs/error-parser

  • 3.0.22
  • npm
  • Socket score

Version published
Weekly downloads
875
increased by14.98%
Maintainers
1
Weekly downloads
 
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 03 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