@ape.swap/bonds-sdk 2.7.2 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js
CHANGED
|
@@ -18095,10 +18095,10 @@ var types = {};
|
|
|
18095
18095
|
_10,
|
|
18096
18096
|
_11,
|
|
18097
18097
|
_12,
|
|
18098
|
-
_13
|
|
18099
|
-
|
|
18100
|
-
_15
|
|
18101
|
-
|
|
18098
|
+
_13,
|
|
18099
|
+
_14,
|
|
18100
|
+
_15;
|
|
18101
|
+
var _16,
|
|
18102
18102
|
_17,
|
|
18103
18103
|
_18,
|
|
18104
18104
|
_19,
|
|
@@ -18151,7 +18151,11 @@ var types = {};
|
|
|
18151
18151
|
_66,
|
|
18152
18152
|
_67,
|
|
18153
18153
|
_68,
|
|
18154
|
-
_69
|
|
18154
|
+
_69,
|
|
18155
|
+
_70,
|
|
18156
|
+
_71,
|
|
18157
|
+
_72,
|
|
18158
|
+
_73;
|
|
18155
18159
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
18156
18160
|
exports.dexToZapMapping =
|
|
18157
18161
|
exports.defaultDexFactories =
|
|
@@ -18162,6 +18166,7 @@ var types = {};
|
|
|
18162
18166
|
exports.defaultBillArtCollection =
|
|
18163
18167
|
exports.BillArtCollection =
|
|
18164
18168
|
exports.BillVersion =
|
|
18169
|
+
exports.Wrappers =
|
|
18165
18170
|
exports.Protocols =
|
|
18166
18171
|
exports.ZapVersion =
|
|
18167
18172
|
exports.IchiSupportedDex =
|
|
@@ -18207,6 +18212,8 @@ var types = {};
|
|
|
18207
18212
|
ChainId[(ChainId['GRAPHLINQ'] = 614)] = 'GRAPHLINQ';
|
|
18208
18213
|
ChainId[(ChainId['AVAX'] = 43114)] = 'AVAX';
|
|
18209
18214
|
ChainId[(ChainId['BLAST'] = 81457)] = 'BLAST';
|
|
18215
|
+
ChainId[(ChainId['SINGULARITY_TESTNET'] = 751)] = 'SINGULARITY_TESTNET';
|
|
18216
|
+
ChainId[(ChainId['CROSSFI'] = 4158)] = 'CROSSFI';
|
|
18210
18217
|
})((ChainId = exports.ChainId || (exports.ChainId = {})));
|
|
18211
18218
|
var LiquidityDex
|
|
18212
18219
|
;(function (LiquidityDex) {
|
|
@@ -18252,6 +18259,8 @@ var types = {};
|
|
|
18252
18259
|
LiquidityDex['ThrusterV2_03'] = 'ThrusterV2_03';
|
|
18253
18260
|
LiquidityDex['ThrusterV2_1'] = 'ThrusterV2_1';
|
|
18254
18261
|
LiquidityDex['ThrusterV3'] = 'ThrusterV3';
|
|
18262
|
+
//SINGULARITY TESTNET
|
|
18263
|
+
LiquidityDex['Citea'] = 'Citea';
|
|
18255
18264
|
})((LiquidityDex = exports.LiquidityDex || (exports.LiquidityDex = {})));
|
|
18256
18265
|
(function (IchiSupportedDex) {
|
|
18257
18266
|
IchiSupportedDex['Ascent'] = 'Ascent';
|
|
@@ -18299,6 +18308,11 @@ var types = {};
|
|
|
18299
18308
|
Protocols[(Protocols['XFAI'] = 8)] = 'XFAI';
|
|
18300
18309
|
Protocols[(Protocols['Curve'] = 9)] = 'Curve';
|
|
18301
18310
|
})((Protocols = exports.Protocols || (exports.Protocols = {})));
|
|
18311
|
+
(function (Wrappers) {
|
|
18312
|
+
Wrappers[(Wrappers['Gamma'] = 0)] = 'Gamma';
|
|
18313
|
+
Wrappers[(Wrappers['Ichi'] = 1)] = 'Ichi';
|
|
18314
|
+
Wrappers[(Wrappers['Steer'] = 2)] = 'Steer';
|
|
18315
|
+
})((exports.Wrappers || (exports.Wrappers = {})));
|
|
18302
18316
|
(function (BillVersion) {
|
|
18303
18317
|
BillVersion['V1'] = 'V1';
|
|
18304
18318
|
BillVersion['V2'] = 'V2';
|
|
@@ -18444,6 +18458,10 @@ var types = {};
|
|
|
18444
18458
|
factory: '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
|
|
18445
18459
|
protocol: Protocols.Curve,
|
|
18446
18460
|
}),
|
|
18461
|
+
(_e[LiquidityDex.PancakeSwapV3] = {
|
|
18462
|
+
factory: '0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865',
|
|
18463
|
+
protocol: Protocols.V3,
|
|
18464
|
+
}),
|
|
18447
18465
|
_e)),
|
|
18448
18466
|
(_a[ChainId.LINEA] =
|
|
18449
18467
|
((_f = {}),
|
|
@@ -18553,229 +18571,246 @@ var types = {};
|
|
|
18553
18571
|
protocol: Protocols.V3,
|
|
18554
18572
|
}),
|
|
18555
18573
|
_l)),
|
|
18574
|
+
(_a[ChainId.SINGULARITY_TESTNET] =
|
|
18575
|
+
((_m = {}),
|
|
18576
|
+
(_m[LiquidityDex.Citea] = {
|
|
18577
|
+
factory: '0xd8388EECE67C003eF952D32c4E3943113C5f5608',
|
|
18578
|
+
protocol: Protocols.V2,
|
|
18579
|
+
}),
|
|
18580
|
+
_m)),
|
|
18556
18581
|
_a);
|
|
18557
18582
|
exports.defaultDexFactories =
|
|
18558
|
-
((
|
|
18559
|
-
(
|
|
18560
|
-
((
|
|
18561
|
-
(
|
|
18562
|
-
(
|
|
18563
|
-
null || _15 === void 0
|
|
18564
|
-
? void 0
|
|
18565
|
-
: _15.factory),
|
|
18566
|
-
(_o[Protocols.V3] =
|
|
18567
|
-
(_17 = (_16 = exports.dexFactories[ChainId.MAINNET]) === null || _16 === void 0 ? void 0 : _16.UniswapV3) ===
|
|
18583
|
+
((_o = {}),
|
|
18584
|
+
(_o[ChainId.MAINNET] =
|
|
18585
|
+
((_p = {}),
|
|
18586
|
+
(_p[Protocols.V2] =
|
|
18587
|
+
(_17 = (_16 = exports.dexFactories[ChainId.MAINNET]) === null || _16 === void 0 ? void 0 : _16.ApeSwapV2) ===
|
|
18568
18588
|
null || _17 === void 0
|
|
18569
18589
|
? void 0
|
|
18570
18590
|
: _17.factory),
|
|
18571
|
-
|
|
18572
|
-
|
|
18573
|
-
|
|
18574
|
-
(_p[Protocols.V2] =
|
|
18575
|
-
(_19 = (_18 = exports.dexFactories[ChainId.BSC]) === null || _18 === void 0 ? void 0 : _18.ApeSwapV2) === null ||
|
|
18576
|
-
_19 === void 0
|
|
18591
|
+
(_p[Protocols.V3] =
|
|
18592
|
+
(_19 = (_18 = exports.dexFactories[ChainId.MAINNET]) === null || _18 === void 0 ? void 0 : _18.UniswapV3) ===
|
|
18593
|
+
null || _19 === void 0
|
|
18577
18594
|
? void 0
|
|
18578
18595
|
: _19.factory),
|
|
18579
|
-
|
|
18580
|
-
|
|
18596
|
+
_p)),
|
|
18597
|
+
(_o[ChainId.BSC] =
|
|
18598
|
+
((_q = {}),
|
|
18599
|
+
(_q[Protocols.V2] =
|
|
18600
|
+
(_21 = (_20 = exports.dexFactories[ChainId.BSC]) === null || _20 === void 0 ? void 0 : _20.ApeSwapV2) === null ||
|
|
18581
18601
|
_21 === void 0
|
|
18582
18602
|
? void 0
|
|
18583
18603
|
: _21.factory),
|
|
18584
|
-
(
|
|
18585
|
-
(_23 = (_22 = exports.dexFactories[ChainId.BSC]) === null || _22 === void 0 ? void 0 : _22.
|
|
18604
|
+
(_q[Protocols.V3] =
|
|
18605
|
+
(_23 = (_22 = exports.dexFactories[ChainId.BSC]) === null || _22 === void 0 ? void 0 : _22.UniswapV3) === null ||
|
|
18586
18606
|
_23 === void 0
|
|
18587
18607
|
? void 0
|
|
18588
18608
|
: _23.factory),
|
|
18589
|
-
(
|
|
18590
|
-
(_25 = (_24 = exports.dexFactories[ChainId.BSC]) === null || _24 === void 0 ? void 0 : _24.
|
|
18609
|
+
(_q[Protocols.Algebra] =
|
|
18610
|
+
(_25 = (_24 = exports.dexFactories[ChainId.BSC]) === null || _24 === void 0 ? void 0 : _24.Algebra) === null ||
|
|
18591
18611
|
_25 === void 0
|
|
18592
18612
|
? void 0
|
|
18593
18613
|
: _25.factory),
|
|
18594
|
-
|
|
18595
|
-
|
|
18596
|
-
|
|
18597
|
-
(_q[Protocols.V2] =
|
|
18598
|
-
(_27 = (_26 = exports.dexFactories[ChainId.MATIC]) === null || _26 === void 0 ? void 0 : _26.ApeSwapV2) ===
|
|
18599
|
-
null || _27 === void 0
|
|
18614
|
+
(_q[Protocols.Solidly] =
|
|
18615
|
+
(_27 = (_26 = exports.dexFactories[ChainId.BSC]) === null || _26 === void 0 ? void 0 : _26.ThenaV1) === null ||
|
|
18616
|
+
_27 === void 0
|
|
18600
18617
|
? void 0
|
|
18601
18618
|
: _27.factory),
|
|
18602
|
-
|
|
18603
|
-
|
|
18619
|
+
_q)),
|
|
18620
|
+
(_o[ChainId.MATIC] =
|
|
18621
|
+
((_r = {}),
|
|
18622
|
+
(_r[Protocols.V2] =
|
|
18623
|
+
(_29 = (_28 = exports.dexFactories[ChainId.MATIC]) === null || _28 === void 0 ? void 0 : _28.ApeSwapV2) ===
|
|
18604
18624
|
null || _29 === void 0
|
|
18605
18625
|
? void 0
|
|
18606
18626
|
: _29.factory),
|
|
18607
|
-
(
|
|
18608
|
-
(_31 = (_30 = exports.dexFactories[ChainId.MATIC]) === null || _30 === void 0 ? void 0 : _30.
|
|
18609
|
-
|
|
18627
|
+
(_r[Protocols.V3] =
|
|
18628
|
+
(_31 = (_30 = exports.dexFactories[ChainId.MATIC]) === null || _30 === void 0 ? void 0 : _30.UniswapV3) ===
|
|
18629
|
+
null || _31 === void 0
|
|
18610
18630
|
? void 0
|
|
18611
18631
|
: _31.factory),
|
|
18612
|
-
|
|
18613
|
-
|
|
18614
|
-
|
|
18615
|
-
(_r[Protocols.V2] =
|
|
18616
|
-
(_33 = (_32 = exports.dexFactories[ChainId.ARBITRUM]) === null || _32 === void 0 ? void 0 : _32.ApeSwapV2) ===
|
|
18617
|
-
null || _33 === void 0
|
|
18632
|
+
(_r[Protocols.Algebra] =
|
|
18633
|
+
(_33 = (_32 = exports.dexFactories[ChainId.MATIC]) === null || _32 === void 0 ? void 0 : _32.Algebra) === null ||
|
|
18634
|
+
_33 === void 0
|
|
18618
18635
|
? void 0
|
|
18619
18636
|
: _33.factory),
|
|
18620
|
-
|
|
18621
|
-
|
|
18637
|
+
_r)),
|
|
18638
|
+
(_o[ChainId.ARBITRUM] =
|
|
18639
|
+
((_s = {}),
|
|
18640
|
+
(_s[Protocols.V2] =
|
|
18641
|
+
(_35 = (_34 = exports.dexFactories[ChainId.ARBITRUM]) === null || _34 === void 0 ? void 0 : _34.ApeSwapV2) ===
|
|
18622
18642
|
null || _35 === void 0
|
|
18623
18643
|
? void 0
|
|
18624
18644
|
: _35.factory),
|
|
18625
|
-
(
|
|
18626
|
-
(_37 = (_36 = exports.dexFactories[ChainId.ARBITRUM]) === null || _36 === void 0 ? void 0 : _36.
|
|
18645
|
+
(_s[Protocols.V3] =
|
|
18646
|
+
(_37 = (_36 = exports.dexFactories[ChainId.ARBITRUM]) === null || _36 === void 0 ? void 0 : _36.UniswapV3) ===
|
|
18627
18647
|
null || _37 === void 0
|
|
18628
18648
|
? void 0
|
|
18629
18649
|
: _37.factory),
|
|
18630
|
-
(
|
|
18631
|
-
(_39 = (_38 = exports.dexFactories[ChainId.ARBITRUM]) === null || _38 === void 0 ? void 0 : _38.
|
|
18632
|
-
|
|
18650
|
+
(_s[Protocols.Algebra] =
|
|
18651
|
+
(_39 = (_38 = exports.dexFactories[ChainId.ARBITRUM]) === null || _38 === void 0 ? void 0 : _38.Algebra) ===
|
|
18652
|
+
null || _39 === void 0
|
|
18633
18653
|
? void 0
|
|
18634
18654
|
: _39.factory),
|
|
18635
|
-
|
|
18636
|
-
|
|
18637
|
-
|
|
18638
|
-
(_s[Protocols.V2] =
|
|
18639
|
-
(_41 = (_40 = exports.dexFactories[ChainId.LINEA]) === null || _40 === void 0 ? void 0 : _40.Spartadex) ===
|
|
18640
|
-
null || _41 === void 0
|
|
18655
|
+
(_s[Protocols.Curve] =
|
|
18656
|
+
(_41 = (_40 = exports.dexFactories[ChainId.ARBITRUM]) === null || _40 === void 0 ? void 0 : _40.Curve) === null ||
|
|
18657
|
+
_41 === void 0
|
|
18641
18658
|
? void 0
|
|
18642
18659
|
: _41.factory),
|
|
18643
|
-
|
|
18644
|
-
|
|
18645
|
-
|
|
18660
|
+
_s)),
|
|
18661
|
+
(_o[ChainId.LINEA] =
|
|
18662
|
+
((_t = {}),
|
|
18663
|
+
(_t[Protocols.V2] =
|
|
18664
|
+
(_43 = (_42 = exports.dexFactories[ChainId.LINEA]) === null || _42 === void 0 ? void 0 : _42.Spartadex) ===
|
|
18665
|
+
null || _43 === void 0
|
|
18646
18666
|
? void 0
|
|
18647
18667
|
: _43.factory),
|
|
18648
|
-
(
|
|
18649
|
-
(_45 = (_44 = exports.dexFactories[ChainId.LINEA]) === null || _44 === void 0 ? void 0 : _44.
|
|
18668
|
+
(_t[Protocols.V3] =
|
|
18669
|
+
(_45 = (_44 = exports.dexFactories[ChainId.LINEA]) === null || _44 === void 0 ? void 0 : _44.Nile) === null ||
|
|
18650
18670
|
_45 === void 0
|
|
18651
18671
|
? void 0
|
|
18652
18672
|
: _45.factory),
|
|
18653
|
-
(
|
|
18654
|
-
(_47 = (_46 = exports.dexFactories[ChainId.LINEA]) === null || _46 === void 0 ? void 0 : _46.
|
|
18673
|
+
(_t[Protocols.Algebra] =
|
|
18674
|
+
(_47 = (_46 = exports.dexFactories[ChainId.LINEA]) === null || _46 === void 0 ? void 0 : _46.Algebra) === null ||
|
|
18655
18675
|
_47 === void 0
|
|
18656
18676
|
? void 0
|
|
18657
18677
|
: _47.factory),
|
|
18658
|
-
(
|
|
18659
|
-
(_49 = (_48 = exports.dexFactories[ChainId.LINEA]) === null || _48 === void 0 ? void 0 : _48.
|
|
18678
|
+
(_t[Protocols.Solidly] =
|
|
18679
|
+
(_49 = (_48 = exports.dexFactories[ChainId.LINEA]) === null || _48 === void 0 ? void 0 : _48.Lynex) === null ||
|
|
18660
18680
|
_49 === void 0
|
|
18661
18681
|
? void 0
|
|
18662
18682
|
: _49.factory),
|
|
18663
|
-
|
|
18664
|
-
|
|
18665
|
-
|
|
18666
|
-
(_t[Protocols.V3] =
|
|
18667
|
-
(_51 = (_50 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _50 === void 0 ? void 0 : _50.Elektrik) ===
|
|
18668
|
-
null || _51 === void 0
|
|
18683
|
+
(_t[Protocols.XFAI] =
|
|
18684
|
+
(_51 = (_50 = exports.dexFactories[ChainId.LINEA]) === null || _50 === void 0 ? void 0 : _50.XFAI) === null ||
|
|
18685
|
+
_51 === void 0
|
|
18669
18686
|
? void 0
|
|
18670
18687
|
: _51.factory),
|
|
18671
18688
|
_t)),
|
|
18672
|
-
(
|
|
18689
|
+
(_o[ChainId.LIGHTLINK] =
|
|
18673
18690
|
((_u = {}),
|
|
18674
|
-
(_u[Protocols.
|
|
18675
|
-
(_53 = (_52 = exports.dexFactories[ChainId.
|
|
18676
|
-
|
|
18691
|
+
(_u[Protocols.V3] =
|
|
18692
|
+
(_53 = (_52 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _52 === void 0 ? void 0 : _52.Elektrik) ===
|
|
18693
|
+
null || _53 === void 0
|
|
18677
18694
|
? void 0
|
|
18678
18695
|
: _53.factory),
|
|
18679
|
-
|
|
18680
|
-
|
|
18696
|
+
_u)),
|
|
18697
|
+
(_o[ChainId.BASE] =
|
|
18698
|
+
((_v = {}),
|
|
18699
|
+
(_v[Protocols.V2] =
|
|
18700
|
+
(_55 = (_54 = exports.dexFactories[ChainId.BASE]) === null || _54 === void 0 ? void 0 : _54.SmarDex) === null ||
|
|
18681
18701
|
_55 === void 0
|
|
18682
18702
|
? void 0
|
|
18683
18703
|
: _55.factory),
|
|
18684
|
-
(
|
|
18685
|
-
(_57 = (_56 = exports.dexFactories[ChainId.BASE]) === null || _56 === void 0 ? void 0 : _56.
|
|
18704
|
+
(_v[Protocols.V3] =
|
|
18705
|
+
(_57 = (_56 = exports.dexFactories[ChainId.BASE]) === null || _56 === void 0 ? void 0 : _56.UniswapV3) === null ||
|
|
18686
18706
|
_57 === void 0
|
|
18687
18707
|
? void 0
|
|
18688
18708
|
: _57.factory),
|
|
18689
|
-
(
|
|
18690
|
-
(_59 = (_58 = exports.dexFactories[ChainId.BASE]) === null || _58 === void 0 ? void 0 : _58.
|
|
18709
|
+
(_v[Protocols.Algebra] =
|
|
18710
|
+
(_59 = (_58 = exports.dexFactories[ChainId.BASE]) === null || _58 === void 0 ? void 0 : _58.Algebra) === null ||
|
|
18691
18711
|
_59 === void 0
|
|
18692
18712
|
? void 0
|
|
18693
18713
|
: _59.factory),
|
|
18694
|
-
|
|
18695
|
-
|
|
18696
|
-
((_v = {}),
|
|
18697
|
-
(_v[Protocols.V2] =
|
|
18698
|
-
(_61 = (_60 = exports.dexFactories[ChainId.IOTA]) === null || _60 === void 0 ? void 0 : _60.MagicSea) === null ||
|
|
18714
|
+
(_v[Protocols.Solidly] =
|
|
18715
|
+
(_61 = (_60 = exports.dexFactories[ChainId.BASE]) === null || _60 === void 0 ? void 0 : _60.Aerodrome) === null ||
|
|
18699
18716
|
_61 === void 0
|
|
18700
18717
|
? void 0
|
|
18701
18718
|
: _61.factory),
|
|
18702
18719
|
_v)),
|
|
18703
|
-
(
|
|
18720
|
+
(_o[ChainId.IOTA] =
|
|
18704
18721
|
((_w = {}),
|
|
18705
18722
|
(_w[Protocols.V2] =
|
|
18706
|
-
(_63 = (_62 = exports.dexFactories[ChainId.
|
|
18723
|
+
(_63 = (_62 = exports.dexFactories[ChainId.IOTA]) === null || _62 === void 0 ? void 0 : _62.MagicSea) === null ||
|
|
18707
18724
|
_63 === void 0
|
|
18708
18725
|
? void 0
|
|
18709
18726
|
: _63.factory),
|
|
18710
|
-
(_w[Protocols.V3] =
|
|
18711
|
-
(_65 = (_64 = exports.dexFactories[ChainId.AVAX]) === null || _64 === void 0 ? void 0 : _64.Pharaoh) === null ||
|
|
18712
|
-
_65 === void 0
|
|
18713
|
-
? void 0
|
|
18714
|
-
: _65.factory),
|
|
18715
18727
|
_w)),
|
|
18716
|
-
(
|
|
18728
|
+
(_o[ChainId.AVAX] =
|
|
18717
18729
|
((_x = {}),
|
|
18718
18730
|
(_x[Protocols.V2] =
|
|
18719
|
-
(
|
|
18720
|
-
|
|
18731
|
+
(_65 = (_64 = exports.dexFactories[ChainId.AVAX]) === null || _64 === void 0 ? void 0 : _64.LFJ) === null ||
|
|
18732
|
+
_65 === void 0
|
|
18721
18733
|
? void 0
|
|
18722
|
-
:
|
|
18734
|
+
: _65.factory),
|
|
18723
18735
|
(_x[Protocols.V3] =
|
|
18724
|
-
(
|
|
18736
|
+
(_67 = (_66 = exports.dexFactories[ChainId.AVAX]) === null || _66 === void 0 ? void 0 : _66.Pharaoh) === null ||
|
|
18737
|
+
_67 === void 0
|
|
18738
|
+
? void 0
|
|
18739
|
+
: _67.factory),
|
|
18740
|
+
_x)),
|
|
18741
|
+
(_o[ChainId.BLAST] =
|
|
18742
|
+
((_y = {}),
|
|
18743
|
+
(_y[Protocols.V2] =
|
|
18744
|
+
(_69 = (_68 = exports.dexFactories[ChainId.BLAST]) === null || _68 === void 0 ? void 0 : _68.ThrusterV2_03) ===
|
|
18725
18745
|
null || _69 === void 0
|
|
18726
18746
|
? void 0
|
|
18727
18747
|
: _69.factory),
|
|
18728
|
-
|
|
18729
|
-
|
|
18730
|
-
|
|
18731
|
-
|
|
18732
|
-
|
|
18748
|
+
(_y[Protocols.V3] =
|
|
18749
|
+
(_71 = (_70 = exports.dexFactories[ChainId.BLAST]) === null || _70 === void 0 ? void 0 : _70.ThrusterV3) ===
|
|
18750
|
+
null || _71 === void 0
|
|
18751
|
+
? void 0
|
|
18752
|
+
: _71.factory),
|
|
18753
|
+
_y)),
|
|
18754
|
+
(_o[ChainId.SINGULARITY_TESTNET] =
|
|
18733
18755
|
((_z = {}),
|
|
18734
|
-
(_z[
|
|
18735
|
-
|
|
18736
|
-
|
|
18737
|
-
|
|
18738
|
-
|
|
18739
|
-
|
|
18740
|
-
(_z[ChainId.TLOS] = ZapVersion.ZapV1),
|
|
18756
|
+
(_z[Protocols.V2] =
|
|
18757
|
+
(_73 =
|
|
18758
|
+
(_72 = exports.dexFactories[ChainId.SINGULARITY_TESTNET]) === null || _72 === void 0 ? void 0 : _72.Citea) ===
|
|
18759
|
+
null || _73 === void 0
|
|
18760
|
+
? void 0
|
|
18761
|
+
: _73.factory),
|
|
18741
18762
|
_z)),
|
|
18742
|
-
|
|
18743
|
-
|
|
18744
|
-
|
|
18745
|
-
|
|
18746
|
-
(
|
|
18747
|
-
|
|
18748
|
-
|
|
18749
|
-
(
|
|
18750
|
-
|
|
18751
|
-
|
|
18752
|
-
|
|
18753
|
-
(
|
|
18754
|
-
|
|
18755
|
-
(
|
|
18756
|
-
|
|
18757
|
-
|
|
18758
|
-
|
|
18759
|
-
|
|
18760
|
-
|
|
18761
|
-
(
|
|
18762
|
-
|
|
18763
|
-
(
|
|
18764
|
-
(
|
|
18765
|
-
(
|
|
18766
|
-
|
|
18767
|
-
(
|
|
18768
|
-
(
|
|
18769
|
-
(
|
|
18770
|
-
(
|
|
18771
|
-
(
|
|
18772
|
-
(
|
|
18773
|
-
(
|
|
18774
|
-
(
|
|
18775
|
-
(
|
|
18776
|
-
(
|
|
18777
|
-
(
|
|
18778
|
-
|
|
18763
|
+
_o);
|
|
18764
|
+
exports.dexToZapMapping =
|
|
18765
|
+
((_0 = {}),
|
|
18766
|
+
(_0[LiquidityDex.ApeSwapV2] =
|
|
18767
|
+
((_1 = {}),
|
|
18768
|
+
(_1[ChainId.BSC] = ZapVersion.SoulZap),
|
|
18769
|
+
(_1[ChainId.BSC_TESTNET] = ZapVersion.ZapV1),
|
|
18770
|
+
(_1[ChainId.MATIC] = ZapVersion.ZapV1),
|
|
18771
|
+
(_1[ChainId.MATIC_TESTNET] = ZapVersion.ZapV1),
|
|
18772
|
+
(_1[ChainId.MAINNET] = ZapVersion.ZapV1),
|
|
18773
|
+
(_1[ChainId.ARBITRUM] = ZapVersion.External),
|
|
18774
|
+
(_1[ChainId.TLOS] = ZapVersion.ZapV1),
|
|
18775
|
+
_1)),
|
|
18776
|
+
(_0[LiquidityDex.Algebra] =
|
|
18777
|
+
((_2 = {}),
|
|
18778
|
+
(_2[ChainId.BSC] = ZapVersion.SoulZapApi),
|
|
18779
|
+
(_2[ChainId.MATIC] = ZapVersion.SoulZapApi),
|
|
18780
|
+
(_2[ChainId.LINEA] = ZapVersion.SoulZapApi),
|
|
18781
|
+
_2)),
|
|
18782
|
+
(_0[LiquidityDex.PancakeSwapV2] =
|
|
18783
|
+
((_3 = {}), (_3[ChainId.BSC] = ZapVersion.SoulZap), (_3[ChainId.MAINNET] = ZapVersion.External), _3)),
|
|
18784
|
+
(_0[LiquidityDex.QuickswapV2] = ((_4 = {}), (_4[ChainId.MATIC] = ZapVersion.SoulZap), _4)),
|
|
18785
|
+
(_0[LiquidityDex.ApeSwapV3] = {}),
|
|
18786
|
+
(_0[LiquidityDex.UniswapV3] =
|
|
18787
|
+
((_5 = {}), (_5[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), (_5[ChainId.MATIC] = ZapVersion.SoulZapApi), _5)),
|
|
18788
|
+
(_0[LiquidityDex.ThenaV1] = ((_6 = {}), (_6[ChainId.BSC] = ZapVersion.SoulZapApi), _6)),
|
|
18789
|
+
(_0[LiquidityDex.UniswapV2] = ((_7 = {}), (_7[ChainId.BASE] = ZapVersion.SoulZapApi), _7)),
|
|
18790
|
+
(_0[LiquidityDex.PancakeSwapV3] = {}),
|
|
18791
|
+
(_0[LiquidityDex.External] = {}),
|
|
18792
|
+
(_0[LiquidityDex.Spartadex] = {}),
|
|
18793
|
+
(_0[LiquidityDex.Nile] = {}),
|
|
18794
|
+
(_0[LiquidityDex.XFAI] = {}),
|
|
18795
|
+
(_0[LiquidityDex.Lynex] = {}),
|
|
18796
|
+
(_0[LiquidityDex.Metavault] = {}),
|
|
18797
|
+
(_0[LiquidityDex.Elektrik] = {}),
|
|
18798
|
+
(_0[LiquidityDex.SushiSwapV3] = {}),
|
|
18799
|
+
(_0[LiquidityDex.Synthswap] = {}),
|
|
18800
|
+
(_0[LiquidityDex.Aerodrome] = ((_8 = {}), (_8[ChainId.BASE] = ZapVersion.SoulZapApi), _8)),
|
|
18801
|
+
(_0[LiquidityDex.SmarDex] = {}),
|
|
18802
|
+
(_0[LiquidityDex.MagicSea] = ((_9 = {}), (_9[ChainId.IOTA] = ZapVersion.External), _9)),
|
|
18803
|
+
(_0[LiquidityDex.Wagmi] = ((_10 = {}), (_10[ChainId.IOTA] = ZapVersion.External), _10)),
|
|
18804
|
+
(_0[LiquidityDex.CamelotV2] = ((_11 = {}), (_11[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), _11)),
|
|
18805
|
+
(_0[LiquidityDex.LFJ] = ((_12 = {}), (_12[ChainId.AVAX] = ZapVersion.SoulZapApi), _12)),
|
|
18806
|
+
(_0[LiquidityDex.Pharaoh] = {}),
|
|
18807
|
+
(_0[LiquidityDex.Pangolin] = ((_13 = {}), (_13[ChainId.AVAX] = ZapVersion.SoulZapApi), _13)),
|
|
18808
|
+
(_0[LiquidityDex.Curve] = {}),
|
|
18809
|
+
(_0[LiquidityDex.ThrusterV2_03] = ((_14 = {}), (_14[ChainId.BLAST] = ZapVersion.SoulZapApi), _14)),
|
|
18810
|
+
(_0[LiquidityDex.ThrusterV2_1] = ((_15 = {}), (_15[ChainId.BLAST] = ZapVersion.SoulZapApi), _15)),
|
|
18811
|
+
(_0[LiquidityDex.ThrusterV3] = {}),
|
|
18812
|
+
(_0[LiquidityDex.Citea] = {}),
|
|
18813
|
+
_0);
|
|
18779
18814
|
|
|
18780
18815
|
} (types));
|
|
18781
18816
|
|
|
@@ -70176,7 +70211,7 @@ function checkImageExists(fileName) {
|
|
|
70176
70211
|
});
|
|
70177
70212
|
}
|
|
70178
70213
|
|
|
70179
|
-
const LinkShare = ({ bondNFTData, userBill, }) => {
|
|
70214
|
+
const LinkShare = ({ bondNFTData, userBill, chainId, }) => {
|
|
70180
70215
|
var _a, _b, _c, _d;
|
|
70181
70216
|
const [isLoading, setIsLoading] = useState([false, false]);
|
|
70182
70217
|
const [hideTag, setHideTag] = useState(false);
|
|
@@ -70187,6 +70222,13 @@ const LinkShare = ({ bondNFTData, userBill, }) => {
|
|
|
70187
70222
|
const handleShare = (url, social) => __awaiter$9(void 0, void 0, void 0, function* () {
|
|
70188
70223
|
if (isLoading[0] || isLoading[1])
|
|
70189
70224
|
return;
|
|
70225
|
+
track({
|
|
70226
|
+
event: 'referral',
|
|
70227
|
+
chain: chainId,
|
|
70228
|
+
data: {
|
|
70229
|
+
cat: `${social.toUpperCase()} Share Bond`,
|
|
70230
|
+
},
|
|
70231
|
+
});
|
|
70190
70232
|
setIsLoading(social === 'x' ? [true, false] : [false, true]);
|
|
70191
70233
|
yield generateImageFromTemplate(bondNFTData, url, apiUrl);
|
|
70192
70234
|
setIsLoading([false, false]);
|
|
@@ -70272,7 +70314,7 @@ const YourBondsModal = ({ onDismiss, userBill }) => {
|
|
|
70272
70314
|
justifyContent: 'center',
|
|
70273
70315
|
alignItems: 'center',
|
|
70274
70316
|
zIndex: 1,
|
|
70275
|
-
}, 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) => {
|
|
70317
|
+
}, 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) => {
|
|
70276
70318
|
return (jsx$2(Flex$1, { sx: { marginRight: '10px' }, children: jsx$2(ListTag, { text: tag === null || tag === void 0 ? void 0 : tag.toUpperCase() }) }, tag));
|
|
70277
70319
|
}) }), 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: {
|
|
70278
70320
|
borderRadius: `${isOpenTraits ? '6px 6px 0px 0px' : 'normal'}`,
|
|
@@ -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;
|