@ape.swap/bonds-sdk 3.0.40-test.1 → 3.0.40-test.3
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 +262 -179
- package/dist/state/zap/getChainParam.d.ts +2 -1
- 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
|
-
|
|
17837
|
-
_23
|
|
17838
|
-
|
|
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
|
-
((
|
|
18406
|
-
(
|
|
18407
|
-
((
|
|
18408
|
-
(
|
|
18409
|
-
(
|
|
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
|
-
|
|
18419
|
-
|
|
18420
|
-
|
|
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
|
-
|
|
18427
|
-
|
|
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
|
-
(
|
|
18432
|
-
(_31 = (_30 = exports.dexFactories[ChainId.BSC]) === null || _30 === void 0 ? void 0 : _30.
|
|
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
|
-
(
|
|
18437
|
-
(_33 = (_32 = exports.dexFactories[ChainId.BSC]) === null || _32 === void 0 ? void 0 : _32.
|
|
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
|
-
|
|
18442
|
-
|
|
18443
|
-
|
|
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
|
-
|
|
18450
|
-
|
|
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
|
-
(
|
|
18455
|
-
(_39 = (_38 = exports.dexFactories[ChainId.MATIC]) === null || _38 === void 0 ? void 0 : _38.
|
|
18456
|
-
|
|
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
|
-
|
|
18460
|
-
|
|
18461
|
-
|
|
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
|
-
|
|
18468
|
-
|
|
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
|
-
(
|
|
18473
|
-
(_45 = (_44 = exports.dexFactories[ChainId.ARBITRUM]) === null || _44 === void 0 ? void 0 : _44.
|
|
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
|
-
(
|
|
18478
|
-
(_47 = (_46 = exports.dexFactories[ChainId.ARBITRUM]) === null || _46 === void 0 ? void 0 : _46.
|
|
18479
|
-
|
|
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
|
-
|
|
18483
|
-
|
|
18484
|
-
|
|
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
|
-
|
|
18491
|
-
|
|
18492
|
-
|
|
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
|
-
(
|
|
18496
|
-
(_53 = (_52 = exports.dexFactories[ChainId.LINEA]) === null || _52 === void 0 ? void 0 : _52.
|
|
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
|
-
(
|
|
18501
|
-
(_55 = (_54 = exports.dexFactories[ChainId.LINEA]) === null || _54 === void 0 ? void 0 : _54.
|
|
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
|
-
(
|
|
18506
|
-
(_57 = (_56 = exports.dexFactories[ChainId.LINEA]) === null || _56 === void 0 ? void 0 : _56.
|
|
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
|
-
|
|
18511
|
-
|
|
18512
|
-
|
|
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
|
-
(
|
|
18531
|
+
(_s[ChainId.LIGHTLINK] =
|
|
18520
18532
|
((_y = {}),
|
|
18521
|
-
(_y[Protocols.
|
|
18522
|
-
(_61 = (_60 = exports.dexFactories[ChainId.
|
|
18523
|
-
|
|
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
|
-
|
|
18527
|
-
|
|
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
|
-
(
|
|
18532
|
-
(_65 = (_64 = exports.dexFactories[ChainId.BASE]) === null || _64 === void 0 ? void 0 : _64.
|
|
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
|
-
(
|
|
18537
|
-
(_67 = (_66 = exports.dexFactories[ChainId.BASE]) === null || _66 === void 0 ? void 0 : _66.
|
|
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
|
-
|
|
18542
|
-
|
|
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
|
-
(
|
|
18562
|
+
(_s[ChainId.IOTA] =
|
|
18551
18563
|
((_0 = {}),
|
|
18552
18564
|
(_0[Protocols.V2] =
|
|
18553
|
-
(_71 = (_70 = exports.dexFactories[ChainId.
|
|
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
|
-
(
|
|
18570
|
+
(_s[ChainId.AVAX] =
|
|
18564
18571
|
((_1 = {}),
|
|
18565
18572
|
(_1[Protocols.V2] =
|
|
18566
|
-
(
|
|
18567
|
-
|
|
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
|
-
:
|
|
18576
|
+
: _73.factory),
|
|
18570
18577
|
(_1[Protocols.V3] =
|
|
18571
|
-
(
|
|
18572
|
-
|
|
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
|
-
:
|
|
18581
|
+
: _75.factory),
|
|
18575
18582
|
_1)),
|
|
18576
|
-
(
|
|
18583
|
+
(_s[ChainId.BLAST] =
|
|
18577
18584
|
((_2 = {}),
|
|
18578
18585
|
(_2[Protocols.V2] =
|
|
18579
|
-
(
|
|
18580
|
-
|
|
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
|
-
(
|
|
18596
|
+
(_s[ChainId.SINGULARITY_TESTNET] =
|
|
18586
18597
|
((_3 = {}),
|
|
18587
18598
|
(_3[Protocols.V2] =
|
|
18588
|
-
(_81 =
|
|
18589
|
-
|
|
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
|
-
(
|
|
18605
|
+
(_s[ChainId.CROSSFI] =
|
|
18594
18606
|
((_4 = {}),
|
|
18595
|
-
(_4[Protocols.
|
|
18596
|
-
(_83 = (_82 = exports.dexFactories[ChainId.
|
|
18597
|
-
|
|
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
|
-
|
|
18601
|
-
|
|
18602
|
-
|
|
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
|
-
(
|
|
18606
|
-
(_87 =
|
|
18607
|
-
|
|
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
|
-
|
|
18612
|
-
|
|
18613
|
-
|
|
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
|
-
|
|
18621
|
-
|
|
18622
|
-
|
|
18623
|
-
|
|
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[
|
|
18626
|
-
|
|
18627
|
-
|
|
18628
|
-
|
|
18629
|
-
|
|
18630
|
-
(_7[
|
|
18631
|
-
|
|
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
|
-
|
|
18634
|
-
|
|
18635
|
-
|
|
18636
|
-
|
|
18637
|
-
(
|
|
18638
|
-
|
|
18639
|
-
|
|
18640
|
-
(
|
|
18641
|
-
|
|
18642
|
-
|
|
18643
|
-
|
|
18644
|
-
(
|
|
18645
|
-
|
|
18646
|
-
(
|
|
18647
|
-
|
|
18648
|
-
|
|
18649
|
-
|
|
18650
|
-
|
|
18651
|
-
|
|
18652
|
-
(
|
|
18653
|
-
|
|
18654
|
-
(
|
|
18655
|
-
(
|
|
18656
|
-
(
|
|
18657
|
-
|
|
18658
|
-
(
|
|
18659
|
-
(
|
|
18660
|
-
(
|
|
18661
|
-
(
|
|
18662
|
-
(
|
|
18663
|
-
(
|
|
18664
|
-
(
|
|
18665
|
-
(
|
|
18666
|
-
(
|
|
18667
|
-
(
|
|
18668
|
-
(
|
|
18669
|
-
(
|
|
18670
|
-
(
|
|
18671
|
-
(
|
|
18672
|
-
(
|
|
18673
|
-
(
|
|
18674
|
-
(
|
|
18675
|
-
(
|
|
18676
|
-
|
|
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
|
|
|
@@ -18775,6 +18810,7 @@ const supportedByLIFI = [
|
|
|
18775
18810
|
types.ChainId.AVAX,
|
|
18776
18811
|
types.ChainId.BLAST,
|
|
18777
18812
|
types.ChainId.SONIC,
|
|
18813
|
+
types.ChainId.BERACHAIN,
|
|
18778
18814
|
];
|
|
18779
18815
|
// we should be good just by using staging on this, as it is only used for token images
|
|
18780
18816
|
const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging`;
|
|
@@ -22236,6 +22272,7 @@ const PRICE_GETTER_ADDRESSES = {
|
|
|
22236
22272
|
[types.ChainId.CROSSFI]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
|
|
22237
22273
|
[types.ChainId.SONIC]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
|
|
22238
22274
|
[types.ChainId.MONAD_TESTNET]: '0x0187D959A28B0D3B490c2D898fA1CcD054cCC3cd', // Price getter V3
|
|
22275
|
+
[types.ChainId.BERACHAIN]: '0x70005Da62E17041977f7F99f91098b125CcDE1a7',
|
|
22239
22276
|
};
|
|
22240
22277
|
const MULTICALL_V2 = {
|
|
22241
22278
|
[types.ChainId.BSC]: '0x38ce767d81de3940CFa5020B55af1A400ED4F657',
|
|
@@ -22267,6 +22304,7 @@ const SoulZapTokenManager = {
|
|
|
22267
22304
|
[types.ChainId.ARBITRUM]: '0x22572A548Ff26Fc5725a17dfd233F49a98c17EE7',
|
|
22268
22305
|
[types.ChainId.AVAX]: '0xC4dE46cBE21400dabE2E7c66E04F43acE4b5b910',
|
|
22269
22306
|
[types.ChainId.BLAST]: '0xde9Eb844AD9e8B067309205707e2fFaA6a049cc0',
|
|
22307
|
+
[types.ChainId.BERACHAIN]: '0x9ec6F16B2a762CACe3c7df4F3FbEE7FC994D5571',
|
|
22270
22308
|
};
|
|
22271
22309
|
const ACF_TO_ABOND = '0xEce2b9C3704632Ce760271B0b84E3A4A698Ca962';
|
|
22272
22310
|
const LENS_CONTRACT = {
|
|
@@ -68461,6 +68499,16 @@ const WNATIVE = {
|
|
|
68461
68499
|
},
|
|
68462
68500
|
active: true,
|
|
68463
68501
|
},
|
|
68502
|
+
[types.ChainId.BERACHAIN]: {
|
|
68503
|
+
symbol: 'wBERA',
|
|
68504
|
+
address: {
|
|
68505
|
+
[types.ChainId.BERACHAIN]: '0x6969696969696969696969696969696969696969',
|
|
68506
|
+
},
|
|
68507
|
+
decimals: {
|
|
68508
|
+
[types.ChainId.BERACHAIN]: 18,
|
|
68509
|
+
},
|
|
68510
|
+
active: true,
|
|
68511
|
+
},
|
|
68464
68512
|
};
|
|
68465
68513
|
const zapInputTokens = {
|
|
68466
68514
|
[types.ChainId.MAINNET]: [
|
|
@@ -68899,6 +68947,38 @@ const zapInputTokens = {
|
|
|
68899
68947
|
active: true,
|
|
68900
68948
|
},
|
|
68901
68949
|
],
|
|
68950
|
+
[types.ChainId.BERACHAIN]: [
|
|
68951
|
+
{
|
|
68952
|
+
symbol: 'BTC',
|
|
68953
|
+
address: {
|
|
68954
|
+
[types.ChainId.BERACHAIN]: '0x0555E30da8f98308EdB960aa94C0Db47230d2B9c',
|
|
68955
|
+
},
|
|
68956
|
+
decimals: {
|
|
68957
|
+
[types.ChainId.BERACHAIN]: 8,
|
|
68958
|
+
},
|
|
68959
|
+
active: true,
|
|
68960
|
+
},
|
|
68961
|
+
{
|
|
68962
|
+
symbol: 'USDe',
|
|
68963
|
+
address: {
|
|
68964
|
+
[types.ChainId.BERACHAIN]: '0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34',
|
|
68965
|
+
},
|
|
68966
|
+
decimals: {
|
|
68967
|
+
[types.ChainId.BERACHAIN]: 18,
|
|
68968
|
+
},
|
|
68969
|
+
active: true,
|
|
68970
|
+
},
|
|
68971
|
+
{
|
|
68972
|
+
symbol: 'WETH',
|
|
68973
|
+
address: {
|
|
68974
|
+
[types.ChainId.BERACHAIN]: '0x7dcc39b4d1c53cb31e1abc0e358b43987fef80f7',
|
|
68975
|
+
},
|
|
68976
|
+
decimals: {
|
|
68977
|
+
[types.ChainId.BERACHAIN]: 18,
|
|
68978
|
+
},
|
|
68979
|
+
active: true,
|
|
68980
|
+
},
|
|
68981
|
+
]
|
|
68902
68982
|
};
|
|
68903
68983
|
|
|
68904
68984
|
var PRICE_GETTER_V3_ABI = [
|
|
@@ -74935,6 +75015,7 @@ var NetworkNames;
|
|
|
74935
75015
|
NetworkNames["AVAX"] = "ava";
|
|
74936
75016
|
NetworkNames["BLAST"] = "bls";
|
|
74937
75017
|
NetworkNames["SONIC"] = "son";
|
|
75018
|
+
NetworkNames["BERACHAIN"] = "ber";
|
|
74938
75019
|
})(NetworkNames || (NetworkNames = {}));
|
|
74939
75020
|
const getChainParam = (chain) => {
|
|
74940
75021
|
return chain === types.ChainId.LINEA
|
|
@@ -74955,7 +75036,9 @@ const getChainParam = (chain) => {
|
|
|
74955
75036
|
? NetworkNames.BLAST
|
|
74956
75037
|
: chain === types.ChainId.SONIC
|
|
74957
75038
|
? NetworkNames.SONIC
|
|
74958
|
-
:
|
|
75039
|
+
: chain === types.ChainId.BERACHAIN
|
|
75040
|
+
? NetworkNames.BERACHAIN
|
|
75041
|
+
: null;
|
|
74959
75042
|
};
|
|
74960
75043
|
const getLpType = (protocol) => {
|
|
74961
75044
|
return protocol === types.Protocols.Algebra
|
|
@@ -8,7 +8,8 @@ declare enum NetworkNames {
|
|
|
8
8
|
BASE = "bas",
|
|
9
9
|
AVAX = "ava",
|
|
10
10
|
BLAST = "bls",
|
|
11
|
-
SONIC = "son"
|
|
11
|
+
SONIC = "son",
|
|
12
|
+
BERACHAIN = "ber"
|
|
12
13
|
}
|
|
13
14
|
export declare const getChainParam: (chain?: ChainId) => NetworkNames | null;
|
|
14
15
|
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.40-test.
|
|
6
|
+
"version": "3.0.40-test.3",
|
|
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.
|
|
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",
|