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

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.
@@ -322,6 +326,7 @@ export declare class ScallopQuery {
322
326
  afsui?: import("../types").Lending | undefined;
323
327
  hasui?: import("../types").Lending | undefined;
324
328
  vsui?: import("../types").Lending | undefined;
329
+ sca?: import("../types").Lending | undefined;
325
330
  }>;
326
331
  /**
327
332
  * Get user lending and spool information for specific pool.
@@ -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.23",
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 = [
@@ -59,6 +62,7 @@ export const SUPPORT_SPOOLS = [
59
62
  'safsui',
60
63
  'shasui',
61
64
  'svsui',
65
+ // 'ssca',
62
66
  ] as const;
63
67
 
64
68
  export const SUPPORT_SPOOLS_REWARDS = ['sui'] 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 = {
@@ -75,6 +77,7 @@ export const stakeMarketCoins: StakeMarketCoins = {
75
77
  safsui: 'safsui',
76
78
  shasui: 'shasui',
77
79
  svsui: 'svsui',
80
+ // ssca: 'ssca',
78
81
  };
79
82
 
80
83
  export const spoolRewardCoins: StakeRewardCoins = {
@@ -86,6 +89,7 @@ export const spoolRewardCoins: StakeRewardCoins = {
86
89
  safsui: 'sui',
87
90
  shasui: 'sui',
88
91
  svsui: 'sui',
92
+ // ssca: 'sui',
89
93
  };
90
94
 
91
95
  export const borrowIncentiveRewardCoins: BorrowIncentiveRewardCoins = {
@@ -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: '',
@@ -223,6 +236,10 @@ const EMPTY_ADDRESSES: AddressesInterface = {
223
236
  id: '',
224
237
  rewardPoolId: '',
225
238
  },
239
+ // ssca: {
240
+ // id: '',
241
+ // rewardPoolId: '',
242
+ // },
226
243
  },
227
244
  },
228
245
  borrowIncentive: {
@@ -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> =
@@ -398,6 +399,18 @@ export const getStakeAccounts = async (
398
399
  totalPoints,
399
400
  });
400
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
+ // }
401
414
  }
402
415
  }
403
416
  return stakeAccounts;