@yodlpay/tokenlists 0.9.0-alpha.1 → 0.9.0-alpha.10

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/dist/types.d.ts CHANGED
@@ -1,20 +1,7 @@
1
1
  import { AbiVersion } from 'abis';
2
2
  import { Address } from 'viem';
3
3
  declare type ExtensionValue = string | number | boolean | null | undefined;
4
- export declare enum TokenListTagNames {
5
- MAINNET = "Mainnet",
6
- OPTIMISM = "Optimism",
7
- ARBITRUM = "Arbitrum",
8
- AVALANCHE = "Avalanche",
9
- BASE = "Base",
10
- TESTNET = "TESTNET",
11
- STABLECOIN = "Stablecoin",
12
- USD = "USD",
13
- EUR = "EUR",
14
- TOP_10 = "Top10",
15
- NATIVE_TOKEN = "Native Token",
16
- WRAPPED = "wrapped"
17
- }
4
+ export declare type TokenListTagNames = 'Mainnet' | 'Optimism' | 'Arbitrum' | 'Avalanche' | 'Base' | 'Gnosis' | 'TESTNET' | 'Stablecoin' | 'USD' | 'EUR' | 'Top10' | 'Native Token' | 'Wrapped' | 'Featured';
18
5
  export interface CurveRouterInfo {
19
6
  readonly chainId: number;
20
7
  readonly address: string;
@@ -69,7 +56,12 @@ export interface TokenInfo {
69
56
  } | ExtensionValue;
70
57
  } | ExtensionValue;
71
58
  };
59
+ readonly displayDecimals: number;
72
60
  }
61
+ export declare type TokenListSimple = {
62
+ timestamp: string;
63
+ tokens: TokenInfo[];
64
+ };
73
65
  export interface Version {
74
66
  readonly major: number;
75
67
  readonly minor: number;
@@ -100,6 +92,7 @@ export interface PriceFeed {
100
92
  export interface FiatCurrency {
101
93
  readonly name: string;
102
94
  readonly symbol: string;
103
- readonly sign: string;
95
+ readonly code: string;
96
+ readonly decimals: number;
104
97
  }
105
98
  export {};
package/dist/update.d.ts CHANGED
@@ -26,6 +26,13 @@ export declare const CONFLICT_OVERRIDES: {
26
26
  BNB: string;
27
27
  USDC: string;
28
28
  USDT: string;
29
+ APE: string;
30
+ FRAX: string;
31
+ TRUMP: string;
32
+ NEIRO: string;
33
+ SHIB: string;
34
+ RAI: string;
35
+ UNI: string;
29
36
  };
30
37
  10: {
31
38
  USDC: string;
@@ -33,12 +40,30 @@ export declare const CONFLICT_OVERRIDES: {
33
40
  137: {
34
41
  USDC: string;
35
42
  WBTC: string;
43
+ BAT: string;
44
+ FRAX: string;
45
+ QUICK: string;
36
46
  };
37
47
  42161: {
38
48
  USDC: string;
49
+ FRAX: string;
50
+ USDS: string;
51
+ AI: string;
52
+ MAGIC: string;
53
+ };
54
+ 56: {
55
+ AVAX: string;
56
+ FRAX: string;
57
+ SHIB: string;
58
+ TUSD: string;
59
+ SOL: string;
60
+ GMT: string;
39
61
  };
40
62
  8453: {
41
63
  USDC: string;
64
+ PEPE: string;
65
+ ANON: string;
66
+ DOGE: string;
42
67
  };
43
68
  };
44
69
  export declare const setTimestamp: () => void;
@@ -47,5 +72,6 @@ export declare const fetchChainLinkFeed: (chainName: string) => Promise<any>;
47
72
  export declare const splitFeeds: (feeds: any, chainId: number) => any[];
48
73
  export declare const resolveChainData: (chainId: number, fetchFeed?: any, fetchCoinGecko?: any) => Promise<any[]>;
49
74
  export declare const fetchTokenData: (chainName: string) => Promise<any>;
50
- export declare const resolveTokens: (chainId: number, tokenSymbolList: string[], fetchTokensFunc?: any) => Promise<TokenInfo[]>;
75
+ export declare const resolveTokens: (chainId: number, tokenSymbolList: string[], fetchTokensFunc?: any, coinGeckoIdMap?: Map<string, string> | undefined) => Promise<TokenInfo[]>;
51
76
  export declare const hydrateFiatCurrencies: (fiatSymbols: string[]) => Promise<any>;
77
+ export declare const fetchCoinGeckoIds: () => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yodlpay/tokenlists",
3
- "version": "0.9.0-alpha.1",
3
+ "version": "0.9.0-alpha.10",
4
4
  "description": "Tokenlist typings, schema and lists.",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -17,7 +17,8 @@
17
17
  "test": "jest",
18
18
  "typecheck": "tsc --noEmit -p ./tsconfig.json",
19
19
  "update": "tsx scripts/update.ts",
20
- "prepublishOnly": "npm run test && npm run build"
20
+ "prepublishOnly": "npm run test && npm run build",
21
+ "update-tokenlists-display-decimals": "tsx scripts/displayDecimals/index.ts"
21
22
  },
22
23
  "license": "MIT",
23
24
  "publishConfig": {