@ember-finance/sdk 1.0.14 → 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/reported-apy.d.ts +19 -0
- package/dist/src/vaults/api/models/update-vault-strategies.d.ts +12 -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
|
@@ -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,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
|
};
|