@ape.swap/bonds-sdk 3.0.40-test.1 → 3.0.40-test.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +214 -178
  2. package/package.json +2 -2
package/dist/main.js CHANGED
@@ -17832,10 +17832,10 @@ var types = {};
17832
17832
  _18,
17833
17833
  _19,
17834
17834
  _20,
17835
- _21;
17836
- var _22,
17837
- _23,
17838
- _24,
17835
+ _21,
17836
+ _22,
17837
+ _23;
17838
+ var _24,
17839
17839
  _25,
17840
17840
  _26,
17841
17841
  _27,
@@ -17900,7 +17900,13 @@ var types = {};
17900
17900
  _86,
17901
17901
  _87,
17902
17902
  _88,
17903
- _89;
17903
+ _89,
17904
+ _90,
17905
+ _91,
17906
+ _92,
17907
+ _93,
17908
+ _94,
17909
+ _95;
17904
17910
  Object.defineProperty(exports, '__esModule', { value: true });
17905
17911
  exports.dexToZapMapping =
17906
17912
  exports.defaultDexFactories =
@@ -18021,6 +18027,9 @@ var types = {};
18021
18027
  // ShadowExchangeV3 = 'ShadowExchangeV3',
18022
18028
  LiquidityDex['SwapX'] = 'SwapX';
18023
18029
  LiquidityDex['SwapXAlgebraIntegral'] = 'SwapXAlgebraIntegral';
18030
+ //BERACHAIN
18031
+ LiquidityDex['KodiakV2'] = 'KodiakV2';
18032
+ LiquidityDex['KodiakV3'] = 'KodiakV3';
18024
18033
  })((LiquidityDex = exports.LiquidityDex || (exports.LiquidityDex = {})));
18025
18034
  (function (IchiSupportedDex) {
18026
18035
  IchiSupportedDex['Ascent'] = 'Ascent';
@@ -18400,280 +18409,306 @@ var types = {};
18400
18409
  protocol: Protocols.V2,
18401
18410
  }),
18402
18411
  _q)),
18412
+ (_a[ChainId.BERACHAIN] =
18413
+ ((_r = {}),
18414
+ (_r[LiquidityDex.KodiakV2] = {
18415
+ factory: '0x5e705e184d233ff2a7cb1553793464a9d0c3028f',
18416
+ protocol: Protocols.V2,
18417
+ }),
18418
+ (_r[LiquidityDex.KodiakV3] = {
18419
+ factory: '0xD84CBf0B02636E7f53dB9E5e45A616E05d710990',
18420
+ protocol: Protocols.V3,
18421
+ }),
18422
+ _r)),
18403
18423
  _a);
18404
18424
  exports.defaultDexFactories =
