@scallop-io/sui-scallop-sdk 0.44.23 → 0.44.24
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/common.d.ts +1 -1
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -9
- package/dist/index.mjs.map +1 -1
- package/dist/models/scallopQuery.d.ts +2 -0
- package/dist/queries/borrowIncentiveQuery.d.ts +2 -0
- package/package.json +1 -1
- package/src/constants/common.ts +6 -2
- package/src/constants/enum.ts +1 -2
- package/src/models/scallopAddress.ts +0 -4
- package/src/queries/spoolQuery.ts +0 -12
|
@@ -293,6 +293,7 @@ export declare class ScallopQuery {
|
|
|
293
293
|
usdc?: import("../types").BorrowIncentivePool | undefined;
|
|
294
294
|
usdt?: import("../types").BorrowIncentivePool | undefined;
|
|
295
295
|
sui?: import("../types").BorrowIncentivePool | undefined;
|
|
296
|
+
sca?: import("../types").BorrowIncentivePool | undefined;
|
|
296
297
|
}>;
|
|
297
298
|
/**
|
|
298
299
|
* Get borrow incentive accounts data.
|
|
@@ -305,6 +306,7 @@ export declare class ScallopQuery {
|
|
|
305
306
|
usdc?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
306
307
|
usdt?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
307
308
|
sui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
309
|
+
sca?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
308
310
|
}>;
|
|
309
311
|
/**
|
|
310
312
|
* Get user lending and spool infomation for specific pools.
|
|
@@ -12,6 +12,7 @@ export declare const queryBorrowIncentivePools: (query: ScallopQuery, borrowInce
|
|
|
12
12
|
usdc?: import("../types").BorrowIncentivePool | undefined;
|
|
13
13
|
usdt?: import("../types").BorrowIncentivePool | undefined;
|
|
14
14
|
sui?: import("../types").BorrowIncentivePool | undefined;
|
|
15
|
+
sca?: import("../types").BorrowIncentivePool | undefined;
|
|
15
16
|
}>;
|
|
16
17
|
/**
|
|
17
18
|
* Query borrow incentive accounts data.
|
|
@@ -24,4 +25,5 @@ export declare const queryBorrowIncentiveAccounts: (query: ScallopQuery, obligat
|
|
|
24
25
|
usdc?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
25
26
|
usdt?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
26
27
|
sui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
28
|
+
sca?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
27
29
|
}>;
|
package/package.json
CHANGED
package/src/constants/common.ts
CHANGED
|
@@ -62,12 +62,16 @@ export const SUPPORT_SPOOLS = [
|
|
|
62
62
|
'safsui',
|
|
63
63
|
'shasui',
|
|
64
64
|
'svsui',
|
|
65
|
-
// 'ssca',
|
|
66
65
|
] as const;
|
|
67
66
|
|
|
68
67
|
export const SUPPORT_SPOOLS_REWARDS = ['sui'] as const;
|
|
69
68
|
|
|
70
|
-
export const SUPPORT_BORROW_INCENTIVE_POOLS = [
|
|
69
|
+
export const SUPPORT_BORROW_INCENTIVE_POOLS = [
|
|
70
|
+
'sui',
|
|
71
|
+
'usdc',
|
|
72
|
+
'usdt',
|
|
73
|
+
'sca',
|
|
74
|
+
] as const;
|
|
71
75
|
|
|
72
76
|
export const SUPPORT_BORROW_INCENTIVE_REWARDS = ['sui', 'sca'] as const;
|
|
73
77
|
export const SUPPORT_ORACLES = ['supra', 'switchboard', 'pyth'] as const;
|
package/src/constants/enum.ts
CHANGED
|
@@ -77,7 +77,6 @@ export const stakeMarketCoins: StakeMarketCoins = {
|
|
|
77
77
|
safsui: 'safsui',
|
|
78
78
|
shasui: 'shasui',
|
|
79
79
|
svsui: 'svsui',
|
|
80
|
-
// ssca: 'ssca',
|
|
81
80
|
};
|
|
82
81
|
|
|
83
82
|
export const spoolRewardCoins: StakeRewardCoins = {
|
|
@@ -89,13 +88,13 @@ export const spoolRewardCoins: StakeRewardCoins = {
|
|
|
89
88
|
safsui: 'sui',
|
|
90
89
|
shasui: 'sui',
|
|
91
90
|
svsui: 'sui',
|
|
92
|
-
// ssca: 'sui',
|
|
93
91
|
};
|
|
94
92
|
|
|
95
93
|
export const borrowIncentiveRewardCoins: BorrowIncentiveRewardCoins = {
|
|
96
94
|
sui: ['sui', 'sca'],
|
|
97
95
|
usdc: ['sui', 'sca'],
|
|
98
96
|
usdt: ['sui', 'sca'],
|
|
97
|
+
sca: ['sui', 'sca'],
|
|
99
98
|
};
|
|
100
99
|
|
|
101
100
|
export const coinIds: AssetCoinIds = {
|
|
@@ -399,18 +399,6 @@ export const getStakeAccounts = async (
|
|
|
399
399
|
totalPoints,
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
|
-
// else if (normalizeStructTag(type) === stakeMarketCoinTypes.ssca) {
|
|
403
|
-
// stakeAccounts.ssca.push({
|
|
404
|
-
// id,
|
|
405
|
-
// type: normalizeStructTag(type),
|
|
406
|
-
// stakePoolId,
|
|
407
|
-
// stakeType: normalizeStructTag(stakeType),
|
|
408
|
-
// staked,
|
|
409
|
-
// index,
|
|
410
|
-
// points,
|
|
411
|
-
// totalPoints,
|
|
412
|
-
// });
|
|
413
|
-
// }
|
|
414
402
|
}
|
|
415
403
|
}
|
|
416
404
|
return stakeAccounts;
|