@ape.swap/bonds-sdk 3.0.14-test.2 → 3.0.14-test.4

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/main.js CHANGED
@@ -17821,10 +17821,10 @@ var types = {};
17821
17821
  _16,
17822
17822
  _17,
17823
17823
  _18,
17824
- _19;
17825
- var _20,
17826
- _21,
17827
- _22,
17824
+ _19,
17825
+ _20,
17826
+ _21;
17827
+ var _22,
17828
17828
  _23,
17829
17829
  _24,
17830
17830
  _25,
@@ -17887,7 +17887,11 @@ var types = {};
17887
17887
  _82,
17888
17888
  _83,
17889
17889
  _84,
17890
- _85;
17890
+ _85,
17891
+ _86,
17892
+ _87,
17893
+ _88,
17894
+ _89;
17891
17895
  Object.defineProperty(exports, '__esModule', { value: true });
17892
17896
  exports.dexToZapMapping =
17893
17897
  exports.defaultDexFactories =
@@ -17968,6 +17972,7 @@ var types = {};
17968
17972
  LiquidityDex['UniswapV3'] = 'UniswapV3';
17969
17973
  LiquidityDex['Curve'] = 'Curve';
17970
17974
  LiquidityDex['Wagmi'] = 'Wagmi';
17975
+ LiquidityDex['LFJ'] = 'LFJ';
17971
17976
  LiquidityDex['External'] = 'External';
17972
17977
  //Linea
17973
17978
  LiquidityDex['Spartadex'] = 'Spartadex';
@@ -17986,7 +17991,6 @@ var types = {};
17986
17991
  //ARBITRUM
17987
17992
  LiquidityDex['CamelotV2'] = 'Camelotv2';
17988
17993
  //AVALANCHE
17989
- LiquidityDex['LFJ'] = 'LFJ';
17990
17994
  LiquidityDex['Pharaoh'] = 'Pharaoh';
17991
17995
  LiquidityDex['Pangolin'] = 'Pangolin';
17992
17996
  //BLAST
@@ -18350,270 +18354,290 @@ var types = {};
18350
18354
  protocol: Protocols.V3,
18351
18355
  }),
18352
18356
  _p)),
18357
+ (_a[ChainId.MONAD_TESTNET] =
18358
+ ((_q = {}),
18359
+ (_q[LiquidityDex.PancakeSwapV2] = {
18360
+ factory: '0x82438CE666d9403e488bA720c7424434e8Aa47CD',
18361
+ protocol: Protocols.V2,
18362
+ }),
18363
+ (_q[LiquidityDex.LFJ] = {
18364
+ factory: '0xe32D45C2B1c17a0fE0De76f1ebFA7c44B7810034',
18365
+ protocol: Protocols.V2,
18366
+ }),
18367
+ _q)),
18353
18368
  _a);
18354
18369
  exports.defaultDexFactories =
