@ape.swap/bonds-sdk 2.2.6-testblast.4 → 2.2.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.
package/dist/main.js
CHANGED
|
@@ -4007,7 +4007,6 @@ var icons;
|
|
|
4007
4007
|
icons["LIGHTLINK"] = "lightlink";
|
|
4008
4008
|
icons["IOTA"] = "iota";
|
|
4009
4009
|
icons["BASE"] = "base";
|
|
4010
|
-
icons["BLAST"] = "blast";
|
|
4011
4010
|
//Social media icons
|
|
4012
4011
|
icons["DISCORD"] = "discord";
|
|
4013
4012
|
icons["REDDIT"] = "reddit";
|
|
@@ -7108,10 +7107,6 @@ const BASE$1 = ({ width }) => {
|
|
|
7108
7107
|
return (jsxs("svg", { width: width || '30', height: width || '30', viewBox: "0 0 30 30", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsx$2("rect", { width: "30", height: "30", fill: "#0052FF" }), jsx$2("path", { d: "M14.9646 25.5633C20.7986 25.5633 25.528 20.8339 25.528 14.9999C25.528 9.16591 20.7986 4.43652 14.9646 4.43652C9.43001 4.43652 4.88952 8.69296 4.43809 14.1109H20.1134V15.87H4.43652C4.87896 21.297 9.42354 25.5633 14.9646 25.5633Z", fill: "white" })] }));
|
|
7109
7108
|
};
|
|
7110
7109
|
|
|
7111
|
-
const BLAST = ({ width }) => {
|
|
7112
|
-
return (jsxs("svg", { width: width || '30', height: width || '30', viewBox: "0 0 120 120", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsxs("g", { clipPath: "url(#clip0_3081_2691)", children: [jsx$2("rect", { x: "0", y: "0", width: "120", height: "120", fill: "#000" }), jsx$2("path", { d: "M82.7405 59.5388L95.0113 53.4243L99.2411 40.4415L90.7814 34.2852H34.4529L21.4282 43.9594H87.6404L84.1225 54.8482H57.5706L55.0159 62.8054H81.5678L74.1132 85.7137L86.5515 79.5574L90.9908 65.8208L82.6567 59.7063L82.7405 59.5388Z", fill: "#FCFC03" }), jsx$2("path", { d: "M40.1491 75.8726L47.8131 52.001L39.3115 45.6353L26.5381 85.7144H74.1137L77.2966 75.8726H40.1491Z", fill: "#FCFC03" })] }), jsx$2("defs", { children: jsx$2("clipPath", { id: "clip0_3081_2691", children: jsx$2("rect", { width: "120", height: "120", fill: "white" }) }) })] }));
|
|
7113
|
-
};
|
|
7114
|
-
|
|
7115
7110
|
const Icon$a = ({ width }) => {
|
|
7116
7111
|
return (jsxs("svg", { viewBox: "0 0 32 32", width: width || '128px', children: [jsx$2("path", { d: "M24 0H8C3.58172 0 0 3.58172 0 8V24C0 28.4183 3.58172 32 8 32H24C28.4183 32 32 28.4183 32 24V8C32 3.58172 28.4183 0 24 0Z", fill: "#1E2026" }), jsx$2("path", { d: "M16.2857 4L9.97035 7.6761L12.2922 9.03415L16.2857 6.7161L20.2792 9.03415L22.6011 7.6761L16.2857 4Z", fill: "#F0B90B" }), jsx$2("path", { d: "M20.2792 10.9541L22.6011 12.3122V15.0283L18.6075 17.3463V21.9824L16.2857 23.3405L13.9639 21.9824V17.3463L9.97035 15.0283V12.3122L12.2922 10.9541L16.2857 13.2722L20.2792 10.9541Z", fill: "#F0B90B" }), jsx$2("path", { d: "M22.6011 16.9483V19.6644L20.2792 21.0224V18.3063L22.6011 16.9483Z", fill: "#F0B90B" }), jsx$2("path", { d: "M20.2561 22.9424L24.2496 20.6244V15.9883L26.5714 14.6302V21.9824L20.2561 25.6585V22.9424Z", fill: "#F0B90B" }), jsx$2("path", { d: "M24.2496 11.3522L21.9278 9.99414L24.2496 8.63609L26.5714 9.99414V12.7102L24.2496 14.0683V11.3522Z", fill: "#F0B90B" }), jsx$2("path", { d: "M13.9639 26.642V23.9259L16.2857 25.2839L18.6075 23.9259V26.642L16.2857 28L13.9639 26.642Z", fill: "#F0B90B" }), jsx$2("path", { d: "M12.2922 21.0224L9.97035 19.6644V16.9483L12.2922 18.3063V21.0224Z", fill: "#F0B90B" }), jsx$2("path", { d: "M16.2857 11.3522L13.9639 9.99414L16.2857 8.63609L18.6075 9.99414L16.2857 11.3522Z", fill: "#F0B90B" }), jsx$2("path", { d: "M10.6437 9.99414L8.32183 11.3522V14.0683L6 12.7102V9.99414L8.32183 8.63609L10.6437 9.99414Z", fill: "#F0B90B" }), jsx$2("path", { d: "M6 14.6302L8.32183 15.9883V20.6244L12.3154 22.9424V25.6585L6 21.9824V14.6302Z", fill: "#F0B90B" })] }));
|
|
7117
7112
|
};
|
|
@@ -7508,8 +7503,6 @@ const Svg = (_a) => {
|
|
|
7508
7503
|
return jsx$2(FirePink, Object.assign({}, props, { getStyles: getStyles }));
|
|
7509
7504
|
case icons.GRAPHLINQ:
|
|
7510
7505
|
return jsx$2(GRAPHLINQ, Object.assign({}, props, { getStyles: getStyles }));
|
|
7511
|
-
case icons.BLAST:
|
|
7512
|
-
return jsx$2(BLAST, Object.assign({}, props, { getStyles: getStyles }));
|
|
7513
7506
|
default:
|
|
7514
7507
|
return null;
|
|
7515
7508
|
}
|
|
@@ -18067,12 +18060,12 @@ var types = {};
|
|
|
18067
18060
|
_6,
|
|
18068
18061
|
_7,
|
|
18069
18062
|
_8,
|
|
18070
|
-
_9
|
|
18071
|
-
|
|
18063
|
+
_9;
|
|
18064
|
+
var _10,
|
|
18072
18065
|
_11,
|
|
18073
18066
|
_12,
|
|
18074
|
-
_13
|
|
18075
|
-
|
|
18067
|
+
_13,
|
|
18068
|
+
_14,
|
|
18076
18069
|
_15,
|
|
18077
18070
|
_16,
|
|
18078
18071
|
_17,
|
|
@@ -18117,15 +18110,7 @@ var types = {};
|
|
|
18117
18110
|
_56,
|
|
18118
18111
|
_57,
|
|
18119
18112
|
_58,
|
|
18120
|
-
_59
|
|
18121
|
-
_60,
|
|
18122
|
-
_61,
|
|
18123
|
-
_62,
|
|
18124
|
-
_63,
|
|
18125
|
-
_64,
|
|
18126
|
-
_65,
|
|
18127
|
-
_66,
|
|
18128
|
-
_67;
|
|
18113
|
+
_59;
|
|
18129
18114
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
18130
18115
|
exports.dexToZapMapping =
|
|
18131
18116
|
exports.defaultDexFactories =
|
|
@@ -18180,7 +18165,6 @@ var types = {};
|
|
|
18180
18165
|
ChainId[(ChainId['CAMP_TESTNET'] = 325000)] = 'CAMP_TESTNET';
|
|
18181
18166
|
ChainId[(ChainId['GRAPHLINQ'] = 614)] = 'GRAPHLINQ';
|
|
18182
18167
|
ChainId[(ChainId['AVAX'] = 43114)] = 'AVAX';
|
|
18183
|
-
ChainId[(ChainId['BLAST'] = 81457)] = 'BLAST';
|
|
18184
18168
|
})((ChainId = exports.ChainId || (exports.ChainId = {})));
|
|
18185
18169
|
var LiquidityDex
|
|
18186
18170
|
;(function (LiquidityDex) {
|
|
@@ -18221,10 +18205,6 @@ var types = {};
|
|
|
18221
18205
|
LiquidityDex['LFJ'] = 'LFJ';
|
|
18222
18206
|
LiquidityDex['Pharaoh'] = 'Pharaoh';
|
|
18223
18207
|
LiquidityDex['Pangolin'] = 'Pangolin';
|
|
18224
|
-
//BLAST
|
|
18225
|
-
LiquidityDex['ThrusterV2_03'] = 'ThrusterV2_03';
|
|
18226
|
-
LiquidityDex['ThrusterV2_1'] = 'ThrusterV2_1';
|
|
18227
|
-
LiquidityDex['ThrusterV3'] = 'ThrusterV3';
|
|
18228
18208
|
})((LiquidityDex = exports.LiquidityDex || (exports.LiquidityDex = {})));
|
|
18229
18209
|
(function (IchiSupportedDex) {
|
|
18230
18210
|
IchiSupportedDex['Ascent'] = 'Ascent';
|
|
@@ -18505,238 +18485,207 @@ var types = {};
|
|
|
18505
18485
|
protocol: Protocols.V2,
|
|
18506
18486
|
}),
|
|
18507
18487
|
_k)),
|
|
18508
|
-
(_a[ChainId.BLAST] =
|
|
18509
|
-
((_l = {}),
|
|
18510
|
-
(_l[LiquidityDex.ThrusterV2_03] = {
|
|
18511
|
-
factory: '0xb4A7D971D0ADea1c73198C97d7ab3f9CE4aaFA13',
|
|
18512
|
-
protocol: Protocols.V2,
|
|
18513
|
-
}),
|
|
18514
|
-
(_l[LiquidityDex.ThrusterV2_1] = {
|
|
18515
|
-
factory: '0x37836821a2c03c171fB1a595767f4a16e2b93Fc4',
|
|
18516
|
-
protocol: Protocols.V2,
|
|
18517
|
-
}),
|
|
18518
|
-
(_l[LiquidityDex.ThrusterV3] = {
|
|
18519
|
-
factory: '0x71b08f13B3c3aF35aAdEb3949AFEb1ded1016127',
|
|
18520
|
-
protocol: Protocols.V3,
|
|
18521
|
-
}),
|
|
18522
|
-
_l)),
|
|
18523
18488
|
_a);
|
|
18524
18489
|
exports.defaultDexFactories =
|
|
18525
|
-
((
|
|
18526
|
-
(
|
|
18490
|
+
((_l = {}),
|
|
18491
|
+
(_l[ChainId.MAINNET] =
|
|
18492
|
+
((_m = {}),
|
|
18493
|
+
(_m[Protocols.V2] =
|
|
18494
|
+
(_11 = (_10 = exports.dexFactories[ChainId.MAINNET]) === null || _10 === void 0 ? void 0 : _10.ApeSwapV2) ===
|
|
18495
|
+
null || _11 === void 0
|
|
18496
|
+
? void 0
|
|
18497
|
+
: _11.factory),
|
|
18498
|
+
(_m[Protocols.V3] =
|
|
18499
|
+
(_13 = (_12 = exports.dexFactories[ChainId.MAINNET]) === null || _12 === void 0 ? void 0 : _12.UniswapV3) ===
|
|
18500
|
+
null || _13 === void 0
|
|
18501
|
+
? void 0
|
|
18502
|
+
: _13.factory),
|
|
18503
|
+
_m)),
|
|
18504
|
+
(_l[ChainId.BSC] =
|
|
18527
18505
|
((_o = {}),
|
|
18528
18506
|
(_o[Protocols.V2] =
|
|
18529
|
-
(_15 = (_14 = exports.dexFactories[ChainId.
|
|
18530
|
-
|
|
18507
|
+
(_15 = (_14 = exports.dexFactories[ChainId.BSC]) === null || _14 === void 0 ? void 0 : _14.ApeSwapV2) === null ||
|
|
18508
|
+
_15 === void 0
|
|
18531
18509
|
? void 0
|
|
18532
18510
|
: _15.factory),
|
|
18533
18511
|
(_o[Protocols.V3] =
|
|
18534
|
-
(_17 = (_16 = exports.dexFactories[ChainId.
|
|
18535
|
-
|
|
18512
|
+
(_17 = (_16 = exports.dexFactories[ChainId.BSC]) === null || _16 === void 0 ? void 0 : _16.UniswapV3) === null ||
|
|
18513
|
+
_17 === void 0
|
|
18536
18514
|
? void 0
|
|
18537
18515
|
: _17.factory),
|
|
18538
|
-
_o
|
|
18539
|
-
|
|
18540
|
-
((_p = {}),
|
|
18541
|
-
(_p[Protocols.V2] =
|
|
18542
|
-
(_19 = (_18 = exports.dexFactories[ChainId.BSC]) === null || _18 === void 0 ? void 0 : _18.ApeSwapV2) === null ||
|
|
18516
|
+
(_o[Protocols.Algebra] =
|
|
18517
|
+
(_19 = (_18 = exports.dexFactories[ChainId.BSC]) === null || _18 === void 0 ? void 0 : _18.Algebra) === null ||
|
|
18543
18518
|
_19 === void 0
|
|
18544
18519
|
? void 0
|
|
18545
18520
|
: _19.factory),
|
|
18546
|
-
(
|
|
18547
|
-
(_21 = (_20 = exports.dexFactories[ChainId.BSC]) === null || _20 === void 0 ? void 0 : _20.
|
|
18521
|
+
(_o[Protocols.Solidly] =
|
|
18522
|
+
(_21 = (_20 = exports.dexFactories[ChainId.BSC]) === null || _20 === void 0 ? void 0 : _20.ThenaV1) === null ||
|
|
18548
18523
|
_21 === void 0
|
|
18549
18524
|
? void 0
|
|
18550
18525
|
: _21.factory),
|
|
18551
|
-
|
|
18552
|
-
|
|
18553
|
-
|
|
18526
|
+
_o)),
|
|
18527
|
+
(_l[ChainId.MATIC] =
|
|
18528
|
+
((_p = {}),
|
|
18529
|
+
(_p[Protocols.V2] =
|
|
18530
|
+
(_23 = (_22 = exports.dexFactories[ChainId.MATIC]) === null || _22 === void 0 ? void 0 : _22.ApeSwapV2) ===
|
|
18531
|
+
null || _23 === void 0
|
|
18554
18532
|
? void 0
|
|
18555
18533
|
: _23.factory),
|
|
18556
|
-
(_p[Protocols.
|
|
18557
|
-
(_25 = (_24 = exports.dexFactories[ChainId.
|
|
18558
|
-
|
|
18534
|
+
(_p[Protocols.V3] =
|
|
18535
|
+
(_25 = (_24 = exports.dexFactories[ChainId.MATIC]) === null || _24 === void 0 ? void 0 : _24.UniswapV3) ===
|
|
18536
|
+
null || _25 === void 0
|
|
18559
18537
|
? void 0
|
|
18560
18538
|
: _25.factory),
|
|
18539
|
+
(_p[Protocols.Algebra] =
|
|
18540
|
+
(_27 = (_26 = exports.dexFactories[ChainId.MATIC]) === null || _26 === void 0 ? void 0 : _26.Algebra) === null ||
|
|
18541
|
+
_27 === void 0
|
|
18542
|
+
? void 0
|
|
18543
|
+
: _27.factory),
|
|
18561
18544
|
_p)),
|
|
18562
|
-
(
|
|
18545
|
+
(_l[ChainId.ARBITRUM] =
|
|
18563
18546
|
((_q = {}),
|
|
18564
18547
|
(_q[Protocols.V2] =
|
|
18565
|
-
(
|
|
18566
|
-
null || _27 === void 0
|
|
18567
|
-
? void 0
|
|
18568
|
-
: _27.factory),
|
|
18569
|
-
(_q[Protocols.V3] =
|
|
18570
|
-
(_29 = (_28 = exports.dexFactories[ChainId.MATIC]) === null || _28 === void 0 ? void 0 : _28.UniswapV3) ===
|
|
18548
|
+
(_29 = (_28 = exports.dexFactories[ChainId.ARBITRUM]) === null || _28 === void 0 ? void 0 : _28.ApeSwapV2) ===
|
|
18571
18549
|
null || _29 === void 0
|
|
18572
18550
|
? void 0
|
|
18573
18551
|
: _29.factory),
|
|
18574
|
-
(_q[Protocols.
|
|
18575
|
-
(_31 = (_30 = exports.dexFactories[ChainId.
|
|
18576
|
-
|
|
18552
|
+
(_q[Protocols.V3] =
|
|
18553
|
+
(_31 = (_30 = exports.dexFactories[ChainId.ARBITRUM]) === null || _30 === void 0 ? void 0 : _30.UniswapV3) ===
|
|
18554
|
+
null || _31 === void 0
|
|
18577
18555
|
? void 0
|
|
18578
18556
|
: _31.factory),
|
|
18579
|
-
_q
|
|
18580
|
-
|
|
18581
|
-
((_r = {}),
|
|
18582
|
-
(_r[Protocols.V2] =
|
|
18583
|
-
(_33 = (_32 = exports.dexFactories[ChainId.ARBITRUM]) === null || _32 === void 0 ? void 0 : _32.ApeSwapV2) ===
|
|
18557
|
+
(_q[Protocols.Algebra] =
|
|
18558
|
+
(_33 = (_32 = exports.dexFactories[ChainId.ARBITRUM]) === null || _32 === void 0 ? void 0 : _32.Algebra) ===
|
|
18584
18559
|
null || _33 === void 0
|
|
18585
18560
|
? void 0
|
|
18586
18561
|
: _33.factory),
|
|
18587
|
-
|
|
18588
|
-
|
|
18562
|
+
_q)),
|
|
18563
|
+
(_l[ChainId.LINEA] =
|
|
18564
|
+
((_r = {}),
|
|
18565
|
+
(_r[Protocols.V2] =
|
|
18566
|
+
(_35 = (_34 = exports.dexFactories[ChainId.LINEA]) === null || _34 === void 0 ? void 0 : _34.Spartadex) ===
|
|
18589
18567
|
null || _35 === void 0
|
|
18590
18568
|
? void 0
|
|
18591
18569
|
: _35.factory),
|
|
18592
|
-
(_r[Protocols.
|
|
18593
|
-
(_37 = (_36 = exports.dexFactories[ChainId.
|
|
18594
|
-
|
|
18570
|
+
(_r[Protocols.V3] =
|
|
18571
|
+
(_37 = (_36 = exports.dexFactories[ChainId.LINEA]) === null || _36 === void 0 ? void 0 : _36.Nile) === null ||
|
|
18572
|
+
_37 === void 0
|
|
18595
18573
|
? void 0
|
|
18596
18574
|
: _37.factory),
|
|
18597
|
-
_r
|
|
18598
|
-
|
|
18599
|
-
|
|
18600
|
-
(_s[Protocols.V2] =
|
|
18601
|
-
(_39 = (_38 = exports.dexFactories[ChainId.LINEA]) === null || _38 === void 0 ? void 0 : _38.Spartadex) ===
|
|
18602
|
-
null || _39 === void 0
|
|
18575
|
+
(_r[Protocols.Algebra] =
|
|
18576
|
+
(_39 = (_38 = exports.dexFactories[ChainId.LINEA]) === null || _38 === void 0 ? void 0 : _38.Algebra) === null ||
|
|
18577
|
+
_39 === void 0
|
|
18603
18578
|
? void 0
|
|
18604
18579
|
: _39.factory),
|
|
18605
|
-
(
|
|
18606
|
-
(_41 = (_40 = exports.dexFactories[ChainId.LINEA]) === null || _40 === void 0 ? void 0 : _40.
|
|
18580
|
+
(_r[Protocols.Solidly] =
|
|
18581
|
+
(_41 = (_40 = exports.dexFactories[ChainId.LINEA]) === null || _40 === void 0 ? void 0 : _40.Lynex) === null ||
|
|
18607
18582
|
_41 === void 0
|
|
18608
18583
|
? void 0
|
|
18609
18584
|
: _41.factory),
|
|
18610
|
-
(
|
|
18611
|
-
(_43 = (_42 = exports.dexFactories[ChainId.LINEA]) === null || _42 === void 0 ? void 0 : _42.
|
|
18585
|
+
(_r[Protocols.XFAI] =
|
|
18586
|
+
(_43 = (_42 = exports.dexFactories[ChainId.LINEA]) === null || _42 === void 0 ? void 0 : _42.XFAI) === null ||
|
|
18612
18587
|
_43 === void 0
|
|
18613
18588
|
? void 0
|
|
18614
18589
|
: _43.factory),
|
|
18615
|
-
|
|
18616
|
-
|
|
18617
|
-
|
|
18590
|
+
_r)),
|
|
18591
|
+
(_l[ChainId.LIGHTLINK] =
|
|
18592
|
+
((_s = {}),
|
|
18593
|
+
(_s[Protocols.V3] =
|
|
18594
|
+
(_45 = (_44 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _44 === void 0 ? void 0 : _44.Elektrik) ===
|
|
18595
|
+
null || _45 === void 0
|
|
18618
18596
|
? void 0
|
|
18619
18597
|
: _45.factory),
|
|
18620
|
-
|
|
18621
|
-
|
|
18598
|
+
_s)),
|
|
18599
|
+
(_l[ChainId.BASE] =
|
|
18600
|
+
((_t = {}),
|
|
18601
|
+
(_t[Protocols.V2] =
|
|
18602
|
+
(_47 = (_46 = exports.dexFactories[ChainId.BASE]) === null || _46 === void 0 ? void 0 : _46.SmarDex) === null ||
|
|
18622
18603
|
_47 === void 0
|
|
18623
18604
|
? void 0
|
|
18624
18605
|
: _47.factory),
|
|
18625
|
-
_s)),
|
|
18626
|
-
(_m[ChainId.LIGHTLINK] =
|
|
18627
|
-
((_t = {}),
|
|
18628
18606
|
(_t[Protocols.V3] =
|
|
18629
|
-
(_49 = (_48 = exports.dexFactories[ChainId.
|
|
18630
|
-
|
|
18607
|
+
(_49 = (_48 = exports.dexFactories[ChainId.BASE]) === null || _48 === void 0 ? void 0 : _48.UniswapV3) === null ||
|
|
18608
|
+
_49 === void 0
|
|
18631
18609
|
? void 0
|
|
18632
18610
|
: _49.factory),
|
|
18633
|
-
_t
|
|
18634
|
-
|
|
18635
|
-
((_u = {}),
|
|
18636
|
-
(_u[Protocols.V2] =
|
|
18637
|
-
(_51 = (_50 = exports.dexFactories[ChainId.BASE]) === null || _50 === void 0 ? void 0 : _50.SmarDex) === null ||
|
|
18611
|
+
(_t[Protocols.Algebra] =
|
|
18612
|
+
(_51 = (_50 = exports.dexFactories[ChainId.BASE]) === null || _50 === void 0 ? void 0 : _50.Algebra) === null ||
|
|
18638
18613
|
_51 === void 0
|
|
18639
18614
|
? void 0
|
|
18640
18615
|
: _51.factory),
|
|
18641
|
-
(
|
|
18642
|
-
(_53 = (_52 = exports.dexFactories[ChainId.BASE]) === null || _52 === void 0 ? void 0 : _52.
|
|
18616
|
+
(_t[Protocols.Solidly] =
|
|
18617
|
+
(_53 = (_52 = exports.dexFactories[ChainId.BASE]) === null || _52 === void 0 ? void 0 : _52.Aerodrome) === null ||
|
|
18643
18618
|
_53 === void 0
|
|
18644
18619
|
? void 0
|
|
18645
18620
|
: _53.factory),
|
|
18646
|
-
|
|
18647
|
-
|
|
18621
|
+
_t)),
|
|
18622
|
+
(_l[ChainId.IOTA] =
|
|
18623
|
+
((_u = {}),
|
|
18624
|
+
(_u[Protocols.V2] =
|
|
18625
|
+
(_55 = (_54 = exports.dexFactories[ChainId.IOTA]) === null || _54 === void 0 ? void 0 : _54.MagicSea) === null ||
|
|
18648
18626
|
_55 === void 0
|
|
18649
18627
|
? void 0
|
|
18650
18628
|
: _55.factory),
|
|
18651
|
-
(_u[Protocols.Solidly] =
|
|
18652
|
-
(_57 = (_56 = exports.dexFactories[ChainId.BASE]) === null || _56 === void 0 ? void 0 : _56.Aerodrome) === null ||
|
|
18653
|
-
_57 === void 0
|
|
18654
|
-
? void 0
|
|
18655
|
-
: _57.factory),
|
|
18656
18629
|
_u)),
|
|
18657
|
-
(
|
|
18630
|
+
(_l[ChainId.AVAX] =
|
|
18658
18631
|
((_v = {}),
|
|
18659
18632
|
(_v[Protocols.V2] =
|
|
18660
|
-
(
|
|
18633
|
+
(_57 = (_56 = exports.dexFactories[ChainId.AVAX]) === null || _56 === void 0 ? void 0 : _56.LFJ) === null ||
|
|
18634
|
+
_57 === void 0
|
|
18635
|
+
? void 0
|
|
18636
|
+
: _57.factory),
|
|
18637
|
+
(_v[Protocols.V3] =
|
|
18638
|
+
(_59 = (_58 = exports.dexFactories[ChainId.AVAX]) === null || _58 === void 0 ? void 0 : _58.Pharaoh) === null ||
|
|
18661
18639
|
_59 === void 0
|
|
18662
18640
|
? void 0
|
|
18663
18641
|
: _59.factory),
|
|
18664
18642
|
_v)),
|
|
18665
|
-
|
|
18666
|
-
|
|
18667
|
-
|
|
18668
|
-
|
|
18669
|
-
_61 === void 0
|
|
18670
|
-
? void 0
|
|
18671
|
-
: _61.factory),
|
|
18672
|
-
(_w[Protocols.V3] =
|
|
18673
|
-
(_63 = (_62 = exports.dexFactories[ChainId.AVAX]) === null || _62 === void 0 ? void 0 : _62.Pharaoh) === null ||
|
|
18674
|
-
_63 === void 0
|
|
18675
|
-
? void 0
|
|
18676
|
-
: _63.factory),
|
|
18677
|
-
_w)),
|
|
18678
|
-
(_m[ChainId.BLAST] =
|
|
18643
|
+
_l);
|
|
18644
|
+
exports.dexToZapMapping =
|
|
18645
|
+
((_w = {}),
|
|
18646
|
+
(_w[LiquidityDex.ApeSwapV2] =
|
|
18679
18647
|
((_x = {}),
|
|
18680
|
-
(_x[
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
|
|
18684
|
-
|
|
18685
|
-
(_x[
|
|
18686
|
-
|
|
18687
|
-
null || _67 === void 0
|
|
18688
|
-
? void 0
|
|
18689
|
-
: _67.factory),
|
|
18648
|
+
(_x[ChainId.BSC] = ZapVersion.SoulZap),
|
|
18649
|
+
(_x[ChainId.BSC_TESTNET] = ZapVersion.ZapV1),
|
|
18650
|
+
(_x[ChainId.MATIC] = ZapVersion.ZapV1),
|
|
18651
|
+
(_x[ChainId.MATIC_TESTNET] = ZapVersion.ZapV1),
|
|
18652
|
+
(_x[ChainId.MAINNET] = ZapVersion.ZapV1),
|
|
18653
|
+
(_x[ChainId.ARBITRUM] = ZapVersion.External),
|
|
18654
|
+
(_x[ChainId.TLOS] = ZapVersion.ZapV1),
|
|
18690
18655
|
_x)),
|
|
18691
|
-
|
|
18692
|
-
|
|
18693
|
-
|
|
18694
|
-
|
|
18695
|
-
(
|
|
18696
|
-
|
|
18697
|
-
|
|
18698
|
-
(_z[ChainId.
|
|
18699
|
-
|
|
18700
|
-
|
|
18701
|
-
|
|
18702
|
-
(
|
|
18703
|
-
|
|
18704
|
-
(
|
|
18705
|
-
|
|
18706
|
-
|
|
18707
|
-
|
|
18708
|
-
|
|
18709
|
-
|
|
18710
|
-
(
|
|
18711
|
-
|
|
18712
|
-
(
|
|
18713
|
-
(
|
|
18714
|
-
(
|
|
18715
|
-
|
|
18716
|
-
(
|
|
18717
|
-
(
|
|
18718
|
-
(
|
|
18719
|
-
(
|
|
18720
|
-
(
|
|
18721
|
-
(
|
|
18722
|
-
(
|
|
18723
|
-
|
|
18724
|
-
(_y[LiquidityDex.Metavault] = {}),
|
|
18725
|
-
(_y[LiquidityDex.Elektrik] = {}),
|
|
18726
|
-
(_y[LiquidityDex.SushiSwapV3] = {}),
|
|
18727
|
-
(_y[LiquidityDex.Synthswap] = {}),
|
|
18728
|
-
(_y[LiquidityDex.Aerodrome] = ((_6 = {}), (_6[ChainId.BASE] = ZapVersion.SoulZapApi), _6)),
|
|
18729
|
-
(_y[LiquidityDex.SmarDex] = {}),
|
|
18730
|
-
(_y[LiquidityDex.MagicSea] = ((_7 = {}), (_7[ChainId.IOTA] = ZapVersion.External), _7)),
|
|
18731
|
-
(_y[LiquidityDex.Wagmi] = ((_8 = {}), (_8[ChainId.IOTA] = ZapVersion.External), _8)),
|
|
18732
|
-
(_y[LiquidityDex.CamelotV2] = ((_9 = {}), (_9[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), _9)),
|
|
18733
|
-
(_y[LiquidityDex.LFJ] = ((_10 = {}), (_10[ChainId.AVAX] = ZapVersion.SoulZapApi), _10)),
|
|
18734
|
-
(_y[LiquidityDex.Pharaoh] = {}),
|
|
18735
|
-
(_y[LiquidityDex.Pangolin] = ((_11 = {}), (_11[ChainId.AVAX] = ZapVersion.SoulZapApi), _11)),
|
|
18736
|
-
(_y[LiquidityDex.ThrusterV2_03] = ((_12 = {}), (_12[ChainId.BLAST] = ZapVersion.SoulZapApi), _12)),
|
|
18737
|
-
(_y[LiquidityDex.ThrusterV2_1] = ((_13 = {}), (_13[ChainId.BLAST] = ZapVersion.SoulZapApi), _13)),
|
|
18738
|
-
(_y[LiquidityDex.ThrusterV3] = {}),
|
|
18739
|
-
_y);
|
|
18656
|
+
(_w[LiquidityDex.Algebra] =
|
|
18657
|
+
((_y = {}),
|
|
18658
|
+
(_y[ChainId.BSC] = ZapVersion.SoulZapApi),
|
|
18659
|
+
(_y[ChainId.MATIC] = ZapVersion.SoulZapApi),
|
|
18660
|
+
(_y[ChainId.LINEA] = ZapVersion.SoulZapApi),
|
|
18661
|
+
_y)),
|
|
18662
|
+
(_w[LiquidityDex.PancakeSwapV2] =
|
|
18663
|
+
((_z = {}), (_z[ChainId.BSC] = ZapVersion.SoulZap), (_z[ChainId.MAINNET] = ZapVersion.External), _z)),
|
|
18664
|
+
(_w[LiquidityDex.QuickswapV2] = ((_0 = {}), (_0[ChainId.MATIC] = ZapVersion.SoulZap), _0)),
|
|
18665
|
+
(_w[LiquidityDex.ApeSwapV3] = {}),
|
|
18666
|
+
(_w[LiquidityDex.UniswapV3] =
|
|
18667
|
+
((_1 = {}), (_1[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), (_1[ChainId.MATIC] = ZapVersion.SoulZapApi), _1)),
|
|
18668
|
+
(_w[LiquidityDex.ThenaV1] = ((_2 = {}), (_2[ChainId.BSC] = ZapVersion.SoulZapApi), _2)),
|
|
18669
|
+
(_w[LiquidityDex.UniswapV2] = ((_3 = {}), (_3[ChainId.BASE] = ZapVersion.SoulZapApi), _3)),
|
|
18670
|
+
(_w[LiquidityDex.PancakeSwapV3] = {}),
|
|
18671
|
+
(_w[LiquidityDex.External] = {}),
|
|
18672
|
+
(_w[LiquidityDex.Spartadex] = {}),
|
|
18673
|
+
(_w[LiquidityDex.Nile] = {}),
|
|
18674
|
+
(_w[LiquidityDex.XFAI] = {}),
|
|
18675
|
+
(_w[LiquidityDex.Lynex] = {}),
|
|
18676
|
+
(_w[LiquidityDex.Metavault] = {}),
|
|
18677
|
+
(_w[LiquidityDex.Elektrik] = {}),
|
|
18678
|
+
(_w[LiquidityDex.SushiSwapV3] = {}),
|
|
18679
|
+
(_w[LiquidityDex.Synthswap] = {}),
|
|
18680
|
+
(_w[LiquidityDex.Aerodrome] = ((_4 = {}), (_4[ChainId.BASE] = ZapVersion.SoulZapApi), _4)),
|
|
18681
|
+
(_w[LiquidityDex.SmarDex] = {}),
|
|
18682
|
+
(_w[LiquidityDex.MagicSea] = ((_5 = {}), (_5[ChainId.IOTA] = ZapVersion.External), _5)),
|
|
18683
|
+
(_w[LiquidityDex.Wagmi] = ((_6 = {}), (_6[ChainId.IOTA] = ZapVersion.External), _6)),
|
|
18684
|
+
(_w[LiquidityDex.CamelotV2] = ((_7 = {}), (_7[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), _7)),
|
|
18685
|
+
(_w[LiquidityDex.LFJ] = ((_8 = {}), (_8[ChainId.AVAX] = ZapVersion.SoulZapApi), _8)),
|
|
18686
|
+
(_w[LiquidityDex.Pharaoh] = {}),
|
|
18687
|
+
(_w[LiquidityDex.Pangolin] = ((_9 = {}), (_9[ChainId.AVAX] = ZapVersion.SoulZapApi), _9)),
|
|
18688
|
+
_w);
|
|
18740
18689
|
|
|
18741
18690
|
} (types));
|
|
18742
18691
|
|
|
@@ -18753,7 +18702,6 @@ const MAINNET_CHAINS = [
|
|
|
18753
18702
|
types.ChainId.LIGHTLINK,
|
|
18754
18703
|
types.ChainId.GRAPHLINQ,
|
|
18755
18704
|
types.ChainId.AVAX,
|
|
18756
|
-
types.ChainId.BLAST,
|
|
18757
18705
|
];
|
|
18758
18706
|
// Network Icons
|
|
18759
18707
|
const NETWORK_ICONS = {
|
|
@@ -18770,7 +18718,6 @@ const NETWORK_ICONS = {
|
|
|
18770
18718
|
[types.ChainId.BASE]: icons.BASE,
|
|
18771
18719
|
[types.ChainId.GRAPHLINQ]: icons.GRAPHLINQ,
|
|
18772
18720
|
[types.ChainId.AVAX]: icons.AVAX_TOKEN,
|
|
18773
|
-
[types.ChainId.BLAST]: icons.BLAST,
|
|
18774
18721
|
};
|
|
18775
18722
|
// Network labels
|
|
18776
18723
|
const NETWORK_LABEL = {
|
|
@@ -18789,7 +18736,6 @@ const NETWORK_LABEL = {
|
|
|
18789
18736
|
[types.ChainId.BASE]: 'Base',
|
|
18790
18737
|
[types.ChainId.GRAPHLINQ]: 'GraphLinq',
|
|
18791
18738
|
[types.ChainId.AVAX]: 'Avalanche',
|
|
18792
|
-
[types.ChainId.BLAST]: 'Blast',
|
|
18793
18739
|
};
|
|
18794
18740
|
// Network block explorers
|
|
18795
18741
|
const BLOCK_EXPLORER = {
|
|
@@ -18808,7 +18754,6 @@ const BLOCK_EXPLORER = {
|
|
|
18808
18754
|
[types.ChainId.BASE]: 'https://basescan.org',
|
|
18809
18755
|
[types.ChainId.GRAPHLINQ]: 'https://graphlinq.dex.guru',
|
|
18810
18756
|
[types.ChainId.AVAX]: 'https://snowscan.xyz',
|
|
18811
|
-
[types.ChainId.BLAST]: 'https://blastscan.io',
|
|
18812
18757
|
};
|
|
18813
18758
|
|
|
18814
18759
|
const supportedByLIFI = [
|
|
@@ -18819,7 +18764,6 @@ const supportedByLIFI = [
|
|
|
18819
18764
|
types.ChainId.LINEA,
|
|
18820
18765
|
types.ChainId.BASE,
|
|
18821
18766
|
types.ChainId.AVAX,
|
|
18822
|
-
types.ChainId.BLAST,
|
|
18823
18767
|
];
|
|
18824
18768
|
// we should be good just by using staging on this, as it is only used for token images
|
|
18825
18769
|
const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging`;
|
|
@@ -19016,7 +18960,6 @@ const NETWORK_COLORS = {
|
|
|
19016
18960
|
[types.ChainId.IOTA]: '#fff',
|
|
19017
18961
|
[types.ChainId.GRAPHLINQ]: '#ded2ff',
|
|
19018
18962
|
[types.ChainId.AVAX]: '#e74344',
|
|
19019
|
-
[types.ChainId.BLAST]: '#fcfc03',
|
|
19020
18963
|
};
|
|
19021
18964
|
const TokenInfoAndName = ({ bill, vestEnds, isHotBond, }) => {
|
|
19022
18965
|
var _a, _b, _c, _d, _e;
|
|
@@ -49074,16 +49017,6 @@ const WNATIVE = {
|
|
|
49074
49017
|
},
|
|
49075
49018
|
active: true,
|
|
49076
49019
|
},
|
|
49077
|
-
[types.ChainId.BLAST]: {
|
|
49078
|
-
symbol: 'wETH',
|
|
49079
|
-
address: {
|
|
49080
|
-
[types.ChainId.BLAST]: '0x4300000000000000000000000000000000000004',
|
|
49081
|
-
},
|
|
49082
|
-
decimals: {
|
|
49083
|
-
[types.ChainId.BLAST]: 18,
|
|
49084
|
-
},
|
|
49085
|
-
active: true,
|
|
49086
|
-
},
|
|
49087
49020
|
};
|
|
49088
49021
|
|
|
49089
49022
|
const ABOND_ADDRESSES = {
|
|
@@ -49103,7 +49036,6 @@ const PRICE_GETTER_ADDRESSES = {
|
|
|
49103
49036
|
[types.ChainId.IOTA]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4',
|
|
49104
49037
|
[types.ChainId.BASE]: '0x2e6AB3cc819BE64886C1bB403813cCBec0407a5b',
|
|
49105
49038
|
[types.ChainId.AVAX]: '0x70005Da62E17041977f7F99f91098b125CcDE1a7',
|
|
49106
|
-
[types.ChainId.BLAST]: '0x218EB9ACDC721E235969A30f5DA46FB1224Fa7A7',
|
|
49107
49039
|
};
|
|
49108
49040
|
const MULTICALL_V2 = {
|
|
49109
49041
|
[types.ChainId.BSC]: '0x38ce767d81de3940CFa5020B55af1A400ED4F657',
|
|
@@ -49120,7 +49052,6 @@ const MULTICALL_V2 = {
|
|
|
49120
49052
|
[types.ChainId.BASE]: '0xDF845ff2dA2325Df9C6CC3DDF7418C54E16bbFDF',
|
|
49121
49053
|
[types.ChainId.GRAPHLINQ]: '0xCc88b233BbcE04c064C627ad5627da6e24a8A067',
|
|
49122
49054
|
[types.ChainId.AVAX]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
49123
|
-
[types.ChainId.BLAST]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
49124
49055
|
};
|
|
49125
49056
|
const SoulZapTokenManager = {
|
|
49126
49057
|
[types.ChainId.MAINNET]: '0x2F87f76336A560bbB0d18d357D10646bB96E8802',
|
|
@@ -49130,7 +49061,6 @@ const SoulZapTokenManager = {
|
|
|
49130
49061
|
[types.ChainId.BASE]: '0x0B750790dCa8f289fAB5eFd1a48EfAb969e51D16',
|
|
49131
49062
|
[types.ChainId.ARBITRUM]: '0x22572A548Ff26Fc5725a17dfd233F49a98c17EE7',
|
|
49132
49063
|
[types.ChainId.AVAX]: '0xC4dE46cBE21400dabE2E7c66E04F43acE4b5b910',
|
|
49133
|
-
[types.ChainId.BLAST]: '0xde9Eb844AD9e8B067309205707e2fFaA6a049cc0',
|
|
49134
49064
|
};
|
|
49135
49065
|
const ACF_TO_ABOND = '0xEce2b9C3704632Ce760271B0b84E3A4A698Ca962';
|
|
49136
49066
|
|
|
@@ -67721,7 +67651,6 @@ const PUBLIC_RPC_URLS = {
|
|
|
67721
67651
|
[types.ChainId.BASE]: ['https://base-rpc.publicnode.com', 'https://mainnet.base.org'],
|
|
67722
67652
|
[types.ChainId.GRAPHLINQ]: ['https://glq-dataseed.graphlinq.io'],
|
|
67723
67653
|
[types.ChainId.AVAX]: ['https://avax.meowrpc.com'],
|
|
67724
|
-
[types.ChainId.BLAST]: ['https://rpc.blast.io'],
|
|
67725
67654
|
};
|
|
67726
67655
|
|
|
67727
67656
|
// This is the legacy multicall
|
|
@@ -72505,38 +72434,6 @@ const zapInputTokens = {
|
|
|
72505
72434
|
active: true,
|
|
72506
72435
|
},
|
|
72507
72436
|
],
|
|
72508
|
-
[types.ChainId.BLAST]: [
|
|
72509
|
-
{
|
|
72510
|
-
symbol: 'wETH',
|
|
72511
|
-
address: {
|
|
72512
|
-
[types.ChainId.BLAST]: '0x4300000000000000000000000000000000000004',
|
|
72513
|
-
},
|
|
72514
|
-
decimals: {
|
|
72515
|
-
[types.ChainId.BLAST]: 18,
|
|
72516
|
-
},
|
|
72517
|
-
active: true,
|
|
72518
|
-
},
|
|
72519
|
-
{
|
|
72520
|
-
symbol: 'BTC',
|
|
72521
|
-
address: {
|
|
72522
|
-
[types.ChainId.BLAST]: '0xF7bc58b8D8f97ADC129cfC4c9f45Ce3C0E1D2692',
|
|
72523
|
-
},
|
|
72524
|
-
decimals: {
|
|
72525
|
-
[types.ChainId.BLAST]: 18,
|
|
72526
|
-
},
|
|
72527
|
-
active: true,
|
|
72528
|
-
},
|
|
72529
|
-
{
|
|
72530
|
-
symbol: 'USDe',
|
|
72531
|
-
address: {
|
|
72532
|
-
[types.ChainId.BLAST]: '0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34',
|
|
72533
|
-
},
|
|
72534
|
-
decimals: {
|
|
72535
|
-
[types.ChainId.BLAST]: 18,
|
|
72536
|
-
},
|
|
72537
|
-
active: true,
|
|
72538
|
-
},
|
|
72539
|
-
],
|
|
72540
72437
|
};
|
|
72541
72438
|
|
|
72542
72439
|
function useCurrencyBalance(currency, account, chainId) {
|
|
@@ -74214,6 +74111,7 @@ const ProjectDescription = ({ description }) => {
|
|
|
74214
74111
|
};
|
|
74215
74112
|
|
|
74216
74113
|
const BondModalHeaderAlt = ({ bondData, onDismiss, showProjectInfoButton, }) => {
|
|
74114
|
+
var _a, _b, _c, _d, _e, _f;
|
|
74217
74115
|
const [onOpenSlippageModal] = useModal(jsx$2(SlippageModal, {}));
|
|
74218
74116
|
const handleClose = () => {
|
|
74219
74117
|
if (typeof window !== 'undefined') {
|
|
@@ -74233,7 +74131,7 @@ const BondModalHeaderAlt = ({ bondData, onDismiss, showProjectInfoButton, }) =>
|
|
|
74233
74131
|
// },
|
|
74234
74132
|
// })
|
|
74235
74133
|
// }
|
|
74236
|
-
return (jsx$2(Flex, { className: "modaltable-container title-container", children: jsx$2(Flex, { className: "slipagge-close-icons", sx: { flexDirection: 'row' }, children: onDismiss ? (jsxs(Fragment$1, { children: [jsx$2(Flex, { sx: { pr: '10px' }, onClick: onOpenSlippageModal, children: jsx$2(Svg, { icon: "cog", width: "16px" }) }), jsx$2(IconButton, { icon: "close", color: "text", variant: "transparent", onClick: handleClose })] })) : (jsx$2(Flex, { sx: {}, onClick: onOpenSlippageModal, children: jsx$2(Svg, { icon: "cog", width: "16px" }) })) }) }));
|
|
74134
|
+
return (jsx$2(Flex, { className: "modaltable-container title-container", children: jsx$2(Flex, { className: "slipagge-close-icons", sx: { flexDirection: 'row' }, children: onDismiss ? (jsxs(Fragment$1, { children: [jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(BondInfoTooltip, { earnTokenContract: (_c = (_b = (_a = bondData === null || bondData === void 0 ? void 0 : bondData.earnToken) === null || _a === void 0 ? void 0 : _a.address) === null || _b === void 0 ? void 0 : _b[bondData === null || bondData === void 0 ? void 0 : bondData.chainId]) !== null && _c !== void 0 ? _c : '', earnTokenSymbol: (_e = (_d = bondData === null || bondData === void 0 ? void 0 : bondData.earnToken) === null || _d === void 0 ? void 0 : _d.symbol) !== null && _e !== void 0 ? _e : '', bondContract: (_f = bondData.billAddress) !== null && _f !== void 0 ? _f : '', projectLink: bondData === null || bondData === void 0 ? void 0 : bondData.projectLink, twitter: bondData === null || bondData === void 0 ? void 0 : bondData.twitter, audit: bondData === null || bondData === void 0 ? void 0 : bondData.audit, chain: bondData === null || bondData === void 0 ? void 0 : bondData.chainId }), width: "205px", placement: "bottomRight", transformTip: "translate(7%, -2%)", children: jsx$2(Flex, { className: "more-icon", sx: { opacity: 0.8 }, children: jsx$2(Svg, { icon: "more", width: "25px" }) }) }), jsx$2(Flex, { sx: { pr: '10px' }, onClick: onOpenSlippageModal, children: jsx$2(Svg, { icon: "cog", width: "16px" }) }), jsx$2(IconButton, { icon: "close", color: "text", variant: "transparent", onClick: handleClose })] })) : (jsx$2(Flex, { sx: {}, onClick: onOpenSlippageModal, children: jsx$2(Svg, { icon: "cog", width: "16px" }) })) }) }));
|
|
74237
74135
|
};
|
|
74238
74136
|
|
|
74239
74137
|
const ImageAndShortDescription = ({ bondData, onDismiss }) => {
|
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.2.6
|
|
6
|
+
"version": "2.2.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.71.0",
|
|
60
60
|
"@emotion/react": "11.11.4",
|
|
61
61
|
"bignumber.js": "^9.1.2",
|
|
62
62
|
"chart.js": "4.2.0",
|