@scallop-io/sui-scallop-sdk 1.4.19 → 1.4.21
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/dist/constants/common.d.ts +4 -4
- package/dist/constants/enum.d.ts +2 -2
- package/dist/constants/poolAddress.d.ts +3 -1
- package/dist/constants/queryKeys.d.ts +2 -2
- package/dist/index.js +400 -115
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +398 -110
- package/dist/index.mjs.map +1 -1
- package/dist/models/scallopQuery.d.ts +13 -6
- package/dist/models/scallopUtils.d.ts +2 -2
- package/dist/queries/borrowIncentiveQuery.d.ts +2 -0
- package/dist/queries/poolAddressesQuery.d.ts +3 -1
- package/dist/queries/portfolioQuery.d.ts +4 -3
- package/dist/queries/priceQuery.d.ts +2 -0
- package/dist/queries/sCoinQuery.d.ts +1 -1
- package/dist/types/query/portfolio.d.ts +4 -0
- package/package.json +1 -1
- package/src/builders/borrowIncentiveBuilder.ts +29 -7
- package/src/builders/coreBuilder.ts +66 -10
- package/src/builders/oracle.ts +44 -4
- package/src/builders/referralBuilder.ts +20 -4
- package/src/builders/spoolBuilder.ts +38 -4
- package/src/builders/vescaBuilder.ts +25 -5
- package/src/constants/coinGecko.ts +1 -0
- package/src/constants/common.ts +2 -0
- package/src/constants/enum.ts +8 -0
- package/src/constants/poolAddress.ts +165 -58
- package/src/constants/pyth.ts +1 -0
- package/src/constants/queryKeys.ts +2 -2
- package/src/models/scallopUtils.ts +3 -0
- package/src/queries/poolAddressesQuery.ts +15 -3
- package/src/queries/portfolioQuery.ts +16 -5
- package/src/queries/vescaQuery.ts +18 -4
- package/src/types/query/portfolio.ts +4 -0
- package/dist/test.d.ts +0 -1
- package/src/test.ts +0 -17
|
@@ -138,10 +138,14 @@ export type ObligationBorrowIncentive = {
|
|
|
138
138
|
};
|
|
139
139
|
|
|
140
140
|
export type TotalValueLocked = {
|
|
141
|
+
supplyLendingValue: number;
|
|
142
|
+
supplyCollateralValue: number;
|
|
141
143
|
supplyValue: number;
|
|
142
144
|
borrowValue: number;
|
|
143
145
|
totalValue: number;
|
|
144
146
|
supplyValueChangeRatio?: number;
|
|
147
|
+
supplyLendingValueChangeRatio?: number;
|
|
148
|
+
supplyCollateralValueChangeRatio?: number;
|
|
145
149
|
borrowValueChangeRatio?: number;
|
|
146
150
|
totalValueChangeRatio?: number;
|
|
147
151
|
};
|
package/dist/test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/src/test.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ScallopQuery } from './models';
|
|
2
|
-
|
|
3
|
-
const main = async () => {
|
|
4
|
-
try {
|
|
5
|
-
const query = new ScallopQuery({});
|
|
6
|
-
await query.init();
|
|
7
|
-
|
|
8
|
-
const res = await query.getSpool('ssui');
|
|
9
|
-
console.dir(res, { depth: null });
|
|
10
|
-
} catch (e) {
|
|
11
|
-
console.error(e);
|
|
12
|
-
} finally {
|
|
13
|
-
process.exit(0);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
main();
|