@ember-finance/sdk 2.16.0 → 2.17.0
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/vaults-api.d.ts +8 -8
- package/dist/src/api/v2/apis/vaults-api.js +4 -6
- package/dist/src/api/v2/models/atomic-vault-info.d.ts +84 -0
- package/dist/src/api/v2/models/atomic-vault-info.js +14 -0
- package/dist/src/api/v2/models/index.d.ts +1 -0
- package/dist/src/api/v2/models/index.js +1 -0
- package/dist/src/api/v2/models/sui-protocol-info.d.ts +9 -0
- package/package.json +1 -1
|
@@ -48,13 +48,13 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
48
48
|
/**
|
|
49
49
|
* Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
|
|
50
50
|
* @summary Get venues that list an Ember receipt coin
|
|
51
|
-
* @param {string} coin Sui coin type or EVM token address of the receipt coin
|
|
51
|
+
* @param {string} [coin] Sui coin type or EVM token address of the receipt coin. Omit it to get every active placement, sorted by coin. A blank value is rejected.
|
|
52
52
|
* @param {string} [protocol] Restrict to one protocol adapter id, e.g. \"bluefin-spot\"
|
|
53
53
|
* @param {string} [chainIdentifier] Narrow to one chain, e.g. \"sui-mainnet\".
|
|
54
54
|
* @param {*} [options] Override http request option.
|
|
55
55
|
* @throws {RequiredError}
|
|
56
56
|
*/
|
|
57
|
-
getCoinPlacements: (coin
|
|
57
|
+
getCoinPlacements: (coin?: string, protocol?: string, chainIdentifier?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @summary Get the price of the coins
|
|
@@ -215,13 +215,13 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
|
|
|
215
215
|
/**
|
|
216
216
|
* Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
|
|
217
217
|
* @summary Get venues that list an Ember receipt coin
|
|
218
|
-
* @param {string} coin Sui coin type or EVM token address of the receipt coin
|
|
218
|
+
* @param {string} [coin] Sui coin type or EVM token address of the receipt coin. Omit it to get every active placement, sorted by coin. A blank value is rejected.
|
|
219
219
|
* @param {string} [protocol] Restrict to one protocol adapter id, e.g. \"bluefin-spot\"
|
|
220
220
|
* @param {string} [chainIdentifier] Narrow to one chain, e.g. \"sui-mainnet\".
|
|
221
221
|
* @param {*} [options] Override http request option.
|
|
222
222
|
* @throws {RequiredError}
|
|
223
223
|
*/
|
|
224
|
-
getCoinPlacements(coin
|
|
224
|
+
getCoinPlacements(coin?: string, protocol?: string, chainIdentifier?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CoinPlacementsResponse>>;
|
|
225
225
|
/**
|
|
226
226
|
*
|
|
227
227
|
* @summary Get the price of the coins
|
|
@@ -382,13 +382,13 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
|
|
|
382
382
|
/**
|
|
383
383
|
* Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
|
|
384
384
|
* @summary Get venues that list an Ember receipt coin
|
|
385
|
-
* @param {string} coin Sui coin type or EVM token address of the receipt coin
|
|
385
|
+
* @param {string} [coin] Sui coin type or EVM token address of the receipt coin. Omit it to get every active placement, sorted by coin. A blank value is rejected.
|
|
386
386
|
* @param {string} [protocol] Restrict to one protocol adapter id, e.g. \"bluefin-spot\"
|
|
387
387
|
* @param {string} [chainIdentifier] Narrow to one chain, e.g. \"sui-mainnet\".
|
|
388
388
|
* @param {*} [options] Override http request option.
|
|
389
389
|
* @throws {RequiredError}
|
|
390
390
|
*/
|
|
391
|
-
getCoinPlacements(coin
|
|
391
|
+
getCoinPlacements(coin?: string, protocol?: string, chainIdentifier?: string, options?: RawAxiosRequestConfig): AxiosPromise<CoinPlacementsResponse>;
|
|
392
392
|
/**
|
|
393
393
|
*
|
|
394
394
|
* @summary Get the price of the coins
|
|
@@ -552,14 +552,14 @@ export declare class VaultsApi extends BaseAPI {
|
|
|
552
552
|
/**
|
|
553
553
|
* Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
|
|
554
554
|
* @summary Get venues that list an Ember receipt coin
|
|
555
|
-
* @param {string} coin Sui coin type or EVM token address of the receipt coin
|
|
555
|
+
* @param {string} [coin] Sui coin type or EVM token address of the receipt coin. Omit it to get every active placement, sorted by coin. A blank value is rejected.
|
|
556
556
|
* @param {string} [protocol] Restrict to one protocol adapter id, e.g. \"bluefin-spot\"
|
|
557
557
|
* @param {string} [chainIdentifier] Narrow to one chain, e.g. \"sui-mainnet\".
|
|
558
558
|
* @param {*} [options] Override http request option.
|
|
559
559
|
* @throws {RequiredError}
|
|
560
560
|
* @memberof VaultsApi
|
|
561
561
|
*/
|
|
562
|
-
getCoinPlacements(coin
|
|
562
|
+
getCoinPlacements(coin?: string, protocol?: string, chainIdentifier?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CoinPlacementsResponse, any, {}>>;
|
|
563
563
|
/**
|
|
564
564
|
*
|
|
565
565
|
* @summary Get the price of the coins
|
|
@@ -55,15 +55,13 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
55
55
|
/**
|
|
56
56
|
* Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
|
|
57
57
|
* @summary Get venues that list an Ember receipt coin
|
|
58
|
-
* @param {string} coin Sui coin type or EVM token address of the receipt coin
|
|
58
|
+
* @param {string} [coin] Sui coin type or EVM token address of the receipt coin. Omit it to get every active placement, sorted by coin. A blank value is rejected.
|
|
59
59
|
* @param {string} [protocol] Restrict to one protocol adapter id, e.g. \"bluefin-spot\"
|
|
60
60
|
* @param {string} [chainIdentifier] Narrow to one chain, e.g. \"sui-mainnet\".
|
|
61
61
|
* @param {*} [options] Override http request option.
|
|
62
62
|
* @throws {RequiredError}
|
|
63
63
|
*/
|
|
64
64
|
getCoinPlacements: async (coin, protocol, chainIdentifier, options = {}) => {
|
|
65
|
-
// verify required parameter 'coin' is not null or undefined
|
|
66
|
-
assertParamExists("getCoinPlacements", "coin", coin);
|
|
67
65
|
const localVarPath = `/api/v2/vaults/placements`;
|
|
68
66
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
69
67
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -713,7 +711,7 @@ export const VaultsApiFp = function (configuration) {
|
|
|
713
711
|
/**
|
|
714
712
|
* Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
|
|
715
713
|
* @summary Get venues that list an Ember receipt coin
|
|
716
|
-
* @param {string} coin Sui coin type or EVM token address of the receipt coin
|
|
714
|
+
* @param {string} [coin] Sui coin type or EVM token address of the receipt coin. Omit it to get every active placement, sorted by coin. A blank value is rejected.
|
|
717
715
|
* @param {string} [protocol] Restrict to one protocol adapter id, e.g. \"bluefin-spot\"
|
|
718
716
|
* @param {string} [chainIdentifier] Narrow to one chain, e.g. \"sui-mainnet\".
|
|
719
717
|
* @param {*} [options] Override http request option.
|
|
@@ -974,7 +972,7 @@ export const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
974
972
|
/**
|
|
975
973
|
* Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
|
|
976
974
|
* @summary Get venues that list an Ember receipt coin
|
|
977
|
-
* @param {string} coin Sui coin type or EVM token address of the receipt coin
|
|
975
|
+
* @param {string} [coin] Sui coin type or EVM token address of the receipt coin. Omit it to get every active placement, sorted by coin. A blank value is rejected.
|
|
978
976
|
* @param {string} [protocol] Restrict to one protocol adapter id, e.g. \"bluefin-spot\"
|
|
979
977
|
* @param {string} [chainIdentifier] Narrow to one chain, e.g. \"sui-mainnet\".
|
|
980
978
|
* @param {*} [options] Override http request option.
|
|
@@ -1217,7 +1215,7 @@ export class VaultsApi extends BaseAPI {
|
|
|
1217
1215
|
/**
|
|
1218
1216
|
* Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
|
|
1219
1217
|
* @summary Get venues that list an Ember receipt coin
|
|
1220
|
-
* @param {string} coin Sui coin type or EVM token address of the receipt coin
|
|
1218
|
+
* @param {string} [coin] Sui coin type or EVM token address of the receipt coin. Omit it to get every active placement, sorted by coin. A blank value is rejected.
|
|
1221
1219
|
* @param {string} [protocol] Restrict to one protocol adapter id, e.g. \"bluefin-spot\"
|
|
1222
1220
|
* @param {string} [chainIdentifier] Narrow to one chain, e.g. \"sui-mainnet\".
|
|
1223
1221
|
* @param {*} [options] Override http request option.
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* An Atomic Liquidity Vault on Sui. Not a VaultInfo with extra fields: an ALV mints no receipt coin, so it has no ReceiptCoinType, and it carries a rate manager because its rate is set externally rather than derived from a receipt supply.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AtomicVaultInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface AtomicVaultInfo {
|
|
18
|
+
/**
|
|
19
|
+
* The name of the vault
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AtomicVaultInfo
|
|
22
|
+
*/
|
|
23
|
+
Name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The object identifier of the vault
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AtomicVaultInfo
|
|
28
|
+
*/
|
|
29
|
+
ObjectId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The coin type the vault holds and pays out in
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AtomicVaultInfo
|
|
34
|
+
*/
|
|
35
|
+
CollateralCoinType?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The number of decimals for the collateral coin
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AtomicVaultInfo
|
|
40
|
+
*/
|
|
41
|
+
CollateralCoinDecimals?: number;
|
|
42
|
+
/**
|
|
43
|
+
* The admin identifier for the vault
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AtomicVaultInfo
|
|
46
|
+
*/
|
|
47
|
+
Admin?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The operator identifier for the vault
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AtomicVaultInfo
|
|
52
|
+
*/
|
|
53
|
+
Operator?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The address allowed to update the vault\'s rate
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AtomicVaultInfo
|
|
58
|
+
*/
|
|
59
|
+
RateManager?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The maximum rate change per update
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof AtomicVaultInfo
|
|
64
|
+
*/
|
|
65
|
+
MaxRateChangePerUpdate?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The fee percentage for the vault
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AtomicVaultInfo
|
|
70
|
+
*/
|
|
71
|
+
FeePercentage?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The minimum withdrawal shares
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof AtomicVaultInfo
|
|
76
|
+
*/
|
|
77
|
+
MinWithdrawalShares?: string;
|
|
78
|
+
/**
|
|
79
|
+
* List of sub-account identifiers
|
|
80
|
+
* @type {Array<string>}
|
|
81
|
+
* @memberof AtomicVaultInfo
|
|
82
|
+
*/
|
|
83
|
+
SubAccounts?: Array<string>;
|
|
84
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 {};
|
|
@@ -12,6 +12,7 @@ export * from "./apy-history.js";
|
|
|
12
12
|
export * from "./apy-history-response.js";
|
|
13
13
|
export * from "./apy-period-average.js";
|
|
14
14
|
export * from "./asset.js";
|
|
15
|
+
export * from "./atomic-vault-info.js";
|
|
15
16
|
export * from "./borrowed.js";
|
|
16
17
|
export * from "./chain.js";
|
|
17
18
|
export * from "./chain-vault-details.js";
|
|
@@ -12,6 +12,7 @@ export * from "./apy-history.js";
|
|
|
12
12
|
export * from "./apy-history-response.js";
|
|
13
13
|
export * from "./apy-period-average.js";
|
|
14
14
|
export * from "./asset.js";
|
|
15
|
+
export * from "./atomic-vault-info.js";
|
|
15
16
|
export * from "./borrowed.js";
|
|
16
17
|
export * from "./chain.js";
|
|
17
18
|
export * from "./chain-vault-details.js";
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AtomicVaultInfo } from "./atomic-vault-info.js";
|
|
12
13
|
import type { UltraCoinInfo } from "./ultra-coin-info.js";
|
|
13
14
|
import type { VaultInfo } from "./vault-info.js";
|
|
14
15
|
import type { VaultProtocol } from "./vault-protocol.js";
|
|
@@ -38,4 +39,12 @@ export interface SuiProtocolInfo {
|
|
|
38
39
|
Vaults?: {
|
|
39
40
|
[key: string]: VaultInfo;
|
|
40
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* Map of Atomic Liquidity Vaults by id
|
|
44
|
+
* @type {{ [key: string]: AtomicVaultInfo; }}
|
|
45
|
+
* @memberof SuiProtocolInfo
|
|
46
|
+
*/
|
|
47
|
+
AtomicVaults?: {
|
|
48
|
+
[key: string]: AtomicVaultInfo;
|
|
49
|
+
};
|
|
41
50
|
}
|