@uniswap/token-list-bridge-utils 1.3.3 → 2.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/dist/constants/chainId.d.ts +2 -1
- package/dist/constants/tokens.d.ts +1 -0
- package/dist/constants/types.d.ts +3 -3
- package/dist/fixtures/index.d.ts +9 -0
- package/dist/providers/AvalancheMappingProvider.d.ts +5 -0
- package/dist/providers/BnbMappingProvider.d.ts +2 -2
- package/dist/providers/MappingProvider.d.ts +2 -2
- package/dist/token-list-bridge-utils.cjs.development.js +623 -8
- package/dist/token-list-bridge-utils.cjs.development.js.map +1 -1
- package/dist/token-list-bridge-utils.cjs.production.min.js +1 -1
- package/dist/token-list-bridge-utils.cjs.production.min.js.map +1 -1
- package/dist/token-list-bridge-utils.esm.js +623 -8
- package/dist/token-list-bridge-utils.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/constants/chainId.ts +2 -0
- package/src/constants/tokens.ts +8 -0
- package/src/constants/types.ts +2 -2
- package/src/fixtures/index.ts +31 -0
- package/src/index.test.ts +36 -0
- package/src/index.ts +1 -0
- package/src/local_mappings/avax.json +574 -0
- package/src/providers/AvalancheMappingProvider.ts +11 -0
- package/src/providers/BnbMappingProvider.ts +4 -4
- package/src/providers/MappingProvider.ts +2 -2
- package/src/providers/index.ts +17 -10
- package/src/utils.ts +2 -0
- package/src/.DS_Store +0 -0
- package/src/.env +0 -0
package/src/index.test.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ChainId } from './constants/chainId'
|
|
|
4
4
|
import {
|
|
5
5
|
DAI,
|
|
6
6
|
DAI_ARBITRUM_ONE,
|
|
7
|
+
DAI_AVALANCHE,
|
|
7
8
|
DAI_BNB,
|
|
8
9
|
DAI_OPTIMISM,
|
|
9
10
|
DAI_POLYGON,
|
|
@@ -17,6 +18,7 @@ import {
|
|
|
17
18
|
Tokens,
|
|
18
19
|
sampleL1TokenList_2,
|
|
19
20
|
bnbedSampleTokenList_2,
|
|
21
|
+
avalanchedSampleTokenList,
|
|
20
22
|
} from './fixtures'
|
|
21
23
|
|
|
22
24
|
jest.setTimeout(15000)
|
|
@@ -87,6 +89,25 @@ describe(chainifyTokenList, () => {
|
|
|
87
89
|
})
|
|
88
90
|
})
|
|
89
91
|
|
|
92
|
+
it('outputs avalanche list correctly', async () => {
|
|
93
|
+
const tokenList = await chainifyTokenList(
|
|
94
|
+
[ChainId.AVALANCHE],
|
|
95
|
+
sampleL1TokenList
|
|
96
|
+
)
|
|
97
|
+
expect(tokenList).toBeDefined()
|
|
98
|
+
expect(tokenList?.version).toEqual(avalanchedSampleTokenList.version)
|
|
99
|
+
expect(
|
|
100
|
+
tokenList?.tokens.map((t) => [t.address, t.chainId, t.extensions])
|
|
101
|
+
).toEqual(
|
|
102
|
+
// ignores other metadata
|
|
103
|
+
avalanchedSampleTokenList.tokens.map((t) => [
|
|
104
|
+
t.address,
|
|
105
|
+
t.chainId,
|
|
106
|
+
t.extensions,
|
|
107
|
+
])
|
|
108
|
+
)
|
|
109
|
+
})
|
|
110
|
+
|
|
90
111
|
it('outputs bnb list correctly', async () => {
|
|
91
112
|
const tokenList = await chainifyTokenList([ChainId.BNB], sampleL1TokenList)
|
|
92
113
|
expect(tokenList).toBeDefined()
|
|
@@ -221,6 +242,9 @@ describe(chainify, () => {
|
|
|
221
242
|
[ChainId.BNB]: {
|
|
222
243
|
tokenAddress: DAI_BNB.address,
|
|
223
244
|
},
|
|
245
|
+
[ChainId.AVALANCHE]: {
|
|
246
|
+
tokenAddress: DAI_AVALANCHE.address,
|
|
247
|
+
},
|
|
224
248
|
[ChainId.OPTIMISM]: {
|
|
225
249
|
tokenAddress: DAI_OPTIMISM.address,
|
|
226
250
|
},
|
|
@@ -279,6 +303,18 @@ describe(chainify, () => {
|
|
|
279
303
|
},
|
|
280
304
|
name: 'Dai Stablecoin',
|
|
281
305
|
},
|
|
306
|
+
{
|
|
307
|
+
...Tokens[ChainId.AVALANCHE]!.DAI,
|
|
308
|
+
name: 'Dai Stablecoin',
|
|
309
|
+
symbol: 'DAI',
|
|
310
|
+
extensions: {
|
|
311
|
+
bridgeInfo: {
|
|
312
|
+
[ChainId.MAINNET]: {
|
|
313
|
+
tokenAddress: DAI.address,
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
},
|
|
282
318
|
])
|
|
283
319
|
})
|
|
284
320
|
})
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
{
|
|
2
|
+
"0x65ef703f5594d2573eb71aaf55bc0cb548492df4": {
|
|
3
|
+
"childToken": "0x9fb9a33956351cf4fa040f65a13b835a3c8764e3",
|
|
4
|
+
"decimals": 18
|
|
5
|
+
},
|
|
6
|
+
"0x644192291cc835a93d6330b24ea5f5fedd0eef9e": {
|
|
7
|
+
"childToken": "0x644192291cc835a93d6330b24ea5f5fedd0eef9e",
|
|
8
|
+
"decimals": 18
|
|
9
|
+
},
|
|
10
|
+
"0x73374ea518de7addd4c2b624c0e8b113955ee041": {
|
|
11
|
+
"childToken": "0x4e3642603a75528489c2d94f86e9507260d3c5a1",
|
|
12
|
+
"decimals": 18
|
|
13
|
+
},
|
|
14
|
+
"0x028171bca77440897b824ca71d1c56cac55b68a3": {
|
|
15
|
+
"childToken": "0x82e64f49ed5ec1bc6e43dad4fc8af9bb3a2312ee",
|
|
16
|
+
"decimals": 18
|
|
17
|
+
},
|
|
18
|
+
"0x3ed3b47dd13ec9a98b44e6204a523e766b225811": {
|
|
19
|
+
"childToken": "0x6ab707aca953edaefbc4fd23ba73294241490620",
|
|
20
|
+
"decimals": 6
|
|
21
|
+
},
|
|
22
|
+
"0x9ff58f4ffb29fa2266ab25e75e2a8b3503311656": {
|
|
23
|
+
"childToken": "0x078f358208685046a11c85e8ad32895ded33a249",
|
|
24
|
+
"decimals": 8
|
|
25
|
+
},
|
|
26
|
+
"0xe692c8d72bd4ac7764090d54842a305546dd1de5": {
|
|
27
|
+
"childToken": "0xc931f61b1534eb21d8c11b24f3f5ab2471d4ab50",
|
|
28
|
+
"decimals": 8
|
|
29
|
+
},
|
|
30
|
+
"0x6b3595068778dd592e39a122f4f5a5cf09c90fe2": {
|
|
31
|
+
"childToken": "0x37b608519f91f70f2eeb0e5ed9af4061722e4f76",
|
|
32
|
+
"decimals": 18
|
|
33
|
+
},
|
|
34
|
+
"0x820802fa8a99901f52e39acd21177b0be6ee2974": {
|
|
35
|
+
"childToken": "0x820802fa8a99901f52e39acd21177b0be6ee2974",
|
|
36
|
+
"decimals": 6
|
|
37
|
+
},
|
|
38
|
+
"0x8290333cef9e6d528dd5618fb97a76f268f3edd4": {
|
|
39
|
+
"childToken": "0x20cf1b6e9d856321ed4686877cf4538f2c84b4de",
|
|
40
|
+
"decimals": 18
|
|
41
|
+
},
|
|
42
|
+
"0x0f2d719407fdbeff09d87557abb7232601fd9f29": {
|
|
43
|
+
"childToken": "0x1f1e7c893855525b303f99bdf5c3c05be09ca251",
|
|
44
|
+
"decimals": 18
|
|
45
|
+
},
|
|
46
|
+
"0x444444444444c1a66f394025ac839a535246fcc8": {
|
|
47
|
+
"childToken": "0x444444444444c1a66f394025ac839a535246fcc8",
|
|
48
|
+
"decimals": 9
|
|
49
|
+
},
|
|
50
|
+
"0x06450dee7fd2fb8e39061434babcfc05599a6fb8": {
|
|
51
|
+
"childToken": "0xc0c5aa69dbe4d6dddfbc89c0957686ec60f24389",
|
|
52
|
+
"decimals": 18
|
|
53
|
+
},
|
|
54
|
+
"0x4fb721ef3bf99e0f2c193847afa296b9257d3c30": {
|
|
55
|
+
"childToken": "0xae9d2385ff2e2951dd4fa061e74c4d3dedd24347",
|
|
56
|
+
"decimals": 8
|
|
57
|
+
},
|
|
58
|
+
"0x0d8775f648430679a709e98d2b0cb6250d2887ef": {
|
|
59
|
+
"childToken": "0x98443b96ea4b0858fdf3219cd13e98c7a4690588",
|
|
60
|
+
"decimals": 18
|
|
61
|
+
},
|
|
62
|
+
"0xe41d2489571d322189246dafa5ebde1f4699f498": {
|
|
63
|
+
"childToken": "0x596fa47043f99a4e0f122243b841e55375cde0d2",
|
|
64
|
+
"decimals": 18
|
|
65
|
+
},
|
|
66
|
+
"0xf88baf18fab7e330fa0c4f83949e23f52fececce": {
|
|
67
|
+
"childToken": "0x9df4ac62f9e435dbcd85e06c990a7f0ea32739a9",
|
|
68
|
+
"decimals": 18
|
|
69
|
+
},
|
|
70
|
+
"0x47b9f01b16e9c9cb99191dca68c9cc5bf6403957": {
|
|
71
|
+
"childToken": "0x72bc9d71dd9ad563f52270c6ce5fb30f617c7a1d",
|
|
72
|
+
"decimals": 18
|
|
73
|
+
},
|
|
74
|
+
"0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9": {
|
|
75
|
+
"childToken": "0x63a72806098bd3d9520cc43356dd78afe5d386d9",
|
|
76
|
+
"decimals": 18
|
|
77
|
+
},
|
|
78
|
+
"0x40986a85b4cfcdb054a6cbfb1210194fee51af88": {
|
|
79
|
+
"childToken": "0xd60effed653f3f1b69047f2d2dc4e808a548767b",
|
|
80
|
+
"decimals": 18
|
|
81
|
+
},
|
|
82
|
+
"0xaa4e3edb11afa93c41db59842b29de64b72e355b": {
|
|
83
|
+
"childToken": "0x9fda7ceec4c18008096c2fe2b85f05dc300f94d0",
|
|
84
|
+
"decimals": 18
|
|
85
|
+
},
|
|
86
|
+
"0x5d843fa9495d23de997c394296ac7b4d721e841c": {
|
|
87
|
+
"childToken": "0x78c42324016cd91d1827924711563fb66e33a83a",
|
|
88
|
+
"decimals": 18
|
|
89
|
+
},
|
|
90
|
+
"0x92868a5255c628da08f550a858a802f5351c5223": {
|
|
91
|
+
"childToken": "0xc0367f9b1f84ca8de127226ac2a994ea4bf1e41b",
|
|
92
|
+
"decimals": 18
|
|
93
|
+
},
|
|
94
|
+
"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984": {
|
|
95
|
+
"childToken": "0x8ebaf22b6f053dffeaf46f4dd9efa95d89ba8580",
|
|
96
|
+
"decimals": 18
|
|
97
|
+
},
|
|
98
|
+
"0x418d75f65a02b3d53b2418fb8e1fe493759c7605": {
|
|
99
|
+
"childToken": "0x442f7f22b1ee2c842beaff52880d4573e9201158",
|
|
100
|
+
"decimals": 18
|
|
101
|
+
},
|
|
102
|
+
"0x467719ad09025fcc6cf6f8311755809d45a5e5f3": {
|
|
103
|
+
"childToken": "0x44c784266cf024a60e8acf2427b9857ace194c5d",
|
|
104
|
+
"decimals": 6
|
|
105
|
+
},
|
|
106
|
+
"0x030ba81f1c18d280636f32af80b9aad02cf0854e": {
|
|
107
|
+
"childToken": "0xe50fa9b3c56ffb159cb0fca61f5c9d750e8128c8",
|
|
108
|
+
"decimals": 18
|
|
109
|
+
},
|
|
110
|
+
"0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f": {
|
|
111
|
+
"childToken": "0xbec243c995409e6520d7c41e404da5deba4b209b",
|
|
112
|
+
"decimals": 18
|
|
113
|
+
},
|
|
114
|
+
"0x809826cceab68c387726af962713b64cb5cb3cca": {
|
|
115
|
+
"childToken": "0xc69eba65e87889f0805db717af06797055a0ba07",
|
|
116
|
+
"decimals": 18
|
|
117
|
+
},
|
|
118
|
+
"0x4fabb145d64652a948d72533023f6e7a623c7c53": {
|
|
119
|
+
"childToken": "0x9c9e5fd8bbc25984b178fdce6117defa39d2db39",
|
|
120
|
+
"decimals": 18
|
|
121
|
+
},
|
|
122
|
+
"0xe5caef4af8780e59df925470b050fb23c43ca68c": {
|
|
123
|
+
"childToken": "0xe5caef4af8780e59df925470b050fb23c43ca68c",
|
|
124
|
+
"decimals": 18
|
|
125
|
+
},
|
|
126
|
+
"0x00a8b738e453ffd858a7edf03bccfe20412f0eb0": {
|
|
127
|
+
"childToken": "0x9e037de681cafa6e661e6108ed9c2bd1aa567ecd",
|
|
128
|
+
"decimals": 18
|
|
129
|
+
},
|
|
130
|
+
"0x04fa0d235c4abf4bcf4787af4cf447de572ef828": {
|
|
131
|
+
"childToken": "0x3bd2b1c7ed8d396dbb98ded3aebb41350a5b2339",
|
|
132
|
+
"decimals": 18
|
|
133
|
+
},
|
|
134
|
+
"0x8254e26e453eb5abd29b3c37ac9e8da32e5d3299": {
|
|
135
|
+
"childToken": "0x94960952876e3ed6a7760b198354fcc5319a406a",
|
|
136
|
+
"decimals": 18
|
|
137
|
+
},
|
|
138
|
+
"0x1045f5ccb01daea4f8eab055f5fcbb7c0e7c89f0": {
|
|
139
|
+
"childToken": "0xafe3d2a31231230875dee1fa1eef14a412443d22",
|
|
140
|
+
"decimals": 18
|
|
141
|
+
},
|
|
142
|
+
"0xa06bc25b5805d5f8d82847d191cb4af5a3e873e0": {
|
|
143
|
+
"childToken": "0x191c10aa4af7c30e871e70c95db0e4eb77237530",
|
|
144
|
+
"decimals": 18
|
|
145
|
+
},
|
|
146
|
+
"0x6006fc2a849fedaba8330ce36f5133de01f96189": {
|
|
147
|
+
"childToken": "0xc1d02e488a9ce2481bfdcd797d5373dd2e70a9c2",
|
|
148
|
+
"decimals": 18
|
|
149
|
+
},
|
|
150
|
+
"0x6b175474e89094c44da98b954eedeac495271d0f": {
|
|
151
|
+
"childToken": "0xd586e7f844cea2f87f50152665bcbc2c279d8d70",
|
|
152
|
+
"decimals": 18
|
|
153
|
+
},
|
|
154
|
+
"0x111111111117dc0aa78b770fa6a738034120c302": {
|
|
155
|
+
"childToken": "0xd501281565bf7789224523144fe5d98e8b28f267",
|
|
156
|
+
"decimals": 18
|
|
157
|
+
},
|
|
158
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": {
|
|
159
|
+
"childToken": "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
|
|
160
|
+
"decimals": 6
|
|
161
|
+
},
|
|
162
|
+
"0x3affcca64c2a6f4e3b6bd9c64cd2c969efd1ecbe": {
|
|
163
|
+
"childToken": "0xd7c295e399ca928a3a14b01d760e794f1adf8990",
|
|
164
|
+
"decimals": 18
|
|
165
|
+
},
|
|
166
|
+
"0x431d5dff03120afa4bdf332c61a6e1766ef37bdb": {
|
|
167
|
+
"childToken": "0x431d5dff03120afa4bdf332c61a6e1766ef37bdb",
|
|
168
|
+
"decimals": 18
|
|
169
|
+
},
|
|
170
|
+
"0x514910771af9ca656af840dff83e8264ecf986ca": {
|
|
171
|
+
"childToken": "0x5947bb275c521040051d82396192181b413227a3",
|
|
172
|
+
"decimals": 18
|
|
173
|
+
},
|
|
174
|
+
"0x29127fe04ffa4c32acac0ffe17280abd74eac313": {
|
|
175
|
+
"childToken": "0x237917e8a998b37759c8ee2faa529d60c66c2927",
|
|
176
|
+
"decimals": 18
|
|
177
|
+
},
|
|
178
|
+
"0x0ab87046fbb341d058f17cbc4c1133f25a20a52f": {
|
|
179
|
+
"childToken": "0x321e7092a180bb43555132ec53aaa65a5bf84251",
|
|
180
|
+
"decimals": 18
|
|
181
|
+
},
|
|
182
|
+
"0xa1faa113cbe53436df28ff0aee54275c13b40975": {
|
|
183
|
+
"childToken": "0x2147efff675e4a4ee1c2f918d181cdbd7a8e208f",
|
|
184
|
+
"decimals": 18
|
|
185
|
+
},
|
|
186
|
+
"0xdac17f958d2ee523a2206206994597c13d831ec7": {
|
|
187
|
+
"childToken": "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7",
|
|
188
|
+
"decimals": 6
|
|
189
|
+
},
|
|
190
|
+
"0xd31a59c85ae9d8edefec411d448f90841571b89c": {
|
|
191
|
+
"childToken": "0xfe6b19286885a4f7f55adad09c3cd1f906d2478f",
|
|
192
|
+
"decimals": 9
|
|
193
|
+
},
|
|
194
|
+
"0xd52aae39a2b5cc7812f7b9450ebb61dfef702b15": {
|
|
195
|
+
"childToken": "0x921f99719eb6c01b4b8f0ba7973a7c24891e740a",
|
|
196
|
+
"decimals": 18
|
|
197
|
+
},
|
|
198
|
+
"0x69570f3e84f51ea70b7b68055c8d667e77735a25": {
|
|
199
|
+
"childToken": "0x63682bdc5f875e9bf69e201550658492c9763f89",
|
|
200
|
+
"decimals": 18
|
|
201
|
+
},
|
|
202
|
+
"0x491604c0fdf08347dd1fa4ee062a822a5dd06b5d": {
|
|
203
|
+
"childToken": "0x6b289cceaa8639e3831095d75a3e43520fabf552",
|
|
204
|
+
"decimals": 18
|
|
205
|
+
},
|
|
206
|
+
"0xa31b1767e09f842ecfd4bc471fe44f830e3891aa": {
|
|
207
|
+
"childToken": "0x4036f3d9c45a20f44f0b8b85dd6ca33005ff9654",
|
|
208
|
+
"decimals": 18
|
|
209
|
+
},
|
|
210
|
+
"0xdefa4e8a7bcba345f687a2f1456f5edd9ce97202": {
|
|
211
|
+
"childToken": "0x39fc9e94caeacb435842fadedecb783589f50f5f",
|
|
212
|
+
"decimals": 18
|
|
213
|
+
},
|
|
214
|
+
"0x84d821f7fbdd595c4c4a50842913e6b1e07d7a53": {
|
|
215
|
+
"childToken": "0x1263fea931b86f3e8ce8afbf29f66631b7be9347",
|
|
216
|
+
"decimals": 18
|
|
217
|
+
},
|
|
218
|
+
"0x420412e765bfa6d85aaac94b4f7b708c89be2e2b": {
|
|
219
|
+
"childToken": "0x491a4eb4f1fc3bff8e1d2fc856a6a46663ad556f",
|
|
220
|
+
"decimals": 4
|
|
221
|
+
},
|
|
222
|
+
"0xc944e90c64b2c07662a292be6244bdf05cda44a7": {
|
|
223
|
+
"childToken": "0x8a0cac13c7da965a312f08ea4229c37869e85cb9",
|
|
224
|
+
"decimals": 18
|
|
225
|
+
},
|
|
226
|
+
"0x98585dfc8d9e7d48f0b1ae47ce33332cf4237d96": {
|
|
227
|
+
"childToken": "0x4bfc90322dd638f81f034517359bd447f8e0235a",
|
|
228
|
+
"decimals": 18
|
|
229
|
+
},
|
|
230
|
+
"0xe5097d9baeafb89f9bcb78c9290d545db5f9e9cb": {
|
|
231
|
+
"childToken": "0x38dcf0532699b880e6a125f7d918380524cd60a6",
|
|
232
|
+
"decimals": 18
|
|
233
|
+
},
|
|
234
|
+
"0x8a0cdfab62ed35b836dc0633482798421c81b3ec": {
|
|
235
|
+
"childToken": "0x2fd4d793c1905d82018d75e3b09d3035856890a1",
|
|
236
|
+
"decimals": 18
|
|
237
|
+
},
|
|
238
|
+
"0x3757232b55e60da4a8793183ac030cfce4c3865d": {
|
|
239
|
+
"childToken": "0xf03dccaec9a28200a6708c686cf0b8bf26ddc356",
|
|
240
|
+
"decimals": 18
|
|
241
|
+
},
|
|
242
|
+
"0xd46ba6d942050d489dbd938a2c909a5d5039a161": {
|
|
243
|
+
"childToken": "0x027dbca046ca156de9622cd1e2d907d375e53aa7",
|
|
244
|
+
"decimals": 9
|
|
245
|
+
},
|
|
246
|
+
"0xb3ed706b564bba9cab64042f4e1b391be7bebce5": {
|
|
247
|
+
"childToken": "0xb67a9374da03d4114a6fb8f0e7f2b82b5cb34ee3",
|
|
248
|
+
"decimals": 18
|
|
249
|
+
},
|
|
250
|
+
"0x99d8a9c45b2eca8864373a26d1459e3dff1e17f3": {
|
|
251
|
+
"childToken": "0x130966628846bfd36ff31a822705796e8cb8c18d",
|
|
252
|
+
"decimals": 18
|
|
253
|
+
},
|
|
254
|
+
"0xe95a203b1a91a908f9b9ce46459d101078c2c3cb": {
|
|
255
|
+
"childToken": "0x12d8ce035c5de3ce39b1fdd4c1d5a745eaba3b8c",
|
|
256
|
+
"decimals": 18
|
|
257
|
+
},
|
|
258
|
+
"0xf0939011a9bb95c3b791f0cb546377ed2693a574": {
|
|
259
|
+
"childToken": "0x008e26068b3eb40b443d3ea88c1ff99b789c10f7",
|
|
260
|
+
"decimals": 18
|
|
261
|
+
},
|
|
262
|
+
"0xa11bd36801d8fa4448f0ac4ea7a62e3634ce8c7c": {
|
|
263
|
+
"childToken": "0xafc43610c7840b20b90caaf93759be5b54b291c9",
|
|
264
|
+
"decimals": 18
|
|
265
|
+
},
|
|
266
|
+
"0xcb86c6a22cb56b6cf40cafedb06ba0df188a416e": {
|
|
267
|
+
"childToken": "0x5fc17416925789e0852fbfcd81c490ca4abc51f9",
|
|
268
|
+
"decimals": 18
|
|
269
|
+
},
|
|
270
|
+
"0x0f7f961648ae6db43c75663ac7e5414eb79b5704": {
|
|
271
|
+
"childToken": "0x2cf51e73c3516f3d86e9c0b4de0971dbf0766fd4",
|
|
272
|
+
"decimals": 18
|
|
273
|
+
},
|
|
274
|
+
"0x8e0fe2947752be0d5acf73aae77362daf79cb379": {
|
|
275
|
+
"childToken": "0x9e3ca00f2d4a9e5d4f0add0900de5f15050812cf",
|
|
276
|
+
"decimals": 18
|
|
277
|
+
},
|
|
278
|
+
"0x5f64ab1544d28732f0a24f4713c2c8ec0da089f0": {
|
|
279
|
+
"childToken": "0x03e8d118a1864c7dc53bf91e007ab7d91f5a06fa",
|
|
280
|
+
"decimals": 18
|
|
281
|
+
},
|
|
282
|
+
"0x2edf094db69d6dcd487f1b3db9febe2eec0dd4c5": {
|
|
283
|
+
"childToken": "0x44754455564474a89358b2c2265883df993b12f0",
|
|
284
|
+
"decimals": 18
|
|
285
|
+
},
|
|
286
|
+
"0x4297394c20800e8a38a619a243e9bbe7681ff24e": {
|
|
287
|
+
"childToken": "0x2f86508f41310d8d974b76deb3d246c0caa71cf5",
|
|
288
|
+
"decimals": 18
|
|
289
|
+
},
|
|
290
|
+
"0x961c8c0b1aad0c0b10a51fef6a867e3091bcef17": {
|
|
291
|
+
"childToken": "0x961c8c0b1aad0c0b10a51fef6a867e3091bcef17",
|
|
292
|
+
"decimals": 18
|
|
293
|
+
},
|
|
294
|
+
"0xbcca60bb61934080951369a648fb03df4f96263c": {
|
|
295
|
+
"childToken": "0x625e7708f30ca75bfd92586e17077590c60eb4cd",
|
|
296
|
+
"decimals": 6
|
|
297
|
+
},
|
|
298
|
+
"0x80c8c3dcfb854f9542567c8dac3f44d709ebc1de": {
|
|
299
|
+
"childToken": "0x721c299e6bf7d6a430d9bea3364ea197314bce09",
|
|
300
|
+
"decimals": 18
|
|
301
|
+
},
|
|
302
|
+
"0x1a3496c18d558bd9c6c8f609e1b129f67ab08163": {
|
|
303
|
+
"childToken": "0xd4d026322c88c2d49942a75dff920fcfbc5614c1",
|
|
304
|
+
"decimals": 18
|
|
305
|
+
},
|
|
306
|
+
"0x1735db6ab5baa19ea55d0adceed7bcdc008b3136": {
|
|
307
|
+
"childToken": "0xbd3936ec8d83a5d4e73eca625ecfa006da8c8f52",
|
|
308
|
+
"decimals": 18
|
|
309
|
+
},
|
|
310
|
+
"0xff75ced57419bcaebe5f05254983b013b0646ef5": {
|
|
311
|
+
"childToken": "0x637afeff75ca669ff92e4570b14d6399a658902f",
|
|
312
|
+
"decimals": 18
|
|
313
|
+
},
|
|
314
|
+
"0xcd2828fc4d8e8a0ede91bb38cf64b1a81de65bf6": {
|
|
315
|
+
"childToken": "0xb0a6e056b587d0a85640b39b1cb44086f7a26a1e",
|
|
316
|
+
"decimals": 18
|
|
317
|
+
},
|
|
318
|
+
"0xbe1a001fe942f96eea22ba08783140b9dcc09d28": {
|
|
319
|
+
"childToken": "0x511d35c52a3c244e7b8bd92c0c297755fbd89212",
|
|
320
|
+
"decimals": 18
|
|
321
|
+
},
|
|
322
|
+
"0xa02120696c7b8fe16c09c749e4598819b2b0e915": {
|
|
323
|
+
"childToken": "0xfcde4a87b8b6fa58326bb462882f1778158b02f1",
|
|
324
|
+
"decimals": 18
|
|
325
|
+
},
|
|
326
|
+
"0xaaca86b876ca011844b5798eca7a67591a9743c8": {
|
|
327
|
+
"childToken": "0xd7783a275e53fc6746dedfbad4a06059937502a4",
|
|
328
|
+
"decimals": 18
|
|
329
|
+
},
|
|
330
|
+
"0x1cdd2eab61112697626f7b4bb0e23da4febf7b7c": {
|
|
331
|
+
"childToken": "0xf0ff231e3f1a50f83136717f287adab862f89431",
|
|
332
|
+
"decimals": 6
|
|
333
|
+
},
|
|
334
|
+
"0x6c3f90f043a72fa612cbac8115ee7e52bde6e490": {
|
|
335
|
+
"childToken": "0x1337bedc9d22ecbe766df105c9623922a27963ec",
|
|
336
|
+
"decimals": 18
|
|
337
|
+
},
|
|
338
|
+
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
|
|
339
|
+
"childToken": "0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab",
|
|
340
|
+
"decimals": 18
|
|
341
|
+
},
|
|
342
|
+
"0x544c42fbb96b39b21df61cf322b5edc285ee7429": {
|
|
343
|
+
"childToken": "0x544c42fbb96b39b21df61cf322b5edc285ee7429",
|
|
344
|
+
"decimals": 18
|
|
345
|
+
},
|
|
346
|
+
"0x2c537e5624e4af88a7ae4060c022609376c8d0eb": {
|
|
347
|
+
"childToken": "0x564a341df6c126f90cf3ecb92120fd7190acb401",
|
|
348
|
+
"decimals": 6
|
|
349
|
+
},
|
|
350
|
+
"0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e": {
|
|
351
|
+
"childToken": "0x9eaac1b23d935365bd7b542fe22ceee2922f52dc",
|
|
352
|
+
"decimals": 18
|
|
353
|
+
},
|
|
354
|
+
"0x808507121b80c02388fad14726482e061b8da827": {
|
|
355
|
+
"childToken": "0xfb98b335551a418cd0737375a2ea0ded62ea213b",
|
|
356
|
+
"decimals": 18
|
|
357
|
+
},
|
|
358
|
+
"0x03ab458634910aad20ef5f1c8ee96f1d6ac54919": {
|
|
359
|
+
"childToken": "0x97cd1cfe2ed5712660bb6c14053c0ecb031bff7d",
|
|
360
|
+
"decimals": 18
|
|
361
|
+
},
|
|
362
|
+
"0x853d955acef822db058eb8505911ed77f175b99e": {
|
|
363
|
+
"childToken": "0xd24c2ad096400b6fbcd2ad8b24e7acbc21a1da64",
|
|
364
|
+
"decimals": 18
|
|
365
|
+
},
|
|
366
|
+
"0xe803178b48a0e560c2b19f3b3d4e504f79d229ce": {
|
|
367
|
+
"childToken": "0x590eb2920486486c2d9bb3eb651f73b81df87bcf",
|
|
368
|
+
"decimals": 18
|
|
369
|
+
},
|
|
370
|
+
"0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0": {
|
|
371
|
+
"childToken": "0x214db107654ff987ad859f34125307783fc8e387",
|
|
372
|
+
"decimals": 18
|
|
373
|
+
},
|
|
374
|
+
"0xaf5191b0de278c7286d6c7cc6ab6bb8a73ba2cd6": {
|
|
375
|
+
"childToken": "0x2f6f07cdcf3588944bf4c42ac74ff24bf56e7590",
|
|
376
|
+
"decimals": 18
|
|
377
|
+
},
|
|
378
|
+
"0xe0ad1806fd3e7edf6ff52fdb822432e847411033": {
|
|
379
|
+
"childToken": "0x3d8f74620857dd8ed6d0da02ceb13fd0ed8ba678",
|
|
380
|
+
"decimals": 18
|
|
381
|
+
},
|
|
382
|
+
"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599": {
|
|
383
|
+
"childToken": "0x50b7545627a5162f82a992c33b87adc75187b218",
|
|
384
|
+
"decimals": 8
|
|
385
|
+
},
|
|
386
|
+
"0x3301ee63fb29f863f2333bd4466acb46cd8323e6": {
|
|
387
|
+
"childToken": "0xcaf5191fc480f43e4df80106c7695eca56e48b18",
|
|
388
|
+
"decimals": 18
|
|
389
|
+
},
|
|
390
|
+
"0x5aa158404fed6b4730c13f49d3a7f820e14a636f": {
|
|
391
|
+
"childToken": "0xc685e8eddc9f078666794cbfcd8d8351bac404ef",
|
|
392
|
+
"decimals": 18
|
|
393
|
+
},
|
|
394
|
+
"0x0000000000085d4780b73119b644ae5ecd22b376": {
|
|
395
|
+
"childToken": "0x1c20e891bab6b1727d14da358fae2984ed9b59eb",
|
|
396
|
+
"decimals": 18
|
|
397
|
+
},
|
|
398
|
+
"0x4691937a7508860f876c9c0a2a617e7d9e945d4b": {
|
|
399
|
+
"childToken": "0xabc9547b534519ff73921b1fba6e672b5f58d083",
|
|
400
|
+
"decimals": 18
|
|
401
|
+
},
|
|
402
|
+
"0xc00e94cb662c3520282e6f5717214004a7f26888": {
|
|
403
|
+
"childToken": "0xc3048e19e76cb9a3aa9d77d8c03c29fc906e2437",
|
|
404
|
+
"decimals": 18
|
|
405
|
+
},
|
|
406
|
+
"0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2": {
|
|
407
|
+
"childToken": "0x88128fd4b259552a9a1d457f435a6527aab72d42",
|
|
408
|
+
"decimals": 18
|
|
409
|
+
},
|
|
410
|
+
"0x090185f2135308bad17527004364ebcc2d37e5f6": {
|
|
411
|
+
"childToken": "0xce1bffbd5374dac86a2893119683f4911a2f7814",
|
|
412
|
+
"decimals": 18
|
|
413
|
+
},
|
|
414
|
+
"0xcc4304a31d09258b0029ea7fe63d032f52e44efe": {
|
|
415
|
+
"childToken": "0xc7b5d72c836e718cda8888eaf03707faef675079",
|
|
416
|
+
"decimals": 18
|
|
417
|
+
},
|
|
418
|
+
"0xd3ac016b1b8c80eeadde4d186a9138c9324e4189": {
|
|
419
|
+
"childToken": "0xd3ac016b1b8c80eeadde4d186a9138c9324e4189",
|
|
420
|
+
"decimals": 18
|
|
421
|
+
},
|
|
422
|
+
"0xb2cabf797bc907b049e4ccb5b84d13be3a8cfc21": {
|
|
423
|
+
"childToken": "0x00ee200df31b869a321b10400da10b561f3ee60d",
|
|
424
|
+
"decimals": 18
|
|
425
|
+
},
|
|
426
|
+
"0x6f9c26fa731c7ea4139fa669962cf8f1ce6c8b0b": {
|
|
427
|
+
"childToken": "0x2c69095d81305f1e3c6ed372336d407231624cea",
|
|
428
|
+
"decimals": 18
|
|
429
|
+
},
|
|
430
|
+
"0xcdb37a4fbc2da5b78aa4e41a432792f9533e85cc": {
|
|
431
|
+
"childToken": "0x0cbd6fadcf8096cc9a43d90b45f65826102e3ece",
|
|
432
|
+
"decimals": 18
|
|
433
|
+
},
|
|
434
|
+
"0xa64d5d1eb67748226d84812b45711453f1118c32": {
|
|
435
|
+
"childToken": "0xc11bf915db4b43714bc8d32bf83bf5ea53d40981",
|
|
436
|
+
"decimals": 9
|
|
437
|
+
},
|
|
438
|
+
"0x9ed7e4b1bff939ad473da5e7a218c771d1569456": {
|
|
439
|
+
"childToken": "0x9ed7e4b1bff939ad473da5e7a218c771d1569456",
|
|
440
|
+
"decimals": 6
|
|
441
|
+
},
|
|
442
|
+
"0x188fb5f5ae5bbe4154d5778f2bbb2fb985c94d25": {
|
|
443
|
+
"childToken": "0xccf719c44e2c36e919335692e89d22cf13d6aaeb",
|
|
444
|
+
"decimals": 18
|
|
445
|
+
},
|
|
446
|
+
"0x499568c250ab2a42292261d6121525d70691894b": {
|
|
447
|
+
"childToken": "0xa5acfeca5270bc9768633fbc86caa959b85ec8b7",
|
|
448
|
+
"decimals": 18
|
|
449
|
+
},
|
|
450
|
+
"0x45fdb1b92a649fb6a64ef1511d3ba5bf60044838": {
|
|
451
|
+
"childToken": "0xab05b04743e0aeaf9d2ca81e5d3b8385e4bf961e",
|
|
452
|
+
"decimals": 18
|
|
453
|
+
},
|
|
454
|
+
"0x7778360f035c589fce2f4ea5786cbd8b36e5396b": {
|
|
455
|
+
"childToken": "0x0ebd9537a25f56713e34c45b38f421a1e7191469",
|
|
456
|
+
"decimals": 18
|
|
457
|
+
},
|
|
458
|
+
"0x1d7ca62f6af49ec66f6680b8606e634e55ef22c1": {
|
|
459
|
+
"childToken": "0xf44fb887334fa17d2c5c0f970b5d320ab53ed557",
|
|
460
|
+
"decimals": 18
|
|
461
|
+
},
|
|
462
|
+
"0xf99d58e463a2e07e5692127302c20a191861b4d6": {
|
|
463
|
+
"childToken": "0xb44a9b6905af7c801311e8f4e76932ee959c663c",
|
|
464
|
+
"decimals": 18
|
|
465
|
+
},
|
|
466
|
+
"0x9fda7ceec4c18008096c2fe2b85f05dc300f94d0": {
|
|
467
|
+
"childToken": "0x595c8481c48894771ce8fade54ac6bf59093f9e8",
|
|
468
|
+
"decimals": 18
|
|
469
|
+
},
|
|
470
|
+
"0x8bbf1dccbedd5c70d8e793d432fb56b848dd1698": {
|
|
471
|
+
"childToken": "0x938fe3788222a74924e062120e7bfac829c719fb",
|
|
472
|
+
"decimals": 18
|
|
473
|
+
},
|
|
474
|
+
"0x3405a1bd46b85c5c029483fbecf2f3e611026e45": {
|
|
475
|
+
"childToken": "0xa384bc7cdc0a93e686da9e7b8c0807cd040f4e0b",
|
|
476
|
+
"decimals": 18
|
|
477
|
+
},
|
|
478
|
+
"0x16ba8efe847ebdfef99d399902ec29397d403c30": {
|
|
479
|
+
"childToken": "0x937e077abaea52d3abf879c9b9d3f2ebd15baa21",
|
|
480
|
+
"decimals": 18
|
|
481
|
+
},
|
|
482
|
+
"0x55af5865807b196bd0197e0902746f31fbccfa58": {
|
|
483
|
+
"childToken": "0xbd83010eb60f12112908774998f65761cf9f6f9a",
|
|
484
|
+
"decimals": 18
|
|
485
|
+
},
|
|
486
|
+
"0x9fb83c0635de2e815fd1c21b3a292277540c2e8d": {
|
|
487
|
+
"childToken": "0x73178fceb736a9d6c1a9ef1fe413f09cba2d4a68",
|
|
488
|
+
"decimals": 18
|
|
489
|
+
},
|
|
490
|
+
"0x45c2f8c9b4c0bdc76200448cc26c48ab6ffef83f": {
|
|
491
|
+
"childToken": "0xfc6da929c031162841370af240dec19099861d3b",
|
|
492
|
+
"decimals": 18
|
|
493
|
+
},
|
|
494
|
+
"0xbd100d061e120b2c67a24453cf6368e63f1be056": {
|
|
495
|
+
"childToken": "0xbd100d061e120b2c67a24453cf6368e63f1be056",
|
|
496
|
+
"decimals": 18
|
|
497
|
+
},
|
|
498
|
+
"0xe57425f1598f9b0d6219706b77f4b3da573a3695": {
|
|
499
|
+
"childToken": "0xb355f4f4cc84a9429a59d5c2b98d77016f7ec482",
|
|
500
|
+
"decimals": 18
|
|
501
|
+
},
|
|
502
|
+
"0xa693b19d2931d498c5b318df961919bb4aee87a5": {
|
|
503
|
+
"childToken": "0xb599c3590f42f8f995ecfa0f85d2980b76862fc1",
|
|
504
|
+
"decimals": 6
|
|
505
|
+
},
|
|
506
|
+
"0x9b17baadf0f21f03e35249e0e59723f34994f806": {
|
|
507
|
+
"childToken": "0xdebb1d6a2196f2335ad51fbde7ca587205889360",
|
|
508
|
+
"decimals": 18
|
|
509
|
+
},
|
|
510
|
+
"0xee9801669c6138e84bd50deb500827b776777d28": {
|
|
511
|
+
"childToken": "0xee9801669c6138e84bd50deb500827b776777d28",
|
|
512
|
+
"decimals": 18
|
|
513
|
+
},
|
|
514
|
+
"0xf655c8567e0f213e6c634cd2a68d992152161dc6": {
|
|
515
|
+
"childToken": "0x089d3daf549f99553c2182db24bc4336a4f0c824",
|
|
516
|
+
"decimals": 18
|
|
517
|
+
},
|
|
518
|
+
"0x19193f450086d0442157b852081976d41657ad56": {
|
|
519
|
+
"childToken": "0x771c01e1917b5ab5b791f7b96f0cd69e22f6dbcf",
|
|
520
|
+
"decimals": 18
|
|
521
|
+
},
|
|
522
|
+
"0xc17c30e98541188614df99239cabd40280810ca3": {
|
|
523
|
+
"childToken": "0xc17c30e98541188614df99239cabd40280810ca3",
|
|
524
|
+
"decimals": 18
|
|
525
|
+
},
|
|
526
|
+
"0x0c10bf8fcb7bf5412187a595ab97a3609160b5c6": {
|
|
527
|
+
"childToken": "0xb514cabd09ef5b169ed3fe0fa8dbd590741e81c2",
|
|
528
|
+
"decimals": 18
|
|
529
|
+
},
|
|
530
|
+
"0x9767203e89dcd34851240b3919d4900d3e5069f1": {
|
|
531
|
+
"childToken": "0x9767203e89dcd34851240b3919d4900d3e5069f1",
|
|
532
|
+
"decimals": 6
|
|
533
|
+
},
|
|
534
|
+
"0x7a5d3a9dcd33cb8d527f7b5f96eb4fef43d55636": {
|
|
535
|
+
"childToken": "0x02bfd11499847003de5f0f5aa081c43854d48815",
|
|
536
|
+
"decimals": 18
|
|
537
|
+
},
|
|
538
|
+
"0x5f018e73c185ab23647c82bd039e762813877f0e": {
|
|
539
|
+
"childToken": "0x9ad274e20a153451775ff29d546949a254c4a1bc",
|
|
540
|
+
"decimals": 18
|
|
541
|
+
},
|
|
542
|
+
"0x18a1ea69a50a85752b7bc204a2c45a95ce6e429d": {
|
|
543
|
+
"childToken": "0xf30c5083a1479865c9a8916dec6ddadd82e8907b",
|
|
544
|
+
"decimals": 18
|
|
545
|
+
},
|
|
546
|
+
"0x88536c9b2c4701b8db824e6a16829d5b5eb84440": {
|
|
547
|
+
"childToken": "0xb0a8e082e5f8d2a04e74372c1be47737d85a0e73",
|
|
548
|
+
"decimals": 9
|
|
549
|
+
},
|
|
550
|
+
"0xeeeeeb57642040be42185f49c52f7e9b38f8eeee": {
|
|
551
|
+
"childToken": "0xeeeeeb57642040be42185f49c52f7e9b38f8eeee",
|
|
552
|
+
"decimals": 18
|
|
553
|
+
},
|
|
554
|
+
"0x35609dc59e15d03c5c865507e1348fa5abb319a8": {
|
|
555
|
+
"childToken": "0x0b53b5da7d0f275c31a6a182622bdf02474af253",
|
|
556
|
+
"decimals": 8
|
|
557
|
+
},
|
|
558
|
+
"0x57b59f981730c6257df57cf6f0d98283749a9eeb": {
|
|
559
|
+
"childToken": "0x5f018e73c185ab23647c82bd039e762813877f0e",
|
|
560
|
+
"decimals": 18
|
|
561
|
+
},
|
|
562
|
+
"0x8d6cebd76f18e1558d4db88138e2defb3909fad6": {
|
|
563
|
+
"childToken": "0x3b55e45fd6bd7d4724f5c47e0d1bcaedd059263e",
|
|
564
|
+
"decimals": 18
|
|
565
|
+
},
|
|
566
|
+
"0x3b79a28264fc52c7b4cea90558aa0b162f7faf57": {
|
|
567
|
+
"childToken": "0x0da67235dd5787d67955420c84ca1cecd4e5bb3b",
|
|
568
|
+
"decimals": 18
|
|
569
|
+
},
|
|
570
|
+
"0x967fb0d760ed3ce53afe2f0a071674cccae73550": {
|
|
571
|
+
"childToken": "0x31c994ac062c1970c086260bc61babb708643fac",
|
|
572
|
+
"decimals": 18
|
|
573
|
+
}
|
|
574
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MappingProvider } from './MappingProvider'
|
|
2
|
+
import { MappedTokenData } from '../constants/types'
|
|
3
|
+
import avaxMappings from '../local_mappings/avax.json'
|
|
4
|
+
|
|
5
|
+
// barring a better external source, we use a local source of mappings for avalanche
|
|
6
|
+
export class AvalancheMappingProvider implements MappingProvider {
|
|
7
|
+
async provide(): Promise<MappedTokenData> {
|
|
8
|
+
const tokens = avaxMappings as MappedTokenData
|
|
9
|
+
return tokens
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MappingProvider } from './MappingProvider'
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { MappedTokenData } from '../constants/types'
|
|
3
|
+
import bnbMappings from '../local_mappings/bnb.json'
|
|
4
4
|
|
|
5
5
|
// barring a better external source, we use a local source of mappings for bnb
|
|
6
6
|
export class BnbMappingProvider implements MappingProvider {
|
|
7
|
-
async provide(): Promise<
|
|
8
|
-
const tokens =
|
|
7
|
+
async provide(): Promise<MappedTokenData> {
|
|
8
|
+
const tokens = bnbMappings as MappedTokenData
|
|
9
9
|
return tokens
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
MappedTokenData,
|
|
3
3
|
GenericMappedTokenData,
|
|
4
4
|
PolygonMappedTokenData,
|
|
5
5
|
} from '../constants/types'
|
|
6
6
|
|
|
7
7
|
export interface MappingProvider {
|
|
8
8
|
provide(): Promise<
|
|
9
|
-
PolygonMappedTokenData | GenericMappedTokenData |
|
|
9
|
+
PolygonMappedTokenData | GenericMappedTokenData | MappedTokenData
|
|
10
10
|
>
|
|
11
11
|
}
|