@ember-finance/sdk 1.0.18 → 1.0.20

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.
@@ -0,0 +1,54 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface Chain
16
+ */
17
+ export interface Chain {
18
+ /**
19
+ * The identifier of the chain
20
+ * @type {string}
21
+ * @memberof Chain
22
+ */
23
+ identifier: string;
24
+ /**
25
+ * The name of the chain
26
+ * @type {string}
27
+ * @memberof Chain
28
+ */
29
+ name: string;
30
+ /**
31
+ * The type of the chain
32
+ * @type {string}
33
+ * @memberof Chain
34
+ */
35
+ type: ChainTypeEnum;
36
+ /**
37
+ * The id of the network
38
+ * @type {number}
39
+ * @memberof Chain
40
+ */
41
+ networkId?: number;
42
+ /**
43
+ * The name of the blockchain explorer
44
+ * @type {string}
45
+ * @memberof Chain
46
+ */
47
+ explorerName: string;
48
+ }
49
+ export declare const ChainTypeEnum: {
50
+ readonly Evm: "EVM";
51
+ readonly Solana: "SOLANA";
52
+ readonly Sui: "SUI";
53
+ };
54
+ export type ChainTypeEnum = (typeof ChainTypeEnum)[keyof typeof ChainTypeEnum];
@@ -0,0 +1,21 @@
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 });
16
+ exports.ChainTypeEnum = void 0;
17
+ exports.ChainTypeEnum = {
18
+ Evm: "EVM",
19
+ Solana: "SOLANA",
20
+ Sui: "SUI"
21
+ };
@@ -4,6 +4,7 @@ export * from "./account-withdrawal-request";
4
4
  export * from "./apy-history";
5
5
  export * from "./asset";
6
6
  export * from "./borrowed";
7
+ export * from "./chain";
7
8
  export * from "./coin-price";
8
9
  export * from "./deposit-transaction";
9
10
  export * from "./ember-position";
@@ -40,6 +41,7 @@ export * from "./reward";
40
41
  export * from "./reward-token";
41
42
  export * from "./share-price-history";
42
43
  export * from "./strategy";
44
+ export * from "./strategy-account";
43
45
  export * from "./sub-account";
44
46
  export * from "./supplied";
45
47
  export * from "./tag";
@@ -20,6 +20,7 @@ __exportStar(require("./account-withdrawal-request"), exports);
20
20
  __exportStar(require("./apy-history"), exports);
21
21
  __exportStar(require("./asset"), exports);
22
22
  __exportStar(require("./borrowed"), exports);
23
+ __exportStar(require("./chain"), exports);
23
24
  __exportStar(require("./coin-price"), exports);
24
25
  __exportStar(require("./deposit-transaction"), exports);
25
26
  __exportStar(require("./ember-position"), exports);
@@ -56,6 +57,7 @@ __exportStar(require("./reward"), exports);
56
57
  __exportStar(require("./reward-token"), exports);
57
58
  __exportStar(require("./share-price-history"), exports);
58
59
  __exportStar(require("./strategy"), exports);
60
+ __exportStar(require("./strategy-account"), exports);
59
61
  __exportStar(require("./sub-account"), exports);
60
62
  __exportStar(require("./supplied"), exports);
61
63
  __exportStar(require("./tag"), exports);
@@ -33,4 +33,28 @@ export interface PnlHistory {
33
33
  * @memberof PnlHistory
34
34
  */
35
35
  cumulativePnlE9: string;
36
+ /**
37
+ * The pnl in terms of usd
38
+ * @type {string}
39
+ * @memberof PnlHistory
40
+ */
41
+ pnlUsdE9: string;
42
+ /**
43
+ * The cumulative pnl in terms of usd
44
+ * @type {string}
45
+ * @memberof PnlHistory
46
+ */
47
+ cumulativePnlUsdE9: string;
48
+ /**
49
+ * The pnl in terms of deposit coin amount
50
+ * @type {string}
51
+ * @memberof PnlHistory
52
+ */
53
+ pnlInCoinAmount: string;
54
+ /**
55
+ * The cumulative pnl in terms of deposit coin amount
56
+ * @type {string}
57
+ * @memberof PnlHistory
58
+ */
59
+ cumulativePnlInCoinAmount: string;
36
60
  }
