@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 +7 -18
- package/out/assets.d.ts +0 -43
- package/out/assets.d.ts.map +1 -1
- package/out/assets.js +1 -1542
- package/out/assets.js.map +1 -1
- package/out/deployments.d.ts +0 -2
- package/out/deployments.d.ts.map +1 -1
- package/out/deployments.js +1 -3
- package/out/deployments.js.map +1 -1
- package/out/index.d.ts +3 -7
- package/out/index.d.ts.map +1 -1
- package/out/index.js +4 -20
- package/out/index.js.map +1 -1
- package/out/leverage.d.ts +2 -0
- package/out/leverage.d.ts.map +1 -0
- package/out/leverage.js +3 -0
- package/out/leverage.js.map +1 -0
- package/out/risk.d.ts.map +1 -1
- package/out/risk.js +0 -11
- package/out/risk.js.map +1 -1
- package/package.json +5 -4
- package/out/activity/builder.d.ts +0 -135
- package/out/activity/builder.d.ts.map +0 -1
- package/out/activity/builder.js +0 -7
- package/out/activity/builder.js.map +0 -1
- package/out/activity/index.d.ts +0 -18
- package/out/activity/index.d.ts.map +0 -1
- package/out/activity/index.js +0 -31
- package/out/activity/index.js.map +0 -1
- package/out/daos.d.ts +0 -4
- package/out/daos.d.ts.map +0 -1
- package/out/daos.js +0 -580
- package/out/daos.js.map +0 -1
- package/out/os.d.ts +0 -409
- package/out/os.d.ts.map +0 -1
- package/out/os.js +0 -726
- package/out/os.js.map +0 -1
- package/out/stability.tokenlist.json +0 -1938
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# 📦 Stability
|
|
1
|
+
# 📦 Stability DAO Library
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|

|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
[](https://codecov.io/github/stabilitydao/stability)
|
|
13
13
|
|
|
14
|
-
This is library for integrating Stability
|
|
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 {
|
|
28
|
-
console.log(`
|
|
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
|
|
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
|
-
|
|
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
|
package/out/assets.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"
|
|
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"}
|