@ape.swap/bonds-sdk 2.3.3 → 2.3.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
|
@@ -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";
|
|
@@ -7107,6 +7108,10 @@ const BASE$1 = ({ width }) => {
|
|
|
7107
7108
|
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" })] }));
|
|
7108
7109
|
};
|
|
7109
7110
|
|
|
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
|
+
|
|
7110
7115
|
const Icon$a = ({ width }) => {
|
|
7111
7116
|
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" })] }));
|
|
7112
7117
|
};
|
|
@@ -7503,6 +7508,8 @@ const Svg = (_a) => {
|
|
|
7503
7508
|
return jsx$2(FirePink, Object.assign({}, props, { getStyles: getStyles }));
|
|
7504
7509
|
case icons.GRAPHLINQ:
|
|
7505
7510
|
return jsx$2(GRAPHLINQ, Object.assign({}, props, { getStyles: getStyles }));
|
|
7511
|
+
case icons.BLAST:
|
|
7512
|
+
return jsx$2(BLAST, Object.assign({}, props, { getStyles: getStyles }));
|
|
7506
7513
|
default:
|
|
7507
7514
|
return null;
|
|
7508
7515
|
}
|
|
@@ -18060,12 +18067,12 @@ var types = {};
|
|
|
18060
18067
|
_6,
|
|
18061
18068
|
_7,
|
|
18062
18069
|
_8,
|
|
18063
|
-
_9
|
|
18064
|
-
|
|
18070
|
+
_9,
|
|
18071
|
+
_10,
|
|
18065
18072
|
_11,
|
|
18066
18073
|
_12,
|
|
18067
|
-
_13
|
|
18068
|
-
|
|
18074
|
+
_13;
|
|
18075
|
+
var _14,
|
|
18069
18076
|
_15,
|
|
18070
18077
|
_16,
|
|
18071
18078
|
_17,
|
|
@@ -18110,7 +18117,15 @@ var types = {};
|
|
|
18110
18117
|
_56,
|
|
18111
18118
|
_57,
|
|
18112
18119
|
_58,
|
|
18113
|
-
_59
|
|
18120
|
+
_59,
|
|
18121
|
+
_60,
|
|
18122
|
+
_61,
|
|
18123
|
+
_62,
|
|
18124
|
+
_63,
|
|
18125
|
+
_64,
|
|
18126
|
+
_65,
|
|
18127
|
+
_66,
|
|
18128
|
+
_67;
|
|
18114
18129
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
18115
18130
|
exports.dexToZapMapping =
|
|
18116
18131
|
exports.defaultDexFactories =
|
|
@@ -18165,6 +18180,7 @@ var types = {};
|
|
|
18165
18180
|
ChainId[(ChainId['CAMP_TESTNET'] = 325000)] = 'CAMP_TESTNET';
|
|
18166
18181
|
ChainId[(ChainId['GRAPHLINQ'] = 614)] = 'GRAPHLINQ';
|
|
18167
18182
|
ChainId[(ChainId['AVAX'] = 43114)] = 'AVAX';
|
|
18183
|
+
ChainId[(ChainId['BLAST'] = 81457)] = 'BLAST';
|
|
18168
18184
|
})((ChainId = exports.ChainId || (exports.ChainId = {})));
|
|
18169
18185
|
var LiquidityDex
|
|
18170
18186
|
;(function (LiquidityDex) {
|
|
@@ -18205,6 +18221,10 @@ var types = {};
|
|
|
18205
18221
|
LiquidityDex['LFJ'] = 'LFJ';
|
|
18206
18222
|
LiquidityDex['Pharaoh'] = 'Pharaoh';
|
|
18207
18223
|
LiquidityDex['Pangolin'] = 'Pangolin';
|
|
18224
|
+
//BLAST
|
|
18225
|
+
LiquidityDex['ThrusterV2_03'] = 'ThrusterV2_03';
|
|
18226
|
+
LiquidityDex['ThrusterV2_1'] = 'ThrusterV2_1';
|
|
18227
|
+
LiquidityDex['ThrusterV3'] = 'ThrusterV3';
|
|
18208
18228
|
})((LiquidityDex = exports.LiquidityDex || (exports.LiquidityDex = {})));
|
|
18209
18229
|
(function (IchiSupportedDex) {
|
|
18210
18230
|
IchiSupportedDex['Ascent'] = 'Ascent';
|
|
@@ -18326,7 +18346,6 @@ var types = {};
|
|
|
18326
18346
|
(_c[LiquidityDex.PancakeSwapV2] = {
|
|
18327
18347
|
factory: '0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73',
|
|
18328
18348
|
protocol: Protocols.V2,
|
|
18329
|
-
router: '0x10ED43C718714eb63d5aA57B78B54704E256024E',
|
|
18330
18349
|
}),
|
|
18331
18350
|
(_c[LiquidityDex.ApeSwapV3] = {
|
|
18332
18351
|
factory: '0x7Bc382DdC5928964D7af60e7e2f6299A1eA6F48d',
|
|
@@ -18486,207 +18505,238 @@ var types = {};
|
|
|
18486
18505
|
protocol: Protocols.V2,
|
|
18487
18506
|
}),
|
|
18488
18507
|
_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)),
|
|
18489
18523
|
_a);
|
|
18490
18524
|
exports.defaultDexFactories =
|
|
18491
|
-
((
|
|
18492
|
-
(
|
|
18493
|
-
((_m = {}),
|
|
18494
|
-
(_m[Protocols.V2] =
|
|
18495
|
-
(_11 = (_10 = exports.dexFactories[ChainId.MAINNET]) === null || _10 === void 0 ? void 0 : _10.ApeSwapV2) ===
|
|
18496
|
-
null || _11 === void 0
|
|
18497
|
-
? void 0
|
|
18498
|
-
: _11.factory),
|
|
18499
|
-
(_m[Protocols.V3] =
|
|
18500
|
-
(_13 = (_12 = exports.dexFactories[ChainId.MAINNET]) === null || _12 === void 0 ? void 0 : _12.UniswapV3) ===
|
|
18501
|
-
null || _13 === void 0
|
|
18502
|
-
? void 0
|
|
18503
|
-
: _13.factory),
|
|
18504
|
-
_m)),
|
|
18505
|
-
(_l[ChainId.BSC] =
|
|
18525
|
+
((_m = {}),
|
|
18526
|
+
(_m[ChainId.MAINNET] =
|
|
18506
18527
|
((_o = {}),
|
|
18507
18528
|
(_o[Protocols.V2] =
|
|
18508
|
-
(_15 = (_14 = exports.dexFactories[ChainId.
|
|
18509
|
-
|
|
18529
|
+
(_15 = (_14 = exports.dexFactories[ChainId.MAINNET]) === null || _14 === void 0 ? void 0 : _14.ApeSwapV2) ===
|
|
18530
|
+
null || _15 === void 0
|
|
18510
18531
|
? void 0
|
|
18511
18532
|
: _15.factory),
|
|
18512
18533
|
(_o[Protocols.V3] =
|
|
18513
|
-
(_17 = (_16 = exports.dexFactories[ChainId.
|
|
18514
|
-
|
|
18534
|
+
(_17 = (_16 = exports.dexFactories[ChainId.MAINNET]) === null || _16 === void 0 ? void 0 : _16.UniswapV3) ===
|
|
18535
|
+
null || _17 === void 0
|
|
18515
18536
|
? void 0
|
|
18516
18537
|
: _17.factory),
|
|
18517
|
-
|
|
18518
|
-
|
|
18538
|
+
_o)),
|
|
18539
|
+
(_m[ChainId.BSC] =
|
|
18540
|
+
((_p = {}),
|
|
18541
|
+
(_p[Protocols.V2] =
|
|
18542
|
+
(_19 = (_18 = exports.dexFactories[ChainId.BSC]) === null || _18 === void 0 ? void 0 : _18.ApeSwapV2) === null ||
|
|
18519
18543
|
_19 === void 0
|
|
18520
18544
|
? void 0
|
|
18521
18545
|
: _19.factory),
|
|
18522
|
-
(
|
|
18523
|
-
(_21 = (_20 = exports.dexFactories[ChainId.BSC]) === null || _20 === void 0 ? void 0 : _20.
|
|
18546
|
+
(_p[Protocols.V3] =
|
|
18547
|
+
(_21 = (_20 = exports.dexFactories[ChainId.BSC]) === null || _20 === void 0 ? void 0 : _20.UniswapV3) === null ||
|
|
18524
18548
|
_21 === void 0
|
|
18525
18549
|
? void 0
|
|
18526
18550
|
: _21.factory),
|
|
18527
|
-
|
|
18528
|
-
|
|
18529
|
-
|
|
18530
|
-
(_p[Protocols.V2] =
|
|
18531
|
-
(_23 = (_22 = exports.dexFactories[ChainId.MATIC]) === null || _22 === void 0 ? void 0 : _22.ApeSwapV2) ===
|
|
18532
|
-
null || _23 === void 0
|
|
18551
|
+
(_p[Protocols.Algebra] =
|
|
18552
|
+
(_23 = (_22 = exports.dexFactories[ChainId.BSC]) === null || _22 === void 0 ? void 0 : _22.Algebra) === null ||
|
|
18553
|
+
_23 === void 0
|
|
18533
18554
|
? void 0
|
|
18534
18555
|
: _23.factory),
|
|
18535
|
-
(_p[Protocols.
|
|
18536
|
-
(_25 = (_24 = exports.dexFactories[ChainId.
|
|
18537
|
-
|
|
18556
|
+
(_p[Protocols.Solidly] =
|
|
18557
|
+
(_25 = (_24 = exports.dexFactories[ChainId.BSC]) === null || _24 === void 0 ? void 0 : _24.ThenaV1) === null ||
|
|
18558
|
+
_25 === void 0
|
|
18538
18559
|
? void 0
|
|
18539
18560
|
: _25.factory),
|
|
18540
|
-
(_p[Protocols.Algebra] =
|
|
18541
|
-
(_27 = (_26 = exports.dexFactories[ChainId.MATIC]) === null || _26 === void 0 ? void 0 : _26.Algebra) === null ||
|
|
18542
|
-
_27 === void 0
|
|
18543
|
-
? void 0
|
|
18544
|
-
: _27.factory),
|
|
18545
18561
|
_p)),
|
|
18546
|
-
(
|
|
18562
|
+
(_m[ChainId.MATIC] =
|
|
18547
18563
|
((_q = {}),
|
|
18548
18564
|
(_q[Protocols.V2] =
|
|
18549
|
-
(
|
|
18550
|
-
null ||
|
|
18565
|
+
(_27 = (_26 = exports.dexFactories[ChainId.MATIC]) === null || _26 === void 0 ? void 0 : _26.ApeSwapV2) ===
|
|
18566
|
+
null || _27 === void 0
|
|
18551
18567
|
? void 0
|
|
18552
|
-
:
|
|
18568
|
+
: _27.factory),
|
|
18553
18569
|
(_q[Protocols.V3] =
|
|
18554
|
-
(
|
|
18555
|
-
null ||
|
|
18570
|
+
(_29 = (_28 = exports.dexFactories[ChainId.MATIC]) === null || _28 === void 0 ? void 0 : _28.UniswapV3) ===
|
|
18571
|
+
null || _29 === void 0
|
|
18556
18572
|
? void 0
|
|
18557
|
-
:
|
|
18573
|
+
: _29.factory),
|
|
18558
18574
|
(_q[Protocols.Algebra] =
|
|
18559
|
-
(
|
|
18560
|
-
|
|
18575
|
+
(_31 = (_30 = exports.dexFactories[ChainId.MATIC]) === null || _30 === void 0 ? void 0 : _30.Algebra) === null ||
|
|
18576
|
+
_31 === void 0
|
|
18561
18577
|
? void 0
|
|
18562
|
-
:
|
|
18578
|
+
: _31.factory),
|
|
18563
18579
|
_q)),
|
|
18564
|
-
(
|
|
18580
|
+
(_m[ChainId.ARBITRUM] =
|
|
18565
18581
|
((_r = {}),
|
|
18566
18582
|
(_r[Protocols.V2] =
|
|
18567
|
-
(
|
|
18583
|
+
(_33 = (_32 = exports.dexFactories[ChainId.ARBITRUM]) === null || _32 === void 0 ? void 0 : _32.ApeSwapV2) ===
|
|
18584
|
+
null || _33 === void 0
|
|
18585
|
+
? void 0
|
|
18586
|
+
: _33.factory),
|
|
18587
|
+
(_r[Protocols.V3] =
|
|
18588
|
+
(_35 = (_34 = exports.dexFactories[ChainId.ARBITRUM]) === null || _34 === void 0 ? void 0 : _34.UniswapV3) ===
|
|
18568
18589
|
null || _35 === void 0
|
|
18569
18590
|
? void 0
|
|
18570
18591
|
: _35.factory),
|
|
18571
|
-
(_r[Protocols.
|
|
18572
|
-
(_37 = (_36 = exports.dexFactories[ChainId.
|
|
18573
|
-
|
|
18592
|
+
(_r[Protocols.Algebra] =
|
|
18593
|
+
(_37 = (_36 = exports.dexFactories[ChainId.ARBITRUM]) === null || _36 === void 0 ? void 0 : _36.Algebra) ===
|
|
18594
|
+
null || _37 === void 0
|
|
18574
18595
|
? void 0
|
|
18575
18596
|
: _37.factory),
|
|
18576
|
-
|
|
18577
|
-
|
|
18578
|
-
|
|
18597
|
+
_r)),
|
|
18598
|
+
(_m[ChainId.LINEA] =
|
|
18599
|
+
((_s = {}),
|
|
18600
|
+
(_s[Protocols.V2] =
|
|
18601
|
+
(_39 = (_38 = exports.dexFactories[ChainId.LINEA]) === null || _38 === void 0 ? void 0 : _38.Spartadex) ===
|
|
18602
|
+
null || _39 === void 0
|
|
18579
18603
|
? void 0
|
|
18580
18604
|
: _39.factory),
|
|
18581
|
-
(
|
|
18582
|
-
(_41 = (_40 = exports.dexFactories[ChainId.LINEA]) === null || _40 === void 0 ? void 0 : _40.
|
|
18605
|
+
(_s[Protocols.V3] =
|
|
18606
|
+
(_41 = (_40 = exports.dexFactories[ChainId.LINEA]) === null || _40 === void 0 ? void 0 : _40.Nile) === null ||
|
|
18583
18607
|
_41 === void 0
|
|
18584
18608
|
? void 0
|
|
18585
18609
|
: _41.factory),
|
|
18586
|
-
(
|
|
18587
|
-
(_43 = (_42 = exports.dexFactories[ChainId.LINEA]) === null || _42 === void 0 ? void 0 : _42.
|
|
18610
|
+
(_s[Protocols.Algebra] =
|
|
18611
|
+
(_43 = (_42 = exports.dexFactories[ChainId.LINEA]) === null || _42 === void 0 ? void 0 : _42.Algebra) === null ||
|
|
18588
18612
|
_43 === void 0
|
|
18589
18613
|
? void 0
|
|
18590
18614
|
: _43.factory),
|
|
18591
|
-
|
|
18592
|
-
|
|
18593
|
-
|
|
18594
|
-
(_s[Protocols.V3] =
|
|
18595
|
-
(_45 = (_44 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _44 === void 0 ? void 0 : _44.Elektrik) ===
|
|
18596
|
-
null || _45 === void 0
|
|
18615
|
+
(_s[Protocols.Solidly] =
|
|
18616
|
+
(_45 = (_44 = exports.dexFactories[ChainId.LINEA]) === null || _44 === void 0 ? void 0 : _44.Lynex) === null ||
|
|
18617
|
+
_45 === void 0
|
|
18597
18618
|
? void 0
|
|
18598
18619
|
: _45.factory),
|
|
18599
|
-
_s
|
|
18600
|
-
|
|
18601
|
-
((_t = {}),
|
|
18602
|
-
(_t[Protocols.V2] =
|
|
18603
|
-
(_47 = (_46 = exports.dexFactories[ChainId.BASE]) === null || _46 === void 0 ? void 0 : _46.SmarDex) === null ||
|
|
18620
|
+
(_s[Protocols.XFAI] =
|
|
18621
|
+
(_47 = (_46 = exports.dexFactories[ChainId.LINEA]) === null || _46 === void 0 ? void 0 : _46.XFAI) === null ||
|
|
18604
18622
|
_47 === void 0
|
|
18605
18623
|
? void 0
|
|
18606
18624
|
: _47.factory),
|
|
18625
|
+
_s)),
|
|
18626
|
+
(_m[ChainId.LIGHTLINK] =
|
|
18627
|
+
((_t = {}),
|
|
18607
18628
|
(_t[Protocols.V3] =
|
|
18608
|
-
(_49 = (_48 = exports.dexFactories[ChainId.
|
|
18609
|
-
|
|
18629
|
+
(_49 = (_48 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _48 === void 0 ? void 0 : _48.Elektrik) ===
|
|
18630
|
+
null || _49 === void 0
|
|
18610
18631
|
? void 0
|
|
18611
18632
|
: _49.factory),
|
|
18612
|
-
|
|
18613
|
-
|
|
18633
|
+
_t)),
|
|
18634
|
+
(_m[ChainId.BASE] =
|
|
18635
|
+
((_u = {}),
|
|
18636
|
+
(_u[Protocols.V2] =
|
|
18637
|
+
(_51 = (_50 = exports.dexFactories[ChainId.BASE]) === null || _50 === void 0 ? void 0 : _50.SmarDex) === null ||
|
|
18614
18638
|
_51 === void 0
|
|
18615
18639
|
? void 0
|
|
18616
18640
|
: _51.factory),
|
|
18617
|
-
(
|
|
18618
|
-
(_53 = (_52 = exports.dexFactories[ChainId.BASE]) === null || _52 === void 0 ? void 0 : _52.
|
|
18641
|
+
(_u[Protocols.V3] =
|
|
18642
|
+
(_53 = (_52 = exports.dexFactories[ChainId.BASE]) === null || _52 === void 0 ? void 0 : _52.UniswapV3) === null ||
|
|
18619
18643
|
_53 === void 0
|
|
18620
18644
|
? void 0
|
|
18621
18645
|
: _53.factory),
|
|
18622
|
-
|
|
18623
|
-
|
|
18624
|
-
((_u = {}),
|
|
18625
|
-
(_u[Protocols.V2] =
|
|
18626
|
-
(_55 = (_54 = exports.dexFactories[ChainId.IOTA]) === null || _54 === void 0 ? void 0 : _54.MagicSea) === null ||
|
|
18646
|
+
(_u[Protocols.Algebra] =
|
|
18647
|
+
(_55 = (_54 = exports.dexFactories[ChainId.BASE]) === null || _54 === void 0 ? void 0 : _54.Algebra) === null ||
|
|
18627
18648
|
_55 === void 0
|
|
18628
18649
|
? void 0
|
|
18629
18650
|
: _55.factory),
|
|
18630
|
-
_u
|
|
18631
|
-
|
|
18632
|
-
((_v = {}),
|
|
18633
|
-
(_v[Protocols.V2] =
|
|
18634
|
-
(_57 = (_56 = exports.dexFactories[ChainId.AVAX]) === null || _56 === void 0 ? void 0 : _56.LFJ) === null ||
|
|
18651
|
+
(_u[Protocols.Solidly] =
|
|
18652
|
+
(_57 = (_56 = exports.dexFactories[ChainId.BASE]) === null || _56 === void 0 ? void 0 : _56.Aerodrome) === null ||
|
|
18635
18653
|
_57 === void 0
|
|
18636
18654
|
? void 0
|
|
18637
18655
|
: _57.factory),
|
|
18638
|
-
|
|
18639
|
-
|
|
18656
|
+
_u)),
|
|
18657
|
+
(_m[ChainId.IOTA] =
|
|
18658
|
+
((_v = {}),
|
|
18659
|
+
(_v[Protocols.V2] =
|
|
18660
|
+
(_59 = (_58 = exports.dexFactories[ChainId.IOTA]) === null || _58 === void 0 ? void 0 : _58.MagicSea) === null ||
|
|
18640
18661
|
_59 === void 0
|
|
18641
18662
|
? void 0
|
|
18642
18663
|
: _59.factory),
|
|
18643
18664
|
_v)),
|
|
18644
|
-
|
|
18645
|
-
|
|
18646
|
-
|
|
18647
|
-
|
|
18665
|
+
(_m[ChainId.AVAX] =
|
|
18666
|
+
((_w = {}),
|
|
18667
|
+
(_w[Protocols.V2] =
|
|
18668
|
+
(_61 = (_60 = exports.dexFactories[ChainId.AVAX]) === null || _60 === void 0 ? void 0 : _60.LFJ) === null ||
|
|
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] =
|
|
18648
18679
|
((_x = {}),
|
|
18649
|
-
(_x[
|
|
18650
|
-
|
|
18651
|
-
|
|
18652
|
-
|
|
18653
|
-
|
|
18654
|
-
(_x[
|
|
18655
|
-
|
|
18680
|
+
(_x[Protocols.V2] =
|
|
18681
|
+
(_65 = (_64 = exports.dexFactories[ChainId.BLAST]) === null || _64 === void 0 ? void 0 : _64.ThrusterV2_03) ===
|
|
18682
|
+
null || _65 === void 0
|
|
18683
|
+
? void 0
|
|
18684
|
+
: _65.factory),
|
|
18685
|
+
(_x[Protocols.V3] =
|
|
18686
|
+
(_67 = (_66 = exports.dexFactories[ChainId.BLAST]) === null || _66 === void 0 ? void 0 : _66.ThrusterV3) ===
|
|
18687
|
+
null || _67 === void 0
|
|
18688
|
+
? void 0
|
|
18689
|
+
: _67.factory),
|
|
18656
18690
|
_x)),
|
|
18657
|
-
|
|
18658
|
-
|
|
18659
|
-
|
|
18660
|
-
|
|
18661
|
-
(
|
|
18662
|
-
|
|
18663
|
-
|
|
18664
|
-
(
|
|
18665
|
-
|
|
18666
|
-
|
|
18667
|
-
|
|
18668
|
-
(
|
|
18669
|
-
|
|
18670
|
-
(
|
|
18671
|
-
|
|
18672
|
-
|
|
18673
|
-
|
|
18674
|
-
|
|
18675
|
-
|
|
18676
|
-
(
|
|
18677
|
-
|
|
18678
|
-
(
|
|
18679
|
-
(
|
|
18680
|
-
(
|
|
18681
|
-
|
|
18682
|
-
(
|
|
18683
|
-
(
|
|
18684
|
-
(
|
|
18685
|
-
(
|
|
18686
|
-
(
|
|
18687
|
-
(
|
|
18688
|
-
(
|
|
18689
|
-
|
|
18691
|
+
_m);
|
|
18692
|
+
exports.dexToZapMapping =
|
|
18693
|
+
((_y = {}),
|
|
18694
|
+
(_y[LiquidityDex.ApeSwapV2] =
|
|
18695
|
+
((_z = {}),
|
|
18696
|
+
(_z[ChainId.BSC] = ZapVersion.SoulZap),
|
|
18697
|
+
(_z[ChainId.BSC_TESTNET] = ZapVersion.ZapV1),
|
|
18698
|
+
(_z[ChainId.MATIC] = ZapVersion.ZapV1),
|
|
18699
|
+
(_z[ChainId.MATIC_TESTNET] = ZapVersion.ZapV1),
|
|
18700
|
+
(_z[ChainId.MAINNET] = ZapVersion.ZapV1),
|
|
18701
|
+
(_z[ChainId.ARBITRUM] = ZapVersion.External),
|
|
18702
|
+
(_z[ChainId.TLOS] = ZapVersion.ZapV1),
|
|
18703
|
+
_z)),
|
|
18704
|
+
(_y[LiquidityDex.Algebra] =
|
|
18705
|
+
((_0 = {}),
|
|
18706
|
+
(_0[ChainId.BSC] = ZapVersion.SoulZapApi),
|
|
18707
|
+
(_0[ChainId.MATIC] = ZapVersion.SoulZapApi),
|
|
18708
|
+
(_0[ChainId.LINEA] = ZapVersion.SoulZapApi),
|
|
18709
|
+
_0)),
|
|
18710
|
+
(_y[LiquidityDex.PancakeSwapV2] =
|
|
18711
|
+
((_1 = {}), (_1[ChainId.BSC] = ZapVersion.SoulZap), (_1[ChainId.MAINNET] = ZapVersion.External), _1)),
|
|
18712
|
+
(_y[LiquidityDex.QuickswapV2] = ((_2 = {}), (_2[ChainId.MATIC] = ZapVersion.SoulZap), _2)),
|
|
18713
|
+
(_y[LiquidityDex.ApeSwapV3] = {}),
|
|
18714
|
+
(_y[LiquidityDex.UniswapV3] =
|
|
18715
|
+
((_3 = {}), (_3[ChainId.ARBITRUM] = ZapVersion.SoulZapApi), (_3[ChainId.MATIC] = ZapVersion.SoulZapApi), _3)),
|
|
18716
|
+
(_y[LiquidityDex.ThenaV1] = ((_4 = {}), (_4[ChainId.BSC] = ZapVersion.SoulZapApi), _4)),
|
|
18717
|
+
(_y[LiquidityDex.UniswapV2] = ((_5 = {}), (_5[ChainId.BASE] = ZapVersion.SoulZapApi), _5)),
|
|
18718
|
+
(_y[LiquidityDex.PancakeSwapV3] = {}),
|
|
18719
|
+
(_y[LiquidityDex.External] = {}),
|
|
18720
|
+
(_y[LiquidityDex.Spartadex] = {}),
|
|
18721
|
+
(_y[LiquidityDex.Nile] = {}),
|
|
18722
|
+
(_y[LiquidityDex.XFAI] = {}),
|
|
18723
|
+
(_y[LiquidityDex.Lynex] = {}),
|
|
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);
|
|
18690
18740
|
|
|
18691
18741
|
} (types));
|
|
18692
18742
|
|
|
@@ -18703,6 +18753,7 @@ const MAINNET_CHAINS = [
|
|
|
18703
18753
|
types.ChainId.LIGHTLINK,
|
|
18704
18754
|
types.ChainId.GRAPHLINQ,
|
|
18705
18755
|
types.ChainId.AVAX,
|
|
18756
|
+
types.ChainId.BLAST,
|
|
18706
18757
|
];
|
|
18707
18758
|
// Network Icons
|
|
18708
18759
|
const NETWORK_ICONS = {
|
|
@@ -18719,6 +18770,7 @@ const NETWORK_ICONS = {
|
|
|
18719
18770
|
[types.ChainId.BASE]: icons.BASE,
|
|
18720
18771
|
[types.ChainId.GRAPHLINQ]: icons.GRAPHLINQ,
|
|
18721
18772
|
[types.ChainId.AVAX]: icons.AVAX_TOKEN,
|
|
18773
|
+
[types.ChainId.BLAST]: icons.BLAST,
|
|
18722
18774
|
};
|
|
18723
18775
|
// Network labels
|
|
18724
18776
|
const NETWORK_LABEL = {
|
|
@@ -18737,6 +18789,7 @@ const NETWORK_LABEL = {
|
|
|
18737
18789
|
[types.ChainId.BASE]: 'Base',
|
|
18738
18790
|
[types.ChainId.GRAPHLINQ]: 'GraphLinq',
|
|
18739
18791
|
[types.ChainId.AVAX]: 'Avalanche',
|
|
18792
|
+
[types.ChainId.BLAST]: 'Blast',
|
|
18740
18793
|
};
|
|
18741
18794
|
// Network block explorers
|
|
18742
18795
|
const BLOCK_EXPLORER = {
|
|
@@ -18755,6 +18808,7 @@ const BLOCK_EXPLORER = {
|
|
|
18755
18808
|
[types.ChainId.BASE]: 'https://basescan.org',
|
|
18756
18809
|
[types.ChainId.GRAPHLINQ]: 'https://graphlinq.dex.guru',
|
|
18757
18810
|
[types.ChainId.AVAX]: 'https://snowscan.xyz',
|
|
18811
|
+
[types.ChainId.BLAST]: 'https://blastscan.io',
|
|
18758
18812
|
};
|
|
18759
18813
|
|
|
18760
18814
|
const supportedByLIFI = [
|
|
@@ -18765,6 +18819,7 @@ const supportedByLIFI = [
|
|
|
18765
18819
|
types.ChainId.LINEA,
|
|
18766
18820
|
types.ChainId.BASE,
|
|
18767
18821
|
types.ChainId.AVAX,
|
|
18822
|
+
types.ChainId.BLAST,
|
|
18768
18823
|
];
|
|
18769
18824
|
// we should be good just by using staging on this, as it is only used for token images
|
|
18770
18825
|
const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging`;
|
|
@@ -18962,6 +19017,7 @@ const NETWORK_COLORS = {
|
|
|
18962
19017
|
[types.ChainId.IOTA]: '#fff',
|
|
18963
19018
|
[types.ChainId.GRAPHLINQ]: '#ded2ff',
|
|
18964
19019
|
[types.ChainId.AVAX]: '#e74344',
|
|
19020
|
+
[types.ChainId.BLAST]: '#fcfc03',
|
|
18965
19021
|
};
|
|
18966
19022
|
const TokenInfoAndName = ({ bill, vestEnds, isHotBond, }) => {
|
|
18967
19023
|
var _a, _b, _c, _d, _e;
|
|
@@ -49023,6 +49079,16 @@ const WNATIVE = {
|
|
|
49023
49079
|
},
|
|
49024
49080
|
active: true,
|
|
49025
49081
|
},
|
|
49082
|
+
[types.ChainId.BLAST]: {
|
|
49083
|
+
symbol: 'wETH',
|
|
49084
|
+
address: {
|
|
49085
|
+
[types.ChainId.BLAST]: '0x4300000000000000000000000000000000000004',
|
|
49086
|
+
},
|
|
49087
|
+
decimals: {
|
|
49088
|
+
[types.ChainId.BLAST]: 18,
|
|
49089
|
+
},
|
|
49090
|
+
active: true,
|
|
49091
|
+
},
|
|
49026
49092
|
};
|
|
49027
49093
|
|
|
49028
49094
|
const ABOND_ADDRESSES = {
|
|
@@ -49042,6 +49108,7 @@ const PRICE_GETTER_ADDRESSES = {
|
|
|
49042
49108
|
[types.ChainId.IOTA]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4',
|
|
49043
49109
|
[types.ChainId.BASE]: '0xE29C74B4DD05A268B5FFaadeF4fdbAa1de6FDe84',
|
|
49044
49110
|
[types.ChainId.AVAX]: '0x70005Da62E17041977f7F99f91098b125CcDE1a7',
|
|
49111
|
+
[types.ChainId.BLAST]: '0x218EB9ACDC721E235969A30f5DA46FB1224Fa7A7',
|
|
49045
49112
|
};
|
|
49046
49113
|
const MULTICALL_V2 = {
|
|
49047
49114
|
[types.ChainId.BSC]: '0x38ce767d81de3940CFa5020B55af1A400ED4F657',
|
|
@@ -49058,6 +49125,7 @@ const MULTICALL_V2 = {
|
|
|
49058
49125
|
[types.ChainId.BASE]: '0xDF845ff2dA2325Df9C6CC3DDF7418C54E16bbFDF',
|
|
49059
49126
|
[types.ChainId.GRAPHLINQ]: '0xCc88b233BbcE04c064C627ad5627da6e24a8A067',
|
|
49060
49127
|
[types.ChainId.AVAX]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
49128
|
+
[types.ChainId.BLAST]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
49061
49129
|
};
|
|
49062
49130
|
const SoulZapTokenManager = {
|
|
49063
49131
|
[types.ChainId.MAINNET]: '0x2F87f76336A560bbB0d18d357D10646bB96E8802',
|
|
@@ -49067,6 +49135,7 @@ const SoulZapTokenManager = {
|
|
|
49067
49135
|
[types.ChainId.BASE]: '0x0B750790dCa8f289fAB5eFd1a48EfAb969e51D16',
|
|
49068
49136
|
[types.ChainId.ARBITRUM]: '0x22572A548Ff26Fc5725a17dfd233F49a98c17EE7',
|
|
49069
49137
|
[types.ChainId.AVAX]: '0xC4dE46cBE21400dabE2E7c66E04F43acE4b5b910',
|
|
49138
|
+
[types.ChainId.BLAST]: '0xde9Eb844AD9e8B067309205707e2fFaA6a049cc0',
|
|
49070
49139
|
};
|
|
49071
49140
|
const ACF_TO_ABOND = '0xEce2b9C3704632Ce760271B0b84E3A4A698Ca962';
|
|
49072
49141
|
|
|
@@ -67657,6 +67726,7 @@ const PUBLIC_RPC_URLS = {
|
|
|
67657
67726
|
[types.ChainId.BASE]: ['https://base-rpc.publicnode.com', 'https://mainnet.base.org'],
|
|
67658
67727
|
[types.ChainId.GRAPHLINQ]: ['https://glq-dataseed.graphlinq.io'],
|
|
67659
67728
|
[types.ChainId.AVAX]: ['https://avax.meowrpc.com'],
|
|
67729
|
+
[types.ChainId.BLAST]: ['https://rpc.blast.io'],
|
|
67660
67730
|
};
|
|
67661
67731
|
|
|
67662
67732
|
// This is the legacy multicall
|
|
@@ -72440,6 +72510,38 @@ const zapInputTokens = {
|
|
|
72440
72510
|
active: true,
|
|
72441
72511
|
},
|
|
72442
72512
|
],
|
|
72513
|
+
[types.ChainId.BLAST]: [
|
|
72514
|
+
{
|
|
72515
|
+
symbol: 'wETH',
|
|
72516
|
+
address: {
|
|
72517
|
+
[types.ChainId.BLAST]: '0x4300000000000000000000000000000000000004',
|
|
72518
|
+
},
|
|
72519
|
+
decimals: {
|
|
72520
|
+
[types.ChainId.BLAST]: 18,
|
|
72521
|
+
},
|
|
72522
|
+
active: true,
|
|
72523
|
+
},
|
|
72524
|
+
{
|
|
72525
|
+
symbol: 'BTC',
|
|
72526
|
+
address: {
|
|
72527
|
+
[types.ChainId.BLAST]: '0xF7bc58b8D8f97ADC129cfC4c9f45Ce3C0E1D2692',
|
|
72528
|
+
},
|
|
72529
|
+
decimals: {
|
|
72530
|
+
[types.ChainId.BLAST]: 18,
|
|
72531
|
+
},
|
|
72532
|
+
active: true,
|
|
72533
|
+
},
|
|
72534
|
+
{
|
|
72535
|
+
symbol: 'USDe',
|
|
72536
|
+
address: {
|
|
72537
|
+
[types.ChainId.BLAST]: '0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34',
|
|
72538
|
+
},
|
|
72539
|
+
decimals: {
|
|
72540
|
+
[types.ChainId.BLAST]: 18,
|
|
72541
|
+
},
|
|
72542
|
+
active: true,
|
|
72543
|
+
},
|
|
72544
|
+
],
|
|
72443
72545
|
};
|
|
72444
72546
|
|
|
72445
72547
|
function useCurrencyBalance(currency, account, chainId) {
|
|
@@ -72576,6 +72678,7 @@ var NetworkNames;
|
|
|
72576
72678
|
NetworkNames["LINEA"] = "lna";
|
|
72577
72679
|
NetworkNames["BASE"] = "bas";
|
|
72578
72680
|
NetworkNames["AVAX"] = "ava";
|
|
72681
|
+
NetworkNames["BLAST"] = "bls";
|
|
72579
72682
|
})(NetworkNames || (NetworkNames = {}));
|
|
72580
72683
|
const getChainParam = (chain) => {
|
|
72581
72684
|
return chain === types.ChainId.LINEA
|
|
@@ -72592,7 +72695,9 @@ const getChainParam = (chain) => {
|
|
|
72592
72695
|
? NetworkNames.MAINNET
|
|
72593
72696
|
: chain === types.ChainId.AVAX
|
|
72594
72697
|
? NetworkNames.AVAX
|
|
72595
|
-
:
|
|
72698
|
+
: chain === types.ChainId.BLAST
|
|
72699
|
+
? NetworkNames.BLAST
|
|
72700
|
+
: null;
|
|
72596
72701
|
};
|
|
72597
72702
|
const getLpType = (protocol) => {
|
|
72598
72703
|
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;
|