@stabilitydao/stability 0.60.0 → 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/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.js +1 -1
- package/out/index.d.ts +3 -3
- package/out/index.d.ts.map +1 -1
- package/out/index.js +4 -9
- 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 +4 -2
- package/out/stability.tokenlist.json +0 -1938
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"}
|