@yodlpay/tokenlists 0.9.6 → 1.0.0

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.
Files changed (40) hide show
  1. package/README.md +210 -14
  2. package/dist/ccip-CTW8a_vN.js +184 -0
  3. package/dist/index-Cso5F8p5.js +33269 -0
  4. package/dist/index.js +31 -6
  5. package/dist/tokens/tokenlist-featured.json +905 -0
  6. package/dist/tokens/tokenlist-generated.json +4635 -0
  7. package/package.json +30 -17
  8. package/dist/abis-ts/YodlRouterV0.1.abi.d.ts +0 -131
  9. package/dist/abis-ts/YodlRouterV0.2.abi.d.ts +0 -417
  10. package/dist/abis-ts/YodlRouterV0.3.abi.d.ts +0 -447
  11. package/dist/abis-ts/YodlRouterV0.4.abi.d.ts +0 -459
  12. package/dist/abis-ts/YodlRouterV0.5.abi.d.ts +0 -458
  13. package/dist/abis-ts/YodlRouterV0.6.abi.d.ts +0 -796
  14. package/dist/abis-ts/YodlRouterV0.7.abi.d.ts +0 -695
  15. package/dist/abis-ts/YodlRouterV0.8.abi.d.ts +0 -986
  16. package/dist/abis-ts/YodlRouterV0.9.abi.d.ts +0 -978
  17. package/dist/abis.d.ts +0 -67
  18. package/dist/chainlist-v1.json +0 -193
  19. package/dist/curve.json +0 -30
  20. package/dist/diffTokenLists.d.ts +0 -30
  21. package/dist/fiatCurrencies.json +0 -158
  22. package/dist/getVersionUpgrade.d.ts +0 -17
  23. package/dist/index.d.ts +0 -5576
  24. package/dist/isVersionUpdate.d.ts +0 -5
  25. package/dist/minVersionBump.d.ts +0 -8
  26. package/dist/nextVersion.d.ts +0 -8
  27. package/dist/pricefeeds.json +0 -16669
  28. package/dist/routerlist-v1.d.ts +0 -14
  29. package/dist/schema.tokenlist-v1.json +0 -329
  30. package/dist/tokenlist-featured.json +0 -1549
  31. package/dist/tokenlist-generated.json +0 -3404
  32. package/dist/tokenlists.cjs.development.js +0 -28584
  33. package/dist/tokenlists.cjs.development.js.map +0 -1
  34. package/dist/tokenlists.cjs.production.min.js +0 -2
  35. package/dist/tokenlists.cjs.production.min.js.map +0 -1
  36. package/dist/tokenlists.esm.js +0 -28552
  37. package/dist/tokenlists.esm.js.map +0 -1
  38. package/dist/types.d.ts +0 -98
  39. package/dist/update.d.ts +0 -77
  40. package/dist/versionComparator.d.ts +0 -8
