@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.
Files changed (36) hide show
  1. package/dist/constants/common.d.ts +4 -4
  2. package/dist/constants/enum.d.ts +2 -2
  3. package/dist/constants/poolAddress.d.ts +3 -1
  4. package/dist/constants/queryKeys.d.ts +2 -2
  5. package/dist/index.js +400 -115
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +398 -110
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/models/scallopQuery.d.ts +13 -6
  10. package/dist/models/scallopUtils.d.ts +2 -2
  11. package/dist/queries/borrowIncentiveQuery.d.ts +2 -0
  12. package/dist/queries/poolAddressesQuery.d.ts +3 -1
  13. package/dist/queries/portfolioQuery.d.ts +4 -3
  14. package/dist/queries/priceQuery.d.ts +2 -0
  15. package/dist/queries/sCoinQuery.d.ts +1 -1
  16. package/dist/types/query/portfolio.d.ts +4 -0
  17. package/package.json +1 -1
  18. package/src/builders/borrowIncentiveBuilder.ts +29 -7
  19. package/src/builders/coreBuilder.ts +66 -10
  20. package/src/builders/oracle.ts +44 -4
  21. package/src/builders/referralBuilder.ts +20 -4
  22. package/src/builders/spoolBuilder.ts +38 -4
  23. package/src/builders/vescaBuilder.ts +25 -5
  24. package/src/constants/coinGecko.ts +1 -0
  25. package/src/constants/common.ts +2 -0
  26. package/src/constants/enum.ts +8 -0
  27. package/src/constants/poolAddress.ts +165 -58
  28. package/src/constants/pyth.ts +1 -0
  29. package/src/constants/queryKeys.ts +2 -2
  30. package/src/models/scallopUtils.ts +3 -0
  31. package/src/queries/poolAddressesQuery.ts +15 -3
  32. package/src/queries/portfolioQuery.ts +16 -5
  33. package/src/queries/vescaQuery.ts +18 -4
  34. package/src/types/query/portfolio.ts +4 -0
  35. package/dist/test.d.ts +0 -1
  36. 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();