@yodlpay/tokenlists 1.1.0 → 1.1.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/dist/{ccip-E6OCw-JN.cjs → ccip-DHHrdFRp.cjs} +1 -1
- package/dist/{ccip-Cm28A1_H.js → ccip-D_Tl0Okc.js} +1 -1
- package/dist/{index-C75unsqB.js → index-DDrpnhH2.js} +17510 -2637
- package/dist/{index-DPv0KZek.cjs → index-DexvUg55.cjs} +17509 -2661
- package/dist/index.cjs +1 -9
- package/dist/index.d.ts +10 -29
- package/dist/index.js +1 -1
- package/dist/tokens/stablecoin-registry.json +32 -3
- package/dist/tokens/tokenlist-featured.json +1 -1
- package/dist/tokens/tokenlist-generated.json +17453 -2573
- package/package.json +3 -6
package/dist/index.cjs
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DexvUg55.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.COINGECKO_PLATFORM_TO_CHAIN_ID = index.COINGECKO_PLATFORM_TO_CHAIN_ID;
|
|
8
|
-
exports.FEATURED_TOKENLIST_PATH = index.FEATURED_TOKENLIST_PATH;
|
|
9
7
|
exports.FEATURED_TOKEN_OVERRIDES = index.FEATURED_TOKEN_OVERRIDES;
|
|
10
|
-
exports.GENERATED_TOKENLIST_PATH = index.GENERATED_TOKENLIST_PATH;
|
|
11
8
|
exports.NATIVE_TOKEN_ADDRESS = index.NATIVE_TOKEN_ADDRESS;
|
|
12
9
|
exports.YODL_ROUTER_ABIS = index.YODL_ROUTER_ABIS;
|
|
13
10
|
exports.chains = index.chains;
|
|
14
11
|
exports.computeDisplayDecimals = index.computeDisplayDecimals;
|
|
15
|
-
exports.getChain = index.getChain;
|
|
16
12
|
exports.getChainById = index.getChainById;
|
|
17
|
-
exports.getChains = index.getChains;
|
|
18
13
|
exports.getFeaturedTokenBySymbol = index.getFeaturedTokenBySymbol;
|
|
19
14
|
exports.getNativeToken = index.getNativeToken;
|
|
20
15
|
exports.getNativeWrappedToken = index.getNativeWrappedToken;
|
|
@@ -31,7 +26,4 @@ exports.getTokenBySymbol = index.getTokenBySymbol;
|
|
|
31
26
|
exports.getTokens = index.getTokens;
|
|
32
27
|
exports.isNativeToken = index.isNativeToken;
|
|
33
28
|
exports.isStablecoin = index.isStablecoin;
|
|
34
|
-
exports.readFeaturedTokenlist = index.readFeaturedTokenlist;
|
|
35
29
|
exports.tokenlist = index.tokenlist;
|
|
36
|
-
exports.writeFeaturedTokenlist = index.writeFeaturedTokenlist;
|
|
37
|
-
exports.writeGeneratedTokenlist = index.writeGeneratedTokenlist;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Address, Chain, PublicClient } from 'viem';
|
|
2
2
|
|
|
3
3
|
declare const yodlRouterAbiV01: readonly [{
|
|
4
4
|
readonly inputs: readonly [{
|
|
@@ -5422,7 +5422,7 @@ declare function getStablecoinsByPeg(currency: FiatCurrency): string[];
|
|
|
5422
5422
|
|
|
5423
5423
|
interface TokenInfo {
|
|
5424
5424
|
readonly chainId: number;
|
|
5425
|
-
readonly address:
|
|
5425
|
+
readonly address: Address;
|
|
5426
5426
|
readonly name: string;
|
|
5427
5427
|
readonly decimals: number;
|
|
5428
5428
|
readonly symbol: string;
|
|
@@ -5444,31 +5444,14 @@ declare const FEATURED_TOKEN_OVERRIDES: Array<{
|
|
|
5444
5444
|
primary: string;
|
|
5445
5445
|
addresses: string[];
|
|
5446
5446
|
}>;
|
|
5447
|
-
declare const FEATURED_TOKENLIST_PATH: string;
|
|
5448
|
-
declare const GENERATED_TOKENLIST_PATH: string;
|
|
5449
5447
|
/**
|
|
5450
5448
|
* Compute display decimals based on token characteristics
|
|
5451
5449
|
*/
|
|
5452
5450
|
declare function computeDisplayDecimals(symbol: string, decimals: number, coinGeckoId?: string): number;
|
|
5453
|
-
/**
|
|
5454
|
-
* Read featured tokenlist from disk
|
|
5455
|
-
*/
|
|
5456
|
-
declare function readFeaturedTokenlist(): {
|
|
5457
|
-
timestamp: string;
|
|
5458
|
-
tokens: TokenInfo[];
|
|
5459
|
-
};
|
|
5460
|
-
/**
|
|
5461
|
-
* Write featured tokenlist to disk
|
|
5462
|
-
*/
|
|
5463
|
-
declare function writeFeaturedTokenlist(tokens: TokenInfo[]): void;
|
|
5464
|
-
/**
|
|
5465
|
-
* Write generated tokenlist to disk
|
|
5466
|
-
*/
|
|
5467
|
-
declare function writeGeneratedTokenlist(tokens: TokenInfo[]): void;
|
|
5468
5451
|
declare const tokenlist: TokenInfo[];
|
|
5469
|
-
declare function getTokenByAddress(tokenAddress:
|
|
5470
|
-
declare function getFeaturedTokenBySymbol(tokenSymbol: string, chainId?: number): TokenInfo
|
|
5471
|
-
declare function getTokenBySymbol(tokenSymbol: string, chainId?: number): TokenInfo
|
|
5452
|
+
declare function getTokenByAddress(tokenAddress: Address, chainId?: number): TokenInfo;
|
|
5453
|
+
declare function getFeaturedTokenBySymbol(tokenSymbol: string, chainId?: number): TokenInfo;
|
|
5454
|
+
declare function getTokenBySymbol(tokenSymbol: string, chainId?: number): TokenInfo;
|
|
5472
5455
|
declare function getTokens(chainId?: number): TokenInfo[];
|
|
5473
5456
|
declare function getNativeWrappedToken(chainId: number): TokenInfo;
|
|
5474
5457
|
|
|
@@ -5479,6 +5462,7 @@ interface RouterConfig {
|
|
|
5479
5462
|
}
|
|
5480
5463
|
interface YodlChainExtension {
|
|
5481
5464
|
shortName: string;
|
|
5465
|
+
coinGeckoPlatform?: string;
|
|
5482
5466
|
logoUri: string;
|
|
5483
5467
|
wrappedNativeToken: Address;
|
|
5484
5468
|
feeTreasury: Address;
|
|
@@ -5486,27 +5470,24 @@ interface YodlChainExtension {
|
|
|
5486
5470
|
}
|
|
5487
5471
|
type YodlChain = Chain & YodlChainExtension;
|
|
5488
5472
|
declare const chains: YodlChain[];
|
|
5489
|
-
declare function getChainById(chainId: number): YodlChain
|
|
5473
|
+
declare function getChainById(chainId: number): YodlChain;
|
|
5490
5474
|
|
|
5491
5475
|
declare const NATIVE_TOKEN_ADDRESS: Address;
|
|
5492
5476
|
/**
|
|
5493
5477
|
* Check if an address is the native token placeholder address
|
|
5494
5478
|
*/
|
|
5495
5479
|
declare function isNativeToken(address: string): boolean;
|
|
5496
|
-
declare const COINGECKO_PLATFORM_TO_CHAIN_ID: Record<string, number>;
|
|
5497
5480
|
/**
|
|
5498
5481
|
* Get or create a PublicClient for a given chain using viem's chain definitions
|
|
5499
5482
|
*/
|
|
5500
5483
|
declare function getPublicClient(chainId: number): PublicClient | null;
|
|
5501
|
-
declare function getChains(): YodlChain[];
|
|
5502
|
-
declare function getChain(chainId: number): YodlChain;
|
|
5503
5484
|
declare function getShortNames(): string[];
|
|
5504
|
-
declare function getNativeToken(chainId: number): string
|
|
5485
|
+
declare function getNativeToken(chainId: number): string;
|
|
5505
5486
|
declare function getRouter(chainId: number): {
|
|
5506
5487
|
address: Address;
|
|
5507
5488
|
version: AbiVersion;
|
|
5508
5489
|
fee: string;
|
|
5509
|
-
}
|
|
5490
|
+
};
|
|
5510
5491
|
declare function getRouterByAddress(address: string, chainId?: number): {
|
|
5511
5492
|
address: Address;
|
|
5512
5493
|
version: AbiVersion;
|
|
@@ -10872,5 +10853,5 @@ declare function getRouterAbi(version: AbiVersion): readonly [{
|
|
|
10872
10853
|
readonly type: "receive";
|
|
10873
10854
|
}];
|
|
10874
10855
|
|
|
10875
|
-
export {
|
|
10856
|
+
export { FEATURED_TOKEN_OVERRIDES, NATIVE_TOKEN_ADDRESS, YODL_ROUTER_ABIS, chains, computeDisplayDecimals, getChainById, getFeaturedTokenBySymbol, getNativeToken, getNativeWrappedToken, getPublicClient, getRouter, getRouterAbi, getRouterByAddress, getShortNames, getStablecoinCurrency, getStablecoinInfo, getStablecoinsByPeg, getTokenByAddress, getTokenBySymbol, getTokens, isNativeToken, isStablecoin, tokenlist };
|
|
10876
10857
|
export type { AbiVersion, FiatCurrency, NotStablecoinInfo, RouterAbiMap, StablecoinCheckResult, StablecoinInfo, TokenInfo, YodlChain };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { F as FEATURED_TOKEN_OVERRIDES, N as NATIVE_TOKEN_ADDRESS, Y as YODL_ROUTER_ABIS, h as chains, j as computeDisplayDecimals, k as getChainById, m as getFeaturedTokenBySymbol, n as getNativeToken, o as getNativeWrappedToken, p as getPublicClient, q as getRouter, r as getRouterAbi, t as getRouterByAddress, u as getShortNames, v as getStablecoinCurrency, w as getStablecoinInfo, x as getStablecoinsByPeg, y as getTokenByAddress, z as getTokenBySymbol, A as getTokens, C as isNativeToken, D as isStablecoin, E as tokenlist } from './index-DDrpnhH2.js';
|
|
@@ -1,37 +1,66 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-01-
|
|
2
|
+
"timestamp": "2026-01-27T17:51:16.448Z",
|
|
3
3
|
"stablecoins": {
|
|
4
|
+
"aegis-yusd": "USD",
|
|
4
5
|
"ageur": "EUR",
|
|
5
6
|
"agora-dollar": "USD",
|
|
6
7
|
"alchemix-usd": "USD",
|
|
7
8
|
"binance-peg-busd": "USD",
|
|
9
|
+
"bitcoin-usd-btcfi": "USD",
|
|
8
10
|
"crvusd": "USD",
|
|
9
11
|
"dai": "USD",
|
|
10
12
|
"dola-usd": "USD",
|
|
11
13
|
"dollar-on-chain": "USD",
|
|
12
14
|
"electronic-usd": "USD",
|
|
15
|
+
"ethena-usde": "USD",
|
|
13
16
|
"euro-coin": "EUR",
|
|
17
|
+
"f-x-protocol-fxusd": "USD",
|
|
18
|
+
"falcon-finance": "USD",
|
|
19
|
+
"first-digital-usd": "USD",
|
|
20
|
+
"frax": "USD",
|
|
14
21
|
"frax-usd": "USD",
|
|
22
|
+
"gemini-dollar": "USD",
|
|
15
23
|
"gho": "USD",
|
|
24
|
+
"global-dollar": "USD",
|
|
16
25
|
"idrx": "IDR",
|
|
17
26
|
"jpycoin": "JPY",
|
|
18
27
|
"krwt": "KRW",
|
|
19
28
|
"liquity-bold-2": "USD",
|
|
20
29
|
"liquity-usd": "USD",
|
|
30
|
+
"lumi-finance-luausd": "USD",
|
|
21
31
|
"monerium-eur-money": "EUR",
|
|
22
32
|
"nusd": "USD",
|
|
33
|
+
"openusdt": "USD",
|
|
34
|
+
"origin-dollar": "USD",
|
|
35
|
+
"overnight-fi-usd-arbitrum-one": "USD",
|
|
36
|
+
"overnight-fi-usd-base": "USD",
|
|
23
37
|
"parallel-usdp": "USD",
|
|
38
|
+
"paxos-standard": "USD",
|
|
39
|
+
"paypal-usd": "USD",
|
|
40
|
+
"quantoz-eurq": "EUR",
|
|
24
41
|
"quantoz-usdq": "USD",
|
|
25
|
-
"
|
|
42
|
+
"ripple-usd": "USD",
|
|
26
43
|
"schuman-europ": "EUR",
|
|
27
44
|
"sigma-bnb-usd": "USD",
|
|
28
|
-
"
|
|
45
|
+
"societe-generale-forge-eurcv": "EUR",
|
|
29
46
|
"stablr-euro": "EUR",
|
|
47
|
+
"stablr-usd": "USD",
|
|
48
|
+
"standx-dusd": "USD",
|
|
49
|
+
"stasis-eurs": "EUR",
|
|
30
50
|
"tether": "USD",
|
|
51
|
+
"true-usd": "USD",
|
|
31
52
|
"usd-coin": "USD",
|
|
32
53
|
"usd-coinvertible": "USD",
|
|
33
54
|
"usd1-wlfi": "USD",
|
|
55
|
+
"usda-3": "USD",
|
|
56
|
+
"usdd": "USD",
|
|
57
|
+
"usdkg": "USD",
|
|
58
|
+
"usds": "USD",
|
|
59
|
+
"usdtb": "USD",
|
|
60
|
+
"usual-usd": "USD",
|
|
61
|
+
"vai": "USD",
|
|
34
62
|
"vnx-euro": "EUR",
|
|
63
|
+
"web-3-dollar": "USD",
|
|
35
64
|
"xdai": "USD",
|
|
36
65
|
"xsgd": "SGD"
|
|
37
66
|
}
|