@@ -27,12 +27,36 @@ export interface PositionHistory {
27
27
  * @memberof PositionHistory
28
28
  */
29
29
  positionValueUsdE9: string;
30
+ /**
31
+ * The position value in terms of deposit coin amount
32
+ * @type {string}
33
+ * @memberof PositionHistory
34
+ */
35
+ positionValueInCoinAmount: string;
30
36
  /**
31
37
  * The shares of the event
32
38
  * @type {string}
33
39
  * @memberof PositionHistory
34
40
  */
35
41
  shares: string;
42
+ /**
43
+ * The unrealized yield in terms of deposit coin amount
44
+ * @type {string}
45
+ * @memberof PositionHistory
46
+ */
47
+ unrealizedYieldInCoinAmount: string;
48
+ /**
49
+ * The realized yield in terms of deposit coin amount
50
+ * @type {string}
51
+ * @memberof PositionHistory
52
+ */
53
+ realizedYieldInCoinAmount: string;
54
+ /**
55
+ * The total yield in terms of deposit coin amount
56
+ * @type {string}
57
+ * @memberof PositionHistory
58
+ */
59
+ totalYieldInCoinAmount: string;
36
60
  /**
37
61
  * The unrealized yield of the event
38
62
  * @type {string}
@@ -27,6 +27,12 @@ export interface PositionValue {
27
27
  * @memberof PositionValue
28
28
  */
29
29
  positionValueUsdE9: string;
30
+ /**
31
+ * The position value of the account in terms of deposit coin amount
32
+ * @type {string}
33
+ * @memberof PositionValue
34
+ */
35
+ positionValueInCoinAmount: string;
30
36
  /**
31
37
  * The shares of the account
32
38
  * @type {string}
@@ -39,18 +45,36 @@ export interface PositionValue {
39
45
  * @memberof PositionValue
40
46
  */
41
47
  unrealizedYieldUsdE9: string;
48
+ /**
49
+ * The unrealized yield of the account in terms of deposit coin amount
50
+ * @type {string}
51
+ * @memberof PositionValue
52
+ */
53
+ unrealizedYieldInCoinAmount: string;
42
54
  /**
43
55
  * The realized yield value of the account in e9 in USDC
44
56
  * @type {string}
45
57
  * @memberof PositionValue
46
58
  */
47
59
  realizedYieldUsdE9: string;
60
+ /**
61
+ * The realized yield of the account in terms of deposit coin amount
62
+ * @type {string}
63
+ * @memberof PositionValue
64
+ */
65
+ realizedYieldInCoinAmount: string;
48
66
  /**
49
67
  * The total yield value of the account in e9 in USDC
50
68
  * @type {string}
51
69
  * @memberof PositionValue
52
70
  */
53
71
  totalYieldUsdE9: string;
72
+ /**
73
+ * The total yield of the account in terms of deposit coin amount
74
+ * @type {string}
75
+ * @memberof PositionValue
76
+ */
77
+ totalYieldInCoinAmount: string;
54
78
  /**
55
79
  * The status of the position
56
80
  * @type {string}
@@ -0,0 +1,49 @@
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 { Chain } from "./chain";
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface StrategyAccount
17
+ */
18
+ export interface StrategyAccount {
19
+ /**
20
+ * The address of the strategy account
21
+ * @type {string}
22
+ * @memberof StrategyAccount
23
+ */
24
+ address: string;
25
+ /**
26
+ * The name of the strategy account
27
+ * @type {string}
28
+ * @memberof StrategyAccount
29
+ */
30
+ name: string;
31
+ /**
32
+ * The explorer url of the strategy account
33
+ * @type {string}
34
+ * @memberof StrategyAccount
35
+ */
36
+ explorerUrl: string;
37
+ /**
38
+ * Whether the strategy account is active
39
+ * @type {boolean}
40
+ * @memberof StrategyAccount
41
+ */
42
+ isActive: boolean;
43
+ /**
44
+ *
45
+ * @type {Chain}
46
+ * @memberof StrategyAccount
47
+ */
48
+ chain: Chain;
49
+ }
@@ -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 });
@@ -27,4 +27,16 @@ export interface TvlHistory {
27
27
  * @memberof TvlHistory
28
28
  */
29
29
  tvlE9: string;
30
+ /**
31
+ * The tvl in terms of usd
32
+ * @type {string}
33
+ * @memberof TvlHistory
34
+ */
35
+ tvlUsdE9: string;
36
+ /**
37
+ * The tvl in terms of deposit coin amount
38
+ * @type {string}
39
+ * @memberof TvlHistory
40
+ */
41
+ tvlInCoinAmount: string;
30
42
  }
@@ -14,6 +14,7 @@ import type { EmberPosition } from "./ember-position";
14
14
  import type { Manager } from "./manager";
15
15
  import type { ReportedApy } from "./reported-apy";
16
16
  import type { RewardToken } from "./reward-token";
17
+ import type { StrategyAccount } from "./strategy-account";
17
18
  import type { SubAccount } from "./sub-account";
18
19
  /**
19
20
  *
@@ -111,6 +112,12 @@ export interface VaultDetail {
111
112
  * @memberof VaultDetail
112
113
  */
113
114
  managers: Array<Manager>;
115
+ /**
116
+ *
117
+ * @type {Array<StrategyAccount>}
118
+ * @memberof VaultDetail
119
+ */
120
+ strategyAccounts: Array<StrategyAccount>;
114
121
  /**
115
122
  *
116
123
  * @type {Array<string>}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-finance/sdk",
3
3
  "description": "Ember Protocol SDK",
4
- "version": "1.0.18",
4
+ "version": "1.0.20",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -86,5 +86,6 @@
86
86
  "ajv": "^6.12.6",
87
87
  "jsonpointer": ">=5.0.0",
88
88
  "form-data": ">=3.0.4"
89
- }
89
+ },
90
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
90
91
  }