@ember-finance/sdk 1.0.13 → 1.0.15
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/vaults/api/models/ember-position.d.ts +31 -0
- package/dist/src/vaults/api/models/ember-position.js +15 -0
- package/dist/src/vaults/api/models/index.d.ts +1 -0
- package/dist/src/vaults/api/models/index.js +1 -0
- package/dist/src/vaults/api/models/reported-apy.d.ts +19 -0
- package/dist/src/vaults/api/models/update-vault-strategies.d.ts +12 -0
- package/dist/src/vaults/api/models/vault-detail.d.ts +7 -0
- package/dist/src/vaults/interfaces/bcs.d.ts +4 -0
- package/dist/src/vaults/interfaces/bcs.js +2 -0
- package/dist/src/vaults/on-chain-calls/vault.d.ts +4 -0
- package/dist/src/vaults/on-chain-calls/vault.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface EmberPosition
|
|
17
|
+
*/
|
|
18
|
+
export interface EmberPosition {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Asset}
|
|
22
|
+
* @memberof EmberPosition
|
|
23
|
+
*/
|
|
24
|
+
coin: Asset;
|
|
25
|
+
/**
|
|
26
|
+
* The amount of the Ember position
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof EmberPosition
|
|
29
|
+
*/
|
|
30
|
+
amount: string;
|
|
31
|
+
}
|
|
@@ -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 });
|
|
@@ -6,6 +6,7 @@ export * from "./asset";
|
|
|
6
6
|
export * from "./borrowed";
|
|
7
7
|
export * from "./coin-price";
|
|
8
8
|
export * from "./deposit-transaction";
|
|
9
|
+
export * from "./ember-position";
|
|
9
10
|
export * from "./exposure";
|
|
10
11
|
export * from "./exposure-coin";
|
|
11
12
|
export * from "./exposure-protocol";
|
|
@@ -22,6 +22,7 @@ __exportStar(require("./asset"), exports);
|
|
|
22
22
|
__exportStar(require("./borrowed"), exports);
|
|
23
23
|
__exportStar(require("./coin-price"), exports);
|
|
24
24
|
__exportStar(require("./deposit-transaction"), exports);
|
|
25
|
+
__exportStar(require("./ember-position"), exports);
|
|
25
26
|
__exportStar(require("./exposure"), exports);
|
|
26
27
|
__exportStar(require("./exposure-coin"), exports);
|
|
27
28
|
__exportStar(require("./exposure-protocol"), exports);
|
|
@@ -19,6 +19,7 @@ export interface ReportedApy {
|
|
|
19
19
|
*
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ReportedApy
|
|
22
|
+
* @deprecated
|
|
22
23
|
*/
|
|
23
24
|
apyE9: string;
|
|
24
25
|
/**
|
|
@@ -26,5 +27,23 @@ export interface ReportedApy {
|
|
|
26
27
|
* @type {string}
|
|
27
28
|
* @memberof ReportedApy
|
|
28
29
|
*/
|
|
30
|
+
supplyApyE9: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ReportedApy
|
|
35
|
+
*/
|
|
36
|
+
targetApyE9: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ReportedApy
|
|
41
|
+
*/
|
|
42
|
+
reportedApyE9: string;
|
|
43
|
+
/**
|
|
44
|
+
* The timestamp of the reported apy
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ReportedApy
|
|
47
|
+
*/
|
|
29
48
|
updatedAt: string;
|
|
30
49
|
}
|
|
@@ -40,6 +40,18 @@ export interface UpdateVaultStrategies {
|
|
|
40
40
|
* @memberof UpdateVaultStrategies
|
|
41
41
|
*/
|
|
42
42
|
targetApyE9: string;
|
|
43
|
+
/**
|
|
44
|
+
* The supply apy of the strategy
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof UpdateVaultStrategies
|
|
47
|
+
*/
|
|
48
|
+
supplyApyE9: string;
|
|
49
|
+
/**
|
|
50
|
+
* The reported apy of the strategy
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof UpdateVaultStrategies
|
|
53
|
+
*/
|
|
54
|
+
reportedApyE9: string;
|
|
43
55
|
/**
|
|
44
56
|
* The signature of the request body
|
|
45
57
|
* @type {string}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Asset } from "./asset";
|
|
13
|
+
import type { EmberPosition } from "./ember-position";
|
|
13
14
|
import type { Manager } from "./manager";
|
|
14
15
|
import type { ReportedApy } from "./reported-apy";
|
|
15
16
|
import type { RewardToken } from "./reward-token";
|
|
@@ -86,6 +87,12 @@ export interface VaultDetail {
|
|
|
86
87
|
* @memberof VaultDetail
|
|
87
88
|
*/
|
|
88
89
|
depositCoin: Asset;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {EmberPosition}
|
|
93
|
+
* @memberof VaultDetail
|
|
94
|
+
*/
|
|
95
|
+
requiredEmberPosition?: EmberPosition;
|
|
89
96
|
/**
|
|
90
97
|
*
|
|
91
98
|
* @type {Array<Manager>}
|
|
@@ -10,6 +10,8 @@ export declare const BcsUpdateVaultStrategyRequest: import("@mysten/bcs").BcsTyp
|
|
|
10
10
|
snapshotAt: string;
|
|
11
11
|
}[];
|
|
12
12
|
targetApyE9: string;
|
|
13
|
+
supplyApyE9: string;
|
|
14
|
+
reportedApyE9: string;
|
|
13
15
|
signedAt: string;
|
|
14
16
|
}, {
|
|
15
17
|
vaultId: string;
|
|
@@ -25,5 +27,7 @@ export declare const BcsUpdateVaultStrategyRequest: import("@mysten/bcs").BcsTyp
|
|
|
25
27
|
length: number;
|
|
26
28
|
};
|
|
27
29
|
targetApyE9: string;
|
|
30
|
+
supplyApyE9: string;
|
|
31
|
+
reportedApyE9: string;
|
|
28
32
|
signedAt: string | number | bigint;
|
|
29
33
|
}>;
|
|
@@ -14,5 +14,7 @@ exports.BcsUpdateVaultStrategyRequest = bcs_1.bcs.struct("UpdateVaultStrategyReq
|
|
|
14
14
|
snapshotAt: bcs_1.bcs.u64()
|
|
15
15
|
})),
|
|
16
16
|
targetApyE9: bcs_1.bcs.string(),
|
|
17
|
+
supplyApyE9: bcs_1.bcs.string(),
|
|
18
|
+
reportedApyE9: bcs_1.bcs.string(),
|
|
17
19
|
signedAt: bcs_1.bcs.u64()
|
|
18
20
|
});
|
|
@@ -22,6 +22,8 @@ export declare class Vault {
|
|
|
22
22
|
snapshotAt: number;
|
|
23
23
|
}[];
|
|
24
24
|
targetApyE9: string;
|
|
25
|
+
supplyApyE9: string;
|
|
26
|
+
reportedApyE9: string;
|
|
25
27
|
}, signer: Signer): Promise<{
|
|
26
28
|
bcsPayload: string;
|
|
27
29
|
requestBody: {
|
|
@@ -36,6 +38,8 @@ export declare class Vault {
|
|
|
36
38
|
snapshotAt: number;
|
|
37
39
|
}[];
|
|
38
40
|
targetApyE9: string;
|
|
41
|
+
supplyApyE9: string;
|
|
42
|
+
reportedApyE9: string;
|
|
39
43
|
signedAt: number;
|
|
40
44
|
signature: string;
|
|
41
45
|
};
|
|
@@ -97,6 +97,8 @@ class Vault {
|
|
|
97
97
|
vaultId: payload.vaultId,
|
|
98
98
|
strategies: payload.strategies,
|
|
99
99
|
targetApyE9: payload.targetApyE9,
|
|
100
|
+
supplyApyE9: payload.supplyApyE9,
|
|
101
|
+
reportedApyE9: payload.reportedApyE9,
|
|
100
102
|
signedAt: now
|
|
101
103
|
}).toBytes();
|
|
102
104
|
const { signature, bytes } = await signer.signPersonalMessage(bcsPayload);
|
|
@@ -107,6 +109,8 @@ class Vault {
|
|
|
107
109
|
strategies: payload.strategies,
|
|
108
110
|
signedAt: now,
|
|
109
111
|
targetApyE9: payload.targetApyE9,
|
|
112
|
+
supplyApyE9: payload.supplyApyE9,
|
|
113
|
+
reportedApyE9: payload.reportedApyE9,
|
|
110
114
|
signature: signature
|
|
111
115
|
}
|
|
112
116
|
};
|