@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 +1 -1
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +13 -13
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
- package/src/models/scallop.ts +3 -3
- package/src/models/scallopSuiKit.ts +11 -6
- package/src/queries/borrowIncentiveQuery.ts +14 -5
- package/src/queries/coreQuery.ts +20 -8
- package/src/queries/portfolioQuery.ts +6 -0
- package/src/queries/sCoinQuery.ts +8 -1
- package/src/queries/vescaQuery.ts +20 -2
- package/src/utils/object.ts +6 -10
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
|
|
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
|
|
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 = {
|