@ember-finance/sdk 1.0.0 → 1.0.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/README.md +3 -3
- package/dist/src/vaults/api/api.d.ts +13 -0
- package/dist/src/vaults/api/api.js +31 -0
- package/dist/src/vaults/api/apis/accounts-api.d.ts +198 -0
- package/dist/src/vaults/api/apis/accounts-api.js +366 -0
- package/dist/src/vaults/api/apis/vaults-api.d.ts +441 -0
- package/dist/src/vaults/api/apis/vaults-api.js +903 -0
- package/dist/src/vaults/api/base.d.ts +42 -0
- package/dist/src/vaults/api/base.js +47 -0
- package/dist/src/vaults/api/common.d.ts +28 -0
- package/dist/src/vaults/api/common.js +115 -0
- package/dist/src/vaults/api/configuration.d.ts +74 -0
- package/dist/src/vaults/api/configuration.js +49 -0
- package/dist/src/vaults/api/index.d.ts +14 -0
- package/dist/src/vaults/api/index.js +32 -0
- package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +21 -0
- package/dist/src/vaults/api/models/account-transaction-transaction-data.js +15 -0
- package/dist/src/vaults/api/models/account-transaction.d.ts +27 -0
- package/dist/src/vaults/api/models/account-transaction.js +23 -0
- package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +63 -0
- package/dist/src/vaults/api/models/account-withdrawal-request.js +24 -0
- package/dist/src/vaults/api/models/asset.d.ts +41 -0
- package/dist/src/vaults/api/models/asset.js +15 -0
- package/dist/src/vaults/api/models/deposit-transaction.d.ts +38 -0
- package/dist/src/vaults/api/models/deposit-transaction.js +15 -0
- package/dist/src/vaults/api/models/exposure-coin.d.ts +23 -0
- package/dist/src/vaults/api/models/exposure-coin.js +15 -0
- package/dist/src/vaults/api/models/exposure-protocol.d.ts +19 -0
- package/dist/src/vaults/api/models/exposure-protocol.js +15 -0
- package/dist/src/vaults/api/models/exposure.d.ts +27 -0
- package/dist/src/vaults/api/models/exposure.js +15 -0
- package/dist/src/vaults/api/models/history-interval.d.ts +18 -0
- package/dist/src/vaults/api/models/history-interval.js +22 -0
- package/dist/src/vaults/api/models/index.d.ts +43 -0
- package/dist/src/vaults/api/models/index.js +59 -0
- package/dist/src/vaults/api/models/manager.d.ts +20 -0
- package/dist/src/vaults/api/models/manager.js +15 -0
- package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +29 -0
- package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.js +15 -0
- package/dist/src/vaults/api/models/pnl-history.d.ts +21 -0
- package/dist/src/vaults/api/models/pnl-history.js +15 -0
- package/dist/src/vaults/api/models/protocol-info.d.ts +27 -0
- package/dist/src/vaults/api/models/protocol-info.js +15 -0
- package/dist/src/vaults/api/models/protocol.d.ts +38 -0
- package/dist/src/vaults/api/models/protocol.js +23 -0
- package/dist/src/vaults/api/models/raw-event-event-data.d.ts +28 -0
- package/dist/src/vaults/api/models/raw-event-event-data.js +15 -0
- package/dist/src/vaults/api/models/raw-event.d.ts +42 -0
- package/dist/src/vaults/api/models/raw-event.js +30 -0
- package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +33 -0
- package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.js +15 -0
- package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +38 -0
- package/dist/src/vaults/api/models/redeem-request-processed-transaction.js +15 -0
- package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +33 -0
- package/dist/src/vaults/api/models/redeem-request-skipped-transaction.js +15 -0
- package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +33 -0
- package/dist/src/vaults/api/models/redeem-request-transaction.js +15 -0
- package/dist/src/vaults/api/models/reported-apy.d.ts +15 -0
- package/dist/src/vaults/api/models/reported-apy.js +15 -0
- package/dist/src/vaults/api/models/request-processed-event.d.ts +53 -0
- package/dist/src/vaults/api/models/request-processed-event.js +15 -0
- package/dist/src/vaults/api/models/request-redeemed-event.d.ts +49 -0
- package/dist/src/vaults/api/models/request-redeemed-event.js +15 -0
- package/dist/src/vaults/api/models/reward-token.d.ts +27 -0
- package/dist/src/vaults/api/models/reward-token.js +15 -0
- package/dist/src/vaults/api/models/share-price-history.d.ts +21 -0
- package/dist/src/vaults/api/models/share-price-history.js +15 -0
- package/dist/src/vaults/api/models/strategy.d.ts +41 -0
- package/dist/src/vaults/api/models/strategy.js +15 -0
- package/dist/src/vaults/api/models/sub-account.d.ts +19 -0
- package/dist/src/vaults/api/models/sub-account.js +15 -0
- package/dist/src/vaults/api/models/tvl-history.d.ts +21 -0
- package/dist/src/vaults/api/models/tvl-history.js +15 -0
- package/dist/src/vaults/api/models/ultra-coin-info.d.ts +37 -0
- package/dist/src/vaults/api/models/ultra-coin-info.js +15 -0
- package/dist/src/vaults/api/models/update-vault-strategies.d.ts +31 -0
- package/dist/src/vaults/api/models/update-vault-strategies.js +15 -0
- package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +29 -0
- package/dist/src/vaults/api/models/vault-admin-changed-event.js +15 -0
- package/dist/src/vaults/api/models/vault-created-event.d.ts +38 -0
- package/dist/src/vaults/api/models/vault-created-event.js +15 -0
- package/dist/src/vaults/api/models/vault-deposit-event.d.ts +49 -0
- package/dist/src/vaults/api/models/vault-deposit-event.js +15 -0
- package/dist/src/vaults/api/models/vault-detail.d.ts +95 -0
- package/dist/src/vaults/api/models/vault-detail.js +22 -0
- package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +29 -0
- package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.js +15 -0
- package/dist/src/vaults/api/models/vault-info.d.ts +57 -0
- package/dist/src/vaults/api/models/vault-info.js +15 -0
- package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +29 -0
- package/dist/src/vaults/api/models/vault-max-tvl-updated-event.js +15 -0
- package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +29 -0
- package/dist/src/vaults/api/models/vault-operator-changed-event.js +15 -0
- package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +25 -0
- package/dist/src/vaults/api/models/vault-paused-status-updated-event.js +15 -0
- package/dist/src/vaults/api/models/vault-protocol.d.ts +29 -0
- package/dist/src/vaults/api/models/vault-protocol.js +15 -0
- package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +29 -0
- package/dist/src/vaults/api/models/vault-rate-updated-event.js +15 -0
- package/dist/src/vaults/api/models/vault-slice.d.ts +33 -0
- package/dist/src/vaults/api/models/vault-slice.js +15 -0
- package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +37 -0
- package/dist/src/vaults/api/models/vault-sub-account-updated-event.js +15 -0
- package/dist/src/vaults/{bluefin-vaults.d.ts → ember-vaults.d.ts} +5 -1
- package/dist/src/vaults/{bluefin-vaults.js → ember-vaults.js} +19 -4
- package/dist/src/vaults/on-chain-calls/onchain-calls.js +1 -1
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ strategies.
|
|
|
18
18
|
|
|
19
19
|
The SDK is built around several key classes:
|
|
20
20
|
|
|
21
|
-
- **
|
|
21
|
+
- **EmberVaults**: Main entry point for vault interactions
|
|
22
22
|
- **AdminCalls**: Administrative functions for protocol management
|
|
23
23
|
- **UserCalls**: User-facing operations for deposits and withdrawals
|
|
24
24
|
- **OperatorCalls**: Operator functions for vault management
|
|
@@ -39,12 +39,12 @@ yarn add @ember-finance/sdk
|
|
|
39
39
|
|
|
40
40
|
## Core Components
|
|
41
41
|
|
|
42
|
-
###
|
|
42
|
+
### EmberVaults
|
|
43
43
|
|
|
44
44
|
The main entry point for interacting with the Ember Protocol:
|
|
45
45
|
|
|
46
46
|
```typescript
|
|
47
|
-
class
|
|
47
|
+
class EmberVaults {
|
|
48
48
|
suiClient: SuiClient;
|
|
49
49
|
signer: Signer;
|
|
50
50
|
parser: DeploymentParser;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ember Protocol Vaults API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./apis/accounts-api";
|
|
13
|
+
export * from "./apis/vaults-api";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ember Protocol Vaults API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
27
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
__exportStar(require("./apis/accounts-api"), exports);
|
|
31
|
+
__exportStar(require("./apis/vaults-api"), exports);
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ember Protocol Vaults API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from "../configuration";
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from "axios";
|
|
14
|
+
import globalAxios from "axios";
|
|
15
|
+
import { type RequestArgs, BaseAPI } from "../base";
|
|
16
|
+
import type { AccountTransaction } from "../models";
|
|
17
|
+
import type { AccountWithdrawalRequest } from "../models";
|
|
18
|
+
import type { Exposure } from "../models";
|
|
19
|
+
/**
|
|
20
|
+
* AccountsApi - axios parameter creator
|
|
21
|
+
*/
|
|
22
|
+
export declare const AccountsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @summary Get the exposure of the account
|
|
26
|
+
* @param {string} accountAddress The address of the account
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
getAccountExposure: (accountAddress: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary Get history of the account
|
|
34
|
+
* @param {string} accountAddress The address of the account
|
|
35
|
+
* @param {number} startTimeInMs The start time of the events
|
|
36
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
37
|
+
* @param {number} [limit] The limit of the events
|
|
38
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
39
|
+
* @param {string} [vaultId] The id of the vault
|
|
40
|
+
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
getAccountHistory: (accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @summary Get withdrawal requests of the account
|
|
48
|
+
* @param {string} accountAddress The address of the account
|
|
49
|
+
* @param {number} startTimeInMs The start time of the events
|
|
50
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
51
|
+
* @param {number} [limit] The limit of the events
|
|
52
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
53
|
+
* @param {string} [vaultId] The id of the vault
|
|
54
|
+
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
getAccountWithdrawalRequests: (accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* AccountsApi - functional programming interface
|
|
62
|
+
*/
|
|
63
|
+
export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @summary Get the exposure of the account
|
|
67
|
+
* @param {string} accountAddress The address of the account
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
getAccountExposure(accountAddress: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Exposure>>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @summary Get history of the account
|
|
75
|
+
* @param {string} accountAddress The address of the account
|
|
76
|
+
* @param {number} startTimeInMs The start time of the events
|
|
77
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
78
|
+
* @param {number} [limit] The limit of the events
|
|
79
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
80
|
+
* @param {string} [vaultId] The id of the vault
|
|
81
|
+
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountTransaction>>>;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @summary Get withdrawal requests of the account
|
|
89
|
+
* @param {string} accountAddress The address of the account
|
|
90
|
+
* @param {number} startTimeInMs The start time of the events
|
|
91
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
92
|
+
* @param {number} [limit] The limit of the events
|
|
93
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
94
|
+
* @param {string} [vaultId] The id of the vault
|
|
95
|
+
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
getAccountWithdrawalRequests(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountWithdrawalRequest>>>;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* AccountsApi - factory interface
|
|
103
|
+
*/
|
|
104
|
+
export declare const AccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @summary Get the exposure of the account
|
|
108
|
+
* @param {string} accountAddress The address of the account
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
getAccountExposure(accountAddress: string, options?: RawAxiosRequestConfig): AxiosPromise<Exposure>;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @summary Get history of the account
|
|
116
|
+
* @param {string} accountAddress The address of the account
|
|
117
|
+
* @param {number} startTimeInMs The start time of the events
|
|
118
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
119
|
+
* @param {number} [limit] The limit of the events
|
|
120
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
121
|
+
* @param {string} [vaultId] The id of the vault
|
|
122
|
+
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountTransaction>>;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @summary Get withdrawal requests of the account
|
|
130
|
+
* @param {string} accountAddress The address of the account
|
|
131
|
+
* @param {number} startTimeInMs The start time of the events
|
|
132
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
133
|
+
* @param {number} [limit] The limit of the events
|
|
134
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
135
|
+
* @param {string} [vaultId] The id of the vault
|
|
136
|
+
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
getAccountWithdrawalRequests(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountWithdrawalRequest>>;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* AccountsApi - object-oriented interface
|
|
144
|
+
*/
|
|
145
|
+
export declare class AccountsApi extends BaseAPI {
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @summary Get the exposure of the account
|
|
149
|
+
* @param {string} accountAddress The address of the account
|
|
150
|
+
* @param {*} [options] Override http request option.
|
|
151
|
+
* @throws {RequiredError}
|
|
152
|
+
*/
|
|
153
|
+
getAccountExposure(accountAddress: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Exposure, any>>;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @summary Get history of the account
|
|
157
|
+
* @param {string} accountAddress The address of the account
|
|
158
|
+
* @param {number} startTimeInMs The start time of the events
|
|
159
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
160
|
+
* @param {number} [limit] The limit of the events
|
|
161
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
162
|
+
* @param {string} [vaultId] The id of the vault
|
|
163
|
+
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
*/
|
|
167
|
+
getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AccountTransaction[], any>>;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @summary Get withdrawal requests of the account
|
|
171
|
+
* @param {string} accountAddress The address of the account
|
|
172
|
+
* @param {number} startTimeInMs The start time of the events
|
|
173
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
174
|
+
* @param {number} [limit] The limit of the events
|
|
175
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
176
|
+
* @param {string} [vaultId] The id of the vault
|
|
177
|
+
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
getAccountWithdrawalRequests(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AccountWithdrawalRequest[], any>>;
|
|
182
|
+
}
|
|
183
|
+
export declare const GetAccountHistoryTypeEnum: {
|
|
184
|
+
readonly Deposit: "Deposit";
|
|
185
|
+
readonly RedeemRequest: "RedeemRequest";
|
|
186
|
+
readonly RedeemRequestProcessed: "RedeemRequestProcessed";
|
|
187
|
+
readonly RedeemRequestSkipped: "RedeemRequestSkipped";
|
|
188
|
+
readonly RedeemRequestCancelled: "RedeemRequestCancelled";
|
|
189
|
+
};
|
|
190
|
+
export type GetAccountHistoryTypeEnum = (typeof GetAccountHistoryTypeEnum)[keyof typeof GetAccountHistoryTypeEnum];
|
|
191
|
+
export declare const GetAccountWithdrawalRequestsStatusEnum: {
|
|
192
|
+
readonly Pending: "Pending";
|
|
193
|
+
readonly PendingCancelling: "PendingCancelling";
|
|
194
|
+
readonly Cancelled: "Cancelled";
|
|
195
|
+
readonly Skipped: "Skipped";
|
|
196
|
+
readonly Processed: "Processed";
|
|
197
|
+
};
|
|
198
|
+
export type GetAccountWithdrawalRequestsStatusEnum = (typeof GetAccountWithdrawalRequestsStatusEnum)[keyof typeof GetAccountWithdrawalRequestsStatusEnum];
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ember Protocol Vaults API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.GetAccountWithdrawalRequestsStatusEnum = exports.GetAccountHistoryTypeEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const common_1 = require("../common");
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const base_1 = require("../base");
|
|
26
|
+
/**
|
|
27
|
+
* AccountsApi - axios parameter creator
|
|
28
|
+
*/
|
|
29
|
+
const AccountsApiAxiosParamCreator = function (configuration) {
|
|
30
|
+
return {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary Get the exposure of the account
|
|
34
|
+
* @param {string} accountAddress The address of the account
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
getAccountExposure: async (accountAddress, options = {}) => {
|
|
39
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
40
|
+
(0, common_1.assertParamExists)("getAccountExposure", "accountAddress", accountAddress);
|
|
41
|
+
const localVarPath = `/api/v1/vaults/exposure/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
42
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
44
|
+
let baseOptions;
|
|
45
|
+
if (configuration) {
|
|
46
|
+
baseOptions = configuration.baseOptions;
|
|
47
|
+
}
|
|
48
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
49
|
+
const localVarHeaderParameter = {};
|
|
50
|
+
const localVarQueryParameter = {};
|
|
51
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
52
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53
|
+
localVarRequestOptions.headers = {
|
|
54
|
+
...localVarHeaderParameter,
|
|
55
|
+
...headersFromBaseOptions,
|
|
56
|
+
...options.headers
|
|
57
|
+
};
|
|
58
|
+
return {
|
|
59
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
60
|
+
options: localVarRequestOptions
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @summary Get history of the account
|
|
66
|
+
* @param {string} accountAddress The address of the account
|
|
67
|
+
* @param {number} startTimeInMs The start time of the events
|
|
68
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
69
|
+
* @param {number} [limit] The limit of the events
|
|
70
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
71
|
+
* @param {string} [vaultId] The id of the vault
|
|
72
|
+
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
getAccountHistory: async (accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options = {}) => {
|
|
77
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
78
|
+
(0, common_1.assertParamExists)("getAccountHistory", "accountAddress", accountAddress);
|
|
79
|
+
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
80
|
+
(0, common_1.assertParamExists)("getAccountHistory", "startTimeInMs", startTimeInMs);
|
|
81
|
+
const localVarPath = `/api/v1/vaults/history/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
82
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
84
|
+
let baseOptions;
|
|
85
|
+
if (configuration) {
|
|
86
|
+
baseOptions = configuration.baseOptions;
|
|
87
|
+
}
|
|
88
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
89
|
+
const localVarHeaderParameter = {};
|
|
90
|
+
const localVarQueryParameter = {};
|
|
91
|
+
if (startTimeInMs !== undefined) {
|
|
92
|
+
localVarQueryParameter["startTimeInMs"] = startTimeInMs;
|
|
93
|
+
}
|
|
94
|
+
if (endTimeInMs !== undefined) {
|
|
95
|
+
localVarQueryParameter["endTimeInMs"] = endTimeInMs;
|
|
96
|
+
}
|
|
97
|
+
if (limit !== undefined) {
|
|
98
|
+
localVarQueryParameter["limit"] = limit;
|
|
99
|
+
}
|
|
100
|
+
if (page !== undefined) {
|
|
101
|
+
localVarQueryParameter["page"] = page;
|
|
102
|
+
}
|
|
103
|
+
if (vaultId !== undefined) {
|
|
104
|
+
localVarQueryParameter["vaultId"] = vaultId;
|
|
105
|
+
}
|
|
106
|
+
if (type !== undefined) {
|
|
107
|
+
localVarQueryParameter["type"] = type;
|
|
108
|
+
}
|
|
109
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
110
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
111
|
+
localVarRequestOptions.headers = {
|
|
112
|
+
...localVarHeaderParameter,
|
|
113
|
+
...headersFromBaseOptions,
|
|
114
|
+
...options.headers
|
|
115
|
+
};
|
|
116
|
+
return {
|
|
117
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
118
|
+
options: localVarRequestOptions
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @summary Get withdrawal requests of the account
|
|
124
|
+
* @param {string} accountAddress The address of the account
|
|
125
|
+
* @param {number} startTimeInMs The start time of the events
|
|
126
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
127
|
+
* @param {number} [limit] The limit of the events
|
|
128
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
129
|
+
* @param {string} [vaultId] The id of the vault
|
|
130
|
+
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
getAccountWithdrawalRequests: async (accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options = {}) => {
|
|
135
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
136
|
+
(0, common_1.assertParamExists)("getAccountWithdrawalRequests", "accountAddress", accountAddress);
|
|
137
|
+
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
138
|
+
(0, common_1.assertParamExists)("getAccountWithdrawalRequests", "startTimeInMs", startTimeInMs);
|
|
139
|
+
const localVarPath = `/api/v1/vaults/withdrawal-requests/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
140
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
142
|
+
let baseOptions;
|
|
143
|
+
if (configuration) {
|
|
144
|
+
baseOptions = configuration.baseOptions;
|
|
145
|
+
}
|
|
146
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
147
|
+
const localVarHeaderParameter = {};
|
|
148
|
+
const localVarQueryParameter = {};
|
|
149
|
+
if (startTimeInMs !== undefined) {
|
|
150
|
+
localVarQueryParameter["startTimeInMs"] = startTimeInMs;
|
|
151
|
+
}
|
|
152
|
+
if (endTimeInMs !== undefined) {
|
|
153
|
+
localVarQueryParameter["endTimeInMs"] = endTimeInMs;
|
|
154
|
+
}
|
|
155
|
+
if (limit !== undefined) {
|
|
156
|
+
localVarQueryParameter["limit"] = limit;
|
|
157
|
+
}
|
|
158
|
+
if (page !== undefined) {
|
|
159
|
+
localVarQueryParameter["page"] = page;
|
|
160
|
+
}
|
|
161
|
+
if (vaultId !== undefined) {
|
|
162
|
+
localVarQueryParameter["vaultId"] = vaultId;
|
|
163
|
+
}
|
|
164
|
+
if (status !== undefined) {
|
|
165
|
+
localVarQueryParameter["status"] = status;
|
|
166
|
+
}
|
|
167
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
168
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
169
|
+
localVarRequestOptions.headers = {
|
|
170
|
+
...localVarHeaderParameter,
|
|
171
|
+
...headersFromBaseOptions,
|
|
172
|
+
...options.headers
|
|
173
|
+
};
|
|
174
|
+
return {
|
|
175
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
176
|
+
options: localVarRequestOptions
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
|
|
182
|
+
/**
|
|
183
|
+
* AccountsApi - functional programming interface
|
|
184
|
+
*/
|
|
185
|
+
const AccountsApiFp = function (configuration) {
|
|
186
|
+
const localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
|
|
187
|
+
return {
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @summary Get the exposure of the account
|
|
191
|
+
* @param {string} accountAddress The address of the account
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
*/
|
|
195
|
+
async getAccountExposure(accountAddress, options) {
|
|
196
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountExposure(accountAddress, options);
|
|
197
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
198
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountExposure"]?.[localVarOperationServerIndex]?.url;
|
|
199
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
200
|
+
},
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @summary Get history of the account
|
|
204
|
+
* @param {string} accountAddress The address of the account
|
|
205
|
+
* @param {number} startTimeInMs The start time of the events
|
|
206
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
207
|
+
* @param {number} [limit] The limit of the events
|
|
208
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
209
|
+
* @param {string} [vaultId] The id of the vault
|
|
210
|
+
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
async getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options) {
|
|
215
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options);
|
|
216
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
217
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountHistory"]?.[localVarOperationServerIndex]?.url;
|
|
218
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
219
|
+
},
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @summary Get withdrawal requests of the account
|
|
223
|
+
* @param {string} accountAddress The address of the account
|
|
224
|
+
* @param {number} startTimeInMs The start time of the events
|
|
225
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
226
|
+
* @param {number} [limit] The limit of the events
|
|
227
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
228
|
+
* @param {string} [vaultId] The id of the vault
|
|
229
|
+
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
230
|
+
* @param {*} [options] Override http request option.
|
|
231
|
+
* @throws {RequiredError}
|
|
232
|
+
*/
|
|
233
|
+
async getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options) {
|
|
234
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options);
|
|
235
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
236
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountWithdrawalRequests"]?.[localVarOperationServerIndex]?.url;
|
|
237
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
exports.AccountsApiFp = AccountsApiFp;
|
|
242
|
+
/**
|
|
243
|
+
* AccountsApi - factory interface
|
|
244
|
+
*/
|
|
245
|
+
const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
246
|
+
const localVarFp = (0, exports.AccountsApiFp)(configuration);
|
|
247
|
+
return {
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @summary Get the exposure of the account
|
|
251
|
+
* @param {string} accountAddress The address of the account
|
|
252
|
+
* @param {*} [options] Override http request option.
|
|
253
|
+
* @throws {RequiredError}
|
|
254
|
+
*/
|
|
255
|
+
getAccountExposure(accountAddress, options) {
|
|
256
|
+
return localVarFp
|
|
257
|
+
.getAccountExposure(accountAddress, options)
|
|
258
|
+
.then(request => request(axios, basePath));
|
|
259
|
+
},
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
* @summary Get history of the account
|
|
263
|
+
* @param {string} accountAddress The address of the account
|
|
264
|
+
* @param {number} startTimeInMs The start time of the events
|
|
265
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
266
|
+
* @param {number} [limit] The limit of the events
|
|
267
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
268
|
+
* @param {string} [vaultId] The id of the vault
|
|
269
|
+
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
270
|
+
* @param {*} [options] Override http request option.
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
*/
|
|
273
|
+
getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options) {
|
|
274
|
+
return localVarFp
|
|
275
|
+
.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options)
|
|
276
|
+
.then(request => request(axios, basePath));
|
|
277
|
+
},
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @summary Get withdrawal requests of the account
|
|
281
|
+
* @param {string} accountAddress The address of the account
|
|
282
|
+
* @param {number} startTimeInMs The start time of the events
|
|
283
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
284
|
+
* @param {number} [limit] The limit of the events
|
|
285
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
286
|
+
* @param {string} [vaultId] The id of the vault
|
|
287
|
+
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
*/
|
|
291
|
+
getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options) {
|
|
292
|
+
return localVarFp
|
|
293
|
+
.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options)
|
|
294
|
+
.then(request => request(axios, basePath));
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
exports.AccountsApiFactory = AccountsApiFactory;
|
|
299
|
+
/**
|
|
300
|
+
* AccountsApi - object-oriented interface
|
|
301
|
+
*/
|
|
302
|
+
class AccountsApi extends base_1.BaseAPI {
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @summary Get the exposure of the account
|
|
306
|
+
* @param {string} accountAddress The address of the account
|
|
307
|
+
* @param {*} [options] Override http request option.
|
|
308
|
+
* @throws {RequiredError}
|
|
309
|
+
*/
|
|
310
|
+
getAccountExposure(accountAddress, options) {
|
|
311
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
312
|
+
.getAccountExposure(accountAddress, options)
|
|
313
|
+
.then(request => request(this.axios, this.basePath));
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @summary Get history of the account
|
|
318
|
+
* @param {string} accountAddress The address of the account
|
|
319
|
+
* @param {number} startTimeInMs The start time of the events
|
|
320
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
321
|
+
* @param {number} [limit] The limit of the events
|
|
322
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
323
|
+
* @param {string} [vaultId] The id of the vault
|
|
324
|
+
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
325
|
+
* @param {*} [options] Override http request option.
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
*/
|
|
328
|
+
getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options) {
|
|
329
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
330
|
+
.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options)
|
|
331
|
+
.then(request => request(this.axios, this.basePath));
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
*
|
|
335
|
+
* @summary Get withdrawal requests of the account
|
|
336
|
+
* @param {string} accountAddress The address of the account
|
|
337
|
+
* @param {number} startTimeInMs The start time of the events
|
|
338
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
339
|
+
* @param {number} [limit] The limit of the events
|
|
340
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
341
|
+
* @param {string} [vaultId] The id of the vault
|
|
342
|
+
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
343
|
+
* @param {*} [options] Override http request option.
|
|
344
|
+
* @throws {RequiredError}
|
|
345
|
+
*/
|
|
346
|
+
getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options) {
|
|
347
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
348
|
+
.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options)
|
|
349
|
+
.then(request => request(this.axios, this.basePath));
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
exports.AccountsApi = AccountsApi;
|
|
353
|
+
exports.GetAccountHistoryTypeEnum = {
|
|
354
|
+
Deposit: "Deposit",
|
|
355
|
+
RedeemRequest: "RedeemRequest",
|
|
356
|
+
RedeemRequestProcessed: "RedeemRequestProcessed",
|
|
357
|
+
RedeemRequestSkipped: "RedeemRequestSkipped",
|
|
358
|
+
RedeemRequestCancelled: "RedeemRequestCancelled"
|
|
359
|
+
};
|
|
360
|
+
exports.GetAccountWithdrawalRequestsStatusEnum = {
|
|
361
|
+
Pending: "Pending",
|
|
362
|
+
PendingCancelling: "PendingCancelling",
|
|
363
|
+
Cancelled: "Cancelled",
|
|
364
|
+
Skipped: "Skipped",
|
|
365
|
+
Processed: "Processed"
|
|
366
|
+
};
|