package/dist/abis.d.ts DELETED
@@ -1,67 +0,0 @@
1
- import { yodlRouterAbiV01 } from './abis-ts/YodlRouterV0.1.abi';
2
- import { yodlRouterAbiV02 } from './abis-ts/YodlRouterV0.2.abi';
3
- import { yodlRouterAbiV03 } from './abis-ts/YodlRouterV0.3.abi';
4
- import { yodlRouterAbiV04 } from './abis-ts/YodlRouterV0.4.abi';
5
- import { yodlRouterAbiV05 } from './abis-ts/YodlRouterV0.5.abi';
6
- import { yodlRouterAbiV06 } from './abis-ts/YodlRouterV0.6.abi';
7
- import { yodlRouterAbiV07 } from './abis-ts/YodlRouterV0.7.abi';
8
- import { yodlRouterAbiV08 } from './abis-ts/YodlRouterV0.8.abi';
9
- import { yodlRouterAbiV09 } from './abis-ts/YodlRouterV0.9.abi';
10
- export declare type AbiVersion = 'test' | '0.1' | '0.2' | '0.3' | '0.4' | '0.5' | '0.6' | '0.7' | '0.8' | '0.9';
11
- export declare type RouterAbiMap = {
12
- test: typeof yodlRouterAbiV03;
13
- '0.1': typeof yodlRouterAbiV01;
14
- '0.2': typeof yodlRouterAbiV02;
15
- '0.3': typeof yodlRouterAbiV03;
16
- '0.4': typeof yodlRouterAbiV04;
17
- '0.5': typeof yodlRouterAbiV05;
18
- '0.6': typeof yodlRouterAbiV06;
19
- '0.7': typeof yodlRouterAbiV07;
20
- '0.8': typeof yodlRouterAbiV08;
21
- '0.9': typeof yodlRouterAbiV09;
22
- };
23
- export declare const YODL_ROUTER_ABIS: {
24
- [K in AbiVersion]: RouterAbiMap[K];
25
- };
26
- export declare const CURVE_ROUTER_ABI: ({
27
- name: string;
28
- inputs: {
29
- name: string;
30
- type: string;
31
- indexed: boolean;
32
- }[];
33
- anonymous: boolean;
34
- type: string;
35
- stateMutability?: undefined;
36
- outputs?: undefined;
37
- } | {
38
- stateMutability: string;
39
- type: string;
40
- inputs: {
41
- name: string;
42
- type: string;
43
- }[];
44
- outputs: never[];
45
- name?: undefined;
46
- anonymous?: undefined;
47
- } | {
48
- stateMutability: string;
49
- type: string;
50
- name?: undefined;
51
- inputs?: undefined;
52
- anonymous?: undefined;
53
- outputs?: undefined;
54
- } | {
55
- stateMutability: string;
56
- type: string;
57
- name: string;
58
- inputs: {
59
- name: string;
60
- type: string;
61
- }[];
62
- outputs: {
63
- name: string;
64
- type: string;
65
- }[];
66
- anonymous?: undefined;
67
- })[];
@@ -1,193 +0,0 @@
1
- {
2
- "name": "Default",
3
- "logoUri": "",
4
- "keywords": [],
5
- "version": {
6
- "major": 0,
7
- "minor": 2,
8
- "patch": 1
9
- },
10
- "chains": [
11
- {
12
- "chainName": "Ethereum",
13
- "shortName": "eth",
14
- "testnet": false,
15
- "chainId": 1,
16
- "logoUri": "https://kuezuu6pdfndtxdd.public.blob.vercel-storage.com/chains/1/logo.svg",
17
- "rpcUrls": [
18
- "https://rpc.ankr.com/eth"
19
- ],
20
- "wrappedNativeToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
21
- "explorerUrl": "https://etherscan.io",
22
- "nativeTokenName": "ETH",
23
- "timestamp": "2024-06-20T08:16:18.193Z",
24
- "feeTreasury": "0x9C48d180e4eEE0dA2A899EE1E4c533cA5e92db77",
25
- "curveRouterAddress": "0x16C6521Dff6baB339122a0FE25a9116693265353",
26
- "dexes": [
27
- "UNISWAP",
28
- "CURVE",
29
- "ODOS",
30
- "ONE_INCH"
31
- ]
32
- },
33
- {
34
- "chainName": "Arbitrum One",
35
- "shortName": "arb1",
36
- "testnet": false,
37
- "chainId": 42161,
38
- "logoUri": "https://kuezuu6pdfndtxdd.public.blob.vercel-storage.com/chains/42161/logo.svg",
39
- "rpcUrls": [
40
- "https://rpc.ankr.com/arbitrum"
41
- ],
42
- "wrappedNativeToken": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
43
- "explorerUrl": "https://arbiscan.io",
44
- "nativeTokenName": "ETH",
45
- "timestamp": "2024-06-20T08:16:18.932Z",
46
- "feeTreasury": "0x5f0947253a8218894af13438ac2e2e0ced30d234",
47
- "curveRouterAddress": "0x2191718CD32d02B8E60BAdFFeA33E4B5DD9A0A0D",
48
- "dexes": [
49
- "UNISWAP",
50
- "CURVE",
51
- "ODOS",
52
- "ONE_INCH"
53
- ]
54
- },
55
- {
56
- "chainName": "Arbitrum Sepolia",
57
- "shortName": "arbitrum-sepolia",
58
- "testnet": true,
59
- "chainId": 421614,
60
- "logoUri": "https://kuezuu6pdfndtxdd.public.blob.vercel-storage.com/chains/42161/logo.svg",
61
- "rpcUrls": [],
62
- "wrappedNativeToken": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
63
- "explorerUrl": "https://sepolia.arbiscan.io",
64
- "nativeTokenName": "ETH",
65
- "timestamp": "2024-06-20T08:16:18.932Z",
66
- "feeTreasury": "0x5f0947253a8218894af13438ac2e2e0ced30d234"
67
- },
68
- {
69
- "chainName": "BSC testnet",
70
- "shortName": "bsc-testnet",
71
- "testnet": true,
72
- "chainId": 97,
73
- "logoUri": "https://kuezuu6pdfndtxdd.public.blob.vercel-storage.com/chains/56/logo.svg",
74
- "rpcUrls": [],
75
- "wrappedNativeToken": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
76
- "explorerUrl": "https://testnet.bscscan.com",
77
- "nativeTokenName": "BSC",
78
- "timestamp": "2024-06-20T08:16:18.932Z",
79
- "feeTreasury": "0x5f0947253a8218894af13438ac2e2e0ced30d234"
80
- },
81
- {
82
- "chainName": "Optimism",
83
- "shortName": "oeth",
84
- "testnet": false,
85
- "chainId": 10,
86
- "logoUri": "https://kuezuu6pdfndtxdd.public.blob.vercel-storage.com/chains/10/logo.svg",
87
- "rpcUrls": [
88
- "https://mainnet.optimism.io"
89
- ],
90
- "wrappedNativeToken": "0x4200000000000000000000000000000000000006",
91
- "explorerUrl": "https://optimistic.etherscan.io",
92
- "nativeTokenName": "ETH",
93
- "timestamp": "2024-06-20T08:16:19.165Z",
94
- "feeTreasury": "0x5f0947253a8218894af13438ac2e2e0ced30d234",
95
- "curveRouterAddress": "0x0DCDED3545D565bA3B19E683431381007245d983",
96
- "dexes": [
97
- "UNISWAP",
98
- "CURVE",
99
- "ODOS",
100
- "ONE_INCH"
101
- ]
102
- },
103
- {
104
- "chainName": "Gnosis",
105
- "shortName": "gno",
106
- "testnet": false,
107
- "chainId": 100,
108
- "logoUri": "https://kuezuu6pdfndtxdd.public.blob.vercel-storage.com/chains/100/logo.svg",
109
- "rpcUrls": [
110
- "https://rpc.gnosis.gateway.fm"
111
- ],
112
- "wrappedNativeToken": "0xe91d153e0b41518a2ce8dd3d7944fa863463a97d",
113
- "explorerUrl": "https://gnosisscan.io",
114
- "nativeTokenName": "xDAI",
115
- "timestamp": "2024-06-20T08:16:18.872Z",
116
- "feeTreasury": "0x775aaf73a50C25eEBd308BBb9C34C73D081B423b",
117
- "curveRouterAddress": "0x0DCDED3545D565bA3B19E683431381007245d983",
118
- "dexes": [
119
- "CURVE",
120
- "ONE_INCH"
121
- ]
122
- },
123
- {
124
- "chainName": "Base",
125
- "shortName": "base",
126
- "testnet": false,
127
- "chainId": 8453,
128
- "logoUri": "https://kuezuu6pdfndtxdd.public.blob.vercel-storage.com/chains/8453/logo.svg",
129
- "rpcUrls": [
130
- "https://mainnet.base.org"
131
- ],
132
- "wrappedNativeToken": "0x4200000000000000000000000000000000000006",
133
- "explorerUrl": "https://basescan.org",
134
- "nativeTokenName": "ETH",
135
- "timestamp": "2024-06-20T08:16:19.051Z",
136
- "feeTreasury": "0x46959a8a332eca1a05Bd4F18115b8F2E1C2F2f05",
137
- "curveRouterAddress": "0x4f37A9d177470499A2dD084621020b023fcffc1F",
138
- "dexes": [
139
- "UNISWAP",
140
- "CURVE",
141
- "ODOS",
142
- "ONE_INCH"
143
- ]
144
- },
145
- {
146
- "chainName": "Polygon",
147
- "shortName": "pol",
148
- "testnet": false,
149
- "chainId": 137,
150
- "logoUri": "https://kuezuu6pdfndtxdd.public.blob.vercel-storage.com/chains/137/logo.svg",
151
- "rpcUrls": [
152
- "https://polygon-rpc.com"
153
- ],
154
- "wrappedNativeToken": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
155
- "explorerUrl": "https://polygonscan.com",
156
- "nativeTokenName": "POL",
157
- "timestamp": "2024-06-20T08:16:18.717Z",
158
- "feeTreasury": "0x5f0947253a8218894af13438ac2e2E0CeD30d234",
159
- "curveRouterAddress": "0x0DCDED3545D565bA3B19E683431381007245d983",
160
- "dexes": [
161
- "UNISWAP",
162
- "CURVE",
163
- "ODOS",
164
- "ONE_INCH"
165
- ]
166
- },
167
- {
168
- "chainName": "BNB Smart Chain",
169
- "shortName": "bsc",
170
- "testnet": false,
171
- "chainId": 56,
172
- "logoUri": "https://kuezuu6pdfndtxdd.public.blob.vercel-storage.com/chains/56/logo.svg",
173
- "rpcUrls": [
174
- "https://bsc-dataseed1.binance.org/",
175
- "https://bsc-dataseed2.binance.org/",
176
- "https://bsc-dataseed3.binance.org/",
177
- "https://bsc-dataseed4.binance.org/"
178
- ],
179
- "wrappedNativeToken": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
180
- "explorerUrl": "https://bscscan.com",
181
- "nativeTokenName": "BNB",
182
- "timestamp": "2024-07-24T08:16:18.717Z",
183
- "feeTreasury": "0x698609f1ae8E0ce7e65d3028d1f00297A6bF21e5",
184
- "curveRouterAddress": "0xA72C85C258A81761433B4e8da60505Fe3Dd551CC",
185
- "dexes": [
186
- "PANCAKE",
187
- "CURVE",
188
- "ODOS",
189
- "ONE_INCH"
190
- ]
191
- }
192
- ]
193
- }
package/dist/curve.json DELETED
@@ -1,30 +0,0 @@
1
- [
2
- {
3
- "chainId": 1,
4
- "address": "0x16C6521Dff6baB339122a0FE25a9116693265353"
5
- },
6
- {
7
- "chainId": 10,
8
- "address": "0x0DCDED3545D565bA3B19E683431381007245d983"
9
- },
10
- {
11
- "chainId": 56,
12
- "address": "0xA72C85C258A81761433B4e8da60505Fe3Dd551CC"
13
- },
14
- {
15
- "chainId": 100,
16
- "address": "0x0DCDED3545D565bA3B19E683431381007245d983"
17
- },
18
- {
19
- "chainId": 137,
20
- "address": "0x0DCDED3545D565bA3B19E683431381007245d983"
21
- },
22
- {
23
- "chainId": 8453,
24
- "address": "0x4f37A9d177470499A2dD084621020b023fcffc1F"
25
- },
26
- {
27
- "chainId": 42161,
28
- "address": "0x2191718CD32d02B8E60BAdFFeA33E4B5DD9A0A0D"
29
- }
30
- ]
@@ -1,30 +0,0 @@
1
- import { TokenInfo } from './types';
2
- export declare type TokenInfoChangeKey = Exclude<keyof TokenInfo, 'address' | 'chainId'>;
3
- export declare type TokenInfoChanges = Array<TokenInfoChangeKey>;
4
- /**
5
- * Differences between a base list and an updated list.
6
- */
7
- export interface TokenListDiff {
8
- /**
9
- * Tokens from updated with chainId/address not present in base list
10
- */
11
- readonly added: TokenInfo[];
12
- /**
13
- * Tokens from base with chainId/address not present in the updated list
14
- */
15
- readonly removed: TokenInfo[];
16
- /**
17
- * The token info that changed
18
- */
19
- readonly changed: {
20
- [chainId: number]: {
21
- [address: string]: TokenInfoChanges;
22
- };
23
- };
24
- }
25
- /**
26
- * Computes the diff of a token list where the first argument is the base and the second argument is the updated list.
27
- * @param base base list
28
- * @param update updated list
29
- */
30
- export declare function diffTokenLists(base: TokenInfo[], update: TokenInfo[]): TokenListDiff;
@@ -1,158 +0,0 @@
1
- [
2
- {
3
- "code": "USD",
4
- "decimals": 2,
5
- "name": "United States Dollar",
6
- "symbol": "$"
7
- },
8
- {
9
- "code": "AUD",
10
- "decimals": 2,
11
- "name": "Australian Dollar",
12
- "symbol": "$"
13
- },
14
- {
15
- "code": "BRL",
16
- "decimals": 2,
17
- "name": "Brazilian Real",
18
- "symbol": "R$"
19
- },
20
- {
21
- "code": "CAD",
22
- "decimals": 2,
23
- "name": "Canadian Dollar",
24
- "symbol": "$"
25
- },
26
- {
27
- "code": "CHF",
28
- "decimals": 2,
29
- "name": "Swiss Franc",
30
- "symbol": "Fr"
31
- },
32
- {
33
- "code": "CNY",
34
- "decimals": 2,
35
- "name": "Chinese Yuan",
36
- "symbol": "¥"
37
- },
38
- {
39
- "code": "EUR",
40
- "decimals": 2,
41
- "name": "Euro",
42
- "symbol": "€"
43
- },
44
- {
45
- "code": "GBP",
46
- "decimals": 2,
47
- "name": "Pound Sterling",
48
- "symbol": "£"
49
- },
50
- {
51
- "code": "HKD",
52
- "decimals": 2,
53
- "name": "Hong Kong Dollar",
54
- "symbol": "$"
55
- },
56
- {
57
- "code": "IDR",
58
- "decimals": 0,
59
- "name": "Indonesian Rupiah",
60
- "symbol": "Rp"
61
- },
62
- {
63
- "code": "ILS",
64
- "decimals": 2,
65
- "name": "Israeli New Shekel",
66
- "symbol": "₪"
67
- },
68
- {
69
- "code": "INR",
70
- "decimals": 2,
71
- "name": "Indian Rupee",
72
- "symbol": "₹"
73
- },
74
- {
75
- "code": "JPY",
76
- "decimals": 0,
77
- "name": "Japanese Yen",
78
- "symbol": "¥"
79
- },
80
- {
81
- "code": "KRW",
82
- "decimals": 0,
83
- "name": "South Korean Won",
84
- "symbol": "₩"
85
- },
86
- {
87
- "code": "MXN",
88
- "decimals": 2,
89
- "name": "Mexican Peso",
90
- "symbol": "$"
91
- },
92
- {
93
- "code": "NZD",
94
- "decimals": 2,
95
- "name": "New Zealand Dollar",
96
- "symbol": "$"
97
- },
98
- {
99
- "code": "PHP",
100
- "decimals": 2,
101
- "name": "Philippine Peso",
102
- "symbol": "₱"
103
- },
104
- {
105
- "code": "PLN",
106
- "decimals": 2,
107
- "name": "Polish Złoty",
108
- "symbol": "zł"
109
- },
110
- {
111
- "code": "SEK",
112
- "decimals": 2,
113
- "name": "Swedish Krona",
114
- "symbol": "kr"
115
- },
116
- {
117
- "code": "SGD",
118
- "decimals": 2,
119
- "name": "Singapore Dollar",
120
- "symbol": "S$"
121
- },
122
- {
123
- "code": "THB",
124
- "decimals": 2,
125
- "name": "Thai Baht",
126
- "symbol": "฿"
127
- },
128
- {
129
- "code": "TRY",
130
- "decimals": 2,
131
- "name": "Turkish Lira",
132
- "symbol": "₺"
133
- },
134
- {
135
- "code": "ZAR",
136
- "decimals": 2,
137
- "name": "South African Rand",
138
- "symbol": "R"
139
- },
140
- {
141
- "code": "NGN",
142
- "decimals": 2,
143
- "name": "Nigerian Naira",
144
- "symbol": "₦"
145
- },
146
- {
147
- "code": "COP",
148
- "decimals": 2,
149
- "name": "Colombian Peso",
150
- "symbol": "$"
151
- },
152
- {
153
- "code": "XAU",
154
- "decimals": 2,
155
- "name": "Gold",
156
- "symbol": "XAU"
157
- }
158
- ]
@@ -1,17 +0,0 @@
1
- import { Version } from './types';
2
- /**
3
- * Enum describing types of version differences
4
- */
5
- export declare enum VersionUpgrade {
6
- NONE = 0,
7
- PATCH = 1,
8
- MINOR = 2,
9
- MAJOR = 3
10
- }
11
- /**
12
- * Return the upgrade type from the base version to the update version.
13
- * Note that downgrades and equivalent versions are both treated as `NONE`.
14
- * @param base base list
15
- * @param update update to the list
16
- */
17
- export declare function getVersionUpgrade(base: Version, update: Version): VersionUpgrade;