@ape.swap/bonds-sdk 2.7.8 → 2.7.9

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.
@@ -1,5 +1,6 @@
1
1
  import { icons } from '../../components/uikit-sdk/Svg/types';
2
- export declare const MAINNET_CHAINS: any[];
2
+ import { ChainId } from '@ape.swap/apeswap-lists';
3
+ export declare const MAINNET_CHAINS: ChainId[];
3
4
  export declare const NETWORK_ICONS: Partial<Record<number, icons>>;
4
5
  export declare const NETWORK_LABEL: Record<number, string>;
5
6
  export declare const BLOCK_EXPLORER: Record<number, string>;
package/dist/main.js CHANGED
@@ -18102,12 +18102,12 @@ var types = {};
18102
18102
  _10,
18103
18103
  _11,
18104
18104
  _12,
18105
- _13;
18106
- var _14,
18105
+ _13,
18106
+ _14,
18107
18107
  _15,
18108
18108
  _16,
18109
- _17,
18110
- _18,
18109
+ _17;
18110
+ var _18,
18111
18111
  _19,
18112
18112
  _20,
18113
18113
  _21,
@@ -18158,7 +18158,15 @@ var types = {};
18158
18158
  _66,
18159
18159
  _67,
18160
18160
  _68,
18161
- _69;
18161
+ _69,
18162
+ _70,
18163
+ _71,
18164
+ _72,
18165
+ _73,
18166
+ _74,
18167
+ _75,
18168
+ _76,
18169
+ _77;
18162
18170
  Object.defineProperty(exports, '__esModule', { value: true });
18163
18171
  exports.dexToZapMapping =
18164
18172
  exports.defaultDexFactories =
@@ -18215,6 +18223,8 @@ var types = {};
18215
18223
  ChainId[(ChainId['GRAPHLINQ'] = 614)] = 'GRAPHLINQ';
18216
18224
  ChainId[(ChainId['AVAX'] = 43114)] = 'AVAX';
18217
18225
  ChainId[(ChainId['BLAST'] = 81457)] = 'BLAST';
18226
+ ChainId[(ChainId['SINGULARITY_TESTNET'] = 751)] = 'SINGULARITY_TESTNET';
18227
+ ChainId[(ChainId['CROSSFI'] = 4158)] = 'CROSSFI';
18218
18228
  })((ChainId = exports.ChainId || (exports.ChainId = {})));
18219
18229
  var LiquidityDex
18220
18230
  ;(function (LiquidityDex) {
@@ -18260,6 +18270,10 @@ var types = {};
18260
18270
  LiquidityDex['ThrusterV2_03'] = 'ThrusterV2_03';
18261
18271
  LiquidityDex['ThrusterV2_1'] = 'ThrusterV2_1';
18262
18272
  LiquidityDex['ThrusterV3'] = 'ThrusterV3';
18273
+ //SINGULARITY TESTNET
18274
+ LiquidityDex['Citea'] = 'Citea';
18275
+ //CROSSFI
18276
+ LiquidityDex['XSwap'] = 'XSwap';
18263
18277
  })((LiquidityDex = exports.LiquidityDex || (exports.LiquidityDex = {})));
18264
18278
  (function (IchiSupportedDex) {
18265
18279
  IchiSupportedDex['Ascent'] = 'Ascent';
@@ -18570,229 +18584,262 @@ var types = {};
18570
18584
  protocol: Protocols.V3,
18571
18585
  }),
18572
18586
  _l)),
