@ember-finance/sdk 1.0.7 → 1.0.9

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.
Files changed (54) hide show
  1. package/dist/src/vaults/api/apis/accounts-api.d.ts +73 -3
  2. package/dist/src/vaults/api/apis/accounts-api.js +145 -0
  3. package/dist/src/vaults/api/apis/vaults-api.d.ts +100 -25
  4. package/dist/src/vaults/api/apis/vaults-api.js +161 -8
  5. package/dist/src/vaults/api/models/apy-history.d.ts +29 -0
  6. package/dist/src/vaults/api/models/apy-history.js +15 -0
  7. package/dist/src/vaults/api/models/borrowed.d.ts +27 -0
  8. package/dist/src/vaults/api/models/borrowed.js +15 -0
  9. package/dist/src/vaults/api/models/coin-price.d.ts +21 -0
  10. package/dist/src/vaults/api/models/coin-price.js +15 -0
  11. package/dist/src/vaults/api/models/exposure-protocol.d.ts +23 -1
  12. package/dist/src/vaults/api/models/fee.d.ts +23 -0
  13. package/dist/src/vaults/api/models/fee.js +15 -0
  14. package/dist/src/vaults/api/models/index.d.ts +17 -0
  15. package/dist/src/vaults/api/models/index.js +17 -0
  16. package/dist/src/vaults/api/models/lp.d.ts +50 -0
  17. package/dist/src/vaults/api/models/lp.js +15 -0
  18. package/dist/src/vaults/api/models/perps.d.ts +22 -0
  19. package/dist/src/vaults/api/models/perps.js +15 -0
  20. package/dist/src/vaults/api/models/pnl-history-interval.d.ts +17 -0
  21. package/dist/src/vaults/api/models/pnl-history-interval.js +21 -0
  22. package/dist/src/vaults/api/models/pnl-history.d.ts +4 -0
  23. package/dist/src/vaults/api/models/position-value.d.ts +37 -0
  24. package/dist/src/vaults/api/models/position-value.js +15 -0
  25. package/dist/src/vaults/api/models/position.d.ts +29 -0
  26. package/dist/src/vaults/api/models/position.js +15 -0
  27. package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +53 -0
  28. package/dist/src/vaults/api/models/process-requests-summary-event.js +15 -0
  29. package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +41 -0
  30. package/dist/src/vaults/api/models/protocol-fee-collected-event.js +15 -0
  31. package/dist/src/vaults/api/models/protocol.d.ts +0 -9
  32. package/dist/src/vaults/api/models/protocol.js +0 -8
  33. package/dist/src/vaults/api/models/raw-event-event-data.d.ts +6 -1
  34. package/dist/src/vaults/api/models/raw-event.d.ts +5 -0
  35. package/dist/src/vaults/api/models/raw-event.js +6 -1
  36. package/dist/src/vaults/api/models/reward.d.ts +23 -0
  37. package/dist/src/vaults/api/models/reward.js +15 -0
  38. package/dist/src/vaults/api/models/supplied.d.ts +27 -0
  39. package/dist/src/vaults/api/models/supplied.js +15 -0
  40. package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +41 -0
  41. package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.js +15 -0
  42. package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +33 -0
  43. package/dist/src/vaults/api/models/vault-platform-fee-charged-event.js +15 -0
  44. package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +41 -0
  45. package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.js +15 -0
  46. package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +29 -0
  47. package/dist/src/vaults/api/models/yield-aggregate-value.js +15 -0
  48. package/dist/src/vaults/on-chain-calls/operator.d.ts +11 -0
  49. package/dist/src/vaults/on-chain-calls/operator.js +16 -0
  50. package/dist/src/vaults/on-chain-calls/tx-builder.d.ts +17 -0
  51. package/dist/src/vaults/on-chain-calls/tx-builder.js +64 -0
  52. package/dist/src/vaults/on-chain-calls/user.d.ts +9 -0
  53. package/dist/src/vaults/on-chain-calls/user.js +16 -0
  54. package/package.json +2 -1
@@ -28,11 +28,44 @@ const base_1 = require("../base");
28
28
  */
