@scallop-io/sui-scallop-sdk 1.4.17 → 1.4.19
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/dist/constants/poolAddress.d.ts +17 -10
- package/dist/index.js +186 -100
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +186 -100
- package/dist/index.mjs.map +1 -1
- package/dist/models/scallopQuery.d.ts +7 -0
- package/dist/queries/poolAddressesQuery.d.ts +7 -0
- package/package.json +1 -1
- package/src/constants/poolAddress.ts +239 -144
- package/src/queries/poolAddressesQuery.ts +27 -0
|
@@ -579,12 +579,16 @@ export declare class ScallopQuery {
|
|
|
579
579
|
* @returns
|
|
580
580
|
*/
|
|
581
581
|
getPoolAddresses(): Promise<import("../types").OptionalKeys<Record<"usdc" | "sbeth" | "sbusdt" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd", {
|
|
582
|
+
coinName: string;
|
|
583
|
+
symbol: string;
|
|
582
584
|
lendingPoolAddress?: string;
|
|
583
585
|
collateralPoolAddress?: string;
|
|
584
586
|
borrowDynamic?: string;
|
|
585
587
|
spoolReward?: string;
|
|
586
588
|
spool?: string;
|
|
587
589
|
sCoinType?: string;
|
|
590
|
+
sCoinName?: string;
|
|
591
|
+
sCoinSymbol?: string;
|
|
588
592
|
sCoinTreasury?: string;
|
|
589
593
|
interestModel?: string;
|
|
590
594
|
riskModel?: string;
|
|
@@ -595,6 +599,9 @@ export declare class ScallopQuery {
|
|
|
595
599
|
coinMetadataId?: string;
|
|
596
600
|
borrowIncentivePoolId?: string;
|
|
597
601
|
coinType?: string;
|
|
602
|
+
sCoinMetadataId?: string;
|
|
603
|
+
spoolName?: string;
|
|
604
|
+
decimals: number;
|
|
598
605
|
}>>>;
|
|
599
606
|
/**
|
|
600
607
|
* Get user portfolio
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { ScallopQuery } from 'src/models';
|
|
2
2
|
import { OptionalKeys } from 'src/types';
|
|
3
3
|
export declare const getAllAddresses: (query: ScallopQuery) => Promise<OptionalKeys<Record<"usdc" | "sbeth" | "sbusdt" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd", {
|
|
4
|
+
coinName: string;
|
|
5
|
+
symbol: string;
|
|
4
6
|
lendingPoolAddress?: string;
|
|
5
7
|
collateralPoolAddress?: string;
|
|
6
8
|
borrowDynamic?: string;
|
|
7
9
|
spoolReward?: string;
|
|
8
10
|
spool?: string;
|
|
9
11
|
sCoinType?: string;
|
|
12
|
+
sCoinName?: string;
|
|
13
|
+
sCoinSymbol?: string;
|
|
10
14
|
sCoinTreasury?: string;
|
|
11
15
|
interestModel?: string;
|
|
12
16
|
riskModel?: string;
|
|
@@ -17,4 +21,7 @@ export declare const getAllAddresses: (query: ScallopQuery) => Promise<OptionalK
|
|
|
17
21
|
coinMetadataId?: string;
|
|
18
22
|
borrowIncentivePoolId?: string;
|
|
19
23
|
coinType?: string;
|
|
24
|
+
sCoinMetadataId?: string;
|
|
25
|
+
spoolName?: string;
|
|
26
|
+
decimals: number;
|
|
20
27
|
}>>>;
|