18573
- _a);
18574
- exports.defaultDexFactories =
18575
- ((_m = {}),
18576
- (_m[ChainId.MAINNET] =
18587
+ (_a[ChainId.SINGULARITY_TESTNET] =
18588
+ ((_m = {}),
18589
+ (_m[LiquidityDex.Citea] = {
18590
+ factory: '0xd8388EECE67C003eF952D32c4E3943113C5f5608',
18591
+ protocol: Protocols.V2,
18592
+ }),
18593
+ _m)),
18594
+ (_a[ChainId.CROSSFI] =
18577
18595
  ((_o = {}),
18578
- (_o[Protocols.V2] =
18579
- (_15 = (_14 = exports.dexFactories[ChainId.MAINNET]) === null || _14 === void 0 ? void 0 : _14.ApeSwapV2) ===
18580
- null || _15 === void 0
18581
- ? void 0
18582
- : _15.factory),
18583
- (_o[Protocols.V3] =
18584
- (_17 = (_16 = exports.dexFactories[ChainId.MAINNET]) === null || _16 === void 0 ? void 0 : _16.UniswapV3) ===
18585
- null || _17 === void 0
18586
- ? void 0
18587
- : _17.factory),
18596
+ (_o[LiquidityDex.XSwap] = {
18597
+ factory: '0x3ca837175312070f4E4fF64972a199122Ee03805',
18598
+ protocol: Protocols.V2,
18599
+ }),
18588
18600
  _o)),
18589
- (_m[ChainId.BSC] =
18590
- ((_p = {}),
18591
- (_p[Protocols.V2] =
18592
- (_19 = (_18 = exports.dexFactories[ChainId.BSC]) === null || _18 === void 0 ? void 0 : _18.ApeSwapV2) === null ||
18593
- _19 === void 0
18601
+ _a);
18602
+ exports.defaultDexFactories =
18603
+ ((_p = {}),
18604
+ (_p[ChainId.MAINNET] =
18605
+ ((_q = {}),
18606
+ (_q[Protocols.V2] =
18607
+ (_19 = (_18 = exports.dexFactories[ChainId.MAINNET]) === null || _18 === void 0 ? void 0 : _18.ApeSwapV2) ===
18608
+ null || _19 === void 0
18594
18609
  ? void 0
18595
18610
  : _19.factory),
18596
- (_p[Protocols.V3] =
18597
- (_21 = (_20 = exports.dexFactories[ChainId.BSC]) === null || _20 === void 0 ? void 0 : _20.UniswapV3) === null ||
18598
- _21 === void 0
18611
+ (_q[Protocols.V3] =
18612
+ (_21 = (_20 = exports.dexFactories[ChainId.MAINNET]) === null || _20 === void 0 ? void 0 : _20.UniswapV3) ===
18613
+ null || _21 === void 0
18599
18614
  ? void 0
18600
18615
  : _21.factory),
18601
- (_p[Protocols.Algebra] =
18602
- (_23 = (_22 = exports.dexFactories[ChainId.BSC]) === null || _22 === void 0 ? void 0 : _22.Algebra) === null ||
18616
+ _q)),
18617
+ (_p[ChainId.BSC] =
18618
+ ((_r = {}),
18619
+ (_r[Protocols.V2] =
18620
+ (_23 = (_22 = exports.dexFactories[ChainId.BSC]) === null || _22 === void 0 ? void 0 : _22.ApeSwapV2) === null ||
18603
18621
  _23 === void 0
18604
18622
  ? void 0
18605
18623
  : _23.factory),
18606
- (_p[Protocols.Solidly] =
18607
- (_25 = (_24 = exports.dexFactories[ChainId.BSC]) === null || _24 === void 0 ? void 0 : _24.ThenaV1) === null ||
18624
+ (_r[Protocols.V3] =
18625
+ (_25 = (_24 = exports.dexFactories[ChainId.BSC]) === null || _24 === void 0 ? void 0 : _24.UniswapV3) === null ||
18608
18626
  _25 === void 0
18609
18627
  ? void 0
18610
18628
  : _25.factory),
18611
- _p)),
18612
- (_m[ChainId.MATIC] =
18613
- ((_q = {}),
18614
- (_q[Protocols.V2] =
18615
- (_27 = (_26 = exports.dexFactories[ChainId.MATIC]) === null || _26 === void 0 ? void 0 : _26.ApeSwapV2) ===
18616
- null || _27 === void 0
18629
+ (_r[Protocols.Algebra] =
18630
+ (_27 = (_26 = exports.dexFactories[ChainId.BSC]) === null || _26 === void 0 ? void 0 : _26.Algebra) === null ||
18631
+ _27 === void 0
18617
18632
  ? void 0
18618
18633
  : _27.factory),
18619
- (_q[Protocols.V3] =
18620
- (_29 = (_28 = exports.dexFactories[ChainId.MATIC]) === null || _28 === void 0 ? void 0 : _28.UniswapV3) ===
18621
- null || _29 === void 0
18634
+ (_r[Protocols.Solidly] =
18635
+ (_29 = (_28 = exports.dexFactories[ChainId.BSC]) === null || _28 === void 0 ? void 0 : _28.ThenaV1) === null ||
18636
+ _29 === void 0
18622
18637
  ? void 0
18623
18638
  : _29.factory),
18624
- (_q[Protocols.Algebra] =
18625
- (_31 = (_30 = exports.dexFactories[ChainId.MATIC]) === null || _30 === void 0 ? void 0 : _30.Algebra) === null ||
18626
- _31 === void 0
18639
+ _r)),
18640
+ (_p[ChainId.MATIC] =
18641
+ ((_s = {}),
18642
+ (_s[Protocols.V2] =
18643
+ (_31 = (_30 = exports.dexFactories[ChainId.MATIC]) === null || _30 === void 0 ? void 0 : _30.ApeSwapV2) ===
18644
+ null || _31 === void 0
18627
18645
  ? void 0
18628
18646
  : _31.factory),
18629
- _q)),
18630
- (_m[ChainId.ARBITRUM] =
18631
- ((_r = {}),
18632
- (_r[Protocols.V2] =
18633
- (_33 = (_32 = exports.dexFactories[ChainId.ARBITRUM]) === null || _32 === void 0 ? void 0 : _32.ApeSwapV2) ===
18647
+ (_s[Protocols.V3] =
18648
+ (_33 = (_32 = exports.dexFactories[ChainId.MATIC]) === null || _32 === void 0 ? void 0 : _32.UniswapV3) ===
18634
18649
  null || _33 === void 0
18635
18650
  ? void 0
18636
18651
  : _33.factory),
18637
- (_r[Protocols.V3] =
18638
- (_35 = (_34 = exports.dexFactories[ChainId.ARBITRUM]) === null || _34 === void 0 ? void 0 : _34.UniswapV3) ===
18639
- null || _35 === void 0
18652
+ (_s[Protocols.Algebra] =
18653
+ (_35 = (_34 = exports.dexFactories[ChainId.MATIC]) === null || _34 === void 0 ? void 0 : _34.Algebra) === null ||
18654
+ _35 === void 0
18640
18655
  ? void 0
18641
18656
  : _35.factory),
18642
- (_r[Protocols.Algebra] =
18643
- (_37 = (_36 = exports.dexFactories[ChainId.ARBITRUM]) === null || _36 === void 0 ? void 0 : _36.Algebra) ===
18657
+ _s)),
18658
+ (_p[ChainId.ARBITRUM] =
18659
+ ((_t = {}),
18660
+ (_t[Protocols.V2] =
18661
+ (_37 = (_36 = exports.dexFactories[ChainId.ARBITRUM]) === null || _36 === void 0 ? void 0 : _36.ApeSwapV2) ===
18644
18662
  null || _37 === void 0
18645
18663
  ? void 0
18646
18664
  : _37.factory),
18647
- (_r[Protocols.Curve] =
18648
- (_39 = (_38 = exports.dexFactories[ChainId.ARBITRUM]) === null || _38 === void 0 ? void 0 : _38.Curve) === null ||
18649
- _39 === void 0
18665
+ (_t[Protocols.V3] =
18666
+ (_39 = (_38 = exports.dexFactories[ChainId.ARBITRUM]) === null || _38 === void 0 ? void 0 : _38.UniswapV3) ===
18667
+ null || _39 === void 0
18650
18668
  ? void 0
18651
18669
  : _39.factory),
18652
- _r)),
18653
- (_m[ChainId.LINEA] =
18654
- ((_s = {}),
18655
- (_s[Protocols.V2] =
18656
- (_41 = (_40 = exports.dexFactories[ChainId.LINEA]) === null || _40 === void 0 ? void 0 : _40.Spartadex) ===
18670
+ (_t[Protocols.Algebra] =
18671
+ (_41 = (_40 = exports.dexFactories[ChainId.ARBITRUM]) === null || _40 === void 0 ? void 0 : _40.Algebra) ===
18657
18672
  null || _41 === void 0
18658
18673
  ? void 0
18659
18674
  : _41.factory),
18660
- (_s[Protocols.V3] =
18661
- (_43 = (_42 = exports.dexFactories[ChainId.LINEA]) === null || _42 === void 0 ? void 0 : _42.Nile) === null ||
18675
+ (_t[Protocols.Curve] =
18676
+ (_43 = (_42 = exports.dexFactories[ChainId.ARBITRUM]) === null || _42 === void 0 ? void 0 : _42.Curve) === null ||
18662
18677
  _43 === void 0
18663
18678
  ? void 0
18664
18679
  : _43.factory),
18665
- (_s[Protocols.Algebra] =
18666
- (_45 = (_44 = exports.dexFactories[ChainId.LINEA]) === null || _44 === void 0 ? void 0 : _44.Algebra) === null ||
18667
- _45 === void 0
18680
+ _t)),
18681
+ (_p[ChainId.LINEA] =
18682
+ ((_u = {}),
18683
+ (_u[Protocols.V2] =
18684
+ (_45 = (_44 = exports.dexFactories[ChainId.LINEA]) === null || _44 === void 0 ? void 0 : _44.Spartadex) ===
18685
+ null || _45 === void 0
18668
18686
  ? void 0
18669
18687
  : _45.factory),
18670
- (_s[Protocols.Solidly] =
18671
- (_47 = (_46 = exports.dexFactories[ChainId.LINEA]) === null || _46 === void 0 ? void 0 : _46.Lynex) === null ||
18688
+ (_u[Protocols.V3] =
18689
+ (_47 = (_46 = exports.dexFactories[ChainId.LINEA]) === null || _46 === void 0 ? void 0 : _46.Nile) === null ||
18672
18690
  _47 === void 0
18673
18691
  ? void 0
18674
18692
  : _47.factory),
18675
- (_s[Protocols.XFAI] =
18676
- (_49 = (_48 = exports.dexFactories[ChainId.LINEA]) === null || _48 === void 0 ? void 0 : _48.XFAI) === null ||
18693
+ (_u[Protocols.Algebra] =
18694
+ (_49 = (_48 = exports.dexFactories[ChainId.LINEA]) === null || _48 === void 0 ? void 0 : _48.Algebra) === null ||
18677
18695
  _49 === void 0
18678
18696
  ? void 0
18679
18697
  : _49.factory),
18680
- _s)),
18681
- (_m[ChainId.LIGHTLINK] =
18682
- ((_t = {}),
18683
- (_t[Protocols.V3] =
18684
- (_51 = (_50 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _50 === void 0 ? void 0 : _50.Elektrik) ===
18685
- null || _51 === void 0
18698
+ (_u[Protocols.Solidly] =
18699
+ (_51 = (_50 = exports.dexFactories[ChainId.LINEA]) === null || _50 === void 0 ? void 0 : _50.Lynex) === null ||
18700
+ _51 === void 0
18686
18701
  ? void 0
18687
18702
  : _51.factory),
18688
- _t)),
18689
- (_m[ChainId.BASE] =
18690
- ((_u = {}),
18691
- (_u[Protocols.V2] =
18692
- (_53 = (_52 = exports.dexFactories[ChainId.BASE]) === null || _52 === void 0 ? void 0 : _52.SmarDex) === null ||
18703
+ (_u[Protocols.XFAI] =
18704
+ (_53 = (_52 = exports.dexFactories[ChainId.LINEA]) === null || _52 === void 0 ? void 0 : _52.XFAI) === null ||
18693
18705
  _53 === void 0
18694
18706
  ? void 0
18695
18707
  : _53.factory),
18696
- (_u[Protocols.V3] =
18697
- (_55 = (_54 = exports.dexFactories[ChainId.BASE]) === null || _54 === void 0 ? void 0 : _54.UniswapV3) === null ||
18698
- _55 === void 0
18708
+ _u)),
18709
+ (_p[ChainId.LIGHTLINK] =
18710
+ ((_v = {}),
18711
+ (_v[Protocols.V3] =
18712
+ (_55 = (_54 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _54 === void 0 ? void 0 : _54.Elektrik) ===
18713
+ null || _55 === void 0
18699
18714
  ? void 0
18700
18715
  : _55.factory),
18701
- (_u[Protocols.Algebra] =
18702
- (_57 = (_56 = exports.dexFactories[ChainId.BASE]) === null || _56 === void 0 ? void 0 : _56.Algebra) === null ||
18716
+ _v)),
18717
+ (_p[ChainId.BASE] =
18718
+ ((_w = {}),
18719
+ (_w[Protocols.V2] =
18720
+ (_57 = (_56 = exports.dexFactories[ChainId.BASE]) === null || _56 === void 0 ? void 0 : _56.SmarDex) === null ||
18703
18721
  _57 === void 0
18704
18722
  ? void 0
18705
18723
  : _57.factory),
18706
- (_u[Protocols.Solidly] =
18707
- (_59 = (_58 = exports.dexFactories[ChainId.BASE]) === null || _58 === void 0 ? void 0 : _58.Aerodrome) === null ||
18724
+ (_w[Protocols.V3] =
18725
+ (_59 = (_58 = exports.dexFactories[ChainId.BASE]) === null || _58 === void 0 ? void 0 : _58.UniswapV3) === null ||
18708
18726
  _59 === void 0
18709
18727
  ? void 0
18710
18728
  : _59.factory),
18711
- _u)),
18712
- (_m[ChainId.IOTA] =
18713
- ((_v = {}),
18714
- (_v[Protocols.V2] =
18715
- (_61 = (_60 = exports.dexFactories[ChainId.IOTA]) === null || _60 === void 0 ? void 0 : _60.MagicSea) === null ||
18729
+ (_w[Protocols.Algebra] =
18730
+ (_61 = (_60 = exports.dexFactories[ChainId.BASE]) === null || _60 === void 0 ? void 0 : _60.Algebra) === null ||
18716
18731
  _61 === void 0
18717
18732
  ? void 0
18718
18733
  : _61.factory),
18719
- _v)),
18720
- (_m[ChainId.AVAX] =
18721
- ((_w = {}),
18722
- (_w[Protocols.V2] =
18723
- (_63 = (_62 = exports.dexFactories[ChainId.AVAX]) === null || _62 === void 0 ? void 0 : _62.LFJ) === null ||
18734
+ (_w[Protocols.Solidly] =
18735
+ (_63 = (_62 = exports.dexFactories[ChainId.BASE]) === null || _62 === void 0 ? void 0 : _62.Aerodrome) === null ||
18724
18736
  _63 === void 0
18725
18737
  ? void 0
18726
18738
  : _63.factory),
18727
- (_w[Protocols.V3] =
18728
- (_65 = (_64 = exports.dexFactories[ChainId.AVAX]) === null || _64 === void 0 ? void 0 : _64.Pharaoh) === null ||
18729
- _65 === void 0
18730
- ? void 0
18731
- : _65.factory),
18732
18739
  _w)),
18733
- (_m[ChainId.BLAST] =
18740
+ (_p[ChainId.IOTA] =
18734
18741
  ((_x = {}),
18735
18742
  (_x[Protocols.V2] =
18736
- (_67 = (_66 = exports.dexFactories[ChainId.BLAST]) === null || _66 === void 0 ? void 0 : _66.ThrusterV2_03) ===
18737
- null || _67 === void 0
18743
+ (_65 = (_64 = exports.dexFactories[ChainId.IOTA]) === null || _64 === void 0 ? void 0 : _64.MagicSea) === null ||
18744
+ _65 === void 0
18745
+ ? void 0
18746
+ : _65.factory),
18747
+ _x)),
18748
+ (_p[ChainId.AVAX] =
18749
+ ((_y = {}),
18750
+ (_y[Protocols.V2] =
18751
+ (_67 = (_66 = exports.dexFactories[ChainId.AVAX]) === null || _66 === void 0 ? void 0 : _66.LFJ) === null ||
18752
+ _67 === void 0
18738
18753
  ? void 0
18739
18754
  : _67.factory),
18740
- (_x[Protocols.V3] =
18741
- (_69 = (_68 = exports.dexFactories[ChainId.BLAST]) === null || _68 === void 0 ? void 0 : _68.ThrusterV3) ===
18742
- null || _69 === void 0
18755
+ (_y[Protocols.V3] =
18756
+ (_69 = (_68 = exports.dexFactories[ChainId.AVAX]) === null || _68 === void 0 ? void 0 : _68.Pharaoh) === null ||
18757
+ _69 === void 0
18743
18758
  ? void 0
18744
18759
  : _69.factory),
18745
- _x)),
18746
- _m);
18747
- exports.dexToZapMapping =
18748
- ((_y = {}),
18749
- (_y[LiquidityDex.ApeSwapV2] =
18760
+ _y)),
18761
+ (_p[ChainId.BLAST] =
18750
18762
  ((_z = {}),
18751
- (_z[ChainId.BSC] = ZapVersion.SoulZap),
18752
- (_z[ChainId.BSC_TESTNET] = ZapVersion.ZapV1),
18753
- (_z[ChainId.MATIC] = ZapVersion.ZapV1),
18754
- (_z[ChainId.MATIC_TESTNET] = ZapVersion.ZapV1),
18755
- (_z[ChainId.MAINNET] = ZapVersion.ZapV1),
18756
- (_z[ChainId.ARBITRUM] = ZapVersion.External),
18757
- (_z[ChainId.TLOS] = ZapVersion.ZapV1),
18763
+ (_z[Protocols.V2] =
18764
+ (_71 = (_70 = exports.dexFactories[ChainId.BLAST]) === null || _70 === void 0 ? void 0 : _70.ThrusterV2_03) ===
18765
+ null || _71 === void 0
18766
+ ? void 0
18767
+ : _71.factory),
18768
+ (_z[Protocols.V3] =
18769
+ (_73 = (_72 = exports.dexFactories[ChainId.BLAST]) === null || _72 === void 0 ? void 0 : _72.ThrusterV3) ===
18770
+ null || _73 === void 0
18771
+ ? void 0
18772
+ : _73.factory),
18758
18773
  _z)),
18759
- (_y[LiquidityDex.Algebra] =
18774
+ (_p[ChainId.SINGULARITY_TESTNET] =
18760
18775
  ((_0 = {}),
18761
- (_0[ChainId.BSC] = ZapVersion.SoulZapApi),
18762
- (_0[ChainId.MATIC] = ZapVersion.SoulZapApi),
18763
- (_0[ChainId.LINEA] = ZapVersion.SoulZapApi),
18776
+ (_0[Protocols.V2] =
18777
+ (_75 =
18778
+ (_74 = exports.dexFactories[ChainId.SINGULARITY_TESTNET]) === null || _74 === void 0 ? void 0 : _74.Citea) ===
18779
+ null || _75 === void 0
18780
+ ? void 0
18781
+ : _75.factory),
18764
18782
  _0)),
18765
- (_y[LiquidityDex.PancakeSwapV2] =
18766
- ((_1 = {}), (_1[ChainId.BSC] = ZapVersion.SoulZap), (_1[ChainId.MAINNET] = ZapVersion.External), _1)),
18767
- (_y[LiquidityDex.QuickswapV2] = ((_2 = {}), (_2[ChainId.MATIC] = ZapVersion.SoulZap), _2)),
18768
- (_y[LiquidityDex.ApeSwapV3] = {}),
18769
- (_y[LiquidityDex.UniswapV3] =
18770
- ((_3 = {}), (_3[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), (_3[ChainId.MATIC] = ZapVersion.SoulZapApi), _3)),
18771
- (_y[LiquidityDex.ThenaV1] = ((_4 = {}), (_4[ChainId.BSC] = ZapVersion.SoulZapApi), _4)),
18772
- (_y[LiquidityDex.UniswapV2] = ((_5 = {}), (_5[ChainId.BASE] = ZapVersion.SoulZapApi), _5)),
18773
- (_y[LiquidityDex.PancakeSwapV3] = {}),
18774
- (_y[LiquidityDex.External] = {}),
18775
- (_y[LiquidityDex.Spartadex] = {}),
18776
- (_y[LiquidityDex.Nile] = {}),
18777
- (_y[LiquidityDex.XFAI] = {}),
18778
- (_y[LiquidityDex.Lynex] = {}),
18779
- (_y[LiquidityDex.Metavault] = {}),
18780
- (_y[LiquidityDex.Elektrik] = {}),
18781
- (_y[LiquidityDex.SushiSwapV3] = {}),
18782
- (_y[LiquidityDex.Synthswap] = {}),
18783
- (_y[LiquidityDex.Aerodrome] = ((_6 = {}), (_6[ChainId.BASE] = ZapVersion.SoulZapApi), _6)),
18784
- (_y[LiquidityDex.SmarDex] = {}),
18785
- (_y[LiquidityDex.MagicSea] = ((_7 = {}), (_7[ChainId.IOTA] = ZapVersion.External), _7)),
18786
- (_y[LiquidityDex.Wagmi] = ((_8 = {}), (_8[ChainId.IOTA] = ZapVersion.External), _8)),
18787
- (_y[LiquidityDex.CamelotV2] = ((_9 = {}), (_9[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), _9)),
18788
- (_y[LiquidityDex.LFJ] = ((_10 = {}), (_10[ChainId.AVAX] = ZapVersion.SoulZapApi), _10)),
18789
- (_y[LiquidityDex.Pharaoh] = {}),
18790
- (_y[LiquidityDex.Pangolin] = ((_11 = {}), (_11[ChainId.AVAX] = ZapVersion.SoulZapApi), _11)),
18791
- (_y[LiquidityDex.Curve] = {}),
18792
- (_y[LiquidityDex.ThrusterV2_03] = ((_12 = {}), (_12[ChainId.BLAST] = ZapVersion.SoulZapApi), _12)),
18793
- (_y[LiquidityDex.ThrusterV2_1] = ((_13 = {}), (_13[ChainId.BLAST] = ZapVersion.SoulZapApi), _13)),
18794
- (_y[LiquidityDex.ThrusterV3] = {}),
18795
- _y);
18783
+ (_p[ChainId.CROSSFI] =
18784
+ ((_1 = {}),
18785
+ (_1[Protocols.V2] =
18786
+ (_77 = (_76 = exports.dexFactories[ChainId.CROSSFI]) === null || _76 === void 0 ? void 0 : _76.XSwap) === null ||
18787
+ _77 === void 0
18788
+ ? void 0
18789
+ : _77.factory),
18790
+ _1)),
18791
+ _p);
18792
+ exports.dexToZapMapping =
18793
+ ((_2 = {}),
18794
+ (_2[LiquidityDex.ApeSwapV2] =
18795
+ ((_3 = {}),
18796
+ (_3[ChainId.BSC] = ZapVersion.SoulZap),
18797
+ (_3[ChainId.BSC_TESTNET] = ZapVersion.ZapV1),
18798
+ (_3[ChainId.MATIC] = ZapVersion.ZapV1),
18799
+ (_3[ChainId.MATIC_TESTNET] = ZapVersion.ZapV1),
18800
+ (_3[ChainId.MAINNET] = ZapVersion.ZapV1),
18801
+ (_3[ChainId.ARBITRUM] = ZapVersion.External),
18802
+ (_3[ChainId.TLOS] = ZapVersion.ZapV1),
18803
+ _3)),
18804
+ (_2[LiquidityDex.Algebra] =
18805
+ ((_4 = {}),
18806
+ (_4[ChainId.BSC] = ZapVersion.SoulZapApi),
18807
+ (_4[ChainId.MATIC] = ZapVersion.SoulZapApi),
18808
+ (_4[ChainId.LINEA] = ZapVersion.SoulZapApi),
18809
+ _4)),
18810
+ (_2[LiquidityDex.PancakeSwapV2] =
18811
+ ((_5 = {}), (_5[ChainId.BSC] = ZapVersion.SoulZap), (_5[ChainId.MAINNET] = ZapVersion.External), _5)),
18812
+ (_2[LiquidityDex.QuickswapV2] = ((_6 = {}), (_6[ChainId.MATIC] = ZapVersion.SoulZap), _6)),
18813
+ (_2[LiquidityDex.ApeSwapV3] = {}),
18814
+ (_2[LiquidityDex.UniswapV3] =
18815
+ ((_7 = {}), (_7[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), (_7[ChainId.MATIC] = ZapVersion.SoulZapApi), _7)),
18816
+ (_2[LiquidityDex.ThenaV1] = ((_8 = {}), (_8[ChainId.BSC] = ZapVersion.SoulZapApi), _8)),
18817
+ (_2[LiquidityDex.UniswapV2] = ((_9 = {}), (_9[ChainId.BASE] = ZapVersion.SoulZapApi), _9)),
18818
+ (_2[LiquidityDex.PancakeSwapV3] = {}),
18819
+ (_2[LiquidityDex.External] = {}),
18820
+ (_2[LiquidityDex.Spartadex] = {}),
18821
+ (_2[LiquidityDex.Nile] = {}),
18822
+ (_2[LiquidityDex.XFAI] = {}),
18823
+ (_2[LiquidityDex.Lynex] = {}),
18824
+ (_2[LiquidityDex.Metavault] = {}),
18825
+ (_2[LiquidityDex.Elektrik] = {}),
18826
+ (_2[LiquidityDex.SushiSwapV3] = {}),
18827
+ (_2[LiquidityDex.Synthswap] = {}),
18828
+ (_2[LiquidityDex.Aerodrome] = ((_10 = {}), (_10[ChainId.BASE] = ZapVersion.SoulZapApi), _10)),
18829
+ (_2[LiquidityDex.SmarDex] = {}),
18830
+ (_2[LiquidityDex.MagicSea] = ((_11 = {}), (_11[ChainId.IOTA] = ZapVersion.External), _11)),
18831
+ (_2[LiquidityDex.Wagmi] = ((_12 = {}), (_12[ChainId.IOTA] = ZapVersion.External), _12)),
18832
+ (_2[LiquidityDex.CamelotV2] = ((_13 = {}), (_13[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), _13)),
18833
+ (_2[LiquidityDex.LFJ] = ((_14 = {}), (_14[ChainId.AVAX] = ZapVersion.SoulZapApi), _14)),
18834
+ (_2[LiquidityDex.Pharaoh] = {}),
18835
+ (_2[LiquidityDex.Pangolin] = ((_15 = {}), (_15[ChainId.AVAX] = ZapVersion.SoulZapApi), _15)),
18836
+ (_2[LiquidityDex.Curve] = {}),
18837
+ (_2[LiquidityDex.ThrusterV2_03] = ((_16 = {}), (_16[ChainId.BLAST] = ZapVersion.SoulZapApi), _16)),
18838
+ (_2[LiquidityDex.ThrusterV2_1] = ((_17 = {}), (_17[ChainId.BLAST] = ZapVersion.SoulZapApi), _17)),
18839
+ (_2[LiquidityDex.ThrusterV3] = {}),
18840
+ (_2[LiquidityDex.Citea] = {}),
18841
+ (_2[LiquidityDex.XSwap] = {}),
18842
+ _2);
18796
18843
 
18797
18844
  } (types));
18798
18845
 
@@ -71278,7 +71325,7 @@ function useBondsData() {
71278
71325
  return useQuery({
71279
71326
  queryKey: [QUERY_KEYS.BONDS_DATA],
71280
71327
  queryFn: () => getBondsData(realTimeApiURL, tokenPrices, bondList),
71281
- refetchInterval: 45000, // i.e. 45 sec
71328
+ refetchInterval: 20000, // i.e. 20 sec
71282
71329
  refetchOnWindowFocus: false,
71283
71330
  retry: 1,
71284
71331
  initialData: [],
@@ -71290,6 +71337,7 @@ const getBondsData = (realTimeApiURL, tokenPrices, bondList) => __awaiter$9(void
71290
71337
  return response.data.bonds;
71291
71338
  }
71292
71339
  catch (_a) {
71340
+ console.time('Fallback'); // Start debug timer
71293
71341
  const billData = [];
71294
71342
  if (tokenPrices && bondList) {
71295
71343
  yield Promise.all(MAINNET_CHAINS.map((chainId) => __awaiter$9(void 0, void 0, void 0, function* () {
@@ -71304,6 +71352,7 @@ const getBondsData = (realTimeApiURL, tokenPrices, bondList) => __awaiter$9(void
71304
71352
  billData.push(returnedBills);
71305
71353
  })));
71306
71354
  }
71355
+ console.timeEnd(`Fallback`); // End chain-specific timer
71307
71356
  return billData === null || billData === void 0 ? void 0 : billData.flat();
71308
71357
  }
71309
71358
  });
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": "2.7.8",
6
+ "version": "2.7.9",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",