@stargatefinance/stg-error-parser v1.1.13
Overview
This package provides utilities for handling errors returned by Stargate 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 @stargatefinance/stg-error-parser
or
yarn add @stargatefinance/stg-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 Stargate contract.
parseError(data: string): LayerZeroParsedError | null
This function parses a given string for an error and decodes it.
7 months ago
7 months ago
5 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
6 months ago
6 months ago
6 months ago
4 months ago
4 months ago
4 months ago
3 months ago
7 months ago
7 months ago
7 months ago
9 months ago
9 months ago
9 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago