@scallop-io/sui-scallop-sdk 0.44.23 → 0.44.25

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.
@@ -290,9 +290,14 @@ export declare class ScallopQuery {
290
290
  * @return Borrow incentive pools data.
291
291
  */
292
292
  getBorrowIncentivePools(coinNames?: SupportBorrowIncentiveCoins[], indexer?: boolean): Promise<{
293
+ eth?: import("../types").BorrowIncentivePool | undefined;
293
294
  usdc?: import("../types").BorrowIncentivePool | undefined;
294
295
  usdt?: import("../types").BorrowIncentivePool | undefined;
295
296
  sui?: import("../types").BorrowIncentivePool | undefined;
297
+ afsui?: import("../types").BorrowIncentivePool | undefined;
298
+ hasui?: import("../types").BorrowIncentivePool | undefined;
299
+ vsui?: import("../types").BorrowIncentivePool | undefined;
300
+ sca?: import("../types").BorrowIncentivePool | undefined;
296
301
  }>;
297
302
  /**
298
303
  * Get borrow incentive accounts data.
@@ -302,9 +307,14 @@ export declare class ScallopQuery {
302
307
  * @return Borrow incentive accounts data.
303
308
  */
304
309
  getBorrowIncentiveAccounts(obligationId: string, coinNames?: SupportBorrowIncentiveCoins[]): Promise<{
310
+ eth?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
305
311
  usdc?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
306
312
  usdt?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
307
313
  sui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
314
+ afsui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
315
+ hasui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
316
+ vsui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
317
+ sca?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
308
318
  }>;
309
319
  /**
310
320
  * Get user lending and spool infomation for specific pools.
@@ -9,9 +9,14 @@ import type { SupportBorrowIncentiveCoins } from '../types';
9
9
  * @return Borrow incentive pools data.
10
10
  */
11
11
  export declare const queryBorrowIncentivePools: (query: ScallopQuery, borrowIncentiveCoinNames?: SupportBorrowIncentiveCoins[], indexer?: boolean) => Promise<{
12
+ eth?: import("../types").BorrowIncentivePool | undefined;
12
13
  usdc?: import("../types").BorrowIncentivePool | undefined;
13
14
  usdt?: import("../types").BorrowIncentivePool | undefined;
14
15
  sui?: import("../types").BorrowIncentivePool | undefined;
16
+ afsui?: import("../types").BorrowIncentivePool | undefined;
17
+ hasui?: import("../types").BorrowIncentivePool | undefined;
18
+ vsui?: import("../types").BorrowIncentivePool | undefined;
19
+ sca?: import("../types").BorrowIncentivePool | undefined;
15
20
  }>;
16
21
  /**
17
22
  * Query borrow incentive accounts data.
@@ -21,7 +26,12 @@ export declare const queryBorrowIncentivePools: (query: ScallopQuery, borrowInce
21
26
  * @return Borrow incentive accounts data.
22
27
  */
23
28
  export declare const queryBorrowIncentiveAccounts: (query: ScallopQuery, obligationId: string, borrowIncentiveCoinNames?: SupportBorrowIncentiveCoins[]) => Promise<{
29
+ eth?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
24
30
  usdc?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
25
31
  usdt?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
26
32
  sui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
33
+ afsui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
34
+ hasui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
35
+ vsui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
36
+ sca?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
27
37
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scallop-io/sui-scallop-sdk",
3
- "version": "0.44.23",
3
+ "version": "0.44.25",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -62,12 +62,20 @@ 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 = ['sui', 'usdc', 'usdt'] as const;
69
+ export const SUPPORT_BORROW_INCENTIVE_POOLS = [
70
+ 'sui',
71
+ 'usdc',
72
+ 'usdt',
73
+ 'afsui',
74
+ 'hasui',
75
+ 'vsui',
76
+ 'eth',
77
+ 'sca',
78
+ ] as const;
71
79
 
72
80
  export const SUPPORT_BORROW_INCENTIVE_REWARDS = ['sui', 'sca'] as const;
73
81
  export const SUPPORT_ORACLES = ['supra', 'switchboard', 'pyth'] as const;
@@ -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,17 @@ 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'],
98
+ afsui: ['sui'],
99
+ hasui: ['sui'],
100
+ vsui: ['sui'],
101
+ eth: ['sui'],
99
102
  };
100
103
 
101
104
  export const coinIds: AssetCoinIds = {
@@ -236,10 +236,6 @@ const EMPTY_ADDRESSES: AddressesInterface = {
236
236
  id: '',
237
237
  rewardPoolId: '',
238
238
  },
239
- // ssca: {
240
- // id: '',
241
- // rewardPoolId: '',
242
- // },
243
239
  },
244
240
  },
245
241
  borrowIncentive: {
@@ -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;