@ape.swap/bonds-sdk 2.7.6-test.1 → 2.7.6
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,5 @@
|
|
|
1
1
|
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
2
2
|
export declare const supportedByLIFI: ChainId[];
|
|
3
|
-
export declare const APESWAP_LIST_REPO = "https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/
|
|
3
|
+
export declare const APESWAP_LIST_REPO = "https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging";
|
|
4
4
|
export declare const STRAPI_URL = "https://strapi-api.ape.bond";
|
|
5
5
|
export declare const SOUL_ZAP_API = "https://zap-api.ape.bond/zap?batch=1";
|
package/dist/main.js
CHANGED
|
@@ -18104,10 +18104,10 @@ var types = {};
|
|
|
18104
18104
|
_12,
|
|
18105
18105
|
_13,
|
|
18106
18106
|
_14,
|
|
18107
|
-
_15
|
|
18108
|
-
|
|
18109
|
-
_17
|
|
18110
|
-
|
|
18107
|
+
_15,
|
|
18108
|
+
_16,
|
|
18109
|
+
_17;
|
|
18110
|
+
var _18,
|
|
18111
18111
|
_19,
|
|
18112
18112
|
_20,
|
|
18113
18113
|
_21,
|
|
@@ -18162,7 +18162,11 @@ var types = {};
|
|
|
18162
18162
|
_70,
|
|
18163
18163
|
_71,
|
|
18164
18164
|
_72,
|
|
18165
|
-
_73
|
|
18165
|
+
_73,
|
|
18166
|
+
_74,
|
|
18167
|
+
_75,
|
|
18168
|
+
_76,
|
|
18169
|
+
_77;
|
|
18166
18170
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
18167
18171
|
exports.dexToZapMapping =
|
|
18168
18172
|
exports.defaultDexFactories =
|
|
@@ -18268,6 +18272,8 @@ var types = {};
|
|
|
18268
18272
|
LiquidityDex['ThrusterV3'] = 'ThrusterV3';
|
|
18269
18273
|
//SINGULARITY TESTNET
|
|
18270
18274
|
LiquidityDex['Citea'] = 'Citea';
|
|
18275
|
+
//CROSSFI
|
|
18276
|
+
LiquidityDex['XSwap'] = 'XSwap';
|
|
18271
18277
|
})((LiquidityDex = exports.LiquidityDex || (exports.LiquidityDex = {})));
|
|
18272
18278
|
(function (IchiSupportedDex) {
|
|
18273
18279
|
IchiSupportedDex['Ascent'] = 'Ascent';
|
|
@@ -18585,239 +18591,255 @@ var types = {};
|
|
|
18585
18591
|
protocol: Protocols.V2,
|
|
18586
18592
|
}),
|
|
18587
18593
|
_m)),
|
|
18594
|
+
(_a[ChainId.CROSSFI] =
|
|
18595
|
+
((_o = {}),
|
|
18596
|
+
(_o[LiquidityDex.XSwap] = {
|
|
18597
|
+
factory: '0x3ca837175312070f4E4fF64972a199122Ee03805',
|
|
18598
|
+
protocol: Protocols.V2,
|
|
18599
|
+
}),
|
|
18600
|
+
_o)),
|
|
18588
18601
|
_a);
|
|
18589
18602
|
exports.defaultDexFactories =
|
|
18590
|
-
((
|
|
18591
|
-
(
|
|
18592
|
-
((
|
|
18593
|
-
(
|
|
18594
|
-
(
|
|
18595
|
-
null || _17 === void 0
|
|
18596
|
-
? void 0
|
|
18597
|
-
: _17.factory),
|
|
18598
|
-
(_p[Protocols.V3] =
|
|
18599
|
-
(_19 = (_18 = exports.dexFactories[ChainId.MAINNET]) === null || _18 === void 0 ? void 0 : _18.UniswapV3) ===
|
|
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) ===
|
|
18600
18608
|
null || _19 === void 0
|
|
18601
18609
|
? void 0
|
|
18602
18610
|
: _19.factory),
|
|
18603
|
-
|
|
18604
|
-
|
|
18605
|
-
|
|
18606
|
-
(_q[Protocols.V2] =
|
|
18607
|
-
(_21 = (_20 = exports.dexFactories[ChainId.BSC]) === null || _20 === void 0 ? void 0 : _20.ApeSwapV2) === null ||
|
|
18608
|
-
_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
|
|
18609
18614
|
? void 0
|
|
18610
18615
|
: _21.factory),
|
|
18611
|
-
|
|
18612
|
-
|
|
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 ||
|
|
18613
18621
|
_23 === void 0
|
|
18614
18622
|
? void 0
|
|
18615
18623
|
: _23.factory),
|
|
18616
|
-
(
|
|
18617
|
-
(_25 = (_24 = exports.dexFactories[ChainId.BSC]) === null || _24 === void 0 ? void 0 : _24.
|
|
18624
|
+
(_r[Protocols.V3] =
|
|
18625
|
+
(_25 = (_24 = exports.dexFactories[ChainId.BSC]) === null || _24 === void 0 ? void 0 : _24.UniswapV3) === null ||
|
|
18618
18626
|
_25 === void 0
|
|
18619
18627
|
? void 0
|
|
18620
18628
|
: _25.factory),
|
|
18621
|
-
(
|
|
18622
|
-
(_27 = (_26 = exports.dexFactories[ChainId.BSC]) === null || _26 === void 0 ? void 0 : _26.
|
|
18629
|
+
(_r[Protocols.Algebra] =
|
|
18630
|
+
(_27 = (_26 = exports.dexFactories[ChainId.BSC]) === null || _26 === void 0 ? void 0 : _26.Algebra) === null ||
|
|
18623
18631
|
_27 === void 0
|
|
18624
18632
|
? void 0
|
|
18625
18633
|
: _27.factory),
|
|
18626
|
-
|
|
18627
|
-
|
|
18628
|
-
|
|
18629
|
-
(_r[Protocols.V2] =
|
|
18630
|
-
(_29 = (_28 = exports.dexFactories[ChainId.MATIC]) === null || _28 === void 0 ? void 0 : _28.ApeSwapV2) ===
|
|
18631
|
-
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
|
|
18632
18637
|
? void 0
|
|
18633
18638
|
: _29.factory),
|
|
18634
|
-
|
|
18635
|
-
|
|
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) ===
|
|
18636
18644
|
null || _31 === void 0
|
|
18637
18645
|
? void 0
|
|
18638
18646
|
: _31.factory),
|
|
18639
|
-
(
|
|
18640
|
-
(_33 = (_32 = exports.dexFactories[ChainId.MATIC]) === null || _32 === void 0 ? void 0 : _32.
|
|
18641
|
-
|
|
18647
|
+
(_s[Protocols.V3] =
|
|
18648
|
+
(_33 = (_32 = exports.dexFactories[ChainId.MATIC]) === null || _32 === void 0 ? void 0 : _32.UniswapV3) ===
|
|
18649
|
+
null || _33 === void 0
|
|
18642
18650
|
? void 0
|
|
18643
18651
|
: _33.factory),
|
|
18644
|
-
|
|
18645
|
-
|
|
18646
|
-
|
|
18647
|
-
(_s[Protocols.V2] =
|
|
18648
|
-
(_35 = (_34 = exports.dexFactories[ChainId.ARBITRUM]) === null || _34 === void 0 ? void 0 : _34.ApeSwapV2) ===
|
|
18649
|
-
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
|
|
18650
18655
|
? void 0
|
|
18651
18656
|
: _35.factory),
|
|
18652
|
-
|
|
18653
|
-
|
|
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) ===
|
|
18654
18662
|
null || _37 === void 0
|
|
18655
18663
|
? void 0
|
|
18656
18664
|
: _37.factory),
|
|
18657
|
-
(
|
|
18658
|
-
(_39 = (_38 = exports.dexFactories[ChainId.ARBITRUM]) === null || _38 === void 0 ? void 0 : _38.
|
|
18665
|
+
(_t[Protocols.V3] =
|
|
18666
|
+
(_39 = (_38 = exports.dexFactories[ChainId.ARBITRUM]) === null || _38 === void 0 ? void 0 : _38.UniswapV3) ===
|
|
18659
18667
|
null || _39 === void 0
|
|
18660
18668
|
? void 0
|
|
18661
18669
|
: _39.factory),
|
|
18662
|
-
(
|
|
18663
|
-
(_41 = (_40 = exports.dexFactories[ChainId.ARBITRUM]) === null || _40 === void 0 ? void 0 : _40.
|
|
18664
|
-
|
|
18670
|
+
(_t[Protocols.Algebra] =
|
|
18671
|
+
(_41 = (_40 = exports.dexFactories[ChainId.ARBITRUM]) === null || _40 === void 0 ? void 0 : _40.Algebra) ===
|
|
18672
|
+
null || _41 === void 0
|
|
18665
18673
|
? void 0
|
|
18666
18674
|
: _41.factory),
|
|
18667
|
-
|
|
18668
|
-
|
|
18669
|
-
|
|
18670
|
-
(_t[Protocols.V2] =
|
|
18671
|
-
(_43 = (_42 = exports.dexFactories[ChainId.LINEA]) === null || _42 === void 0 ? void 0 : _42.Spartadex) ===
|
|
18672
|
-
null || _43 === void 0
|
|
18675
|
+
(_t[Protocols.Curve] =
|
|
18676
|
+
(_43 = (_42 = exports.dexFactories[ChainId.ARBITRUM]) === null || _42 === void 0 ? void 0 : _42.Curve) === null ||
|
|
18677
|
+
_43 === void 0
|
|
18673
18678
|
? void 0
|
|
18674
18679
|
: _43.factory),
|
|
18675
|
-
|
|
18676
|
-
|
|
18677
|
-
|
|
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
|
|
18678
18686
|
? void 0
|
|
18679
18687
|
: _45.factory),
|
|
18680
|
-
(
|
|
18681
|
-
(_47 = (_46 = exports.dexFactories[ChainId.LINEA]) === null || _46 === void 0 ? void 0 : _46.
|
|
18688
|
+
(_u[Protocols.V3] =
|
|
18689
|
+
(_47 = (_46 = exports.dexFactories[ChainId.LINEA]) === null || _46 === void 0 ? void 0 : _46.Nile) === null ||
|
|
18682
18690
|
_47 === void 0
|
|
18683
18691
|
? void 0
|
|
18684
18692
|
: _47.factory),
|
|
18685
|
-
(
|
|
18686
|
-
(_49 = (_48 = exports.dexFactories[ChainId.LINEA]) === null || _48 === void 0 ? void 0 : _48.
|
|
18693
|
+
(_u[Protocols.Algebra] =
|
|
18694
|
+
(_49 = (_48 = exports.dexFactories[ChainId.LINEA]) === null || _48 === void 0 ? void 0 : _48.Algebra) === null ||
|
|
18687
18695
|
_49 === void 0
|
|
18688
18696
|
? void 0
|
|
18689
18697
|
: _49.factory),
|
|
18690
|
-
(
|
|
18691
|
-
(_51 = (_50 = exports.dexFactories[ChainId.LINEA]) === null || _50 === void 0 ? void 0 : _50.
|
|
18698
|
+
(_u[Protocols.Solidly] =
|
|
18699
|
+
(_51 = (_50 = exports.dexFactories[ChainId.LINEA]) === null || _50 === void 0 ? void 0 : _50.Lynex) === null ||
|
|
18692
18700
|
_51 === void 0
|
|
18693
18701
|
? void 0
|
|
18694
18702
|
: _51.factory),
|
|
18695
|
-
|
|
18696
|
-
|
|
18697
|
-
|
|
18698
|
-
(_u[Protocols.V3] =
|
|
18699
|
-
(_53 = (_52 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _52 === void 0 ? void 0 : _52.Elektrik) ===
|
|
18700
|
-
null || _53 === void 0
|
|
18703
|
+
(_u[Protocols.XFAI] =
|
|
18704
|
+
(_53 = (_52 = exports.dexFactories[ChainId.LINEA]) === null || _52 === void 0 ? void 0 : _52.XFAI) === null ||
|
|
18705
|
+
_53 === void 0
|
|
18701
18706
|
? void 0
|
|
18702
18707
|
: _53.factory),
|
|
18703
18708
|
_u)),
|
|
18704
|
-
(
|
|
18709
|
+
(_p[ChainId.LIGHTLINK] =
|
|
18705
18710
|
((_v = {}),
|
|
18706
|
-
(_v[Protocols.
|
|
18707
|
-
(_55 = (_54 = exports.dexFactories[ChainId.
|
|
18708
|
-
|
|
18711
|
+
(_v[Protocols.V3] =
|
|
18712
|
+
(_55 = (_54 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _54 === void 0 ? void 0 : _54.Elektrik) ===
|
|
18713
|
+
null || _55 === void 0
|
|
18709
18714
|
? void 0
|
|
18710
18715
|
: _55.factory),
|
|
18711
|
-
|
|
18712
|
-
|
|
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 ||
|
|
18713
18721
|
_57 === void 0
|
|
18714
18722
|
? void 0
|
|
18715
18723
|
: _57.factory),
|
|
18716
|
-
(
|
|
18717
|
-
(_59 = (_58 = exports.dexFactories[ChainId.BASE]) === null || _58 === void 0 ? void 0 : _58.
|
|
18724
|
+
(_w[Protocols.V3] =
|
|
18725
|
+
(_59 = (_58 = exports.dexFactories[ChainId.BASE]) === null || _58 === void 0 ? void 0 : _58.UniswapV3) === null ||
|
|
18718
18726
|
_59 === void 0
|
|
18719
18727
|
? void 0
|
|
18720
18728
|
: _59.factory),
|
|
18721
|
-
(
|
|
18722
|
-
(_61 = (_60 = exports.dexFactories[ChainId.BASE]) === null || _60 === void 0 ? void 0 : _60.
|
|
18729
|
+
(_w[Protocols.Algebra] =
|
|
18730
|
+
(_61 = (_60 = exports.dexFactories[ChainId.BASE]) === null || _60 === void 0 ? void 0 : _60.Algebra) === null ||
|
|
18723
18731
|
_61 === void 0
|
|
18724
18732
|
? void 0
|
|
18725
18733
|
: _61.factory),
|
|
18726
|
-
|
|
18727
|
-
|
|
18728
|
-
((_w = {}),
|
|
18729
|
-
(_w[Protocols.V2] =
|
|
18730
|
-
(_63 = (_62 = exports.dexFactories[ChainId.IOTA]) === null || _62 === void 0 ? void 0 : _62.MagicSea) === null ||
|
|
18734
|
+
(_w[Protocols.Solidly] =
|
|
18735
|
+
(_63 = (_62 = exports.dexFactories[ChainId.BASE]) === null || _62 === void 0 ? void 0 : _62.Aerodrome) === null ||
|
|
18731
18736
|
_63 === void 0
|
|
18732
18737
|
? void 0
|
|
18733
18738
|
: _63.factory),
|
|
18734
18739
|
_w)),
|
|
18735
|
-
(
|
|
18740
|
+
(_p[ChainId.IOTA] =
|
|
18736
18741
|
((_x = {}),
|
|
18737
18742
|
(_x[Protocols.V2] =
|
|
18738
|
-
(_65 = (_64 = exports.dexFactories[ChainId.
|
|
18743
|
+
(_65 = (_64 = exports.dexFactories[ChainId.IOTA]) === null || _64 === void 0 ? void 0 : _64.MagicSea) === null ||
|
|
18739
18744
|
_65 === void 0
|
|
18740
18745
|
? void 0
|
|
18741
18746
|
: _65.factory),
|
|
18742
|
-
(_x[Protocols.V3] =
|
|
18743
|
-
(_67 = (_66 = exports.dexFactories[ChainId.AVAX]) === null || _66 === void 0 ? void 0 : _66.Pharaoh) === null ||
|
|
18744
|
-
_67 === void 0
|
|
18745
|
-
? void 0
|
|
18746
|
-
: _67.factory),
|
|
18747
18747
|
_x)),
|
|
18748
|
-
(
|
|
18748
|
+
(_p[ChainId.AVAX] =
|
|
18749
18749
|
((_y = {}),
|
|
18750
18750
|
(_y[Protocols.V2] =
|
|
18751
|
-
(
|
|
18752
|
-
|
|
18751
|
+
(_67 = (_66 = exports.dexFactories[ChainId.AVAX]) === null || _66 === void 0 ? void 0 : _66.LFJ) === null ||
|
|
18752
|
+
_67 === void 0
|
|
18753
18753
|
? void 0
|
|
18754
|
-
:
|
|
18754
|
+
: _67.factory),
|
|
18755
18755
|
(_y[Protocols.V3] =
|
|
18756
|
-
(
|
|
18757
|
-
|
|
18756
|
+
(_69 = (_68 = exports.dexFactories[ChainId.AVAX]) === null || _68 === void 0 ? void 0 : _68.Pharaoh) === null ||
|
|
18757
|
+
_69 === void 0
|
|
18758
18758
|
? void 0
|
|
18759
|
-
:
|
|
18759
|
+
: _69.factory),
|
|
18760
18760
|
_y)),
|
|
18761
|
-
(
|
|
18761
|
+
(_p[ChainId.BLAST] =
|
|
18762
18762
|
((_z = {}),
|
|
18763
18763
|
(_z[Protocols.V2] =
|
|
18764
|
-
(
|
|
18765
|
-
|
|
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) ===
|
|
18766
18770
|
null || _73 === void 0
|
|
18767
18771
|
? void 0
|
|
18768
18772
|
: _73.factory),
|
|
18769
18773
|
_z)),
|
|
18770
|
-
|
|
18771
|
-
|
|
18772
|
-
|
|
18773
|
-
|
|
18774
|
+
(_p[ChainId.SINGULARITY_TESTNET] =
|
|
18775
|
+
((_0 = {}),
|
|
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),
|
|
18782
|
+
_0)),
|
|
18783
|
+
(_p[ChainId.CROSSFI] =
|
|
18774
18784
|
((_1 = {}),
|
|
18775
|
-
(_1[
|
|
18776
|
-
|
|
18777
|
-
|
|
18778
|
-
|
|
18779
|
-
|
|
18780
|
-
(_1[ChainId.ARBITRUM] = ZapVersion.External),
|
|
18781
|
-
(_1[ChainId.TLOS] = ZapVersion.ZapV1),
|
|
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),
|
|
18782
18790
|
_1)),
|
|
18783
|
-
|
|
18784
|
-
|
|
18785
|
-
|
|
18786
|
-
|
|
18787
|
-
(
|
|
18788
|
-
|
|
18789
|
-
|
|
18790
|
-
(
|
|
18791
|
-
|
|
18792
|
-
|
|
18793
|
-
|
|
18794
|
-
(
|
|
18795
|
-
|
|
18796
|
-
(
|
|
18797
|
-
|
|
18798
|
-
|
|
18799
|
-
|
|
18800
|
-
|
|
18801
|
-
|
|
18802
|
-
(
|
|
18803
|
-
|
|
18804
|
-
(
|
|
18805
|
-
(
|
|
18806
|
-
(
|
|
18807
|
-
|
|
18808
|
-
(
|
|
18809
|
-
(
|
|
18810
|
-
(
|
|
18811
|
-
(
|
|
18812
|
-
(
|
|
18813
|
-
(
|
|
18814
|
-
(
|
|
18815
|
-
(
|
|
18816
|
-
(
|
|
18817
|
-
(
|
|
18818
|
-
(
|
|
18819
|
-
(
|
|
18820
|
-
|
|
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);
|
|
18821
18843
|
|
|
18822
18844
|
} (types));
|
|
18823
18845
|
|
|
@@ -18907,7 +18929,7 @@ const supportedByLIFI = [
|
|
|
18907
18929
|
types.ChainId.BLAST,
|
|
18908
18930
|
];
|
|
18909
18931
|
// we should be good just by using staging on this, as it is only used for token images
|
|
18910
|
-
const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/
|
|
18932
|
+
const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging`;
|
|
18911
18933
|
const STRAPI_URL = `https://strapi-api.ape.bond`;
|
|
18912
18934
|
const SOUL_ZAP_API = `https://zap-api.ape.bond/zap?batch=1`;
|
|
18913
18935
|
|
|
@@ -70226,7 +70248,7 @@ function checkImageExists(fileName) {
|
|
|
70226
70248
|
});
|
|
70227
70249
|
}
|
|
70228
70250
|
|
|
70229
|
-
const LinkShare = ({ bondNFTData, userBill, }) => {
|
|
70251
|
+
const LinkShare = ({ bondNFTData, userBill, chainId, }) => {
|
|
70230
70252
|
var _a, _b, _c, _d;
|
|
70231
70253
|
const [isLoading, setIsLoading] = useState([false, false]);
|
|
70232
70254
|
const [hideTag, setHideTag] = useState(false);
|
|
@@ -70235,8 +70257,17 @@ const LinkShare = ({ bondNFTData, userBill, }) => {
|
|
|
70235
70257
|
const shareUrl = `${mainUrl}/bond-nft?bondAddress=${(_c = (_b = bondNFTData === null || bondNFTData === void 0 ? void 0 : bondNFTData.data) === null || _b === void 0 ? void 0 : _b.billNftAddress) === null || _c === void 0 ? void 0 : _c.toLowerCase()}%26bondChain=${bondNFTData === null || bondNFTData === void 0 ? void 0 : bondNFTData.chainId}%26tokenId=${userBill === null || userBill === void 0 ? void 0 : userBill.id}%26af=${(_d = bondNFTData === null || bondNFTData === void 0 ? void 0 : bondNFTData.data) === null || _d === void 0 ? void 0 : _d.createdAddressOwner}`;
|
|
70236
70258
|
const text = `I've filled my bags with $${userBill === null || userBill === void 0 ? void 0 : userBill.bond.earnToken.symbol} at a discount, thanks to Bonds-only on @apebond! Check it out: `;
|
|
70237
70259
|
const handleShare = (url, social) => __awaiter$9(void 0, void 0, void 0, function* () {
|
|
70260
|
+
var _a;
|
|
70238
70261
|
if (isLoading[0] || isLoading[1])
|
|
70239
70262
|
return;
|
|
70263
|
+
track({
|
|
70264
|
+
event: 'referral',
|
|
70265
|
+
chain: chainId,
|
|
70266
|
+
data: {
|
|
70267
|
+
cat: `${social.toUpperCase()} Share Bond`,
|
|
70268
|
+
bond: (_a = bondNFTData === null || bondNFTData === void 0 ? void 0 : bondNFTData.data) === null || _a === void 0 ? void 0 : _a.payoutTokenData.symbol,
|
|
70269
|
+
},
|
|
70270
|
+
});
|
|
70240
70271
|
setIsLoading(social === 'x' ? [true, false] : [false, true]);
|
|
70241
70272
|
yield generateImageFromTemplate(bondNFTData, url, apiUrl);
|
|
70242
70273
|
setIsLoading([false, false]);
|
|
@@ -70322,7 +70353,7 @@ const YourBondsModal = ({ onDismiss, userBill }) => {
|
|
|
70322
70353
|
justifyContent: 'center',
|
|
70323
70354
|
alignItems: 'center',
|
|
70324
70355
|
zIndex: 1,
|
|
70325
|
-
}, children: jsx$2(Spinner, { width: 100 }) })), imgLoaded && jsx$2(LinkShare, { bondNFTData: bondNFTData, userBill: userBill })] }), jsxs(Flex$1, { className: "yourbondsmodal yourbondinfo", children: [jsxs(Flex$1, { className: "yourbondinfo title-container", children: [jsx$2(Flex$1, { className: "title-container bondicon", children: userBill && (jsx$2(TokenImage, { symbol: (_k = (_j = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _j === void 0 ? void 0 : _j.showcaseTokenName) !== null && _k !== void 0 ? _k : (_m = (_l = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _l === void 0 ? void 0 : _l.earnToken) === null || _m === void 0 ? void 0 : _m.symbol, size: 40, chain: userBill === null || userBill === void 0 ? void 0 : userBill.bond.chainId })) }), jsx$2(Flex$1, { className: "title-container tokenname", children: (_p = (_o = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _o === void 0 ? void 0 : _o.showcaseTokenName) !== null && _p !== void 0 ? _p : userBill === null || userBill === void 0 ? void 0 : userBill.bond.earnToken.symbol }), jsx$2(Flex$1, { className: "title-container tokentags", children: (_r = (_q = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _q === void 0 ? void 0 : _q.tags) === null || _r === void 0 ? void 0 : _r.slice(0, 1).map((tag) => {
|
|
70356
|
+
}, children: jsx$2(Spinner, { width: 100 }) })), imgLoaded && jsx$2(LinkShare, { bondNFTData: bondNFTData, userBill: userBill, chainId: chainId })] }), jsxs(Flex$1, { className: "yourbondsmodal yourbondinfo", children: [jsxs(Flex$1, { className: "yourbondinfo title-container", children: [jsx$2(Flex$1, { className: "title-container bondicon", children: userBill && (jsx$2(TokenImage, { symbol: (_k = (_j = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _j === void 0 ? void 0 : _j.showcaseTokenName) !== null && _k !== void 0 ? _k : (_m = (_l = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _l === void 0 ? void 0 : _l.earnToken) === null || _m === void 0 ? void 0 : _m.symbol, size: 40, chain: userBill === null || userBill === void 0 ? void 0 : userBill.bond.chainId })) }), jsx$2(Flex$1, { className: "title-container tokenname", children: (_p = (_o = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _o === void 0 ? void 0 : _o.showcaseTokenName) !== null && _p !== void 0 ? _p : userBill === null || userBill === void 0 ? void 0 : userBill.bond.earnToken.symbol }), jsx$2(Flex$1, { className: "title-container tokentags", children: (_r = (_q = userBill === null || userBill === void 0 ? void 0 : userBill.bond) === null || _q === void 0 ? void 0 : _q.tags) === null || _r === void 0 ? void 0 : _r.slice(0, 1).map((tag) => {
|
|
70326
70357
|
return (jsx$2(Flex$1, { sx: { marginRight: '10px' }, children: jsx$2(ListTag, { text: tag === null || tag === void 0 ? void 0 : tag.toUpperCase() }) }, tag));
|
|
70327
70358
|
}) }), jsxs(Text, { sx: { color: 'text', opacity: '0.6', fontSize: ['12px', '12px', '12px', '16px'] }, children: ["#", userBill === null || userBill === void 0 ? void 0 : userBill.id] })] }), jsxs(Flex$1, { className: "yourbondinfo blocks-container", children: [jsxs(Flex$1, { className: "attributes-container", children: [jsxs(Flex$1, { className: "attributes-header", sx: {
|
|
70328
70359
|
borderRadius: `${isOpenTraits ? '6px 6px 0px 0px' : 'normal'}`,
|
|
@@ -74690,7 +74721,11 @@ const BondRowsByChain = ({ bonds, hideTitles, isCampaign = false }) => {
|
|
|
74690
74721
|
const SDKConfig = useSDKConfig();
|
|
74691
74722
|
const validatedChains = (_a = SDKConfig === null || SDKConfig === void 0 ? void 0 : SDKConfig.chains) === null || _a === void 0 ? void 0 : _a.filter((chain) => MAINNET_CHAINS.includes(chain));
|
|
74692
74723
|
return (jsx$2(Flex$1, { className: "bondrowsbychain", children: validatedChains === null || validatedChains === void 0 ? void 0 : validatedChains.map((chain) => {
|
|
74693
|
-
return (jsx$2(BondRowsWithTitle, { chain: chain, bonds: bonds, hideTitles: hideTitles, showHotBonds: hideTitles
|
|
74724
|
+
return (jsx$2(BondRowsWithTitle, { chain: chain, bonds: bonds, hideTitles: hideTitles, showHotBonds: hideTitles
|
|
74725
|
+
? false
|
|
74726
|
+
: !isCampaign && SDKConfig.useHotBonds
|
|
74727
|
+
? chain === types.ChainId.BASE || chain === types.ChainId.MAINNET
|
|
74728
|
+
: false }, chain));
|
|
74694
74729
|
}) }));
|
|
74695
74730
|
};
|
|
74696
74731
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UserBill, UserBillNftData } from '../../../../types/yourbonds';
|
|
2
|
-
declare const LinkShare: ({ bondNFTData, userBill, }: {
|
|
2
|
+
declare const LinkShare: ({ bondNFTData, userBill, chainId, }: {
|
|
3
3
|
bondNFTData: UserBillNftData | undefined;
|
|
4
4
|
userBill: UserBill | undefined;
|
|
5
|
+
chainId: number;
|
|
5
6
|
}) => import("react").JSX.Element;
|
|
6
7
|
export default LinkShare;
|
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.6
|
|
6
|
+
"version": "2.7.6",
|
|
7
7
|
"module": "dist/main.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "dist/main.d.ts",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"yalc": "^1.0.0-pre.53"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@ape.swap/apeswap-lists": "3.
|
|
59
|
+
"@ape.swap/apeswap-lists": "3.78.3",
|
|
60
60
|
"@emotion/react": "11.11.4",
|
|
61
61
|
"bignumber.js": "^9.1.2",
|
|
62
62
|
"chart.js": "4.2.0",
|