@scallop-io/sui-scallop-sdk 1.3.3 → 1.3.4-alpha.1

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 (37) hide show
  1. package/dist/constants/coinGecko.d.ts +2 -0
  2. package/dist/constants/index.d.ts +7 -0
  3. package/dist/constants/poolAddress.d.ts +5 -0
  4. package/dist/constants/pyth.d.ts +2 -0
  5. package/dist/constants/queryKeys.d.ts +2 -1
  6. package/dist/index.js +1471 -1311
  7. package/dist/index.js.map +1 -1
  8. package/dist/index.mjs +1463 -1311
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/models/scallopQuery.d.ts +4 -4
  11. package/dist/models/scallopUtils.d.ts +6 -1
  12. package/dist/queries/sCoinQuery.d.ts +1 -1
  13. package/dist/queries/spoolQuery.d.ts +1 -1
  14. package/dist/types/query/core.d.ts +1 -0
  15. package/dist/types/utils.d.ts +12 -0
  16. package/dist/utils/util.d.ts +2 -2
  17. package/package.json +1 -1
  18. package/src/constants/coinGecko.ts +18 -0
  19. package/src/constants/enum.ts +11 -4
  20. package/src/constants/index.ts +7 -0
  21. package/src/constants/poolAddress.ts +94 -0
  22. package/src/constants/pyth.ts +19 -0
  23. package/src/constants/queryKeys.ts +2 -2
  24. package/src/constants/testAddress.ts +76 -35
  25. package/src/models/scallopBuilder.ts +2 -3
  26. package/src/models/scallopQuery.ts +4 -3
  27. package/src/models/scallopUtils.ts +64 -29
  28. package/src/queries/coreQuery.ts +222 -216
  29. package/src/queries/isolatedAsset.ts +4 -4
  30. package/src/queries/portfolioQuery.ts +6 -9
  31. package/src/queries/referralQuery.ts +0 -1
  32. package/src/queries/spoolQuery.ts +1 -1
  33. package/src/types/query/core.ts +1 -0
  34. package/src/types/utils.ts +13 -0
  35. package/src/utils/util.ts +2 -1
  36. package/dist/models/scallopPrice.d.ts +0 -0
  37. package/src/models/scallopPrice.ts +0 -0
@@ -0,0 +1,2 @@
1
+ import { SupportPoolCoins } from 'src/types/constant/common';
2
+ export declare const COIN_GECKGO_IDS: Record<SupportPoolCoins, string>;
@@ -1,5 +1,12 @@
1
+ export * from './cache';
2
+ export * from './coinGecko';
1
3
  export * from './common';
2
4
  export * from './enum';
3
5
  export * from './flashloan';
6
+ export * from './poolAddress';
7
+ export * from './pyth';
4
8
  export * from './queryKeys';
9
+ export * from './testAddress';
10
+ export * from './tokenBucket';
5
11
  export * from './vesca';
12
+ export * from './testAddress';
@@ -0,0 +1,5 @@
1
+ import { SupportPoolCoins } from 'src/types';
2
+ export declare const POOL_ADDRESSES: Record<SupportPoolCoins, {
3
+ lendingPoolAddress: string;
4
+ collateralPoolAddress: string;
5
+ }>;
@@ -1,3 +1,5 @@
1
+ import { SupportPoolCoins } from 'src/types';
1
2
  export declare const PYTH_ENDPOINTS: {
2
3
  [k in 'mainnet' | 'testnet']: string[];
3
4
  };
5
+ export declare const PYTH_FEED_IDS: Record<SupportPoolCoins, string>;
@@ -51,8 +51,9 @@ export declare const queryKeys: {
51
51
  })[];
52
52
  };
53
53
  oracle: {
54
- getPythLatestPriceFeed: (pythPriceId?: string) => (string | {
54
+ getPythLatestPriceFeed: (pythPriceId?: string, endpoint?: string) => (string | {
55
55
  pythPriceId: string | undefined;
56
+ endpoint: string | undefined;
56
57
  })[];
57
58
  };
58
59
  };