@scallop-io/sui-scallop-sdk 1.3.4-alpha.6 → 1.3.4-alpha.7

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.
Files changed (75) hide show
  1. package/dist/builders/borrowIncentiveBuilder.d.ts +12 -0
  2. package/dist/builders/coreBuilder.d.ts +12 -0
  3. package/dist/builders/index.d.ts +12 -0
  4. package/dist/builders/loyaltyProgramBuilder.d.ts +12 -0
  5. package/dist/builders/oracle.d.ts +14 -0
  6. package/dist/builders/referralBuilder.d.ts +12 -0
  7. package/dist/builders/sCoinBuilder.d.ts +4 -0
  8. package/dist/builders/spoolBuilder.d.ts +12 -0
  9. package/dist/builders/vescaBuilder.d.ts +25 -0
  10. package/dist/constants/cache.d.ts +14 -0
  11. package/dist/constants/coinGecko.d.ts +2 -0
  12. package/dist/constants/common.d.ts +20 -0
  13. package/dist/constants/enum.d.ts +14 -0
  14. package/dist/constants/flashloan.d.ts +2 -0
  15. package/dist/constants/index.d.ts +12 -0
  16. package/dist/constants/poolAddress.d.ts +5 -0
  17. package/dist/constants/pyth.d.ts +5 -0
  18. package/dist/constants/queryKeys.d.ts +56 -0
  19. package/dist/constants/rpc.d.ts +1 -0
  20. package/dist/constants/testAddress.d.ts +2 -0
  21. package/dist/constants/tokenBucket.d.ts +2 -0
  22. package/dist/constants/vesca.d.ts +5 -0
  23. package/dist/index.d.ts +3 -0
  24. package/dist/models/index.d.ts +8 -0
  25. package/dist/models/scallop.d.ts +74 -0
  26. package/dist/models/scallopAddress.d.ts +150 -0
  27. package/dist/models/scallopBuilder.d.ts +89 -0
  28. package/dist/models/scallopCache.d.ts +74 -0
  29. package/dist/models/scallopClient.d.ts +321 -0
  30. package/dist/models/scallopIndexer.d.ts +89 -0
  31. package/dist/models/scallopQuery.d.ts +489 -0
  32. package/dist/models/scallopUtils.d.ts +227 -0
  33. package/dist/models/suiKit.d.ts +2 -0
  34. package/dist/queries/borrowIncentiveQuery.d.ts +61 -0
  35. package/dist/queries/coreQuery.d.ts +167 -0
  36. package/dist/queries/index.d.ts +11 -0
  37. package/dist/queries/isolatedAssetQuery.d.ts +14 -0
  38. package/dist/queries/loyaltyProgramQuery.d.ts +10 -0
  39. package/dist/queries/portfolioQuery.d.ts +73 -0
  40. package/dist/queries/priceQuery.d.ts +16 -0
  41. package/dist/queries/referralQuery.d.ts +7 -0
  42. package/dist/queries/sCoinQuery.d.ts +41 -0
  43. package/dist/queries/spoolQuery.d.ts +70 -0
  44. package/dist/queries/supplyLimitQuery.d.ts +9 -0
  45. package/dist/queries/vescaQuery.d.ts +36 -0
  46. package/dist/types/address.d.ts +107 -0
  47. package/dist/types/builder/borrowIncentive.d.ts +35 -0
  48. package/dist/types/builder/core.d.ts +56 -0
  49. package/dist/types/builder/index.d.ts +24 -0
  50. package/dist/types/builder/loyaltyProgram.d.ts +23 -0
  51. package/dist/types/builder/referral.d.ts +30 -0
  52. package/dist/types/builder/sCoin.d.ts +37 -0
  53. package/dist/types/builder/spool.d.ts +29 -0
  54. package/dist/types/builder/vesca.d.ts +51 -0
  55. package/dist/types/constant/common.d.ts +24 -0
  56. package/dist/types/constant/enum.d.ts +48 -0
  57. package/dist/types/constant/index.d.ts +2 -0
  58. package/dist/types/index.d.ts +6 -0
  59. package/dist/types/model.d.ts +54 -0
  60. package/dist/types/query/borrowIncentive.d.ts +124 -0
  61. package/dist/types/query/core.d.ts +361 -0
  62. package/dist/types/query/index.d.ts +7 -0
  63. package/dist/types/query/loyaltyProgram.d.ts +5 -0
  64. package/dist/types/query/portfolio.d.ts +115 -0
  65. package/dist/types/query/sCoin.d.ts +1 -0
  66. package/dist/types/query/spool.d.ts +122 -0
  67. package/dist/types/query/vesca.d.ts +26 -0
  68. package/dist/types/utils.d.ts +21 -0
  69. package/dist/utils/builder.d.ts +15 -0
  70. package/dist/utils/index.d.ts +5 -0
  71. package/dist/utils/indexer.d.ts +17 -0
  72. package/dist/utils/query.d.ts +62 -0
  73. package/dist/utils/tokenBucket.d.ts +11 -0
  74. package/dist/utils/util.d.ts +26 -0
  75. package/package.json +2 -2
@@ -0,0 +1,489 @@
1
+ import { SuiKit } from '@scallop-io/sui-kit';
2
+ import { ScallopQueryParams, SupportStakeMarketCoins, SupportAssetCoins, SupportPoolCoins, SupportCollateralCoins, SupportMarketCoins, SupportBorrowIncentiveCoins, SupportSCoin, ScallopQueryInstanceParams, MarketPool, CoinPrices, MarketPools } from '../types';
3
+ import { ScallopAddress } from './scallopAddress';
4
+ import { ScallopUtils } from './scallopUtils';
5
+ import { ScallopIndexer } from './scallopIndexer';
6
+ import { ScallopCache } from './scallopCache';
7
+ import { SuiObjectData } from '@mysten/sui/client';
8
+ /**
9
+ * @description
10
+ * It provides methods for getting on-chain data from the Scallop contract.
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * const scallopQuery = new ScallopQuery(<parameters>);
15
+ * await scallopQuery.init();
16
+ * scallopQuery.<query functions>();
17
+ * await scallopQuery.<query functions>();
18
+ * ```
19
+ */
20
+ export declare class ScallopQuery {
21
+ readonly params: ScallopQueryParams;
22
+ suiKit: SuiKit;
23
+ address: ScallopAddress;
24
+ utils: ScallopUtils;
25
+ indexer: ScallopIndexer;
26
+ cache: ScallopCache;
27
+ walletAddress: string;
28
+ constructor(params: ScallopQueryParams, instance?: ScallopQueryInstanceParams);
29
+ /**
30
+ * Request the scallop API to initialize data.
31
+ *
32
+ * @param force - Whether to force initialization.
33
+ * @param address - ScallopAddress instance.
34
+ */
35
+ init(force?: boolean, address?: ScallopAddress): Promise<void>;
36
+ /**
37
+ * Query market data.
38
+ * @param indexer - Whether to use indexer.
39
+ * @return Market data.
40
+ */
41
+ queryMarket(indexer?: boolean, args?: {
42
+ coinPrices: CoinPrices;
43
+ }): Promise<import("../types").Market>;
44
+ /**
45
+ * Get market pools.
46
+ *
47
+ * @description
48
+ * To obtain all market pools at once, it is recommended to use
49
+ * the `queryMarket` method to reduce time consumption.
50
+ *
51
+ * @param poolCoinNames - Specific an array of support pool coin name.
52
+ * @param indexer - Whether to use indexer.
53
+ * @return Market pools data.
54
+ */
55
+ getMarketPools(poolCoinNames?: SupportPoolCoins[], indexer?: boolean, args?: {
56
+ coinPrices?: CoinPrices;
57
+ }): Promise<{
58
+ usdc?: MarketPool | undefined;
59
+ sbeth?: MarketPool | undefined;
60
+ weth?: MarketPool | undefined;
61
+ wbtc?: MarketPool | undefined;
62
+ wusdc?: MarketPool | undefined;
63
+ wusdt?: MarketPool | undefined;
64
+ sui?: MarketPool | undefined;
65
+ wapt?: MarketPool | undefined;
66
+ wsol?: MarketPool | undefined;
67
+ cetus?: MarketPool | undefined;
68
+ afsui?: MarketPool | undefined;
69
+ hasui?: MarketPool | undefined;
70
+ vsui?: MarketPool | undefined;
71
+ sca?: MarketPool | undefined;
72
+ }>;
73
+ /**
74
+ * Get market pool
75
+ *
76
+ * @param poolCoinName - Specific support pool coin name.
77
+ * @param indexer - Whether to use indexer.
78
+ * @return Market pool data.
79
+ */
80
+ getMarketPool(poolCoinName: SupportPoolCoins, indexer?: boolean, args?: {
81
+ marketObject?: SuiObjectData | null;
82
+ coinPrice?: number;
83
+ }): Promise<MarketPool | undefined>;
84
+ /**
85
+ * Get market collaterals.
86
+ *
87
+ * @description
88
+ * To obtain all market collaterals at once, it is recommended to use
89
+ * the `queryMarket` method to reduce time consumption.
90
+ *
91
+ * @param collateralCoinNames - Specific an array of support collateral coin name.
92
+ * @param indexer - Whether to use indexer.
93
+ * @return Market collaterals data.
94
+ */
95
+ getMarketCollaterals(collateralCoinNames?: SupportCollateralCoins[], indexer?: boolean): Promise<{
96
+ usdc?: import("../types").MarketCollateral | undefined;
97
+ sbeth?: import("../types").MarketCollateral | undefined;
98
+ weth?: import("../types").MarketCollateral | undefined;
99
+ wbtc?: import("../types").MarketCollateral | undefined;
100
+ wusdc?: import("../types").MarketCollateral | undefined;
101
+ wusdt?: import("../types").MarketCollateral | undefined;
102
+ sui?: import("../types").MarketCollateral | undefined;
103
+ wapt?: import("../types").MarketCollateral | undefined;
104
+ wsol?: import("../types").MarketCollateral | undefined;
105
+ cetus?: import("../types").MarketCollateral | undefined;
106
+ afsui?: import("../types").MarketCollateral | undefined;
107
+ hasui?: import("../types").MarketCollateral | undefined;
108
+ vsui?: import("../types").MarketCollateral | undefined;
109
+ sca?: import("../types").MarketCollateral | undefined;
110
+ }>;
111
+ /**
112
+ * Get market collateral
113
+ *
114
+ * @param collateralCoinName - Specific support collateral coin name.
115
+ * @param indexer - Whether to use indexer.
116
+ * @return Market collateral data.
117
+ */
118
+ getMarketCollateral(collateralCoinName: SupportCollateralCoins, indexer?: boolean): Promise<import("../types").MarketCollateral | undefined>;
119
+ /**
120
+ * Get obligations data.
121
+ *
122
+ * @param ownerAddress - The owner address.
123
+ * @return Obligations data.
124
+ */
125
+ getObligations(ownerAddress?: string): Promise<import("../types").Obligation[]>;
126
+ /**
127
+ * Query obligation data.
128
+ *
129
+ * @param obligationId - The obligation id.
130
+ * @return Obligation data.
131
+ */
132
+ queryObligation(obligationId: string): Promise<import("../types").ObligationQueryInterface | undefined>;
133
+ /**
134
+ * Get all asset coin amounts.
135
+ *
136
+ * @param assetCoinNames - Specific an array of support asset coin name.
137
+ * @param ownerAddress - The owner address.
138
+ * @return All coin amounts.
139
+ */
140
+ getCoinAmounts(assetCoinNames?: SupportAssetCoins[], ownerAddress?: string): Promise<import("../types").OptionalKeys<Record<SupportAssetCoins, number>>>;
141
+ /**
142
+ * Get asset coin amount.
143
+ *
144
+ * @param assetCoinName - Specific support asset coin name.
145
+ * @param ownerAddress - The owner address.
146
+ * @return Coin amount.
147
+ */
148
+ getCoinAmount(assetCoinName: SupportAssetCoins, ownerAddress?: string): Promise<number>;
149
+ /**
150
+ * Get all market coin amounts.
151
+ *
152
+ * @param coinNames - Specific an array of support market coin name.
153
+ * @param ownerAddress - The owner address.
154
+ * @return All market market coin amounts.
155
+ */
156
+ getMarketCoinAmounts(marketCoinNames?: SupportMarketCoins[], ownerAddress?: string): Promise<import("../types").OptionalKeys<Record<SupportMarketCoins, number>>>;
157
+ /**
158
+ * Get market coin amount.
159
+ *
160
+ * @param coinNames - Specific support market coin name.
161
+ * @param ownerAddress - The owner address.
162
+ * @return Market market coin amount.
163
+ */
164
+ getMarketCoinAmount(marketCoinName: SupportMarketCoins, ownerAddress?: string): Promise<number>;
165
+ /**
166
+ * Get price from pyth fee object.
167
+ *
168
+ * @param assetCoinName - Specific support asset coin name.
169
+ * @return Asset coin price.
170
+ */
171
+ getPriceFromPyth(assetCoinName: SupportAssetCoins): Promise<number>;
172
+ /**
173
+ * Get prices from pyth fee object.
174
+ *
175
+ * @param assetCoinNames - Array of supported asset coin names.
176
+ * @return Array of asset coin prices.
177
+ */
178
+ getPricesFromPyth(assetCoinNames: SupportAssetCoins[]): Promise<Record<SupportAssetCoins, number>>;
179
+ /**
180
+ * Get spools data.
181
+ *
182
+ * @param stakeMarketCoinNames - Specific an array of support stake market coin name.
183
+ * @param indexer - Whether to use indexer.
184
+ * @return Spools data.
185
+ */
186
+ getSpools(stakeMarketCoinNames?: SupportStakeMarketCoins[], indexer?: boolean, args?: {
187
+ marketPools?: MarketPools;
188
+ coinPrices?: CoinPrices;
189
+ }): Promise<{
190
+ susdc?: import("../types").Spool | undefined;
191
+ sweth?: import("../types").Spool | undefined;
192
+ swusdc?: import("../types").Spool | undefined;
193
+ swusdt?: import("../types").Spool | undefined;
194
+ ssui?: import("../types").Spool | undefined;
195
+ scetus?: import("../types").Spool | undefined;
196
+ safsui?: import("../types").Spool | undefined;
197
+ shasui?: import("../types").Spool | undefined;
198
+ svsui?: import("../types").Spool | undefined;
199
+ }>;
200
+ /**
201
+ * Get spool data.
202
+ *
203
+ * @param stakeMarketCoinName - Specific support stake market coin name.
204
+ * @param indexer - Whether to use indexer.
205
+ * @return Spool data.
206
+ */
207
+ getSpool(stakeMarketCoinName: SupportStakeMarketCoins, indexer?: boolean, args?: {
208
+ marketPool?: MarketPool;
209
+ coinPrices?: CoinPrices;
210
+ }): Promise<import("../types").Spool | undefined>;
211
+ /**
212
+ * Get stake accounts data for all stake pools (spools).
213
+ *
214
+ * @param ownerAddress - The owner address.
215
+ * @return All Stake accounts data.
216
+ */
217
+ getAllStakeAccounts(ownerAddress?: string): Promise<import("../types").StakeAccounts>;
218
+ /**
219
+ * Get stake accounts data for specific stake pool (spool).
220
+ *
221
+ * @param stakeMarketCoinName - Specific support stake market coin name.
222
+ * @param ownerAddress - The owner address.
223
+ * @return Stake accounts data.
224
+ */
225
+ getStakeAccounts(stakeMarketCoinName: SupportStakeMarketCoins, ownerAddress?: string): Promise<import("../types").StakeAccount[]>;
226
+ /**
227
+ * Get stake pools (spools) data.
228
+ *
229
+ * @description
230
+ * For backward compatible, it is recommended to use `getSpools` method
231
+ * to get all spools data.
232
+ *
233
+ * @param stakeMarketCoinNames - Specific an array of support stake market coin name.
234
+ * @return Stake pools data.
235
+ */
236
+ getStakePools(stakeMarketCoinNames?: SupportStakeMarketCoins[]): Promise<{
237
+ susdc?: import("../types").StakePool | undefined;
238
+ sweth?: import("../types").StakePool | undefined;
239
+ swusdc?: import("../types").StakePool | undefined;
240
+ swusdt?: import("../types").StakePool | undefined;
241
+ ssui?: import("../types").StakePool | undefined;
242
+ scetus?: import("../types").StakePool | undefined;
243
+ safsui?: import("../types").StakePool | undefined;
244
+ shasui?: import("../types").StakePool | undefined;
245
+ svsui?: import("../types").StakePool | undefined;
246
+ }>;
247
+ /**
248
+ * Get stake pool (spool) data.
249
+ *
250
+ * @description
251
+ * For backward compatible, it is recommended to use `getSpool` method
252
+ * to get all spool data.
253
+ *
254
+ * @param stakeMarketCoinName - Specific support stake market coin name.
255
+ * @return Stake pool data.
256
+ */
257
+ getStakePool(stakeMarketCoinName: SupportStakeMarketCoins): Promise<import("../types").StakePool | undefined>;
258
+ /**
259
+ * Get stake reward pools data.
260
+ *
261
+ * @description
262
+ * For backward compatible, it is recommended to use `getSpools` method
263
+ * to get all spools data.
264
+ *
265
+ * @param stakeMarketCoinNames - Specific an array of stake market coin name.
266
+ * @return Stake reward pools data.
267
+ */
268
+ getStakeRewardPools(stakeMarketCoinNames?: SupportStakeMarketCoins[]): Promise<{
269
+ susdc?: import("../types").StakeRewardPool | undefined;
270
+ sweth?: import("../types").StakeRewardPool | undefined;
271
+ swusdc?: import("../types").StakeRewardPool | undefined;
272
+ swusdt?: import("../types").StakeRewardPool | undefined;
273
+ ssui?: import("../types").StakeRewardPool | undefined;
274
+ scetus?: import("../types").StakeRewardPool | undefined;
275
+ safsui?: import("../types").StakeRewardPool | undefined;
276
+ shasui?: import("../types").StakeRewardPool | undefined;
277
+ svsui?: import("../types").StakeRewardPool | undefined;
278
+ }>;
279
+ /**
280
+ * Get stake reward pool data.
281
+ *
282
+ * @description
283
+ * For backward compatible, it is recommended to use `getSpool` method
284
+ * to get spool data.
285
+ *
286
+ * @param marketCoinName - Specific support stake market coin name.
287
+ * @return Stake reward pool data.
288
+ */
289
+ getStakeRewardPool(stakeMarketCoinName: SupportStakeMarketCoins): Promise<import("../types").StakeRewardPool | undefined>;
290
+ /**
291
+ * Get borrow incentive pools data.
292
+ *
293
+ * @param coinNames - Specific an array of support borrow incentive coin name.
294
+ * @param indexer - Whether to use indexer.
295
+ * @return Borrow incentive pools data.
296
+ */
297
+ getBorrowIncentivePools(coinNames?: SupportBorrowIncentiveCoins[], indexer?: boolean, args?: {
298
+ coinPrices: CoinPrices;
299
+ }): Promise<{
300
+ usdc?: import("../types").BorrowIncentivePool | undefined;
301
+ sbeth?: import("../types").BorrowIncentivePool | undefined;
302
+ weth?: import("../types").BorrowIncentivePool | undefined;
303
+ wusdc?: import("../types").BorrowIncentivePool | undefined;
304
+ wusdt?: import("../types").BorrowIncentivePool | undefined;
305
+ sui?: import("../types").BorrowIncentivePool | undefined;
306
+ afsui?: import("../types").BorrowIncentivePool | undefined;
307
+ hasui?: import("../types").BorrowIncentivePool | undefined;
308
+ vsui?: import("../types").BorrowIncentivePool | undefined;
309
+ sca?: import("../types").BorrowIncentivePool | undefined;
310
+ }>;
311
+ /**
312
+ * Get borrow incentive accounts data.
313
+ *
314
+ * @param coinNames - Specific support borrow incentive coin name.
315
+ * @param ownerAddress - The owner address.
316
+ * @return Borrow incentive accounts data.
317
+ */
318
+ getBorrowIncentiveAccounts(obligationId: string, coinNames?: SupportBorrowIncentiveCoins[]): Promise<{
319
+ usdc?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
320
+ sbeth?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
321
+ weth?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
322
+ wusdc?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
323
+ wusdt?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
324
+ sui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
325
+ afsui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
326
+ hasui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
327
+ vsui?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
328
+ sca?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
329
+ }>;
330
+ /**
331
+ * Get user lending and spool infomation for specific pools.
332
+ *
333
+ * @param poolCoinNames - Specific an array of support pool coin name.
334
+ * @param ownerAddress - The owner address.
335
+ * @param indexer - Whether to use indexer.
336
+ * @return All lending and spool infomation.
337
+ */
338
+ getLendings(poolCoinNames?: SupportPoolCoins[], ownerAddress?: string, indexer?: boolean): Promise<{
339
+ usdc?: import("../types").Lending | undefined;
340
+ sbeth?: import("../types").Lending | undefined;
341
+ weth?: import("../types").Lending | undefined;
342
+ wbtc?: import("../types").Lending | undefined;
343
+ wusdc?: import("../types").Lending | undefined;
344
+ wusdt?: import("../types").Lending | undefined;
345
+ sui?: import("../types").Lending | undefined;
346
+ wapt?: import("../types").Lending | undefined;
347
+ wsol?: import("../types").Lending | undefined;
348
+ cetus?: import("../types").Lending | undefined;
349
+ afsui?: import("../types").Lending | undefined;
350
+ hasui?: import("../types").Lending | undefined;
351
+ vsui?: import("../types").Lending | undefined;
352
+ sca?: import("../types").Lending | undefined;
353
+ }>;
354
+ /**
355
+ * Get user lending and spool information for specific pool.
356
+ *
357
+ * @param poolCoinName - Specific support pool coin name.
358
+ * @param ownerAddress - The owner address.
359
+ * @param indexer - Whether to use indexer.
360
+ * @return Lending pool data.
361
+ */
362
+ getLending(poolCoinName: SupportPoolCoins, ownerAddress?: string, indexer?: boolean): Promise<import("../types").Lending>;
363
+ /**
364
+ * Get user all obligation accounts information.
365
+ *
366
+ * @description
367
+ * All collateral and borrowing information in all obligation accounts owned by the user.
368
+ *
369
+ * @param ownerAddress - The owner address.
370
+ * @param indexer - Whether to use indexer.
371
+ * @return All obligation accounts information.
372
+ */
373
+ getObligationAccounts(ownerAddress?: string, indexer?: boolean): Promise<{
374
+ [x: string]: import("../types").ObligationAccount | undefined;
375
+ }>;
376
+ /**
377
+ * Get obligation account information for specific id.
378
+ *
379
+ * @description
380
+ * borrowing and obligation information for specific pool.
381
+ *
382
+ * @param obligationId - The obligation id.
383
+ * @param ownerAddress - The owner address.
384
+ * @param indexer - Whether to use indexer.
385
+ * @return Borrowing and collateral information.
386
+ */
387
+ getObligationAccount(obligationId: string, ownerAddress?: string, indexer?: boolean): Promise<import("../types").ObligationAccount>;
388
+ /**
389
+ * Get total value locked.
390
+ *
391
+ * @param indexer - Whether to use indexer.
392
+ * @description
393
+ * Include total supplied value and total borrowed value.
394
+ *
395
+ * @return Total value locked.
396
+ */
397
+ getTvl(indexer?: boolean): Promise<import("../types").TotalValueLocked>;
398
+ /**
399
+ * Get veSca data.
400
+ * @param veScaKey
401
+ * @returns veSca
402
+ */
403
+ getVeSca(veScaKey: string | SuiObjectData): Promise<import("../types").Vesca | undefined>;
404
+ /**
405
+ * Get all veSca from walletAdddress
406
+ * @param walletAddress
407
+ * @returns array of veSca
408
+ */
409
+ getVeScas({ walletAddress, excludeEmpty, }?: {
410
+ walletAddress?: string;
411
+ excludeEmpty?: boolean;
412
+ }): Promise<import("../types").Vesca[]>;
413
+ /**
414
+ * Get total vesca treasury with movecall
415
+ * @returns Promise<string | undefined>
416
+ */
417
+ getVeScaTreasuryInfo(): Promise<import("../types").VeScaTreasuryInfo | null>;
418
+ /**
419
+ * Return binded referrer veScaKeyId of referee walletAddress if exist
420
+ * @param walletAddress
421
+ * @returns veScaKeyId
422
+ */
423
+ getVeScaKeyIdFromReferralBindings(walletAddress?: string): Promise<string | null>;
424
+ /**
425
+ * Get binded obligationId from a veScaKey if it exists.
426
+ * @param veScaKey
427
+ * @returns obligationId
428
+ */
429
+ getBindedObligationId(veScaKey: string): Promise<string | null>;
430
+ /**
431
+ * Get binded veSCA key from a obligationId if it exists.
432
+ * @param obligationId
433
+ * @returns veScaKey
434
+ */
435
+ getBindedVeScaKey(obligationId: string): Promise<string | null>;
436
+ /**
437
+ * Get user's veSCA loyalty program informations
438
+ * @param walletAddress
439
+ * @returns Loyalty program information
440
+ */
441
+ getLoyaltyProgramInfos(veScaKey?: string | SuiObjectData): Promise<import("../types").LoyaltyProgramInfo | null>;
442
+ /**
443
+ * Get total supply of sCoin
444
+ * @param sCoinName - Supported sCoin name
445
+ * @returns Total Supply
446
+ */
447
+ getSCoinTotalSupply(sCoinName: SupportSCoin): Promise<number>;
448
+ /**
449
+ * Get all sCoin amounts.
450
+ *
451
+ * @param sCoinNames - Specific an array of support sCoin name.
452
+ * @param ownerAddress - The owner address.
453
+ * @return All market sCoin amounts.
454
+ */
455
+ getSCoinAmounts(sCoinNames?: SupportSCoin[], ownerAddress?: string): Promise<import("../types").OptionalKeys<Record<"susdc" | "ssbeth" | "sweth" | "swbtc" | "swusdc" | "swusdt" | "ssui" | "swsol" | "scetus" | "safsui" | "shasui" | "svsui" | "ssca", number>>>;
456
+ /**
457
+ * Get sCoin amount.
458
+ *
459
+ * @param coinNames - Specific support sCoin name.
460
+ * @param ownerAddress - The owner address.
461
+ * @return sCoin amount.
462
+ */
463
+ getSCoinAmount(sCoinName: SupportSCoin | SupportMarketCoins, ownerAddress?: string): Promise<number>;
464
+ /**
465
+ * Get swap rate from sCoin A to sCoin B
466
+ * @param assetCoinNames
467
+ * @returns
468
+ */
469
+ getSCoinSwapRate(fromSCoin: SupportSCoin, toSCoin: SupportSCoin): Promise<number>;
470
+ getFlashLoanFees(assetCoinNames?: SupportAssetCoins[]): Promise<Record<"usdc" | "sbeth" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca", number>>;
471
+ /**
472
+ * Get supply limit of supply pool
473
+ */
474
+ getPoolSupplyLimit(poolName: SupportPoolCoins): Promise<string | null>;
475
+ /**
476
+ * Get list of isolated assets
477
+ */
478
+ getIsolatedAssets(): Promise<string[]>;
479
+ /**
480
+ * Check if asset is an isolated asset
481
+ */
482
+ isIsolatedAsset(assetCoinName: SupportAssetCoins): Promise<boolean>;
483
+ /**
484
+ * Get pool coin price from indexer
485
+ * @param coinName
486
+ * @returns price data
487
+ */
488
+ getCoinPriceByIndexer(poolName: SupportPoolCoins): Promise<number>;
489
+ }