@pendle/sdk-boros 1.0.10 → 1.0.11-strategies
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/backend/secrettune/BorosCoreSDK.d.ts +376 -3
- package/dist/backend/secrettune/BorosCoreSDK.js +170 -1
- package/dist/backend/secrettune/BorosCoreSDK.js.map +1 -1
- package/dist/backend/secrettune/BorosSendTxsBotSDK.d.ts +18 -11
- package/dist/backend/secrettune/BorosSendTxsBotSDK.js +3 -11
- package/dist/backend/secrettune/BorosSendTxsBotSDK.js.map +1 -1
- package/dist/entities/Calculator/exchangeFees.d.ts +47 -0
- package/dist/entities/Calculator/exchangeFees.js +93 -0
- package/dist/entities/Calculator/exchangeFees.js.map +1 -0
- package/dist/entities/Calculator/index.d.ts +6 -0
- package/dist/entities/Calculator/index.js +23 -0
- package/dist/entities/Calculator/index.js.map +1 -0
- package/dist/entities/Calculator/marginCalculator.d.ts +10 -0
- package/dist/entities/Calculator/marginCalculator.js +67 -0
- package/dist/entities/Calculator/marginCalculator.js.map +1 -0
- package/dist/entities/Calculator/strategyApr.d.ts +30 -0
- package/dist/entities/Calculator/strategyApr.js +94 -0
- package/dist/entities/Calculator/strategyApr.js.map +1 -0
- package/dist/entities/Calculator/strategyExecution.d.ts +28 -0
- package/dist/entities/Calculator/strategyExecution.js +130 -0
- package/dist/entities/Calculator/strategyExecution.js.map +1 -0
- package/dist/entities/Calculator/strategyFinder.d.ts +11 -0
- package/dist/entities/Calculator/strategyFinder.js +162 -0
- package/dist/entities/Calculator/strategyFinder.js.map +1 -0
- package/dist/entities/Calculator/types.d.ts +84 -0
- package/dist/entities/Calculator/types.js +3 -0
- package/dist/entities/Calculator/types.js.map +1 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/index.js +1 -0
- package/dist/entities/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/backend/secrettune/PendleCoreSDK.d.ts +0 -2220
- package/dist/backend/secrettune/PendleCoreSDK.js +0 -939
- package/dist/backend/secrettune/PendleCoreSDK.js.map +0 -1
|
@@ -1,2220 +0,0 @@
|
|
|
1
|
-
export declare enum PendleAssetType {
|
|
2
|
-
PENDLE_LP = "PENDLE_LP",
|
|
3
|
-
SY = "SY",
|
|
4
|
-
PT = "PT",
|
|
5
|
-
YT = "YT"
|
|
6
|
-
}
|
|
7
|
-
export interface OrderFilledStatusResponse {
|
|
8
|
-
netInputFromMaker: string;
|
|
9
|
-
netOutputToMaker: string;
|
|
10
|
-
feeAmount: string;
|
|
11
|
-
notionalVolume: string;
|
|
12
|
-
}
|
|
13
|
-
export interface OrderStateResponse {
|
|
14
|
-
orderType: string;
|
|
15
|
-
exchangeRate: string;
|
|
16
|
-
psAmountToTaker: string;
|
|
17
|
-
psAmountFromTaker: string;
|
|
18
|
-
ysAmountToTaker: string;
|
|
19
|
-
ysAmountFromTaker: string;
|
|
20
|
-
fee: string;
|
|
21
|
-
psRate: number;
|
|
22
|
-
ysRate: number;
|
|
23
|
-
netToMakerIfFullyFilled: string;
|
|
24
|
-
netFromMakerIfFullyFilled: string;
|
|
25
|
-
notionalVolume: string;
|
|
26
|
-
matchableAmount: string;
|
|
27
|
-
notionalVolumeUSD: number;
|
|
28
|
-
}
|
|
29
|
-
export interface LimitOrderResponse {
|
|
30
|
-
id: string;
|
|
31
|
-
signature: string;
|
|
32
|
-
chainId: number;
|
|
33
|
-
salt: string;
|
|
34
|
-
expiry: string;
|
|
35
|
-
nonce: string;
|
|
36
|
-
type: 0 | 1 | 2 | 3;
|
|
37
|
-
token: string;
|
|
38
|
-
yt: string;
|
|
39
|
-
maker: string;
|
|
40
|
-
receiver: string;
|
|
41
|
-
makingAmount: string;
|
|
42
|
-
currentMakingAmount: string;
|
|
43
|
-
lnImpliedRate: string;
|
|
44
|
-
failSafeRate: string;
|
|
45
|
-
permit: string;
|
|
46
|
-
orderFilledStatus: OrderFilledStatusResponse;
|
|
47
|
-
isActive: boolean;
|
|
48
|
-
isCanceled: boolean;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
orderState?: OrderStateResponse;
|
|
51
|
-
fullyExecutedTimestamp?: string;
|
|
52
|
-
canceledTimestamp?: string;
|
|
53
|
-
latestEventTimestamp?: string;
|
|
54
|
-
sy: string;
|
|
55
|
-
pt: string;
|
|
56
|
-
makerBalance: string;
|
|
57
|
-
failedMintSy: boolean;
|
|
58
|
-
failedMintSyReason: string;
|
|
59
|
-
orderBookBalance: string;
|
|
60
|
-
makingToken: string;
|
|
61
|
-
takingToken: string;
|
|
62
|
-
status: 'FILLABLE' | 'PARTIAL_FILLABLE' | 'FAILED_TRANSFER_TOKEN' | 'EMPTY_MAKER_BALANCE' | 'CANCELLED' | 'FULLY_FILLED' | 'EXPIRED';
|
|
63
|
-
}
|
|
64
|
-
export interface LimitOrdersResponse {
|
|
65
|
-
total: number;
|
|
66
|
-
limit: number;
|
|
67
|
-
skip: number;
|
|
68
|
-
results: LimitOrderResponse[];
|
|
69
|
-
}
|
|
70
|
-
export interface LimitOrdersV2Response {
|
|
71
|
-
total: number;
|
|
72
|
-
limit: number;
|
|
73
|
-
results: LimitOrderResponse[];
|
|
74
|
-
resumeToken: string;
|
|
75
|
-
}
|
|
76
|
-
export interface MakerResponse {
|
|
77
|
-
maker: string;
|
|
78
|
-
sumOrderSizeUsd: number;
|
|
79
|
-
numOrders: number;
|
|
80
|
-
}
|
|
81
|
-
export interface MakersResponse {
|
|
82
|
-
result: MakerResponse[];
|
|
83
|
-
}
|
|
84
|
-
export interface GenerateLimitOrderDataDto {
|
|
85
|
-
chainId: number;
|
|
86
|
-
YT: string;
|
|
87
|
-
orderType: 0 | 1 | 2 | 3;
|
|
88
|
-
token: string;
|
|
89
|
-
maker: string;
|
|
90
|
-
makingAmount: string;
|
|
91
|
-
impliedApy: number;
|
|
92
|
-
expiry: string;
|
|
93
|
-
}
|
|
94
|
-
export interface GenerateLimitOrderDataResponse {
|
|
95
|
-
chainId: number;
|
|
96
|
-
YT: string;
|
|
97
|
-
salt: string;
|
|
98
|
-
expiry: string;
|
|
99
|
-
nonce: string;
|
|
100
|
-
token: string;
|
|
101
|
-
orderType: 0 | 1 | 2 | 3;
|
|
102
|
-
failSafeRate: string;
|
|
103
|
-
maker: string;
|
|
104
|
-
receiver: string;
|
|
105
|
-
makingAmount: string;
|
|
106
|
-
permit: string;
|
|
107
|
-
lnImpliedRate: number;
|
|
108
|
-
}
|
|
109
|
-
export interface HttpErrorResponse {
|
|
110
|
-
message: string;
|
|
111
|
-
statusCode: number;
|
|
112
|
-
error: string;
|
|
113
|
-
}
|
|
114
|
-
export interface GenerateScaledOrderDataDto {
|
|
115
|
-
chainId: number;
|
|
116
|
-
YT: string;
|
|
117
|
-
orderType: 0 | 1 | 2 | 3;
|
|
118
|
-
token: string;
|
|
119
|
-
maker: string;
|
|
120
|
-
makingAmount: string;
|
|
121
|
-
lowerImpliedApy: number;
|
|
122
|
-
upperImpliedApy: number;
|
|
123
|
-
orderCount: number;
|
|
124
|
-
sizeDistribution: 'flat' | 'ascending' | 'descending';
|
|
125
|
-
expiry: string;
|
|
126
|
-
}
|
|
127
|
-
export interface GenerateScaledOrderResponse {
|
|
128
|
-
orders: GenerateLimitOrderDataResponse[];
|
|
129
|
-
}
|
|
130
|
-
export interface CreateLimitOrderDto {
|
|
131
|
-
chainId: number;
|
|
132
|
-
signature: string;
|
|
133
|
-
salt: string;
|
|
134
|
-
expiry: string;
|
|
135
|
-
nonce: string;
|
|
136
|
-
type: 0 | 1 | 2 | 3;
|
|
137
|
-
token: string;
|
|
138
|
-
yt: string;
|
|
139
|
-
maker: string;
|
|
140
|
-
receiver: string;
|
|
141
|
-
makingAmount: string;
|
|
142
|
-
lnImpliedRate: string;
|
|
143
|
-
failSafeRate: string;
|
|
144
|
-
permit: string;
|
|
145
|
-
}
|
|
146
|
-
export interface LimitOrderTakerResponse {
|
|
147
|
-
order: LimitOrderResponse;
|
|
148
|
-
makingAmount: string;
|
|
149
|
-
netFromTaker: string;
|
|
150
|
-
netToTaker: string;
|
|
151
|
-
}
|
|
152
|
-
export interface LimitOrdersTakerResponse {
|
|
153
|
-
total: number;
|
|
154
|
-
limit: number;
|
|
155
|
-
skip: number;
|
|
156
|
-
results: LimitOrderTakerResponse[];
|
|
157
|
-
}
|
|
158
|
-
export interface GetAssetPricesCrossChainResponse {
|
|
159
|
-
prices: Record<string, number>;
|
|
160
|
-
total: number;
|
|
161
|
-
skip: number;
|
|
162
|
-
limit?: number | null;
|
|
163
|
-
}
|
|
164
|
-
export interface PriceOHLCVCSVResponse {
|
|
165
|
-
total: number;
|
|
166
|
-
currency: string;
|
|
167
|
-
timeFrame: string;
|
|
168
|
-
timestamp_start: number;
|
|
169
|
-
timestamp_end: number;
|
|
170
|
-
results: string;
|
|
171
|
-
}
|
|
172
|
-
export interface AssetPricesResponse {
|
|
173
|
-
total: number;
|
|
174
|
-
addresses: string[];
|
|
175
|
-
pricesUsd: (number | null)[];
|
|
176
|
-
}
|
|
177
|
-
export interface NotionalVolumeResponse {
|
|
178
|
-
timestamps: string[];
|
|
179
|
-
volumes: number[];
|
|
180
|
-
}
|
|
181
|
-
export interface OHLCVDataPoint {
|
|
182
|
-
time: string;
|
|
183
|
-
open: number;
|
|
184
|
-
high: number;
|
|
185
|
-
low: number;
|
|
186
|
-
close: number;
|
|
187
|
-
volume: number;
|
|
188
|
-
}
|
|
189
|
-
export interface PriceOHLCVResponse {
|
|
190
|
-
limit: number;
|
|
191
|
-
total: number;
|
|
192
|
-
currency: string;
|
|
193
|
-
timeFrame: string;
|
|
194
|
-
timestamp_start?: string;
|
|
195
|
-
timestamp_end?: string;
|
|
196
|
-
results: OHLCVDataPoint[];
|
|
197
|
-
}
|
|
198
|
-
export interface AssetDataCrossChain {
|
|
199
|
-
name: string;
|
|
200
|
-
decimals: number;
|
|
201
|
-
address: string;
|
|
202
|
-
symbol: string;
|
|
203
|
-
tags: string[];
|
|
204
|
-
expiry: string;
|
|
205
|
-
proIcon: string;
|
|
206
|
-
chainId: number;
|
|
207
|
-
}
|
|
208
|
-
export interface GetAllAssetsCrossChainResponse {
|
|
209
|
-
assets: AssetDataCrossChain[];
|
|
210
|
-
}
|
|
211
|
-
export interface AssetData {
|
|
212
|
-
name: string;
|
|
213
|
-
decimals: number;
|
|
214
|
-
address: string;
|
|
215
|
-
symbol: string;
|
|
216
|
-
tags: string[];
|
|
217
|
-
expiry: string;
|
|
218
|
-
proIcon: string;
|
|
219
|
-
}
|
|
220
|
-
export interface GetAssetsResponse {
|
|
221
|
-
assets: AssetData[];
|
|
222
|
-
}
|
|
223
|
-
export interface GetAssetPricesResponse {
|
|
224
|
-
prices: Record<string, number>;
|
|
225
|
-
total: number;
|
|
226
|
-
skip: number;
|
|
227
|
-
limit?: number | null;
|
|
228
|
-
}
|
|
229
|
-
export interface ValuationResponse {
|
|
230
|
-
usd?: number | null;
|
|
231
|
-
acc?: number | null;
|
|
232
|
-
}
|
|
233
|
-
export interface AssetResponse {
|
|
234
|
-
id: string;
|
|
235
|
-
chainId: number;
|
|
236
|
-
address: string;
|
|
237
|
-
symbol: string;
|
|
238
|
-
decimals: number;
|
|
239
|
-
expiry?: string | null;
|
|
240
|
-
accentColor?: string | null;
|
|
241
|
-
price?: ValuationResponse | null;
|
|
242
|
-
priceUpdatedAt?: string | null;
|
|
243
|
-
name: string;
|
|
244
|
-
baseType: string;
|
|
245
|
-
types: string[];
|
|
246
|
-
protocol?: string | null;
|
|
247
|
-
underlyingPool?: string | null;
|
|
248
|
-
proSymbol?: string | null;
|
|
249
|
-
proIcon?: string | null;
|
|
250
|
-
zappable?: boolean | null;
|
|
251
|
-
simpleName: string;
|
|
252
|
-
simpleSymbol: string;
|
|
253
|
-
simpleIcon: string;
|
|
254
|
-
proName: string;
|
|
255
|
-
}
|
|
256
|
-
export interface AssetsResponse {
|
|
257
|
-
total: number;
|
|
258
|
-
limit: number;
|
|
259
|
-
skip: number;
|
|
260
|
-
results: AssetResponse[];
|
|
261
|
-
}
|
|
262
|
-
export interface AssetCSVResponse {
|
|
263
|
-
results: string;
|
|
264
|
-
}
|
|
265
|
-
export interface VersionResponse {
|
|
266
|
-
major: number;
|
|
267
|
-
minor: number;
|
|
268
|
-
patch: number;
|
|
269
|
-
}
|
|
270
|
-
export interface TokenInfoResponse {
|
|
271
|
-
chainId: number;
|
|
272
|
-
address: string;
|
|
273
|
-
decimals: number;
|
|
274
|
-
name: string;
|
|
275
|
-
symbol: string;
|
|
276
|
-
logoURI: string;
|
|
277
|
-
tags: string[];
|
|
278
|
-
extensions: object;
|
|
279
|
-
}
|
|
280
|
-
export interface UniswapTokenListResponse {
|
|
281
|
-
name: string;
|
|
282
|
-
timestamp: string;
|
|
283
|
-
version: VersionResponse;
|
|
284
|
-
tokens: TokenInfoResponse[];
|
|
285
|
-
tokenMap: Record<string, TokenInfoResponse>;
|
|
286
|
-
keywords: string[];
|
|
287
|
-
logoURI: string;
|
|
288
|
-
tags: Record<string, TagDefinitionResponse>;
|
|
289
|
-
}
|
|
290
|
-
export interface SyBasicResponse {
|
|
291
|
-
id: string;
|
|
292
|
-
chainId: number;
|
|
293
|
-
address: string;
|
|
294
|
-
symbol: string;
|
|
295
|
-
decimals: number;
|
|
296
|
-
expiry?: string | null;
|
|
297
|
-
accentColor?: string | null;
|
|
298
|
-
price?: ValuationResponse | null;
|
|
299
|
-
priceUpdatedAt?: string | null;
|
|
300
|
-
name: string;
|
|
301
|
-
baseType: string;
|
|
302
|
-
types: string[];
|
|
303
|
-
protocol?: string | null;
|
|
304
|
-
underlyingPool?: string | null;
|
|
305
|
-
proSymbol?: string | null;
|
|
306
|
-
proIcon?: string | null;
|
|
307
|
-
zappable?: boolean | null;
|
|
308
|
-
simpleName: string;
|
|
309
|
-
simpleSymbol: string;
|
|
310
|
-
simpleIcon: string;
|
|
311
|
-
proName: string;
|
|
312
|
-
accountingAssetType: number;
|
|
313
|
-
accountingAsset: string;
|
|
314
|
-
underlyingAsset: string;
|
|
315
|
-
rewardTokens: string[];
|
|
316
|
-
inputTokens: string[];
|
|
317
|
-
outputTokens: string[];
|
|
318
|
-
}
|
|
319
|
-
export interface WhitelistedSysResponse {
|
|
320
|
-
results: SyBasicResponse[];
|
|
321
|
-
}
|
|
322
|
-
export interface SyResponse {
|
|
323
|
-
id: string;
|
|
324
|
-
chainId: number;
|
|
325
|
-
address: string;
|
|
326
|
-
symbol: string;
|
|
327
|
-
decimals: number;
|
|
328
|
-
expiry?: string | null;
|
|
329
|
-
accentColor?: string | null;
|
|
330
|
-
price?: ValuationResponse | null;
|
|
331
|
-
priceUpdatedAt?: string | null;
|
|
332
|
-
name: string;
|
|
333
|
-
baseType: string;
|
|
334
|
-
types: string[];
|
|
335
|
-
protocol?: string | null;
|
|
336
|
-
underlyingPool?: string | null;
|
|
337
|
-
proSymbol?: string | null;
|
|
338
|
-
proIcon?: string | null;
|
|
339
|
-
zappable?: boolean | null;
|
|
340
|
-
simpleName: string;
|
|
341
|
-
simpleSymbol: string;
|
|
342
|
-
simpleIcon: string;
|
|
343
|
-
proName: string;
|
|
344
|
-
accountingAssetType: number;
|
|
345
|
-
accountingAsset: AssetResponse;
|
|
346
|
-
underlyingAsset: AssetResponse;
|
|
347
|
-
rewardTokens: AssetResponse[];
|
|
348
|
-
inputTokens: AssetResponse[];
|
|
349
|
-
outputTokens: AssetResponse[];
|
|
350
|
-
}
|
|
351
|
-
export interface PtYtImpliedYieldChangeAmountResponse {
|
|
352
|
-
ptMovementUpUsd?: number;
|
|
353
|
-
ptMovementDownUsd?: number;
|
|
354
|
-
ytMovementUpUsd?: number;
|
|
355
|
-
ytMovementDownUsd?: number;
|
|
356
|
-
}
|
|
357
|
-
export interface YieldRangeResponse {
|
|
358
|
-
min: number;
|
|
359
|
-
max: number;
|
|
360
|
-
}
|
|
361
|
-
export interface MarketDetailsV2Entity {
|
|
362
|
-
liquidity: number;
|
|
363
|
-
totalTvl: number;
|
|
364
|
-
tradingVolume: number;
|
|
365
|
-
underlyingApy: number;
|
|
366
|
-
swapFeeApy: number;
|
|
367
|
-
pendleApy: number;
|
|
368
|
-
impliedApy: number;
|
|
369
|
-
feeRate: number;
|
|
370
|
-
movement10Percent?: PtYtImpliedYieldChangeAmountResponse;
|
|
371
|
-
yieldRange: YieldRangeResponse;
|
|
372
|
-
aggregatedApy: number;
|
|
373
|
-
maxBoostedApy: number;
|
|
374
|
-
totalPt: number;
|
|
375
|
-
totalSy: number;
|
|
376
|
-
totalSupply: number;
|
|
377
|
-
totalActiveSupply: number;
|
|
378
|
-
}
|
|
379
|
-
export interface MarketCrossChainData {
|
|
380
|
-
name: string;
|
|
381
|
-
address: string;
|
|
382
|
-
expiry: string;
|
|
383
|
-
pt: string;
|
|
384
|
-
yt: string;
|
|
385
|
-
sy: string;
|
|
386
|
-
underlyingAsset: string;
|
|
387
|
-
details: MarketDetailsV2Entity;
|
|
388
|
-
isNew: boolean;
|
|
389
|
-
isPrime: boolean;
|
|
390
|
-
timestamp: string;
|
|
391
|
-
lpWrapper?: string;
|
|
392
|
-
categoryIds?: string[];
|
|
393
|
-
chainId: number;
|
|
394
|
-
}
|
|
395
|
-
export interface GetMarketsCrossChainResponse {
|
|
396
|
-
markets: MarketCrossChainData[];
|
|
397
|
-
}
|
|
398
|
-
export interface PointMetadataEntity {
|
|
399
|
-
key: string;
|
|
400
|
-
type: 'multiplier' | 'points-per-asset';
|
|
401
|
-
pendleAsset: 'basic' | 'lp';
|
|
402
|
-
externalDashboardURL: string;
|
|
403
|
-
value: number;
|
|
404
|
-
perDollarLp: boolean;
|
|
405
|
-
}
|
|
406
|
-
export interface MarketPointsEntity {
|
|
407
|
-
id: string;
|
|
408
|
-
points: PointMetadataEntity[];
|
|
409
|
-
}
|
|
410
|
-
export interface GetPointsMarketsResponse {
|
|
411
|
-
markets: MarketPointsEntity[];
|
|
412
|
-
}
|
|
413
|
-
export interface MarketDetails {
|
|
414
|
-
liquidity: number;
|
|
415
|
-
pendleApy: number;
|
|
416
|
-
impliedApy: number;
|
|
417
|
-
feeRate: number;
|
|
418
|
-
movement10Percent?: PtYtImpliedYieldChangeAmountResponse;
|
|
419
|
-
yieldRange: YieldRangeResponse;
|
|
420
|
-
aggregatedApy: number;
|
|
421
|
-
maxBoostedApy: number;
|
|
422
|
-
}
|
|
423
|
-
export interface MarketData {
|
|
424
|
-
name: string;
|
|
425
|
-
address: string;
|
|
426
|
-
expiry: string;
|
|
427
|
-
pt: string;
|
|
428
|
-
yt: string;
|
|
429
|
-
sy: string;
|
|
430
|
-
underlyingAsset: string;
|
|
431
|
-
details: MarketDetails;
|
|
432
|
-
isNew: boolean;
|
|
433
|
-
isPrime: boolean;
|
|
434
|
-
timestamp: string;
|
|
435
|
-
lpWrapper?: string;
|
|
436
|
-
categoryIds?: string[];
|
|
437
|
-
}
|
|
438
|
-
export interface GetActiveMarketsResponse {
|
|
439
|
-
markets: MarketData[];
|
|
440
|
-
}
|
|
441
|
-
export interface GetInactiveMarketsResponse {
|
|
442
|
-
markets: MarketData[];
|
|
443
|
-
}
|
|
444
|
-
export interface MarketApyHistoriesCSVResponse {
|
|
445
|
-
total: number;
|
|
446
|
-
timestamp_start: number;
|
|
447
|
-
timestamp_end: number;
|
|
448
|
-
results: string;
|
|
449
|
-
}
|
|
450
|
-
export interface MarketExtendedInfoResponse {
|
|
451
|
-
floatingPt: number;
|
|
452
|
-
floatingSy: number;
|
|
453
|
-
sySupplyCap?: number | null;
|
|
454
|
-
syCurrentSupply?: number | null;
|
|
455
|
-
pyUnit: string;
|
|
456
|
-
ptEqualsPyUnit: boolean;
|
|
457
|
-
underlyingAssetWorthMore?: string;
|
|
458
|
-
nativeWithdrawalURL?: string;
|
|
459
|
-
nativeDepositURL?: string;
|
|
460
|
-
defaultMigratePool?: string;
|
|
461
|
-
movement10Percent: PtYtImpliedYieldChangeAmountResponse;
|
|
462
|
-
feeRate?: number;
|
|
463
|
-
yieldRange?: YieldRangeResponse;
|
|
464
|
-
}
|
|
465
|
-
export interface MarketBasicMetadataResponse {
|
|
466
|
-
id: string;
|
|
467
|
-
chainId: number;
|
|
468
|
-
address: string;
|
|
469
|
-
symbol: string;
|
|
470
|
-
expiry: string;
|
|
471
|
-
pt: AssetResponse;
|
|
472
|
-
yt: AssetResponse;
|
|
473
|
-
sy: AssetResponse;
|
|
474
|
-
lp: AssetResponse;
|
|
475
|
-
accountingAsset: AssetResponse;
|
|
476
|
-
underlyingAsset: AssetResponse;
|
|
477
|
-
basePricingAsset?: AssetResponse | null;
|
|
478
|
-
protocol?: string | null;
|
|
479
|
-
underlyingPool?: string | null;
|
|
480
|
-
proSymbol?: string | null;
|
|
481
|
-
proIcon?: string | null;
|
|
482
|
-
assetRepresentation: string;
|
|
483
|
-
isWhitelistedPro: boolean;
|
|
484
|
-
isWhitelistedSimple: boolean;
|
|
485
|
-
votable: boolean;
|
|
486
|
-
isActive: boolean;
|
|
487
|
-
isWhitelistedLimitOrder: boolean;
|
|
488
|
-
accentColor?: string | null;
|
|
489
|
-
totalPt?: number | null;
|
|
490
|
-
totalSy?: number | null;
|
|
491
|
-
totalLp?: number | null;
|
|
492
|
-
liquidity?: ValuationResponse | null;
|
|
493
|
-
tradingVolume?: ValuationResponse | null;
|
|
494
|
-
underlyingInterestApy?: number | null;
|
|
495
|
-
underlyingRewardApy?: number | null;
|
|
496
|
-
underlyingApy?: number | null;
|
|
497
|
-
impliedApy?: number | null;
|
|
498
|
-
ytFloatingApy?: number | null;
|
|
499
|
-
ptDiscount?: number | null;
|
|
500
|
-
swapFeeApy?: number | null;
|
|
501
|
-
pendleApy?: number | null;
|
|
502
|
-
arbApy?: number | null;
|
|
503
|
-
aggregatedApy?: number | null;
|
|
504
|
-
maxBoostedApy?: number | null;
|
|
505
|
-
lpRewardApy?: number | null;
|
|
506
|
-
voterApy?: number | null;
|
|
507
|
-
ytRoi?: number | null;
|
|
508
|
-
ptRoi?: number | null;
|
|
509
|
-
dataUpdatedAt?: string | null;
|
|
510
|
-
categoryIds: string[];
|
|
511
|
-
timestamp: string;
|
|
512
|
-
whitelistedProAt?: string | null;
|
|
513
|
-
scalarRoot: number;
|
|
514
|
-
initialAnchor: number;
|
|
515
|
-
extendedInfo: MarketExtendedInfoResponse;
|
|
516
|
-
isFeatured?: boolean | null;
|
|
517
|
-
isPopular?: boolean | null;
|
|
518
|
-
tvlThresholdTimestamp?: string | null;
|
|
519
|
-
isNew: boolean;
|
|
520
|
-
name: string;
|
|
521
|
-
simpleName: string;
|
|
522
|
-
simpleSymbol: string;
|
|
523
|
-
simpleIcon: string;
|
|
524
|
-
proName: string;
|
|
525
|
-
farmName: string;
|
|
526
|
-
farmSymbol: string;
|
|
527
|
-
farmSimpleName: string;
|
|
528
|
-
farmSimpleSymbol: string;
|
|
529
|
-
farmSimpleIcon: string;
|
|
530
|
-
farmProName: string;
|
|
531
|
-
farmProSymbol: string;
|
|
532
|
-
farmProIcon: string;
|
|
533
|
-
}
|
|
534
|
-
export interface MarketsResponse {
|
|
535
|
-
total: number;
|
|
536
|
-
limit: number;
|
|
537
|
-
skip: number;
|
|
538
|
-
results: MarketBasicMetadataResponse[];
|
|
539
|
-
}
|
|
540
|
-
export interface CurrenyAmountEntity {
|
|
541
|
-
currency: string;
|
|
542
|
-
amount?: number | null;
|
|
543
|
-
}
|
|
544
|
-
export interface FeaturedMarketEntity {
|
|
545
|
-
marketAddress: string;
|
|
546
|
-
icon: string;
|
|
547
|
-
tokenSymbol: string;
|
|
548
|
-
symbol: string;
|
|
549
|
-
accentColor: string;
|
|
550
|
-
discountedPrice: CurrenyAmountEntity;
|
|
551
|
-
fixedApy: number;
|
|
552
|
-
currentPrice: CurrenyAmountEntity;
|
|
553
|
-
}
|
|
554
|
-
export interface FeaturedMarketsResponseEntity {
|
|
555
|
-
total: number;
|
|
556
|
-
limit: number;
|
|
557
|
-
skip: number;
|
|
558
|
-
results: FeaturedMarketEntity[];
|
|
559
|
-
}
|
|
560
|
-
export interface AssetBasicResponse {
|
|
561
|
-
id: string;
|
|
562
|
-
chainId: number;
|
|
563
|
-
address: string;
|
|
564
|
-
symbol: string;
|
|
565
|
-
decimals: number;
|
|
566
|
-
expiry?: string | null;
|
|
567
|
-
accentColor?: string | null;
|
|
568
|
-
price?: ValuationResponse | null;
|
|
569
|
-
priceUpdatedAt?: string | null;
|
|
570
|
-
name: string;
|
|
571
|
-
}
|
|
572
|
-
export interface ApyBreakdownResponse {
|
|
573
|
-
asset: AssetBasicResponse;
|
|
574
|
-
absoluteApy: number;
|
|
575
|
-
relativeApy: number;
|
|
576
|
-
isExternalReward?: boolean | null;
|
|
577
|
-
}
|
|
578
|
-
export interface EstimatedDailyPoolRewardResponse {
|
|
579
|
-
asset: AssetBasicResponse;
|
|
580
|
-
amount: number;
|
|
581
|
-
}
|
|
582
|
-
export interface MarketResponse {
|
|
583
|
-
id: string;
|
|
584
|
-
chainId: number;
|
|
585
|
-
address: string;
|
|
586
|
-
symbol: string;
|
|
587
|
-
expiry: string;
|
|
588
|
-
pt: AssetResponse;
|
|
589
|
-
yt: AssetResponse;
|
|
590
|
-
sy: AssetResponse;
|
|
591
|
-
lp: AssetResponse;
|
|
592
|
-
accountingAsset: AssetResponse;
|
|
593
|
-
underlyingAsset: AssetResponse;
|
|
594
|
-
basePricingAsset?: AssetResponse | null;
|
|
595
|
-
rewardTokens: AssetResponse[];
|
|
596
|
-
inputTokens: AssetResponse[];
|
|
597
|
-
outputTokens: AssetResponse[];
|
|
598
|
-
protocol?: string | null;
|
|
599
|
-
underlyingPool?: string | null;
|
|
600
|
-
proSymbol?: string | null;
|
|
601
|
-
proIcon?: string | null;
|
|
602
|
-
assetRepresentation: string;
|
|
603
|
-
isWhitelistedPro: boolean;
|
|
604
|
-
isWhitelistedSimple: boolean;
|
|
605
|
-
votable: boolean;
|
|
606
|
-
isActive: boolean;
|
|
607
|
-
isWhitelistedLimitOrder: boolean;
|
|
608
|
-
accentColor?: string | null;
|
|
609
|
-
totalPt?: number | null;
|
|
610
|
-
totalSy?: number | null;
|
|
611
|
-
totalLp?: number | null;
|
|
612
|
-
totalActiveSupply?: number | null;
|
|
613
|
-
liquidity?: ValuationResponse | null;
|
|
614
|
-
tradingVolume?: ValuationResponse | null;
|
|
615
|
-
underlyingInterestApy?: number | null;
|
|
616
|
-
underlyingRewardApy?: number | null;
|
|
617
|
-
underlyingRewardApyBreakdown?: ApyBreakdownResponse[] | null;
|
|
618
|
-
underlyingApy?: number | null;
|
|
619
|
-
impliedApy?: number | null;
|
|
620
|
-
ytFloatingApy?: number | null;
|
|
621
|
-
ptDiscount?: number | null;
|
|
622
|
-
swapFeeApy?: number | null;
|
|
623
|
-
pendleApy?: number | null;
|
|
624
|
-
arbApy?: number | null;
|
|
625
|
-
aggregatedApy?: number | null;
|
|
626
|
-
maxBoostedApy?: number | null;
|
|
627
|
-
lpRewardApy?: number | null;
|
|
628
|
-
voterApy?: number | null;
|
|
629
|
-
ytRoi?: number | null;
|
|
630
|
-
ptRoi?: number | null;
|
|
631
|
-
estimatedDailyPoolRewards?: EstimatedDailyPoolRewardResponse[] | null;
|
|
632
|
-
dataUpdatedAt?: string | null;
|
|
633
|
-
liquidityChange24h?: number | null;
|
|
634
|
-
tradingVolumeChange24h?: number | null;
|
|
635
|
-
underlyingInterestApyChange24h?: number | null;
|
|
636
|
-
underlyingRewardApyChange24h?: number | null;
|
|
637
|
-
underlyingApyChange24h?: number | null;
|
|
638
|
-
impliedApyChange24h?: number | null;
|
|
639
|
-
ytFloatingApyChange24h?: number | null;
|
|
640
|
-
ptDiscountChange24h?: number | null;
|
|
641
|
-
swapFeeApyChange24h?: number | null;
|
|
642
|
-
pendleApyChange24h?: number | null;
|
|
643
|
-
aggregatedApyChange24h?: number | null;
|
|
644
|
-
lpRewardApyChange24h?: number | null;
|
|
645
|
-
voterApyChange24h?: number | null;
|
|
646
|
-
categoryIds: string[];
|
|
647
|
-
timestamp: string;
|
|
648
|
-
scalarRoot: number;
|
|
649
|
-
initialAnchor: number;
|
|
650
|
-
extendedInfo: MarketExtendedInfoResponse;
|
|
651
|
-
isFeatured?: boolean | null;
|
|
652
|
-
isPopular?: boolean | null;
|
|
653
|
-
tvlThresholdTimestamp?: string | null;
|
|
654
|
-
whitelistedProAt?: string | null;
|
|
655
|
-
isNew: boolean;
|
|
656
|
-
name: string;
|
|
657
|
-
simpleName: string;
|
|
658
|
-
simpleSymbol: string;
|
|
659
|
-
simpleIcon: string;
|
|
660
|
-
proName: string;
|
|
661
|
-
farmName: string;
|
|
662
|
-
farmSymbol: string;
|
|
663
|
-
farmSimpleName: string;
|
|
664
|
-
farmSimpleSymbol: string;
|
|
665
|
-
farmSimpleIcon: string;
|
|
666
|
-
farmProName: string;
|
|
667
|
-
farmProSymbol: string;
|
|
668
|
-
farmProIcon: string;
|
|
669
|
-
}
|
|
670
|
-
export interface MarketDataResponse {
|
|
671
|
-
timestamp: string;
|
|
672
|
-
liquidity: ValuationResponse;
|
|
673
|
-
tradingVolume: ValuationResponse;
|
|
674
|
-
totalTvl?: ValuationResponse | null;
|
|
675
|
-
underlyingInterestApy: number;
|
|
676
|
-
underlyingRewardApy: number;
|
|
677
|
-
underlyingApy: number;
|
|
678
|
-
impliedApy: number;
|
|
679
|
-
ytFloatingApy: number;
|
|
680
|
-
swapFeeApy: number;
|
|
681
|
-
voterApy: number;
|
|
682
|
-
ptDiscount: number;
|
|
683
|
-
pendleApy: number;
|
|
684
|
-
arbApy?: number;
|
|
685
|
-
lpRewardApy: number;
|
|
686
|
-
aggregatedApy: number;
|
|
687
|
-
maxBoostedApy: number;
|
|
688
|
-
estimatedDailyPoolRewards: EstimatedDailyPoolRewardResponse[];
|
|
689
|
-
totalPt: number;
|
|
690
|
-
totalSy: number;
|
|
691
|
-
totalLp: number;
|
|
692
|
-
totalActiveSupply: number;
|
|
693
|
-
assetPriceUsd: number;
|
|
694
|
-
}
|
|
695
|
-
export interface MarketHistoryResponse {
|
|
696
|
-
timestamp: string;
|
|
697
|
-
liquidity: ValuationResponse;
|
|
698
|
-
tradingVolume: ValuationResponse;
|
|
699
|
-
totalTvl?: ValuationResponse | null;
|
|
700
|
-
underlyingInterestApy: number;
|
|
701
|
-
underlyingRewardApy: number;
|
|
702
|
-
underlyingApy: number;
|
|
703
|
-
impliedApy: number;
|
|
704
|
-
ytFloatingApy: number;
|
|
705
|
-
ptDiscount: number;
|
|
706
|
-
swapFeeApy: number;
|
|
707
|
-
pendleApy: number;
|
|
708
|
-
aggregatedApy: number;
|
|
709
|
-
lpRewardApy: number;
|
|
710
|
-
voterApy: number;
|
|
711
|
-
totalPt: number;
|
|
712
|
-
totalSy: number;
|
|
713
|
-
totalLp: number;
|
|
714
|
-
totalActiveSupply: number;
|
|
715
|
-
}
|
|
716
|
-
export interface MarketHistoriesResponse {
|
|
717
|
-
total: number;
|
|
718
|
-
limit?: number;
|
|
719
|
-
timestamp_start: string;
|
|
720
|
-
timestamp_end?: string;
|
|
721
|
-
results: MarketHistoryResponse[];
|
|
722
|
-
}
|
|
723
|
-
export interface MarketApyHistoryResponse {
|
|
724
|
-
timestamp: string;
|
|
725
|
-
underlyingApy: number;
|
|
726
|
-
impliedApy: number;
|
|
727
|
-
}
|
|
728
|
-
export interface MarketApyHistoriesResponse {
|
|
729
|
-
total: number;
|
|
730
|
-
limit: number;
|
|
731
|
-
timestamp_start: string;
|
|
732
|
-
timestamp_end: string;
|
|
733
|
-
results: MarketApyHistoryResponse[];
|
|
734
|
-
}
|
|
735
|
-
export interface GetMarketStatHistoryCSVResponse {
|
|
736
|
-
total: number;
|
|
737
|
-
timestamp_start: number;
|
|
738
|
-
timestamp_end: number;
|
|
739
|
-
results: string;
|
|
740
|
-
}
|
|
741
|
-
export interface MarketHistoricalDataPoint {
|
|
742
|
-
timestamp: string;
|
|
743
|
-
maxApy?: number;
|
|
744
|
-
baseApy?: number;
|
|
745
|
-
underlyingApy?: number;
|
|
746
|
-
impliedApy?: number;
|
|
747
|
-
tvl?: number;
|
|
748
|
-
totalTvl?: number;
|
|
749
|
-
underlyingInterestApy?: number;
|
|
750
|
-
underlyingRewardApy?: number;
|
|
751
|
-
ytFloatingApy?: number;
|
|
752
|
-
swapFeeApy?: number;
|
|
753
|
-
voterApr?: number;
|
|
754
|
-
pendleApy?: number;
|
|
755
|
-
lpRewardApy?: number;
|
|
756
|
-
totalPt?: number;
|
|
757
|
-
totalSy?: number;
|
|
758
|
-
totalSupply?: number;
|
|
759
|
-
ptPrice?: number;
|
|
760
|
-
ytPrice?: number;
|
|
761
|
-
syPrice?: number;
|
|
762
|
-
lpPrice?: number;
|
|
763
|
-
lastEpochVotes?: number;
|
|
764
|
-
tradingVolume?: number;
|
|
765
|
-
explicitSwapFee?: number;
|
|
766
|
-
implicitSwapFee?: number;
|
|
767
|
-
limitOrderFee?: number;
|
|
768
|
-
}
|
|
769
|
-
export interface MarketHistoricalDataResponse {
|
|
770
|
-
total: number;
|
|
771
|
-
timestamp_start: string;
|
|
772
|
-
timestamp_end: string;
|
|
773
|
-
results: MarketHistoricalDataPoint[];
|
|
774
|
-
}
|
|
775
|
-
export interface MarketHistoricalDataTableResponse {
|
|
776
|
-
total: number;
|
|
777
|
-
timestamp_start: number;
|
|
778
|
-
timestamp_end: number;
|
|
779
|
-
timestamp: number[];
|
|
780
|
-
maxApy?: number[];
|
|
781
|
-
baseApy?: number[];
|
|
782
|
-
underlyingApy?: number[];
|
|
783
|
-
impliedApy?: number[];
|
|
784
|
-
tvl?: number[];
|
|
785
|
-
totalTvl?: number[];
|
|
786
|
-
underlyingInterestApy?: number[];
|
|
787
|
-
underlyingRewardApy?: number[];
|
|
788
|
-
ytFloatingApy?: number[];
|
|
789
|
-
swapFeeApy?: number[];
|
|
790
|
-
voterApr?: number[];
|
|
791
|
-
pendleApy?: number[];
|
|
792
|
-
lpRewardApy?: number[];
|
|
793
|
-
totalPt?: number[];
|
|
794
|
-
totalSy?: number[];
|
|
795
|
-
totalSupply?: number[];
|
|
796
|
-
ptPrice?: number[];
|
|
797
|
-
ytPrice?: number[];
|
|
798
|
-
syPrice?: number[];
|
|
799
|
-
lpPrice?: number[];
|
|
800
|
-
lastEpochVotes?: number[];
|
|
801
|
-
explicitSwapFee?: number[];
|
|
802
|
-
implicitSwapFee?: number[];
|
|
803
|
-
limitOrderFee?: number[];
|
|
804
|
-
}
|
|
805
|
-
export interface MarketImpliedApyDataPoint {
|
|
806
|
-
timestamp: number;
|
|
807
|
-
impliedApy: number;
|
|
808
|
-
}
|
|
809
|
-
export interface MarketImpliedApyResponseEntity {
|
|
810
|
-
total: number;
|
|
811
|
-
timestamp_start?: number;
|
|
812
|
-
timestamp_end?: number;
|
|
813
|
-
results: MarketImpliedApyDataPoint[];
|
|
814
|
-
}
|
|
815
|
-
export interface MarketAssetsResponse {
|
|
816
|
-
pt: AssetResponse;
|
|
817
|
-
yt: AssetResponse;
|
|
818
|
-
sy: AssetResponse;
|
|
819
|
-
lp: AssetResponse;
|
|
820
|
-
accountingAsset: AssetResponse;
|
|
821
|
-
underlyingAsset: AssetResponse;
|
|
822
|
-
basePricingAsset: AssetResponse;
|
|
823
|
-
rewardTokens: AssetResponse[];
|
|
824
|
-
inputTokens: AssetResponse[];
|
|
825
|
-
outputTokens: AssetResponse[];
|
|
826
|
-
}
|
|
827
|
-
export interface SwapAmountToChangeApyResponse {
|
|
828
|
-
amount: string;
|
|
829
|
-
}
|
|
830
|
-
export interface MarketCategoryResponse {
|
|
831
|
-
id: string;
|
|
832
|
-
name: string;
|
|
833
|
-
}
|
|
834
|
-
export interface GetAllMarketCategoriesResponse {
|
|
835
|
-
results: MarketCategoryResponse[];
|
|
836
|
-
}
|
|
837
|
-
export interface UtilizedProtocolResponse {
|
|
838
|
-
id: string;
|
|
839
|
-
url: string;
|
|
840
|
-
name: string;
|
|
841
|
-
imageUrl: string;
|
|
842
|
-
}
|
|
843
|
-
export interface GetAllUtilizedProtocolsResponse {
|
|
844
|
-
results: UtilizedProtocolResponse[];
|
|
845
|
-
}
|
|
846
|
-
export interface VoteV2Response {
|
|
847
|
-
votes: number;
|
|
848
|
-
percentage: number;
|
|
849
|
-
}
|
|
850
|
-
export interface PoolV2Response {
|
|
851
|
-
id: string;
|
|
852
|
-
symbol: string;
|
|
853
|
-
expiry: string;
|
|
854
|
-
currentVoterApr?: number;
|
|
855
|
-
lastEpochVoterApr?: number;
|
|
856
|
-
currentSwapFee?: number;
|
|
857
|
-
lastEpochSwapFee?: number;
|
|
858
|
-
projectedVoterApr?: number;
|
|
859
|
-
projectedVotes?: VoteV2Response | null;
|
|
860
|
-
currentVotes?: VoteV2Response | null;
|
|
861
|
-
expectedCap?: string;
|
|
862
|
-
currentCap?: string;
|
|
863
|
-
}
|
|
864
|
-
export interface VePendleDataResponse {
|
|
865
|
-
avgLockDuration: number;
|
|
866
|
-
totalPendleLocked: number;
|
|
867
|
-
vePendleSupply: number;
|
|
868
|
-
totalProjectedVotes: number;
|
|
869
|
-
totalCurrentVotes: number;
|
|
870
|
-
pools: PoolV2Response[];
|
|
871
|
-
}
|
|
872
|
-
export interface PendleTokenSupplyResponse {
|
|
873
|
-
timestamp: string;
|
|
874
|
-
totalPendleCirculating: number;
|
|
875
|
-
totalPendleLocked: number;
|
|
876
|
-
totalPendleSupply: number;
|
|
877
|
-
}
|
|
878
|
-
export interface GetMonthlyRevenueResponse {
|
|
879
|
-
revenues: number[];
|
|
880
|
-
epochStartDates: string[];
|
|
881
|
-
accumulatedRevenue: number;
|
|
882
|
-
}
|
|
883
|
-
export interface VePendleExtendedDataResponse {
|
|
884
|
-
avgLockDuration: number;
|
|
885
|
-
totalPendleLocked: number;
|
|
886
|
-
vePendleSupply: number;
|
|
887
|
-
totalProjectedVotes: number;
|
|
888
|
-
totalCurrentVotes: number;
|
|
889
|
-
pools: PoolV2Response[];
|
|
890
|
-
tokenSupply?: PendleTokenSupplyResponse;
|
|
891
|
-
monthlyRevenue?: GetMonthlyRevenueResponse;
|
|
892
|
-
}
|
|
893
|
-
export interface PoolResponse {
|
|
894
|
-
id: string;
|
|
895
|
-
chainId: number;
|
|
896
|
-
address: string;
|
|
897
|
-
symbol: string;
|
|
898
|
-
expiry: string;
|
|
899
|
-
protocol?: string | null;
|
|
900
|
-
underlyingPool?: string | null;
|
|
901
|
-
voterApy: number;
|
|
902
|
-
accentColor?: string | null;
|
|
903
|
-
name: string;
|
|
904
|
-
farmSimpleName: string;
|
|
905
|
-
farmSimpleIcon: string;
|
|
906
|
-
farmProName: string;
|
|
907
|
-
farmProIcon: string;
|
|
908
|
-
}
|
|
909
|
-
export interface VoteResponse {
|
|
910
|
-
pool: PoolResponse;
|
|
911
|
-
votes: number;
|
|
912
|
-
percentage: number;
|
|
913
|
-
}
|
|
914
|
-
export interface VoteSnapshotResponse {
|
|
915
|
-
votes: VoteResponse[];
|
|
916
|
-
totalPools: number;
|
|
917
|
-
totalVotes: number;
|
|
918
|
-
epoch: string;
|
|
919
|
-
}
|
|
920
|
-
export interface PoolVoterApyResponse {
|
|
921
|
-
pool: PoolResponse;
|
|
922
|
-
voterApy: number;
|
|
923
|
-
}
|
|
924
|
-
export interface PoolVoterApysResponse {
|
|
925
|
-
results: PoolVoterApyResponse[];
|
|
926
|
-
totalPools: number;
|
|
927
|
-
timestamp: string;
|
|
928
|
-
}
|
|
929
|
-
export interface PoolVoterAprSwapFeeResponse {
|
|
930
|
-
pool: PoolResponse;
|
|
931
|
-
currentVoterApr: number;
|
|
932
|
-
lastEpochVoterApr: number;
|
|
933
|
-
currentSwapFee: number;
|
|
934
|
-
lastEpochSwapFee: number;
|
|
935
|
-
projectedVoterApr: number;
|
|
936
|
-
}
|
|
937
|
-
export interface PoolVoterAprsSwapFeesResponse {
|
|
938
|
-
results: PoolVoterAprSwapFeeResponse[];
|
|
939
|
-
totalPools: number;
|
|
940
|
-
totalFee: number;
|
|
941
|
-
timestamp: string;
|
|
942
|
-
}
|
|
943
|
-
export interface VoterApyChartDataPoint {
|
|
944
|
-
time: string;
|
|
945
|
-
voterApy: number;
|
|
946
|
-
}
|
|
947
|
-
export interface PoolVoterApyChart {
|
|
948
|
-
values: VoterApyChartDataPoint[];
|
|
949
|
-
pool: PoolResponse;
|
|
950
|
-
}
|
|
951
|
-
export interface VoterApyChartResponse {
|
|
952
|
-
results: PoolVoterApyChart[];
|
|
953
|
-
}
|
|
954
|
-
export interface VePendleApyChartDataPoint {
|
|
955
|
-
time: string;
|
|
956
|
-
vePendleBaseApy: number;
|
|
957
|
-
vePendleMaxApy: number;
|
|
958
|
-
}
|
|
959
|
-
export interface VePendleApyChartResponse {
|
|
960
|
-
results: VePendleApyChartDataPoint[];
|
|
961
|
-
timeFrame: string;
|
|
962
|
-
timestamp_gte: string;
|
|
963
|
-
timestamp_lte: string;
|
|
964
|
-
}
|
|
965
|
-
export interface VoteData {
|
|
966
|
-
txHash: string;
|
|
967
|
-
timestamp: string;
|
|
968
|
-
poolChainId: number;
|
|
969
|
-
poolAddress: string;
|
|
970
|
-
user: string;
|
|
971
|
-
weight: number;
|
|
972
|
-
vePendleVote: number;
|
|
973
|
-
}
|
|
974
|
-
export interface GetHistoricalVotesResponse {
|
|
975
|
-
data: VoteData[];
|
|
976
|
-
}
|
|
977
|
-
export interface MarketMetaData {
|
|
978
|
-
id: string;
|
|
979
|
-
}
|
|
980
|
-
export interface TotalFeesWithTimestamp {
|
|
981
|
-
time: string;
|
|
982
|
-
totalFees: number;
|
|
983
|
-
}
|
|
984
|
-
export interface MarketTotalFeesData {
|
|
985
|
-
market: MarketMetaData;
|
|
986
|
-
values: TotalFeesWithTimestamp[];
|
|
987
|
-
}
|
|
988
|
-
export interface AllMarketTotalFeesResponse {
|
|
989
|
-
results: MarketTotalFeesData[];
|
|
990
|
-
}
|
|
991
|
-
export interface GetOngoingVotesResponse {
|
|
992
|
-
votes: VoteResponse[];
|
|
993
|
-
totalPools: number;
|
|
994
|
-
totalVotes: number;
|
|
995
|
-
}
|
|
996
|
-
export interface GetVePendleCapResponse {
|
|
997
|
-
fee: object;
|
|
998
|
-
currentCap: object;
|
|
999
|
-
expectedCap: object;
|
|
1000
|
-
}
|
|
1001
|
-
export interface MetadataQueryDto {
|
|
1002
|
-
keys: string[];
|
|
1003
|
-
}
|
|
1004
|
-
export interface MetadataResponse {
|
|
1005
|
-
results: object;
|
|
1006
|
-
total: number;
|
|
1007
|
-
}
|
|
1008
|
-
export interface MetadataValuesResponse {
|
|
1009
|
-
values: (object | null)[];
|
|
1010
|
-
}
|
|
1011
|
-
export interface GetMetadataByTemplateResponse {
|
|
1012
|
-
keys: string[];
|
|
1013
|
-
values: object[];
|
|
1014
|
-
}
|
|
1015
|
-
export interface MarketTokensResponse {
|
|
1016
|
-
tokensMintSy: string[];
|
|
1017
|
-
tokensRedeemSy: string[];
|
|
1018
|
-
tokensIn: string[];
|
|
1019
|
-
tokensOut: string[];
|
|
1020
|
-
}
|
|
1021
|
-
export interface SupportedAggregator {
|
|
1022
|
-
name: string;
|
|
1023
|
-
computingUnit: number;
|
|
1024
|
-
}
|
|
1025
|
-
export interface SupportedAggregatorsResponse {
|
|
1026
|
-
aggregators: SupportedAggregator[];
|
|
1027
|
-
}
|
|
1028
|
-
export interface GetSpotSwappingPriceResponse {
|
|
1029
|
-
underlyingToken: string;
|
|
1030
|
-
underlyingTokenToPtRate: object | null;
|
|
1031
|
-
ptToUnderlyingTokenRate: object | null;
|
|
1032
|
-
underlyingTokenToYtRate: object | null;
|
|
1033
|
-
ytToUnderlyingTokenRate: object | null;
|
|
1034
|
-
impliedApy: number;
|
|
1035
|
-
}
|
|
1036
|
-
export interface TransactionDto {
|
|
1037
|
-
data: string;
|
|
1038
|
-
to: string;
|
|
1039
|
-
from: string;
|
|
1040
|
-
value: string;
|
|
1041
|
-
}
|
|
1042
|
-
export interface TokenAmountResponse {
|
|
1043
|
-
token: string;
|
|
1044
|
-
amount: string;
|
|
1045
|
-
}
|
|
1046
|
-
export interface ImpliedApy {
|
|
1047
|
-
before: number;
|
|
1048
|
-
after: number;
|
|
1049
|
-
}
|
|
1050
|
-
export interface SwapData {
|
|
1051
|
-
amountOut: string;
|
|
1052
|
-
priceImpact: number;
|
|
1053
|
-
impliedApy?: ImpliedApy;
|
|
1054
|
-
effectiveApy?: number;
|
|
1055
|
-
}
|
|
1056
|
-
export interface SwapResponse {
|
|
1057
|
-
method: string;
|
|
1058
|
-
contractCallParamsName: string[];
|
|
1059
|
-
contractCallParams: any[][];
|
|
1060
|
-
tx: TransactionDto;
|
|
1061
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1062
|
-
data: SwapData;
|
|
1063
|
-
}
|
|
1064
|
-
export interface AddLiquidityData {
|
|
1065
|
-
amountLpOut: string;
|
|
1066
|
-
amountYtOut: string;
|
|
1067
|
-
priceImpact: number;
|
|
1068
|
-
impliedApy?: ImpliedApy;
|
|
1069
|
-
}
|
|
1070
|
-
export interface AddLiquidityResponse {
|
|
1071
|
-
method: string;
|
|
1072
|
-
contractCallParamsName: string[];
|
|
1073
|
-
contractCallParams: any[][];
|
|
1074
|
-
tx: TransactionDto;
|
|
1075
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1076
|
-
data: AddLiquidityData;
|
|
1077
|
-
}
|
|
1078
|
-
export interface RemoveLiquidityData {
|
|
1079
|
-
amountOut: string;
|
|
1080
|
-
priceImpact: number;
|
|
1081
|
-
impliedApy?: ImpliedApy;
|
|
1082
|
-
}
|
|
1083
|
-
export interface RemoveLiquidityResponse {
|
|
1084
|
-
method: string;
|
|
1085
|
-
contractCallParamsName: string[];
|
|
1086
|
-
contractCallParams: any[][];
|
|
1087
|
-
tx: TransactionDto;
|
|
1088
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1089
|
-
data: RemoveLiquidityData;
|
|
1090
|
-
}
|
|
1091
|
-
export interface MintData {
|
|
1092
|
-
amountOut: string;
|
|
1093
|
-
priceImpact: number;
|
|
1094
|
-
}
|
|
1095
|
-
export interface MintResponse {
|
|
1096
|
-
method: string;
|
|
1097
|
-
contractCallParamsName: string[];
|
|
1098
|
-
contractCallParams: any[][];
|
|
1099
|
-
tx: TransactionDto;
|
|
1100
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1101
|
-
data: MintData;
|
|
1102
|
-
}
|
|
1103
|
-
export interface RedeemData {
|
|
1104
|
-
amountOut: string;
|
|
1105
|
-
priceImpact: number;
|
|
1106
|
-
}
|
|
1107
|
-
export interface RedeemResponse {
|
|
1108
|
-
method: string;
|
|
1109
|
-
contractCallParamsName: string[];
|
|
1110
|
-
contractCallParams: any[][];
|
|
1111
|
-
tx: TransactionDto;
|
|
1112
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1113
|
-
data: RedeemData;
|
|
1114
|
-
}
|
|
1115
|
-
export interface MintSyData {
|
|
1116
|
-
amountOut: string;
|
|
1117
|
-
priceImpact: number;
|
|
1118
|
-
}
|
|
1119
|
-
export interface MintSyResponse {
|
|
1120
|
-
method: string;
|
|
1121
|
-
contractCallParamsName: string[];
|
|
1122
|
-
contractCallParams: any[][];
|
|
1123
|
-
tx: TransactionDto;
|
|
1124
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1125
|
-
data: MintSyData;
|
|
1126
|
-
}
|
|
1127
|
-
export interface RedeemSyData {
|
|
1128
|
-
amountOut: string;
|
|
1129
|
-
priceImpact: number;
|
|
1130
|
-
}
|
|
1131
|
-
export interface RedeemSyResponse {
|
|
1132
|
-
method: string;
|
|
1133
|
-
contractCallParamsName: string[];
|
|
1134
|
-
contractCallParams: any[][];
|
|
1135
|
-
tx: TransactionDto;
|
|
1136
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1137
|
-
data: RedeemSyData;
|
|
1138
|
-
}
|
|
1139
|
-
export interface TransferLiquidityData {
|
|
1140
|
-
amountLpOut: string;
|
|
1141
|
-
amountYtOut: string;
|
|
1142
|
-
priceImpact: number;
|
|
1143
|
-
}
|
|
1144
|
-
export interface ContractParamInfo {
|
|
1145
|
-
method: string;
|
|
1146
|
-
contractCallParamsName: string[];
|
|
1147
|
-
contractCallParams: any[][];
|
|
1148
|
-
}
|
|
1149
|
-
export interface ParamsBreakdown {
|
|
1150
|
-
selfCall1: ContractParamInfo;
|
|
1151
|
-
selfCall2?: ContractParamInfo;
|
|
1152
|
-
reflectCall: ContractParamInfo;
|
|
1153
|
-
}
|
|
1154
|
-
export interface TransferLiquidityResponse {
|
|
1155
|
-
method: string;
|
|
1156
|
-
contractCallParamsName: string[];
|
|
1157
|
-
contractCallParams: any[][];
|
|
1158
|
-
tx: TransactionDto;
|
|
1159
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1160
|
-
data: TransferLiquidityData;
|
|
1161
|
-
paramsBreakdown: ParamsBreakdown;
|
|
1162
|
-
}
|
|
1163
|
-
export interface RollOverPtData {
|
|
1164
|
-
amountPtOut: string;
|
|
1165
|
-
priceImpact: number;
|
|
1166
|
-
}
|
|
1167
|
-
export interface RollOverPtResponse {
|
|
1168
|
-
method: string;
|
|
1169
|
-
contractCallParamsName: string[];
|
|
1170
|
-
contractCallParams: any[][];
|
|
1171
|
-
tx: TransactionDto;
|
|
1172
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1173
|
-
data: RollOverPtData;
|
|
1174
|
-
paramsBreakdown: ParamsBreakdown;
|
|
1175
|
-
}
|
|
1176
|
-
export interface AddLiquidityDualData {
|
|
1177
|
-
amountOut: string;
|
|
1178
|
-
amountTokenUsed: string;
|
|
1179
|
-
amountPtUsed: string;
|
|
1180
|
-
priceImpact: number;
|
|
1181
|
-
}
|
|
1182
|
-
export interface AddLiquidityDualResponse {
|
|
1183
|
-
method: string;
|
|
1184
|
-
contractCallParamsName: string[];
|
|
1185
|
-
contractCallParams: any[][];
|
|
1186
|
-
tx: TransactionDto;
|
|
1187
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1188
|
-
data: AddLiquidityDualData;
|
|
1189
|
-
}
|
|
1190
|
-
export interface RemoveLiquidityDualData {
|
|
1191
|
-
amountTokenOut: string;
|
|
1192
|
-
amountPtOut: string;
|
|
1193
|
-
priceImpact: number;
|
|
1194
|
-
}
|
|
1195
|
-
export interface RemoveLiquidityDualResponse {
|
|
1196
|
-
method: string;
|
|
1197
|
-
contractCallParamsName: string[];
|
|
1198
|
-
contractCallParams: any[][];
|
|
1199
|
-
tx: TransactionDto;
|
|
1200
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1201
|
-
data: RemoveLiquidityDualData;
|
|
1202
|
-
}
|
|
1203
|
-
export interface SdkResponse {
|
|
1204
|
-
method: string;
|
|
1205
|
-
contractCallParamsName: string[];
|
|
1206
|
-
contractCallParams: any[][];
|
|
1207
|
-
tx: TransactionDto;
|
|
1208
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1209
|
-
}
|
|
1210
|
-
export interface PendleSwapInput {
|
|
1211
|
-
token: string;
|
|
1212
|
-
amount: string;
|
|
1213
|
-
}
|
|
1214
|
-
export interface PendleSwapDtoV2 {
|
|
1215
|
-
receiver: string;
|
|
1216
|
-
inputs: PendleSwapInput[];
|
|
1217
|
-
tokenOut: string;
|
|
1218
|
-
slippage: number;
|
|
1219
|
-
aggregators?: string;
|
|
1220
|
-
}
|
|
1221
|
-
export interface PendleSwapData {
|
|
1222
|
-
amountOut: string;
|
|
1223
|
-
priceImpact: number;
|
|
1224
|
-
}
|
|
1225
|
-
export interface PendleSwapResponse {
|
|
1226
|
-
method: string;
|
|
1227
|
-
contractCallParamsName: string[];
|
|
1228
|
-
contractCallParams: any[][];
|
|
1229
|
-
tx: TransactionDto;
|
|
1230
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1231
|
-
data: PendleSwapData;
|
|
1232
|
-
}
|
|
1233
|
-
export interface RedeemInterestsAndRewardsResponse {
|
|
1234
|
-
method: string;
|
|
1235
|
-
contractCallParamsName: string[];
|
|
1236
|
-
contractCallParams: any[][];
|
|
1237
|
-
tx: TransactionDto;
|
|
1238
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1239
|
-
}
|
|
1240
|
-
export interface ConvertData {
|
|
1241
|
-
aggregatorType: string;
|
|
1242
|
-
priceImpact: number;
|
|
1243
|
-
impliedApy?: ImpliedApy;
|
|
1244
|
-
effectiveApy?: number;
|
|
1245
|
-
paramsBreakdown?: ParamsBreakdown;
|
|
1246
|
-
}
|
|
1247
|
-
export interface ConvertResponse {
|
|
1248
|
-
contractParamInfo: ContractParamInfo;
|
|
1249
|
-
tx: TransactionDto;
|
|
1250
|
-
outputs: TokenAmountResponse[];
|
|
1251
|
-
data: ConvertData;
|
|
1252
|
-
}
|
|
1253
|
-
export interface MultiRouteConvertResponse {
|
|
1254
|
-
action: 'swap' | 'add-liquidity' | 'remove-liquidity' | 'exit-market' | 'transfer-liquidity' | 'roll-over-pt' | 'add-liquidity-dual' | 'remove-liquidity-dual' | 'mint-py' | 'redeem-py' | 'mint-sy' | 'redeem-sy' | 'pendle-swap' | 'convert-lp-to-pt';
|
|
1255
|
-
inputs: TokenAmountResponse[];
|
|
1256
|
-
requiredApprovals?: TokenAmountResponse[];
|
|
1257
|
-
routes: ConvertResponse[];
|
|
1258
|
-
}
|
|
1259
|
-
export interface SwapPtCrossChainData {
|
|
1260
|
-
netTokenOut: string;
|
|
1261
|
-
netPtIn: string;
|
|
1262
|
-
}
|
|
1263
|
-
export interface SwapPtCrossChainResponse {
|
|
1264
|
-
method: string;
|
|
1265
|
-
contractCallParamsName: string[];
|
|
1266
|
-
contractCallParams: any[][];
|
|
1267
|
-
tx: TransactionDto;
|
|
1268
|
-
tokenApprovals?: TokenAmountResponse[];
|
|
1269
|
-
data: SwapPtCrossChainData;
|
|
1270
|
-
}
|
|
1271
|
-
export interface PtCrossChainMetadataResponse {
|
|
1272
|
-
pairedTokensOut: string[];
|
|
1273
|
-
ammAddress?: string;
|
|
1274
|
-
}
|
|
1275
|
-
export interface MarketBasicResponse {
|
|
1276
|
-
id: string;
|
|
1277
|
-
chainId: number;
|
|
1278
|
-
address: string;
|
|
1279
|
-
symbol: string;
|
|
1280
|
-
expiry: string;
|
|
1281
|
-
name: string;
|
|
1282
|
-
}
|
|
1283
|
-
export interface AssetAmountResponse {
|
|
1284
|
-
asset: AssetResponse;
|
|
1285
|
-
amount: number;
|
|
1286
|
-
price: ValuationResponse;
|
|
1287
|
-
}
|
|
1288
|
-
export interface TransactionResponse {
|
|
1289
|
-
id: string;
|
|
1290
|
-
chainId: number;
|
|
1291
|
-
txHash: string;
|
|
1292
|
-
blockNumber: number;
|
|
1293
|
-
timestamp: string;
|
|
1294
|
-
action: string;
|
|
1295
|
-
origin: string;
|
|
1296
|
-
market: MarketBasicResponse;
|
|
1297
|
-
inputs: AssetAmountResponse[];
|
|
1298
|
-
outputs: AssetAmountResponse[];
|
|
1299
|
-
user: string;
|
|
1300
|
-
valuation: ValuationResponse;
|
|
1301
|
-
implicitSwapFeeSy: number;
|
|
1302
|
-
explicitSwapFeeSy: number;
|
|
1303
|
-
impliedApy: number;
|
|
1304
|
-
assetPrices: object;
|
|
1305
|
-
gasUsed: number;
|
|
1306
|
-
}
|
|
1307
|
-
export interface TransactionsResponse {
|
|
1308
|
-
total: number;
|
|
1309
|
-
limit: number;
|
|
1310
|
-
skip: number;
|
|
1311
|
-
results: TransactionResponse[];
|
|
1312
|
-
}
|
|
1313
|
-
export interface NotionalV5 {
|
|
1314
|
-
pt: number;
|
|
1315
|
-
}
|
|
1316
|
-
export interface TransactionV5Response {
|
|
1317
|
-
id: string;
|
|
1318
|
-
market: string;
|
|
1319
|
-
timestamp: string;
|
|
1320
|
-
chainId: number;
|
|
1321
|
-
txHash: string;
|
|
1322
|
-
value: number;
|
|
1323
|
-
type: string;
|
|
1324
|
-
action: string;
|
|
1325
|
-
txOrigin?: string;
|
|
1326
|
-
impliedApy: number;
|
|
1327
|
-
notional?: NotionalV5;
|
|
1328
|
-
}
|
|
1329
|
-
export interface TransactionsV5Response {
|
|
1330
|
-
total: number;
|
|
1331
|
-
limit: number;
|
|
1332
|
-
skip: number;
|
|
1333
|
-
results: TransactionV5Response[];
|
|
1334
|
-
}
|
|
1335
|
-
export interface TransactionsV4Response {
|
|
1336
|
-
total: number;
|
|
1337
|
-
limit: number;
|
|
1338
|
-
skip: number;
|
|
1339
|
-
results: string[];
|
|
1340
|
-
resumeToken?: string;
|
|
1341
|
-
}
|
|
1342
|
-
export interface TvlAndTradingVolumeResponseEntity {
|
|
1343
|
-
tvl: number;
|
|
1344
|
-
tradingVolume: number;
|
|
1345
|
-
}
|
|
1346
|
-
export interface GetDistinctUsersFromTokenEntity {
|
|
1347
|
-
users: string[];
|
|
1348
|
-
}
|
|
1349
|
-
export interface EulerUserResponse {
|
|
1350
|
-
user: string;
|
|
1351
|
-
subAccount: string;
|
|
1352
|
-
asset: string;
|
|
1353
|
-
}
|
|
1354
|
-
export interface MorphoUserResponse {
|
|
1355
|
-
user: string;
|
|
1356
|
-
marketId: string;
|
|
1357
|
-
}
|
|
1358
|
-
export interface SiloUserResponse {
|
|
1359
|
-
user: string;
|
|
1360
|
-
asset: string;
|
|
1361
|
-
}
|
|
1362
|
-
export interface MorphoConfigResponse {
|
|
1363
|
-
id: string;
|
|
1364
|
-
morphoAddress: string;
|
|
1365
|
-
}
|
|
1366
|
-
export interface WlpDistinctUsersResponse {
|
|
1367
|
-
wlpUsersTotal: number;
|
|
1368
|
-
eulerUsersTotal: number;
|
|
1369
|
-
morphoUsersTotal: number;
|
|
1370
|
-
siloUsersTotal: number;
|
|
1371
|
-
wlpUsers: string[];
|
|
1372
|
-
eulerUsers: EulerUserResponse[];
|
|
1373
|
-
morphoUsers: MorphoUserResponse[];
|
|
1374
|
-
siloUsers: SiloUserResponse[];
|
|
1375
|
-
wlpAddress: string;
|
|
1376
|
-
morphoConfigs: MorphoConfigResponse[];
|
|
1377
|
-
}
|
|
1378
|
-
export interface LiquidLockerPoolResponse {
|
|
1379
|
-
name: string;
|
|
1380
|
-
lpHolder: string;
|
|
1381
|
-
receiptToken: string;
|
|
1382
|
-
users: string[];
|
|
1383
|
-
errorMessage: string;
|
|
1384
|
-
}
|
|
1385
|
-
export interface LiquidLockerPoolsResponse {
|
|
1386
|
-
total: number;
|
|
1387
|
-
results: LiquidLockerPoolResponse[];
|
|
1388
|
-
}
|
|
1389
|
-
export interface WlpHolderMappingResponse {
|
|
1390
|
-
holder: string;
|
|
1391
|
-
asset: string;
|
|
1392
|
-
moneyMarket: string;
|
|
1393
|
-
}
|
|
1394
|
-
export interface GetAllRelatedInfoFromLpAndWlpResponse {
|
|
1395
|
-
distinctUsers: string[];
|
|
1396
|
-
liquidLockerPools: LiquidLockerPoolResponse[];
|
|
1397
|
-
wlpDistinctUsersResponse: WlpDistinctUsersResponse;
|
|
1398
|
-
wlpHolderMappings: WlpHolderMappingResponse[];
|
|
1399
|
-
}
|
|
1400
|
-
export interface MerkleRewardsResponse {
|
|
1401
|
-
accruedAmount: string;
|
|
1402
|
-
rewardBreakdowns: string[] | null;
|
|
1403
|
-
updatedAt: string;
|
|
1404
|
-
}
|
|
1405
|
-
export interface MerkleProofResponse {
|
|
1406
|
-
proof: string[];
|
|
1407
|
-
accruedAmount: string;
|
|
1408
|
-
updatedAt: string;
|
|
1409
|
-
verifyCallData?: string;
|
|
1410
|
-
merkleRoot: string;
|
|
1411
|
-
}
|
|
1412
|
-
export interface NotFoundResponse {
|
|
1413
|
-
message: string;
|
|
1414
|
-
statusCode: number;
|
|
1415
|
-
}
|
|
1416
|
-
export interface TokenProof {
|
|
1417
|
-
token: string;
|
|
1418
|
-
proof: string[];
|
|
1419
|
-
accruedAmount: string;
|
|
1420
|
-
verifyCallData?: string;
|
|
1421
|
-
}
|
|
1422
|
-
export interface MultiTokenMerkleProofResponse {
|
|
1423
|
-
proof: TokenProof[];
|
|
1424
|
-
merkleRoot: string;
|
|
1425
|
-
updatedAt: string;
|
|
1426
|
-
chainId: number;
|
|
1427
|
-
distributorAddress: string;
|
|
1428
|
-
campaignId: string;
|
|
1429
|
-
}
|
|
1430
|
-
export interface MerkleProofV2Response {
|
|
1431
|
-
total: number;
|
|
1432
|
-
results: MultiTokenMerkleProofResponse[];
|
|
1433
|
-
}
|
|
1434
|
-
export interface SyTokenOutRouteResponse {
|
|
1435
|
-
toSyAddress: string;
|
|
1436
|
-
defaultTokenOut: string;
|
|
1437
|
-
}
|
|
1438
|
-
export interface SyTokenOutRouteListResponse {
|
|
1439
|
-
tokenOutRoutes: SyTokenOutRouteResponse[];
|
|
1440
|
-
}
|
|
1441
|
-
export interface GetLiquidityTransferableMarketsResponse {
|
|
1442
|
-
marketAddresses: string[];
|
|
1443
|
-
}
|
|
1444
|
-
export interface CrossChainPtData {
|
|
1445
|
-
spokePt: string;
|
|
1446
|
-
hubPt: string;
|
|
1447
|
-
hubChainId: number;
|
|
1448
|
-
}
|
|
1449
|
-
export interface ChainIdSimplifiedData {
|
|
1450
|
-
chainId: number;
|
|
1451
|
-
sys: string[];
|
|
1452
|
-
markets: string[];
|
|
1453
|
-
pts: string[];
|
|
1454
|
-
yts: string[];
|
|
1455
|
-
crossPts: CrossChainPtData[];
|
|
1456
|
-
}
|
|
1457
|
-
export interface GetSimplifiedDataResponse {
|
|
1458
|
-
data: ChainIdSimplifiedData[];
|
|
1459
|
-
}
|
|
1460
|
-
export interface GetSafePendleAddressesResponse {
|
|
1461
|
-
sys: string[];
|
|
1462
|
-
pts: string[];
|
|
1463
|
-
yts: string[];
|
|
1464
|
-
}
|
|
1465
|
-
export interface ChainIdsResponse {
|
|
1466
|
-
chainIds: number[];
|
|
1467
|
-
}
|
|
1468
|
-
export interface ClaimTokenAmount {
|
|
1469
|
-
token: string;
|
|
1470
|
-
amount: string;
|
|
1471
|
-
}
|
|
1472
|
-
export interface Position {
|
|
1473
|
-
balance: string;
|
|
1474
|
-
activeBalance?: string;
|
|
1475
|
-
valuation: number;
|
|
1476
|
-
claimTokenAmounts?: ClaimTokenAmount[];
|
|
1477
|
-
}
|
|
1478
|
-
export interface MarketPosition {
|
|
1479
|
-
marketId: string;
|
|
1480
|
-
pt: Position;
|
|
1481
|
-
yt: Position;
|
|
1482
|
-
lp: Position;
|
|
1483
|
-
}
|
|
1484
|
-
export interface SyPosition {
|
|
1485
|
-
syId: string;
|
|
1486
|
-
balance: string;
|
|
1487
|
-
claimTokenAmounts?: ClaimTokenAmount[];
|
|
1488
|
-
}
|
|
1489
|
-
export interface UserPositionsResponse {
|
|
1490
|
-
chainId: number;
|
|
1491
|
-
totalOpen: number;
|
|
1492
|
-
totalClosed: number;
|
|
1493
|
-
totalSy: number;
|
|
1494
|
-
openPositions: MarketPosition[];
|
|
1495
|
-
closedPositions: MarketPosition[];
|
|
1496
|
-
syPositions: SyPosition[];
|
|
1497
|
-
updatedAt: string;
|
|
1498
|
-
errorMessage?: string;
|
|
1499
|
-
}
|
|
1500
|
-
export interface UserPositionsCrossChainResponse {
|
|
1501
|
-
positions: UserPositionsResponse[];
|
|
1502
|
-
}
|
|
1503
|
-
export interface MerkleUserCampaignResponse {
|
|
1504
|
-
user: string;
|
|
1505
|
-
token: string;
|
|
1506
|
-
merkleRoot: string;
|
|
1507
|
-
chainId: number;
|
|
1508
|
-
assetId: string;
|
|
1509
|
-
amount: string;
|
|
1510
|
-
toTimestamp: string;
|
|
1511
|
-
fromTimestamp: string;
|
|
1512
|
-
}
|
|
1513
|
-
export interface MerkleClaimableRewardsResponse {
|
|
1514
|
-
claimableRewards: MerkleUserCampaignResponse[];
|
|
1515
|
-
}
|
|
1516
|
-
export interface SpokePtData {
|
|
1517
|
-
spokeChainId: number;
|
|
1518
|
-
spokeAddress: string;
|
|
1519
|
-
}
|
|
1520
|
-
export interface PtCrossChainData {
|
|
1521
|
-
hubPtChainId: number;
|
|
1522
|
-
hubPtAddress: string;
|
|
1523
|
-
spokePts: SpokePtData[];
|
|
1524
|
-
}
|
|
1525
|
-
export interface GetAllCrossPtsResponse {
|
|
1526
|
-
result: PtCrossChainData[];
|
|
1527
|
-
}
|
|
1528
|
-
export interface ValuationEntity {
|
|
1529
|
-
usd: number;
|
|
1530
|
-
asset: number;
|
|
1531
|
-
eth: number;
|
|
1532
|
-
}
|
|
1533
|
-
export interface SpendUnitData {
|
|
1534
|
-
unit: number;
|
|
1535
|
-
spent_v2: ValuationEntity;
|
|
1536
|
-
}
|
|
1537
|
-
export interface PriceAssetData {
|
|
1538
|
-
pt: number;
|
|
1539
|
-
yt: number;
|
|
1540
|
-
lp: number;
|
|
1541
|
-
}
|
|
1542
|
-
export interface PnLTransactionEntity {
|
|
1543
|
-
chainId: number;
|
|
1544
|
-
market: string;
|
|
1545
|
-
user: string;
|
|
1546
|
-
timestamp: string;
|
|
1547
|
-
action: 'addLiquidityDualTokenAndPt' | 'addLiquiditySinglePt' | 'addLiquiditySingleToken' | 'addLiquiditySingleTokenKeepYt' | 'removeLiquidityDualTokenAndPt' | 'removeLiquidityToPt' | 'removeLiquiditySingleToken' | 'mintPy' | 'redeemPy' | 'swapYtToPt' | 'swapPtToYt' | 'redeemYtRewards' | 'redeemYtYield' | 'redeemMarketRewards' | 'buyPt' | 'sellPt' | 'transferPtIn' | 'transferPtOut' | 'buyYt' | 'sellYt' | 'transferYtIn' | 'transferYtOut' | 'transferLpIn' | 'transferLpOut' | 'sellYtLimitOrder' | 'buyYtLimitOrder' | 'sellPtLimitOrder' | 'buyPtLimitOrder';
|
|
1548
|
-
ptData: SpendUnitData;
|
|
1549
|
-
ytData: SpendUnitData;
|
|
1550
|
-
lpData: SpendUnitData;
|
|
1551
|
-
priceInAsset: PriceAssetData;
|
|
1552
|
-
profit: ValuationEntity;
|
|
1553
|
-
txValueAsset: number;
|
|
1554
|
-
assetUsd: number;
|
|
1555
|
-
assetEth: number;
|
|
1556
|
-
ptExchangeRate: number;
|
|
1557
|
-
effectivePtExchangeRate?: number;
|
|
1558
|
-
ptExchangeRateAfter?: number;
|
|
1559
|
-
txHash?: string;
|
|
1560
|
-
}
|
|
1561
|
-
export interface TransactionsResponseEntity {
|
|
1562
|
-
total: number;
|
|
1563
|
-
results: PnLTransactionEntity[];
|
|
1564
|
-
}
|
|
1565
|
-
export interface BlockEntity {
|
|
1566
|
-
blockNumber: number;
|
|
1567
|
-
blockTimestamp: number;
|
|
1568
|
-
}
|
|
1569
|
-
export interface IntegrationAssetEntity {
|
|
1570
|
-
id: string;
|
|
1571
|
-
symbol: string;
|
|
1572
|
-
name: string;
|
|
1573
|
-
decimals: number;
|
|
1574
|
-
}
|
|
1575
|
-
export interface IntegrationAssetResponse {
|
|
1576
|
-
asset: IntegrationAssetEntity;
|
|
1577
|
-
}
|
|
1578
|
-
export interface PairEntity {
|
|
1579
|
-
id: string;
|
|
1580
|
-
dexKey: string;
|
|
1581
|
-
asset0Id: string;
|
|
1582
|
-
asset1Id: string;
|
|
1583
|
-
}
|
|
1584
|
-
export interface IntegrationPairResponse {
|
|
1585
|
-
pair: PairEntity;
|
|
1586
|
-
}
|
|
1587
|
-
export interface Reserves {
|
|
1588
|
-
asset0: string;
|
|
1589
|
-
asset1: string;
|
|
1590
|
-
}
|
|
1591
|
-
export interface SwapEvent {
|
|
1592
|
-
block: BlockEntity;
|
|
1593
|
-
txnId: string;
|
|
1594
|
-
txnIndex: number;
|
|
1595
|
-
eventIndex: number;
|
|
1596
|
-
maker: string;
|
|
1597
|
-
pairId: string;
|
|
1598
|
-
reserves: Reserves;
|
|
1599
|
-
eventType: 'swap' | 'join' | 'exit';
|
|
1600
|
-
asset0In: string;
|
|
1601
|
-
asset1In: string;
|
|
1602
|
-
asset0Out: string;
|
|
1603
|
-
asset1Out: string;
|
|
1604
|
-
priceNative: string;
|
|
1605
|
-
}
|
|
1606
|
-
export interface JoinExitEvent {
|
|
1607
|
-
block: BlockEntity;
|
|
1608
|
-
txnId: string;
|
|
1609
|
-
txnIndex: number;
|
|
1610
|
-
eventIndex: number;
|
|
1611
|
-
maker: string;
|
|
1612
|
-
pairId: string;
|
|
1613
|
-
reserves: Reserves;
|
|
1614
|
-
eventType: 'swap' | 'join' | 'exit';
|
|
1615
|
-
amount0: string;
|
|
1616
|
-
amount1: string;
|
|
1617
|
-
}
|
|
1618
|
-
export interface IntegrationEventResponse {
|
|
1619
|
-
events: (SwapEvent | JoinExitEvent)[];
|
|
1620
|
-
}
|
|
1621
|
-
export interface MerklRewardResponse {
|
|
1622
|
-
sumAmount: string;
|
|
1623
|
-
fromEpoch: number;
|
|
1624
|
-
toEpoch: number;
|
|
1625
|
-
hash: string;
|
|
1626
|
-
rewardToken: string;
|
|
1627
|
-
rewards: object;
|
|
1628
|
-
}
|
|
1629
|
-
export interface MerklDataResponse {
|
|
1630
|
-
tvl: string;
|
|
1631
|
-
apr: string;
|
|
1632
|
-
opportunityName?: string;
|
|
1633
|
-
}
|
|
1634
|
-
export interface TagDefinitionResponse {
|
|
1635
|
-
name: string;
|
|
1636
|
-
description: string;
|
|
1637
|
-
}
|
|
1638
|
-
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from 'axios';
|
|
1639
|
-
export type QueryParamsType = Record<string | number, any>;
|
|
1640
|
-
export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'params' | 'url' | 'responseType'> {
|
|
1641
|
-
secure?: boolean;
|
|
1642
|
-
path: string;
|
|
1643
|
-
type?: ContentType;
|
|
1644
|
-
query?: QueryParamsType;
|
|
1645
|
-
format?: ResponseType;
|
|
1646
|
-
body?: unknown;
|
|
1647
|
-
}
|
|
1648
|
-
export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
|
|
1649
|
-
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, 'data' | 'cancelToken'> {
|
|
1650
|
-
securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
1651
|
-
secure?: boolean;
|
|
1652
|
-
format?: ResponseType;
|
|
1653
|
-
}
|
|
1654
|
-
export declare enum ContentType {
|
|
1655
|
-
Json = "application/json",
|
|
1656
|
-
JsonApi = "application/vnd.api+json",
|
|
1657
|
-
FormData = "multipart/form-data",
|
|
1658
|
-
UrlEncoded = "application/x-www-form-urlencoded",
|
|
1659
|
-
Text = "text/plain"
|
|
1660
|
-
}
|
|
1661
|
-
export declare class HttpClient<SecurityDataType = unknown> {
|
|
1662
|
-
instance: AxiosInstance;
|
|
1663
|
-
private securityData;
|
|
1664
|
-
private securityWorker?;
|
|
1665
|
-
private secure?;
|
|
1666
|
-
private format?;
|
|
1667
|
-
constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
|
|
1668
|
-
setSecurityData: (data: SecurityDataType | null) => void;
|
|
1669
|
-
protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
|
|
1670
|
-
protected stringifyFormItem(formItem: unknown): string;
|
|
1671
|
-
protected createFormData(input: Record<string, unknown>): FormData;
|
|
1672
|
-
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T>>;
|
|
1673
|
-
}
|
|
1674
|
-
export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
1675
|
-
limitOrders: {
|
|
1676
|
-
limitOrdersControllerGetLimitOrders: (query?: {
|
|
1677
|
-
order_by?: string;
|
|
1678
|
-
skip?: number;
|
|
1679
|
-
limit?: number;
|
|
1680
|
-
chainId?: number;
|
|
1681
|
-
yt?: string;
|
|
1682
|
-
maker?: string;
|
|
1683
|
-
isActive?: boolean;
|
|
1684
|
-
}, params?: RequestParams) => Promise<AxiosResponse<LimitOrdersResponse, any>>;
|
|
1685
|
-
limitOrdersControllerGetAllLimitOrders: (query?: {
|
|
1686
|
-
chainId?: number;
|
|
1687
|
-
limit?: number;
|
|
1688
|
-
maker?: string;
|
|
1689
|
-
yt?: string;
|
|
1690
|
-
timestamp_start?: string;
|
|
1691
|
-
timestamp_end?: string;
|
|
1692
|
-
resumeToken?: string;
|
|
1693
|
-
}, params?: RequestParams) => Promise<AxiosResponse<LimitOrdersV2Response, any>>;
|
|
1694
|
-
limitOrdersControllerGetAllArchivedLimitOrders: (query?: {
|
|
1695
|
-
chainId?: number;
|
|
1696
|
-
limit?: number;
|
|
1697
|
-
maker?: string;
|
|
1698
|
-
yt?: string;
|
|
1699
|
-
timestamp_start?: string;
|
|
1700
|
-
timestamp_end?: string;
|
|
1701
|
-
resumeToken?: string;
|
|
1702
|
-
}, params?: RequestParams) => Promise<AxiosResponse<LimitOrdersV2Response, any>>;
|
|
1703
|
-
limitOrdersControllerFetchMakers: (query?: {
|
|
1704
|
-
chainId?: number;
|
|
1705
|
-
yt?: string;
|
|
1706
|
-
sortBy?: "sum_order_size" | "num_orders";
|
|
1707
|
-
sortOrder?: "asc" | "desc";
|
|
1708
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MakersResponse, any>>;
|
|
1709
|
-
limitOrdersControllerGetMakerLimitOrder: (query: {
|
|
1710
|
-
skip?: number;
|
|
1711
|
-
limit?: number;
|
|
1712
|
-
chainId: number;
|
|
1713
|
-
maker: string;
|
|
1714
|
-
yt?: string;
|
|
1715
|
-
type?: 0 | 1 | 2 | 3;
|
|
1716
|
-
isActive?: boolean;
|
|
1717
|
-
}, params?: RequestParams) => Promise<AxiosResponse<LimitOrdersResponse, any>>;
|
|
1718
|
-
limitOrdersControllerCreateOrder: (data: CreateLimitOrderDto, params?: RequestParams) => Promise<AxiosResponse<LimitOrderResponse, any>>;
|
|
1719
|
-
limitOrdersControllerGenerateLimitOrderData: (data: GenerateLimitOrderDataDto, params?: RequestParams) => Promise<AxiosResponse<GenerateLimitOrderDataResponse, any>>;
|
|
1720
|
-
limitOrdersControllerGenerateScaledLimitOrderData: (data: GenerateScaledOrderDataDto, params?: RequestParams) => Promise<AxiosResponse<GenerateScaledOrderResponse, any>>;
|
|
1721
|
-
limitOrdersControllerGetTakerLimitOrders: (query: {
|
|
1722
|
-
skip?: number;
|
|
1723
|
-
limit?: number;
|
|
1724
|
-
chainId: number;
|
|
1725
|
-
yt: string;
|
|
1726
|
-
type: 0 | 1 | 2 | 3;
|
|
1727
|
-
sortBy?: "Implied Rate";
|
|
1728
|
-
sortOrder?: "asc" | "desc";
|
|
1729
|
-
}, params?: RequestParams) => Promise<AxiosResponse<LimitOrdersTakerResponse, any>>;
|
|
1730
|
-
};
|
|
1731
|
-
assets: {
|
|
1732
|
-
pricesCrossChainControllerGetAllAssetPricesByAddressesCrossChains: (query?: {
|
|
1733
|
-
ids?: string;
|
|
1734
|
-
chainId?: number;
|
|
1735
|
-
skip?: number;
|
|
1736
|
-
limit?: number;
|
|
1737
|
-
type?: PendleAssetType;
|
|
1738
|
-
}, params?: RequestParams) => Promise<AxiosResponse<GetAssetPricesCrossChainResponse, any>>;
|
|
1739
|
-
pricesControllerOhlcvV4: (chainId: number, address: string, query?: {
|
|
1740
|
-
time_frame?: "hour" | "day" | "week";
|
|
1741
|
-
timestamp_start?: string;
|
|
1742
|
-
timestamp_end?: string;
|
|
1743
|
-
}, params?: RequestParams) => Promise<AxiosResponse<PriceOHLCVCSVResponse, any>>;
|
|
1744
|
-
pricesControllerNotionalVolumeByMarket: (chainId: number, address: string, query?: {
|
|
1745
|
-
time_frame?: "hour" | "day" | "week";
|
|
1746
|
-
timestamp_start?: string;
|
|
1747
|
-
timestamp_end?: string;
|
|
1748
|
-
}, params?: RequestParams) => Promise<AxiosResponse<NotionalVolumeResponse, any>>;
|
|
1749
|
-
assetsCrossChainControllerGetPendleAssetsMetadata: (query?: {
|
|
1750
|
-
ids?: string;
|
|
1751
|
-
chainId?: number;
|
|
1752
|
-
skip?: number;
|
|
1753
|
-
limit?: number;
|
|
1754
|
-
type?: PendleAssetType;
|
|
1755
|
-
}, params?: RequestParams) => Promise<AxiosResponse<GetAllAssetsCrossChainResponse, any>>;
|
|
1756
|
-
assetsControllerGetAllAssets: (chainId: number, params?: RequestParams) => Promise<AxiosResponse<GetAssetsResponse, any>>;
|
|
1757
|
-
assetsControllerGetAllAssetPricesByAddresses: (chainId: number, query?: {
|
|
1758
|
-
addresses?: string;
|
|
1759
|
-
skip?: number;
|
|
1760
|
-
limit?: number;
|
|
1761
|
-
type?: string;
|
|
1762
|
-
}, params?: RequestParams) => Promise<AxiosResponse<GetAssetPricesResponse, any>>;
|
|
1763
|
-
};
|
|
1764
|
-
assetsLegacy: {
|
|
1765
|
-
pricesControllerGetAllAssetPrices: (chainId: number, params?: RequestParams) => Promise<AxiosResponse<AssetPricesResponse, any>>;
|
|
1766
|
-
pricesControllerGetAllAssetPricesByAddresses: (chainId: number, query?: {
|
|
1767
|
-
addresses?: string;
|
|
1768
|
-
}, params?: RequestParams) => Promise<AxiosResponse<AssetPricesResponse, any>>;
|
|
1769
|
-
pricesControllerVolumeByMarket: (chainId: number, address: string, query: {
|
|
1770
|
-
time_frame?: "hour" | "day" | "week";
|
|
1771
|
-
timestamp_start?: string;
|
|
1772
|
-
timestamp_end?: string;
|
|
1773
|
-
type: "pt" | "yt";
|
|
1774
|
-
}, params?: RequestParams) => Promise<AxiosResponse<PriceOHLCVCSVResponse, any>>;
|
|
1775
|
-
pricesControllerOhlcvV2: (chainId: number, address: string, query?: {
|
|
1776
|
-
time_frame?: "hour" | "day" | "week";
|
|
1777
|
-
timestamp_start?: string;
|
|
1778
|
-
timestamp_end?: string;
|
|
1779
|
-
}, params?: RequestParams) => Promise<AxiosResponse<PriceOHLCVResponse, any>>;
|
|
1780
|
-
pricesControllerOhlcvV3: (chainId: number, address: string, query?: {
|
|
1781
|
-
time_frame?: "hour" | "day" | "week";
|
|
1782
|
-
timestamp_start?: string;
|
|
1783
|
-
timestamp_end?: string;
|
|
1784
|
-
}, params?: RequestParams) => Promise<AxiosResponse<PriceOHLCVResponse, any>>;
|
|
1785
|
-
assetsControllerAssets: (chainId: number, query?: {
|
|
1786
|
-
order_by?: string;
|
|
1787
|
-
skip?: number;
|
|
1788
|
-
limit?: number;
|
|
1789
|
-
is_expired?: boolean;
|
|
1790
|
-
zappable?: boolean;
|
|
1791
|
-
type?: string;
|
|
1792
|
-
address?: string;
|
|
1793
|
-
q?: string;
|
|
1794
|
-
}, params?: RequestParams) => Promise<AxiosResponse<AssetsResponse, any>>;
|
|
1795
|
-
assetsControllerAllAssets: (chainId: number, params?: RequestParams) => Promise<AxiosResponse<AssetResponse[], any>>;
|
|
1796
|
-
assetsControllerAllAssetsV2: (chainId: number, params?: RequestParams) => Promise<AxiosResponse<AssetCSVResponse, any>>;
|
|
1797
|
-
assetsControllerAsset: (chainId: number, address: string, params?: RequestParams) => Promise<AxiosResponse<AssetResponse, any>>;
|
|
1798
|
-
assetsControllerGetAllPendleTokensInUniswapFormat: (chainId: number, params?: RequestParams) => Promise<AxiosResponse<UniswapTokenListResponse, any>>;
|
|
1799
|
-
sysControllerWhitelistedSys: (chainId: number, params?: RequestParams) => Promise<AxiosResponse<WhitelistedSysResponse, any>>;
|
|
1800
|
-
sysControllerAssetSy: (chainId: number, address: string, params?: RequestParams) => Promise<AxiosResponse<SyResponse, any>>;
|
|
1801
|
-
};
|
|
1802
|
-
markets: {
|
|
1803
|
-
marketsCrossChainControllerGetAllMarkets: (query?: {
|
|
1804
|
-
isActive?: boolean;
|
|
1805
|
-
chainId?: number;
|
|
1806
|
-
ids?: string;
|
|
1807
|
-
}, params?: RequestParams) => Promise<AxiosResponse<GetMarketsCrossChainResponse, any>>;
|
|
1808
|
-
marketsCrossChainControllerGetPointsMarkets: (query?: {
|
|
1809
|
-
isActive?: boolean;
|
|
1810
|
-
chainId?: number;
|
|
1811
|
-
}, params?: RequestParams) => Promise<AxiosResponse<GetPointsMarketsResponse, any>>;
|
|
1812
|
-
marketsControllerGetActiveMarkets: (chainId: number, params?: RequestParams) => Promise<AxiosResponse<GetActiveMarketsResponse, any>>;
|
|
1813
|
-
marketsControllerGetInactiveMarkets: (chainId: number, params?: RequestParams) => Promise<AxiosResponse<GetInactiveMarketsResponse, any>>;
|
|
1814
|
-
marketsControllerMarketDataV2: (chainId: number, address: string, query?: {
|
|
1815
|
-
timestamp?: string;
|
|
1816
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MarketDataResponse, any>>;
|
|
1817
|
-
marketsControllerMarketHistoricalDataV2: (chainId: number, address: string, query?: {
|
|
1818
|
-
time_frame?: "hour" | "day" | "week";
|
|
1819
|
-
timestamp_start?: string;
|
|
1820
|
-
timestamp_end?: string;
|
|
1821
|
-
fields?: string;
|
|
1822
|
-
includeFeeBreakdown?: boolean;
|
|
1823
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MarketHistoricalDataResponse, any>>;
|
|
1824
|
-
marketsControllerMarketApyHistoryV3: (chainId: number, address: string, query?: {
|
|
1825
|
-
time_frame?: "hour" | "day" | "week";
|
|
1826
|
-
timestamp_start?: string;
|
|
1827
|
-
timestamp_end?: string;
|
|
1828
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MarketHistoricalDataTableResponse, any>>;
|
|
1829
|
-
marketsControllerGetSwapAmountToChangeImpliedApy: (chainId: number, address: string, query: {
|
|
1830
|
-
tokenIn: string;
|
|
1831
|
-
tokenOut: string;
|
|
1832
|
-
targetImpliedApy: number;
|
|
1833
|
-
}, params?: RequestParams) => Promise<AxiosResponse<SwapAmountToChangeApyResponse, any>>;
|
|
1834
|
-
};
|
|
1835
|
-
marketsLegacy: {
|
|
1836
|
-
marketsControllerMarketApyHistoryV2: (chainId: number, address: string, query?: {
|
|
1837
|
-
time_frame?: "hour" | "day" | "week";
|
|
1838
|
-
timestamp_start?: string;
|
|
1839
|
-
timestamp_end?: string;
|
|
1840
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MarketApyHistoriesCSVResponse, any>>;
|
|
1841
|
-
marketsControllerMarkets: (chainId: number, query?: {
|
|
1842
|
-
order_by?: string;
|
|
1843
|
-
skip?: number;
|
|
1844
|
-
limit?: number;
|
|
1845
|
-
is_expired?: boolean;
|
|
1846
|
-
select?: string;
|
|
1847
|
-
pt?: string;
|
|
1848
|
-
yt?: string;
|
|
1849
|
-
sy?: string;
|
|
1850
|
-
q?: string;
|
|
1851
|
-
is_active?: boolean;
|
|
1852
|
-
categoryId?: string;
|
|
1853
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MarketsResponse, any>>;
|
|
1854
|
-
marketsControllerGetFeaturedMarkets: (chainId: number, query?: {
|
|
1855
|
-
order_by?: string;
|
|
1856
|
-
skip?: number;
|
|
1857
|
-
limit?: number;
|
|
1858
|
-
}, params?: RequestParams) => Promise<AxiosResponse<FeaturedMarketsResponseEntity, any>>;
|
|
1859
|
-
marketsControllerMarket: (chainId: number, address: string, params?: RequestParams) => Promise<AxiosResponse<MarketResponse, any>>;
|
|
1860
|
-
marketsControllerMarketHistoryV2: (chainId: number, address: string, query?: {
|
|
1861
|
-
time_frame?: "hour" | "day" | "week";
|
|
1862
|
-
timestamp_start?: string;
|
|
1863
|
-
timestamp_end?: string;
|
|
1864
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MarketHistoriesResponse, any>>;
|
|
1865
|
-
marketsControllerMarketApyHistory: (chainId: number, address: string, query?: {
|
|
1866
|
-
time_frame?: "hour" | "day" | "week";
|
|
1867
|
-
timestamp_start?: string;
|
|
1868
|
-
timestamp_end?: string;
|
|
1869
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MarketApyHistoriesResponse, any>>;
|
|
1870
|
-
marketsControllerMarketStateHistory: (chainId: number, address: string, query?: {
|
|
1871
|
-
time_frame?: "hour" | "day" | "week";
|
|
1872
|
-
timestamp_start?: string;
|
|
1873
|
-
timestamp_end?: string;
|
|
1874
|
-
}, params?: RequestParams) => Promise<AxiosResponse<GetMarketStatHistoryCSVResponse, any>>;
|
|
1875
|
-
marketsControllerMarketApyHistory1D: (chainId: number, address: string, query?: {
|
|
1876
|
-
time_frame?: "hour" | "day" | "week";
|
|
1877
|
-
timestamp_start?: string;
|
|
1878
|
-
timestamp_end?: string;
|
|
1879
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MarketApyHistoriesCSVResponse, any>>;
|
|
1880
|
-
marketsControllerMarketImpliedApyChart: (chainId: number, address: string, query?: {
|
|
1881
|
-
timestamp_start?: string;
|
|
1882
|
-
timestamp_end?: string;
|
|
1883
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MarketImpliedApyResponseEntity, any>>;
|
|
1884
|
-
marketsControllerMarketAssets: (chainId: number, address: string, params?: RequestParams) => Promise<AxiosResponse<MarketAssetsResponse, any>>;
|
|
1885
|
-
};
|
|
1886
|
-
marketCategories: {
|
|
1887
|
-
marketCategoriesControllerFindAllMarketCategories: (params?: RequestParams) => Promise<AxiosResponse<GetAllMarketCategoriesResponse, any>>;
|
|
1888
|
-
};
|
|
1889
|
-
metadataLegacy: {
|
|
1890
|
-
utilizedProtocolsControllerFindAllUtilizedProtocols: (params?: RequestParams) => Promise<AxiosResponse<GetAllUtilizedProtocolsResponse, any>>;
|
|
1891
|
-
utilizedProtocolsControllerGetUtilizedProtocolsOfMarket: (chainId: number, address: string, params?: RequestParams) => Promise<AxiosResponse<UtilizedProtocolResponse[], any>>;
|
|
1892
|
-
metadataControllerGetValuesByKeys: (data: MetadataQueryDto, params?: RequestParams) => Promise<AxiosResponse<MetadataResponse, any>>;
|
|
1893
|
-
metadataControllerGetValuesByKeysV2ByPost: (data: MetadataQueryDto, params?: RequestParams) => Promise<AxiosResponse<MetadataResponse, any>>;
|
|
1894
|
-
metadataControllerGetValuesByKeysV2ByGet: (query: {
|
|
1895
|
-
keys: string[];
|
|
1896
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MetadataValuesResponse, any>>;
|
|
1897
|
-
metadataControllerGetMetadataValuesByTemplate: (template: string, params?: RequestParams) => Promise<AxiosResponse<GetMetadataByTemplateResponse, any>>;
|
|
1898
|
-
};
|
|
1899
|
-
vePendle: {
|
|
1900
|
-
vePendleControllerVePendleData: (params?: RequestParams) => Promise<AxiosResponse<VePendleDataResponse, any>>;
|
|
1901
|
-
vePendleControllerVePendleExtendedData: (params?: RequestParams) => Promise<AxiosResponse<VePendleExtendedDataResponse, any>>;
|
|
1902
|
-
vePendleControllerVoteSnapshot: (query?: {
|
|
1903
|
-
epoch?: string;
|
|
1904
|
-
}, params?: RequestParams) => Promise<AxiosResponse<VoteSnapshotResponse, any>>;
|
|
1905
|
-
vePendleControllerGetPoolVoterAprAndSwapFee: (query?: {
|
|
1906
|
-
order_by?: string;
|
|
1907
|
-
}, params?: RequestParams) => Promise<AxiosResponse<PoolVoterAprsSwapFeesResponse, any>>;
|
|
1908
|
-
vePendleControllerVePendleApyChart: (query?: {
|
|
1909
|
-
time_frame?: "hour" | "day" | "week";
|
|
1910
|
-
timestamp_gte?: string;
|
|
1911
|
-
timestamp_lte?: string;
|
|
1912
|
-
}, params?: RequestParams) => Promise<AxiosResponse<VePendleApyChartResponse, any>>;
|
|
1913
|
-
vePendleControllerAllMarketTotalFees: (query?: {
|
|
1914
|
-
timestamp_start?: string;
|
|
1915
|
-
timestamp_end?: string;
|
|
1916
|
-
}, params?: RequestParams) => Promise<AxiosResponse<AllMarketTotalFeesResponse, any>>;
|
|
1917
|
-
vePendleControllerOngoingVotes: (params?: RequestParams) => Promise<AxiosResponse<GetOngoingVotesResponse, any>>;
|
|
1918
|
-
vePendleControllerGetVePendleCap: (params?: RequestParams) => Promise<AxiosResponse<GetVePendleCapResponse, any>>;
|
|
1919
|
-
vePendleControllerGetMonthlyRevenue: (params?: RequestParams) => Promise<AxiosResponse<GetMonthlyRevenueResponse, any>>;
|
|
1920
|
-
};
|
|
1921
|
-
vePendleLegacy: {
|
|
1922
|
-
vePendleControllerPoolVoterApy: (query?: {
|
|
1923
|
-
order_by?: string;
|
|
1924
|
-
}, params?: RequestParams) => Promise<AxiosResponse<PoolVoterApysResponse, any>>;
|
|
1925
|
-
vePendleControllerPoolMetadata: (params?: RequestParams) => Promise<AxiosResponse<PoolResponse[], any>>;
|
|
1926
|
-
vePendleControllerVoterApyChart: (query?: {
|
|
1927
|
-
time_frame?: "hour" | "day" | "week";
|
|
1928
|
-
timestamp_gte?: string;
|
|
1929
|
-
timestamp_lte?: string;
|
|
1930
|
-
}, params?: RequestParams) => Promise<AxiosResponse<VoterApyChartResponse, any>>;
|
|
1931
|
-
vePendleControllerPendleTokenSupply: (params?: RequestParams) => Promise<AxiosResponse<PendleTokenSupplyResponse, any>>;
|
|
1932
|
-
vePendleControllerGetHistoricalVotes: (address: string, query?: {
|
|
1933
|
-
timestamp?: string;
|
|
1934
|
-
}, params?: RequestParams) => Promise<AxiosResponse<GetHistoricalVotesResponse, any>>;
|
|
1935
|
-
};
|
|
1936
|
-
pendleLegacy: {
|
|
1937
|
-
pendleControllerPendleSupply: (params?: RequestParams) => Promise<AxiosResponse<void, any>>;
|
|
1938
|
-
pendleControllerPendleCirculatingSupply: (params?: RequestParams) => Promise<AxiosResponse<void, any>>;
|
|
1939
|
-
};
|
|
1940
|
-
sdk: {
|
|
1941
|
-
sdkControllerGetMarketTokens: (chainId: number, market: string, params?: RequestParams) => Promise<AxiosResponse<MarketTokensResponse, any>>;
|
|
1942
|
-
sdkControllerGetSupportedAggregators: (chainId: number, params?: RequestParams) => Promise<AxiosResponse<SupportedAggregatorsResponse, any>>;
|
|
1943
|
-
sdkControllerGetMarketSpotSwappingPrice: (chainId: number, market: string, params?: RequestParams) => Promise<AxiosResponse<GetSpotSwappingPriceResponse, any>>;
|
|
1944
|
-
sdkControllerSwapV2: (chainId: number, market: string, query: {
|
|
1945
|
-
receiver: string;
|
|
1946
|
-
slippage: number;
|
|
1947
|
-
enableAggregator?: boolean;
|
|
1948
|
-
aggregators?: string;
|
|
1949
|
-
tokenIn: string;
|
|
1950
|
-
tokenOut: string;
|
|
1951
|
-
amountIn: string;
|
|
1952
|
-
additionalData?: string;
|
|
1953
|
-
needScale?: boolean;
|
|
1954
|
-
}, params?: RequestParams) => Promise<AxiosResponse<SwapResponse, any>>;
|
|
1955
|
-
sdkControllerAddLiquidityV2: (chainId: number, market: string, query: {
|
|
1956
|
-
receiver: string;
|
|
1957
|
-
slippage: number;
|
|
1958
|
-
enableAggregator?: boolean;
|
|
1959
|
-
aggregators?: string;
|
|
1960
|
-
tokenIn: string;
|
|
1961
|
-
amountIn: string;
|
|
1962
|
-
zpi?: boolean;
|
|
1963
|
-
additionalData?: string;
|
|
1964
|
-
}, params?: RequestParams) => Promise<AxiosResponse<AddLiquidityResponse, any>>;
|
|
1965
|
-
sdkControllerRemoveLiquidityV2: (chainId: number, market: string, query: {
|
|
1966
|
-
receiver: string;
|
|
1967
|
-
slippage: number;
|
|
1968
|
-
enableAggregator?: boolean;
|
|
1969
|
-
aggregators?: string;
|
|
1970
|
-
amountIn: string;
|
|
1971
|
-
tokenOut: string;
|
|
1972
|
-
additionalData?: string;
|
|
1973
|
-
}, params?: RequestParams) => Promise<AxiosResponse<RemoveLiquidityResponse, any>>;
|
|
1974
|
-
sdkControllerMintV2: (chainId: number, query: {
|
|
1975
|
-
receiver: string;
|
|
1976
|
-
slippage: number;
|
|
1977
|
-
enableAggregator?: boolean;
|
|
1978
|
-
aggregators?: string;
|
|
1979
|
-
yt: string;
|
|
1980
|
-
tokenIn: string;
|
|
1981
|
-
amountIn: string;
|
|
1982
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MintResponse, any>>;
|
|
1983
|
-
sdkControllerRedeemV2: (chainId: number, query: {
|
|
1984
|
-
receiver: string;
|
|
1985
|
-
slippage: number;
|
|
1986
|
-
enableAggregator?: boolean;
|
|
1987
|
-
aggregators?: string;
|
|
1988
|
-
yt: string;
|
|
1989
|
-
amountIn: string;
|
|
1990
|
-
tokenOut: string;
|
|
1991
|
-
}, params?: RequestParams) => Promise<AxiosResponse<RedeemResponse, any>>;
|
|
1992
|
-
sdkControllerMintSyV2: (chainId: number, query: {
|
|
1993
|
-
receiver: string;
|
|
1994
|
-
slippage: number;
|
|
1995
|
-
enableAggregator?: boolean;
|
|
1996
|
-
aggregators?: string;
|
|
1997
|
-
sy: string;
|
|
1998
|
-
tokenIn: string;
|
|
1999
|
-
amountIn: string;
|
|
2000
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MintSyResponse, any>>;
|
|
2001
|
-
sdkControllerRedeemSyV2: (chainId: number, query: {
|
|
2002
|
-
receiver: string;
|
|
2003
|
-
slippage: number;
|
|
2004
|
-
enableAggregator?: boolean;
|
|
2005
|
-
aggregators?: string;
|
|
2006
|
-
sy: string;
|
|
2007
|
-
amountIn: string;
|
|
2008
|
-
tokenOut: string;
|
|
2009
|
-
}, params?: RequestParams) => Promise<AxiosResponse<RedeemSyResponse, any>>;
|
|
2010
|
-
sdkControllerTransferLiquidityV2: (chainId: number, market: string, query: {
|
|
2011
|
-
receiver: string;
|
|
2012
|
-
slippage: number;
|
|
2013
|
-
aggregators?: string;
|
|
2014
|
-
dstMarket: string;
|
|
2015
|
-
lpAmount: string;
|
|
2016
|
-
ptAmount: string;
|
|
2017
|
-
ytAmount: string;
|
|
2018
|
-
redeemRewards?: boolean;
|
|
2019
|
-
zpi?: boolean;
|
|
2020
|
-
}, params?: RequestParams) => Promise<AxiosResponse<TransferLiquidityResponse, any>>;
|
|
2021
|
-
sdkControllerRollOverPtV2: (chainId: number, market: string, query: {
|
|
2022
|
-
receiver: string;
|
|
2023
|
-
slippage: number;
|
|
2024
|
-
aggregators?: string;
|
|
2025
|
-
dstMarket: string;
|
|
2026
|
-
ptAmount: string;
|
|
2027
|
-
}, params?: RequestParams) => Promise<AxiosResponse<RollOverPtResponse, any>>;
|
|
2028
|
-
sdkControllerAddLiquidityDual: (chainId: number, market: string, query: {
|
|
2029
|
-
receiver: string;
|
|
2030
|
-
slippage: number;
|
|
2031
|
-
tokenIn: string;
|
|
2032
|
-
amountTokenIn: string;
|
|
2033
|
-
amountPtIn: string;
|
|
2034
|
-
}, params?: RequestParams) => Promise<AxiosResponse<AddLiquidityDualResponse, any>>;
|
|
2035
|
-
sdkControllerRemoveLiquidityDual: (chainId: number, market: string, query: {
|
|
2036
|
-
receiver: string;
|
|
2037
|
-
slippage: number;
|
|
2038
|
-
amountIn: string;
|
|
2039
|
-
tokenOut: string;
|
|
2040
|
-
}, params?: RequestParams) => Promise<AxiosResponse<RemoveLiquidityDualResponse, any>>;
|
|
2041
|
-
sdkControllerCancelSingleLimitOrder: (chainId: number, query: {
|
|
2042
|
-
userAddress: string;
|
|
2043
|
-
salt: string;
|
|
2044
|
-
expiry: string;
|
|
2045
|
-
nonce: string;
|
|
2046
|
-
orderType: 0 | 1 | 2 | 3;
|
|
2047
|
-
token: string;
|
|
2048
|
-
YT: string;
|
|
2049
|
-
maker: string;
|
|
2050
|
-
receiver: string;
|
|
2051
|
-
makingAmount: string;
|
|
2052
|
-
lnImpliedRate: string;
|
|
2053
|
-
failSafeRate: string;
|
|
2054
|
-
permit: string;
|
|
2055
|
-
}, params?: RequestParams) => Promise<AxiosResponse<SdkResponse, any>>;
|
|
2056
|
-
sdkControllerCancelAllLimitOrders: (chainId: number, query: {
|
|
2057
|
-
userAddress: string;
|
|
2058
|
-
}, params?: RequestParams) => Promise<AxiosResponse<SdkResponse, any>>;
|
|
2059
|
-
sdkControllerPendleSwapV2: (chainId: number, data: PendleSwapDtoV2, params?: RequestParams) => Promise<AxiosResponse<PendleSwapResponse, any>>;
|
|
2060
|
-
sdkControllerExitMarketV2: (chainId: number, market: string, query: {
|
|
2061
|
-
receiver: string;
|
|
2062
|
-
slippage: number;
|
|
2063
|
-
enableAggregator?: boolean;
|
|
2064
|
-
aggregators?: string;
|
|
2065
|
-
ptAmount: string;
|
|
2066
|
-
ytAmount: string;
|
|
2067
|
-
lpAmount: string;
|
|
2068
|
-
tokenOut: string;
|
|
2069
|
-
}, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
|
|
2070
|
-
sdkControllerRedeemInterestsAndRewards: (chainId: number, query: {
|
|
2071
|
-
receiver: string;
|
|
2072
|
-
sys?: string;
|
|
2073
|
-
yts?: string;
|
|
2074
|
-
markets?: string;
|
|
2075
|
-
}, params?: RequestParams) => Promise<AxiosResponse<RedeemInterestsAndRewardsResponse, any>>;
|
|
2076
|
-
sdkControllerConvert: (chainId: number, query: {
|
|
2077
|
-
receiver: string;
|
|
2078
|
-
slippage: number;
|
|
2079
|
-
enableAggregator?: boolean;
|
|
2080
|
-
aggregators?: string;
|
|
2081
|
-
tokensIn: string;
|
|
2082
|
-
amountsIn: string;
|
|
2083
|
-
tokensOut: string;
|
|
2084
|
-
redeemRewards?: boolean;
|
|
2085
|
-
needScale?: boolean;
|
|
2086
|
-
additionalData?: string;
|
|
2087
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MultiRouteConvertResponse, any>>;
|
|
2088
|
-
sdkControllerSwapPtCrossChain: (chainId: number, query: {
|
|
2089
|
-
receiver: string;
|
|
2090
|
-
pt: string;
|
|
2091
|
-
token: string;
|
|
2092
|
-
exactAmountType: "pt" | "token";
|
|
2093
|
-
exactAmount: string;
|
|
2094
|
-
}, params?: RequestParams) => Promise<AxiosResponse<SwapPtCrossChainResponse, any>>;
|
|
2095
|
-
sdkControllerGetPtCrossChainMetadata: (chainId: number, pt: string, params?: RequestParams) => Promise<AxiosResponse<PtCrossChainMetadataResponse, any>>;
|
|
2096
|
-
};
|
|
2097
|
-
transactionsLegacy: {
|
|
2098
|
-
transactionsControllerTransactionsV3: (chainId: number, query: {
|
|
2099
|
-
market: string;
|
|
2100
|
-
skip?: number;
|
|
2101
|
-
limit?: number;
|
|
2102
|
-
action?: string;
|
|
2103
|
-
origin?: string;
|
|
2104
|
-
timestamp_start?: string;
|
|
2105
|
-
timestamp_end?: string;
|
|
2106
|
-
user?: string;
|
|
2107
|
-
minValue?: number;
|
|
2108
|
-
maxValue?: number;
|
|
2109
|
-
}, params?: RequestParams) => Promise<AxiosResponse<TransactionsResponse, any>>;
|
|
2110
|
-
transactionsControllerTransaction: (chainId: number, id: string, params?: RequestParams) => Promise<AxiosResponse<TransactionResponse, any>>;
|
|
2111
|
-
};
|
|
2112
|
-
transactions: {
|
|
2113
|
-
transactionsControllerTransactionsV5: (chainId: number, address: string, query: {
|
|
2114
|
-
type: string;
|
|
2115
|
-
skip?: number;
|
|
2116
|
-
limit?: number;
|
|
2117
|
-
minValue?: number;
|
|
2118
|
-
txOrigin?: string;
|
|
2119
|
-
action?: string;
|
|
2120
|
-
}, params?: RequestParams) => Promise<AxiosResponse<TransactionsV5Response, any>>;
|
|
2121
|
-
transactionsControllerTransactionsV4: (chainId: number, query?: {
|
|
2122
|
-
market?: string;
|
|
2123
|
-
skip?: number;
|
|
2124
|
-
limit?: number;
|
|
2125
|
-
action?: string;
|
|
2126
|
-
origin?: string;
|
|
2127
|
-
timestamp_start?: string;
|
|
2128
|
-
timestamp_end?: string;
|
|
2129
|
-
user?: string;
|
|
2130
|
-
minValue?: number;
|
|
2131
|
-
maxValue?: number;
|
|
2132
|
-
resumeToken?: string;
|
|
2133
|
-
}, params?: RequestParams) => Promise<AxiosResponse<TransactionsV4Response, any>>;
|
|
2134
|
-
transactionsControllerGetTransactions: (query: {
|
|
2135
|
-
skip?: number;
|
|
2136
|
-
limit?: number;
|
|
2137
|
-
chainId?: number;
|
|
2138
|
-
user: string;
|
|
2139
|
-
market?: string;
|
|
2140
|
-
}, params?: RequestParams) => Promise<AxiosResponse<TransactionsResponseEntity, any>>;
|
|
2141
|
-
};
|
|
2142
|
-
statisticsLegacy: {
|
|
2143
|
-
statisticsControllerGetTvlAndTradingVolume: (params?: RequestParams) => Promise<AxiosResponse<TvlAndTradingVolumeResponseEntity, any>>;
|
|
2144
|
-
};
|
|
2145
|
-
statistics: {
|
|
2146
|
-
statisticsControllerGetDistinctUserFromToken: (query: {
|
|
2147
|
-
token: string;
|
|
2148
|
-
chainId?: number;
|
|
2149
|
-
}, params?: RequestParams) => Promise<AxiosResponse<GetDistinctUsersFromTokenEntity, any>>;
|
|
2150
|
-
statisticsControllerGetWlpDistinctUsers: (query: {
|
|
2151
|
-
chainId: number;
|
|
2152
|
-
wlpAddress: string;
|
|
2153
|
-
}, params?: RequestParams) => Promise<AxiosResponse<WlpDistinctUsersResponse, any>>;
|
|
2154
|
-
statisticsControllerGetLiquidLockerPools: (query: {
|
|
2155
|
-
chainId: number;
|
|
2156
|
-
lpAddress: string;
|
|
2157
|
-
}, params?: RequestParams) => Promise<AxiosResponse<LiquidLockerPoolsResponse, any>>;
|
|
2158
|
-
statisticsControllerGetAllRelatedInfoFromLpAndWlp: (query: {
|
|
2159
|
-
chainId: number;
|
|
2160
|
-
marketAddress?: string;
|
|
2161
|
-
}, params?: RequestParams) => Promise<AxiosResponse<GetAllRelatedInfoFromLpAndWlpResponse, any>>;
|
|
2162
|
-
};
|
|
2163
|
-
merkleLegacy: {
|
|
2164
|
-
merkleControllerGetRewardsByAddress: (address: string, campaign: "vependle" | "arbitrum-grant" | "multi-token" | "external-rewards" | "vependle-usd", query?: {
|
|
2165
|
-
chainId?: number;
|
|
2166
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MerkleRewardsResponse, any>>;
|
|
2167
|
-
merkleControllerGetProofByAddress: (address: string, campaign: "vependle" | "arbitrum-grant" | "multi-token" | "external-rewards" | "vependle-usd", query?: {
|
|
2168
|
-
generateVerifyData?: boolean;
|
|
2169
|
-
chainId?: number;
|
|
2170
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MerkleProofResponse, any>>;
|
|
2171
|
-
};
|
|
2172
|
-
merkle: {
|
|
2173
|
-
merkleControllerGetProofByAddressV2: (address: string, query?: {
|
|
2174
|
-
generateVerifyData?: boolean;
|
|
2175
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MerkleProofV2Response, any>>;
|
|
2176
|
-
};
|
|
2177
|
-
transferLiquidityLegacy: {
|
|
2178
|
-
transferLiquidityControllerGetDefaultTokenOutList: (chainId: number, fromSyAddress: string, params?: RequestParams) => Promise<AxiosResponse<SyTokenOutRouteListResponse, any>>;
|
|
2179
|
-
transferLiquidityControllerGetLiquidityTransferableMarkets: (chainId: number, marketAddress: string, params?: RequestParams) => Promise<AxiosResponse<GetLiquidityTransferableMarketsResponse, any>>;
|
|
2180
|
-
};
|
|
2181
|
-
querierLegacy: {
|
|
2182
|
-
querierControllerGetSimplifiedData: (query?: {
|
|
2183
|
-
isExpired?: boolean;
|
|
2184
|
-
}, params?: RequestParams) => Promise<AxiosResponse<GetSimplifiedDataResponse, any>>;
|
|
2185
|
-
};
|
|
2186
|
-
querier: {
|
|
2187
|
-
querierControllerGetSafePendleTokenAddresses: (chainId: number, params?: RequestParams) => Promise<AxiosResponse<GetSafePendleAddressesResponse, any>>;
|
|
2188
|
-
};
|
|
2189
|
-
chainsLegacy: {
|
|
2190
|
-
chainsControllerGetSupportedChainIds: (params?: RequestParams) => Promise<AxiosResponse<ChainIdsResponse, any>>;
|
|
2191
|
-
};
|
|
2192
|
-
dashboard: {
|
|
2193
|
-
dashboardControllerGetUserPositions: (user: string, query?: {
|
|
2194
|
-
filterUsd?: number;
|
|
2195
|
-
}, params?: RequestParams) => Promise<AxiosResponse<UserPositionsCrossChainResponse, any>>;
|
|
2196
|
-
dashboardControllerGetMerkleClaimableRewards: (user: string, params?: RequestParams) => Promise<AxiosResponse<MerkleClaimableRewardsResponse, any>>;
|
|
2197
|
-
};
|
|
2198
|
-
crossPt: {
|
|
2199
|
-
crossPtControllerGetAllCrossPt: (params?: RequestParams) => Promise<AxiosResponse<GetAllCrossPtsResponse, any>>;
|
|
2200
|
-
};
|
|
2201
|
-
integrations: {
|
|
2202
|
-
integrationsControllerGetLatestBlock: (chainId: number, params?: RequestParams) => Promise<AxiosResponse<BlockEntity, any>>;
|
|
2203
|
-
integrationsControllerGetAsset: (chainId: number, query: {
|
|
2204
|
-
id: string;
|
|
2205
|
-
}, params?: RequestParams) => Promise<AxiosResponse<IntegrationAssetResponse, any>>;
|
|
2206
|
-
integrationsControllerGetPair: (chainId: number, query: {
|
|
2207
|
-
id: string;
|
|
2208
|
-
}, params?: RequestParams) => Promise<AxiosResponse<IntegrationPairResponse, any>>;
|
|
2209
|
-
integrationsControllerGetEvents: (chainId: number, query: {
|
|
2210
|
-
fromBlock: number;
|
|
2211
|
-
toBlock: number;
|
|
2212
|
-
}, params?: RequestParams) => Promise<AxiosResponse<IntegrationEventResponse, any>>;
|
|
2213
|
-
};
|
|
2214
|
-
incentiveRewards: {
|
|
2215
|
-
incentiveRewardsControllerGetMakerIncentiveDistribution: (chainId: number, query: {
|
|
2216
|
-
epochTimestamp: string;
|
|
2217
|
-
}, params?: RequestParams) => Promise<AxiosResponse<MerklRewardResponse, any>>;
|
|
2218
|
-
incentiveRewardsControllerGetMakerIncentiveData: (chainId: number, params?: RequestParams) => Promise<AxiosResponse<MerklDataResponse, any>>;
|
|
2219
|
-
};
|
|
2220
|
-
}
|