Skip to content

Commit

Permalink
Merge pull request #8 from stabilitydao/dev
Browse files Browse the repository at this point in the history
API upgrade
  • Loading branch information
a17 authored Jun 17, 2024
2 parents 3cedbc8 + fa304bf commit 1ca9ccb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stabilitydao/stability",
"version": "0.6.2",
"version": "0.7.0",
"description": "Stability Integration Library",
"main": "out/index.js",
"types": "out/index.d.ts",
Expand Down
32 changes: 32 additions & 0 deletions src/api.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export type ApiMainReply = {
about: string;
status: string;
services: string[];
platforms: Platforms;
vaults: Vaults;
underlyings: Underlyings;
assetPrices: AssetPrices;
Expand Down Expand Up @@ -51,10 +52,27 @@ export type Vault = {
tvl: string;
strategy?: `0x${string}`;
underlying?: `0x${string}`;
underlyingSymbol?: string;
lastHardWork?: number;
status?: string;
strategySpecific?: string;
strategyDescription?: string;
vaultType?: string;
version?: string;
assets?: `0x${string}`;
assetsAmounts?: string[];
assetsPricesOnCreation?: string[];
apr?: {
incomeLatest: string;
income24h: string;
incomeWeek: string;
vsHoldLifetime: string;
vsHoldAssetsLifetime: string[];
};
created?: number;
hardWorkOnDeposit?: boolean;
gasReserve?: string;
vaultManagerId?: number;
pool?: {
address: string;
ammName?: string;
Expand All @@ -79,6 +97,7 @@ export type Vault = {
inRange: boolean;
}[];
};
almRebalanceRawData?: string[][];
risk?: Risk;
};

Expand All @@ -98,3 +117,16 @@ export type AssetPriceUsd = {
price: string;
trusted: boolean;
};

export type Platform = {
versions: {
platform: string;
vaultType: { [id: string]: string };
strategy: { [id: string]: string };
};
bcAssets: string[];
buildingPayPerVaultToken: string;
buildingPermitToken: string;
};

export type Platforms = { [chainId: number]: Platform };

0 comments on commit 1ca9ccb

Please sign in to comment.