29
29
  const VaultsApiAxiosParamCreator = function (configuration) {
30
30
  return {
31
+ /**
32
+ *
33
+ * @summary Get the price of the coins
34
+ * @param {string} [coinTypes] The coin types of the coins
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ getCoinsPrice: async (coinTypes, options = {}) => {
39
+ const localVarPath = `/api/v1/vaults/coins/price`;
40
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
42
+ let baseOptions;
43
+ if (configuration) {
44
+ baseOptions = configuration.baseOptions;
45
+ }
46
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
47
+ const localVarHeaderParameter = {};
48
+ const localVarQueryParameter = {};
49
+ if (coinTypes !== undefined) {
50
+ localVarQueryParameter["coinTypes"] = coinTypes;
51
+ }
52
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
53
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54
+ localVarRequestOptions.headers = {
55
+ ...localVarHeaderParameter,
56
+ ...headersFromBaseOptions,
57
+ ...options.headers
58
+ };
59
+ return {
60
+ url: (0, common_1.toPathString)(localVarUrlObj),
61
+ options: localVarRequestOptions
62
+ };
63
+ },
31
64
  /**
32
65
  *
33
66
  * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
34
67
  * @param {number} [limit] The limit of the rows
35
- * @param {HistoryInterval} [interval] The interval of the rows
68
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
36
69
  * @param {*} [options] Override http request option.
37
70
  * @throws {RequiredError}
38
71
  */
@@ -149,6 +182,46 @@ const VaultsApiAxiosParamCreator = function (configuration) {
149
182
  options: localVarRequestOptions
150
183
  };
151
184
  },
185
+ /**
186
+ *
187
+ * @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
188
+ * @param {string} vaultId The id of the vault
189
+ * @param {number} [limit] The limit of the rows
190
+ * @param {HistoryInterval} [interval] The interval of the rows
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ getVaultApyHistory: async (vaultId, limit, interval, options = {}) => {
195
+ // verify required parameter 'vaultId' is not null or undefined
196
+ (0, common_1.assertParamExists)("getVaultApyHistory", "vaultId", vaultId);
197
+ const localVarPath = `/api/v1/vaults/apy-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
198
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
199
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
200
+ let baseOptions;
201
+ if (configuration) {
202
+ baseOptions = configuration.baseOptions;
203
+ }
204
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
205
+ const localVarHeaderParameter = {};
206
+ const localVarQueryParameter = {};
207
+ if (limit !== undefined) {
208
+ localVarQueryParameter["limit"] = limit;
209
+ }
210
+ if (interval !== undefined) {
211
+ localVarQueryParameter["interval"] = interval;
212
+ }
213
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
214
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
215
+ localVarRequestOptions.headers = {
216
+ ...localVarHeaderParameter,
217
+ ...headersFromBaseOptions,
218
+ ...options.headers
219
+ };
220
+ return {
221
+ url: (0, common_1.toPathString)(localVarUrlObj),
222
+ options: localVarRequestOptions
223
+ };
224
+ },
152
225
  /**
153
226
  *
154
227
  * @summary Get the exposure of the vault
@@ -186,7 +259,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
186
259
  * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
187
260
  * @param {string} vaultId The id of the vault
188
261
  * @param {number} [limit] The limit of the rows
189
- * @param {HistoryInterval} [interval] The interval of the rows
262
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
190
263
  * @param {*} [options] Override http request option.
191
264
  * @throws {RequiredError}
192
265
  */
@@ -442,11 +515,24 @@ exports.VaultsApiAxiosParamCreator = VaultsApiAxiosParamCreator;
442
515
  const VaultsApiFp = function (configuration) {
443
516
  const localVarAxiosParamCreator = (0, exports.VaultsApiAxiosParamCreator)(configuration);
444
517
  return {
518
+ /**
519
+ *
520
+ * @summary Get the price of the coins
521
+ * @param {string} [coinTypes] The coin types of the coins
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ */
525
+ async getCoinsPrice(coinTypes, options) {
526
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCoinsPrice(coinTypes, options);
527
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
528
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getCoinsPrice"]?.[localVarOperationServerIndex]?.url;
529
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
530
+ },
445
531
  /**
446
532
  *
447
533
  * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
448
534
  * @param {number} [limit] The limit of the rows
449
- * @param {HistoryInterval} [interval] The interval of the rows
535
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
450
536
  * @param {*} [options] Override http request option.
451
537
  * @throws {RequiredError}
452
538
  */
@@ -486,6 +572,21 @@ const VaultsApiFp = function (configuration) {
486
572
  const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getRawEvents"]?.[localVarOperationServerIndex]?.url;
487
573
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
488
574
  },
575
+ /**
576
+ *
577
+ * @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
578
+ * @param {string} vaultId The id of the vault
579
+ * @param {number} [limit] The limit of the rows
580
+ * @param {HistoryInterval} [interval] The interval of the rows
581
+ * @param {*} [options] Override http request option.
582
+ * @throws {RequiredError}
583
+ */
584
+ async getVaultApyHistory(vaultId, limit, interval, options) {
585
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultApyHistory(vaultId, limit, interval, options);
586
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
587
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultApyHistory"]?.[localVarOperationServerIndex]?.url;
588
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
589
+ },
489
590
  /**
490
591
  *
491
592
  * @summary Get the exposure of the vault
@@ -504,7 +605,7 @@ const VaultsApiFp = function (configuration) {
504
605
  * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
505
606
  * @param {string} vaultId The id of the vault
506
607
  * @param {number} [limit] The limit of the rows
507
- * @param {HistoryInterval} [interval] The interval of the rows
608
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
508
609
  * @param {*} [options] Override http request option.
509
610
  * @throws {RequiredError}
510
611
  */
@@ -606,11 +707,23 @@ exports.VaultsApiFp = VaultsApiFp;
606
707
  const VaultsApiFactory = function (configuration, basePath, axios) {
607
708
  const localVarFp = (0, exports.VaultsApiFp)(configuration);
608
709
  return {
710
+ /**
711
+ *
712
+ * @summary Get the price of the coins
713
+ * @param {string} [coinTypes] The coin types of the coins
714
+ * @param {*} [options] Override http request option.
715
+ * @throws {RequiredError}
716
+ */
717
+ getCoinsPrice(coinTypes, options) {
718
+ return localVarFp
719
+ .getCoinsPrice(coinTypes, options)
720
+ .then(request => request(axios, basePath));
721
+ },
609
722
  /**
610
723
  *
611
724
  * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
612
725
  * @param {number} [limit] The limit of the rows
613
- * @param {HistoryInterval} [interval] The interval of the rows
726
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
614
727
  * @param {*} [options] Override http request option.
615
728
  * @throws {RequiredError}
616
729
  */
@@ -647,6 +760,20 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
647
760
  .getRawEvents(startTimeInMs, endTimeInMs, limit, page, options)
648
761
  .then(request => request(axios, basePath));
649
762
  },
763
+ /**
764
+ *
765
+ * @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
766
+ * @param {string} vaultId The id of the vault
767
+ * @param {number} [limit] The limit of the rows
768
+ * @param {HistoryInterval} [interval] The interval of the rows
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ */
772
+ getVaultApyHistory(vaultId, limit, interval, options) {
773
+ return localVarFp
774
+ .getVaultApyHistory(vaultId, limit, interval, options)
775
+ .then(request => request(axios, basePath));
776
+ },
650
777
  /**
651
778
  *
652
779
  * @summary Get the exposure of the vault
@@ -664,7 +791,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
664
791
  * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
665
792
  * @param {string} vaultId The id of the vault
666
793
  * @param {number} [limit] The limit of the rows
667
- * @param {HistoryInterval} [interval] The interval of the rows
794
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
668
795
  * @param {*} [options] Override http request option.
669
796
  * @throws {RequiredError}
670
797
  */
@@ -756,11 +883,23 @@ exports.VaultsApiFactory = VaultsApiFactory;
756
883
  * VaultsApi - object-oriented interface
757
884
  */
758
885
  class VaultsApi extends base_1.BaseAPI {
886
+ /**
887
+ *
888
+ * @summary Get the price of the coins
889
+ * @param {string} [coinTypes] The coin types of the coins
890
+ * @param {*} [options] Override http request option.
891
+ * @throws {RequiredError}
892
+ */
893
+ getCoinsPrice(coinTypes, options) {
894
+ return (0, exports.VaultsApiFp)(this.configuration)
895
+ .getCoinsPrice(coinTypes, options)
896
+ .then(request => request(this.axios, this.basePath));
897
+ }
759
898
  /**
760
899
  *
761
900
  * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
762
901
  * @param {number} [limit] The limit of the rows
763
- * @param {HistoryInterval} [interval] The interval of the rows
902
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
764
903
  * @param {*} [options] Override http request option.
765
904
  * @throws {RequiredError}
766
905
  */
@@ -797,6 +936,20 @@ class VaultsApi extends base_1.BaseAPI {
797
936
  .getRawEvents(startTimeInMs, endTimeInMs, limit, page, options)
798
937
  .then(request => request(this.axios, this.basePath));
799
938
  }
939
+ /**
940
+ *
941
+ * @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
942
+ * @param {string} vaultId The id of the vault
943
+ * @param {number} [limit] The limit of the rows
944
+ * @param {HistoryInterval} [interval] The interval of the rows
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ */
948
+ getVaultApyHistory(vaultId, limit, interval, options) {
949
+ return (0, exports.VaultsApiFp)(this.configuration)
950
+ .getVaultApyHistory(vaultId, limit, interval, options)
951
+ .then(request => request(this.axios, this.basePath));
952
+ }
800
953
  /**
801
954
  *
802
955
  * @summary Get the exposure of the vault
@@ -814,7 +967,7 @@ class VaultsApi extends base_1.BaseAPI {
814
967
  * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
815
968
  * @param {string} vaultId The id of the vault
816
969
  * @param {number} [limit] The limit of the rows
817
- * @param {HistoryInterval} [interval] The interval of the rows
970
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
818
971
  * @param {*} [options] Override http request option.
819
972
  * @throws {RequiredError}
820
973
  */
@@ -0,0 +1,29 @@
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 interface ApyHistory {
13
+ /**
14
+ * The timestamp of the event
15
+ */
16
+ timestamp: number;
17
+ /**
18
+ * The apy of the event
19
+ */
20
+ apyE9: string;
21
+ /**
22
+ * The target apy of the event
23
+ */
24
+ targetApyE9: string;
25
+ /**
26
+ * The lending apy of the event
27
+ */
28
+ lendingApyE9: string;
29
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
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 { Asset } from "./asset";
13
+ export interface Borrowed {
14
+ coin: Asset;
15
+ /**
16
+ * The amount of the borrowed
17
+ */
18
+ amount: string;
19
+ /**
20
+ * The amount of the borrowed in e9 in USDC
21
+ */
22
+ amountUsdE9: string;
23
+ /**
24
+ * The apy of the borrowed
25
+ */
26
+ apyE9: string;
27
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
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 interface CoinPrice {
13
+ /**
14
+ * The type of the coin
15
+ */
16
+ coinType: string;
17
+ /**
18
+ * The price of the coin in e9
19
+ */
20
+ priceE9: string;
21
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,11 +9,33 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { Borrowed } from "./borrowed";
13
+ import type { Lp } from "./lp";
14
+ import type { Perps } from "./perps";
12
15
  import type { Protocol } from "./protocol";
16
+ import type { Reward } from "./reward";
17
+ import type { Supplied } from "./supplied";
13
18
  export interface ExposureProtocol {
14
19
  protocol: Protocol;
15
20
  /**
16
21
  * The exposure of the protocol
17
22
  */
18
- amountUsdE9: string;
23
+ netValueUsdE9: string;
24
+ /**
25
+ * The lps of the protocol
26
+ */
27
+ lps: Array<Lp>;
28
+ /**
29
+ * The borrowed of the protocol
30
+ */
31
+ borrowed: Array<Borrowed>;
32
+ /**
33
+ * The supplied of the protocol
34
+ */
35
+ supplied: Array<Supplied>;
36
+ /**
37
+ * The rewards of the protocol
38
+ */
39
+ rewards: Array<Reward>;
40
+ perps: Perps;
19
41
  }
@@ -0,0 +1,23 @@
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 { Asset } from "./asset";
13
+ export interface Fee {
14
+ coin: Asset;
15
+ /**
16
+ * The amount of the fee
17
+ */
18
+ amount: string;
19
+ /**
20
+ * The amount of the fee in e9 in USDC
21
+ */
22
+ amountUsdE9: string;
23
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +1,27 @@
1
1
  export * from "./account-transaction";
2
2
  export * from "./account-transaction-transaction-data";
3
3
  export * from "./account-withdrawal-request";
4
+ export * from "./apy-history";
4
5
  export * from "./asset";
6
+ export * from "./borrowed";
7
+ export * from "./coin-price";
5
8
  export * from "./deposit-transaction";
6
9
  export * from "./exposure";
7
10
  export * from "./exposure-coin";
8
11
  export * from "./exposure-protocol";
12
+ export * from "./fee";
9
13
  export * from "./history-interval";
14
+ export * from "./lp";
10
15
  export * from "./manager";
11
16
  export * from "./min-withdrawal-shares-updated-event";
17
+ export * from "./perps";
12
18
  export * from "./pnl-history";
19
+ export * from "./pnl-history-interval";
20
+ export * from "./position";
21
+ export * from "./position-value";
22
+ export * from "./process-requests-summary-event";
13
23
  export * from "./protocol";
24
+ export * from "./protocol-fee-collected-event";
14
25
  export * from "./protocol-info";
15
26
  export * from "./raw-event";
16
27
  export * from "./raw-event-event-data";
@@ -21,23 +32,29 @@ export * from "./redeem-request-transaction";
21
32
  export * from "./reported-apy";
22
33
  export * from "./request-processed-event";
23
34
  export * from "./request-redeemed-event";
35
+ export * from "./reward";
24
36
  export * from "./reward-token";
25
37
  export * from "./share-price-history";
26
38
  export * from "./strategy";
27
39
  export * from "./sub-account";
40
+ export * from "./supplied";
28
41
  export * from "./tvl-history";
29
42
  export * from "./ultra-coin-info";
30
43
  export * from "./update-vault-strategies";
31
44
  export * from "./vault-admin-changed-event";
32
45
  export * from "./vault-created-event";
33
46
  export * from "./vault-deposit-event";
47
+ export * from "./vault-deposit-without-minting-shares-event";
34
48
  export * from "./vault-detail";
35
49
  export * from "./vault-fee-percentage-updated-event";
36
50
  export * from "./vault-info";
37
51
  export * from "./vault-max-tvl-updated-event";
38
52
  export * from "./vault-operator-changed-event";
39
53
  export * from "./vault-paused-status-updated-event";
54
+ export * from "./vault-platform-fee-charged-event";
40
55
  export * from "./vault-protocol";
41
56
  export * from "./vault-rate-updated-event";
42
57
  export * from "./vault-slice";
43
58
  export * from "./vault-sub-account-updated-event";
59
+ export * from "./vault-withdrawal-without-redeeming-shares-event";
60
+ export * from "./yield-aggregate-value";
@@ -17,16 +17,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./account-transaction"), exports);
18
18
  __exportStar(require("./account-transaction-transaction-data"), exports);
19
19
  __exportStar(require("./account-withdrawal-request"), exports);
20
+ __exportStar(require("./apy-history"), exports);
20
21
  __exportStar(require("./asset"), exports);
22
+ __exportStar(require("./borrowed"), exports);
23
+ __exportStar(require("./coin-price"), exports);
21
24
  __exportStar(require("./deposit-transaction"), exports);
22
25
  __exportStar(require("./exposure"), exports);
23
26
  __exportStar(require("./exposure-coin"), exports);
24
27
  __exportStar(require("./exposure-protocol"), exports);
28
+ __exportStar(require("./fee"), exports);
25
29
  __exportStar(require("./history-interval"), exports);
30
+ __exportStar(require("./lp"), exports);
26
31
  __exportStar(require("./manager"), exports);
27
32
  __exportStar(require("./min-withdrawal-shares-updated-event"), exports);
33
+ __exportStar(require("./perps"), exports);
28
34
  __exportStar(require("./pnl-history"), exports);
35
+ __exportStar(require("./pnl-history-interval"), exports);
36
+ __exportStar(require("./position"), exports);
37
+ __exportStar(require("./position-value"), exports);
38
+ __exportStar(require("./process-requests-summary-event"), exports);
29
39
  __exportStar(require("./protocol"), exports);
40
+ __exportStar(require("./protocol-fee-collected-event"), exports);
30
41
  __exportStar(require("./protocol-info"), exports);
31
42
  __exportStar(require("./raw-event"), exports);
32
43
  __exportStar(require("./raw-event-event-data"), exports);
@@ -37,23 +48,29 @@ __exportStar(require("./redeem-request-transaction"), exports);
37
48
  __exportStar(require("./reported-apy"), exports);
38
49
  __exportStar(require("./request-processed-event"), exports);
39
50
  __exportStar(require("./request-redeemed-event"), exports);
51
+ __exportStar(require("./reward"), exports);
40
52
  __exportStar(require("./reward-token"), exports);
41
53
  __exportStar(require("./share-price-history"), exports);
42
54
  __exportStar(require("./strategy"), exports);
43
55
  __exportStar(require("./sub-account"), exports);
56
+ __exportStar(require("./supplied"), exports);
44
57
  __exportStar(require("./tvl-history"), exports);
45
58
  __exportStar(require("./ultra-coin-info"), exports);
46
59
  __exportStar(require("./update-vault-strategies"), exports);
47
60
  __exportStar(require("./vault-admin-changed-event"), exports);
48
61
  __exportStar(require("./vault-created-event"), exports);
49
62
  __exportStar(require("./vault-deposit-event"), exports);
63
+ __exportStar(require("./vault-deposit-without-minting-shares-event"), exports);
50
64
  __exportStar(require("./vault-detail"), exports);
51
65
  __exportStar(require("./vault-fee-percentage-updated-event"), exports);
52
66
  __exportStar(require("./vault-info"), exports);
53
67
  __exportStar(require("./vault-max-tvl-updated-event"), exports);
54
68
  __exportStar(require("./vault-operator-changed-event"), exports);
55
69
  __exportStar(require("./vault-paused-status-updated-event"), exports);
70
+ __exportStar(require("./vault-platform-fee-charged-event"), exports);
56
71
  __exportStar(require("./vault-protocol"), exports);
57
72
  __exportStar(require("./vault-rate-updated-event"), exports);
58
73
  __exportStar(require("./vault-slice"), exports);
59
74
  __exportStar(require("./vault-sub-account-updated-event"), exports);
75
+ __exportStar(require("./vault-withdrawal-without-redeeming-shares-event"), exports);
76
+ __exportStar(require("./yield-aggregate-value"), exports);
@@ -0,0 +1,50 @@
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 { Asset } from "./asset";
13
+ import type { Fee } from "./fee";
14
+ import type { Reward } from "./reward";
15
+ export interface Lp {
16
+ coinA: Asset;
17
+ coinB: Asset;
18
+ /**
19
+ * The amount of coin A
20
+ */
21
+ coinAAmount: string;
22
+ /**
23
+ * The amount of coin B
24
+ */
25
+ coinBAmount: string;
26
+ /**
27
+ * The amount of coin A in e9 in USDC
28
+ */
29
+ coinAAmountUsdE9: string;
30
+ /**
31
+ * The amount of coin B in e9 in USDC
32
+ */
33
+ coinBAmountUsdE9: string;
34
+ /**
35
+ * The apr of the lp in percentage
36
+ */
37
+ apy: string;
38
+ /**
39
+ * The name of the pool
40
+ */
41
+ poolName: string;
42
+ /**
43
+ * The rewards of the lp
44
+ */
45
+ rewards: Array<Reward>;
46
+ /**
47
+ * The fees of the lp
48
+ */
49
+ fees: Array<Fee>;
50
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });