@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.
- package/README.md +210 -14
- package/dist/ccip-CTW8a_vN.js +184 -0
- package/dist/index-Cso5F8p5.js +33269 -0
- package/dist/index.js +31 -6
- package/dist/tokens/tokenlist-featured.json +905 -0
- package/dist/tokens/tokenlist-generated.json +4635 -0
- package/package.json +30 -17
- package/dist/abis-ts/YodlRouterV0.1.abi.d.ts +0 -131
- package/dist/abis-ts/YodlRouterV0.2.abi.d.ts +0 -417
- package/dist/abis-ts/YodlRouterV0.3.abi.d.ts +0 -447
- package/dist/abis-ts/YodlRouterV0.4.abi.d.ts +0 -459
- package/dist/abis-ts/YodlRouterV0.5.abi.d.ts +0 -458
- package/dist/abis-ts/YodlRouterV0.6.abi.d.ts +0 -796
- package/dist/abis-ts/YodlRouterV0.7.abi.d.ts +0 -695
- package/dist/abis-ts/YodlRouterV0.8.abi.d.ts +0 -986
- package/dist/abis-ts/YodlRouterV0.9.abi.d.ts +0 -978
- package/dist/abis.d.ts +0 -67
- package/dist/chainlist-v1.json +0 -193
- package/dist/curve.json +0 -30
- package/dist/diffTokenLists.d.ts +0 -30
- package/dist/fiatCurrencies.json +0 -158
- package/dist/getVersionUpgrade.d.ts +0 -17
- package/dist/index.d.ts +0 -5576
- package/dist/isVersionUpdate.d.ts +0 -5
- package/dist/minVersionBump.d.ts +0 -8
- package/dist/nextVersion.d.ts +0 -8
- package/dist/pricefeeds.json +0 -16669
- package/dist/routerlist-v1.d.ts +0 -14
- package/dist/schema.tokenlist-v1.json +0 -329
- package/dist/tokenlist-featured.json +0 -1549
- package/dist/tokenlist-generated.json +0 -3404
- package/dist/tokenlists.cjs.development.js +0 -28584
- package/dist/tokenlists.cjs.development.js.map +0 -1
- package/dist/tokenlists.cjs.production.min.js +0 -2
- package/dist/tokenlists.cjs.production.min.js.map +0 -1
- package/dist/tokenlists.esm.js +0 -28552
- package/dist/tokenlists.esm.js.map +0 -1
- package/dist/types.d.ts +0 -98
- package/dist/update.d.ts +0 -77
- package/dist/versionComparator.d.ts +0 -8
package/dist/routerlist-v1.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RouterInfo } from 'types';
|
|
2
|
-
declare type RouterList = {
|
|
3
|
-
name: string;
|
|
4
|
-
logoUri: string;
|
|
5
|
-
keywords: string[];
|
|
6
|
-
version: {
|
|
7
|
-
major: number;
|
|
8
|
-
minor: number;
|
|
9
|
-
patch: number;
|
|
10
|
-
};
|
|
11
|
-
routers: RouterInfo[];
|
|
12
|
-
};
|
|
13
|
-
export declare const routerlist: RouterList;
|
|
14
|
-
export {};
|
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://raw.githubusercontent.com/cheq-pay/tokenlists/main/schema.tokenlist-v1.json",
|
|
4
|
-
"title": "Token List",
|
|
5
|
-
"description": "Schema for lists of tokens compatible with the ... Interface",
|
|
6
|
-
"definitions": {
|
|
7
|
-
"Version": {
|
|
8
|
-
"type": "object",
|
|
9
|
-
"description": "The version of the list, used in change detection",
|
|
10
|
-
"examples": [
|
|
11
|
-
{
|
|
12
|
-
"major": 1,
|
|
13
|
-
"minor": 0,
|
|
14
|
-
"patch": 0
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"additionalProperties": false,
|
|
18
|
-
"properties": {
|
|
19
|
-
"major": {
|
|
20
|
-
"type": "integer",
|
|
21
|
-
"description": "The major version of the list. Must be incremented when tokens are removed from the list or token addresses are changed.",
|
|
22
|
-
"minimum": 0,
|
|
23
|
-
"examples": [
|
|
24
|
-
1,
|
|
25
|
-
2
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"minor": {
|
|
29
|
-
"type": "integer",
|
|
30
|
-
"description": "The minor version of the list. Must be incremented when tokens are added to the list.",
|
|
31
|
-
"minimum": 0,
|
|
32
|
-
"examples": [
|
|
33
|
-
0,
|
|
34
|
-
1
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"patch": {
|
|
38
|
-
"type": "integer",
|
|
39
|
-
"description": "The patch version of the list. Must be incremented for any changes to the list.",
|
|
40
|
-
"minimum": 0,
|
|
41
|
-
"examples": [
|
|
42
|
-
0,
|
|
43
|
-
1
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"required": [
|
|
48
|
-
"major",
|
|
49
|
-
"minor",
|
|
50
|
-
"patch"
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
"TagName": {
|
|
54
|
-
"type": "string",
|
|
55
|
-
"description": "The unique identifier of a tag",
|
|
56
|
-
"minLength": 1,
|
|
57
|
-
"maxLength": 20,
|
|
58
|
-
"pattern": "^[A-Za-z]+\\s?[A-Za-z]*$",
|
|
59
|
-
"examples": [
|
|
60
|
-
"Large Cap",
|
|
61
|
-
"Stablecoins"
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
"ExtensionIdentifier": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"description": "The name of a token extension property",
|
|
67
|
-
"minLength": 1,
|
|
68
|
-
"maxLength": 40,
|
|
69
|
-
"pattern": "^[\\w]+$",
|
|
70
|
-
"examples": [
|
|
71
|
-
"color",
|
|
72
|
-
"is_fee_on_transfer",
|
|
73
|
-
"aliases"
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
"ExtensionMap": {
|
|
77
|
-
"type": "object",
|
|
78
|
-
"description": "An object containing any arbitrary or vendor-specific token metadata",
|
|
79
|
-
"maxProperties": 10,
|
|
80
|
-
"propertyNames": {
|
|
81
|
-
"$ref": "#/definitions/ExtensionIdentifier"
|
|
82
|
-
},
|
|
83
|
-
"additionalProperties": {
|
|
84
|
-
"$ref": "#/definitions/ExtensionValue"
|
|
85
|
-
},
|
|
86
|
-
"examples": [
|
|
87
|
-
{
|
|
88
|
-
"color": "#000000",
|
|
89
|
-
"is_verified_by_me": true
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"x-bridged-addresses-by-chain": {
|
|
93
|
-
"1": {
|
|
94
|
-
"bridgeAddress": "0x4200000000000000000000000000000000000010",
|
|
95
|
-
"tokenAddress": "0x4200000000000000000000000000000000000010"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
},
|
|
101
|
-
"ExtensionPrimitiveValue": {
|
|
102
|
-
"anyOf": [
|
|
103
|
-
{
|
|
104
|
-
"type": "string",
|
|
105
|
-
"minLength": 1,
|
|
106
|
-
"maxLength": 42,
|
|
107
|
-
"examples": [
|
|
108
|
-
"#00000"
|
|
109
|
-
]
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"type": "boolean",
|
|
113
|
-
"examples": [
|
|
114
|
-
true
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"type": "number",
|
|
119
|
-
"examples": [
|
|
120
|
-
15
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"type": "null"
|
|
125
|
-
}
|
|
126
|
-
]
|
|
127
|
-
},
|
|
128
|
-
"ExtensionValue": {
|
|
129
|
-
"anyOf": [
|
|
130
|
-
{
|
|
131
|
-
"$ref": "#/definitions/ExtensionPrimitiveValue"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"type": "object",
|
|
135
|
-
"maxProperties": 10,
|
|
136
|
-
"propertyNames": {
|
|
137
|
-
"$ref": "#/definitions/ExtensionIdentifier"
|
|
138
|
-
},
|
|
139
|
-
"additionalProperties": {
|
|
140
|
-
"$ref": "#/definitions/ExtensionValueInner0"
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
]
|
|
144
|
-
},
|
|
145
|
-
"ExtensionValueInner0": {
|
|
146
|
-
"anyOf": [
|
|
147
|
-
{
|
|
148
|
-
"$ref": "#/definitions/ExtensionPrimitiveValue"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"type": "object",
|
|
152
|
-
"maxProperties": 10,
|
|
153
|
-
"propertyNames": {
|
|
154
|
-
"$ref": "#/definitions/ExtensionIdentifier"
|
|
155
|
-
},
|
|
156
|
-
"additionalProperties": {
|
|
157
|
-
"$ref": "#/definitions/ExtensionValueInner1"
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
"ExtensionValueInner1": {
|
|
163
|
-
"anyOf": [
|
|
164
|
-
{
|
|
165
|
-
"$ref": "#/definitions/ExtensionPrimitiveValue"
|
|
166
|
-
}
|
|
167
|
-
]
|
|
168
|
-
},
|
|
169
|
-
"TokenInfo": {
|
|
170
|
-
"type": "object",
|
|
171
|
-
"description": "Metadata for a single token in a token list",
|
|
172
|
-
"additionalProperties": false,
|
|
173
|
-
"properties": {
|
|
174
|
-
"chainId": {
|
|
175
|
-
"type": "integer",
|
|
176
|
-
"description": "The chain ID of the Ethereum network where this token is deployed",
|
|
177
|
-
"minimum": 1,
|
|
178
|
-
"examples": [
|
|
179
|
-
1,
|
|
180
|
-
42
|
|
181
|
-
]
|
|
182
|
-
},
|
|
183
|
-
"address": {
|
|
184
|
-
"type": "string",
|
|
185
|
-
"description": "The checksummed address of the token on the specified chain ID",
|
|
186
|
-
"pattern": "^0x[a-fA-F0-9]{40}$",
|
|
187
|
-
"examples": [
|
|
188
|
-
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
|
|
189
|
-
]
|
|
190
|
-
},
|
|
191
|
-
"decimals": {
|
|
192
|
-
"type": "integer",
|
|
193
|
-
"description": "The number of decimals for the token balance",
|
|
194
|
-
"minimum": 0,
|
|
195
|
-
"maximum": 255,
|
|
196
|
-
"examples": [
|
|
197
|
-
18
|
|
198
|
-
]
|
|
199
|
-
},
|
|
200
|
-
"name": {
|
|
201
|
-
"type": "string",
|
|
202
|
-
"description": "The name of the token",
|
|
203
|
-
"minLength": 1,
|
|
204
|
-
"maxLength": 40,
|
|
205
|
-
"pattern": "^[ \\w.'+\\-%/À-ÖØ-öø-ÿ:&\\[\\]\\(\\)]+$",
|
|
206
|
-
"examples": [
|
|
207
|
-
"USD Coin"
|
|
208
|
-
]
|
|
209
|
-
},
|
|
210
|
-
"symbol": {
|
|
211
|
-
"type": "string",
|
|
212
|
-
"description": "The symbol for the token; must be alphanumeric",
|
|
213
|
-
"pattern": "^[a-zA-Z0-9+\\-%/$.]+$",
|
|
214
|
-
"minLength": 1,
|
|
215
|
-
"maxLength": 20,
|
|
216
|
-
"examples": [
|
|
217
|
-
"USDC"
|
|
218
|
-
]
|
|
219
|
-
},
|
|
220
|
-
"logoUri": {
|
|
221
|
-
"type": "string",
|
|
222
|
-
"description": "A URI to the token logo asset; if not set, interface will attempt to find a logo based on the token address; suggest SVG or PNG of size 64x64",
|
|
223
|
-
"format": "uri",
|
|
224
|
-
"examples": [
|
|
225
|
-
"ipfs://QmXfzKRvjZz3u5JRgC4v5mGVbm9ahrUiB4DgzHBsnWbTMM"
|
|
226
|
-
]
|
|
227
|
-
},
|
|
228
|
-
"tags": {
|
|
229
|
-
"type": "array",
|
|
230
|
-
"description": "An array of tag identifiers associated with the token; tags are defined at the list level",
|
|
231
|
-
"items": {
|
|
232
|
-
"$ref": "#/definitions/TagName"
|
|
233
|
-
},
|
|
234
|
-
"maxItems": 3,
|
|
235
|
-
"examples": [
|
|
236
|
-
"Large Cap",
|
|
237
|
-
"Stablecoins"
|
|
238
|
-
]
|
|
239
|
-
},
|
|
240
|
-
"extensions": {
|
|
241
|
-
"$ref": "#/definitions/ExtensionMap"
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
"required": [
|
|
245
|
-
"chainId",
|
|
246
|
-
"address",
|
|
247
|
-
"decimals",
|
|
248
|
-
"name",
|
|
249
|
-
"symbol"
|
|
250
|
-
]
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
"type": "object",
|
|
254
|
-
"additionalProperties": false,
|
|
255
|
-
"properties": {
|
|
256
|
-
"name": {
|
|
257
|
-
"type": "string",
|
|
258
|
-
"description": "The name of the token list",
|
|
259
|
-
"minLength": 1,
|
|
260
|
-
"maxLength": 30,
|
|
261
|
-
"pattern": "^[\\w ]+$",
|
|
262
|
-
"examples": [
|
|
263
|
-
"My Token List"
|
|
264
|
-
]
|
|
265
|
-
},
|
|
266
|
-
"timestamp": {
|
|
267
|
-
"type": "string",
|
|
268
|
-
"format": "date-time",
|
|
269
|
-
"description": "The timestamp of this list version; i.e. when this immutable version of the list was created"
|
|
270
|
-
},
|
|
271
|
-
"version": {
|
|
272
|
-
"$ref": "#/definitions/Version"
|
|
273
|
-
},
|
|
274
|
-
"tokens": {
|
|
275
|
-
"type": "array",
|
|
276
|
-
"description": "The list of tokens included in the list",
|
|
277
|
-
"items": {
|
|
278
|
-
"$ref": "#/definitions/TokenInfo"
|
|
279
|
-
},
|
|
280
|
-
"minItems": 1,
|
|
281
|
-
"maxItems": 10000
|
|
282
|
-
},
|
|
283
|
-
"keywords": {
|
|
284
|
-
"type": "array",
|
|
285
|
-
"description": "Keywords associated with the contents of the list; may be used in list discoverability",
|
|
286
|
-
"items": {
|
|
287
|
-
"type": "string",
|
|
288
|
-
"description": "A keyword to describe the contents of the list",
|
|
289
|
-
"minLength": 1,
|
|
290
|
-
"maxLength": 20,
|
|
291
|
-
"pattern": "^[\\w ]+$",
|
|
292
|
-
"examples": [
|
|
293
|
-
"compound",
|
|
294
|
-
"lending",
|
|
295
|
-
"personal tokens"
|
|
296
|
-
]
|
|
297
|
-
},
|
|
298
|
-
"maxItems": 20,
|
|
299
|
-
"uniqueItems": true
|
|
300
|
-
},
|
|
301
|
-
"tags": {
|
|
302
|
-
"type": "array",
|
|
303
|
-
"description": "Definition of a tag that can be associated with a token",
|
|
304
|
-
"items": {
|
|
305
|
-
"$ref": "#/definitions/TagName"
|
|
306
|
-
},
|
|
307
|
-
"maxItems": 3,
|
|
308
|
-
"uniqueItems": true,
|
|
309
|
-
"examples": [
|
|
310
|
-
"Large Cap",
|
|
311
|
-
"Stablecoins"
|
|
312
|
-
]
|
|
313
|
-
},
|
|
314
|
-
"logoUri": {
|
|
315
|
-
"type": "string",
|
|
316
|
-
"description": "A URI for the logo of the token list; prefer SVG or PNG of size 256x256",
|
|
317
|
-
"format": "uri",
|
|
318
|
-
"examples": [
|
|
319
|
-
"ipfs://QmXfzKRvjZz3u5JRgC4v5mGVbm9ahrUiB4DgzHBsnWbTMM"
|
|
320
|
-
]
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
"required": [
|
|
324
|
-
"name",
|
|
325
|
-
"timestamp",
|
|
326
|
-
"version",
|
|
327
|
-
"tokens"
|
|
328
|
-
]
|
|
329
|
-
}
|