@stabilitydao/stability 0.59.2 → 0.61.2

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # 📦 Stability Operating System Library
1
+ # 📦 Stability DAO Library
2
2
 
3
3
  ![GitHub package.json version](https://img.shields.io/github/package-json/v/stabilitydao/stability/main)
4
4
  ![GitHub package.json version](https://img.shields.io/github/package-json/v/stabilitydao/stability/dev)
@@ -11,7 +11,7 @@
11
11
 
12
12
  [![codecov](https://codecov.io/github/stabilitydao/stability/graph/badge.svg?token=V0JV1WOGMM)](https://codecov.io/github/stabilitydao/stability)
13
13
 
14
- This is library for integrating Stability OS into Node.js applications.
14
+ This is library for integrating Stability DAO into Node.js applications.
15
15
 
16
16
  ## 🔌 Usage
17
17
 
@@ -24,8 +24,8 @@ yarn add @stabilitydao/stability
24
24
  and use it
25
25
 
26
26
  ```javascript
27
- import { daos } from "@stabilitydao/stability";
28
- console.log(`Names of DAOs: ${daos.map((dao) => dao.name).join(", ")}`);
27
+ import { strategies } from "@stabilitydao/stability";
28
+ console.log(`Strategies: ${Object.keys(strategies).join(", ")}`);
29
29
  ```
30
30
 
31
31
  ## 👷 Develop
@@ -33,7 +33,7 @@ console.log(`Names of DAOs: ${daos.map((dao) => dao.name).join(", ")}`);
33
33
  ### How to
34
34
 
35
35
  ```shell
36
- yarn os
36
+ yarn overview
37
37
  yarn test
38
38
  yarn coverage
39
39
  yarn prettier . --write
@@ -41,20 +41,9 @@ yarn prettier . --write
41
41
 
42
42
  ### Commit and PR prefix
43
43
 
44
- #### Units
45
-
46
- - 🍀 Stability OS
47
- - 🧊 VaaS
48
- - 📜 DeFi Strategies
49
- - ⛓️ Chain support
44
+ - 📜 DeFi Strategies
45
+ - ⛓️ Chains
50
46
  - 🏦 Lending
51
- - 🦄 Arbitrage
52
- - 📙 MEV Strategies
53
- - 🐺 Liquidation
54
- - 📙 MEV Strategies
55
-
56
- #### Common
57
-
58
47
  - 📦 New version
59
48
  - 📚 Knowledge (🪙 assets, 🌐 protocols, ⛓️ chains)
60
49
  - 🔨 Types, refactor, formatter
package/out/assets.d.ts CHANGED
@@ -1,47 +1,4 @@
1
- export type Asset = {
2
- addresses: {
3
- [chainId: string]: `0x${string}` | `0x${string}`[];
4
- };
5
- symbol: string;
6
- description: string;
7
- website: string;
8
- color: string;
9
- mintApp?: string;
10
- };
11
- export type TokenData = {
12
- address: `0x${string}`;
13
- name: string;
14
- symbol: string;
15
- chainId: number;
16
- decimals: number;
17
- logoURI: string;
18
- tags?: string[];
19
- };
20
- export declare const assets: Asset[];
21
1
  export declare const sonicWhitelistedAssets: {
22
2
  [addrLc: `0x${string}`]: number;
23
3
  };
24
- export declare const getAsset: (chainId: string, tokenAddress: `0x${string}`) => Asset | undefined;
25
- /**
26
- * Function to get token data from token list
27
- *
28
- * @example
29
- *
30
- * ```
31
- * getTokenData("0x2791bca1f2de4661ed88a30c99a7a9449aa84174")
32
- * ```
33
- *
34
- * @param address - Token address
35
- *
36
- * @returns {Object} Token Information
37
- * @property {`0x${string}`} address - Token contract address
38
- * @property {number} chainId - ID of the blockchain network (e.g., 137 for Polygon)
39
- * @property {number} decimals - Number of decimals the token uses
40
- * @property {string} name - Full name of the token (e.g., "Dai Stablecoin").
41
- * @property {string} symbol - Token ticker symbol (e.g., "DAI").
42
- * @property {string} logoURI - URL of the token's logo image.
43
- * @property {string[]} tags - Array of tags related to the token (e.g., ["stablecoin", "DeFi"]).
44
- *
45
- **/
46
- export declare const getTokenData: (address: `0x${string}`) => TokenData | undefined;
47
4
  //# sourceMappingURL=assets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG;IAClB,SAAS,EAAE;QAAE,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,MAAM,EAAE,GAAG,KAAK,MAAM,EAAE,EAAE,CAAA;KAAE,CAAC;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,KAAK,MAAM,EAAE,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,EAggDzB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE;IACnC,CAAC,MAAM,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,CAAC;CAiBjC,CAAC;AAEF,eAAO,MAAM,QAAQ,YACV,MAAM,gBACD,KAAK,MAAM,EAAE,KAC1B,KAAK,GAAG,SAkBV,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;IAoBI;AACJ,eAAO,MAAM,YAAY,YAAa,KAAK,MAAM,EAAE,KAAG,SAAS,GAAG,SAejE,CAAC"}
1
+ {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,EAAE;IACnC,CAAC,MAAM,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,CAAC;CAiBjC,CAAC"}