18405
- ((_r = {}),
18406
- (_r[ChainId.MAINNET] =
18407
- ((_s = {}),
18408
- (_s[Protocols.V2] =
18409
- (_23 = (_22 = exports.dexFactories[ChainId.MAINNET]) === null || _22 === void 0 ? void 0 : _22.ApeSwapV2) ===
18410
- null || _23 === void 0
18411
- ? void 0
18412
- : _23.factory),
18413
- (_s[Protocols.V3] =
18414
- (_25 = (_24 = exports.dexFactories[ChainId.MAINNET]) === null || _24 === void 0 ? void 0 : _24.UniswapV3) ===
18425
+ ((_s = {}),
18426
+ (_s[ChainId.MAINNET] =
18427
+ ((_t = {}),
18428
+ (_t[Protocols.V2] =
18429
+ (_25 = (_24 = exports.dexFactories[ChainId.MAINNET]) === null || _24 === void 0 ? void 0 : _24.ApeSwapV2) ===
18415
18430
  null || _25 === void 0
18416
18431
  ? void 0
18417
18432
  : _25.factory),
18418
- _s)),
18419
- (_r[ChainId.BSC] =
18420
- ((_t = {}),
18421
- (_t[Protocols.V2] =
18422
- (_27 = (_26 = exports.dexFactories[ChainId.BSC]) === null || _26 === void 0 ? void 0 : _26.ApeSwapV2) === null ||
18423
- _27 === void 0
18433
+ (_t[Protocols.V3] =
18434
+ (_27 = (_26 = exports.dexFactories[ChainId.MAINNET]) === null || _26 === void 0 ? void 0 : _26.UniswapV3) ===
18435
+ null || _27 === void 0
18424
18436
  ? void 0
18425
18437
  : _27.factory),
18426
- (_t[Protocols.V3] =
18427
- (_29 = (_28 = exports.dexFactories[ChainId.BSC]) === null || _28 === void 0 ? void 0 : _28.UniswapV3) === null ||
18438
+ _t)),
18439
+ (_s[ChainId.BSC] =
18440
+ ((_u = {}),
18441
+ (_u[Protocols.V2] =
18442
+ (_29 = (_28 = exports.dexFactories[ChainId.BSC]) === null || _28 === void 0 ? void 0 : _28.ApeSwapV2) === null ||
18428
18443
  _29 === void 0
18429
18444
  ? void 0
18430
18445
  : _29.factory),
18431
- (_t[Protocols.Algebra] =
18432
- (_31 = (_30 = exports.dexFactories[ChainId.BSC]) === null || _30 === void 0 ? void 0 : _30.Algebra) === null ||
18446
+ (_u[Protocols.V3] =
18447
+ (_31 = (_30 = exports.dexFactories[ChainId.BSC]) === null || _30 === void 0 ? void 0 : _30.UniswapV3) === null ||
18433
18448
  _31 === void 0
18434
18449
  ? void 0
18435
18450
  : _31.factory),
18436
- (_t[Protocols.Solidly] =
18437
- (_33 = (_32 = exports.dexFactories[ChainId.BSC]) === null || _32 === void 0 ? void 0 : _32.ThenaV1) === null ||
18451
+ (_u[Protocols.Algebra] =
18452
+ (_33 = (_32 = exports.dexFactories[ChainId.BSC]) === null || _32 === void 0 ? void 0 : _32.Algebra) === null ||
18438
18453
  _33 === void 0
18439
18454
  ? void 0
18440
18455
  : _33.factory),
18441
- _t)),
18442
- (_r[ChainId.MATIC] =
18443
- ((_u = {}),
18444
- (_u[Protocols.V2] =
18445
- (_35 = (_34 = exports.dexFactories[ChainId.MATIC]) === null || _34 === void 0 ? void 0 : _34.ApeSwapV2) ===
18446
- null || _35 === void 0
18456
+ (_u[Protocols.Solidly] =
18457
+ (_35 = (_34 = exports.dexFactories[ChainId.BSC]) === null || _34 === void 0 ? void 0 : _34.ThenaV1) === null ||
18458
+ _35 === void 0
18447
18459
  ? void 0
18448
18460
  : _35.factory),
18449
- (_u[Protocols.V3] =
18450
- (_37 = (_36 = exports.dexFactories[ChainId.MATIC]) === null || _36 === void 0 ? void 0 : _36.UniswapV3) ===
18461
+ _u)),
18462
+ (_s[ChainId.MATIC] =
18463
+ ((_v = {}),
18464
+ (_v[Protocols.V2] =
18465
+ (_37 = (_36 = exports.dexFactories[ChainId.MATIC]) === null || _36 === void 0 ? void 0 : _36.ApeSwapV2) ===
18451
18466
  null || _37 === void 0
18452
18467
  ? void 0
18453
18468
  : _37.factory),
18454
- (_u[Protocols.Algebra] =
18455
- (_39 = (_38 = exports.dexFactories[ChainId.MATIC]) === null || _38 === void 0 ? void 0 : _38.Algebra) === null ||
18456
- _39 === void 0
18469
+ (_v[Protocols.V3] =
18470
+ (_39 = (_38 = exports.dexFactories[ChainId.MATIC]) === null || _38 === void 0 ? void 0 : _38.UniswapV3) ===
18471
+ null || _39 === void 0
18457
18472
  ? void 0
18458
18473
  : _39.factory),
18459
- _u)),
18460
- (_r[ChainId.ARBITRUM] =
18461
- ((_v = {}),
18462
- (_v[Protocols.V2] =
18463
- (_41 = (_40 = exports.dexFactories[ChainId.ARBITRUM]) === null || _40 === void 0 ? void 0 : _40.ApeSwapV2) ===
18464
- null || _41 === void 0
18474
+ (_v[Protocols.Algebra] =
18475
+ (_41 = (_40 = exports.dexFactories[ChainId.MATIC]) === null || _40 === void 0 ? void 0 : _40.Algebra) === null ||
18476
+ _41 === void 0
18465
18477
  ? void 0
18466
18478
  : _41.factory),
18467
- (_v[Protocols.V3] =
18468
- (_43 = (_42 = exports.dexFactories[ChainId.ARBITRUM]) === null || _42 === void 0 ? void 0 : _42.UniswapV3) ===
18479
+ _v)),
18480
+ (_s[ChainId.ARBITRUM] =
18481
+ ((_w = {}),
18482
+ (_w[Protocols.V2] =
18483
+ (_43 = (_42 = exports.dexFactories[ChainId.ARBITRUM]) === null || _42 === void 0 ? void 0 : _42.ApeSwapV2) ===
18469
18484
  null || _43 === void 0
18470
18485
  ? void 0
18471
18486
  : _43.factory),
18472
- (_v[Protocols.Algebra] =
18473
- (_45 = (_44 = exports.dexFactories[ChainId.ARBITRUM]) === null || _44 === void 0 ? void 0 : _44.Algebra) ===
18487
+ (_w[Protocols.V3] =
18488
+ (_45 = (_44 = exports.dexFactories[ChainId.ARBITRUM]) === null || _44 === void 0 ? void 0 : _44.UniswapV3) ===
18474
18489
  null || _45 === void 0
18475
18490
  ? void 0
18476
18491
  : _45.factory),
18477
- (_v[Protocols.Curve] =
18478
- (_47 = (_46 = exports.dexFactories[ChainId.ARBITRUM]) === null || _46 === void 0 ? void 0 : _46.Curve) === null ||
18479
- _47 === void 0
18492
+ (_w[Protocols.Algebra] =
18493
+ (_47 = (_46 = exports.dexFactories[ChainId.ARBITRUM]) === null || _46 === void 0 ? void 0 : _46.Algebra) ===
18494
+ null || _47 === void 0
18480
18495
  ? void 0
18481
18496
  : _47.factory),
18482
- _v)),
18483
- (_r[ChainId.LINEA] =
18484
- ((_w = {}),
18485
- (_w[Protocols.V2] =
18486
- (_49 = (_48 = exports.dexFactories[ChainId.LINEA]) === null || _48 === void 0 ? void 0 : _48.Spartadex) ===
18487
- null || _49 === void 0
18497
+ (_w[Protocols.Curve] =
18498
+ (_49 = (_48 = exports.dexFactories[ChainId.ARBITRUM]) === null || _48 === void 0 ? void 0 : _48.Curve) === null ||
18499
+ _49 === void 0
18488
18500
  ? void 0
18489
18501
  : _49.factory),
18490
- (_w[Protocols.V3] =
18491
- (_51 = (_50 = exports.dexFactories[ChainId.LINEA]) === null || _50 === void 0 ? void 0 : _50.Nile) === null ||
18492
- _51 === void 0
18502
+ _w)),
18503
+ (_s[ChainId.LINEA] =
18504
+ ((_x = {}),
18505
+ (_x[Protocols.V2] =
18506
+ (_51 = (_50 = exports.dexFactories[ChainId.LINEA]) === null || _50 === void 0 ? void 0 : _50.Spartadex) ===
18507
+ null || _51 === void 0
18493
18508
  ? void 0
18494
18509
  : _51.factory),
18495
- (_w[Protocols.Algebra] =
18496
- (_53 = (_52 = exports.dexFactories[ChainId.LINEA]) === null || _52 === void 0 ? void 0 : _52.Algebra) === null ||
18510
+ (_x[Protocols.V3] =
18511
+ (_53 = (_52 = exports.dexFactories[ChainId.LINEA]) === null || _52 === void 0 ? void 0 : _52.Nile) === null ||
18497
18512
  _53 === void 0
18498
18513
  ? void 0
18499
18514
  : _53.factory),
18500
- (_w[Protocols.Solidly] =
18501
- (_55 = (_54 = exports.dexFactories[ChainId.LINEA]) === null || _54 === void 0 ? void 0 : _54.Lynex) === null ||
18515
+ (_x[Protocols.Algebra] =
18516
+ (_55 = (_54 = exports.dexFactories[ChainId.LINEA]) === null || _54 === void 0 ? void 0 : _54.Algebra) === null ||
18502
18517
  _55 === void 0
18503
18518
  ? void 0
18504
18519
  : _55.factory),
18505
- (_w[Protocols.XFAI] =
18506
- (_57 = (_56 = exports.dexFactories[ChainId.LINEA]) === null || _56 === void 0 ? void 0 : _56.XFAI) === null ||
18520
+ (_x[Protocols.Solidly] =
18521
+ (_57 = (_56 = exports.dexFactories[ChainId.LINEA]) === null || _56 === void 0 ? void 0 : _56.Lynex) === null ||
18507
18522
  _57 === void 0
18508
18523
  ? void 0
18509
18524
  : _57.factory),
18510
- _w)),
18511
- (_r[ChainId.LIGHTLINK] =
18512
- ((_x = {}),
18513
- (_x[Protocols.V3] =
18514
- (_59 = (_58 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _58 === void 0 ? void 0 : _58.Elektrik) ===
18515
- null || _59 === void 0
18525
+ (_x[Protocols.XFAI] =
18526
+ (_59 = (_58 = exports.dexFactories[ChainId.LINEA]) === null || _58 === void 0 ? void 0 : _58.XFAI) === null ||
18527
+ _59 === void 0
18516
18528
  ? void 0
18517
18529
  : _59.factory),
18518
18530
  _x)),
18519
- (_r[ChainId.BASE] =
18531
+ (_s[ChainId.LIGHTLINK] =
18520
18532
  ((_y = {}),
18521
- (_y[Protocols.V2] =
18522
- (_61 = (_60 = exports.dexFactories[ChainId.BASE]) === null || _60 === void 0 ? void 0 : _60.SmarDex) === null ||
18523
- _61 === void 0
18533
+ (_y[Protocols.V3] =
18534
+ (_61 = (_60 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _60 === void 0 ? void 0 : _60.Elektrik) ===
18535
+ null || _61 === void 0
18524
18536
  ? void 0
18525
18537
  : _61.factory),
18526
- (_y[Protocols.V3] =
18527
- (_63 = (_62 = exports.dexFactories[ChainId.BASE]) === null || _62 === void 0 ? void 0 : _62.UniswapV3) === null ||
18538
+ _y)),
18539
+ (_s[ChainId.BASE] =
18540
+ ((_z = {}),
18541
+ (_z[Protocols.V2] =
18542
+ (_63 = (_62 = exports.dexFactories[ChainId.BASE]) === null || _62 === void 0 ? void 0 : _62.SmarDex) === null ||
18528
18543
  _63 === void 0
18529
18544
  ? void 0
18530
18545
  : _63.factory),
18531
- (_y[Protocols.Algebra] =
18532
- (_65 = (_64 = exports.dexFactories[ChainId.BASE]) === null || _64 === void 0 ? void 0 : _64.Algebra) === null ||
18546
+ (_z[Protocols.V3] =
18547
+ (_65 = (_64 = exports.dexFactories[ChainId.BASE]) === null || _64 === void 0 ? void 0 : _64.UniswapV3) === null ||
18533
18548
  _65 === void 0
18534
18549
  ? void 0
18535
18550
  : _65.factory),
18536
- (_y[Protocols.Solidly] =
18537
- (_67 = (_66 = exports.dexFactories[ChainId.BASE]) === null || _66 === void 0 ? void 0 : _66.Aerodrome) === null ||
18551
+ (_z[Protocols.Algebra] =
18552
+ (_67 = (_66 = exports.dexFactories[ChainId.BASE]) === null || _66 === void 0 ? void 0 : _66.Algebra) === null ||
18538
18553
  _67 === void 0
18539
18554
  ? void 0
18540
18555
  : _67.factory),
18541
- _y)),
18542
- (_r[ChainId.IOTA] =
18543
- ((_z = {}),
18544
- (_z[Protocols.V2] =
18545
- (_69 = (_68 = exports.dexFactories[ChainId.IOTA]) === null || _68 === void 0 ? void 0 : _68.MagicSea) === null ||
18556
+ (_z[Protocols.Solidly] =
18557
+ (_69 = (_68 = exports.dexFactories[ChainId.BASE]) === null || _68 === void 0 ? void 0 : _68.Aerodrome) === null ||
18546
18558
  _69 === void 0
18547
18559
  ? void 0
18548
18560
  : _69.factory),
18549
18561
  _z)),
18550
- (_r[ChainId.AVAX] =
18562
+ (_s[ChainId.IOTA] =
18551
18563
  ((_0 = {}),
18552
18564
  (_0[Protocols.V2] =
18553
- (_71 = (_70 = exports.dexFactories[ChainId.AVAX]) === null || _70 === void 0 ? void 0 : _70.LFJ) === null ||
18565
+ (_71 = (_70 = exports.dexFactories[ChainId.IOTA]) === null || _70 === void 0 ? void 0 : _70.MagicSea) === null ||
18554
18566
  _71 === void 0
18555
18567
  ? void 0
18556
18568
  : _71.factory),
18557
- (_0[Protocols.V3] =
18558
- (_73 = (_72 = exports.dexFactories[ChainId.AVAX]) === null || _72 === void 0 ? void 0 : _72.Pharaoh) === null ||
18559
- _73 === void 0
18560
- ? void 0
18561
- : _73.factory),
18562
18569
  _0)),
18563
- (_r[ChainId.BLAST] =
18570
+ (_s[ChainId.AVAX] =
18564
18571
  ((_1 = {}),
18565
18572
  (_1[Protocols.V2] =
18566
- (_75 = (_74 = exports.dexFactories[ChainId.BLAST]) === null || _74 === void 0 ? void 0 : _74.ThrusterV2_03) ===
18567
- null || _75 === void 0
18573
+ (_73 = (_72 = exports.dexFactories[ChainId.AVAX]) === null || _72 === void 0 ? void 0 : _72.LFJ) === null ||
18574
+ _73 === void 0
18568
18575
  ? void 0
18569
- : _75.factory),
18576
+ : _73.factory),
18570
18577
  (_1[Protocols.V3] =
18571
- (_77 = (_76 = exports.dexFactories[ChainId.BLAST]) === null || _76 === void 0 ? void 0 : _76.ThrusterV3) ===
18572
- null || _77 === void 0
18578
+ (_75 = (_74 = exports.dexFactories[ChainId.AVAX]) === null || _74 === void 0 ? void 0 : _74.Pharaoh) === null ||
18579
+ _75 === void 0
18573
18580
  ? void 0
18574
- : _77.factory),
18581
+ : _75.factory),
18575
18582
  _1)),
18576
- (_r[ChainId.SINGULARITY_TESTNET] =
18583
+ (_s[ChainId.BLAST] =
18577
18584
  ((_2 = {}),
18578
18585
  (_2[Protocols.V2] =
18579
- (_79 =
18580
- (_78 = exports.dexFactories[ChainId.SINGULARITY_TESTNET]) === null || _78 === void 0 ? void 0 : _78.Citea) ===
18586
+ (_77 = (_76 = exports.dexFactories[ChainId.BLAST]) === null || _76 === void 0 ? void 0 : _76.ThrusterV2_03) ===
18587
+ null || _77 === void 0
18588
+ ? void 0
18589
+ : _77.factory),
18590
+ (_2[Protocols.V3] =
18591
+ (_79 = (_78 = exports.dexFactories[ChainId.BLAST]) === null || _78 === void 0 ? void 0 : _78.ThrusterV3) ===
18581
18592
  null || _79 === void 0
18582
18593
  ? void 0
18583
18594
  : _79.factory),
18584
18595
  _2)),
18585
- (_r[ChainId.CROSSFI] =
18596
+ (_s[ChainId.SINGULARITY_TESTNET] =
18586
18597
  ((_3 = {}),
18587
18598
  (_3[Protocols.V2] =
18588
- (_81 = (_80 = exports.dexFactories[ChainId.CROSSFI]) === null || _80 === void 0 ? void 0 : _80.XSwap) === null ||
18589
- _81 === void 0
18599
+ (_81 =
18600
+ (_80 = exports.dexFactories[ChainId.SINGULARITY_TESTNET]) === null || _80 === void 0 ? void 0 : _80.Citea) ===
18601
+ null || _81 === void 0
18590
18602
  ? void 0
18591
18603
  : _81.factory),
18592
18604
  _3)),
18593
- (_r[ChainId.SONIC] =
18605
+ (_s[ChainId.CROSSFI] =
18594
18606
  ((_4 = {}),
18595
- (_4[Protocols.Solidly] =
18596
- (_83 = (_82 = exports.dexFactories[ChainId.SONIC]) === null || _82 === void 0 ? void 0 : _82.ShadowExchange) ===
18597
- null || _83 === void 0
18607
+ (_4[Protocols.V2] =
18608
+ (_83 = (_82 = exports.dexFactories[ChainId.CROSSFI]) === null || _82 === void 0 ? void 0 : _82.XSwap) === null ||
18609
+ _83 === void 0
18598
18610
  ? void 0
18599
18611
  : _83.factory),
18600
- (_4[Protocols.V3] =
18601
- (_85 = (_84 = exports.dexFactories[ChainId.SONIC]) === null || _84 === void 0 ? void 0 : _84.Wagmi) === null ||
18602
- _85 === void 0
18612
+ _4)),
18613
+ (_s[ChainId.SONIC] =
18614
+ ((_5 = {}),
18615
+ (_5[Protocols.Solidly] =
18616
+ (_85 = (_84 = exports.dexFactories[ChainId.SONIC]) === null || _84 === void 0 ? void 0 : _84.ShadowExchange) ===
18617
+ null || _85 === void 0
18603
18618
  ? void 0
18604
18619
  : _85.factory),
18605
- (_4[Protocols.AlgebraIntegral] =
18606
- (_87 =
18607
- (_86 = exports.dexFactories[ChainId.SONIC]) === null || _86 === void 0 ? void 0 : _86.SwapXAlgebraIntegral) ===
18608
- null || _87 === void 0
18620
+ (_5[Protocols.V3] =
18621
+ (_87 = (_86 = exports.dexFactories[ChainId.SONIC]) === null || _86 === void 0 ? void 0 : _86.Wagmi) === null ||
18622
+ _87 === void 0
18609
18623
  ? void 0
18610
18624
  : _87.factory),
18611
- _4)),
18612
- (_r[ChainId.MONAD_TESTNET] =
18613
- ((_5 = {}),
18614
- (_5[Protocols.V2] =
18615
- (_89 = (_88 = exports.dexFactories[ChainId.MONAD_TESTNET]) === null || _88 === void 0 ? void 0 : _88.LFJ) ===
18625
+ (_5[Protocols.AlgebraIntegral] =
18626
+ (_89 =
18627
+ (_88 = exports.dexFactories[ChainId.SONIC]) === null || _88 === void 0 ? void 0 : _88.SwapXAlgebraIntegral) ===
18616
18628
  null || _89 === void 0
18617
18629
  ? void 0
18618
18630
  : _89.factory),
18619
18631
  _5)),
18620
- _r);
18621
- exports.dexToZapMapping =
18622
- ((_6 = {}),
18623
- (_6[LiquidityDex.ApeSwapV2] =
18632
+ (_s[ChainId.MONAD_TESTNET] =
18633
+ ((_6 = {}),
18634
+ (_6[Protocols.V2] =
18635
+ (_91 = (_90 = exports.dexFactories[ChainId.MONAD_TESTNET]) === null || _90 === void 0 ? void 0 : _90.LFJ) ===
18636
+ null || _91 === void 0
18637
+ ? void 0
18638
+ : _91.factory),
18639
+ _6)),
18640
+ (_s[ChainId.BERACHAIN] =
18624
18641
  ((_7 = {}),
18625
- (_7[ChainId.BSC] = ZapVersion.SoulZap),
18626
- (_7[ChainId.BSC_TESTNET] = ZapVersion.ZapV1),
18627
- (_7[ChainId.MATIC] = ZapVersion.ZapV1),
18628
- (_7[ChainId.MATIC_TESTNET] = ZapVersion.ZapV1),
18629
- (_7[ChainId.MAINNET] = ZapVersion.ZapV1),
18630
- (_7[ChainId.ARBITRUM] = ZapVersion.External),
18631
- (_7[ChainId.TLOS] = ZapVersion.ZapV1),
18642
+ (_7[Protocols.V2] =
18643
+ (_93 = (_92 = exports.dexFactories[ChainId.BERACHAIN]) === null || _92 === void 0 ? void 0 : _92.KodiakV2) ===
18644
+ null || _93 === void 0
18645
+ ? void 0
18646
+ : _93.factory),
18647
+ (_7[Protocols.V3] =
18648
+ (_95 = (_94 = exports.dexFactories[ChainId.BERACHAIN]) === null || _94 === void 0 ? void 0 : _94.KodiakV3) ===
18649
+ null || _95 === void 0
18650
+ ? void 0
18651
+ : _95.factory),
18632
18652
  _7)),
18633
- (_6[LiquidityDex.Algebra] =
18634
- ((_8 = {}),
18635
- (_8[ChainId.BSC] = ZapVersion.SoulZapApi),
18636
- (_8[ChainId.MATIC] = ZapVersion.SoulZapApi),
18637
- (_8[ChainId.LINEA] = ZapVersion.SoulZapApi),
18638
- _8)),
18639
- (_6[LiquidityDex.PancakeSwapV2] =
18640
- ((_9 = {}), (_9[ChainId.BSC] = ZapVersion.SoulZap), (_9[ChainId.MAINNET] = ZapVersion.External), _9)),
18641
- (_6[LiquidityDex.QuickswapV2] = ((_10 = {}), (_10[ChainId.MATIC] = ZapVersion.SoulZap), _10)),
18642
- (_6[LiquidityDex.ApeSwapV3] = {}),
18643
- (_6[LiquidityDex.UniswapV3] =
18644
- ((_11 = {}), (_11[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), (_11[ChainId.MATIC] = ZapVersion.SoulZapApi), _11)),
18645
- (_6[LiquidityDex.ThenaV1] = ((_12 = {}), (_12[ChainId.BSC] = ZapVersion.SoulZapApi), _12)),
18646
- (_6[LiquidityDex.UniswapV2] = ((_13 = {}), (_13[ChainId.BASE] = ZapVersion.SoulZapApi), _13)),
18647
- (_6[LiquidityDex.PancakeSwapV3] = {}),
18648
- (_6[LiquidityDex.External] = {}),
18649
- (_6[LiquidityDex.Spartadex] = {}),
18650
- (_6[LiquidityDex.Nile] = {}),
18651
- (_6[LiquidityDex.XFAI] = {}),
18652
- (_6[LiquidityDex.Lynex] = {}),
18653
- (_6[LiquidityDex.Metavault] = {}),
18654
- (_6[LiquidityDex.Elektrik] = {}),
18655
- (_6[LiquidityDex.SushiSwapV3] = {}),
18656
- (_6[LiquidityDex.Synthswap] = {}),
18657
- (_6[LiquidityDex.Aerodrome] = ((_14 = {}), (_14[ChainId.BASE] = ZapVersion.SoulZapApi), _14)),
18658
- (_6[LiquidityDex.SmarDex] = {}),
18659
- (_6[LiquidityDex.MagicSea] = ((_15 = {}), (_15[ChainId.IOTA] = ZapVersion.External), _15)),
18660
- (_6[LiquidityDex.Wagmi] = ((_16 = {}), (_16[ChainId.IOTA] = ZapVersion.External), _16)),
18661
- (_6[LiquidityDex.CamelotV2] = ((_17 = {}), (_17[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), _17)),
18662
- (_6[LiquidityDex.LFJ] = ((_18 = {}), (_18[ChainId.AVAX] = ZapVersion.SoulZapApi), _18)),
18663
- (_6[LiquidityDex.Pharaoh] = {}),
18664
- (_6[LiquidityDex.Pangolin] = ((_19 = {}), (_19[ChainId.AVAX] = ZapVersion.SoulZapApi), _19)),
18665
- (_6[LiquidityDex.Curve] = {}),
18666
- (_6[LiquidityDex.ThrusterV2_03] = ((_20 = {}), (_20[ChainId.BLAST] = ZapVersion.SoulZapApi), _20)),
18667
- (_6[LiquidityDex.ThrusterV2_1] = ((_21 = {}), (_21[ChainId.BLAST] = ZapVersion.SoulZapApi), _21)),
18668
- (_6[LiquidityDex.ThrusterV3] = {}),
18669
- (_6[LiquidityDex.Citea] = {}),
18670
- (_6[LiquidityDex.XSwap] = {}),
18671
- (_6[LiquidityDex.ShadowExchange] = {}),
18672
- (_6[LiquidityDex.SwapX] = {}),
18673
- (_6[LiquidityDex.SwapXAlgebraIntegral] = {}),
18674
- (_6[LiquidityDex.TrebleSwapV2] = {}),
18675
- (_6[LiquidityDex.TrebleAlgebraIntegral] = {}),
18676
- _6);
18653
+ _s);
18654
+ exports.dexToZapMapping =
18655
+ ((_8 = {}),
18656
+ (_8[LiquidityDex.ApeSwapV2] =
18657
+ ((_9 = {}),
18658
+ (_9[ChainId.BSC] = ZapVersion.SoulZap),
18659
+ (_9[ChainId.BSC_TESTNET] = ZapVersion.ZapV1),
18660
+ (_9[ChainId.MATIC] = ZapVersion.ZapV1),
18661
+ (_9[ChainId.MATIC_TESTNET] = ZapVersion.ZapV1),
18662
+ (_9[ChainId.MAINNET] = ZapVersion.ZapV1),
18663
+ (_9[ChainId.ARBITRUM] = ZapVersion.External),
18664
+ (_9[ChainId.TLOS] = ZapVersion.ZapV1),
18665
+ _9)),
18666
+ (_8[LiquidityDex.Algebra] =
18667
+ ((_10 = {}),
18668
+ (_10[ChainId.BSC] = ZapVersion.SoulZapApi),
18669
+ (_10[ChainId.MATIC] = ZapVersion.SoulZapApi),
18670
+ (_10[ChainId.LINEA] = ZapVersion.SoulZapApi),
18671
+ _10)),
18672
+ (_8[LiquidityDex.PancakeSwapV2] =
18673
+ ((_11 = {}), (_11[ChainId.BSC] = ZapVersion.SoulZap), (_11[ChainId.MAINNET] = ZapVersion.External), _11)),
18674
+ (_8[LiquidityDex.QuickswapV2] = ((_12 = {}), (_12[ChainId.MATIC] = ZapVersion.SoulZap), _12)),
18675
+ (_8[LiquidityDex.ApeSwapV3] = {}),
18676
+ (_8[LiquidityDex.UniswapV3] =
18677
+ ((_13 = {}), (_13[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), (_13[ChainId.MATIC] = ZapVersion.SoulZapApi), _13)),
18678
+ (_8[LiquidityDex.ThenaV1] = ((_14 = {}), (_14[ChainId.BSC] = ZapVersion.SoulZapApi), _14)),
18679
+ (_8[LiquidityDex.UniswapV2] = ((_15 = {}), (_15[ChainId.BASE] = ZapVersion.SoulZapApi), _15)),
18680
+ (_8[LiquidityDex.PancakeSwapV3] = {}),
18681
+ (_8[LiquidityDex.External] = {}),
18682
+ (_8[LiquidityDex.Spartadex] = {}),
18683
+ (_8[LiquidityDex.Nile] = {}),
18684
+ (_8[LiquidityDex.XFAI] = {}),
18685
+ (_8[LiquidityDex.Lynex] = {}),
18686
+ (_8[LiquidityDex.Metavault] = {}),
18687
+ (_8[LiquidityDex.Elektrik] = {}),
18688
+ (_8[LiquidityDex.SushiSwapV3] = {}),
18689
+ (_8[LiquidityDex.Synthswap] = {}),
18690
+ (_8[LiquidityDex.Aerodrome] = ((_16 = {}), (_16[ChainId.BASE] = ZapVersion.SoulZapApi), _16)),
18691
+ (_8[LiquidityDex.SmarDex] = {}),
18692
+ (_8[LiquidityDex.MagicSea] = ((_17 = {}), (_17[ChainId.IOTA] = ZapVersion.External), _17)),
18693
+ (_8[LiquidityDex.Wagmi] = ((_18 = {}), (_18[ChainId.IOTA] = ZapVersion.External), _18)),
18694
+ (_8[LiquidityDex.CamelotV2] = ((_19 = {}), (_19[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), _19)),
18695
+ (_8[LiquidityDex.LFJ] = ((_20 = {}), (_20[ChainId.AVAX] = ZapVersion.SoulZapApi), _20)),
18696
+ (_8[LiquidityDex.Pharaoh] = {}),
18697
+ (_8[LiquidityDex.Pangolin] = ((_21 = {}), (_21[ChainId.AVAX] = ZapVersion.SoulZapApi), _21)),
18698
+ (_8[LiquidityDex.Curve] = {}),
18699
+ (_8[LiquidityDex.ThrusterV2_03] = ((_22 = {}), (_22[ChainId.BLAST] = ZapVersion.SoulZapApi), _22)),
18700
+ (_8[LiquidityDex.ThrusterV2_1] = ((_23 = {}), (_23[ChainId.BLAST] = ZapVersion.SoulZapApi), _23)),
18701
+ (_8[LiquidityDex.ThrusterV3] = {}),
18702
+ (_8[LiquidityDex.Citea] = {}),
18703
+ (_8[LiquidityDex.XSwap] = {}),
18704
+ (_8[LiquidityDex.ShadowExchange] = {}),
18705
+ (_8[LiquidityDex.SwapX] = {}),
18706
+ (_8[LiquidityDex.SwapXAlgebraIntegral] = {}),
18707
+ (_8[LiquidityDex.TrebleSwapV2] = {}),
18708
+ (_8[LiquidityDex.TrebleAlgebraIntegral] = {}),
18709
+ (_8[LiquidityDex.KodiakV2] = {}),
18710
+ (_8[LiquidityDex.KodiakV3] = {}),
18711
+ _8);
18677
18712
 
18678
18713
  } (types));
18679
18714
 
@@ -22236,6 +22271,7 @@ const PRICE_GETTER_ADDRESSES = {
22236
22271
  [types.ChainId.CROSSFI]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
22237
22272
  [types.ChainId.SONIC]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
22238
22273
  [types.ChainId.MONAD_TESTNET]: '0x0187D959A28B0D3B490c2D898fA1CcD054cCC3cd', // Price getter V3
22274
+ [types.ChainId.BERACHAIN]: '0x70005Da62E17041977f7F99f91098b125CcDE1a7',
22239
22275
  };
22240
22276
  const MULTICALL_V2 = {
22241
22277
  [types.ChainId.BSC]: '0x38ce767d81de3940CFa5020B55af1A400ED4F657',
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.40-test.1",
6
+ "version": "3.0.40-test.2",
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.3.2",
60
+ "@ape.swap/apeswap-lists": "4.3.3",
61
61
  "@emotion/react": "11.11.4",
62
62
  "bignumber.js": "^9.1.2",
63
63
  "chart.js": "4.2.0",