18355
- ((_q = {}),
18356
- (_q[ChainId.MAINNET] =
18357
- ((_r = {}),
18358
- (_r[Protocols.V2] =
18359
- (_21 = (_20 = exports.dexFactories[ChainId.MAINNET]) === null || _20 === void 0 ? void 0 : _20.ApeSwapV2) ===
18360
- null || _21 === void 0
18361
- ? void 0
18362
- : _21.factory),
18363
- (_r[Protocols.V3] =
18364
- (_23 = (_22 = exports.dexFactories[ChainId.MAINNET]) === null || _22 === void 0 ? void 0 : _22.UniswapV3) ===
18370
+ ((_r = {}),
18371
+ (_r[ChainId.MAINNET] =
18372
+ ((_s = {}),
18373
+ (_s[Protocols.V2] =
18374
+ (_23 = (_22 = exports.dexFactories[ChainId.MAINNET]) === null || _22 === void 0 ? void 0 : _22.ApeSwapV2) ===
18365
18375
  null || _23 === void 0
18366
18376
  ? void 0
18367
18377
  : _23.factory),
18368
- _r)),
18369
- (_q[ChainId.BSC] =
18370
- ((_s = {}),
18371
- (_s[Protocols.V2] =
18372
- (_25 = (_24 = exports.dexFactories[ChainId.BSC]) === null || _24 === void 0 ? void 0 : _24.ApeSwapV2) === null ||
18373
- _25 === void 0
18378
+ (_s[Protocols.V3] =
18379
+ (_25 = (_24 = exports.dexFactories[ChainId.MAINNET]) === null || _24 === void 0 ? void 0 : _24.UniswapV3) ===
18380
+ null || _25 === void 0
18374
18381
  ? void 0
18375
18382
  : _25.factory),
18376
- (_s[Protocols.V3] =
18377
- (_27 = (_26 = exports.dexFactories[ChainId.BSC]) === null || _26 === void 0 ? void 0 : _26.UniswapV3) === null ||
18383
+ _s)),
18384
+ (_r[ChainId.BSC] =
18385
+ ((_t = {}),
18386
+ (_t[Protocols.V2] =
18387
+ (_27 = (_26 = exports.dexFactories[ChainId.BSC]) === null || _26 === void 0 ? void 0 : _26.ApeSwapV2) === null ||
18378
18388
  _27 === void 0
18379
18389
  ? void 0
18380
18390
  : _27.factory),
18381
- (_s[Protocols.Algebra] =
18382
- (_29 = (_28 = exports.dexFactories[ChainId.BSC]) === null || _28 === void 0 ? void 0 : _28.Algebra) === null ||
18391
+ (_t[Protocols.V3] =
18392
+ (_29 = (_28 = exports.dexFactories[ChainId.BSC]) === null || _28 === void 0 ? void 0 : _28.UniswapV3) === null ||
18383
18393
  _29 === void 0
18384
18394
  ? void 0
18385
18395
  : _29.factory),
18386
- (_s[Protocols.Solidly] =
18387
- (_31 = (_30 = exports.dexFactories[ChainId.BSC]) === null || _30 === void 0 ? void 0 : _30.ThenaV1) === null ||
18396
+ (_t[Protocols.Algebra] =
18397
+ (_31 = (_30 = exports.dexFactories[ChainId.BSC]) === null || _30 === void 0 ? void 0 : _30.Algebra) === null ||
18388
18398
  _31 === void 0
18389
18399
  ? void 0
18390
18400
  : _31.factory),
18391
- _s)),
18392
- (_q[ChainId.MATIC] =
18393
- ((_t = {}),
18394
- (_t[Protocols.V2] =
18395
- (_33 = (_32 = exports.dexFactories[ChainId.MATIC]) === null || _32 === void 0 ? void 0 : _32.ApeSwapV2) ===
18396
- null || _33 === void 0
18401
+ (_t[Protocols.Solidly] =
18402
+ (_33 = (_32 = exports.dexFactories[ChainId.BSC]) === null || _32 === void 0 ? void 0 : _32.ThenaV1) === null ||
18403
+ _33 === void 0
18397
18404
  ? void 0
18398
18405
  : _33.factory),
18399
- (_t[Protocols.V3] =
18400
- (_35 = (_34 = exports.dexFactories[ChainId.MATIC]) === null || _34 === void 0 ? void 0 : _34.UniswapV3) ===
18406
+ _t)),
18407
+ (_r[ChainId.MATIC] =
18408
+ ((_u = {}),
18409
+ (_u[Protocols.V2] =
18410
+ (_35 = (_34 = exports.dexFactories[ChainId.MATIC]) === null || _34 === void 0 ? void 0 : _34.ApeSwapV2) ===
18401
18411
  null || _35 === void 0
18402
18412
  ? void 0
18403
18413
  : _35.factory),
18404
- (_t[Protocols.Algebra] =
18405
- (_37 = (_36 = exports.dexFactories[ChainId.MATIC]) === null || _36 === void 0 ? void 0 : _36.Algebra) === null ||
18406
- _37 === void 0
18414
+ (_u[Protocols.V3] =
18415
+ (_37 = (_36 = exports.dexFactories[ChainId.MATIC]) === null || _36 === void 0 ? void 0 : _36.UniswapV3) ===
18416
+ null || _37 === void 0
18407
18417
  ? void 0
18408
18418
  : _37.factory),
18409
- _t)),
18410
- (_q[ChainId.ARBITRUM] =
18411
- ((_u = {}),
18412
- (_u[Protocols.V2] =
18413
- (_39 = (_38 = exports.dexFactories[ChainId.ARBITRUM]) === null || _38 === void 0 ? void 0 : _38.ApeSwapV2) ===
18414
- null || _39 === void 0
18419
+ (_u[Protocols.Algebra] =
18420
+ (_39 = (_38 = exports.dexFactories[ChainId.MATIC]) === null || _38 === void 0 ? void 0 : _38.Algebra) === null ||
18421
+ _39 === void 0
18415
18422
  ? void 0
18416
18423
  : _39.factory),
18417
- (_u[Protocols.V3] =
18418
- (_41 = (_40 = exports.dexFactories[ChainId.ARBITRUM]) === null || _40 === void 0 ? void 0 : _40.UniswapV3) ===
18424
+ _u)),
18425
+ (_r[ChainId.ARBITRUM] =
18426
+ ((_v = {}),
18427
+ (_v[Protocols.V2] =
18428
+ (_41 = (_40 = exports.dexFactories[ChainId.ARBITRUM]) === null || _40 === void 0 ? void 0 : _40.ApeSwapV2) ===
18419
18429
  null || _41 === void 0
18420
18430
  ? void 0
18421
18431
  : _41.factory),
18422
- (_u[Protocols.Algebra] =
18423
- (_43 = (_42 = exports.dexFactories[ChainId.ARBITRUM]) === null || _42 === void 0 ? void 0 : _42.Algebra) ===
18432
+ (_v[Protocols.V3] =
18433
+ (_43 = (_42 = exports.dexFactories[ChainId.ARBITRUM]) === null || _42 === void 0 ? void 0 : _42.UniswapV3) ===
18424
18434
  null || _43 === void 0
18425
18435
  ? void 0
18426
18436
  : _43.factory),
18427
- (_u[Protocols.Curve] =
18428
- (_45 = (_44 = exports.dexFactories[ChainId.ARBITRUM]) === null || _44 === void 0 ? void 0 : _44.Curve) === null ||
18429
- _45 === void 0
18437
+ (_v[Protocols.Algebra] =
18438
+ (_45 = (_44 = exports.dexFactories[ChainId.ARBITRUM]) === null || _44 === void 0 ? void 0 : _44.Algebra) ===
18439
+ null || _45 === void 0
18430
18440
  ? void 0
18431
18441
  : _45.factory),
18432
- _u)),
18433
- (_q[ChainId.LINEA] =
18434
- ((_v = {}),
18435
- (_v[Protocols.V2] =
18436
- (_47 = (_46 = exports.dexFactories[ChainId.LINEA]) === null || _46 === void 0 ? void 0 : _46.Spartadex) ===
18437
- null || _47 === void 0
18442
+ (_v[Protocols.Curve] =
18443
+ (_47 = (_46 = exports.dexFactories[ChainId.ARBITRUM]) === null || _46 === void 0 ? void 0 : _46.Curve) === null ||
18444
+ _47 === void 0
18438
18445
  ? void 0
18439
18446
  : _47.factory),
18440
- (_v[Protocols.V3] =
18441
- (_49 = (_48 = exports.dexFactories[ChainId.LINEA]) === null || _48 === void 0 ? void 0 : _48.Nile) === null ||
18442
- _49 === void 0
18447
+ _v)),
18448
+ (_r[ChainId.LINEA] =
18449
+ ((_w = {}),
18450
+ (_w[Protocols.V2] =
18451
+ (_49 = (_48 = exports.dexFactories[ChainId.LINEA]) === null || _48 === void 0 ? void 0 : _48.Spartadex) ===
18452
+ null || _49 === void 0
18443
18453
  ? void 0
18444
18454
  : _49.factory),
18445
- (_v[Protocols.Algebra] =
18446
- (_51 = (_50 = exports.dexFactories[ChainId.LINEA]) === null || _50 === void 0 ? void 0 : _50.Algebra) === null ||
18455
+ (_w[Protocols.V3] =
18456
+ (_51 = (_50 = exports.dexFactories[ChainId.LINEA]) === null || _50 === void 0 ? void 0 : _50.Nile) === null ||
18447
18457
  _51 === void 0
18448
18458
  ? void 0
18449
18459
  : _51.factory),
18450
- (_v[Protocols.Solidly] =
18451
- (_53 = (_52 = exports.dexFactories[ChainId.LINEA]) === null || _52 === void 0 ? void 0 : _52.Lynex) === null ||
18460
+ (_w[Protocols.Algebra] =
18461
+ (_53 = (_52 = exports.dexFactories[ChainId.LINEA]) === null || _52 === void 0 ? void 0 : _52.Algebra) === null ||
18452
18462
  _53 === void 0
18453
18463
  ? void 0
18454
18464
  : _53.factory),
18455
- (_v[Protocols.XFAI] =
18456
- (_55 = (_54 = exports.dexFactories[ChainId.LINEA]) === null || _54 === void 0 ? void 0 : _54.XFAI) === null ||
18465
+ (_w[Protocols.Solidly] =
18466
+ (_55 = (_54 = exports.dexFactories[ChainId.LINEA]) === null || _54 === void 0 ? void 0 : _54.Lynex) === null ||
18457
18467
  _55 === void 0
18458
18468
  ? void 0
18459
18469
  : _55.factory),
18460
- _v)),
18461
- (_q[ChainId.LIGHTLINK] =
18462
- ((_w = {}),
18463
- (_w[Protocols.V3] =
18464
- (_57 = (_56 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _56 === void 0 ? void 0 : _56.Elektrik) ===
18465
- null || _57 === void 0
18470
+ (_w[Protocols.XFAI] =
18471
+ (_57 = (_56 = exports.dexFactories[ChainId.LINEA]) === null || _56 === void 0 ? void 0 : _56.XFAI) === null ||
18472
+ _57 === void 0
18466
18473
  ? void 0
18467
18474
  : _57.factory),
18468
18475
  _w)),
18469
- (_q[ChainId.BASE] =
18476
+ (_r[ChainId.LIGHTLINK] =
18470
18477
  ((_x = {}),
18471
- (_x[Protocols.V2] =
18472
- (_59 = (_58 = exports.dexFactories[ChainId.BASE]) === null || _58 === void 0 ? void 0 : _58.SmarDex) === null ||
18473
- _59 === void 0
18478
+ (_x[Protocols.V3] =
18479
+ (_59 = (_58 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _58 === void 0 ? void 0 : _58.Elektrik) ===
18480
+ null || _59 === void 0
18474
18481
  ? void 0
18475
18482
  : _59.factory),
18476
- (_x[Protocols.V3] =
18477
- (_61 = (_60 = exports.dexFactories[ChainId.BASE]) === null || _60 === void 0 ? void 0 : _60.UniswapV3) === null ||
18483
+ _x)),
18484
+ (_r[ChainId.BASE] =
18485
+ ((_y = {}),
18486
+ (_y[Protocols.V2] =
18487
+ (_61 = (_60 = exports.dexFactories[ChainId.BASE]) === null || _60 === void 0 ? void 0 : _60.SmarDex) === null ||
18478
18488
  _61 === void 0
18479
18489
  ? void 0
18480
18490
  : _61.factory),
18481
- (_x[Protocols.Algebra] =
18482
- (_63 = (_62 = exports.dexFactories[ChainId.BASE]) === null || _62 === void 0 ? void 0 : _62.Algebra) === null ||
18491
+ (_y[Protocols.V3] =
18492
+ (_63 = (_62 = exports.dexFactories[ChainId.BASE]) === null || _62 === void 0 ? void 0 : _62.UniswapV3) === null ||
18483
18493
  _63 === void 0
18484
18494
  ? void 0
18485
18495
  : _63.factory),
18486
- (_x[Protocols.Solidly] =
18487
- (_65 = (_64 = exports.dexFactories[ChainId.BASE]) === null || _64 === void 0 ? void 0 : _64.Aerodrome) === null ||
18496
+ (_y[Protocols.Algebra] =
18497
+ (_65 = (_64 = exports.dexFactories[ChainId.BASE]) === null || _64 === void 0 ? void 0 : _64.Algebra) === null ||
18488
18498
  _65 === void 0
18489
18499
  ? void 0
18490
18500
  : _65.factory),
18491
- _x)),
18492
- (_q[ChainId.IOTA] =
18493
- ((_y = {}),
18494
- (_y[Protocols.V2] =
18495
- (_67 = (_66 = exports.dexFactories[ChainId.IOTA]) === null || _66 === void 0 ? void 0 : _66.MagicSea) === null ||
18501
+ (_y[Protocols.Solidly] =
18502
+ (_67 = (_66 = exports.dexFactories[ChainId.BASE]) === null || _66 === void 0 ? void 0 : _66.Aerodrome) === null ||
18496
18503
  _67 === void 0
18497
18504
  ? void 0
18498
18505
  : _67.factory),
18499
18506
  _y)),
18500
- (_q[ChainId.AVAX] =
18507
+ (_r[ChainId.IOTA] =
18501
18508
  ((_z = {}),
18502
18509
  (_z[Protocols.V2] =
18503
- (_69 = (_68 = exports.dexFactories[ChainId.AVAX]) === null || _68 === void 0 ? void 0 : _68.LFJ) === null ||
18510
+ (_69 = (_68 = exports.dexFactories[ChainId.IOTA]) === null || _68 === void 0 ? void 0 : _68.MagicSea) === null ||
18504
18511
  _69 === void 0
18505
18512
  ? void 0
18506
18513
  : _69.factory),
18507
- (_z[Protocols.V3] =
18508
- (_71 = (_70 = exports.dexFactories[ChainId.AVAX]) === null || _70 === void 0 ? void 0 : _70.Pharaoh) === null ||
18509
- _71 === void 0
18510
- ? void 0
18511
- : _71.factory),
18512
18514
  _z)),
18513
- (_q[ChainId.BLAST] =
18515
+ (_r[ChainId.AVAX] =
18514
18516
  ((_0 = {}),
18515
18517
  (_0[Protocols.V2] =
18516
- (_73 = (_72 = exports.dexFactories[ChainId.BLAST]) === null || _72 === void 0 ? void 0 : _72.ThrusterV2_03) ===
18517
- null || _73 === void 0
18518
+ (_71 = (_70 = exports.dexFactories[ChainId.AVAX]) === null || _70 === void 0 ? void 0 : _70.LFJ) === null ||
18519
+ _71 === void 0
18518
18520
  ? void 0
18519
- : _73.factory),
18521
+ : _71.factory),
18520
18522
  (_0[Protocols.V3] =
18521
- (_75 = (_74 = exports.dexFactories[ChainId.BLAST]) === null || _74 === void 0 ? void 0 : _74.ThrusterV3) ===
18522
- null || _75 === void 0
18523
+ (_73 = (_72 = exports.dexFactories[ChainId.AVAX]) === null || _72 === void 0 ? void 0 : _72.Pharaoh) === null ||
18524
+ _73 === void 0
18523
18525
  ? void 0
18524
- : _75.factory),
18526
+ : _73.factory),
18525
18527
  _0)),
18526
- (_q[ChainId.SINGULARITY_TESTNET] =
18528
+ (_r[ChainId.BLAST] =
18527
18529
  ((_1 = {}),
18528
18530
  (_1[Protocols.V2] =
18529
- (_77 =
18530
- (_76 = exports.dexFactories[ChainId.SINGULARITY_TESTNET]) === null || _76 === void 0 ? void 0 : _76.Citea) ===
18531
+ (_75 = (_74 = exports.dexFactories[ChainId.BLAST]) === null || _74 === void 0 ? void 0 : _74.ThrusterV2_03) ===
18532
+ null || _75 === void 0
18533
+ ? void 0
18534
+ : _75.factory),
18535
+ (_1[Protocols.V3] =
18536
+ (_77 = (_76 = exports.dexFactories[ChainId.BLAST]) === null || _76 === void 0 ? void 0 : _76.ThrusterV3) ===
18531
18537
  null || _77 === void 0
18532
18538
  ? void 0
18533
18539
  : _77.factory),
18534
18540
  _1)),
18535
- (_q[ChainId.CROSSFI] =
18541
+ (_r[ChainId.SINGULARITY_TESTNET] =
18536
18542
  ((_2 = {}),
18537
18543
  (_2[Protocols.V2] =
18538
- (_79 = (_78 = exports.dexFactories[ChainId.CROSSFI]) === null || _78 === void 0 ? void 0 : _78.XSwap) === null ||
18539
- _79 === void 0
18544
+ (_79 =
18545
+ (_78 = exports.dexFactories[ChainId.SINGULARITY_TESTNET]) === null || _78 === void 0 ? void 0 : _78.Citea) ===
18546
+ null || _79 === void 0
18540
18547
  ? void 0
18541
18548
  : _79.factory),
18542
18549
  _2)),
18543
- (_q[ChainId.SONIC] =
18550
+ (_r[ChainId.CROSSFI] =
18544
18551
  ((_3 = {}),
18545
- (_3[Protocols.Solidly] =
18546
- (_81 = (_80 = exports.dexFactories[ChainId.SONIC]) === null || _80 === void 0 ? void 0 : _80.ShadowExchange) ===
18547
- null || _81 === void 0
18552
+ (_3[Protocols.V2] =
18553
+ (_81 = (_80 = exports.dexFactories[ChainId.CROSSFI]) === null || _80 === void 0 ? void 0 : _80.XSwap) === null ||
18554
+ _81 === void 0
18548
18555
  ? void 0
18549
18556
  : _81.factory),
18550
- (_3[Protocols.V3] =
18551
- (_83 = (_82 = exports.dexFactories[ChainId.SONIC]) === null || _82 === void 0 ? void 0 : _82.Wagmi) === null ||
18552
- _83 === void 0
18557
+ _3)),
18558
+ (_r[ChainId.SONIC] =
18559
+ ((_4 = {}),
18560
+ (_4[Protocols.Solidly] =
18561
+ (_83 = (_82 = exports.dexFactories[ChainId.SONIC]) === null || _82 === void 0 ? void 0 : _82.ShadowExchange) ===
18562
+ null || _83 === void 0
18553
18563
  ? void 0
18554
18564
  : _83.factory),
18555
- (_3[Protocols.AlgebraIntegral] =
18556
- (_85 =
18557
- (_84 = exports.dexFactories[ChainId.SONIC]) === null || _84 === void 0 ? void 0 : _84.SwapXAlgebraIntegral) ===
18558
- null || _85 === void 0
18565
+ (_4[Protocols.V3] =
18566
+ (_85 = (_84 = exports.dexFactories[ChainId.SONIC]) === null || _84 === void 0 ? void 0 : _84.Wagmi) === null ||
18567
+ _85 === void 0
18559
18568
  ? void 0
18560
18569
  : _85.factory),
18561
- _3)),
18562
- _q);
18563
- exports.dexToZapMapping =
18564
- ((_4 = {}),
18565
- (_4[LiquidityDex.ApeSwapV2] =
18570
+ (_4[Protocols.AlgebraIntegral] =
18571
+ (_87 =
18572
+ (_86 = exports.dexFactories[ChainId.SONIC]) === null || _86 === void 0 ? void 0 : _86.SwapXAlgebraIntegral) ===
18573
+ null || _87 === void 0
18574
+ ? void 0
18575
+ : _87.factory),
18576
+ _4)),
18577
+ (_r[ChainId.MONAD_TESTNET] =
18566
18578
  ((_5 = {}),
18567
- (_5[ChainId.BSC] = ZapVersion.SoulZap),
18568
- (_5[ChainId.BSC_TESTNET] = ZapVersion.ZapV1),
18569
- (_5[ChainId.MATIC] = ZapVersion.ZapV1),
18570
- (_5[ChainId.MATIC_TESTNET] = ZapVersion.ZapV1),
18571
- (_5[ChainId.MAINNET] = ZapVersion.ZapV1),
18572
- (_5[ChainId.ARBITRUM] = ZapVersion.External),
18573
- (_5[ChainId.TLOS] = ZapVersion.ZapV1),
18579
+ (_5[Protocols.V2] =
18580
+ (_89 =
18581
+ (_88 = exports.dexFactories[ChainId.MONAD_TESTNET]) === null || _88 === void 0 ? void 0 : _88.PancakeSwapV2) ===
18582
+ null || _89 === void 0
18583
+ ? void 0
18584
+ : _89.factory),
18574
18585
  _5)),
18575
- (_4[LiquidityDex.Algebra] =
18576
- ((_6 = {}),
18577
- (_6[ChainId.BSC] = ZapVersion.SoulZapApi),
18578
- (_6[ChainId.MATIC] = ZapVersion.SoulZapApi),
18579
- (_6[ChainId.LINEA] = ZapVersion.SoulZapApi),
18580
- _6)),
18581
- (_4[LiquidityDex.PancakeSwapV2] =
18582
- ((_7 = {}), (_7[ChainId.BSC] = ZapVersion.SoulZap), (_7[ChainId.MAINNET] = ZapVersion.External), _7)),
18583
- (_4[LiquidityDex.QuickswapV2] = ((_8 = {}), (_8[ChainId.MATIC] = ZapVersion.SoulZap), _8)),
18584
- (_4[LiquidityDex.ApeSwapV3] = {}),
18585
- (_4[LiquidityDex.UniswapV3] =
18586
- ((_9 = {}), (_9[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), (_9[ChainId.MATIC] = ZapVersion.SoulZapApi), _9)),
18587
- (_4[LiquidityDex.ThenaV1] = ((_10 = {}), (_10[ChainId.BSC] = ZapVersion.SoulZapApi), _10)),
18588
- (_4[LiquidityDex.UniswapV2] = ((_11 = {}), (_11[ChainId.BASE] = ZapVersion.SoulZapApi), _11)),
18589
- (_4[LiquidityDex.PancakeSwapV3] = {}),
18590
- (_4[LiquidityDex.External] = {}),
18591
- (_4[LiquidityDex.Spartadex] = {}),
18592
- (_4[LiquidityDex.Nile] = {}),
18593
- (_4[LiquidityDex.XFAI] = {}),
18594
- (_4[LiquidityDex.Lynex] = {}),
18595
- (_4[LiquidityDex.Metavault] = {}),
18596
- (_4[LiquidityDex.Elektrik] = {}),
18597
- (_4[LiquidityDex.SushiSwapV3] = {}),
18598
- (_4[LiquidityDex.Synthswap] = {}),
18599
- (_4[LiquidityDex.Aerodrome] = ((_12 = {}), (_12[ChainId.BASE] = ZapVersion.SoulZapApi), _12)),
18600
- (_4[LiquidityDex.SmarDex] = {}),
18601
- (_4[LiquidityDex.MagicSea] = ((_13 = {}), (_13[ChainId.IOTA] = ZapVersion.External), _13)),
18602
- (_4[LiquidityDex.Wagmi] = ((_14 = {}), (_14[ChainId.IOTA] = ZapVersion.External), _14)),
18603
- (_4[LiquidityDex.CamelotV2] = ((_15 = {}), (_15[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), _15)),
18604
- (_4[LiquidityDex.LFJ] = ((_16 = {}), (_16[ChainId.AVAX] = ZapVersion.SoulZapApi), _16)),
18605
- (_4[LiquidityDex.Pharaoh] = {}),
18606
- (_4[LiquidityDex.Pangolin] = ((_17 = {}), (_17[ChainId.AVAX] = ZapVersion.SoulZapApi), _17)),
18607
- (_4[LiquidityDex.Curve] = {}),
18608
- (_4[LiquidityDex.ThrusterV2_03] = ((_18 = {}), (_18[ChainId.BLAST] = ZapVersion.SoulZapApi), _18)),
18609
- (_4[LiquidityDex.ThrusterV2_1] = ((_19 = {}), (_19[ChainId.BLAST] = ZapVersion.SoulZapApi), _19)),
18610
- (_4[LiquidityDex.ThrusterV3] = {}),
18611
- (_4[LiquidityDex.Citea] = {}),
18612
- (_4[LiquidityDex.XSwap] = {}),
18613
- (_4[LiquidityDex.ShadowExchange] = {}),
18614
- (_4[LiquidityDex.SwapX] = {}),
18615
- (_4[LiquidityDex.SwapXAlgebraIntegral] = {}),
18616
- _4);
18586
+ _r);
18587
+ exports.dexToZapMapping =
18588
+ ((_6 = {}),
18589
+ (_6[LiquidityDex.ApeSwapV2] =
18590
+ ((_7 = {}),
18591
+ (_7[ChainId.BSC] = ZapVersion.SoulZap),
18592
+ (_7[ChainId.BSC_TESTNET] = ZapVersion.ZapV1),
18593
+ (_7[ChainId.MATIC] = ZapVersion.ZapV1),
18594
+ (_7[ChainId.MATIC_TESTNET] = ZapVersion.ZapV1),
18595
+ (_7[ChainId.MAINNET] = ZapVersion.ZapV1),
18596
+ (_7[ChainId.ARBITRUM] = ZapVersion.External),
18597
+ (_7[ChainId.TLOS] = ZapVersion.ZapV1),
18598
+ _7)),
18599
+ (_6[LiquidityDex.Algebra] =
18600
+ ((_8 = {}),
18601
+ (_8[ChainId.BSC] = ZapVersion.SoulZapApi),
18602
+ (_8[ChainId.MATIC] = ZapVersion.SoulZapApi),
18603
+ (_8[ChainId.LINEA] = ZapVersion.SoulZapApi),
18604
+ _8)),
18605
+ (_6[LiquidityDex.PancakeSwapV2] =
18606
+ ((_9 = {}), (_9[ChainId.BSC] = ZapVersion.SoulZap), (_9[ChainId.MAINNET] = ZapVersion.External), _9)),
18607
+ (_6[LiquidityDex.QuickswapV2] = ((_10 = {}), (_10[ChainId.MATIC] = ZapVersion.SoulZap), _10)),
18608
+ (_6[LiquidityDex.ApeSwapV3] = {}),
18609
+ (_6[LiquidityDex.UniswapV3] =
18610
+ ((_11 = {}), (_11[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), (_11[ChainId.MATIC] = ZapVersion.SoulZapApi), _11)),
18611
+ (_6[LiquidityDex.ThenaV1] = ((_12 = {}), (_12[ChainId.BSC] = ZapVersion.SoulZapApi), _12)),
18612
+ (_6[LiquidityDex.UniswapV2] = ((_13 = {}), (_13[ChainId.BASE] = ZapVersion.SoulZapApi), _13)),
18613
+ (_6[LiquidityDex.PancakeSwapV3] = {}),
18614
+ (_6[LiquidityDex.External] = {}),
18615
+ (_6[LiquidityDex.Spartadex] = {}),
18616
+ (_6[LiquidityDex.Nile] = {}),
18617
+ (_6[LiquidityDex.XFAI] = {}),
18618
+ (_6[LiquidityDex.Lynex] = {}),
18619
+ (_6[LiquidityDex.Metavault] = {}),
18620
+ (_6[LiquidityDex.Elektrik] = {}),
18621
+ (_6[LiquidityDex.SushiSwapV3] = {}),
18622
+ (_6[LiquidityDex.Synthswap] = {}),
18623
+ (_6[LiquidityDex.Aerodrome] = ((_14 = {}), (_14[ChainId.BASE] = ZapVersion.SoulZapApi), _14)),
18624
+ (_6[LiquidityDex.SmarDex] = {}),
18625
+ (_6[LiquidityDex.MagicSea] = ((_15 = {}), (_15[ChainId.IOTA] = ZapVersion.External), _15)),
18626
+ (_6[LiquidityDex.Wagmi] = ((_16 = {}), (_16[ChainId.IOTA] = ZapVersion.External), _16)),
18627
+ (_6[LiquidityDex.CamelotV2] = ((_17 = {}), (_17[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), _17)),
18628
+ (_6[LiquidityDex.LFJ] = ((_18 = {}), (_18[ChainId.AVAX] = ZapVersion.SoulZapApi), _18)),
18629
+ (_6[LiquidityDex.Pharaoh] = {}),
18630
+ (_6[LiquidityDex.Pangolin] = ((_19 = {}), (_19[ChainId.AVAX] = ZapVersion.SoulZapApi), _19)),
18631
+ (_6[LiquidityDex.Curve] = {}),
18632
+ (_6[LiquidityDex.ThrusterV2_03] = ((_20 = {}), (_20[ChainId.BLAST] = ZapVersion.SoulZapApi), _20)),
18633
+ (_6[LiquidityDex.ThrusterV2_1] = ((_21 = {}), (_21[ChainId.BLAST] = ZapVersion.SoulZapApi), _21)),
18634
+ (_6[LiquidityDex.ThrusterV3] = {}),
18635
+ (_6[LiquidityDex.Citea] = {}),
18636
+ (_6[LiquidityDex.XSwap] = {}),
18637
+ (_6[LiquidityDex.ShadowExchange] = {}),
18638
+ (_6[LiquidityDex.SwapX] = {}),
18639
+ (_6[LiquidityDex.SwapXAlgebraIntegral] = {}),
18640
+ _6);
18617
18641
 
18618
18642
  } (types));
18619
18643
 
@@ -18709,6 +18733,7 @@ const supportedByLIFI = [
18709
18733
  types.ChainId.BASE,
18710
18734
  types.ChainId.AVAX,
18711
18735
  types.ChainId.BLAST,
18736
+ types.ChainId.SONIC,
18712
18737
  ];
18713
18738
  // we should be good just by using staging on this, as it is only used for token images
18714
18739
  const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging`;
@@ -31838,7 +31863,7 @@ const WNATIVE = {
31838
31863
  active: true,
31839
31864
  },
31840
31865
  [types.ChainId.SONIC]: {
31841
- symbol: 'wSONIC',
31866
+ symbol: 'wS',
31842
31867
  address: {
31843
31868
  [types.ChainId.SONIC]: '0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38',
31844
31869
  },
@@ -32300,6 +32325,7 @@ const PRICE_GETTER_ADDRESSES = {
32300
32325
  [types.ChainId.AVAX]: '0x01dadaa586D30d93Ac92C79A5Cb02a8F276a8B4F', // Price getter V3
32301
32326
  [types.ChainId.CROSSFI]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
32302
32327
  [types.ChainId.SONIC]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
32328
+ [types.ChainId.MONAD_TESTNET]: '0x0187D959A28B0D3B490c2D898fA1CcD054cCC3cd',
32303
32329
  };
32304
32330
  const MULTICALL_V2 = {
32305
32331
  [types.ChainId.BSC]: '0x38ce767d81de3940CFa5020B55af1A400ED4F657',
@@ -71078,7 +71104,7 @@ const NetworkFilter = ({ chainFilterOption, setChainFilterOption, }) => {
71078
71104
  position: 'absolute',
71079
71105
  top: '45px',
71080
71106
  right: '0px',
71081
- width: '200px',
71107
+ width: '220px',
71082
71108
  maxHeight: ['300px', '300px', '350px'],
71083
71109
  overflowY: 'scroll',
71084
71110
  borderRadius: 'normal',
@@ -71795,6 +71821,7 @@ var NetworkNames;
71795
71821
  NetworkNames["BASE"] = "bas";
71796
71822
  NetworkNames["AVAX"] = "ava";
71797
71823
  NetworkNames["BLAST"] = "bls";
71824
+ NetworkNames["SONIC"] = "son";
71798
71825
  })(NetworkNames || (NetworkNames = {}));
71799
71826
  const getChainParam = (chain) => {
71800
71827
  return chain === types.ChainId.LINEA
@@ -71813,7 +71840,9 @@ const getChainParam = (chain) => {
71813
71840
  ? NetworkNames.AVAX
71814
71841
  : chain === types.ChainId.BLAST
71815
71842
  ? NetworkNames.BLAST
71816
- : null;
71843
+ : chain === types.ChainId.SONIC
71844
+ ? NetworkNames.SONIC
71845
+ : null;
71817
71846
  };
71818
71847
  const getLpType = (protocol) => {
71819
71848
  return protocol === types.Protocols.Algebra
@@ -74181,7 +74210,9 @@ const BondModal = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond }) =
74181
74210
  if (inputCurrencyBalance !== 'undefined' &&
74182
74211
  inputCurrencyBalance === '0' &&
74183
74212
  (inputTokenString === null || inputTokenString === void 0 ? void 0 : inputTokenString.toLowerCase()) === ((_c = (_b = (_a = bondData === null || bondData === void 0 ? void 0 : bondData.lpToken) === null || _a === void 0 ? void 0 : _a.address) === null || _b === void 0 ? void 0 : _b[bondData === null || bondData === void 0 ? void 0 : bondData.chainId]) === null || _c === void 0 ? void 0 : _c.toLowerCase()) &&
74184
- !hasChecked) {
74213
+ !hasChecked &&
74214
+ bondChain &&
74215
+ supportedByLIFI.includes(bondChain)) {
74185
74216
  setHasChecked(true);
74186
74217
  setInputTokenString('NATIVE');
74187
74218
  console.log('change to native');
@@ -7,7 +7,8 @@ declare enum NetworkNames {
7
7
  LINEA = "lna",
8
8
  BASE = "bas",
9
9
  AVAX = "ava",
10
- BLAST = "bls"
10
+ BLAST = "bls",
11
+ SONIC = "son"
11
12
  }
12
13
  export declare const getChainParam: (chain?: ChainId) => NetworkNames | null;
13
14
  export declare const getLpType: (protocol?: Protocols) => "ichi" | "solidly" | "univ2" | "curve" | null;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "3.0.14-test.2",
6
+ "version": "3.0.14-test.4",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",
@@ -57,7 +57,7 @@
57
57
  "yalc": "^1.0.0-pre.53"
58
58
  },
59
59
  "dependencies": {
60
- "@ape.swap/apeswap-lists": "4.1.1-alpha.1",
60
+ "@ape.swap/apeswap-lists": "4.1.1-alpha.2",
61
61
  "@emotion/react": "11.11.4",
62
62
  "bignumber.js": "^9.1.2",
63
63
  "chart.js": "4.2.0",