5.0.4 • Published 2 years ago

@sovryn/perpetual-swap v5.0.4

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
2 years ago

Usage

Install the package Read the Whitepaper.

$ npm install --save @sovryn/perpetual-swap

Then in your script:

import { perpQueries, perpUtils } from "@sovryn/perpetual-swap";

And to use the functions from, let's say, scripts/utils/perpQueries.ts:

const { queryTraderState, queryAMMState, queryPerpParameters } = perpQueries;

The same works for the rest of the files:

const { getMarkPrice } = perpUtils;

Observation

In order to use walletUtils (only works on the backend. It doesn't work in UI because it needs to read the ABIs from disk) you'll have to import it like this:

import * as walletUtils from '@sovryn/perpetual-swap/dist/scripts/utils/walletUtils';

4.0.0

2 years ago

5.0.4

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

3.0.12

2 years ago

3.0.13

2 years ago

3.0.10

2 years ago

3.0.11

2 years ago

3.0.8

2 years ago

3.0.14

2 years ago

3.0.9

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

2.0.3

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

1.4.6

2 years ago

2.0.0

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.1

2 years ago