Skip to content

Commit 1ca9ccb

Browse files
authored
Merge pull request #8 from stabilitydao/dev
API upgrade
2 parents 3cedbc8 + fa304bf commit 1ca9ccb

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stabilitydao/stability",
3-
"version": "0.6.2",
3+
"version": "0.7.0",
44
"description": "Stability Integration Library",
55
"main": "out/index.js",
66
"types": "out/index.d.ts",

src/api.types.ts

+32
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export type ApiMainReply = {
33
about: string;
44
status: string;
55
services: string[];
6+
platforms: Platforms;
67
vaults: Vaults;
78
underlyings: Underlyings;
89
assetPrices: AssetPrices;
@@ -51,10 +52,27 @@ export type Vault = {
5152
tvl: string;
5253
strategy?: `0x${string}`;
5354
underlying?: `0x${string}`;
55+
underlyingSymbol?: string;
5456
lastHardWork?: number;
5557
status?: string;
5658
strategySpecific?: string;
5759
strategyDescription?: string;
60+
vaultType?: string;
61+
version?: string;
62+
assets?: `0x${string}`;
63+
assetsAmounts?: string[];
64+
assetsPricesOnCreation?: string[];
65+
apr?: {
66+
incomeLatest: string;
67+
income24h: string;
68+
incomeWeek: string;
69+
vsHoldLifetime: string;
70+
vsHoldAssetsLifetime: string[];
71+
};
72+
created?: number;
73+
hardWorkOnDeposit?: boolean;
74+
gasReserve?: string;
75+
vaultManagerId?: number;
5876
pool?: {
5977
address: string;
6078
ammName?: string;
@@ -79,6 +97,7 @@ export type Vault = {
7997
inRange: boolean;
8098
}[];
8199
};
100+
almRebalanceRawData?: string[][];
82101
risk?: Risk;
83102
};
84103

@@ -98,3 +117,16 @@ export type AssetPriceUsd = {
98117
price: string;
99118
trusted: boolean;
100119
};
120+
121+
export type Platform = {
122+
versions: {
123+
platform: string;
124+
vaultType: { [id: string]: string };
125+
strategy: { [id: string]: string };
126+
};
127+
bcAssets: string[];
128+
buildingPayPerVaultToken: string;
129+
buildingPermitToken: string;
130+
};
131+
132+
export type Platforms = { [chainId: number]: Platform };

0 commit comments

Comments
 (0)