@scallop-io/sui-scallop-sdk 2.3.9 → 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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +12 -12
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
- package/src/models/scallop.ts +3 -3
- package/src/queries/borrowIncentiveQuery.ts +3 -5
- package/src/queries/coreQuery.ts +4 -7
- package/src/queries/portfolioQuery.ts +6 -0
- package/src/queries/sCoinQuery.ts +1 -1
- package/src/queries/vescaQuery.ts +11 -14
- 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
|
@@ -1778,11 +1778,11 @@ declare class ScallopClient implements ScallopClientInterface {
|
|
|
1778
1778
|
* @example
|
|
1779
1779
|
* ```typescript
|
|
1780
1780
|
* const sdk = new Scallop(<parameters>);
|
|
1781
|
-
* const
|
|
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 = {
|
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
|
|
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 = {
|