0.1.4 • Published 5 months ago

@jup-ag/perpetuals-sdk v0.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

Perpetual SDK

Install

npm i @jup-ag/perpetuals-sdk

About Message

Message is a JSON serializable object containing 3 properties

  • status: status is an enum with 4 possibilities -> Pending, Error, Success, Failed
  • code: this can be an error code as a string ie '6001' or 'MAX_ATTEMPTS'
  • description: this can be a user friendlier description of the error code

About Status

While you can use it very flexibly, this is how we intend to use it:

  • Status.Pending -> indicate that it is still in process
  • Status.Error -> error messages but might not indicate finality aka retries might be on the way
  • Status.Failed -> this indicate finality. no more retries
  • Status.Success -> everything is good
0.1.4

5 months ago

0.1.3

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago