@ember-finance/sdk 1.0.8 → 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 +178 -27
- package/dist/src/vaults/api/apis/accounts-api.js +208 -77
- package/dist/src/vaults/api/apis/vaults-api.d.ts +270 -40
- package/dist/src/vaults/api/apis/vaults-api.js +267 -194
- 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 +42 -0
- package/dist/src/vaults/api/models/apy-history.js +15 -0
- package/dist/src/vaults/api/models/asset.d.ts +26 -7
- package/dist/src/vaults/api/models/borrowed.d.ts +43 -0
- package/dist/src/vaults/api/models/borrowed.js +15 -0
- package/dist/src/vaults/api/models/coin-price.d.ts +30 -0
- package/dist/src/vaults/api/models/coin-price.js +15 -0
- 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 +50 -3
- package/dist/src/vaults/api/models/exposure.d.ts +16 -5
- package/dist/src/vaults/api/models/fee.d.ts +37 -0
- package/dist/src/vaults/api/models/fee.js +15 -0
- 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 -43
- package/dist/src/vaults/api/models/index.js +17 -0
- package/dist/src/vaults/api/models/lp.d.ts +81 -0
- package/dist/src/vaults/api/models/lp.js +15 -0
- 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 +31 -0
- package/dist/src/vaults/api/models/perps.js +15 -0
- package/dist/src/vaults/api/models/pnl-history-interval.d.ts +21 -0
- package/dist/src/vaults/api/models/pnl-history-interval.js +27 -0
- package/dist/src/vaults/api/models/pnl-history.d.ts +17 -2
- package/dist/src/vaults/api/models/position-value.d.ts +54 -0
- package/dist/src/vaults/api/models/position-value.js +15 -0
- package/dist/src/vaults/api/models/position.d.ts +42 -0
- package/dist/src/vaults/api/models/position.js +15 -0
- package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +78 -0
- package/dist/src/vaults/api/models/process-requests-summary-event.js +15 -0
- package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +60 -0
- package/dist/src/vaults/api/models/protocol-fee-collected-event.js +15 -0
- package/dist/src/vaults/api/models/protocol-info.d.ts +20 -6
- package/dist/src/vaults/api/models/protocol.d.ts +17 -13
- package/dist/src/vaults/api/models/protocol.js +0 -8
- package/dist/src/vaults/api/models/raw-event-event-data.d.ts +19 -13
- package/dist/src/vaults/api/models/raw-event.d.ts +44 -20
- package/dist/src/vaults/api/models/raw-event.js +24 -14
- 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 +37 -0
- package/dist/src/vaults/api/models/reward.js +15 -0
- 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 +43 -0
- package/dist/src/vaults/api/models/supplied.js +15 -0
- 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 +60 -0
- package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.js +15 -0
- 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 +48 -0
- package/dist/src/vaults/api/models/vault-platform-fee-charged-event.js +15 -0
- 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 +60 -0
- package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.js +15 -0
- package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +42 -0
- package/dist/src/vaults/api/models/yield-aggregate-value.js +15 -0
- package/dist/src/vaults/on-chain-calls/tx-builder.d.ts +8 -0
- package/dist/src/vaults/on-chain-calls/tx-builder.js +35 -0
- package/dist/src/vaults/on-chain-calls/user.d.ts +9 -0
- package/dist/src/vaults/on-chain-calls/user.js +16 -0
- package/package.json +5 -3
|
@@ -25,6 +25,7 @@ const common_1 = require("../common");
|
|
|
25
25
|
const base_1 = require("../base");
|
|
26
26
|
/**
|
|
27
27
|
* AccountsApi - axios parameter creator
|
|
28
|
+
* @export
|
|
28
29
|
*/
|
|
29
30
|
const AccountsApiAxiosParamCreator = function (configuration) {
|
|
30
31
|
return {
|
|
@@ -37,27 +38,24 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
37
38
|
*/
|
|
38
39
|
getAccountExposure: async (accountAddress, options = {}) => {
|
|
39
40
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
40
|
-
(0, common_1.assertParamExists)(
|
|
41
|
-
const localVarPath = `/api/v1/vaults/exposure/account/{accountAddress}
|
|
41
|
+
(0, common_1.assertParamExists)('getAccountExposure', 'accountAddress', accountAddress);
|
|
42
|
+
const localVarPath = `/api/v1/vaults/exposure/account/{accountAddress}`
|
|
43
|
+
.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
42
44
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
45
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
44
46
|
let baseOptions;
|
|
45
47
|
if (configuration) {
|
|
46
48
|
baseOptions = configuration.baseOptions;
|
|
47
49
|
}
|
|
48
|
-
const localVarRequestOptions = { method:
|
|
50
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
49
51
|
const localVarHeaderParameter = {};
|
|
50
52
|
const localVarQueryParameter = {};
|
|
51
53
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
52
54
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53
|
-
localVarRequestOptions.headers = {
|
|
54
|
-
...localVarHeaderParameter,
|
|
55
|
-
...headersFromBaseOptions,
|
|
56
|
-
...options.headers
|
|
57
|
-
};
|
|
55
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
58
56
|
return {
|
|
59
57
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
60
|
-
options: localVarRequestOptions
|
|
58
|
+
options: localVarRequestOptions,
|
|
61
59
|
};
|
|
62
60
|
},
|
|
63
61
|
/**
|
|
@@ -75,47 +73,77 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
75
73
|
*/
|
|
76
74
|
getAccountHistory: async (accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options = {}) => {
|
|
77
75
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
78
|
-
(0, common_1.assertParamExists)(
|
|
76
|
+
(0, common_1.assertParamExists)('getAccountHistory', 'accountAddress', accountAddress);
|
|
79
77
|
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
80
|
-
(0, common_1.assertParamExists)(
|
|
81
|
-
const localVarPath = `/api/v1/vaults/history/{accountAddress}
|
|
78
|
+
(0, common_1.assertParamExists)('getAccountHistory', 'startTimeInMs', startTimeInMs);
|
|
79
|
+
const localVarPath = `/api/v1/vaults/history/{accountAddress}`
|
|
80
|
+
.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
82
81
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
82
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
84
83
|
let baseOptions;
|
|
85
84
|
if (configuration) {
|
|
86
85
|
baseOptions = configuration.baseOptions;
|
|
87
86
|
}
|
|
88
|
-
const localVarRequestOptions = { method:
|
|
87
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
89
88
|
const localVarHeaderParameter = {};
|
|
90
89
|
const localVarQueryParameter = {};
|
|
91
90
|
if (startTimeInMs !== undefined) {
|
|
92
|
-
localVarQueryParameter[
|
|
91
|
+
localVarQueryParameter['startTimeInMs'] = startTimeInMs;
|
|
93
92
|
}
|
|
94
93
|
if (endTimeInMs !== undefined) {
|
|
95
|
-
localVarQueryParameter[
|
|
94
|
+
localVarQueryParameter['endTimeInMs'] = endTimeInMs;
|
|
96
95
|
}
|
|
97
96
|
if (limit !== undefined) {
|
|
98
|
-
localVarQueryParameter[
|
|
97
|
+
localVarQueryParameter['limit'] = limit;
|
|
99
98
|
}
|
|
100
99
|
if (page !== undefined) {
|
|
101
|
-
localVarQueryParameter[
|
|
100
|
+
localVarQueryParameter['page'] = page;
|
|
102
101
|
}
|
|
103
102
|
if (vaultId !== undefined) {
|
|
104
|
-
localVarQueryParameter[
|
|
103
|
+
localVarQueryParameter['vaultId'] = vaultId;
|
|
105
104
|
}
|
|
106
105
|
if (type !== undefined) {
|
|
107
|
-
localVarQueryParameter[
|
|
106
|
+
localVarQueryParameter['type'] = type;
|
|
108
107
|
}
|
|
109
108
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
110
109
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
111
|
-
localVarRequestOptions.headers = {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
110
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
111
|
+
return {
|
|
112
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
113
|
+
options: localVarRequestOptions,
|
|
115
114
|
};
|
|
115
|
+
},
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @summary Get the positions value of the account
|
|
119
|
+
* @param {string} accountAddress The address of the account
|
|
120
|
+
* @param {string} [vaultId] The id of the vault
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
getAccountPositionsValue: async (accountAddress, vaultId, options = {}) => {
|
|
125
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
126
|
+
(0, common_1.assertParamExists)('getAccountPositionsValue', 'accountAddress', accountAddress);
|
|
127
|
+
const localVarPath = `/api/v1/vaults/positions/account/{accountAddress}`
|
|
128
|
+
.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
130
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
131
|
+
let baseOptions;
|
|
132
|
+
if (configuration) {
|
|
133
|
+
baseOptions = configuration.baseOptions;
|
|
134
|
+
}
|
|
135
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
136
|
+
const localVarHeaderParameter = {};
|
|
137
|
+
const localVarQueryParameter = {};
|
|
138
|
+
if (vaultId !== undefined) {
|
|
139
|
+
localVarQueryParameter['vaultId'] = vaultId;
|
|
140
|
+
}
|
|
141
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
142
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
143
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
116
144
|
return {
|
|
117
145
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
118
|
-
options: localVarRequestOptions
|
|
146
|
+
options: localVarRequestOptions,
|
|
119
147
|
};
|
|
120
148
|
},
|
|
121
149
|
/**
|
|
@@ -133,54 +161,81 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
133
161
|
*/
|
|
134
162
|
getAccountWithdrawalRequests: async (accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options = {}) => {
|
|
135
163
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
136
|
-
(0, common_1.assertParamExists)(
|
|
164
|
+
(0, common_1.assertParamExists)('getAccountWithdrawalRequests', 'accountAddress', accountAddress);
|
|
137
165
|
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
138
|
-
(0, common_1.assertParamExists)(
|
|
139
|
-
const localVarPath = `/api/v1/vaults/withdrawal-requests/{accountAddress}
|
|
166
|
+
(0, common_1.assertParamExists)('getAccountWithdrawalRequests', 'startTimeInMs', startTimeInMs);
|
|
167
|
+
const localVarPath = `/api/v1/vaults/withdrawal-requests/{accountAddress}`
|
|
168
|
+
.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
140
169
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
170
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
142
171
|
let baseOptions;
|
|
143
172
|
if (configuration) {
|
|
144
173
|
baseOptions = configuration.baseOptions;
|
|
145
174
|
}
|
|
146
|
-
const localVarRequestOptions = { method:
|
|
175
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
147
176
|
const localVarHeaderParameter = {};
|
|
148
177
|
const localVarQueryParameter = {};
|
|
149
178
|
if (startTimeInMs !== undefined) {
|
|
150
|
-
localVarQueryParameter[
|
|
179
|
+
localVarQueryParameter['startTimeInMs'] = startTimeInMs;
|
|
151
180
|
}
|
|
152
181
|
if (endTimeInMs !== undefined) {
|
|
153
|
-
localVarQueryParameter[
|
|
182
|
+
localVarQueryParameter['endTimeInMs'] = endTimeInMs;
|
|
154
183
|
}
|
|
155
184
|
if (limit !== undefined) {
|
|
156
|
-
localVarQueryParameter[
|
|
185
|
+
localVarQueryParameter['limit'] = limit;
|
|
157
186
|
}
|
|
158
187
|
if (page !== undefined) {
|
|
159
|
-
localVarQueryParameter[
|
|
188
|
+
localVarQueryParameter['page'] = page;
|
|
160
189
|
}
|
|
161
190
|
if (vaultId !== undefined) {
|
|
162
|
-
localVarQueryParameter[
|
|
191
|
+
localVarQueryParameter['vaultId'] = vaultId;
|
|
163
192
|
}
|
|
164
193
|
if (status !== undefined) {
|
|
165
|
-
localVarQueryParameter[
|
|
194
|
+
localVarQueryParameter['status'] = status;
|
|
166
195
|
}
|
|
167
196
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
168
197
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
169
|
-
localVarRequestOptions.headers = {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
198
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
199
|
+
return {
|
|
200
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
201
|
+
options: localVarRequestOptions,
|
|
173
202
|
};
|
|
203
|
+
},
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @summary Get the yield value of the account
|
|
207
|
+
* @param {string} accountAddress The address of the account
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
*/
|
|
211
|
+
getAccountYieldValue: async (accountAddress, options = {}) => {
|
|
212
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
213
|
+
(0, common_1.assertParamExists)('getAccountYieldValue', 'accountAddress', accountAddress);
|
|
214
|
+
const localVarPath = `/api/v1/vaults/yield/account/{accountAddress}`
|
|
215
|
+
.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
216
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
217
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
218
|
+
let baseOptions;
|
|
219
|
+
if (configuration) {
|
|
220
|
+
baseOptions = configuration.baseOptions;
|
|
221
|
+
}
|
|
222
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
223
|
+
const localVarHeaderParameter = {};
|
|
224
|
+
const localVarQueryParameter = {};
|
|
225
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
226
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
227
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
174
228
|
return {
|
|
175
229
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
176
|
-
options: localVarRequestOptions
|
|
230
|
+
options: localVarRequestOptions,
|
|
177
231
|
};
|
|
178
|
-
}
|
|
232
|
+
},
|
|
179
233
|
};
|
|
180
234
|
};
|
|
181
235
|
exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
|
|
182
236
|
/**
|
|
183
237
|
* AccountsApi - functional programming interface
|
|
238
|
+
* @export
|
|
184
239
|
*/
|
|
185
240
|
const AccountsApiFp = function (configuration) {
|
|
186
241
|
const localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
|
|
@@ -195,7 +250,7 @@ const AccountsApiFp = function (configuration) {
|
|
|
195
250
|
async getAccountExposure(accountAddress, options) {
|
|
196
251
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountExposure(accountAddress, options);
|
|
197
252
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
198
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
253
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountExposure']?.[localVarOperationServerIndex]?.url;
|
|
199
254
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
200
255
|
},
|
|
201
256
|
/**
|
|
@@ -214,7 +269,21 @@ const AccountsApiFp = function (configuration) {
|
|
|
214
269
|
async getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options) {
|
|
215
270
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options);
|
|
216
271
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
217
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
272
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountHistory']?.[localVarOperationServerIndex]?.url;
|
|
273
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
274
|
+
},
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @summary Get the positions value of the account
|
|
278
|
+
* @param {string} accountAddress The address of the account
|
|
279
|
+
* @param {string} [vaultId] The id of the vault
|
|
280
|
+
* @param {*} [options] Override http request option.
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
*/
|
|
283
|
+
async getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
284
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPositionsValue(accountAddress, vaultId, options);
|
|
285
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
286
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountPositionsValue']?.[localVarOperationServerIndex]?.url;
|
|
218
287
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
219
288
|
},
|
|
220
289
|
/**
|
|
@@ -233,14 +302,28 @@ const AccountsApiFp = function (configuration) {
|
|
|
233
302
|
async getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options) {
|
|
234
303
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options);
|
|
235
304
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
236
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
305
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountWithdrawalRequests']?.[localVarOperationServerIndex]?.url;
|
|
237
306
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
238
|
-
}
|
|
307
|
+
},
|
|
308
|
+
/**
|
|
309
|
+
*
|
|
310
|
+
* @summary Get the yield value of the account
|
|
311
|
+
* @param {string} accountAddress The address of the account
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
async getAccountYieldValue(accountAddress, options) {
|
|
316
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountYieldValue(accountAddress, options);
|
|
317
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
318
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountYieldValue']?.[localVarOperationServerIndex]?.url;
|
|
319
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
320
|
+
},
|
|
239
321
|
};
|
|
240
322
|
};
|
|
241
323
|
exports.AccountsApiFp = AccountsApiFp;
|
|
242
324
|
/**
|
|
243
325
|
* AccountsApi - factory interface
|
|
326
|
+
* @export
|
|
244
327
|
*/
|
|
245
328
|
const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
246
329
|
const localVarFp = (0, exports.AccountsApiFp)(configuration);
|
|
@@ -253,9 +336,7 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
253
336
|
* @throws {RequiredError}
|
|
254
337
|
*/
|
|
255
338
|
getAccountExposure(accountAddress, options) {
|
|
256
|
-
return localVarFp
|
|
257
|
-
.getAccountExposure(accountAddress, options)
|
|
258
|
-
.then(request => request(axios, basePath));
|
|
339
|
+
return localVarFp.getAccountExposure(accountAddress, options).then((request) => request(axios, basePath));
|
|
259
340
|
},
|
|
260
341
|
/**
|
|
261
342
|
*
|
|
@@ -271,9 +352,18 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
271
352
|
* @throws {RequiredError}
|
|
272
353
|
*/
|
|
273
354
|
getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options) {
|
|
274
|
-
return localVarFp
|
|
275
|
-
|
|
276
|
-
|
|
355
|
+
return localVarFp.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options).then((request) => request(axios, basePath));
|
|
356
|
+
},
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @summary Get the positions value of the account
|
|
360
|
+
* @param {string} accountAddress The address of the account
|
|
361
|
+
* @param {string} [vaultId] The id of the vault
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
366
|
+
return localVarFp.getAccountPositionsValue(accountAddress, vaultId, options).then((request) => request(axios, basePath));
|
|
277
367
|
},
|
|
278
368
|
/**
|
|
279
369
|
*
|
|
@@ -289,15 +379,26 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
289
379
|
* @throws {RequiredError}
|
|
290
380
|
*/
|
|
291
381
|
getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options) {
|
|
292
|
-
return localVarFp
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
382
|
+
return localVarFp.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options).then((request) => request(axios, basePath));
|
|
383
|
+
},
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @summary Get the yield value of the account
|
|
387
|
+
* @param {string} accountAddress The address of the account
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
*/
|
|
391
|
+
getAccountYieldValue(accountAddress, options) {
|
|
392
|
+
return localVarFp.getAccountYieldValue(accountAddress, options).then((request) => request(axios, basePath));
|
|
393
|
+
},
|
|
296
394
|
};
|
|
297
395
|
};
|
|
298
396
|
exports.AccountsApiFactory = AccountsApiFactory;
|
|
299
397
|
/**
|
|
300
398
|
* AccountsApi - object-oriented interface
|
|
399
|
+
* @export
|
|
400
|
+
* @class AccountsApi
|
|
401
|
+
* @extends {BaseAPI}
|
|
301
402
|
*/
|
|
302
403
|
class AccountsApi extends base_1.BaseAPI {
|
|
303
404
|
/**
|
|
@@ -306,11 +407,10 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
306
407
|
* @param {string} accountAddress The address of the account
|
|
307
408
|
* @param {*} [options] Override http request option.
|
|
308
409
|
* @throws {RequiredError}
|
|
410
|
+
* @memberof AccountsApi
|
|
309
411
|
*/
|
|
310
412
|
getAccountExposure(accountAddress, options) {
|
|
311
|
-
return (0, exports.AccountsApiFp)(this.configuration)
|
|
312
|
-
.getAccountExposure(accountAddress, options)
|
|
313
|
-
.then(request => request(this.axios, this.basePath));
|
|
413
|
+
return (0, exports.AccountsApiFp)(this.configuration).getAccountExposure(accountAddress, options).then((request) => request(this.axios, this.basePath));
|
|
314
414
|
}
|
|
315
415
|
/**
|
|
316
416
|
*
|
|
@@ -324,11 +424,22 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
324
424
|
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
325
425
|
* @param {*} [options] Override http request option.
|
|
326
426
|
* @throws {RequiredError}
|
|
427
|
+
* @memberof AccountsApi
|
|
327
428
|
*/
|
|
328
429
|
getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options) {
|
|
329
|
-
return (0, exports.AccountsApiFp)(this.configuration)
|
|
330
|
-
|
|
331
|
-
|
|
430
|
+
return (0, exports.AccountsApiFp)(this.configuration).getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options).then((request) => request(this.axios, this.basePath));
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @summary Get the positions value of the account
|
|
435
|
+
* @param {string} accountAddress The address of the account
|
|
436
|
+
* @param {string} [vaultId] The id of the vault
|
|
437
|
+
* @param {*} [options] Override http request option.
|
|
438
|
+
* @throws {RequiredError}
|
|
439
|
+
* @memberof AccountsApi
|
|
440
|
+
*/
|
|
441
|
+
getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
442
|
+
return (0, exports.AccountsApiFp)(this.configuration).getAccountPositionsValue(accountAddress, vaultId, options).then((request) => request(this.axios, this.basePath));
|
|
332
443
|
}
|
|
333
444
|
/**
|
|
334
445
|
*
|
|
@@ -342,25 +453,45 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
342
453
|
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
343
454
|
* @param {*} [options] Override http request option.
|
|
344
455
|
* @throws {RequiredError}
|
|
456
|
+
* @memberof AccountsApi
|
|
345
457
|
*/
|
|
346
458
|
getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options) {
|
|
347
|
-
return (0, exports.AccountsApiFp)(this.configuration)
|
|
348
|
-
|
|
349
|
-
|
|
459
|
+
return (0, exports.AccountsApiFp)(this.configuration).getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options).then((request) => request(this.axios, this.basePath));
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @summary Get the yield value of the account
|
|
464
|
+
* @param {string} accountAddress The address of the account
|
|
465
|
+
* @param {*} [options] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
* @memberof AccountsApi
|
|
468
|
+
*/
|
|
469
|
+
getAccountYieldValue(accountAddress, options) {
|
|
470
|
+
return (0, exports.AccountsApiFp)(this.configuration).getAccountYieldValue(accountAddress, options).then((request) => request(this.axios, this.basePath));
|
|
350
471
|
}
|
|
351
472
|
}
|
|
352
473
|
exports.AccountsApi = AccountsApi;
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
474
|
+
/**
|
|
475
|
+
* @export
|
|
476
|
+
* @enum {string}
|
|
477
|
+
*/
|
|
478
|
+
var GetAccountHistoryTypeEnum;
|
|
479
|
+
(function (GetAccountHistoryTypeEnum) {
|
|
480
|
+
GetAccountHistoryTypeEnum["Deposit"] = "Deposit";
|
|
481
|
+
GetAccountHistoryTypeEnum["RedeemRequest"] = "RedeemRequest";
|
|
482
|
+
GetAccountHistoryTypeEnum["RedeemRequestProcessed"] = "RedeemRequestProcessed";
|
|
483
|
+
GetAccountHistoryTypeEnum["RedeemRequestSkipped"] = "RedeemRequestSkipped";
|
|
484
|
+
GetAccountHistoryTypeEnum["RedeemRequestCancelled"] = "RedeemRequestCancelled";
|
|
485
|
+
})(GetAccountHistoryTypeEnum || (exports.GetAccountHistoryTypeEnum = GetAccountHistoryTypeEnum = {}));
|
|
486
|
+
/**
|
|
487
|
+
* @export
|
|
488
|
+
* @enum {string}
|
|
489
|
+
*/
|
|
490
|
+
var GetAccountWithdrawalRequestsStatusEnum;
|
|
491
|
+
(function (GetAccountWithdrawalRequestsStatusEnum) {
|
|
492
|
+
GetAccountWithdrawalRequestsStatusEnum["Pending"] = "Pending";
|
|
493
|
+
GetAccountWithdrawalRequestsStatusEnum["PendingCancelling"] = "PendingCancelling";
|
|
494
|
+
GetAccountWithdrawalRequestsStatusEnum["Cancelled"] = "Cancelled";
|
|
495
|
+
GetAccountWithdrawalRequestsStatusEnum["Skipped"] = "Skipped";
|
|
496
|
+
GetAccountWithdrawalRequestsStatusEnum["Processed"] = "Processed";
|
|
497
|
+
})(GetAccountWithdrawalRequestsStatusEnum || (exports.GetAccountWithdrawalRequestsStatusEnum = GetAccountWithdrawalRequestsStatusEnum = {}));
|