@scallop-io/sui-scallop-sdk 2.3.9 → 2.3.11

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/README.md CHANGED
@@ -51,8 +51,8 @@ This SDK is used to interact with [sui-lending-protocol](https://github.com/scal
51
51
  ...
52
52
  });
53
53
 
54
- const scallopAddress = await scallopSDK.getScallopAddress();
55
54
  const scallopConstants = await scallopSDK.getScallopConstants();
55
+ // Note: ScallopConstants inherits from ScallopAddress, so you can access addresses via scallopConstants
56
56
  const scallopQuery = await scallopSDK.createScallopQuery();
57
57
  const scallopBuilder = await scallopSDK.createScallopBuilder();
58
58
  const scallopUtils = await scallopSDK.createScallopUtils();
package/dist/index.d.mts CHANGED
@@ -1778,11 +1778,11 @@ declare class ScallopClient implements ScallopClientInterface {
1778
1778
  * @example
1779
1779
  * ```typescript
1780
1780
  * const sdk = new Scallop(<parameters>);
1781
- * const scallopAddress = await sdk.getScallopAddress();
1781
+ * const scallopConstants = await sdk.getScallopConstants();
1782
1782
  * const scallopBuilder = await sdk.createScallopBuilder();
1783
1783
  * const scallopClient = await sdk.createScallopClient();
1784
- * const scallopIndexer= await sdk.createScallopIndexer();
1785
- * const scallopUtils= await sdk.createScallopUtils();
1784
+ * const scallopIndexer = await sdk.createScallopIndexer();
1785
+ * const scallopUtils = await sdk.createScallopUtils();
1786
1786
  * ```
1787
1787
  */
1788
1788
  type ScallopParams = {
@@ -3307,6 +3307,34 @@ declare const POOL_ADDRESSES: {
3307
3307
  pythFeedObjectId: string;
3308
3308
  flashloanFeeObject: string;
3309
3309
  };
3310
+ hasui: {
3311
+ coinName: string;
3312
+ symbol: string;
3313
+ lendingPoolAddress: string;
3314
+ collateralPoolAddress: string;
3315
+ borrowDynamic: string;
3316
+ interestModel: string;
3317
+ riskModel: string;
3318
+ borrowFeeKey: string;
3319
+ supplyLimitKey: string;
3320
+ borrowLimitKey: string;
3321
+ isolatedAssetKey: string;
3322
+ isIsolated: boolean;
3323
+ spool: string;
3324
+ spoolReward: string;
3325
+ sCoinType: string;
3326
+ sCoinTreasury: string;
3327
+ sCoinMetadataId: string;
3328
+ sCoinSymbol: string;
3329
+ sCoinName: string;
3330
+ coinMetadataId: string;
3331
+ coinType: string;
3332
+ spoolName: string;
3333
+ decimals: number;
3334
+ pythFeed: string;
3335
+ pythFeedObjectId: string;
3336
+ flashloanFeeObject: string;
3337
+ };
3310
3338
  };
3311
3339
 
3312
3340
  declare const UNLOCK_ROUND_DURATION: number;
package/dist/index.d.ts CHANGED
@@ -1778,11 +1778,11 @@ declare class ScallopClient implements ScallopClientInterface {
1778
1778
  * @example
1779
1779
  * ```typescript
1780
1780
  * const sdk = new Scallop(<parameters>);
1781
- * const scallopAddress = await sdk.getScallopAddress();
1781
+ * const scallopConstants = await sdk.getScallopConstants();
1782
1782
  * const scallopBuilder = await sdk.createScallopBuilder();
1783
1783
  * const scallopClient = await sdk.createScallopClient();
1784
- * const scallopIndexer= await sdk.createScallopIndexer();
1785
- * const scallopUtils= await sdk.createScallopUtils();
1784
+ * const scallopIndexer = await sdk.createScallopIndexer();
1785
+ * const scallopUtils = await sdk.createScallopUtils();
1786
1786
  * ```
1787
1787
  */
1788
1788
  type ScallopParams = {
@@ -3307,6 +3307,34 @@ declare const POOL_ADDRESSES: {
3307
3307
  pythFeedObjectId: string;
3308
3308
  flashloanFeeObject: string;
3309
3309
  };
3310
+ hasui: {
3311
+ coinName: string;
3312
+ symbol: string;
3313
+ lendingPoolAddress: string;
3314
+ collateralPoolAddress: string;
3315
+ borrowDynamic: string;
3316
+ interestModel: string;
3317
+ riskModel: string;
3318
+ borrowFeeKey: string;
3319
+ supplyLimitKey: string;
3320
+ borrowLimitKey: string;
3321
+ isolatedAssetKey: string;
3322
+ isIsolated: boolean;
3323
+ spool: string;
3324
+ spoolReward: string;
3325
+ sCoinType: string;
3326
+ sCoinTreasury: string;
3327
+ sCoinMetadataId: string;
3328
+ sCoinSymbol: string;
3329
+ sCoinName: string;
3330
+ coinMetadataId: string;
3331
+ coinType: string;
3332
+ spoolName: string;
3333
+ decimals: number;
3334
+ pythFeed: string;
3335
+ pythFeedObjectId: string;
3336
+ flashloanFeeObject: string;
3337
+ };
3310
3338
  };
3311
3339
 
3312
3340
  declare const UNLOCK_ROUND_DURATION: number;