@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 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"}