@exponent-labs/exponent-vaults-fetcher 0.9.8 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/types.d.ts CHANGED
@@ -122,6 +122,9 @@ export type KaminoFarmEntry = {
122
122
  farmState: web3.PublicKey;
123
123
  userState: web3.PublicKey;
124
124
  };
125
+ export type JupiterBorrowEntry = {
126
+ position: web3.PublicKey;
127
+ };
125
128
  export type StrategyPosition = {
126
129
  orderbook: {
127
130
  0: OrderbookEntry;
@@ -154,6 +157,10 @@ export type StrategyPosition = {
154
157
  kaminoFarm: {
155
158
  0: KaminoFarmEntry;
156
159
  };
160
+ } | {
161
+ jupiterBorrow: {
162
+ 0: JupiterBorrowEntry;
163
+ };
157
164
  };
158
165
  export type ExponentVault = {
159
166
  addressLookupTable: web3.PublicKey;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;AAuOA,oCAAoC;AACpC,iCAAiC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;AA4OA,oCAAoC;AACpC,iCAAiC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exponent-labs/exponent-vaults-fetcher",
3
- "version": "0.9.8",
3
+ "version": "0.9.9",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "license": "AGPL-3.0",
@@ -9,8 +9,8 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@coral-xyz/anchor": "0.30.1",
12
- "@exponent-labs/exponent-vaults-idl": "0.9.8",
13
- "@exponent-labs/exponent-vaults-pda": "0.9.8"
12
+ "@exponent-labs/exponent-vaults-idl": "0.9.9",
13
+ "@exponent-labs/exponent-vaults-pda": "0.9.9"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/bn.js": "^5.1.0",
package/src/types.ts CHANGED
@@ -2,7 +2,7 @@ import { IdlTypes, web3 } from "@coral-xyz/anchor"
2
2
 
3
3
  import { ExponentVaults } from "@exponent-labs/exponent-vaults-idl"
4
4
 
5
- // @ts-expect-error TS2589: keep the legacy Anchor-derived public alias while avoiding a package build failure.
5
+ // @ts-ignore TS2589: keep the legacy Anchor-derived public alias while avoiding a package build failure.
6
6
  export type ExponentVaultsTypes = IdlTypes<ExponentVaults>
7
7
 
8
8
  //? ExponentVaults types descriptions
@@ -134,6 +134,10 @@ export type KaminoFarmEntry = {
134
134
  userState: web3.PublicKey
135
135
  }
136
136
 
137
+ export type JupiterBorrowEntry = {
138
+ position: web3.PublicKey
139
+ }
140
+
137
141
  export type StrategyPosition =
138
142
  | { orderbook: { 0: OrderbookEntry } }
139
143
  | { tokenAccount: { 0: TokenAccountEntry } }
@@ -143,6 +147,7 @@ export type StrategyPosition =
143
147
  | { loopscaleLoan: { 0: LoopscaleLoanEntry } }
144
148
  | { loopscaleStrategy: { 0: LoopscaleStrategyEntry } }
145
149
  | { kaminoFarm: { 0: KaminoFarmEntry } }
150
+ | { jupiterBorrow: { 0: JupiterBorrowEntry } }
146
151
 
147
152
  export type ExponentVault = {
148
153
  addressLookupTable: web3.PublicKey