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