@ape.swap/bonds-sdk 2.6.6 → 2.6.8
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,6 +4007,7 @@ var icons;
|
|
|
4007
4007
|
icons["LIGHTLINK"] = "lightlink";
|
|
4008
4008
|
icons["IOTA"] = "iota";
|
|
4009
4009
|
icons["BASE"] = "base";
|
|
4010
|
+
icons["BLAST"] = "blast";
|
|
4010
4011
|
//Social media icons
|
|
4011
4012
|
icons["DISCORD"] = "discord";
|
|
4012
4013
|
icons["REDDIT"] = "reddit";
|
|
@@ -7137,6 +7138,10 @@ const BASE$1 = ({ width }) => {
|
|
|
7137
7138
|
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" })] }));
|
|
7138
7139
|
};
|
|
7139
7140
|
|
|
7141
|
+
const BLAST = ({ width }) => {
|
|
7142
|
+
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" }) }) })] }));
|
|
7143
|
+
};
|
|
7144
|
+
|
|
7140
7145
|
const Icon$a = ({ width }) => {
|
|
7141
7146
|
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" })] }));
|
|
7142
7147
|
};
|
|
@@ -7537,6 +7542,8 @@ const Svg = (_a) => {
|
|
|
7537
7542
|
return jsx$2(GRAPHLINQ, Object.assign({}, props, { getStyles: getStyles }));
|
|
7538
7543
|
case icons.TIMER:
|
|
7539
7544
|
return jsx$2(Timer, Object.assign({}, props, { getStyles: getStyles }));
|
|
7545
|
+
case icons.BLAST:
|
|
7546
|
+
return jsx$2(BLAST, Object.assign({}, props, { getStyles: getStyles }));
|
|
7540
7547
|
default:
|
|
7541
7548
|
return null;
|
|
7542
7549
|
}
|
|
@@ -18094,12 +18101,12 @@ var types = {};
|
|
|
18094
18101
|
_6,
|
|
18095
18102
|
_7,
|
|
18096
18103
|
_8,
|
|
18097
|
-
_9
|
|
18098
|
-
|
|
18104
|
+
_9,
|
|
18105
|
+
_10,
|
|
18099
18106
|
_11,
|
|
18100
18107
|
_12,
|
|
18101
|
-
_13
|
|
18102
|
-
|
|
18108
|
+
_13;
|
|
18109
|
+
var _14,
|
|
18103
18110
|
_15,
|
|
18104
18111
|
_16,
|
|
18105
18112
|
_17,
|
|
@@ -18144,7 +18151,17 @@ var types = {};
|
|
|
18144
18151
|
_56,
|
|
18145
18152
|
_57,
|
|
18146
18153
|
_58,
|
|
18147
|
-
_59
|
|
18154
|
+
_59,
|
|
18155
|
+
_60,
|
|
18156
|
+
_61,
|
|
18157
|
+
_62,
|
|
18158
|
+
_63,
|
|
18159
|
+
_64,
|
|
18160
|
+
_65,
|
|
18161
|
+
_66,
|
|
18162
|
+
_67,
|
|
18163
|
+
_68,
|
|
18164
|
+
_69;
|
|
18148
18165
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
18149
18166
|
exports.dexToZapMapping =
|
|
18150
18167
|
exports.defaultDexFactories =
|
|
@@ -18199,6 +18216,7 @@ var types = {};
|
|
|
18199
18216
|
ChainId[(ChainId['CAMP_TESTNET'] = 325000)] = 'CAMP_TESTNET';
|
|
18200
18217
|
ChainId[(ChainId['GRAPHLINQ'] = 614)] = 'GRAPHLINQ';
|
|
18201
18218
|
ChainId[(ChainId['AVAX'] = 43114)] = 'AVAX';
|
|
18219
|
+
ChainId[(ChainId['BLAST'] = 81457)] = 'BLAST';
|
|
18202
18220
|
})((ChainId = exports.ChainId || (exports.ChainId = {})));
|
|
18203
18221
|
var LiquidityDex
|
|
18204
18222
|
;(function (LiquidityDex) {
|
|
@@ -18217,6 +18235,7 @@ var types = {};
|
|
|
18217
18235
|
LiquidityDex['Algebra'] = 'Algebra';
|
|
18218
18236
|
LiquidityDex['QuickswapV2'] = 'QuickswapV2';
|
|
18219
18237
|
LiquidityDex['UniswapV3'] = 'UniswapV3';
|
|
18238
|
+
LiquidityDex['Curve'] = 'Curve';
|
|
18220
18239
|
LiquidityDex['External'] = 'External';
|
|
18221
18240
|
//Linea
|
|
18222
18241
|
LiquidityDex['Spartadex'] = 'Spartadex';
|
|
@@ -18239,6 +18258,10 @@ var types = {};
|
|
|
18239
18258
|
LiquidityDex['LFJ'] = 'LFJ';
|
|
18240
18259
|
LiquidityDex['Pharaoh'] = 'Pharaoh';
|
|
18241
18260
|
LiquidityDex['Pangolin'] = 'Pangolin';
|
|
18261
|
+
//BLAST
|
|
18262
|
+
LiquidityDex['ThrusterV2_03'] = 'ThrusterV2_03';
|
|
18263
|
+
LiquidityDex['ThrusterV2_1'] = 'ThrusterV2_1';
|
|
18264
|
+
LiquidityDex['ThrusterV3'] = 'ThrusterV3';
|
|
18242
18265
|
})((LiquidityDex = exports.LiquidityDex || (exports.LiquidityDex = {})));
|
|
18243
18266
|
(function (IchiSupportedDex) {
|
|
18244
18267
|
IchiSupportedDex['Ascent'] = 'Ascent';
|
|
@@ -18284,6 +18307,7 @@ var types = {};
|
|
|
18284
18307
|
Protocols[(Protocols['Steer'] = 6)] = 'Steer';
|
|
18285
18308
|
Protocols[(Protocols['Solidly'] = 7)] = 'Solidly';
|
|
18286
18309
|
Protocols[(Protocols['XFAI'] = 8)] = 'XFAI';
|
|
18310
|
+
Protocols[(Protocols['Curve'] = 9)] = 'Curve';
|
|
18287
18311
|
})((Protocols = exports.Protocols || (exports.Protocols = {})));
|
|
18288
18312
|
(function (BillVersion) {
|
|
18289
18313
|
BillVersion['V1'] = 'V1';
|
|
@@ -18426,6 +18450,10 @@ var types = {};
|
|
|
18426
18450
|
protocol: Protocols.V2,
|
|
18427
18451
|
router: '0xc873fEcbd354f5A56E00E710B90EF4201db2448d',
|
|
18428
18452
|
}),
|
|
18453
|
+
(_e[LiquidityDex.Curve] = {
|
|
18454
|
+
factory: '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
|
|
18455
|
+
protocol: Protocols.Curve,
|
|
18456
|
+
}),
|
|
18429
18457
|
_e)),
|
|
18430
18458
|
(_a[ChainId.LINEA] =
|
|
18431
18459
|
((_f = {}),
|
|
@@ -18520,207 +18548,244 @@ var types = {};
|
|
|
18520
18548
|
protocol: Protocols.V2,
|
|
18521
18549
|
}),
|
|
18522
18550
|
_k)),
|
|
18551
|
+
(_a[ChainId.BLAST] =
|
|
18552
|
+
((_l = {}),
|
|
18553
|
+
(_l[LiquidityDex.ThrusterV2_03] = {
|
|
18554
|
+
factory: '0xb4A7D971D0ADea1c73198C97d7ab3f9CE4aaFA13',
|
|
18555
|
+
protocol: Protocols.V2,
|
|
18556
|
+
}),
|
|
18557
|
+
(_l[LiquidityDex.ThrusterV2_1] = {
|
|
18558
|
+
factory: '0x37836821a2c03c171fB1a595767f4a16e2b93Fc4',
|
|
18559
|
+
protocol: Protocols.V2,
|
|
18560
|
+
}),
|
|
18561
|
+
(_l[LiquidityDex.ThrusterV3] = {
|
|
18562
|
+
factory: '0x71b08f13B3c3aF35aAdEb3949AFEb1ded1016127',
|
|
18563
|
+
protocol: Protocols.V3,
|
|
18564
|
+
}),
|
|
18565
|
+
_l)),
|
|
18523
18566
|
_a);
|
|
18524
18567
|
exports.defaultDexFactories =
|
|
18525
|
-
((
|
|
18526
|
-
(
|
|
18527
|
-
((_m = {}),
|
|
18528
|
-
(_m[Protocols.V2] =
|
|
18529
|
-
(_11 = (_10 = exports.dexFactories[ChainId.MAINNET]) === null || _10 === void 0 ? void 0 : _10.ApeSwapV2) ===
|
|
18530
|
-
null || _11 === void 0
|
|
18531
|
-
? void 0
|
|
18532
|
-
: _11.factory),
|
|
18533
|
-
(_m[Protocols.V3] =
|
|
18534
|
-
(_13 = (_12 = exports.dexFactories[ChainId.MAINNET]) === null || _12 === void 0 ? void 0 : _12.UniswapV3) ===
|
|
18535
|
-
null || _13 === void 0
|
|
18536
|
-
? void 0
|
|
18537
|
-
: _13.factory),
|
|
18538
|
-
_m)),
|
|
18539
|
-
(_l[ChainId.BSC] =
|
|
18568
|
+
((_m = {}),
|
|
18569
|
+
(_m[ChainId.MAINNET] =
|
|
18540
18570
|
((_o = {}),
|
|
18541
18571
|
(_o[Protocols.V2] =
|
|
18542
|
-
(_15 = (_14 = exports.dexFactories[ChainId.
|
|
18543
|
-
|
|
18572
|
+
(_15 = (_14 = exports.dexFactories[ChainId.MAINNET]) === null || _14 === void 0 ? void 0 : _14.ApeSwapV2) ===
|
|
18573
|
+
null || _15 === void 0
|
|
18544
18574
|
? void 0
|
|
18545
18575
|
: _15.factory),
|
|
18546
18576
|
(_o[Protocols.V3] =
|
|
18547
|
-
(_17 = (_16 = exports.dexFactories[ChainId.
|
|
18548
|
-
|
|
18577
|
+
(_17 = (_16 = exports.dexFactories[ChainId.MAINNET]) === null || _16 === void 0 ? void 0 : _16.UniswapV3) ===
|
|
18578
|
+
null || _17 === void 0
|
|
18549
18579
|
? void 0
|
|
18550
18580
|
: _17.factory),
|
|
18551
|
-
|
|
18552
|
-
|
|
18581
|
+
_o)),
|
|
18582
|
+
(_m[ChainId.BSC] =
|
|
18583
|
+
((_p = {}),
|
|
18584
|
+
(_p[Protocols.V2] =
|
|
18585
|
+
(_19 = (_18 = exports.dexFactories[ChainId.BSC]) === null || _18 === void 0 ? void 0 : _18.ApeSwapV2) === null ||
|
|
18553
18586
|
_19 === void 0
|
|
18554
18587
|
? void 0
|
|
18555
18588
|
: _19.factory),
|
|
18556
|
-
(
|
|
18557
|
-
(_21 = (_20 = exports.dexFactories[ChainId.BSC]) === null || _20 === void 0 ? void 0 : _20.
|
|
18589
|
+
(_p[Protocols.V3] =
|
|
18590
|
+
(_21 = (_20 = exports.dexFactories[ChainId.BSC]) === null || _20 === void 0 ? void 0 : _20.UniswapV3) === null ||
|
|
18558
18591
|
_21 === void 0
|
|
18559
18592
|
? void 0
|
|
18560
18593
|
: _21.factory),
|
|
18561
|
-
|
|
18562
|
-
|
|
18563
|
-
|
|
18564
|
-
(_p[Protocols.V2] =
|
|
18565
|
-
(_23 = (_22 = exports.dexFactories[ChainId.MATIC]) === null || _22 === void 0 ? void 0 : _22.ApeSwapV2) ===
|
|
18566
|
-
null || _23 === void 0
|
|
18594
|
+
(_p[Protocols.Algebra] =
|
|
18595
|
+
(_23 = (_22 = exports.dexFactories[ChainId.BSC]) === null || _22 === void 0 ? void 0 : _22.Algebra) === null ||
|
|
18596
|
+
_23 === void 0
|
|
18567
18597
|
? void 0
|
|
18568
18598
|
: _23.factory),
|
|
18569
|
-
(_p[Protocols.
|
|
18570
|
-
(_25 = (_24 = exports.dexFactories[ChainId.
|
|
18571
|
-
|
|
18599
|
+
(_p[Protocols.Solidly] =
|
|
18600
|
+
(_25 = (_24 = exports.dexFactories[ChainId.BSC]) === null || _24 === void 0 ? void 0 : _24.ThenaV1) === null ||
|
|
18601
|
+
_25 === void 0
|
|
18572
18602
|
? void 0
|
|
18573
18603
|
: _25.factory),
|
|
18574
|
-
(_p[Protocols.Algebra] =
|
|
18575
|
-
(_27 = (_26 = exports.dexFactories[ChainId.MATIC]) === null || _26 === void 0 ? void 0 : _26.Algebra) === null ||
|
|
18576
|
-
_27 === void 0
|
|
18577
|
-
? void 0
|
|
18578
|
-
: _27.factory),
|
|
18579
18604
|
_p)),
|
|
18580
|
-
(
|
|
18605
|
+
(_m[ChainId.MATIC] =
|
|
18581
18606
|
((_q = {}),
|
|
18582
18607
|
(_q[Protocols.V2] =
|
|
18583
|
-
(
|
|
18584
|
-
null ||
|
|
18608
|
+
(_27 = (_26 = exports.dexFactories[ChainId.MATIC]) === null || _26 === void 0 ? void 0 : _26.ApeSwapV2) ===
|
|
18609
|
+
null || _27 === void 0
|
|
18585
18610
|
? void 0
|
|
18586
|
-
:
|
|
18611
|
+
: _27.factory),
|
|
18587
18612
|
(_q[Protocols.V3] =
|
|
18588
|
-
(
|
|
18589
|
-
null ||
|
|
18613
|
+
(_29 = (_28 = exports.dexFactories[ChainId.MATIC]) === null || _28 === void 0 ? void 0 : _28.UniswapV3) ===
|
|
18614
|
+
null || _29 === void 0
|
|
18590
18615
|
? void 0
|
|
18591
|
-
:
|
|
18616
|
+
: _29.factory),
|
|
18592
18617
|
(_q[Protocols.Algebra] =
|
|
18593
|
-
(
|
|
18594
|
-
|
|
18618
|
+
(_31 = (_30 = exports.dexFactories[ChainId.MATIC]) === null || _30 === void 0 ? void 0 : _30.Algebra) === null ||
|
|
18619
|
+
_31 === void 0
|
|
18595
18620
|
? void 0
|
|
18596
|
-
:
|
|
18621
|
+
: _31.factory),
|
|
18597
18622
|
_q)),
|
|
18598
|
-
(
|
|
18623
|
+
(_m[ChainId.ARBITRUM] =
|
|
18599
18624
|
((_r = {}),
|
|
18600
18625
|
(_r[Protocols.V2] =
|
|
18601
|
-
(
|
|
18626
|
+
(_33 = (_32 = exports.dexFactories[ChainId.ARBITRUM]) === null || _32 === void 0 ? void 0 : _32.ApeSwapV2) ===
|
|
18627
|
+
null || _33 === void 0
|
|
18628
|
+
? void 0
|
|
18629
|
+
: _33.factory),
|
|
18630
|
+
(_r[Protocols.V3] =
|
|
18631
|
+
(_35 = (_34 = exports.dexFactories[ChainId.ARBITRUM]) === null || _34 === void 0 ? void 0 : _34.UniswapV3) ===
|
|
18602
18632
|
null || _35 === void 0
|
|
18603
18633
|
? void 0
|
|
18604
18634
|
: _35.factory),
|
|
18605
|
-
(_r[Protocols.
|
|
18606
|
-
(_37 = (_36 = exports.dexFactories[ChainId.
|
|
18607
|
-
|
|
18635
|
+
(_r[Protocols.Algebra] =
|
|
18636
|
+
(_37 = (_36 = exports.dexFactories[ChainId.ARBITRUM]) === null || _36 === void 0 ? void 0 : _36.Algebra) ===
|
|
18637
|
+
null || _37 === void 0
|
|
18608
18638
|
? void 0
|
|
18609
18639
|
: _37.factory),
|
|
18610
|
-
(_r[Protocols.
|
|
18611
|
-
(_39 = (_38 = exports.dexFactories[ChainId.
|
|
18640
|
+
(_r[Protocols.Curve] =
|
|
18641
|
+
(_39 = (_38 = exports.dexFactories[ChainId.ARBITRUM]) === null || _38 === void 0 ? void 0 : _38.Curve) === null ||
|
|
18612
18642
|
_39 === void 0
|
|
18613
18643
|
? void 0
|
|
18614
18644
|
: _39.factory),
|
|
18615
|
-
|
|
18616
|
-
|
|
18617
|
-
|
|
18645
|
+
_r)),
|
|
18646
|
+
(_m[ChainId.LINEA] =
|
|
18647
|
+
((_s = {}),
|
|
18648
|
+
(_s[Protocols.V2] =
|
|
18649
|
+
(_41 = (_40 = exports.dexFactories[ChainId.LINEA]) === null || _40 === void 0 ? void 0 : _40.Spartadex) ===
|
|
18650
|
+
null || _41 === void 0
|
|
18618
18651
|
? void 0
|
|
18619
18652
|
: _41.factory),
|
|
18620
|
-
(
|
|
18621
|
-
(_43 = (_42 = exports.dexFactories[ChainId.LINEA]) === null || _42 === void 0 ? void 0 : _42.
|
|
18653
|
+
(_s[Protocols.V3] =
|
|
18654
|
+
(_43 = (_42 = exports.dexFactories[ChainId.LINEA]) === null || _42 === void 0 ? void 0 : _42.Nile) === null ||
|
|
18622
18655
|
_43 === void 0
|
|
18623
18656
|
? void 0
|
|
18624
18657
|
: _43.factory),
|
|
18625
|
-
|
|
18626
|
-
|
|
18627
|
-
|
|
18628
|
-
(_s[Protocols.V3] =
|
|
18629
|
-
(_45 = (_44 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _44 === void 0 ? void 0 : _44.Elektrik) ===
|
|
18630
|
-
null || _45 === void 0
|
|
18658
|
+
(_s[Protocols.Algebra] =
|
|
18659
|
+
(_45 = (_44 = exports.dexFactories[ChainId.LINEA]) === null || _44 === void 0 ? void 0 : _44.Algebra) === null ||
|
|
18660
|
+
_45 === void 0
|
|
18631
18661
|
? void 0
|
|
18632
18662
|
: _45.factory),
|
|
18633
|
-
_s
|
|
18634
|
-
|
|
18635
|
-
((_t = {}),
|
|
18636
|
-
(_t[Protocols.V2] =
|
|
18637
|
-
(_47 = (_46 = exports.dexFactories[ChainId.BASE]) === null || _46 === void 0 ? void 0 : _46.SmarDex) === null ||
|
|
18663
|
+
(_s[Protocols.Solidly] =
|
|
18664
|
+
(_47 = (_46 = exports.dexFactories[ChainId.LINEA]) === null || _46 === void 0 ? void 0 : _46.Lynex) === null ||
|
|
18638
18665
|
_47 === void 0
|
|
18639
18666
|
? void 0
|
|
18640
18667
|
: _47.factory),
|
|
18641
|
-
(
|
|
18642
|
-
(_49 = (_48 = exports.dexFactories[ChainId.
|
|
18668
|
+
(_s[Protocols.XFAI] =
|
|
18669
|
+
(_49 = (_48 = exports.dexFactories[ChainId.LINEA]) === null || _48 === void 0 ? void 0 : _48.XFAI) === null ||
|
|
18643
18670
|
_49 === void 0
|
|
18644
18671
|
? void 0
|
|
18645
18672
|
: _49.factory),
|
|
18646
|
-
|
|
18647
|
-
|
|
18648
|
-
|
|
18673
|
+
_s)),
|
|
18674
|
+
(_m[ChainId.LIGHTLINK] =
|
|
18675
|
+
((_t = {}),
|
|
18676
|
+
(_t[Protocols.V3] =
|
|
18677
|
+
(_51 = (_50 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _50 === void 0 ? void 0 : _50.Elektrik) ===
|
|
18678
|
+
null || _51 === void 0
|
|
18649
18679
|
? void 0
|
|
18650
18680
|
: _51.factory),
|
|
18651
|
-
(_t[Protocols.Solidly] =
|
|
18652
|
-
(_53 = (_52 = exports.dexFactories[ChainId.BASE]) === null || _52 === void 0 ? void 0 : _52.Aerodrome) === null ||
|
|
18653
|
-
_53 === void 0
|
|
18654
|
-
? void 0
|
|
18655
|
-
: _53.factory),
|
|
18656
18681
|
_t)),
|
|
18657
|
-
(
|
|
18682
|
+
(_m[ChainId.BASE] =
|
|
18658
18683
|
((_u = {}),
|
|
18659
18684
|
(_u[Protocols.V2] =
|
|
18660
|
-
(
|
|
18685
|
+
(_53 = (_52 = exports.dexFactories[ChainId.BASE]) === null || _52 === void 0 ? void 0 : _52.SmarDex) === null ||
|
|
18686
|
+
_53 === void 0
|
|
18687
|
+
? void 0
|
|
18688
|
+
: _53.factory),
|
|
18689
|
+
(_u[Protocols.V3] =
|
|
18690
|
+
(_55 = (_54 = exports.dexFactories[ChainId.BASE]) === null || _54 === void 0 ? void 0 : _54.UniswapV3) === null ||
|
|
18661
18691
|
_55 === void 0
|
|
18662
18692
|
? void 0
|
|
18663
18693
|
: _55.factory),
|
|
18664
|
-
_u
|
|
18665
|
-
|
|
18666
|
-
((_v = {}),
|
|
18667
|
-
(_v[Protocols.V2] =
|
|
18668
|
-
(_57 = (_56 = exports.dexFactories[ChainId.AVAX]) === null || _56 === void 0 ? void 0 : _56.LFJ) === null ||
|
|
18694
|
+
(_u[Protocols.Algebra] =
|
|
18695
|
+
(_57 = (_56 = exports.dexFactories[ChainId.BASE]) === null || _56 === void 0 ? void 0 : _56.Algebra) === null ||
|
|
18669
18696
|
_57 === void 0
|
|
18670
18697
|
? void 0
|
|
18671
18698
|
: _57.factory),
|
|
18672
|
-
(
|
|
18673
|
-
(_59 = (_58 = exports.dexFactories[ChainId.
|
|
18699
|
+
(_u[Protocols.Solidly] =
|
|
18700
|
+
(_59 = (_58 = exports.dexFactories[ChainId.BASE]) === null || _58 === void 0 ? void 0 : _58.Aerodrome) === null ||
|
|
18674
18701
|
_59 === void 0
|
|
18675
18702
|
? void 0
|
|
18676
18703
|
: _59.factory),
|
|
18704
|
+
_u)),
|
|
18705
|
+
(_m[ChainId.IOTA] =
|
|
18706
|
+
((_v = {}),
|
|
18707
|
+
(_v[Protocols.V2] =
|
|
18708
|
+
(_61 = (_60 = exports.dexFactories[ChainId.IOTA]) === null || _60 === void 0 ? void 0 : _60.MagicSea) === null ||
|
|
18709
|
+
_61 === void 0
|
|
18710
|
+
? void 0
|
|
18711
|
+
: _61.factory),
|
|
18677
18712
|
_v)),
|
|
18678
|
-
|
|
18679
|
-
|
|
18680
|
-
|
|
18681
|
-
|
|
18713
|
+
(_m[ChainId.AVAX] =
|
|
18714
|
+
((_w = {}),
|
|
18715
|
+
(_w[Protocols.V2] =
|
|
18716
|
+
(_63 = (_62 = exports.dexFactories[ChainId.AVAX]) === null || _62 === void 0 ? void 0 : _62.LFJ) === null ||
|
|
18717
|
+
_63 === void 0
|
|
18718
|
+
? void 0
|
|
18719
|
+
: _63.factory),
|
|
18720
|
+
(_w[Protocols.V3] =
|
|
18721
|
+
(_65 = (_64 = exports.dexFactories[ChainId.AVAX]) === null || _64 === void 0 ? void 0 : _64.Pharaoh) === null ||
|
|
18722
|
+
_65 === void 0
|
|
18723
|
+
? void 0
|
|
18724
|
+
: _65.factory),
|
|
18725
|
+
_w)),
|
|
18726
|
+
(_m[ChainId.BLAST] =
|
|
18682
18727
|
((_x = {}),
|
|
18683
|
-
(_x[
|
|
18684
|
-
|
|
18685
|
-
|
|
18686
|
-
|
|
18687
|
-
|
|
18688
|
-
(_x[
|
|
18689
|
-
|
|
18728
|
+
(_x[Protocols.V2] =
|
|
18729
|
+
(_67 = (_66 = exports.dexFactories[ChainId.BLAST]) === null || _66 === void 0 ? void 0 : _66.ThrusterV2_03) ===
|
|
18730
|
+
null || _67 === void 0
|
|
18731
|
+
? void 0
|
|
18732
|
+
: _67.factory),
|
|
18733
|
+
(_x[Protocols.V3] =
|
|
18734
|
+
(_69 = (_68 = exports.dexFactories[ChainId.BLAST]) === null || _68 === void 0 ? void 0 : _68.ThrusterV3) ===
|
|
18735
|
+
null || _69 === void 0
|
|
18736
|
+
? void 0
|
|
18737
|
+
: _69.factory),
|
|
18690
18738
|
_x)),
|
|
18691
|
-
|
|
18692
|
-
|
|
18693
|
-
|
|
18694
|
-
|
|
18695
|
-
(
|
|
18696
|
-
|
|
18697
|
-
|
|
18698
|
-
(
|
|
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
|
-
|
|
18739
|
+
_m);
|
|
18740
|
+
exports.dexToZapMapping =
|
|
18741
|
+
((_y = {}),
|
|
18742
|
+
(_y[LiquidityDex.ApeSwapV2] =
|
|
18743
|
+
((_z = {}),
|
|
18744
|
+
(_z[ChainId.BSC] = ZapVersion.SoulZap),
|
|
18745
|
+
(_z[ChainId.BSC_TESTNET] = ZapVersion.ZapV1),
|
|
18746
|
+
(_z[ChainId.MATIC] = ZapVersion.ZapV1),
|
|
18747
|
+
(_z[ChainId.MATIC_TESTNET] = ZapVersion.ZapV1),
|
|
18748
|
+
(_z[ChainId.MAINNET] = ZapVersion.ZapV1),
|
|
18749
|
+
(_z[ChainId.ARBITRUM] = ZapVersion.External),
|
|
18750
|
+
(_z[ChainId.TLOS] = ZapVersion.ZapV1),
|
|
18751
|
+
_z)),
|
|
18752
|
+
(_y[LiquidityDex.Algebra] =
|
|
18753
|
+
((_0 = {}),
|
|
18754
|
+
(_0[ChainId.BSC] = ZapVersion.SoulZapApi),
|
|
18755
|
+
(_0[ChainId.MATIC] = ZapVersion.SoulZapApi),
|
|
18756
|
+
(_0[ChainId.LINEA] = ZapVersion.SoulZapApi),
|
|
18757
|
+
_0)),
|
|
18758
|
+
(_y[LiquidityDex.PancakeSwapV2] =
|
|
18759
|
+
((_1 = {}), (_1[ChainId.BSC] = ZapVersion.SoulZap), (_1[ChainId.MAINNET] = ZapVersion.External), _1)),
|
|
18760
|
+
(_y[LiquidityDex.QuickswapV2] = ((_2 = {}), (_2[ChainId.MATIC] = ZapVersion.SoulZap), _2)),
|
|
18761
|
+
(_y[LiquidityDex.ApeSwapV3] = {}),
|
|
18762
|
+
(_y[LiquidityDex.UniswapV3] =
|
|
18763
|
+
((_3 = {}), (_3[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), (_3[ChainId.MATIC] = ZapVersion.SoulZapApi), _3)),
|
|
18764
|
+
(_y[LiquidityDex.ThenaV1] = ((_4 = {}), (_4[ChainId.BSC] = ZapVersion.SoulZapApi), _4)),
|
|
18765
|
+
(_y[LiquidityDex.UniswapV2] = ((_5 = {}), (_5[ChainId.BASE] = ZapVersion.SoulZapApi), _5)),
|
|
18766
|
+
(_y[LiquidityDex.PancakeSwapV3] = {}),
|
|
18767
|
+
(_y[LiquidityDex.External] = {}),
|
|
18768
|
+
(_y[LiquidityDex.Spartadex] = {}),
|
|
18769
|
+
(_y[LiquidityDex.Nile] = {}),
|
|
18770
|
+
(_y[LiquidityDex.XFAI] = {}),
|
|
18771
|
+
(_y[LiquidityDex.Lynex] = {}),
|
|
18772
|
+
(_y[LiquidityDex.Metavault] = {}),
|
|
18773
|
+
(_y[LiquidityDex.Elektrik] = {}),
|
|
18774
|
+
(_y[LiquidityDex.SushiSwapV3] = {}),
|
|
18775
|
+
(_y[LiquidityDex.Synthswap] = {}),
|
|
18776
|
+
(_y[LiquidityDex.Aerodrome] = ((_6 = {}), (_6[ChainId.BASE] = ZapVersion.SoulZapApi), _6)),
|
|
18777
|
+
(_y[LiquidityDex.SmarDex] = {}),
|
|
18778
|
+
(_y[LiquidityDex.MagicSea] = ((_7 = {}), (_7[ChainId.IOTA] = ZapVersion.External), _7)),
|
|
18779
|
+
(_y[LiquidityDex.Wagmi] = ((_8 = {}), (_8[ChainId.IOTA] = ZapVersion.External), _8)),
|
|
18780
|
+
(_y[LiquidityDex.CamelotV2] = ((_9 = {}), (_9[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), _9)),
|
|
18781
|
+
(_y[LiquidityDex.LFJ] = ((_10 = {}), (_10[ChainId.AVAX] = ZapVersion.SoulZapApi), _10)),
|
|
18782
|
+
(_y[LiquidityDex.Pharaoh] = {}),
|
|
18783
|
+
(_y[LiquidityDex.Pangolin] = ((_11 = {}), (_11[ChainId.AVAX] = ZapVersion.SoulZapApi), _11)),
|
|
18784
|
+
(_y[LiquidityDex.Curve] = {}),
|
|
18785
|
+
(_y[LiquidityDex.ThrusterV2_03] = ((_12 = {}), (_12[ChainId.BLAST] = ZapVersion.SoulZapApi), _12)),
|
|
18786
|
+
(_y[LiquidityDex.ThrusterV2_1] = ((_13 = {}), (_13[ChainId.BLAST] = ZapVersion.SoulZapApi), _13)),
|
|
18787
|
+
(_y[LiquidityDex.ThrusterV3] = {}),
|
|
18788
|
+
_y);
|
|
18724
18789
|
|
|
18725
18790
|
} (types));
|
|
18726
18791
|
|
|
@@ -18737,6 +18802,7 @@ const MAINNET_CHAINS = [
|
|
|
18737
18802
|
types.ChainId.LIGHTLINK,
|
|
18738
18803
|
types.ChainId.GRAPHLINQ,
|
|
18739
18804
|
types.ChainId.AVAX,
|
|
18805
|
+
types.ChainId.BLAST,
|
|
18740
18806
|
];
|
|
18741
18807
|
// Network Icons
|
|
18742
18808
|
const NETWORK_ICONS = {
|
|
@@ -18753,6 +18819,7 @@ const NETWORK_ICONS = {
|
|
|
18753
18819
|
[types.ChainId.BASE]: icons.BASE,
|
|
18754
18820
|
[types.ChainId.GRAPHLINQ]: icons.GRAPHLINQ,
|
|
18755
18821
|
[types.ChainId.AVAX]: icons.AVAX_TOKEN,
|
|
18822
|
+
[types.ChainId.BLAST]: icons.BLAST,
|
|
18756
18823
|
};
|
|
18757
18824
|
// Network labels
|
|
18758
18825
|
const NETWORK_LABEL = {
|
|
@@ -18771,6 +18838,7 @@ const NETWORK_LABEL = {
|
|
|
18771
18838
|
[types.ChainId.BASE]: 'Base',
|
|
18772
18839
|
[types.ChainId.GRAPHLINQ]: 'GraphLinq',
|
|
18773
18840
|
[types.ChainId.AVAX]: 'Avalanche',
|
|
18841
|
+
[types.ChainId.BLAST]: 'Blast',
|
|
18774
18842
|
};
|
|
18775
18843
|
// Network block explorers
|
|
18776
18844
|
const BLOCK_EXPLORER = {
|
|
@@ -18789,6 +18857,7 @@ const BLOCK_EXPLORER = {
|
|
|
18789
18857
|
[types.ChainId.BASE]: 'https://basescan.org',
|
|
18790
18858
|
[types.ChainId.GRAPHLINQ]: 'https://graphlinq.dex.guru',
|
|
18791
18859
|
[types.ChainId.AVAX]: 'https://snowscan.xyz',
|
|
18860
|
+
[types.ChainId.BLAST]: 'https://blastscan.io',
|
|
18792
18861
|
};
|
|
18793
18862
|
|
|
18794
18863
|
const supportedByLIFI = [
|
|
@@ -18799,6 +18868,7 @@ const supportedByLIFI = [
|
|
|
18799
18868
|
types.ChainId.LINEA,
|
|
18800
18869
|
types.ChainId.BASE,
|
|
18801
18870
|
types.ChainId.AVAX,
|
|
18871
|
+
types.ChainId.BLAST,
|
|
18802
18872
|
];
|
|
18803
18873
|
// we should be good just by using staging on this, as it is only used for token images
|
|
18804
18874
|
const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging`;
|
|
@@ -18996,6 +19066,7 @@ const NETWORK_COLORS = {
|
|
|
18996
19066
|
[types.ChainId.IOTA]: '#fff',
|
|
18997
19067
|
[types.ChainId.GRAPHLINQ]: '#ded2ff',
|
|
18998
19068
|
[types.ChainId.AVAX]: '#e74344',
|
|
19069
|
+
[types.ChainId.BLAST]: '#fcfc03',
|
|
18999
19070
|
};
|
|
19000
19071
|
const TokenInfoAndName = ({ bill, vestEnds, isHotBond, }) => {
|
|
19001
19072
|
var _a, _b, _c, _d, _e;
|
|
@@ -49057,6 +49128,16 @@ const WNATIVE = {
|
|
|
49057
49128
|
},
|
|
49058
49129
|
active: true,
|
|
49059
49130
|
},
|
|
49131
|
+
[types.ChainId.BLAST]: {
|
|
49132
|
+
symbol: 'wETH',
|
|
49133
|
+
address: {
|
|
49134
|
+
[types.ChainId.BLAST]: '0x4300000000000000000000000000000000000004',
|
|
49135
|
+
},
|
|
49136
|
+
decimals: {
|
|
49137
|
+
[types.ChainId.BLAST]: 18,
|
|
49138
|
+
},
|
|
49139
|
+
active: true,
|
|
49140
|
+
},
|
|
49060
49141
|
};
|
|
49061
49142
|
|
|
49062
49143
|
const ABOND_ADDRESSES = {
|
|
@@ -49076,6 +49157,7 @@ const PRICE_GETTER_ADDRESSES = {
|
|
|
49076
49157
|
[types.ChainId.IOTA]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4',
|
|
49077
49158
|
[types.ChainId.BASE]: '0xE29C74B4DD05A268B5FFaadeF4fdbAa1de6FDe84',
|
|
49078
49159
|
[types.ChainId.AVAX]: '0x70005Da62E17041977f7F99f91098b125CcDE1a7',
|
|
49160
|
+
[types.ChainId.BLAST]: '0x218EB9ACDC721E235969A30f5DA46FB1224Fa7A7',
|
|
49079
49161
|
};
|
|
49080
49162
|
const MULTICALL_V2 = {
|
|
49081
49163
|
[types.ChainId.BSC]: '0x38ce767d81de3940CFa5020B55af1A400ED4F657',
|
|
@@ -49092,6 +49174,7 @@ const MULTICALL_V2 = {
|
|
|
49092
49174
|
[types.ChainId.BASE]: '0xDF845ff2dA2325Df9C6CC3DDF7418C54E16bbFDF',
|
|
49093
49175
|
[types.ChainId.GRAPHLINQ]: '0xCc88b233BbcE04c064C627ad5627da6e24a8A067',
|
|
49094
49176
|
[types.ChainId.AVAX]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
49177
|
+
[types.ChainId.BLAST]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
49095
49178
|
};
|
|
49096
49179
|
const SoulZapTokenManager = {
|
|
49097
49180
|
[types.ChainId.MAINNET]: '0x2F87f76336A560bbB0d18d357D10646bB96E8802',
|
|
@@ -49101,6 +49184,7 @@ const SoulZapTokenManager = {
|
|
|
49101
49184
|
[types.ChainId.BASE]: '0x0B750790dCa8f289fAB5eFd1a48EfAb969e51D16',
|
|
49102
49185
|
[types.ChainId.ARBITRUM]: '0x22572A548Ff26Fc5725a17dfd233F49a98c17EE7',
|
|
49103
49186
|
[types.ChainId.AVAX]: '0xC4dE46cBE21400dabE2E7c66E04F43acE4b5b910',
|
|
49187
|
+
[types.ChainId.BLAST]: '0xde9Eb844AD9e8B067309205707e2fFaA6a049cc0',
|
|
49104
49188
|
};
|
|
49105
49189
|
const ACF_TO_ABOND = '0xEce2b9C3704632Ce760271B0b84E3A4A698Ca962';
|
|
49106
49190
|
const LENS_CONTRACT = {
|
|
@@ -67695,6 +67779,7 @@ const PUBLIC_RPC_URLS = {
|
|
|
67695
67779
|
[types.ChainId.BASE]: ['https://base-rpc.publicnode.com', 'https://mainnet.base.org'],
|
|
67696
67780
|
[types.ChainId.GRAPHLINQ]: ['https://glq-dataseed.graphlinq.io'],
|
|
67697
67781
|
[types.ChainId.AVAX]: ['https://avax.meowrpc.com'],
|
|
67782
|
+
[types.ChainId.BLAST]: ['https://rpc.blast.io'],
|
|
67698
67783
|
};
|
|
67699
67784
|
|
|
67700
67785
|
// This is the legacy multicall
|
|
@@ -72479,6 +72564,38 @@ const zapInputTokens = {
|
|
|
72479
72564
|
active: true,
|
|
72480
72565
|
},
|
|
72481
72566
|
],
|
|
72567
|
+
[types.ChainId.BLAST]: [
|
|
72568
|
+
{
|
|
72569
|
+
symbol: 'wETH',
|
|
72570
|
+
address: {
|
|
72571
|
+
[types.ChainId.BLAST]: '0x4300000000000000000000000000000000000004',
|
|
72572
|
+
},
|
|
72573
|
+
decimals: {
|
|
72574
|
+
[types.ChainId.BLAST]: 18,
|
|
72575
|
+
},
|
|
72576
|
+
active: true,
|
|
72577
|
+
},
|
|
72578
|
+
{
|
|
72579
|
+
symbol: 'BTC',
|
|
72580
|
+
address: {
|
|
72581
|
+
[types.ChainId.BLAST]: '0xF7bc58b8D8f97ADC129cfC4c9f45Ce3C0E1D2692',
|
|
72582
|
+
},
|
|
72583
|
+
decimals: {
|
|
72584
|
+
[types.ChainId.BLAST]: 18,
|
|
72585
|
+
},
|
|
72586
|
+
active: true,
|
|
72587
|
+
},
|
|
72588
|
+
{
|
|
72589
|
+
symbol: 'USDe',
|
|
72590
|
+
address: {
|
|
72591
|
+
[types.ChainId.BLAST]: '0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34',
|
|
72592
|
+
},
|
|
72593
|
+
decimals: {
|
|
72594
|
+
[types.ChainId.BLAST]: 18,
|
|
72595
|
+
},
|
|
72596
|
+
active: true,
|
|
72597
|
+
},
|
|
72598
|
+
],
|
|
72482
72599
|
};
|
|
72483
72600
|
|
|
72484
72601
|
function useCurrencyBalance(currency, account, chainId) {
|
|
@@ -72615,6 +72732,7 @@ var NetworkNames;
|
|
|
72615
72732
|
NetworkNames["LINEA"] = "lna";
|
|
72616
72733
|
NetworkNames["BASE"] = "bas";
|
|
72617
72734
|
NetworkNames["AVAX"] = "ava";
|
|
72735
|
+
NetworkNames["BLAST"] = "bls";
|
|
72618
72736
|
})(NetworkNames || (NetworkNames = {}));
|
|
72619
72737
|
const getChainParam = (chain) => {
|
|
72620
72738
|
return chain === types.ChainId.LINEA
|
|
@@ -72631,7 +72749,9 @@ const getChainParam = (chain) => {
|
|
|
72631
72749
|
? NetworkNames.MAINNET
|
|
72632
72750
|
: chain === types.ChainId.AVAX
|
|
72633
72751
|
? NetworkNames.AVAX
|
|
72634
|
-
:
|
|
72752
|
+
: chain === types.ChainId.BLAST
|
|
72753
|
+
? NetworkNames.BLAST
|
|
72754
|
+
: null;
|
|
72635
72755
|
};
|
|
72636
72756
|
const getLpType = (protocol) => {
|
|
72637
72757
|
return protocol === types.Protocols.Algebra
|
|
@@ -6,7 +6,8 @@ declare enum NetworkNames {
|
|
|
6
6
|
ARBITRUM = "arb",
|
|
7
7
|
LINEA = "lna",
|
|
8
8
|
BASE = "bas",
|
|
9
|
-
AVAX = "ava"
|
|
9
|
+
AVAX = "ava",
|
|
10
|
+
BLAST = "bls"
|
|
10
11
|
}
|
|
11
12
|
export declare const getChainParam: (chain?: ChainId) => NetworkNames | null;
|
|
12
13
|
export declare const getLpType: (protocol?: Protocols) => "ichi" | "solidly" | "univ2" | null;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Ape Bond SDK",
|
|
4
4
|
"author": "Ape Bond",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "2.6.
|
|
6
|
+
"version": "2.6.8",
|
|
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.74.0",
|
|
60
60
|
"@emotion/react": "11.11.4",
|
|
61
61
|
"bignumber.js": "^9.1.2",
|
|
62
62
|
"chart.js": "4.2.0",
|