0.2.3 • Published 3 months ago
perennial-sdk-ts v0.2.3
Perennial Typescript SDK - DRAFT
A collection of functions to interact with the Perennial V2 markets. Within it you'll find:
- Read functions for:
- Markets
- Vaults
- Helper Functions
- Building transaction data
- Positions
- Interest Rate& Funding
- Constants
- Network (Chain & Oracle)
- Contracts
- Markets
- ABIs of contracts
- Types
Getting Started
Use the following commands to install:
yarn add perennial-sdk-ts
Utilization
Important: The provider passed to this library must have the RPC call: eth_call
available.
Examples
You can check out the various examples of how to use this code base in the /examples
folder. To run these examples use the following command:
npx esno ./examples/fetchMakerData.ts
If you need to add env
varibles you can front load them like this:
ALCHEMY_URL=<url_goes_here> npx esno ./examples/fetchMakerData.ts
To Do:
Chain Data:
Graph:
- Enable Graph usage
- User PNL
- Vault History
- Market Volume
Examples:
Housekeeping:
0.2.3
3 months ago
0.2.2
3 months ago
0.2.1
4 months ago
0.2.0
4 months ago
0.1.12
4 months ago
0.1.13
4 months ago
0.1.11
4 months ago
0.1.10
4 months ago
0.1.9
4 months ago
0.1.0
7 months ago
0.1.1
7 months ago
0.1.8
5 months ago
0.1.7
7 months ago
0.1.4
7 months ago
0.1.3
7 months ago
0.1.6
7 months ago
0.1.5
7 months ago
1.0.0
8 months ago