@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.
@@ -898,6 +898,7 @@ var ChainId;
898
898
  ChainId[ChainId["POLYGON_MUMBAI"] = 80001] = "POLYGON_MUMBAI";
899
899
  ChainId[ChainId["CELO"] = 42220] = "CELO";
900
900
  ChainId[ChainId["BNB"] = 56] = "BNB";
901
+ ChainId[ChainId["AVALANCHE"] = 43114] = "AVALANCHE";
901
902
  })(ChainId || (ChainId = {}));
902
903
 
903
904
  function compareTokenInfos(t1, t2) {
@@ -1120,6 +1121,9 @@ function getRpcUrl(chainId) {
1120
1121
 
1121
1122
  case ChainId.BNB:
1122
1123
  return 'https://bsc-dataseed1.binance.org';
1124
+
1125
+ case ChainId.AVALANCHE:
1126
+ return 'https://api.avax.network/ext/bc/C/rpc';
1123
1127
  }
1124
1128
 
1125
1129
  throw new Error('Unsupported ChainId');
@@ -1437,7 +1441,7 @@ var PolygonMappingProvider = /*#__PURE__*/function () {
1437
1441
  return PolygonMappingProvider;
1438
1442
  }();
1439
1443
 
1440
- var bnbmappings = {
1444
+ var bnbMappings = {
1441
1445
  "0xdef1da03061ddd2a5ef6c59220c135dec623116d": {
1442
1446
  childToken: "0xdef1da03061ddd2a5ef6c59220c135dec623116d",
1443
1447
  decimals: 18
@@ -4888,7 +4892,7 @@ var BnbMappingProvider = /*#__PURE__*/function () {
4888
4892
  while (1) {
4889
4893
  switch (_context.prev = _context.next) {
4890
4894
  case 0:
4891
- tokens = bnbmappings;
4895
+ tokens = bnbMappings;
4892
4896
  return _context.abrupt("return", tokens);
4893
4897
 
4894
4898
  case 2:
@@ -5078,9 +5082,617 @@ var abi = [{
5078
5082
  type: 'event'
5079
5083
  }];
5080
5084
 
5085
+ var avaxMappings = {
5086
+ "0x65ef703f5594d2573eb71aaf55bc0cb548492df4": {
5087
+ childToken: "0x9fb9a33956351cf4fa040f65a13b835a3c8764e3",
5088
+ decimals: 18
5089
+ },
5090
+ "0x644192291cc835a93d6330b24ea5f5fedd0eef9e": {
5091
+ childToken: "0x644192291cc835a93d6330b24ea5f5fedd0eef9e",
5092
+ decimals: 18
5093
+ },
5094
+ "0x73374ea518de7addd4c2b624c0e8b113955ee041": {
5095
+ childToken: "0x4e3642603a75528489c2d94f86e9507260d3c5a1",
5096
+ decimals: 18
5097
+ },
5098
+ "0x028171bca77440897b824ca71d1c56cac55b68a3": {
5099
+ childToken: "0x82e64f49ed5ec1bc6e43dad4fc8af9bb3a2312ee",
5100
+ decimals: 18
5101
+ },
5102
+ "0x3ed3b47dd13ec9a98b44e6204a523e766b225811": {
5103
+ childToken: "0x6ab707aca953edaefbc4fd23ba73294241490620",
5104
+ decimals: 6
5105
+ },
5106
+ "0x9ff58f4ffb29fa2266ab25e75e2a8b3503311656": {
5107
+ childToken: "0x078f358208685046a11c85e8ad32895ded33a249",
5108
+ decimals: 8
5109
+ },
5110
+ "0xe692c8d72bd4ac7764090d54842a305546dd1de5": {
5111
+ childToken: "0xc931f61b1534eb21d8c11b24f3f5ab2471d4ab50",
5112
+ decimals: 8
5113
+ },
5114
+ "0x6b3595068778dd592e39a122f4f5a5cf09c90fe2": {
5115
+ childToken: "0x37b608519f91f70f2eeb0e5ed9af4061722e4f76",
5116
+ decimals: 18
5117
+ },
5118
+ "0x820802fa8a99901f52e39acd21177b0be6ee2974": {
5119
+ childToken: "0x820802fa8a99901f52e39acd21177b0be6ee2974",
5120
+ decimals: 6
5121
+ },
5122
+ "0x8290333cef9e6d528dd5618fb97a76f268f3edd4": {
5123
+ childToken: "0x20cf1b6e9d856321ed4686877cf4538f2c84b4de",
5124
+ decimals: 18
5125
+ },
5126
+ "0x0f2d719407fdbeff09d87557abb7232601fd9f29": {
5127
+ childToken: "0x1f1e7c893855525b303f99bdf5c3c05be09ca251",
5128
+ decimals: 18
5129
+ },
5130
+ "0x444444444444c1a66f394025ac839a535246fcc8": {
5131
+ childToken: "0x444444444444c1a66f394025ac839a535246fcc8",
5132
+ decimals: 9
5133
+ },
5134
+ "0x06450dee7fd2fb8e39061434babcfc05599a6fb8": {
5135
+ childToken: "0xc0c5aa69dbe4d6dddfbc89c0957686ec60f24389",
5136
+ decimals: 18
5137
+ },
5138
+ "0x4fb721ef3bf99e0f2c193847afa296b9257d3c30": {
5139
+ childToken: "0xae9d2385ff2e2951dd4fa061e74c4d3dedd24347",
5140
+ decimals: 8
5141
+ },
5142
+ "0x0d8775f648430679a709e98d2b0cb6250d2887ef": {
5143
+ childToken: "0x98443b96ea4b0858fdf3219cd13e98c7a4690588",
5144
+ decimals: 18
5145
+ },
5146
+ "0xe41d2489571d322189246dafa5ebde1f4699f498": {
5147
+ childToken: "0x596fa47043f99a4e0f122243b841e55375cde0d2",
5148
+ decimals: 18
5149
+ },
5150
+ "0xf88baf18fab7e330fa0c4f83949e23f52fececce": {
5151
+ childToken: "0x9df4ac62f9e435dbcd85e06c990a7f0ea32739a9",
5152
+ decimals: 18
5153
+ },
5154
+ "0x47b9f01b16e9c9cb99191dca68c9cc5bf6403957": {
5155
+ childToken: "0x72bc9d71dd9ad563f52270c6ce5fb30f617c7a1d",
5156
+ decimals: 18
5157
+ },
5158
+ "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9": {
5159
+ childToken: "0x63a72806098bd3d9520cc43356dd78afe5d386d9",
5160
+ decimals: 18
5161
+ },
5162
+ "0x40986a85b4cfcdb054a6cbfb1210194fee51af88": {
5163
+ childToken: "0xd60effed653f3f1b69047f2d2dc4e808a548767b",
5164
+ decimals: 18
5165
+ },
5166
+ "0xaa4e3edb11afa93c41db59842b29de64b72e355b": {
5167
+ childToken: "0x9fda7ceec4c18008096c2fe2b85f05dc300f94d0",
5168
+ decimals: 18
5169
+ },
5170
+ "0x5d843fa9495d23de997c394296ac7b4d721e841c": {
5171
+ childToken: "0x78c42324016cd91d1827924711563fb66e33a83a",
5172
+ decimals: 18
5173
+ },
5174
+ "0x92868a5255c628da08f550a858a802f5351c5223": {
5175
+ childToken: "0xc0367f9b1f84ca8de127226ac2a994ea4bf1e41b",
5176
+ decimals: 18
5177
+ },
5178
+ "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984": {
5179
+ childToken: "0x8ebaf22b6f053dffeaf46f4dd9efa95d89ba8580",
5180
+ decimals: 18
5181
+ },
5182
+ "0x418d75f65a02b3d53b2418fb8e1fe493759c7605": {
5183
+ childToken: "0x442f7f22b1ee2c842beaff52880d4573e9201158",
5184
+ decimals: 18
5185
+ },
5186
+ "0x467719ad09025fcc6cf6f8311755809d45a5e5f3": {
5187
+ childToken: "0x44c784266cf024a60e8acf2427b9857ace194c5d",
5188
+ decimals: 6
5189
+ },
5190
+ "0x030ba81f1c18d280636f32af80b9aad02cf0854e": {
5191
+ childToken: "0xe50fa9b3c56ffb159cb0fca61f5c9d750e8128c8",
5192
+ decimals: 18
5193
+ },
5194
+ "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f": {
5195
+ childToken: "0xbec243c995409e6520d7c41e404da5deba4b209b",
5196
+ decimals: 18
5197
+ },
5198
+ "0x809826cceab68c387726af962713b64cb5cb3cca": {
5199
+ childToken: "0xc69eba65e87889f0805db717af06797055a0ba07",
5200
+ decimals: 18
5201
+ },
5202
+ "0x4fabb145d64652a948d72533023f6e7a623c7c53": {
5203
+ childToken: "0x9c9e5fd8bbc25984b178fdce6117defa39d2db39",
5204
+ decimals: 18
5205
+ },
5206
+ "0xe5caef4af8780e59df925470b050fb23c43ca68c": {
5207
+ childToken: "0xe5caef4af8780e59df925470b050fb23c43ca68c",
5208
+ decimals: 18
5209
+ },
5210
+ "0x00a8b738e453ffd858a7edf03bccfe20412f0eb0": {
5211
+ childToken: "0x9e037de681cafa6e661e6108ed9c2bd1aa567ecd",
5212
+ decimals: 18
5213
+ },
5214
+ "0x04fa0d235c4abf4bcf4787af4cf447de572ef828": {
5215
+ childToken: "0x3bd2b1c7ed8d396dbb98ded3aebb41350a5b2339",
5216
+ decimals: 18
5217
+ },
5218
+ "0x8254e26e453eb5abd29b3c37ac9e8da32e5d3299": {
5219
+ childToken: "0x94960952876e3ed6a7760b198354fcc5319a406a",
5220
+ decimals: 18
5221
+ },
5222
+ "0x1045f5ccb01daea4f8eab055f5fcbb7c0e7c89f0": {
5223
+ childToken: "0xafe3d2a31231230875dee1fa1eef14a412443d22",
5224
+ decimals: 18
5225
+ },
5226
+ "0xa06bc25b5805d5f8d82847d191cb4af5a3e873e0": {
5227
+ childToken: "0x191c10aa4af7c30e871e70c95db0e4eb77237530",
5228
+ decimals: 18
5229
+ },
5230
+ "0x6006fc2a849fedaba8330ce36f5133de01f96189": {
5231
+ childToken: "0xc1d02e488a9ce2481bfdcd797d5373dd2e70a9c2",
5232
+ decimals: 18
5233
+ },
5234
+ "0x6b175474e89094c44da98b954eedeac495271d0f": {
5235
+ childToken: "0xd586e7f844cea2f87f50152665bcbc2c279d8d70",
5236
+ decimals: 18
5237
+ },
5238
+ "0x111111111117dc0aa78b770fa6a738034120c302": {
5239
+ childToken: "0xd501281565bf7789224523144fe5d98e8b28f267",
5240
+ decimals: 18
5241
+ },
5242
+ "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": {
5243
+ childToken: "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
5244
+ decimals: 6
5245
+ },
5246
+ "0x3affcca64c2a6f4e3b6bd9c64cd2c969efd1ecbe": {
5247
+ childToken: "0xd7c295e399ca928a3a14b01d760e794f1adf8990",
5248
+ decimals: 18
5249
+ },
5250
+ "0x431d5dff03120afa4bdf332c61a6e1766ef37bdb": {
5251
+ childToken: "0x431d5dff03120afa4bdf332c61a6e1766ef37bdb",
5252
+ decimals: 18
5253
+ },
5254
+ "0x514910771af9ca656af840dff83e8264ecf986ca": {
5255
+ childToken: "0x5947bb275c521040051d82396192181b413227a3",
5256
+ decimals: 18
5257
+ },
5258
+ "0x29127fe04ffa4c32acac0ffe17280abd74eac313": {
5259
+ childToken: "0x237917e8a998b37759c8ee2faa529d60c66c2927",
5260
+ decimals: 18
5261
+ },
5262
+ "0x0ab87046fbb341d058f17cbc4c1133f25a20a52f": {
5263
+ childToken: "0x321e7092a180bb43555132ec53aaa65a5bf84251",
5264
+ decimals: 18
5265
+ },
5266
+ "0xa1faa113cbe53436df28ff0aee54275c13b40975": {
5267
+ childToken: "0x2147efff675e4a4ee1c2f918d181cdbd7a8e208f",
5268
+ decimals: 18
5269
+ },
5270
+ "0xdac17f958d2ee523a2206206994597c13d831ec7": {
5271
+ childToken: "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7",
5272
+ decimals: 6
5273
+ },
5274
+ "0xd31a59c85ae9d8edefec411d448f90841571b89c": {
5275
+ childToken: "0xfe6b19286885a4f7f55adad09c3cd1f906d2478f",
5276
+ decimals: 9
5277
+ },
5278
+ "0xd52aae39a2b5cc7812f7b9450ebb61dfef702b15": {
5279
+ childToken: "0x921f99719eb6c01b4b8f0ba7973a7c24891e740a",
5280
+ decimals: 18
5281
+ },
5282
+ "0x69570f3e84f51ea70b7b68055c8d667e77735a25": {
5283
+ childToken: "0x63682bdc5f875e9bf69e201550658492c9763f89",
5284
+ decimals: 18
5285
+ },
5286
+ "0x491604c0fdf08347dd1fa4ee062a822a5dd06b5d": {
5287
+ childToken: "0x6b289cceaa8639e3831095d75a3e43520fabf552",
5288
+ decimals: 18
5289
+ },
5290
+ "0xa31b1767e09f842ecfd4bc471fe44f830e3891aa": {
5291
+ childToken: "0x4036f3d9c45a20f44f0b8b85dd6ca33005ff9654",
5292
+ decimals: 18
5293
+ },
5294
+ "0xdefa4e8a7bcba345f687a2f1456f5edd9ce97202": {
5295
+ childToken: "0x39fc9e94caeacb435842fadedecb783589f50f5f",
5296
+ decimals: 18
5297
+ },
5298
+ "0x84d821f7fbdd595c4c4a50842913e6b1e07d7a53": {
5299
+ childToken: "0x1263fea931b86f3e8ce8afbf29f66631b7be9347",
5300
+ decimals: 18
5301
+ },
5302
+ "0x420412e765bfa6d85aaac94b4f7b708c89be2e2b": {
5303
+ childToken: "0x491a4eb4f1fc3bff8e1d2fc856a6a46663ad556f",
5304
+ decimals: 4
5305
+ },
5306
+ "0xc944e90c64b2c07662a292be6244bdf05cda44a7": {
5307
+ childToken: "0x8a0cac13c7da965a312f08ea4229c37869e85cb9",
5308
+ decimals: 18
5309
+ },
5310
+ "0x98585dfc8d9e7d48f0b1ae47ce33332cf4237d96": {
5311
+ childToken: "0x4bfc90322dd638f81f034517359bd447f8e0235a",
5312
+ decimals: 18
5313
+ },
5314
+ "0xe5097d9baeafb89f9bcb78c9290d545db5f9e9cb": {
5315
+ childToken: "0x38dcf0532699b880e6a125f7d918380524cd60a6",
5316
+ decimals: 18
5317
+ },
5318
+ "0x8a0cdfab62ed35b836dc0633482798421c81b3ec": {
5319
+ childToken: "0x2fd4d793c1905d82018d75e3b09d3035856890a1",
5320
+ decimals: 18
5321
+ },
5322
+ "0x3757232b55e60da4a8793183ac030cfce4c3865d": {
5323
+ childToken: "0xf03dccaec9a28200a6708c686cf0b8bf26ddc356",
5324
+ decimals: 18
5325
+ },
5326
+ "0xd46ba6d942050d489dbd938a2c909a5d5039a161": {
5327
+ childToken: "0x027dbca046ca156de9622cd1e2d907d375e53aa7",
5328
+ decimals: 9
5329
+ },
5330
+ "0xb3ed706b564bba9cab64042f4e1b391be7bebce5": {
5331
+ childToken: "0xb67a9374da03d4114a6fb8f0e7f2b82b5cb34ee3",
5332
+ decimals: 18
5333
+ },
5334
+ "0x99d8a9c45b2eca8864373a26d1459e3dff1e17f3": {
5335
+ childToken: "0x130966628846bfd36ff31a822705796e8cb8c18d",
5336
+ decimals: 18
5337
+ },
5338
+ "0xe95a203b1a91a908f9b9ce46459d101078c2c3cb": {
5339
+ childToken: "0x12d8ce035c5de3ce39b1fdd4c1d5a745eaba3b8c",
5340
+ decimals: 18
5341
+ },
5342
+ "0xf0939011a9bb95c3b791f0cb546377ed2693a574": {
5343
+ childToken: "0x008e26068b3eb40b443d3ea88c1ff99b789c10f7",
5344
+ decimals: 18
5345
+ },
5346
+ "0xa11bd36801d8fa4448f0ac4ea7a62e3634ce8c7c": {
5347
+ childToken: "0xafc43610c7840b20b90caaf93759be5b54b291c9",
5348
+ decimals: 18
5349
+ },
5350
+ "0xcb86c6a22cb56b6cf40cafedb06ba0df188a416e": {
5351
+ childToken: "0x5fc17416925789e0852fbfcd81c490ca4abc51f9",
5352
+ decimals: 18
5353
+ },
5354
+ "0x0f7f961648ae6db43c75663ac7e5414eb79b5704": {
5355
+ childToken: "0x2cf51e73c3516f3d86e9c0b4de0971dbf0766fd4",
5356
+ decimals: 18
5357
+ },
5358
+ "0x8e0fe2947752be0d5acf73aae77362daf79cb379": {
5359
+ childToken: "0x9e3ca00f2d4a9e5d4f0add0900de5f15050812cf",
5360
+ decimals: 18
5361
+ },
5362
+ "0x5f64ab1544d28732f0a24f4713c2c8ec0da089f0": {
5363
+ childToken: "0x03e8d118a1864c7dc53bf91e007ab7d91f5a06fa",
5364
+ decimals: 18
5365
+ },
5366
+ "0x2edf094db69d6dcd487f1b3db9febe2eec0dd4c5": {
5367
+ childToken: "0x44754455564474a89358b2c2265883df993b12f0",
5368
+ decimals: 18
5369
+ },
5370
+ "0x4297394c20800e8a38a619a243e9bbe7681ff24e": {
5371
+ childToken: "0x2f86508f41310d8d974b76deb3d246c0caa71cf5",
5372
+ decimals: 18
5373
+ },
5374
+ "0x961c8c0b1aad0c0b10a51fef6a867e3091bcef17": {
5375
+ childToken: "0x961c8c0b1aad0c0b10a51fef6a867e3091bcef17",
5376
+ decimals: 18
5377
+ },
5378
+ "0xbcca60bb61934080951369a648fb03df4f96263c": {
5379
+ childToken: "0x625e7708f30ca75bfd92586e17077590c60eb4cd",
5380
+ decimals: 6
5381
+ },
5382
+ "0x80c8c3dcfb854f9542567c8dac3f44d709ebc1de": {
5383
+ childToken: "0x721c299e6bf7d6a430d9bea3364ea197314bce09",
5384
+ decimals: 18
5385
+ },
5386
+ "0x1a3496c18d558bd9c6c8f609e1b129f67ab08163": {
5387
+ childToken: "0xd4d026322c88c2d49942a75dff920fcfbc5614c1",
5388
+ decimals: 18
5389
+ },
5390
+ "0x1735db6ab5baa19ea55d0adceed7bcdc008b3136": {
5391
+ childToken: "0xbd3936ec8d83a5d4e73eca625ecfa006da8c8f52",
5392
+ decimals: 18
5393
+ },
5394
+ "0xff75ced57419bcaebe5f05254983b013b0646ef5": {
5395
+ childToken: "0x637afeff75ca669ff92e4570b14d6399a658902f",
5396
+ decimals: 18
5397
+ },
5398
+ "0xcd2828fc4d8e8a0ede91bb38cf64b1a81de65bf6": {
5399
+ childToken: "0xb0a6e056b587d0a85640b39b1cb44086f7a26a1e",
5400
+ decimals: 18
5401
+ },
5402
+ "0xbe1a001fe942f96eea22ba08783140b9dcc09d28": {
5403
+ childToken: "0x511d35c52a3c244e7b8bd92c0c297755fbd89212",
5404
+ decimals: 18
5405
+ },
5406
+ "0xa02120696c7b8fe16c09c749e4598819b2b0e915": {
5407
+ childToken: "0xfcde4a87b8b6fa58326bb462882f1778158b02f1",
5408
+ decimals: 18
5409
+ },
5410
+ "0xaaca86b876ca011844b5798eca7a67591a9743c8": {
5411
+ childToken: "0xd7783a275e53fc6746dedfbad4a06059937502a4",
5412
+ decimals: 18
5413
+ },
5414
+ "0x1cdd2eab61112697626f7b4bb0e23da4febf7b7c": {
5415
+ childToken: "0xf0ff231e3f1a50f83136717f287adab862f89431",
5416
+ decimals: 6
5417
+ },
5418
+ "0x6c3f90f043a72fa612cbac8115ee7e52bde6e490": {
5419
+ childToken: "0x1337bedc9d22ecbe766df105c9623922a27963ec",
5420
+ decimals: 18
5421
+ },
5422
+ "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
5423
+ childToken: "0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab",
5424
+ decimals: 18
5425
+ },
5426
+ "0x544c42fbb96b39b21df61cf322b5edc285ee7429": {
5427
+ childToken: "0x544c42fbb96b39b21df61cf322b5edc285ee7429",
5428
+ decimals: 18
5429
+ },
5430
+ "0x2c537e5624e4af88a7ae4060c022609376c8d0eb": {
5431
+ childToken: "0x564a341df6c126f90cf3ecb92120fd7190acb401",
5432
+ decimals: 6
5433
+ },
5434
+ "0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e": {
5435
+ childToken: "0x9eaac1b23d935365bd7b542fe22ceee2922f52dc",
5436
+ decimals: 18
5437
+ },
5438
+ "0x808507121b80c02388fad14726482e061b8da827": {
5439
+ childToken: "0xfb98b335551a418cd0737375a2ea0ded62ea213b",
5440
+ decimals: 18
5441
+ },
5442
+ "0x03ab458634910aad20ef5f1c8ee96f1d6ac54919": {
5443
+ childToken: "0x97cd1cfe2ed5712660bb6c14053c0ecb031bff7d",
5444
+ decimals: 18
5445
+ },
5446
+ "0x853d955acef822db058eb8505911ed77f175b99e": {
5447
+ childToken: "0xd24c2ad096400b6fbcd2ad8b24e7acbc21a1da64",
5448
+ decimals: 18
5449
+ },
5450
+ "0xe803178b48a0e560c2b19f3b3d4e504f79d229ce": {
5451
+ childToken: "0x590eb2920486486c2d9bb3eb651f73b81df87bcf",
5452
+ decimals: 18
5453
+ },
5454
+ "0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0": {
5455
+ childToken: "0x214db107654ff987ad859f34125307783fc8e387",
5456
+ decimals: 18
5457
+ },
5458
+ "0xaf5191b0de278c7286d6c7cc6ab6bb8a73ba2cd6": {
5459
+ childToken: "0x2f6f07cdcf3588944bf4c42ac74ff24bf56e7590",
5460
+ decimals: 18
5461
+ },
5462
+ "0xe0ad1806fd3e7edf6ff52fdb822432e847411033": {
5463
+ childToken: "0x3d8f74620857dd8ed6d0da02ceb13fd0ed8ba678",
5464
+ decimals: 18
5465
+ },
5466
+ "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599": {
5467
+ childToken: "0x50b7545627a5162f82a992c33b87adc75187b218",
5468
+ decimals: 8
5469
+ },
5470
+ "0x3301ee63fb29f863f2333bd4466acb46cd8323e6": {
5471
+ childToken: "0xcaf5191fc480f43e4df80106c7695eca56e48b18",
5472
+ decimals: 18
5473
+ },
5474
+ "0x5aa158404fed6b4730c13f49d3a7f820e14a636f": {
5475
+ childToken: "0xc685e8eddc9f078666794cbfcd8d8351bac404ef",
5476
+ decimals: 18
5477
+ },
5478
+ "0x0000000000085d4780b73119b644ae5ecd22b376": {
5479
+ childToken: "0x1c20e891bab6b1727d14da358fae2984ed9b59eb",
5480
+ decimals: 18
5481
+ },
5482
+ "0x4691937a7508860f876c9c0a2a617e7d9e945d4b": {
5483
+ childToken: "0xabc9547b534519ff73921b1fba6e672b5f58d083",
5484
+ decimals: 18
5485
+ },
5486
+ "0xc00e94cb662c3520282e6f5717214004a7f26888": {
5487
+ childToken: "0xc3048e19e76cb9a3aa9d77d8c03c29fc906e2437",
5488
+ decimals: 18
5489
+ },
5490
+ "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2": {
5491
+ childToken: "0x88128fd4b259552a9a1d457f435a6527aab72d42",
5492
+ decimals: 18
5493
+ },
5494
+ "0x090185f2135308bad17527004364ebcc2d37e5f6": {
5495
+ childToken: "0xce1bffbd5374dac86a2893119683f4911a2f7814",
5496
+ decimals: 18
5497
+ },
5498
+ "0xcc4304a31d09258b0029ea7fe63d032f52e44efe": {
5499
+ childToken: "0xc7b5d72c836e718cda8888eaf03707faef675079",
5500
+ decimals: 18
5501
+ },
5502
+ "0xd3ac016b1b8c80eeadde4d186a9138c9324e4189": {
5503
+ childToken: "0xd3ac016b1b8c80eeadde4d186a9138c9324e4189",
5504
+ decimals: 18
5505
+ },
5506
+ "0xb2cabf797bc907b049e4ccb5b84d13be3a8cfc21": {
5507
+ childToken: "0x00ee200df31b869a321b10400da10b561f3ee60d",
5508
+ decimals: 18
5509
+ },
5510
+ "0x6f9c26fa731c7ea4139fa669962cf8f1ce6c8b0b": {
5511
+ childToken: "0x2c69095d81305f1e3c6ed372336d407231624cea",
5512
+ decimals: 18
5513
+ },
5514
+ "0xcdb37a4fbc2da5b78aa4e41a432792f9533e85cc": {
5515
+ childToken: "0x0cbd6fadcf8096cc9a43d90b45f65826102e3ece",
5516
+ decimals: 18
5517
+ },
5518
+ "0xa64d5d1eb67748226d84812b45711453f1118c32": {
5519
+ childToken: "0xc11bf915db4b43714bc8d32bf83bf5ea53d40981",
5520
+ decimals: 9
5521
+ },
5522
+ "0x9ed7e4b1bff939ad473da5e7a218c771d1569456": {
5523
+ childToken: "0x9ed7e4b1bff939ad473da5e7a218c771d1569456",
5524
+ decimals: 6
5525
+ },
5526
+ "0x188fb5f5ae5bbe4154d5778f2bbb2fb985c94d25": {
5527
+ childToken: "0xccf719c44e2c36e919335692e89d22cf13d6aaeb",
5528
+ decimals: 18
5529
+ },
5530
+ "0x499568c250ab2a42292261d6121525d70691894b": {
5531
+ childToken: "0xa5acfeca5270bc9768633fbc86caa959b85ec8b7",
5532
+ decimals: 18
5533
+ },
5534
+ "0x45fdb1b92a649fb6a64ef1511d3ba5bf60044838": {
5535
+ childToken: "0xab05b04743e0aeaf9d2ca81e5d3b8385e4bf961e",
5536
+ decimals: 18
5537
+ },
5538
+ "0x7778360f035c589fce2f4ea5786cbd8b36e5396b": {
5539
+ childToken: "0x0ebd9537a25f56713e34c45b38f421a1e7191469",
5540
+ decimals: 18
5541
+ },
5542
+ "0x1d7ca62f6af49ec66f6680b8606e634e55ef22c1": {
5543
+ childToken: "0xf44fb887334fa17d2c5c0f970b5d320ab53ed557",
5544
+ decimals: 18
5545
+ },
5546
+ "0xf99d58e463a2e07e5692127302c20a191861b4d6": {
5547
+ childToken: "0xb44a9b6905af7c801311e8f4e76932ee959c663c",
5548
+ decimals: 18
5549
+ },
5550
+ "0x9fda7ceec4c18008096c2fe2b85f05dc300f94d0": {
5551
+ childToken: "0x595c8481c48894771ce8fade54ac6bf59093f9e8",
5552
+ decimals: 18
5553
+ },
5554
+ "0x8bbf1dccbedd5c70d8e793d432fb56b848dd1698": {
5555
+ childToken: "0x938fe3788222a74924e062120e7bfac829c719fb",
5556
+ decimals: 18
5557
+ },
5558
+ "0x3405a1bd46b85c5c029483fbecf2f3e611026e45": {
5559
+ childToken: "0xa384bc7cdc0a93e686da9e7b8c0807cd040f4e0b",
5560
+ decimals: 18
5561
+ },
5562
+ "0x16ba8efe847ebdfef99d399902ec29397d403c30": {
5563
+ childToken: "0x937e077abaea52d3abf879c9b9d3f2ebd15baa21",
5564
+ decimals: 18
5565
+ },
5566
+ "0x55af5865807b196bd0197e0902746f31fbccfa58": {
5567
+ childToken: "0xbd83010eb60f12112908774998f65761cf9f6f9a",
5568
+ decimals: 18
5569
+ },
5570
+ "0x9fb83c0635de2e815fd1c21b3a292277540c2e8d": {
5571
+ childToken: "0x73178fceb736a9d6c1a9ef1fe413f09cba2d4a68",
5572
+ decimals: 18
5573
+ },
5574
+ "0x45c2f8c9b4c0bdc76200448cc26c48ab6ffef83f": {
5575
+ childToken: "0xfc6da929c031162841370af240dec19099861d3b",
5576
+ decimals: 18
5577
+ },
5578
+ "0xbd100d061e120b2c67a24453cf6368e63f1be056": {
5579
+ childToken: "0xbd100d061e120b2c67a24453cf6368e63f1be056",
5580
+ decimals: 18
5581
+ },
5582
+ "0xe57425f1598f9b0d6219706b77f4b3da573a3695": {
5583
+ childToken: "0xb355f4f4cc84a9429a59d5c2b98d77016f7ec482",
5584
+ decimals: 18
5585
+ },
5586
+ "0xa693b19d2931d498c5b318df961919bb4aee87a5": {
5587
+ childToken: "0xb599c3590f42f8f995ecfa0f85d2980b76862fc1",
5588
+ decimals: 6
5589
+ },
5590
+ "0x9b17baadf0f21f03e35249e0e59723f34994f806": {
5591
+ childToken: "0xdebb1d6a2196f2335ad51fbde7ca587205889360",
5592
+ decimals: 18
5593
+ },
5594
+ "0xee9801669c6138e84bd50deb500827b776777d28": {
5595
+ childToken: "0xee9801669c6138e84bd50deb500827b776777d28",
5596
+ decimals: 18
5597
+ },
5598
+ "0xf655c8567e0f213e6c634cd2a68d992152161dc6": {
5599
+ childToken: "0x089d3daf549f99553c2182db24bc4336a4f0c824",
5600
+ decimals: 18
5601
+ },
5602
+ "0x19193f450086d0442157b852081976d41657ad56": {
5603
+ childToken: "0x771c01e1917b5ab5b791f7b96f0cd69e22f6dbcf",
5604
+ decimals: 18
5605
+ },
5606
+ "0xc17c30e98541188614df99239cabd40280810ca3": {
5607
+ childToken: "0xc17c30e98541188614df99239cabd40280810ca3",
5608
+ decimals: 18
5609
+ },
5610
+ "0x0c10bf8fcb7bf5412187a595ab97a3609160b5c6": {
5611
+ childToken: "0xb514cabd09ef5b169ed3fe0fa8dbd590741e81c2",
5612
+ decimals: 18
5613
+ },
5614
+ "0x9767203e89dcd34851240b3919d4900d3e5069f1": {
5615
+ childToken: "0x9767203e89dcd34851240b3919d4900d3e5069f1",
5616
+ decimals: 6
5617
+ },
5618
+ "0x7a5d3a9dcd33cb8d527f7b5f96eb4fef43d55636": {
5619
+ childToken: "0x02bfd11499847003de5f0f5aa081c43854d48815",
5620
+ decimals: 18
5621
+ },
5622
+ "0x5f018e73c185ab23647c82bd039e762813877f0e": {
5623
+ childToken: "0x9ad274e20a153451775ff29d546949a254c4a1bc",
5624
+ decimals: 18
5625
+ },
5626
+ "0x18a1ea69a50a85752b7bc204a2c45a95ce6e429d": {
5627
+ childToken: "0xf30c5083a1479865c9a8916dec6ddadd82e8907b",
5628
+ decimals: 18
5629
+ },
5630
+ "0x88536c9b2c4701b8db824e6a16829d5b5eb84440": {
5631
+ childToken: "0xb0a8e082e5f8d2a04e74372c1be47737d85a0e73",
5632
+ decimals: 9
5633
+ },
5634
+ "0xeeeeeb57642040be42185f49c52f7e9b38f8eeee": {
5635
+ childToken: "0xeeeeeb57642040be42185f49c52f7e9b38f8eeee",
5636
+ decimals: 18
5637
+ },
5638
+ "0x35609dc59e15d03c5c865507e1348fa5abb319a8": {
5639
+ childToken: "0x0b53b5da7d0f275c31a6a182622bdf02474af253",
5640
+ decimals: 8
5641
+ },
5642
+ "0x57b59f981730c6257df57cf6f0d98283749a9eeb": {
5643
+ childToken: "0x5f018e73c185ab23647c82bd039e762813877f0e",
5644
+ decimals: 18
5645
+ },
5646
+ "0x8d6cebd76f18e1558d4db88138e2defb3909fad6": {
5647
+ childToken: "0x3b55e45fd6bd7d4724f5c47e0d1bcaedd059263e",
5648
+ decimals: 18
5649
+ },
5650
+ "0x3b79a28264fc52c7b4cea90558aa0b162f7faf57": {
5651
+ childToken: "0x0da67235dd5787d67955420c84ca1cecd4e5bb3b",
5652
+ decimals: 18
5653
+ },
5654
+ "0x967fb0d760ed3ce53afe2f0a071674cccae73550": {
5655
+ childToken: "0x31c994ac062c1970c086260bc61babb708643fac",
5656
+ decimals: 18
5657
+ }
5658
+ };
5659
+
5660
+ var AvalancheMappingProvider = /*#__PURE__*/function () {
5661
+ function AvalancheMappingProvider() {}
5662
+
5663
+ var _proto = AvalancheMappingProvider.prototype;
5664
+
5665
+ _proto.provide = /*#__PURE__*/function () {
5666
+ var _provide = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
5667
+ var tokens;
5668
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
5669
+ while (1) {
5670
+ switch (_context.prev = _context.next) {
5671
+ case 0:
5672
+ tokens = avaxMappings;
5673
+ return _context.abrupt("return", tokens);
5674
+
5675
+ case 2:
5676
+ case "end":
5677
+ return _context.stop();
5678
+ }
5679
+ }
5680
+ }, _callee);
5681
+ }));
5682
+
5683
+ function provide() {
5684
+ return _provide.apply(this, arguments);
5685
+ }
5686
+
5687
+ return provide;
5688
+ }();
5689
+
5690
+ return AvalancheMappingProvider;
5691
+ }();
5692
+
5081
5693
  var web3 = /*#__PURE__*/new Web3__default["default"](); // chains we support fetching mappings for (can be different than the l2ChainIds arg for buildList)
5082
5694
 
5083
- var SUPPORTED_L2_CHAINS = [ChainId.ARBITRUM_ONE, ChainId.POLYGON, ChainId.OPTIMISM, ChainId.BNB];
5695
+ var CHAINS_WITH_MAPPING_PROVIDERS = [ChainId.ARBITRUM_ONE, ChainId.POLYGON, ChainId.OPTIMISM, ChainId.BNB, ChainId.AVALANCHE];
5084
5696
  function buildList(_x, _x2) {
5085
5697
  return _buildList.apply(this, arguments);
5086
5698
  } // using a symbol lookup contract call to check whether the token exists on the L2
@@ -5269,6 +5881,9 @@ function getMappingProvider(chainId, l1TokenList) {
5269
5881
  case ChainId.BNB:
5270
5882
  return new BnbMappingProvider();
5271
5883
 
5884
+ case ChainId.AVALANCHE:
5885
+ return new AvalancheMappingProvider();
5886
+
5272
5887
  default:
5273
5888
  throw new Error("Chain " + chainId + " not supported for fetching mappings.");
5274
5889
  }
@@ -5298,7 +5913,7 @@ function _generateTokenMappings() {
5298
5913
 
5299
5914
  chainId = _step2.value;
5300
5915
 
5301
- if (!SUPPORTED_L2_CHAINS.includes(chainId)) {
5916
+ if (!CHAINS_WITH_MAPPING_PROVIDERS.includes(chainId)) {
5302
5917
  _context5.next = 8;
5303
5918
  break;
5304
5919
  }
@@ -5340,9 +5955,9 @@ function _getChildTokenDetails() {
5340
5955
  switch (_context6.prev = _context6.next) {
5341
5956
  case 0:
5342
5957
  existingMapping = l1Token == null ? void 0 : (_l1Token$extensions = l1Token.extensions) == null ? void 0 : (_l1Token$extensions$b = _l1Token$extensions.bridgeInfo) == null ? void 0 : (_l1Token$extensions$b2 = _l1Token$extensions$b[chainId]) == null ? void 0 : _l1Token$extensions$b2.tokenAddress; // use the externally fetched mappings if manual entry doesn't exist for the token/chain mapping
5343
- // and the given L2 chain is supported for fetching mappings
5958
+ // and the given chain is supported for fetching mappings
5344
5959
 
5345
- if (!(SUPPORTED_L2_CHAINS.includes(chainId) && existingMapping === undefined)) {
5960
+ if (!(CHAINS_WITH_MAPPING_PROVIDERS.includes(chainId) && existingMapping === undefined)) {
5346
5961
  _context6.next = 14;
5347
5962
  break;
5348
5963
  }
@@ -5366,7 +5981,7 @@ function _getChildTokenDetails() {
5366
5981
  case 10:
5367
5982
  _context6.t2 = _context6.t1;
5368
5983
  childTokenValid = (0, _context6.t0)(_context6.t2);
5369
- decimals = childToken && chainId === ChainId.BNB ? childToken.decimals : undefined;
5984
+ decimals = childToken && (chainId === ChainId.BNB || chainId === ChainId.AVALANCHE) ? childToken.decimals : undefined;
5370
5985
  return _context6.abrupt("return", {
5371
5986
  childTokenValid: childTokenValid,
5372
5987
  childTokenAddress: childTokenAddress,
@@ -5479,7 +6094,7 @@ function _chainify() {
5479
6094
 
5480
6095
  case 2:
5481
6096
  l1TokenList = _context.sent;
5482
- l2Chains = [ChainId.POLYGON, ChainId.ARBITRUM_ONE, ChainId.OPTIMISM, ChainId.CELO, ChainId.BNB];
6097
+ l2Chains = [ChainId.POLYGON, ChainId.ARBITRUM_ONE, ChainId.OPTIMISM, ChainId.CELO, ChainId.BNB, ChainId.AVALANCHE];
5483
6098
  _context.next = 6;
5484
6099
  return chainifyTokenList(l2Chains, l1TokenListOrPathOrUrl);
5485
6100