@ember-finance/sdk 2.6.0-pre.0 → 2.6.0-pre.2
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/src/api/v2/apis/accounts-api.d.ts +70 -0
- package/dist/src/api/v2/apis/accounts-api.js +128 -0
- package/dist/src/api/v2/models/account-holdback.d.ts +115 -0
- package/dist/src/api/v2/models/account-holdback.js +17 -0
- package/dist/src/api/v2/models/index.d.ts +1 -0
- package/dist/src/api/v2/models/index.js +1 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { Configuration } from "../configuration.js";
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from "axios";
|
|
14
14
|
import { type RequestArgs, BaseAPI } from "../base.js";
|
|
15
|
+
import type { AccountHoldback } from "../models/index.js";
|
|
15
16
|
import type { AccountParkingLotClaimable } from "../models/index.js";
|
|
16
17
|
import type { AccountPendingDeposit } from "../models/index.js";
|
|
17
18
|
import type { AccountTransaction } from "../models/index.js";
|
|
@@ -41,6 +42,21 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
41
42
|
* @throws {RequiredError}
|
|
42
43
|
*/
|
|
43
44
|
getAccountHistory: (accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
/**
|
|
46
|
+
* When an account swaps ember shares into an Atomic Liquidity Vault it receives most of the collateral immediately and a `holdback` portion is queued for later payout. This lists that account\'s holdback entries — `Pending` while still queued awaiting the operator\'s release, `Released` once a release batch has settled them.
|
|
47
|
+
* @summary Get the account\'s atomic-vault holdbacks (withheld at swap time)
|
|
48
|
+
* @param {string} accountAddress The address of the account whose shares were swapped
|
|
49
|
+
* @param {number} startTimeInMs The start time of the events
|
|
50
|
+
* @param {string} [chain] Chain identifier
|
|
51
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
52
|
+
* @param {number} [limit] The limit of the events
|
|
53
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
54
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
55
|
+
* @param {GetAccountHoldbacksStatusEnum} [status] The status of the holdback entries
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
getAccountHoldbacks: (accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountHoldbacksStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
60
|
/**
|
|
45
61
|
*
|
|
46
62
|
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
@@ -140,6 +156,21 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
140
156
|
* @throws {RequiredError}
|
|
141
157
|
*/
|
|
142
158
|
getAccountHistory(accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountTransaction>>>;
|
|
159
|
+
/**
|
|
160
|
+
* When an account swaps ember shares into an Atomic Liquidity Vault it receives most of the collateral immediately and a `holdback` portion is queued for later payout. This lists that account\'s holdback entries — `Pending` while still queued awaiting the operator\'s release, `Released` once a release batch has settled them.
|
|
161
|
+
* @summary Get the account\'s atomic-vault holdbacks (withheld at swap time)
|
|
162
|
+
* @param {string} accountAddress The address of the account whose shares were swapped
|
|
163
|
+
* @param {number} startTimeInMs The start time of the events
|
|
164
|
+
* @param {string} [chain] Chain identifier
|
|
165
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
166
|
+
* @param {number} [limit] The limit of the events
|
|
167
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
168
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
169
|
+
* @param {GetAccountHoldbacksStatusEnum} [status] The status of the holdback entries
|
|
170
|
+
* @param {*} [options] Override http request option.
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
*/
|
|
173
|
+
getAccountHoldbacks(accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountHoldbacksStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountHoldback>>>;
|
|
143
174
|
/**
|
|
144
175
|
*
|
|
145
176
|
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
@@ -239,6 +270,21 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
239
270
|
* @throws {RequiredError}
|
|
240
271
|
*/
|
|
241
272
|
getAccountHistory(accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountTransaction>>;
|
|
273
|
+
/**
|
|
274
|
+
* When an account swaps ember shares into an Atomic Liquidity Vault it receives most of the collateral immediately and a `holdback` portion is queued for later payout. This lists that account\'s holdback entries — `Pending` while still queued awaiting the operator\'s release, `Released` once a release batch has settled them.
|
|
275
|
+
* @summary Get the account\'s atomic-vault holdbacks (withheld at swap time)
|
|
276
|
+
* @param {string} accountAddress The address of the account whose shares were swapped
|
|
277
|
+
* @param {number} startTimeInMs The start time of the events
|
|
278
|
+
* @param {string} [chain] Chain identifier
|
|
279
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
280
|
+
* @param {number} [limit] The limit of the events
|
|
281
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
282
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
283
|
+
* @param {GetAccountHoldbacksStatusEnum} [status] The status of the holdback entries
|
|
284
|
+
* @param {*} [options] Override http request option.
|
|
285
|
+
* @throws {RequiredError}
|
|
286
|
+
*/
|
|
287
|
+
getAccountHoldbacks(accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountHoldbacksStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountHoldback>>;
|
|
242
288
|
/**
|
|
243
289
|
*
|
|
244
290
|
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
@@ -341,6 +387,22 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
341
387
|
* @memberof AccountsApi
|
|
342
388
|
*/
|
|
343
389
|
getAccountHistory(accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountTransaction[], any, {}>>;
|
|
390
|
+
/**
|
|
391
|
+
* When an account swaps ember shares into an Atomic Liquidity Vault it receives most of the collateral immediately and a `holdback` portion is queued for later payout. This lists that account\'s holdback entries — `Pending` while still queued awaiting the operator\'s release, `Released` once a release batch has settled them.
|
|
392
|
+
* @summary Get the account\'s atomic-vault holdbacks (withheld at swap time)
|
|
393
|
+
* @param {string} accountAddress The address of the account whose shares were swapped
|
|
394
|
+
* @param {number} startTimeInMs The start time of the events
|
|
395
|
+
* @param {string} [chain] Chain identifier
|
|
396
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
397
|
+
* @param {number} [limit] The limit of the events
|
|
398
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
399
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
400
|
+
* @param {GetAccountHoldbacksStatusEnum} [status] The status of the holdback entries
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
* @memberof AccountsApi
|
|
404
|
+
*/
|
|
405
|
+
getAccountHoldbacks(accountAddress: string, startTimeInMs: number, chain?: string, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountHoldbacksStatusEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountHoldback[], any, {}>>;
|
|
344
406
|
/**
|
|
345
407
|
*
|
|
346
408
|
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
@@ -448,6 +510,14 @@ export declare const GetAccountHistoryTypeEnum: {
|
|
|
448
510
|
readonly WithdrawalClaimed: "WithdrawalClaimed";
|
|
449
511
|
};
|
|
450
512
|
export type GetAccountHistoryTypeEnum = (typeof GetAccountHistoryTypeEnum)[keyof typeof GetAccountHistoryTypeEnum];
|
|
513
|
+
/**
|
|
514
|
+
* @export
|
|
515
|
+
*/
|
|
516
|
+
export declare const GetAccountHoldbacksStatusEnum: {
|
|
517
|
+
readonly Pending: "Pending";
|
|
518
|
+
readonly Released: "Released";
|
|
519
|
+
};
|
|
520
|
+
export type GetAccountHoldbacksStatusEnum = (typeof GetAccountHoldbacksStatusEnum)[keyof typeof GetAccountHoldbacksStatusEnum];
|
|
451
521
|
/**
|
|
452
522
|
* @export
|
|
453
523
|
*/
|
|
@@ -85,6 +85,68 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
85
85
|
options: localVarRequestOptions
|
|
86
86
|
};
|
|
87
87
|
},
|
|
88
|
+
/**
|
|
89
|
+
* When an account swaps ember shares into an Atomic Liquidity Vault it receives most of the collateral immediately and a `holdback` portion is queued for later payout. This lists that account\'s holdback entries — `Pending` while still queued awaiting the operator\'s release, `Released` once a release batch has settled them.
|
|
90
|
+
* @summary Get the account\'s atomic-vault holdbacks (withheld at swap time)
|
|
91
|
+
* @param {string} accountAddress The address of the account whose shares were swapped
|
|
92
|
+
* @param {number} startTimeInMs The start time of the events
|
|
93
|
+
* @param {string} [chain] Chain identifier
|
|
94
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
95
|
+
* @param {number} [limit] The limit of the events
|
|
96
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
97
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
98
|
+
* @param {GetAccountHoldbacksStatusEnum} [status] The status of the holdback entries
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
getAccountHoldbacks: async (accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options = {}) => {
|
|
103
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
104
|
+
assertParamExists("getAccountHoldbacks", "accountAddress", accountAddress);
|
|
105
|
+
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
106
|
+
assertParamExists("getAccountHoldbacks", "startTimeInMs", startTimeInMs);
|
|
107
|
+
const localVarPath = `/api/v2/vaults/holdbacks/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
108
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
|
+
let baseOptions;
|
|
111
|
+
if (configuration) {
|
|
112
|
+
baseOptions = configuration.baseOptions;
|
|
113
|
+
}
|
|
114
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
115
|
+
const localVarHeaderParameter = {};
|
|
116
|
+
const localVarQueryParameter = {};
|
|
117
|
+
if (chain !== undefined) {
|
|
118
|
+
localVarQueryParameter["chain"] = chain;
|
|
119
|
+
}
|
|
120
|
+
if (startTimeInMs !== undefined) {
|
|
121
|
+
localVarQueryParameter["startTimeInMs"] = startTimeInMs;
|
|
122
|
+
}
|
|
123
|
+
if (endTimeInMs !== undefined) {
|
|
124
|
+
localVarQueryParameter["endTimeInMs"] = endTimeInMs;
|
|
125
|
+
}
|
|
126
|
+
if (limit !== undefined) {
|
|
127
|
+
localVarQueryParameter["limit"] = limit;
|
|
128
|
+
}
|
|
129
|
+
if (page !== undefined) {
|
|
130
|
+
localVarQueryParameter["page"] = page;
|
|
131
|
+
}
|
|
132
|
+
if (vaultId !== undefined) {
|
|
133
|
+
localVarQueryParameter["vaultId"] = vaultId;
|
|
134
|
+
}
|
|
135
|
+
if (status !== undefined) {
|
|
136
|
+
localVarQueryParameter["status"] = status;
|
|
137
|
+
}
|
|
138
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
139
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
140
|
+
localVarRequestOptions.headers = {
|
|
141
|
+
...localVarHeaderParameter,
|
|
142
|
+
...headersFromBaseOptions,
|
|
143
|
+
...options.headers
|
|
144
|
+
};
|
|
145
|
+
return {
|
|
146
|
+
url: toPathString(localVarUrlObj),
|
|
147
|
+
options: localVarRequestOptions
|
|
148
|
+
};
|
|
149
|
+
},
|
|
88
150
|
/**
|
|
89
151
|
*
|
|
90
152
|
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
@@ -432,6 +494,26 @@ export const AccountsApiFp = function (configuration) {
|
|
|
432
494
|
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountHistory"]?.[localVarOperationServerIndex]?.url;
|
|
433
495
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
434
496
|
},
|
|
497
|
+
/**
|
|
498
|
+
* When an account swaps ember shares into an Atomic Liquidity Vault it receives most of the collateral immediately and a `holdback` portion is queued for later payout. This lists that account\'s holdback entries — `Pending` while still queued awaiting the operator\'s release, `Released` once a release batch has settled them.
|
|
499
|
+
* @summary Get the account\'s atomic-vault holdbacks (withheld at swap time)
|
|
500
|
+
* @param {string} accountAddress The address of the account whose shares were swapped
|
|
501
|
+
* @param {number} startTimeInMs The start time of the events
|
|
502
|
+
* @param {string} [chain] Chain identifier
|
|
503
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
504
|
+
* @param {number} [limit] The limit of the events
|
|
505
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
506
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
507
|
+
* @param {GetAccountHoldbacksStatusEnum} [status] The status of the holdback entries
|
|
508
|
+
* @param {*} [options] Override http request option.
|
|
509
|
+
* @throws {RequiredError}
|
|
510
|
+
*/
|
|
511
|
+
async getAccountHoldbacks(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options) {
|
|
512
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountHoldbacks(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options);
|
|
513
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
514
|
+
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountHoldbacks"]?.[localVarOperationServerIndex]?.url;
|
|
515
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
516
|
+
},
|
|
435
517
|
/**
|
|
436
518
|
*
|
|
437
519
|
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
@@ -573,6 +655,25 @@ export const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
573
655
|
.getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options)
|
|
574
656
|
.then(request => request(axios, basePath));
|
|
575
657
|
},
|
|
658
|
+
/**
|
|
659
|
+
* When an account swaps ember shares into an Atomic Liquidity Vault it receives most of the collateral immediately and a `holdback` portion is queued for later payout. This lists that account\'s holdback entries — `Pending` while still queued awaiting the operator\'s release, `Released` once a release batch has settled them.
|
|
660
|
+
* @summary Get the account\'s atomic-vault holdbacks (withheld at swap time)
|
|
661
|
+
* @param {string} accountAddress The address of the account whose shares were swapped
|
|
662
|
+
* @param {number} startTimeInMs The start time of the events
|
|
663
|
+
* @param {string} [chain] Chain identifier
|
|
664
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
665
|
+
* @param {number} [limit] The limit of the events
|
|
666
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
667
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
668
|
+
* @param {GetAccountHoldbacksStatusEnum} [status] The status of the holdback entries
|
|
669
|
+
* @param {*} [options] Override http request option.
|
|
670
|
+
* @throws {RequiredError}
|
|
671
|
+
*/
|
|
672
|
+
getAccountHoldbacks(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options) {
|
|
673
|
+
return localVarFp
|
|
674
|
+
.getAccountHoldbacks(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options)
|
|
675
|
+
.then(request => request(axios, basePath));
|
|
676
|
+
},
|
|
576
677
|
/**
|
|
577
678
|
*
|
|
578
679
|
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
@@ -708,6 +809,26 @@ export class AccountsApi extends BaseAPI {
|
|
|
708
809
|
.getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options)
|
|
709
810
|
.then(request => request(this.axios, this.basePath));
|
|
710
811
|
}
|
|
812
|
+
/**
|
|
813
|
+
* When an account swaps ember shares into an Atomic Liquidity Vault it receives most of the collateral immediately and a `holdback` portion is queued for later payout. This lists that account\'s holdback entries — `Pending` while still queued awaiting the operator\'s release, `Released` once a release batch has settled them.
|
|
814
|
+
* @summary Get the account\'s atomic-vault holdbacks (withheld at swap time)
|
|
815
|
+
* @param {string} accountAddress The address of the account whose shares were swapped
|
|
816
|
+
* @param {number} startTimeInMs The start time of the events
|
|
817
|
+
* @param {string} [chain] Chain identifier
|
|
818
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
819
|
+
* @param {number} [limit] The limit of the events
|
|
820
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
821
|
+
* @param {string} [vaultId] The id of the parent vault
|
|
822
|
+
* @param {GetAccountHoldbacksStatusEnum} [status] The status of the holdback entries
|
|
823
|
+
* @param {*} [options] Override http request option.
|
|
824
|
+
* @throws {RequiredError}
|
|
825
|
+
* @memberof AccountsApi
|
|
826
|
+
*/
|
|
827
|
+
getAccountHoldbacks(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options) {
|
|
828
|
+
return AccountsApiFp(this.configuration)
|
|
829
|
+
.getAccountHoldbacks(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options)
|
|
830
|
+
.then(request => request(this.axios, this.basePath));
|
|
831
|
+
}
|
|
711
832
|
/**
|
|
712
833
|
*
|
|
713
834
|
* @summary Get the account\'s claimable (undeliverable refund) balances across parking lots
|
|
@@ -842,6 +963,13 @@ export const GetAccountHistoryTypeEnum = {
|
|
|
842
963
|
HoldbackClaimed: "HoldbackClaimed",
|
|
843
964
|
WithdrawalClaimed: "WithdrawalClaimed"
|
|
844
965
|
};
|
|
966
|
+
/**
|
|
967
|
+
* @export
|
|
968
|
+
*/
|
|
969
|
+
export const GetAccountHoldbacksStatusEnum = {
|
|
970
|
+
Pending: "Pending",
|
|
971
|
+
Released: "Released"
|
|
972
|
+
};
|
|
845
973
|
/**
|
|
846
974
|
* @export
|
|
847
975
|
*/
|
|
@@ -0,0 +1,115 @@
|
|
|
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: 2.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 { Asset } from "./asset.js";
|
|
13
|
+
import type { VaultSlice } from "./vault-slice.js";
|
|
14
|
+
/**
|
|
15
|
+
* One holdback entry: the portion of a swap\'s collateral withheld at swap time and paid out later by the operator. Created by an ember-share swap and keyed by that swap\'s sequence number, which is the FIFO key a release batch settles against.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AccountHoldback
|
|
18
|
+
*/
|
|
19
|
+
export interface AccountHoldback {
|
|
20
|
+
/**
|
|
21
|
+
* Pending while the entry is still queued awaiting the operator\'s holdback release; Released once a release batch has settled it.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AccountHoldback
|
|
24
|
+
*/
|
|
25
|
+
status: AccountHoldbackStatusEnum;
|
|
26
|
+
/**
|
|
27
|
+
* The collateral withheld at swap time, in the collateral asset\'s base units. Note this is the amount WITHHELD, not the amount finally paid: the per-entry payout is not emitted on-chain, so for a Released entry the settled figure is this amount scaled by releasedUnwindingPercentageE18.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AccountHoldback
|
|
30
|
+
*/
|
|
31
|
+
holdbackAmount: string;
|
|
32
|
+
/**
|
|
33
|
+
* The account whose shares were swapped and whose holdback this is
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AccountHoldback
|
|
36
|
+
*/
|
|
37
|
+
accountAddress: string;
|
|
38
|
+
/**
|
|
39
|
+
* On-chain address of the source (ember) vault whose shares were swapped
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AccountHoldback
|
|
42
|
+
*/
|
|
43
|
+
sourceVaultId: string;
|
|
44
|
+
/**
|
|
45
|
+
* Off-chain id of the source vault\'s PARENT (matches a vault\'s root `id`) — use to resolve the source vault for name/logo. Null when not indexed by us.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AccountHoldback
|
|
48
|
+
*/
|
|
49
|
+
sourceVaultParentId?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* Off-chain id of the source vault\'s chain-level record (matches a vault\'s detailsByChain[*].id). Null when not indexed by us.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AccountHoldback
|
|
54
|
+
*/
|
|
55
|
+
sourceVaultOffchainId?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Sequence number of the swap that created this entry. This is the FIFO key the operator\'s release range is matched against, not a queue array index.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof AccountHoldback
|
|
60
|
+
*/
|
|
61
|
+
swapSequenceNumber: string;
|
|
62
|
+
/**
|
|
63
|
+
* Timestamp in ms the swap queued this holdback
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof AccountHoldback
|
|
66
|
+
*/
|
|
67
|
+
submittedAt: number;
|
|
68
|
+
/**
|
|
69
|
+
* Unwinding percentage (1e18 fixed-point, 1e18 = 100%) recorded by the release batch that settled this entry. Null while still Pending.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof AccountHoldback
|
|
72
|
+
*/
|
|
73
|
+
releasedUnwindingPercentageE18?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Tx hash of the release that settled this entry. Null while still Pending.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof AccountHoldback
|
|
78
|
+
*/
|
|
79
|
+
releasedTxHash?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Tx hash of the swap that queued this holdback
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof AccountHoldback
|
|
84
|
+
*/
|
|
85
|
+
txHash: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {Asset}
|
|
89
|
+
* @memberof AccountHoldback
|
|
90
|
+
*/
|
|
91
|
+
collateralCoin?: Asset;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {VaultSlice}
|
|
95
|
+
* @memberof AccountHoldback
|
|
96
|
+
*/
|
|
97
|
+
atomicVault: VaultSlice;
|
|
98
|
+
/**
|
|
99
|
+
* Off-chain id of the atomic vault\'s chain-level record (matches a vault\'s detailsByChain[*].id). Null when not indexed by us.
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof AccountHoldback
|
|
102
|
+
*/
|
|
103
|
+
atomicVaultOffchainId?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {VaultSlice}
|
|
107
|
+
* @memberof AccountHoldback
|
|
108
|
+
*/
|
|
109
|
+
sourceVault?: VaultSlice;
|
|
110
|
+
}
|
|
111
|
+
export declare const AccountHoldbackStatusEnum: {
|
|
112
|
+
readonly Pending: "Pending";
|
|
113
|
+
readonly Released: "Released";
|
|
114
|
+
};
|
|
115
|
+
export type AccountHoldbackStatusEnum = (typeof AccountHoldbackStatusEnum)[keyof typeof AccountHoldbackStatusEnum];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Ember Protocol Vaults API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export const AccountHoldbackStatusEnum = {
|
|
15
|
+
Pending: "Pending",
|
|
16
|
+
Released: "Released"
|
|
17
|
+
};
|