@scallop-io/sui-scallop-sdk 0.44.22 → 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.
@@ -58,6 +58,7 @@ export declare class ScallopQuery {
58
58
  afsui?: import("../types").MarketPool | undefined;
59
59
  hasui?: import("../types").MarketPool | undefined;
60
60
  vsui?: import("../types").MarketPool | undefined;
61
+ sca?: import("../types").MarketPool | undefined;
61
62
  }>;
62
63
  /**
63
64
  * Get market pool
@@ -90,6 +91,7 @@ export declare class ScallopQuery {
90
91
  afsui?: import("../types").MarketCollateral | undefined;
91
92
  hasui?: import("../types").MarketCollateral | undefined;
92
93
  vsui?: import("../types").MarketCollateral | undefined;
94
+ sca?: import("../types").MarketCollateral | undefined;
93
95
  }>;
94
96
  /**
95
97
  * Get market collateral
@@ -132,6 +134,7 @@ export declare class ScallopQuery {
132
134
  afsui?: number | undefined;
133
135
  hasui?: number | undefined;
134
136
  vsui?: number | undefined;
137
+ sca?: number | undefined;
135
138
  }>;
136
139
  /**
137
140
  * Get asset coin amount.
@@ -160,6 +163,7 @@ export declare class ScallopQuery {
160
163
  sbtc?: number | undefined;
161
164
  sapt?: number | undefined;
162
165
  ssol?: number | undefined;
166
+ ssca?: number | undefined;
163
167
  }>;
164
168
  /**
165
169
  * Get market coin amount.
@@ -289,6 +293,7 @@ export declare class ScallopQuery {
289
293
  usdc?: import("../types").BorrowIncentivePool | undefined;
290
294
  usdt?: import("../types").BorrowIncentivePool | undefined;
291
295
  sui?: import("../types").BorrowIncentivePool | undefined;
296
+ sca?: import("../types").BorrowIncentivePool | undefined;
292
297
  }>;
293
298
  /**
294
299
  * Get borrow incentive accounts data.
@@ -301,6 +306,7 @@ export declare class ScallopQuery {
301
306
  usdc?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
302
307
  usdt?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
303
308
  sui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
309
+ sca?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
304
310
  }>;
305
311
  /**
306
312
  * Get user lending and spool infomation for specific pools.
@@ -322,6 +328,7 @@ export declare class ScallopQuery {
322
328
  afsui?: import("../types").Lending | undefined;
323
329
  hasui?: import("../types").Lending | undefined;
324
330
  vsui?: import("../types").Lending | undefined;
331
+ sca?: import("../types").Lending | undefined;
325
332
  }>;
326
333
  /**
327
334
  * Get user lending and spool information for specific pool.
@@ -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
  }>;
@@ -37,6 +37,7 @@ export declare const getMarketPools: (query: ScallopQuery, poolCoinNames?: Suppo
37
37
  afsui?: MarketPool | undefined;
38
38
  hasui?: MarketPool | undefined;
39
39
  vsui?: MarketPool | undefined;
40
+ sca?: MarketPool | undefined;
40
41
  }>;
41
42
  /**
42
43
  * Get market pool data.
@@ -73,6 +74,7 @@ export declare const getMarketCollaterals: (query: ScallopQuery, collateralCoinN
73
74
  afsui?: MarketCollateral | undefined;
74
75
  hasui?: MarketCollateral | undefined;
75
76
  vsui?: MarketCollateral | undefined;
77
+ sca?: MarketCollateral | undefined;
76
78
  }>;
77
79
  /**
78
80
  * Get market collateral data.
@@ -132,6 +134,7 @@ export declare const getCoinAmounts: (query: ScallopQuery, assetCoinNames?: Supp
132
134
  afsui?: number | undefined;
133
135
  hasui?: number | undefined;
134
136
  vsui?: number | undefined;
137
+ sca?: number | undefined;
135
138
  }>;
136
139
  /**
137
140
  * Query owned coin amount.
@@ -162,6 +165,7 @@ export declare const getMarketCoinAmounts: (query: ScallopQuery, marketCoinNames
162
165
  sbtc?: number | undefined;
163
166
  sapt?: number | undefined;
164
167
  ssol?: number | undefined;
168
+ ssca?: number | undefined;
165
169
  }>;
166
170
  /**
167
171
  * Query owned market coin (sCoin) amount.
@@ -21,6 +21,7 @@ export declare const getLendings: (query: ScallopQuery, poolCoinNames?: SupportP
21
21
  afsui?: Lending | undefined;
22
22
  hasui?: Lending | undefined;
23
23
  vsui?: Lending | undefined;
24
+ sca?: Lending | undefined;
24
25
  }>;
25
26
  /**
26
27
  * Get user lending infomation for specific pool.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scallop-io/sui-scallop-sdk",
3
- "version": "0.44.22",
3
+ "version": "0.44.24",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -22,6 +22,7 @@ export const SCA_COIN_TYPE = IS_VE_SCA_TEST
22
22
 
23
23
  export const OLD_BORROW_INCENTIVE_PROTOCOL_ID =
24
24
  '0xc63072e7f5f4983a2efaf5bdba1480d5e7d74d57948e1c7cc436f8e22cbeb410' as const;
25
+
25
26
  export const SUPPORT_POOLS = [
26
27
  'eth',
27
28
  'btc',
@@ -34,6 +35,7 @@ export const SUPPORT_POOLS = [
34
35
  'afsui',
35
36
  'hasui',
36
37
  'vsui',
38
+ 'sca',
37
39
  ] as const;
38
40
 
39
41
  export const SUPPORT_COLLATERALS = [
@@ -48,6 +50,7 @@ export const SUPPORT_COLLATERALS = [
48
50
  'afsui',
49
51
  'hasui',
50
52
  'vsui',
53
+ 'sca',
51
54
  ] as const;
52
55
 
53
56
  export const SUPPORT_SPOOLS = [
@@ -63,7 +66,12 @@ export const SUPPORT_SPOOLS = [
63
66
 
64
67
  export const SUPPORT_SPOOLS_REWARDS = ['sui'] as const;
65
68
 
66
- 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
+ 'sca',
74
+ ] as const;
67
75
 
68
76
  export const SUPPORT_BORROW_INCENTIVE_REWARDS = ['sui', 'sca'] as const;
69
77
  export const SUPPORT_ORACLES = ['supra', 'switchboard', 'pyth'] as const;
@@ -23,6 +23,7 @@ export const coinDecimals: SupportCoinDecimals = {
23
23
  afsui: 9,
24
24
  hasui: 9,
25
25
  vsui: 9,
26
+ sca: 9,
26
27
  seth: 8,
27
28
  sbtc: 8,
28
29
  susdc: 6,
@@ -34,7 +35,7 @@ export const coinDecimals: SupportCoinDecimals = {
34
35
  safsui: 9,
35
36
  shasui: 9,
36
37
  svsui: 9,
37
- sca: 9,
38
+ ssca: 9,
38
39
  };
39
40
 
40
41
  export const assetCoins: AssetCoins = {
@@ -64,6 +65,7 @@ export const marketCoins: MarketCoins = {
64
65
  safsui: 'safsui',
65
66
  shasui: 'shasui',
66
67
  svsui: 'svsui',
68
+ ssca: 'ssca',
67
69
  };
68
70
 
69
71
  export const stakeMarketCoins: StakeMarketCoins = {
@@ -92,6 +94,7 @@ export const borrowIncentiveRewardCoins: BorrowIncentiveRewardCoins = {
92
94
  sui: ['sui', 'sca'],
93
95
  usdc: ['sui', 'sca'],
94
96
  usdt: ['sui', 'sca'],
97
+ sca: ['sui', 'sca'],
95
98
  };
96
99
 
97
100
  export const coinIds: AssetCoinIds = {
@@ -121,6 +121,19 @@ const EMPTY_ADDRESSES: AddressesInterface = {
121
121
  },
122
122
  },
123
123
  },
124
+ sca: {
125
+ id: '',
126
+ metaData: '',
127
+ treasury: '',
128
+ oracle: {
129
+ supra: '',
130
+ switchboard: '',
131
+ pyth: {
132
+ feed: '',
133
+ feedObject: '',
134
+ },
135
+ },
136
+ },
124
137
  },
125
138
  oracles: {
126
139
  xOracle: '',
@@ -277,6 +277,7 @@ export const getStakeAccounts = async (
277
277
  safsui: [],
278
278
  shasui: [],
279
279
  svsui: [],
280
+ // ssca: [],
280
281
  };
281
282
 
282
283
  const stakeMarketCoinTypes: Record<SupportStakeMarketCoins, string> =