@ember-finance/sdk 1.0.9 → 1.0.10
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/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/src/common/types.d.ts +0 -1
- package/dist/src/common/types.js +0 -1
- package/dist/src/vaults/api/api.d.ts +2 -2
- package/dist/src/vaults/api/apis/accounts-api.d.ts +112 -31
- package/dist/src/vaults/api/apis/accounts-api.js +98 -112
- package/dist/src/vaults/api/apis/vaults-api.d.ts +186 -31
- package/dist/src/vaults/api/apis/vaults-api.js +140 -220
- package/dist/src/vaults/api/base.d.ts +26 -2
- package/dist/src/vaults/api/base.js +21 -1
- package/dist/src/vaults/api/common.d.ts +38 -1
- package/dist/src/vaults/api/common.js +47 -17
- package/dist/src/vaults/api/configuration.d.ts +17 -0
- package/dist/src/vaults/api/configuration.js +4 -5
- package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +6 -5
- package/dist/src/vaults/api/models/account-transaction.d.ts +26 -11
- package/dist/src/vaults/api/models/account-transaction.js +12 -7
- package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +64 -23
- package/dist/src/vaults/api/models/account-withdrawal-request.js +13 -8
- package/dist/src/vaults/api/models/apy-history.d.ts +17 -4
- package/dist/src/vaults/api/models/asset.d.ts +26 -7
- package/dist/src/vaults/api/models/borrowed.d.ts +21 -5
- package/dist/src/vaults/api/models/coin-price.d.ts +11 -2
- package/dist/src/vaults/api/models/deposit-transaction.d.ts +40 -10
- package/dist/src/vaults/api/models/exposure-coin.d.ts +18 -4
- package/dist/src/vaults/api/models/exposure-protocol.d.ts +38 -13
- package/dist/src/vaults/api/models/exposure.d.ts +16 -5
- package/dist/src/vaults/api/models/fee.d.ts +18 -4
- package/dist/src/vaults/api/models/history-interval.d.ts +11 -7
- package/dist/src/vaults/api/models/history-interval.js +12 -6
- package/dist/src/vaults/api/models/index.d.ts +60 -60
- package/dist/src/vaults/api/models/lp.d.ts +44 -13
- package/dist/src/vaults/api/models/manager.d.ts +26 -4
- package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/perps.d.ts +12 -3
- package/dist/src/vaults/api/models/pnl-history-interval.d.ts +10 -6
- package/dist/src/vaults/api/models/pnl-history-interval.js +11 -5
- package/dist/src/vaults/api/models/pnl-history.d.ts +14 -3
- package/dist/src/vaults/api/models/position-value.d.ts +23 -6
- package/dist/src/vaults/api/models/position.d.ts +17 -4
- package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +35 -10
- package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +26 -7
- package/dist/src/vaults/api/models/protocol-info.d.ts +20 -6
- package/dist/src/vaults/api/models/protocol.d.ts +17 -4
- package/dist/src/vaults/api/models/raw-event-event-data.d.ts +18 -17
- package/dist/src/vaults/api/models/raw-event.d.ts +44 -25
- package/dist/src/vaults/api/models/raw-event.js +24 -19
- package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +40 -10
- package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/reported-apy.d.ts +17 -2
- package/dist/src/vaults/api/models/request-processed-event.d.ts +35 -10
- package/dist/src/vaults/api/models/request-redeemed-event.d.ts +32 -9
- package/dist/src/vaults/api/models/reward-token.d.ts +26 -5
- package/dist/src/vaults/api/models/reward.d.ts +18 -4
- package/dist/src/vaults/api/models/share-price-history.d.ts +11 -2
- package/dist/src/vaults/api/models/strategy.d.ts +26 -7
- package/dist/src/vaults/api/models/sub-account.d.ts +15 -3
- package/dist/src/vaults/api/models/supplied.d.ts +21 -5
- package/dist/src/vaults/api/models/tvl-history.d.ts +11 -2
- package/dist/src/vaults/api/models/ultra-coin-info.d.ts +23 -6
- package/dist/src/vaults/api/models/update-vault-strategies.d.ts +24 -6
- package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-created-event.d.ts +29 -7
- package/dist/src/vaults/api/models/vault-deposit-event.d.ts +32 -9
- package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +26 -7
- package/dist/src/vaults/api/models/vault-detail.d.ts +125 -37
- package/dist/src/vaults/api/models/vault-detail.js +11 -6
- package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-info.d.ts +38 -11
- package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +14 -3
- package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +20 -5
- package/dist/src/vaults/api/models/vault-protocol.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-slice.d.ts +20 -5
- package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +23 -6
- package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +26 -7
- package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +17 -4
- package/package.json +4 -3
|
@@ -25,6 +25,7 @@ const common_1 = require("../common");
|
|
|
25
25
|
const base_1 = require("../base");
|
|
26
26
|
/**
|
|
27
27
|
* VaultsApi - axios parameter creator
|
|
28
|
+
* @export
|
|
28
29
|
*/
|
|
29
30
|
const VaultsApiAxiosParamCreator = function (configuration) {
|
|
30
31
|
return {
|
|
@@ -43,22 +44,18 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
43
44
|
if (configuration) {
|
|
44
45
|
baseOptions = configuration.baseOptions;
|
|
45
46
|
}
|
|
46
|
-
const localVarRequestOptions = { method:
|
|
47
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
47
48
|
const localVarHeaderParameter = {};
|
|
48
49
|
const localVarQueryParameter = {};
|
|
49
50
|
if (coinTypes !== undefined) {
|
|
50
|
-
localVarQueryParameter[
|
|
51
|
+
localVarQueryParameter['coinTypes'] = coinTypes;
|
|
51
52
|
}
|
|
52
53
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
53
54
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54
|
-
localVarRequestOptions.headers = {
|
|
55
|
-
...localVarHeaderParameter,
|
|
56
|
-
...headersFromBaseOptions,
|
|
57
|
-
...options.headers
|
|
58
|
-
};
|
|
55
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
59
56
|
return {
|
|
60
57
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
61
|
-
options: localVarRequestOptions
|
|
58
|
+
options: localVarRequestOptions,
|
|
62
59
|
};
|
|
63
60
|
},
|
|
64
61
|
/**
|
|
@@ -77,25 +74,21 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
77
74
|
if (configuration) {
|
|
78
75
|
baseOptions = configuration.baseOptions;
|
|
79
76
|
}
|
|
80
|
-
const localVarRequestOptions = { method:
|
|
77
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
81
78
|
const localVarHeaderParameter = {};
|
|
82
79
|
const localVarQueryParameter = {};
|
|
83
80
|
if (limit !== undefined) {
|
|
84
|
-
localVarQueryParameter[
|
|
81
|
+
localVarQueryParameter['limit'] = limit;
|
|
85
82
|
}
|
|
86
83
|
if (interval !== undefined) {
|
|
87
|
-
localVarQueryParameter[
|
|
84
|
+
localVarQueryParameter['interval'] = interval;
|
|
88
85
|
}
|
|
89
86
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
90
87
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
91
|
-
localVarRequestOptions.headers = {
|
|
92
|
-
...localVarHeaderParameter,
|
|
93
|
-
...headersFromBaseOptions,
|
|
94
|
-
...options.headers
|
|
95
|
-
};
|
|
88
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
96
89
|
return {
|
|
97
90
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
98
|
-
options: localVarRequestOptions
|
|
91
|
+
options: localVarRequestOptions,
|
|
99
92
|
};
|
|
100
93
|
},
|
|
101
94
|
/**
|
|
@@ -114,25 +107,21 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
114
107
|
if (configuration) {
|
|
115
108
|
baseOptions = configuration.baseOptions;
|
|
116
109
|
}
|
|
117
|
-
const localVarRequestOptions = { method:
|
|
110
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
118
111
|
const localVarHeaderParameter = {};
|
|
119
112
|
const localVarQueryParameter = {};
|
|
120
113
|
if (limit !== undefined) {
|
|
121
|
-
localVarQueryParameter[
|
|
114
|
+
localVarQueryParameter['limit'] = limit;
|
|
122
115
|
}
|
|
123
116
|
if (interval !== undefined) {
|
|
124
|
-
localVarQueryParameter[
|
|
117
|
+
localVarQueryParameter['interval'] = interval;
|
|
125
118
|
}
|
|
126
119
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
127
120
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
128
|
-
localVarRequestOptions.headers = {
|
|
129
|
-
...localVarHeaderParameter,
|
|
130
|
-
...headersFromBaseOptions,
|
|
131
|
-
...options.headers
|
|
132
|
-
};
|
|
121
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
133
122
|
return {
|
|
134
123
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
135
|
-
options: localVarRequestOptions
|
|
124
|
+
options: localVarRequestOptions,
|
|
136
125
|
};
|
|
137
126
|
},
|
|
138
127
|
/**
|
|
@@ -147,7 +136,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
147
136
|
*/
|
|
148
137
|
getRawEvents: async (startTimeInMs, endTimeInMs, limit, page, options = {}) => {
|
|
149
138
|
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
150
|
-
(0, common_1.assertParamExists)(
|
|
139
|
+
(0, common_1.assertParamExists)('getRawEvents', 'startTimeInMs', startTimeInMs);
|
|
151
140
|
const localVarPath = `/api/v1/vaults/raw-events`;
|
|
152
141
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
153
142
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -155,31 +144,27 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
155
144
|
if (configuration) {
|
|
156
145
|
baseOptions = configuration.baseOptions;
|
|
157
146
|
}
|
|
158
|
-
const localVarRequestOptions = { method:
|
|
147
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
159
148
|
const localVarHeaderParameter = {};
|
|
160
149
|
const localVarQueryParameter = {};
|
|
161
150
|
if (startTimeInMs !== undefined) {
|
|
162
|
-
localVarQueryParameter[
|
|
151
|
+
localVarQueryParameter['startTimeInMs'] = startTimeInMs;
|
|
163
152
|
}
|
|
164
153
|
if (endTimeInMs !== undefined) {
|
|
165
|
-
localVarQueryParameter[
|
|
154
|
+
localVarQueryParameter['endTimeInMs'] = endTimeInMs;
|
|
166
155
|
}
|
|
167
156
|
if (limit !== undefined) {
|
|
168
|
-
localVarQueryParameter[
|
|
157
|
+
localVarQueryParameter['limit'] = limit;
|
|
169
158
|
}
|
|
170
159
|
if (page !== undefined) {
|
|
171
|
-
localVarQueryParameter[
|
|
160
|
+
localVarQueryParameter['page'] = page;
|
|
172
161
|
}
|
|
173
162
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
174
163
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
|
-
localVarRequestOptions.headers = {
|
|
176
|
-
...localVarHeaderParameter,
|
|
177
|
-
...headersFromBaseOptions,
|
|
178
|
-
...options.headers
|
|
179
|
-
};
|
|
164
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
180
165
|
return {
|
|
181
166
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
182
|
-
options: localVarRequestOptions
|
|
167
|
+
options: localVarRequestOptions,
|
|
183
168
|
};
|
|
184
169
|
},
|
|
185
170
|
/**
|
|
@@ -193,33 +178,30 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
193
178
|
*/
|
|
194
179
|
getVaultApyHistory: async (vaultId, limit, interval, options = {}) => {
|
|
195
180
|
// verify required parameter 'vaultId' is not null or undefined
|
|
196
|
-
(0, common_1.assertParamExists)(
|
|
197
|
-
const localVarPath = `/api/v1/vaults/apy-history/{vaultId}
|
|
181
|
+
(0, common_1.assertParamExists)('getVaultApyHistory', 'vaultId', vaultId);
|
|
182
|
+
const localVarPath = `/api/v1/vaults/apy-history/{vaultId}`
|
|
183
|
+
.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
198
184
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
199
185
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
200
186
|
let baseOptions;
|
|
201
187
|
if (configuration) {
|
|
202
188
|
baseOptions = configuration.baseOptions;
|
|
203
189
|
}
|
|
204
|
-
const localVarRequestOptions = { method:
|
|
190
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
205
191
|
const localVarHeaderParameter = {};
|
|
206
192
|
const localVarQueryParameter = {};
|
|
207
193
|
if (limit !== undefined) {
|
|
208
|
-
localVarQueryParameter[
|
|
194
|
+
localVarQueryParameter['limit'] = limit;
|
|
209
195
|
}
|
|
210
196
|
if (interval !== undefined) {
|
|
211
|
-
localVarQueryParameter[
|
|
197
|
+
localVarQueryParameter['interval'] = interval;
|
|
212
198
|
}
|
|
213
199
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
214
200
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
215
|
-
localVarRequestOptions.headers = {
|
|
216
|
-
...localVarHeaderParameter,
|
|
217
|
-
...headersFromBaseOptions,
|
|
218
|
-
...options.headers
|
|
219
|
-
};
|
|
201
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
220
202
|
return {
|
|
221
203
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
222
|
-
options: localVarRequestOptions
|
|
204
|
+
options: localVarRequestOptions,
|
|
223
205
|
};
|
|
224
206
|
},
|
|
225
207
|
/**
|
|
@@ -231,27 +213,24 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
231
213
|
*/
|
|
232
214
|
getVaultExposure: async (vaultId, options = {}) => {
|
|
233
215
|
// verify required parameter 'vaultId' is not null or undefined
|
|
234
|
-
(0, common_1.assertParamExists)(
|
|
235
|
-
const localVarPath = `/api/v1/vaults/exposure/{vaultId}
|
|
216
|
+
(0, common_1.assertParamExists)('getVaultExposure', 'vaultId', vaultId);
|
|
217
|
+
const localVarPath = `/api/v1/vaults/exposure/{vaultId}`
|
|
218
|
+
.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
236
219
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
237
220
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
238
221
|
let baseOptions;
|
|
239
222
|
if (configuration) {
|
|
240
223
|
baseOptions = configuration.baseOptions;
|
|
241
224
|
}
|
|
242
|
-
const localVarRequestOptions = { method:
|
|
225
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
243
226
|
const localVarHeaderParameter = {};
|
|
244
227
|
const localVarQueryParameter = {};
|
|
245
228
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
246
229
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
247
|
-
localVarRequestOptions.headers = {
|
|
248
|
-
...localVarHeaderParameter,
|
|
249
|
-
...headersFromBaseOptions,
|
|
250
|
-
...options.headers
|
|
251
|
-
};
|
|
230
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
252
231
|
return {
|
|
253
232
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
254
|
-
options: localVarRequestOptions
|
|
233
|
+
options: localVarRequestOptions,
|
|
255
234
|
};
|
|
256
235
|
},
|
|
257
236
|
/**
|
|
@@ -265,33 +244,30 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
265
244
|
*/
|
|
266
245
|
getVaultPnlHistory: async (vaultId, limit, interval, options = {}) => {
|
|
267
246
|
// verify required parameter 'vaultId' is not null or undefined
|
|
268
|
-
(0, common_1.assertParamExists)(
|
|
269
|
-
const localVarPath = `/api/v1/vaults/pnl-history/{vaultId}
|
|
247
|
+
(0, common_1.assertParamExists)('getVaultPnlHistory', 'vaultId', vaultId);
|
|
248
|
+
const localVarPath = `/api/v1/vaults/pnl-history/{vaultId}`
|
|
249
|
+
.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
270
250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
271
251
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
272
252
|
let baseOptions;
|
|
273
253
|
if (configuration) {
|
|
274
254
|
baseOptions = configuration.baseOptions;
|
|
275
255
|
}
|
|
276
|
-
const localVarRequestOptions = { method:
|
|
256
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
277
257
|
const localVarHeaderParameter = {};
|
|
278
258
|
const localVarQueryParameter = {};
|
|
279
259
|
if (limit !== undefined) {
|
|
280
|
-
localVarQueryParameter[
|
|
260
|
+
localVarQueryParameter['limit'] = limit;
|
|
281
261
|
}
|
|
282
262
|
if (interval !== undefined) {
|
|
283
|
-
localVarQueryParameter[
|
|
263
|
+
localVarQueryParameter['interval'] = interval;
|
|
284
264
|
}
|
|
285
265
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
286
266
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
287
|
-
localVarRequestOptions.headers = {
|
|
288
|
-
...localVarHeaderParameter,
|
|
289
|
-
...headersFromBaseOptions,
|
|
290
|
-
...options.headers
|
|
291
|
-
};
|
|
267
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
292
268
|
return {
|
|
293
269
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
294
|
-
options: localVarRequestOptions
|
|
270
|
+
options: localVarRequestOptions,
|
|
295
271
|
};
|
|
296
272
|
},
|
|
297
273
|
/**
|
|
@@ -305,33 +281,30 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
305
281
|
*/
|
|
306
282
|
getVaultSharePriceHistory: async (vaultId, limit, interval, options = {}) => {
|
|
307
283
|
// verify required parameter 'vaultId' is not null or undefined
|
|
308
|
-
(0, common_1.assertParamExists)(
|
|
309
|
-
const localVarPath = `/api/v1/vaults/share-price-history/{vaultId}
|
|
284
|
+
(0, common_1.assertParamExists)('getVaultSharePriceHistory', 'vaultId', vaultId);
|
|
285
|
+
const localVarPath = `/api/v1/vaults/share-price-history/{vaultId}`
|
|
286
|
+
.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
310
287
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
311
288
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
312
289
|
let baseOptions;
|
|
313
290
|
if (configuration) {
|
|
314
291
|
baseOptions = configuration.baseOptions;
|
|
315
292
|
}
|
|
316
|
-
const localVarRequestOptions = { method:
|
|
293
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
317
294
|
const localVarHeaderParameter = {};
|
|
318
295
|
const localVarQueryParameter = {};
|
|
319
296
|
if (limit !== undefined) {
|
|
320
|
-
localVarQueryParameter[
|
|
297
|
+
localVarQueryParameter['limit'] = limit;
|
|
321
298
|
}
|
|
322
299
|
if (interval !== undefined) {
|
|
323
|
-
localVarQueryParameter[
|
|
300
|
+
localVarQueryParameter['interval'] = interval;
|
|
324
301
|
}
|
|
325
302
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
326
303
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
327
|
-
localVarRequestOptions.headers = {
|
|
328
|
-
...localVarHeaderParameter,
|
|
329
|
-
...headersFromBaseOptions,
|
|
330
|
-
...options.headers
|
|
331
|
-
};
|
|
304
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
332
305
|
return {
|
|
333
306
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
334
|
-
options: localVarRequestOptions
|
|
307
|
+
options: localVarRequestOptions,
|
|
335
308
|
};
|
|
336
309
|
},
|
|
337
310
|
/**
|
|
@@ -343,27 +316,24 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
343
316
|
*/
|
|
344
317
|
getVaultStrategy: async (vaultId, options = {}) => {
|
|
345
318
|
// verify required parameter 'vaultId' is not null or undefined
|
|
346
|
-
(0, common_1.assertParamExists)(
|
|
347
|
-
const localVarPath = `/api/v1/vaults/strategy/{vaultId}
|
|
319
|
+
(0, common_1.assertParamExists)('getVaultStrategy', 'vaultId', vaultId);
|
|
320
|
+
const localVarPath = `/api/v1/vaults/strategy/{vaultId}`
|
|
321
|
+
.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
348
322
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
349
323
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
350
324
|
let baseOptions;
|
|
351
325
|
if (configuration) {
|
|
352
326
|
baseOptions = configuration.baseOptions;
|
|
353
327
|
}
|
|
354
|
-
const localVarRequestOptions = { method:
|
|
328
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
355
329
|
const localVarHeaderParameter = {};
|
|
356
330
|
const localVarQueryParameter = {};
|
|
357
331
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
358
332
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
359
|
-
localVarRequestOptions.headers = {
|
|
360
|
-
...localVarHeaderParameter,
|
|
361
|
-
...headersFromBaseOptions,
|
|
362
|
-
...options.headers
|
|
363
|
-
};
|
|
333
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
364
334
|
return {
|
|
365
335
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
366
|
-
options: localVarRequestOptions
|
|
336
|
+
options: localVarRequestOptions,
|
|
367
337
|
};
|
|
368
338
|
},
|
|
369
339
|
/**
|
|
@@ -377,33 +347,30 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
377
347
|
*/
|
|
378
348
|
getVaultTvlHistory: async (vaultId, limit, interval, options = {}) => {
|
|
379
349
|
// verify required parameter 'vaultId' is not null or undefined
|
|
380
|
-
(0, common_1.assertParamExists)(
|
|
381
|
-
const localVarPath = `/api/v1/vaults/tvl-history/{vaultId}
|
|
350
|
+
(0, common_1.assertParamExists)('getVaultTvlHistory', 'vaultId', vaultId);
|
|
351
|
+
const localVarPath = `/api/v1/vaults/tvl-history/{vaultId}`
|
|
352
|
+
.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
382
353
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
383
354
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
384
355
|
let baseOptions;
|
|
385
356
|
if (configuration) {
|
|
386
357
|
baseOptions = configuration.baseOptions;
|
|
387
358
|
}
|
|
388
|
-
const localVarRequestOptions = { method:
|
|
359
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
389
360
|
const localVarHeaderParameter = {};
|
|
390
361
|
const localVarQueryParameter = {};
|
|
391
362
|
if (limit !== undefined) {
|
|
392
|
-
localVarQueryParameter[
|
|
363
|
+
localVarQueryParameter['limit'] = limit;
|
|
393
364
|
}
|
|
394
365
|
if (interval !== undefined) {
|
|
395
|
-
localVarQueryParameter[
|
|
366
|
+
localVarQueryParameter['interval'] = interval;
|
|
396
367
|
}
|
|
397
368
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
398
369
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
399
|
-
localVarRequestOptions.headers = {
|
|
400
|
-
...localVarHeaderParameter,
|
|
401
|
-
...headersFromBaseOptions,
|
|
402
|
-
...options.headers
|
|
403
|
-
};
|
|
370
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
404
371
|
return {
|
|
405
372
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
406
|
-
options: localVarRequestOptions
|
|
373
|
+
options: localVarRequestOptions,
|
|
407
374
|
};
|
|
408
375
|
},
|
|
409
376
|
/**
|
|
@@ -422,25 +389,21 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
422
389
|
if (configuration) {
|
|
423
390
|
baseOptions = configuration.baseOptions;
|
|
424
391
|
}
|
|
425
|
-
const localVarRequestOptions = { method:
|
|
392
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
426
393
|
const localVarHeaderParameter = {};
|
|
427
394
|
const localVarQueryParameter = {};
|
|
428
395
|
if (vaultId !== undefined) {
|
|
429
|
-
localVarQueryParameter[
|
|
396
|
+
localVarQueryParameter['vaultId'] = vaultId;
|
|
430
397
|
}
|
|
431
398
|
if (receiptCoinSymbol !== undefined) {
|
|
432
|
-
localVarQueryParameter[
|
|
399
|
+
localVarQueryParameter['receiptCoinSymbol'] = receiptCoinSymbol;
|
|
433
400
|
}
|
|
434
401
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
435
402
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
436
|
-
localVarRequestOptions.headers = {
|
|
437
|
-
...localVarHeaderParameter,
|
|
438
|
-
...headersFromBaseOptions,
|
|
439
|
-
...options.headers
|
|
440
|
-
};
|
|
403
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
441
404
|
return {
|
|
442
405
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
443
|
-
options: localVarRequestOptions
|
|
406
|
+
options: localVarRequestOptions,
|
|
444
407
|
};
|
|
445
408
|
},
|
|
446
409
|
/**
|
|
@@ -457,19 +420,15 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
457
420
|
if (configuration) {
|
|
458
421
|
baseOptions = configuration.baseOptions;
|
|
459
422
|
}
|
|
460
|
-
const localVarRequestOptions = { method:
|
|
423
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
461
424
|
const localVarHeaderParameter = {};
|
|
462
425
|
const localVarQueryParameter = {};
|
|
463
426
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
464
427
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
465
|
-
localVarRequestOptions.headers = {
|
|
466
|
-
...localVarHeaderParameter,
|
|
467
|
-
...headersFromBaseOptions,
|
|
468
|
-
...options.headers
|
|
469
|
-
};
|
|
428
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
470
429
|
return {
|
|
471
430
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
472
|
-
options: localVarRequestOptions
|
|
431
|
+
options: localVarRequestOptions,
|
|
473
432
|
};
|
|
474
433
|
},
|
|
475
434
|
/**
|
|
@@ -481,7 +440,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
481
440
|
*/
|
|
482
441
|
updateVaultStrategy: async (updateVaultStrategies, options = {}) => {
|
|
483
442
|
// verify required parameter 'updateVaultStrategies' is not null or undefined
|
|
484
|
-
(0, common_1.assertParamExists)(
|
|
443
|
+
(0, common_1.assertParamExists)('updateVaultStrategy', 'updateVaultStrategies', updateVaultStrategies);
|
|
485
444
|
const localVarPath = `/api/v1/vaults/strategy`;
|
|
486
445
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
487
446
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -489,28 +448,25 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
489
448
|
if (configuration) {
|
|
490
449
|
baseOptions = configuration.baseOptions;
|
|
491
450
|
}
|
|
492
|
-
const localVarRequestOptions = { method:
|
|
451
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
493
452
|
const localVarHeaderParameter = {};
|
|
494
453
|
const localVarQueryParameter = {};
|
|
495
|
-
localVarHeaderParameter[
|
|
454
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
496
455
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
497
456
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
498
|
-
localVarRequestOptions.headers = {
|
|
499
|
-
...localVarHeaderParameter,
|
|
500
|
-
...headersFromBaseOptions,
|
|
501
|
-
...options.headers
|
|
502
|
-
};
|
|
457
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
503
458
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVaultStrategies, localVarRequestOptions, configuration);
|
|
504
459
|
return {
|
|
505
460
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
506
|
-
options: localVarRequestOptions
|
|
461
|
+
options: localVarRequestOptions,
|
|
507
462
|
};
|
|
508
|
-
}
|
|
463
|
+
},
|
|
509
464
|
};
|
|
510
465
|
};
|
|
511
466
|
exports.VaultsApiAxiosParamCreator = VaultsApiAxiosParamCreator;
|
|
512
467
|
/**
|
|
513
468
|
* VaultsApi - functional programming interface
|
|
469
|
+
* @export
|
|
514
470
|
*/
|
|
515
471
|
const VaultsApiFp = function (configuration) {
|
|
516
472
|
const localVarAxiosParamCreator = (0, exports.VaultsApiAxiosParamCreator)(configuration);
|
|
@@ -525,7 +481,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
525
481
|
async getCoinsPrice(coinTypes, options) {
|
|
526
482
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCoinsPrice(coinTypes, options);
|
|
527
483
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
528
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
484
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getCoinsPrice']?.[localVarOperationServerIndex]?.url;
|
|
529
485
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
530
486
|
},
|
|
531
487
|
/**
|
|
@@ -539,7 +495,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
539
495
|
async getProtocolPnlHistory(limit, interval, options) {
|
|
540
496
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolPnlHistory(limit, interval, options);
|
|
541
497
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
542
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
498
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getProtocolPnlHistory']?.[localVarOperationServerIndex]?.url;
|
|
543
499
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
544
500
|
},
|
|
545
501
|
/**
|
|
@@ -553,7 +509,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
553
509
|
async getProtocolTvlHistory(limit, interval, options) {
|
|
554
510
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolTvlHistory(limit, interval, options);
|
|
555
511
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
556
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
512
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getProtocolTvlHistory']?.[localVarOperationServerIndex]?.url;
|
|
557
513
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
558
514
|
},
|
|
559
515
|
/**
|
|
@@ -569,7 +525,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
569
525
|
async getRawEvents(startTimeInMs, endTimeInMs, limit, page, options) {
|
|
570
526
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRawEvents(startTimeInMs, endTimeInMs, limit, page, options);
|
|
571
527
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
572
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
528
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getRawEvents']?.[localVarOperationServerIndex]?.url;
|
|
573
529
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
574
530
|
},
|
|
575
531
|
/**
|
|
@@ -584,7 +540,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
584
540
|
async getVaultApyHistory(vaultId, limit, interval, options) {
|
|
585
541
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultApyHistory(vaultId, limit, interval, options);
|
|
586
542
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
587
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
543
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultApyHistory']?.[localVarOperationServerIndex]?.url;
|
|
588
544
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
589
545
|
},
|
|
590
546
|
/**
|
|
@@ -597,7 +553,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
597
553
|
async getVaultExposure(vaultId, options) {
|
|
598
554
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultExposure(vaultId, options);
|
|
599
555
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
600
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
556
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultExposure']?.[localVarOperationServerIndex]?.url;
|
|
601
557
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
602
558
|
},
|
|
603
559
|
/**
|
|
@@ -612,7 +568,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
612
568
|
async getVaultPnlHistory(vaultId, limit, interval, options) {
|
|
613
569
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultPnlHistory(vaultId, limit, interval, options);
|
|
614
570
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
615
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
571
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultPnlHistory']?.[localVarOperationServerIndex]?.url;
|
|
616
572
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
617
573
|
},
|
|
618
574
|
/**
|
|
@@ -627,7 +583,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
627
583
|
async getVaultSharePriceHistory(vaultId, limit, interval, options) {
|
|
628
584
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultSharePriceHistory(vaultId, limit, interval, options);
|
|
629
585
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
630
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
586
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultSharePriceHistory']?.[localVarOperationServerIndex]?.url;
|
|
631
587
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
632
588
|
},
|
|
633
589
|
/**
|
|
@@ -640,7 +596,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
640
596
|
async getVaultStrategy(vaultId, options) {
|
|
641
597
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultStrategy(vaultId, options);
|
|
642
598
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
643
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
599
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultStrategy']?.[localVarOperationServerIndex]?.url;
|
|
644
600
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
645
601
|
},
|
|
646
602
|
/**
|
|
@@ -655,7 +611,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
655
611
|
async getVaultTvlHistory(vaultId, limit, interval, options) {
|
|
656
612
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultTvlHistory(vaultId, limit, interval, options);
|
|
657
613
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
658
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
614
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultTvlHistory']?.[localVarOperationServerIndex]?.url;
|
|
659
615
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
660
616
|
},
|
|
661
617
|
/**
|
|
@@ -669,8 +625,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
669
625
|
async getVaults(vaultId, receiptCoinSymbol, options) {
|
|
670
626
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaults(vaultId, receiptCoinSymbol, options);
|
|
671
627
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
672
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
673
|
-
?.url;
|
|
628
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaults']?.[localVarOperationServerIndex]?.url;
|
|
674
629
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
675
630
|
},
|
|
676
631
|
/**
|
|
@@ -682,7 +637,7 @@ const VaultsApiFp = function (configuration) {
|
|
|
682
637
|
async getVaultsProtocolInfo(options) {
|
|
683
638
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsProtocolInfo(options);
|
|
684
639
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
685
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
640
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultsProtocolInfo']?.[localVarOperationServerIndex]?.url;
|
|
686
641
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
687
642
|
},
|
|
688
643
|
/**
|
|
@@ -695,14 +650,15 @@ const VaultsApiFp = function (configuration) {
|
|
|
695
650
|
async updateVaultStrategy(updateVaultStrategies, options) {
|
|
696
651
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateVaultStrategy(updateVaultStrategies, options);
|
|
697
652
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
698
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
653
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.updateVaultStrategy']?.[localVarOperationServerIndex]?.url;
|
|
699
654
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
700
|
-
}
|
|
655
|
+
},
|
|
701
656
|
};
|
|
702
657
|
};
|
|
703
658
|
exports.VaultsApiFp = VaultsApiFp;
|
|
704
659
|
/**
|
|
705
660
|
* VaultsApi - factory interface
|
|
661
|
+
* @export
|
|
706
662
|
*/
|
|
707
663
|
const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
708
664
|
const localVarFp = (0, exports.VaultsApiFp)(configuration);
|
|
@@ -715,9 +671,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
715
671
|
* @throws {RequiredError}
|
|
716
672
|
*/
|
|
717
673
|
getCoinsPrice(coinTypes, options) {
|
|
718
|
-
return localVarFp
|
|
719
|
-
.getCoinsPrice(coinTypes, options)
|
|
720
|
-
.then(request => request(axios, basePath));
|
|
674
|
+
return localVarFp.getCoinsPrice(coinTypes, options).then((request) => request(axios, basePath));
|
|
721
675
|
},
|
|
722
676
|
/**
|
|
723
677
|
*
|
|
@@ -728,9 +682,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
728
682
|
* @throws {RequiredError}
|
|
729
683
|
*/
|
|
730
684
|
getProtocolPnlHistory(limit, interval, options) {
|
|
731
|
-
return localVarFp
|
|
732
|
-
.getProtocolPnlHistory(limit, interval, options)
|
|
733
|
-
.then(request => request(axios, basePath));
|
|
685
|
+
return localVarFp.getProtocolPnlHistory(limit, interval, options).then((request) => request(axios, basePath));
|
|
734
686
|
},
|
|
735
687
|
/**
|
|
736
688
|
*
|
|
@@ -741,9 +693,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
741
693
|
* @throws {RequiredError}
|
|
742
694
|
*/
|
|
743
695
|
getProtocolTvlHistory(limit, interval, options) {
|
|
744
|
-
return localVarFp
|
|
745
|
-
.getProtocolTvlHistory(limit, interval, options)
|
|
746
|
-
.then(request => request(axios, basePath));
|
|
696
|
+
return localVarFp.getProtocolTvlHistory(limit, interval, options).then((request) => request(axios, basePath));
|
|
747
697
|
},
|
|
748
698
|
/**
|
|
749
699
|
*
|
|
@@ -756,9 +706,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
756
706
|
* @throws {RequiredError}
|
|
757
707
|
*/
|
|
758
708
|
getRawEvents(startTimeInMs, endTimeInMs, limit, page, options) {
|
|
759
|
-
return localVarFp
|
|
760
|
-
.getRawEvents(startTimeInMs, endTimeInMs, limit, page, options)
|
|
761
|
-
.then(request => request(axios, basePath));
|
|
709
|
+
return localVarFp.getRawEvents(startTimeInMs, endTimeInMs, limit, page, options).then((request) => request(axios, basePath));
|
|
762
710
|
},
|
|
763
711
|
/**
|
|
764
712
|
*
|
|
@@ -770,9 +718,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
770
718
|
* @throws {RequiredError}
|
|
771
719
|
*/
|
|
772
720
|
getVaultApyHistory(vaultId, limit, interval, options) {
|
|
773
|
-
return localVarFp
|
|
774
|
-
.getVaultApyHistory(vaultId, limit, interval, options)
|
|
775
|
-
.then(request => request(axios, basePath));
|
|
721
|
+
return localVarFp.getVaultApyHistory(vaultId, limit, interval, options).then((request) => request(axios, basePath));
|
|
776
722
|
},
|
|
777
723
|
/**
|
|
778
724
|
*
|
|
@@ -782,9 +728,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
782
728
|
* @throws {RequiredError}
|
|
783
729
|
*/
|
|
784
730
|
getVaultExposure(vaultId, options) {
|
|
785
|
-
return localVarFp
|
|
786
|
-
.getVaultExposure(vaultId, options)
|
|
787
|
-
.then(request => request(axios, basePath));
|
|
731
|
+
return localVarFp.getVaultExposure(vaultId, options).then((request) => request(axios, basePath));
|
|
788
732
|
},
|
|
789
733
|
/**
|
|
790
734
|
*
|
|
@@ -796,9 +740,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
796
740
|
* @throws {RequiredError}
|
|
797
741
|
*/
|
|
798
742
|
getVaultPnlHistory(vaultId, limit, interval, options) {
|
|
799
|
-
return localVarFp
|
|
800
|
-
.getVaultPnlHistory(vaultId, limit, interval, options)
|
|
801
|
-
.then(request => request(axios, basePath));
|
|
743
|
+
return localVarFp.getVaultPnlHistory(vaultId, limit, interval, options).then((request) => request(axios, basePath));
|
|
802
744
|
},
|
|
803
745
|
/**
|
|
804
746
|
*
|
|
@@ -810,9 +752,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
810
752
|
* @throws {RequiredError}
|
|
811
753
|
*/
|
|
812
754
|
getVaultSharePriceHistory(vaultId, limit, interval, options) {
|
|
813
|
-
return localVarFp
|
|
814
|
-
.getVaultSharePriceHistory(vaultId, limit, interval, options)
|
|
815
|
-
.then(request => request(axios, basePath));
|
|
755
|
+
return localVarFp.getVaultSharePriceHistory(vaultId, limit, interval, options).then((request) => request(axios, basePath));
|
|
816
756
|
},
|
|
817
757
|
/**
|
|
818
758
|
*
|
|
@@ -822,9 +762,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
822
762
|
* @throws {RequiredError}
|
|
823
763
|
*/
|
|
824
764
|
getVaultStrategy(vaultId, options) {
|
|
825
|
-
return localVarFp
|
|
826
|
-
.getVaultStrategy(vaultId, options)
|
|
827
|
-
.then(request => request(axios, basePath));
|
|
765
|
+
return localVarFp.getVaultStrategy(vaultId, options).then((request) => request(axios, basePath));
|
|
828
766
|
},
|
|
829
767
|
/**
|
|
830
768
|
*
|
|
@@ -836,9 +774,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
836
774
|
* @throws {RequiredError}
|
|
837
775
|
*/
|
|
838
776
|
getVaultTvlHistory(vaultId, limit, interval, options) {
|
|
839
|
-
return localVarFp
|
|
840
|
-
.getVaultTvlHistory(vaultId, limit, interval, options)
|
|
841
|
-
.then(request => request(axios, basePath));
|
|
777
|
+
return localVarFp.getVaultTvlHistory(vaultId, limit, interval, options).then((request) => request(axios, basePath));
|
|
842
778
|
},
|
|
843
779
|
/**
|
|
844
780
|
*
|
|
@@ -849,9 +785,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
849
785
|
* @throws {RequiredError}
|
|
850
786
|
*/
|
|
851
787
|
getVaults(vaultId, receiptCoinSymbol, options) {
|
|
852
|
-
return localVarFp
|
|
853
|
-
.getVaults(vaultId, receiptCoinSymbol, options)
|
|
854
|
-
.then(request => request(axios, basePath));
|
|
788
|
+
return localVarFp.getVaults(vaultId, receiptCoinSymbol, options).then((request) => request(axios, basePath));
|
|
855
789
|
},
|
|
856
790
|
/**
|
|
857
791
|
*
|
|
@@ -860,9 +794,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
860
794
|
* @throws {RequiredError}
|
|
861
795
|
*/
|
|
862
796
|
getVaultsProtocolInfo(options) {
|
|
863
|
-
return localVarFp
|
|
864
|
-
.getVaultsProtocolInfo(options)
|
|
865
|
-
.then(request => request(axios, basePath));
|
|
797
|
+
return localVarFp.getVaultsProtocolInfo(options).then((request) => request(axios, basePath));
|
|
866
798
|
},
|
|
867
799
|
/**
|
|
868
800
|
*
|
|
@@ -872,15 +804,16 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
872
804
|
* @throws {RequiredError}
|
|
873
805
|
*/
|
|
874
806
|
updateVaultStrategy(updateVaultStrategies, options) {
|
|
875
|
-
return localVarFp
|
|
876
|
-
|
|
877
|
-
.then(request => request(axios, basePath));
|
|
878
|
-
}
|
|
807
|
+
return localVarFp.updateVaultStrategy(updateVaultStrategies, options).then((request) => request(axios, basePath));
|
|
808
|
+
},
|
|
879
809
|
};
|
|
880
810
|
};
|
|
881
811
|
exports.VaultsApiFactory = VaultsApiFactory;
|
|
882
812
|
/**
|
|
883
813
|
* VaultsApi - object-oriented interface
|
|
814
|
+
* @export
|
|
815
|
+
* @class VaultsApi
|
|
816
|
+
* @extends {BaseAPI}
|
|
884
817
|
*/
|
|
885
818
|
class VaultsApi extends base_1.BaseAPI {
|
|
886
819
|
/**
|
|
@@ -889,11 +822,10 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
889
822
|
* @param {string} [coinTypes] The coin types of the coins
|
|
890
823
|
* @param {*} [options] Override http request option.
|
|
891
824
|
* @throws {RequiredError}
|
|
825
|
+
* @memberof VaultsApi
|
|
892
826
|
*/
|
|
893
827
|
getCoinsPrice(coinTypes, options) {
|
|
894
|
-
return (0, exports.VaultsApiFp)(this.configuration)
|
|
895
|
-
.getCoinsPrice(coinTypes, options)
|
|
896
|
-
.then(request => request(this.axios, this.basePath));
|
|
828
|
+
return (0, exports.VaultsApiFp)(this.configuration).getCoinsPrice(coinTypes, options).then((request) => request(this.axios, this.basePath));
|
|
897
829
|
}
|
|
898
830
|
/**
|
|
899
831
|
*
|
|
@@ -902,11 +834,10 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
902
834
|
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
903
835
|
* @param {*} [options] Override http request option.
|
|
904
836
|
* @throws {RequiredError}
|
|
837
|
+
* @memberof VaultsApi
|
|
905
838
|
*/
|
|
906
839
|
getProtocolPnlHistory(limit, interval, options) {
|
|
907
|
-
return (0, exports.VaultsApiFp)(this.configuration)
|
|
908
|
-
.getProtocolPnlHistory(limit, interval, options)
|
|
909
|
-
.then(request => request(this.axios, this.basePath));
|
|
840
|
+
return (0, exports.VaultsApiFp)(this.configuration).getProtocolPnlHistory(limit, interval, options).then((request) => request(this.axios, this.basePath));
|
|
910
841
|
}
|
|
911
842
|
/**
|
|
912
843
|
*
|
|
@@ -915,11 +846,10 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
915
846
|
* @param {HistoryInterval} [interval] The interval of the rows
|
|
916
847
|
* @param {*} [options] Override http request option.
|
|
917
848
|
* @throws {RequiredError}
|
|
849
|
+
* @memberof VaultsApi
|
|
918
850
|
*/
|
|
919
851
|
getProtocolTvlHistory(limit, interval, options) {
|
|
920
|
-
return (0, exports.VaultsApiFp)(this.configuration)
|
|
921
|
-
.getProtocolTvlHistory(limit, interval, options)
|
|
922
|
-
.then(request => request(this.axios, this.basePath));
|
|
852
|
+
return (0, exports.VaultsApiFp)(this.configuration).getProtocolTvlHistory(limit, interval, options).then((request) => request(this.axios, this.basePath));
|
|
923
853
|
}
|
|
924
854
|
/**
|
|
925
855
|
*
|
|
@@ -930,11 +860,10 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
930
860
|
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
931
861
|
* @param {*} [options] Override http request option.
|
|
932
862
|
* @throws {RequiredError}
|
|
863
|
+
* @memberof VaultsApi
|
|
933
864
|
*/
|
|
934
865
|
getRawEvents(startTimeInMs, endTimeInMs, limit, page, options) {
|
|
935
|
-
return (0, exports.VaultsApiFp)(this.configuration)
|
|
936
|
-
.getRawEvents(startTimeInMs, endTimeInMs, limit, page, options)
|
|
937
|
-
.then(request => request(this.axios, this.basePath));
|
|
866
|
+
return (0, exports.VaultsApiFp)(this.configuration).getRawEvents(startTimeInMs, endTimeInMs, limit, page, options).then((request) => request(this.axios, this.basePath));
|
|
938
867
|
}
|
|
939
868
|
/**
|
|
940
869
|
*
|
|
@@ -944,11 +873,10 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
944
873
|
* @param {HistoryInterval} [interval] The interval of the rows
|
|
945
874
|
* @param {*} [options] Override http request option.
|
|
946
875
|
* @throws {RequiredError}
|
|
876
|
+
* @memberof VaultsApi
|
|
947
877
|
*/
|
|
948
878
|
getVaultApyHistory(vaultId, limit, interval, options) {
|
|
949
|
-
return (0, exports.VaultsApiFp)(this.configuration)
|
|
950
|
-
.getVaultApyHistory(vaultId, limit, interval, options)
|
|
951
|
-
.then(request => request(this.axios, this.basePath));
|
|
879
|
+
return (0, exports.VaultsApiFp)(this.configuration).getVaultApyHistory(vaultId, limit, interval, options).then((request) => request(this.axios, this.basePath));
|
|
952
880
|
}
|
|
953
881
|
/**
|
|
954
882
|
*
|
|
@@ -956,11 +884,10 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
956
884
|
* @param {string} vaultId The id of the vault
|
|
957
885
|
* @param {*} [options] Override http request option.
|
|
958
886
|
* @throws {RequiredError}
|
|
887
|
+
* @memberof VaultsApi
|
|
959
888
|
*/
|
|
960
889
|
getVaultExposure(vaultId, options) {
|
|
961
|
-
return (0, exports.VaultsApiFp)(this.configuration)
|
|
962
|
-
.getVaultExposure(vaultId, options)
|
|
963
|
-
.then(request => request(this.axios, this.basePath));
|
|
890
|
+
return (0, exports.VaultsApiFp)(this.configuration).getVaultExposure(vaultId, options).then((request) => request(this.axios, this.basePath));
|
|
964
891
|
}
|
|
965
892
|
/**
|
|
966
893
|
*
|
|
@@ -970,11 +897,10 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
970
897
|
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
971
898
|
* @param {*} [options] Override http request option.
|
|
972
899
|
* @throws {RequiredError}
|
|
900
|
+
* @memberof VaultsApi
|
|
973
901
|
*/
|
|
974
902
|
getVaultPnlHistory(vaultId, limit, interval, options) {
|
|
975
|
-
return (0, exports.VaultsApiFp)(this.configuration)
|
|
976
|
-
.getVaultPnlHistory(vaultId, limit, interval, options)
|
|
977
|
-
.then(request => request(this.axios, this.basePath));
|
|
903
|
+
return (0, exports.VaultsApiFp)(this.configuration).getVaultPnlHistory(vaultId, limit, interval, options).then((request) => request(this.axios, this.basePath));
|
|
978
904
|
}
|
|
979
905
|
/**
|
|
980
906
|
*
|
|
@@ -984,11 +910,10 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
984
910
|
* @param {HistoryInterval} [interval] The interval of the rows
|
|
985
911
|
* @param {*} [options] Override http request option.
|
|
986
912
|
* @throws {RequiredError}
|
|
913
|
+
* @memberof VaultsApi
|
|
987
914
|
*/
|
|
988
915
|
getVaultSharePriceHistory(vaultId, limit, interval, options) {
|
|
989
|
-
return (0, exports.VaultsApiFp)(this.configuration)
|
|
990
|
-
.getVaultSharePriceHistory(vaultId, limit, interval, options)
|
|
991
|
-
.then(request => request(this.axios, this.basePath));
|
|
916
|
+
return (0, exports.VaultsApiFp)(this.configuration).getVaultSharePriceHistory(vaultId, limit, interval, options).then((request) => request(this.axios, this.basePath));
|
|
992
917
|
}
|
|
993
918
|
/**
|
|
994
919
|
*
|
|
@@ -996,11 +921,10 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
996
921
|
* @param {string} vaultId The id of the vault
|
|
997
922
|
* @param {*} [options] Override http request option.
|
|
998
923
|
* @throws {RequiredError}
|
|
924
|
+
* @memberof VaultsApi
|
|
999
925
|
*/
|
|
1000
926
|
getVaultStrategy(vaultId, options) {
|
|
1001
|
-
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1002
|
-
.getVaultStrategy(vaultId, options)
|
|
1003
|
-
.then(request => request(this.axios, this.basePath));
|
|
927
|
+
return (0, exports.VaultsApiFp)(this.configuration).getVaultStrategy(vaultId, options).then((request) => request(this.axios, this.basePath));
|
|
1004
928
|
}
|
|
1005
929
|
/**
|
|
1006
930
|
*
|
|
@@ -1010,11 +934,10 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1010
934
|
* @param {HistoryInterval} [interval] The interval of the rows
|
|
1011
935
|
* @param {*} [options] Override http request option.
|
|
1012
936
|
* @throws {RequiredError}
|
|
937
|
+
* @memberof VaultsApi
|
|
1013
938
|
*/
|
|
1014
939
|
getVaultTvlHistory(vaultId, limit, interval, options) {
|
|
1015
|
-
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1016
|
-
.getVaultTvlHistory(vaultId, limit, interval, options)
|
|
1017
|
-
.then(request => request(this.axios, this.basePath));
|
|
940
|
+
return (0, exports.VaultsApiFp)(this.configuration).getVaultTvlHistory(vaultId, limit, interval, options).then((request) => request(this.axios, this.basePath));
|
|
1018
941
|
}
|
|
1019
942
|
/**
|
|
1020
943
|
*
|
|
@@ -1023,22 +946,20 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1023
946
|
* @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
|
|
1024
947
|
* @param {*} [options] Override http request option.
|
|
1025
948
|
* @throws {RequiredError}
|
|
949
|
+
* @memberof VaultsApi
|
|
1026
950
|
*/
|
|
1027
951
|
getVaults(vaultId, receiptCoinSymbol, options) {
|
|
1028
|
-
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1029
|
-
.getVaults(vaultId, receiptCoinSymbol, options)
|
|
1030
|
-
.then(request => request(this.axios, this.basePath));
|
|
952
|
+
return (0, exports.VaultsApiFp)(this.configuration).getVaults(vaultId, receiptCoinSymbol, options).then((request) => request(this.axios, this.basePath));
|
|
1031
953
|
}
|
|
1032
954
|
/**
|
|
1033
955
|
*
|
|
1034
956
|
* @summary Get protocol info to initialize sdk
|
|
1035
957
|
* @param {*} [options] Override http request option.
|
|
1036
958
|
* @throws {RequiredError}
|
|
959
|
+
* @memberof VaultsApi
|
|
1037
960
|
*/
|
|
1038
961
|
getVaultsProtocolInfo(options) {
|
|
1039
|
-
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1040
|
-
.getVaultsProtocolInfo(options)
|
|
1041
|
-
.then(request => request(this.axios, this.basePath));
|
|
962
|
+
return (0, exports.VaultsApiFp)(this.configuration).getVaultsProtocolInfo(options).then((request) => request(this.axios, this.basePath));
|
|
1042
963
|
}
|
|
1043
964
|
/**
|
|
1044
965
|
*
|
|
@@ -1046,11 +967,10 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1046
967
|
* @param {UpdateVaultStrategies} updateVaultStrategies
|
|
1047
968
|
* @param {*} [options] Override http request option.
|
|
1048
969
|
* @throws {RequiredError}
|
|
970
|
+
* @memberof VaultsApi
|
|
1049
971
|
*/
|
|
1050
972
|
updateVaultStrategy(updateVaultStrategies, options) {
|
|
1051
|
-
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1052
|
-
.updateVaultStrategy(updateVaultStrategies, options)
|
|
1053
|
-
.then(request => request(this.axios, this.basePath));
|
|
973
|
+
return (0, exports.VaultsApiFp)(this.configuration).updateVaultStrategy(updateVaultStrategies, options).then((request) => request(this.axios, this.basePath));
|
|
1054
974
|
}
|
|
1055
975
|
}
|
|
1056
976
|
exports.VaultsApi = VaultsApi;
|