@scallop-io/sui-scallop-sdk 2.3.8 → 2.3.10

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
@@ -460,6 +460,7 @@ type QueryInspectTxnParams = {
460
460
  args: SuiObjectArg[];
461
461
  typeArgs?: any[];
462
462
  txBlock?: SuiTxBlock;
463
+ keys?: QueryKey;
463
464
  };
464
465
  type ScallopSuiKitParams = {
465
466
  suiKit?: SuiKit;
@@ -513,7 +514,7 @@ declare class ScallopSuiKit extends ScallopQueryClient {
513
514
  * @param txBlock
514
515
  * @returns Promise<DevInspectResults>
515
516
  */
516
- queryInspectTxn({ queryTarget, args, typeArgs, txBlock, }: QueryInspectTxnParams): Promise<DevInspectResults | null>;
517
+ queryInspectTxn({ queryTarget, args, typeArgs, txBlock, keys, }: QueryInspectTxnParams): Promise<DevInspectResults | null>;
517
518
  }
518
519
 
519
520
  type ScallopQueryParams = {
@@ -1777,11 +1778,11 @@ declare class ScallopClient implements ScallopClientInterface {
1777
1778
  * @example
1778
1779
  * ```typescript
1779
1780
  * const sdk = new Scallop(<parameters>);
1780
- * const scallopAddress = await sdk.getScallopAddress();
1781
+ * const scallopConstants = await sdk.getScallopConstants();
1781
1782
  * const scallopBuilder = await sdk.createScallopBuilder();
1782
1783
  * const scallopClient = await sdk.createScallopClient();
1783
- * const scallopIndexer= await sdk.createScallopIndexer();
1784
- * const scallopUtils= await sdk.createScallopUtils();
1784
+ * const scallopIndexer = await sdk.createScallopIndexer();
1785
+ * const scallopUtils = await sdk.createScallopUtils();
1785
1786
  * ```
1786
1787
  */
1787
1788
  type ScallopParams = {
package/dist/index.d.ts CHANGED
@@ -460,6 +460,7 @@ type QueryInspectTxnParams = {
460
460
  args: SuiObjectArg[];
461
461
  typeArgs?: any[];
462
462
  txBlock?: SuiTxBlock;
463
+ keys?: QueryKey;
463
464
  };
464
465
  type ScallopSuiKitParams = {
465
466
  suiKit?: SuiKit;
@@ -513,7 +514,7 @@ declare class ScallopSuiKit extends ScallopQueryClient {
513
514
  * @param txBlock
514
515
  * @returns Promise<DevInspectResults>
515
516
  */
516
- queryInspectTxn({ queryTarget, args, typeArgs, txBlock, }: QueryInspectTxnParams): Promise<DevInspectResults | null>;
517
+ queryInspectTxn({ queryTarget, args, typeArgs, txBlock, keys, }: QueryInspectTxnParams): Promise<DevInspectResults | null>;
517
518
  }
518
519
 
519
520
  type ScallopQueryParams = {
@@ -1777,11 +1778,11 @@ declare class ScallopClient implements ScallopClientInterface {
1777
1778
  * @example
1778
1779
  * ```typescript
1779
1780
  * const sdk = new Scallop(<parameters>);
1780
- * const scallopAddress = await sdk.getScallopAddress();
1781
+ * const scallopConstants = await sdk.getScallopConstants();
1781
1782
  * const scallopBuilder = await sdk.createScallopBuilder();
1782
1783
  * const scallopClient = await sdk.createScallopClient();
1783
- * const scallopIndexer= await sdk.createScallopIndexer();
1784
- * const scallopUtils= await sdk.createScallopUtils();
1784
+ * const scallopIndexer = await sdk.createScallopIndexer();
1785
+ * const scallopUtils = await sdk.createScallopUtils();
1785
1786
  * ```
1786
1787
  */
1787
1788
  type ScallopParams = {