@ape.swap/bonds-sdk 2.3.2 → 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.
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const RestrictedRegionModal: ({ onDismiss }: {
3
+ onDismiss?: () => void;
4
+ }) => React.JSX.Element;
5
+ export default RestrictedRegionModal;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SvgProps } from '../types';
3
+ declare const BLAST: React.FC<SvgProps>;
4
+ export default BLAST;
@@ -20,3 +20,4 @@ export { default as LINEA } from './LINEA';
20
20
  export { default as LIGHTLINK } from './LIGHTLINK';
21
21
  export { default as IOTA } from './IOTA';
22
22
  export { default as BASE } from './BASE';
23
+ export { default as BLAST } from './BLAST';
@@ -51,6 +51,7 @@ export declare enum icons {
51
51
  LIGHTLINK = "lightlink",
52
52
  IOTA = "iota",
53
53
  BASE = "base",
54
+ BLAST = "blast",
54
55
  DISCORD = "discord",
55
56
  REDDIT = "reddit",
56
57
  MEDIUM = "medium",
@@ -33,4 +33,5 @@ export declare const QUERY_KEYS: {
33
33
  CHAIN_FILTER_OPTION: string;
34
34
  FAVORITE_TOKENS: string;
35
35
  POP_UPS: string;
36
+ GEO_FENCING: string;
36
37
  };
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
- var _10,
18070
+ _9,
18071
+ _10,
18065
18072
  _11,
18066
18073
  _12,
18067
- _13,
18068
- _14,
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';
@@ -18485,207 +18505,238 @@ var types = {};
18485
18505
  protocol: Protocols.V2,
18486
18506
  }),
18487
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)),
18488
18523
  _a);
18489
18524
  exports.defaultDexFactories =
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] =
18525
+ ((_m = {}),
18526
+ (_m[ChainId.MAINNET] =
18505
18527
  ((_o = {}),
18506
18528
  (_o[Protocols.V2] =
18507
- (_15 = (_14 = exports.dexFactories[ChainId.BSC]) === null || _14 === void 0 ? void 0 : _14.ApeSwapV2) === null ||
18508
- _15 === void 0
18529
+ (_15 = (_14 = exports.dexFactories[ChainId.MAINNET]) === null || _14 === void 0 ? void 0 : _14.ApeSwapV2) ===
18530
+ null || _15 === void 0
18509
18531
  ? void 0
18510
18532
  : _15.factory),
18511
18533
  (_o[Protocols.V3] =
18512
- (_17 = (_16 = exports.dexFactories[ChainId.BSC]) === null || _16 === void 0 ? void 0 : _16.UniswapV3) === null ||
18513
- _17 === void 0
18534
+ (_17 = (_16 = exports.dexFactories[ChainId.MAINNET]) === null || _16 === void 0 ? void 0 : _16.UniswapV3) ===
18535
+ null || _17 === void 0
18514
18536
  ? void 0
18515
18537
  : _17.factory),
18516
- (_o[Protocols.Algebra] =
18517
- (_19 = (_18 = exports.dexFactories[ChainId.BSC]) === null || _18 === void 0 ? void 0 : _18.Algebra) === null ||
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 ||
18518
18543
  _19 === void 0
18519
18544
  ? void 0
18520
18545
  : _19.factory),
18521
- (_o[Protocols.Solidly] =
18522
- (_21 = (_20 = exports.dexFactories[ChainId.BSC]) === null || _20 === void 0 ? void 0 : _20.ThenaV1) === null ||
18546
+ (_p[Protocols.V3] =
18547
+ (_21 = (_20 = exports.dexFactories[ChainId.BSC]) === null || _20 === void 0 ? void 0 : _20.UniswapV3) === null ||
18523
18548
  _21 === void 0
18524
18549
  ? void 0
18525
18550
  : _21.factory),
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
18551
+ (_p[Protocols.Algebra] =
18552
+ (_23 = (_22 = exports.dexFactories[ChainId.BSC]) === null || _22 === void 0 ? void 0 : _22.Algebra) === null ||
18553
+ _23 === void 0
18532
18554
  ? void 0
18533
18555
  : _23.factory),
18534
- (_p[Protocols.V3] =
18535
- (_25 = (_24 = exports.dexFactories[ChainId.MATIC]) === null || _24 === void 0 ? void 0 : _24.UniswapV3) ===
18536
- null || _25 === void 0
18556
+ (_p[Protocols.Solidly] =
18557
+ (_25 = (_24 = exports.dexFactories[ChainId.BSC]) === null || _24 === void 0 ? void 0 : _24.ThenaV1) === null ||
18558
+ _25 === void 0
18537
18559
  ? void 0
18538
18560
  : _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),
18544
18561
  _p)),
18545
- (_l[ChainId.ARBITRUM] =
18562
+ (_m[ChainId.MATIC] =
18546
18563
  ((_q = {}),
18547
18564
  (_q[Protocols.V2] =
18548
- (_29 = (_28 = exports.dexFactories[ChainId.ARBITRUM]) === null || _28 === void 0 ? void 0 : _28.ApeSwapV2) ===
18549
- null || _29 === void 0
18565
+ (_27 = (_26 = exports.dexFactories[ChainId.MATIC]) === null || _26 === void 0 ? void 0 : _26.ApeSwapV2) ===
18566
+ null || _27 === void 0
18550
18567
  ? void 0
18551
- : _29.factory),
18568
+ : _27.factory),
18552
18569
  (_q[Protocols.V3] =
18553
- (_31 = (_30 = exports.dexFactories[ChainId.ARBITRUM]) === null || _30 === void 0 ? void 0 : _30.UniswapV3) ===
18554
- null || _31 === void 0
18570
+ (_29 = (_28 = exports.dexFactories[ChainId.MATIC]) === null || _28 === void 0 ? void 0 : _28.UniswapV3) ===
18571
+ null || _29 === void 0
18555
18572
  ? void 0
18556
- : _31.factory),
18573
+ : _29.factory),
18557
18574
  (_q[Protocols.Algebra] =
18558
- (_33 = (_32 = exports.dexFactories[ChainId.ARBITRUM]) === null || _32 === void 0 ? void 0 : _32.Algebra) ===
18559
- null || _33 === void 0
18575
+ (_31 = (_30 = exports.dexFactories[ChainId.MATIC]) === null || _30 === void 0 ? void 0 : _30.Algebra) === null ||
18576
+ _31 === void 0
18560
18577
  ? void 0
18561
- : _33.factory),
18578
+ : _31.factory),
18562
18579
  _q)),
18563
- (_l[ChainId.LINEA] =
18580
+ (_m[ChainId.ARBITRUM] =
18564
18581
  ((_r = {}),
18565
18582
  (_r[Protocols.V2] =
18566
- (_35 = (_34 = exports.dexFactories[ChainId.LINEA]) === null || _34 === void 0 ? void 0 : _34.Spartadex) ===
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) ===
18567
18589
  null || _35 === void 0
18568
18590
  ? void 0
18569
18591
  : _35.factory),
18570
- (_r[Protocols.V3] =
18571
- (_37 = (_36 = exports.dexFactories[ChainId.LINEA]) === null || _36 === void 0 ? void 0 : _36.Nile) === null ||
18572
- _37 === void 0
18592
+ (_r[Protocols.Algebra] =
18593
+ (_37 = (_36 = exports.dexFactories[ChainId.ARBITRUM]) === null || _36 === void 0 ? void 0 : _36.Algebra) ===
18594
+ null || _37 === void 0
18573
18595
  ? void 0
18574
18596
  : _37.factory),
18575
- (_r[Protocols.Algebra] =
18576
- (_39 = (_38 = exports.dexFactories[ChainId.LINEA]) === null || _38 === void 0 ? void 0 : _38.Algebra) === null ||
18577
- _39 === void 0
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
18578
18603
  ? void 0
18579
18604
  : _39.factory),
18580
- (_r[Protocols.Solidly] =
18581
- (_41 = (_40 = exports.dexFactories[ChainId.LINEA]) === null || _40 === void 0 ? void 0 : _40.Lynex) === null ||
18605
+ (_s[Protocols.V3] =
18606
+ (_41 = (_40 = exports.dexFactories[ChainId.LINEA]) === null || _40 === void 0 ? void 0 : _40.Nile) === null ||
18582
18607
  _41 === void 0
18583
18608
  ? void 0
18584
18609
  : _41.factory),
18585
- (_r[Protocols.XFAI] =
18586
- (_43 = (_42 = exports.dexFactories[ChainId.LINEA]) === null || _42 === void 0 ? void 0 : _42.XFAI) === null ||
18610
+ (_s[Protocols.Algebra] =
18611
+ (_43 = (_42 = exports.dexFactories[ChainId.LINEA]) === null || _42 === void 0 ? void 0 : _42.Algebra) === null ||
18587
18612
  _43 === void 0
18588
18613
  ? void 0
18589
18614
  : _43.factory),
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
18615
+ (_s[Protocols.Solidly] =
18616
+ (_45 = (_44 = exports.dexFactories[ChainId.LINEA]) === null || _44 === void 0 ? void 0 : _44.Lynex) === null ||
18617
+ _45 === void 0
18596
18618
  ? void 0
18597
18619
  : _45.factory),
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 ||
18620
+ (_s[Protocols.XFAI] =
18621
+ (_47 = (_46 = exports.dexFactories[ChainId.LINEA]) === null || _46 === void 0 ? void 0 : _46.XFAI) === null ||
18603
18622
  _47 === void 0
18604
18623
  ? void 0
18605
18624
  : _47.factory),
18625
+ _s)),
18626
+ (_m[ChainId.LIGHTLINK] =
18627
+ ((_t = {}),
18606
18628
  (_t[Protocols.V3] =
18607
- (_49 = (_48 = exports.dexFactories[ChainId.BASE]) === null || _48 === void 0 ? void 0 : _48.UniswapV3) === null ||
18608
- _49 === void 0
18629
+ (_49 = (_48 = exports.dexFactories[ChainId.LIGHTLINK]) === null || _48 === void 0 ? void 0 : _48.Elektrik) ===
18630
+ null || _49 === void 0
18609
18631
  ? void 0
18610
18632
  : _49.factory),
18611
- (_t[Protocols.Algebra] =
18612
- (_51 = (_50 = exports.dexFactories[ChainId.BASE]) === null || _50 === void 0 ? void 0 : _50.Algebra) === null ||
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 ||
18613
18638
  _51 === void 0
18614
18639
  ? void 0
18615
18640
  : _51.factory),
18616
- (_t[Protocols.Solidly] =
18617
- (_53 = (_52 = exports.dexFactories[ChainId.BASE]) === null || _52 === void 0 ? void 0 : _52.Aerodrome) === null ||
18641
+ (_u[Protocols.V3] =
18642
+ (_53 = (_52 = exports.dexFactories[ChainId.BASE]) === null || _52 === void 0 ? void 0 : _52.UniswapV3) === null ||
18618
18643
  _53 === void 0
18619
18644
  ? void 0
18620
18645
  : _53.factory),
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 ||
18646
+ (_u[Protocols.Algebra] =
18647
+ (_55 = (_54 = exports.dexFactories[ChainId.BASE]) === null || _54 === void 0 ? void 0 : _54.Algebra) === null ||
18626
18648
  _55 === void 0
18627
18649
  ? void 0
18628
18650
  : _55.factory),
18629
- _u)),
18630
- (_l[ChainId.AVAX] =
18631
- ((_v = {}),
18632
- (_v[Protocols.V2] =
18633
- (_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 ||
18634
18653
  _57 === void 0
18635
18654
  ? void 0
18636
18655
  : _57.factory),
18637
- (_v[Protocols.V3] =
18638
- (_59 = (_58 = exports.dexFactories[ChainId.AVAX]) === null || _58 === void 0 ? void 0 : _58.Pharaoh) === null ||
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 ||
18639
18661
  _59 === void 0
18640
18662
  ? void 0
18641
18663
  : _59.factory),
18642
18664
  _v)),
18643
- _l);
18644
- exports.dexToZapMapping =
18645
- ((_w = {}),
18646
- (_w[LiquidityDex.ApeSwapV2] =
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] =
18647
18679
  ((_x = {}),
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),
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),
18655
18690
  _x)),
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);
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);
18689
18740
 
18690
18741
  } (types));
18691
18742
 
@@ -18702,6 +18753,7 @@ const MAINNET_CHAINS = [
18702
18753
  types.ChainId.LIGHTLINK,
18703
18754
  types.ChainId.GRAPHLINQ,
18704
18755
  types.ChainId.AVAX,
18756
+ types.ChainId.BLAST,
18705
18757
  ];
18706
18758
  // Network Icons
18707
18759
  const NETWORK_ICONS = {
@@ -18718,6 +18770,7 @@ const NETWORK_ICONS = {
18718
18770
  [types.ChainId.BASE]: icons.BASE,
18719
18771
  [types.ChainId.GRAPHLINQ]: icons.GRAPHLINQ,
18720
18772
  [types.ChainId.AVAX]: icons.AVAX_TOKEN,
18773
+ [types.ChainId.BLAST]: icons.BLAST,
18721
18774
  };
18722
18775
  // Network labels
18723
18776
  const NETWORK_LABEL = {
@@ -18736,6 +18789,7 @@ const NETWORK_LABEL = {
18736
18789
  [types.ChainId.BASE]: 'Base',
18737
18790
  [types.ChainId.GRAPHLINQ]: 'GraphLinq',
18738
18791
  [types.ChainId.AVAX]: 'Avalanche',
18792
+ [types.ChainId.BLAST]: 'Blast',
18739
18793
  };
18740
18794
  // Network block explorers
18741
18795
  const BLOCK_EXPLORER = {
@@ -18754,6 +18808,7 @@ const BLOCK_EXPLORER = {
18754
18808
  [types.ChainId.BASE]: 'https://basescan.org',
18755
18809
  [types.ChainId.GRAPHLINQ]: 'https://graphlinq.dex.guru',
18756
18810
  [types.ChainId.AVAX]: 'https://snowscan.xyz',
18811
+ [types.ChainId.BLAST]: 'https://blastscan.io',
18757
18812
  };
18758
18813
 
18759
18814
  const supportedByLIFI = [
@@ -18764,6 +18819,7 @@ const supportedByLIFI = [
18764
18819
  types.ChainId.LINEA,
18765
18820
  types.ChainId.BASE,
18766
18821
  types.ChainId.AVAX,
18822
+ types.ChainId.BLAST,
18767
18823
  ];
18768
18824
  // we should be good just by using staging on this, as it is only used for token images
18769
18825
  const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging`;
@@ -18841,6 +18897,7 @@ const QUERY_KEYS = {
18841
18897
  CHAIN_FILTER_OPTION: 'ApeBond-SDK-chainFilterOption',
18842
18898
  FAVORITE_TOKENS: 'ApeBond-SDK-favoriteTokens',
18843
18899
  POP_UPS: 'ApeBond-SDK-popUps',
18900
+ GEO_FENCING: 'ApeBond-SDK-geoFencing',
18844
18901
  };
18845
18902
 
18846
18903
  function useCookie(key, defaultValue) {
@@ -18960,6 +19017,7 @@ const NETWORK_COLORS = {
18960
19017
  [types.ChainId.IOTA]: '#fff',
18961
19018
  [types.ChainId.GRAPHLINQ]: '#ded2ff',
18962
19019
  [types.ChainId.AVAX]: '#e74344',
19020
+ [types.ChainId.BLAST]: '#fcfc03',
18963
19021
  };
18964
19022
  const TokenInfoAndName = ({ bill, vestEnds, isHotBond, }) => {
18965
19023
  var _a, _b, _c, _d, _e;
@@ -49021,6 +49079,16 @@ const WNATIVE = {
49021
49079
  },
49022
49080
  active: true,
49023
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
+ },
49024
49092
  };
49025
49093
 
49026
49094
  const ABOND_ADDRESSES = {
@@ -49038,8 +49106,9 @@ const PRICE_GETTER_ADDRESSES = {
49038
49106
  [types.ChainId.LINEA]: '0x35b1eadAbaDD0Edd26076247f3dEdF9E15De8D5D',
49039
49107
  [types.ChainId.LIGHTLINK]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4',
49040
49108
  [types.ChainId.IOTA]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4',
49041
- [types.ChainId.BASE]: '0x2e6AB3cc819BE64886C1bB403813cCBec0407a5b',
49109
+ [types.ChainId.BASE]: '0xE29C74B4DD05A268B5FFaadeF4fdbAa1de6FDe84',
49042
49110
  [types.ChainId.AVAX]: '0x70005Da62E17041977f7F99f91098b125CcDE1a7',
49111
+ [types.ChainId.BLAST]: '0x218EB9ACDC721E235969A30f5DA46FB1224Fa7A7',
49043
49112
  };
49044
49113
  const MULTICALL_V2 = {
49045
49114
  [types.ChainId.BSC]: '0x38ce767d81de3940CFa5020B55af1A400ED4F657',
@@ -49056,6 +49125,7 @@ const MULTICALL_V2 = {
49056
49125
  [types.ChainId.BASE]: '0xDF845ff2dA2325Df9C6CC3DDF7418C54E16bbFDF',
49057
49126
  [types.ChainId.GRAPHLINQ]: '0xCc88b233BbcE04c064C627ad5627da6e24a8A067',
49058
49127
  [types.ChainId.AVAX]: '0xcA11bde05977b3631167028862bE2a173976CA11',
49128
+ [types.ChainId.BLAST]: '0xcA11bde05977b3631167028862bE2a173976CA11',
49059
49129
  };
49060
49130
  const SoulZapTokenManager = {
49061
49131
  [types.ChainId.MAINNET]: '0x2F87f76336A560bbB0d18d357D10646bB96E8802',
@@ -49065,6 +49135,7 @@ const SoulZapTokenManager = {
49065
49135
  [types.ChainId.BASE]: '0x0B750790dCa8f289fAB5eFd1a48EfAb969e51D16',
49066
49136
  [types.ChainId.ARBITRUM]: '0x22572A548Ff26Fc5725a17dfd233F49a98c17EE7',
49067
49137
  [types.ChainId.AVAX]: '0xC4dE46cBE21400dabE2E7c66E04F43acE4b5b910',
49138
+ [types.ChainId.BLAST]: '0xde9Eb844AD9e8B067309205707e2fFaA6a049cc0',
49068
49139
  };
49069
49140
  const ACF_TO_ABOND = '0xEce2b9C3704632Ce760271B0b84E3A4A698Ca962';
49070
49141
 
@@ -67655,6 +67726,7 @@ const PUBLIC_RPC_URLS = {
67655
67726
  [types.ChainId.BASE]: ['https://base-rpc.publicnode.com', 'https://mainnet.base.org'],
67656
67727
  [types.ChainId.GRAPHLINQ]: ['https://glq-dataseed.graphlinq.io'],
67657
67728
  [types.ChainId.AVAX]: ['https://avax.meowrpc.com'],
67729
+ [types.ChainId.BLAST]: ['https://rpc.blast.io'],
67658
67730
  };
67659
67731
 
67660
67732
  // This is the legacy multicall
@@ -72438,6 +72510,38 @@ const zapInputTokens = {
72438
72510
  active: true,
72439
72511
  },
72440
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
+ ],
72441
72545
  };
72442
72546
 
72443
72547
  function useCurrencyBalance(currency, account, chainId) {
@@ -72574,6 +72678,7 @@ var NetworkNames;
72574
72678
  NetworkNames["LINEA"] = "lna";
72575
72679
  NetworkNames["BASE"] = "bas";
72576
72680
  NetworkNames["AVAX"] = "ava";
72681
+ NetworkNames["BLAST"] = "bls";
72577
72682
  })(NetworkNames || (NetworkNames = {}));
72578
72683
  const getChainParam = (chain) => {
72579
72684
  return chain === types.ChainId.LINEA
@@ -72590,7 +72695,9 @@ const getChainParam = (chain) => {
72590
72695
  ? NetworkNames.MAINNET
72591
72696
  : chain === types.ChainId.AVAX
72592
72697
  ? NetworkNames.AVAX
72593
- : null;
72698
+ : chain === types.ChainId.BLAST
72699
+ ? NetworkNames.BLAST
72700
+ : null;
72594
72701
  };
72595
72702
  const getLpType = (protocol) => {
72596
72703
  return protocol === types.Protocols.Algebra
@@ -74176,9 +74283,32 @@ const ImageAndShortDescription = ({ bondData, onDismiss }) => {
74176
74283
  }) })] }), jsxs(Flex, { sx: { alignItems: 'center', display: ['flex', 'flex', 'flex', 'none'], p: '10px', width: '100%' }, children: [jsxs(Flex, { sx: { width: ['50%', '50%', '50%', '100%'], alignItems: 'center' }, children: [jsx$2(Flex, { sx: { mr: '5px' }, children: jsx$2(TokenImage, { symbol: (_a = bondData.showcaseTokenName) !== null && _a !== void 0 ? _a : bondData.earnToken.symbol, size: 30, chain: bondData.chainId }) }), jsxs("h2", { className: "modal-tokenname-chainicon", sx: { margin: '0px' }, children: [bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName, ' '] })] }), jsx$2(Flex, { className: "modal-marketprice-header", sx: { justifyContent: 'flex-end', alignItems: 'center' }, children: jsxs("span", { className: "modal-marketprice", children: ["Market Price: $", earnTokenPrice(bondData)] }) }), jsx$2(Flex, { className: "bondmodal-header-alt", sx: { mb: '10px' }, children: jsx$2(BondModalHeaderAlt, { bondData: bondData, onDismiss: onDismiss, showProjectInfoButton: (SDKConfig === null || SDKConfig === void 0 ? void 0 : SDKConfig.referenceId) === 'apebond' }) })] }), jsx$2(Flex, { className: "description-container paragraph-spaced", sx: { px: '10px', opacity: 0.7, mt: ['0', '0', '0', '10px'] }, children: jsx$2(ProjectDescription, { description: bondData === null || bondData === void 0 ? void 0 : bondData.shortDescription }) })] }));
74177
74284
  };
74178
74285
 
74286
+ // Fetch country code to check if the region is allowed
74287
+ const fetchLocation = (apiv2URL) => __awaiter$9(void 0, void 0, void 0, function* () {
74288
+ const resp = yield axios.get(`${apiv2URL}/check`);
74289
+ const { isRestrictedRegion, countryCode } = resp === null || resp === void 0 ? void 0 : resp.data;
74290
+ return { isRestrictedRegion, countryCode };
74291
+ });
74292
+ function useGeoFencing() {
74293
+ const apiv2URL = useURLByEnvironment('apiV2');
74294
+ return useQuery({
74295
+ queryKey: [QUERY_KEYS.GEO_FENCING],
74296
+ queryFn: () => fetchLocation(apiv2URL),
74297
+ staleTime: Infinity,
74298
+ refetchOnMount: false,
74299
+ refetchOnWindowFocus: false,
74300
+ });
74301
+ }
74302
+
74303
+ const RestrictedRegionModal = ({ onDismiss }) => {
74304
+ const { data: geoData } = useGeoFencing();
74305
+ return (jsxs(Modal, { className: "modal", title: "Notice", sx: { maxWidth: '200px' }, children: [jsxs(Flex, { sx: { my: '20px' }, children: ["Unfortunately, this bond is restricted for your region: ", geoData === null || geoData === void 0 ? void 0 : geoData.countryCode, "."] }), jsx$2(Button, { fullWidth: true, onClick: onDismiss, children: "Close" })] }));
74306
+ };
74307
+
74179
74308
  const BondModal = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond }) => {
74180
74309
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
74181
74310
  const SDKConfig = useSDKConfig();
74311
+ const { data: geoData } = useGeoFencing();
74182
74312
  // State
74183
74313
  const [modalVariant, setModalVariant] = useState(SDKConfig === null || SDKConfig === void 0 ? void 0 : SDKConfig.modalVariant);
74184
74314
  const [accordionVisible, setAccordionVisible] = useState(false);
@@ -74346,13 +74476,26 @@ const BondModal = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond }) =
74346
74476
  }
74347
74477
  }
74348
74478
  });
74479
+ const [openGeofencingModal] = useModal(jsx$2(RestrictedRegionModal, {}));
74480
+ const blockedBondsForAE = [
74481
+ '0x0719CCaF2f07f59b23DB7d80E3d2791A0836bdfD'.toLowerCase(),
74482
+ '0xBc48794a04777E7170bD5633E8b728f8a0945971'.toLowerCase(),
74483
+ '0x94A283756B70c2A77bc58Ae0E2615Caf14310186'.toLowerCase(),
74484
+ '0x6639D4acAe77967c253C75cBfEd7C612682E2704'.toLowerCase(),
74485
+ ];
74349
74486
  const handleBothPurchases = () => {
74350
- setLoadingTx(true);
74351
- if (isZap) {
74352
- handleZapCallback().finally(() => setLoadingTx(false));
74487
+ var _a, _b;
74488
+ if ((geoData === null || geoData === void 0 ? void 0 : geoData.countryCode) === 'AE' && blockedBondsForAE.includes((_b = (_a = bondData === null || bondData === void 0 ? void 0 : bondData.billAddress) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : '')) {
74489
+ openGeofencingModal();
74353
74490
  }
74354
74491
  else {
74355
- handleBuyCallback().finally(() => setLoadingTx(false));
74492
+ setLoadingTx(true);
74493
+ if (isZap) {
74494
+ handleZapCallback().finally(() => setLoadingTx(false));
74495
+ }
74496
+ else {
74497
+ handleBuyCallback().finally(() => setLoadingTx(false));
74498
+ }
74356
74499
  }
74357
74500
  };
74358
74501
  const openExternal = () => {
@@ -74452,7 +74595,6 @@ const ModalHandler = ({ onDismiss, bondAddress, bondChain, }) => {
74452
74595
  const { data: userBonds, refetch } = useUserBonds();
74453
74596
  const userBill = userBonds === null || userBonds === void 0 ? void 0 : userBonds.find((bond) => bond.id === billId);
74454
74597
  useEffect(() => {
74455
- console.log(billId);
74456
74598
  if (billId) {
74457
74599
  console.log('BillId detected, Refetching user bonds');
74458
74600
  refetch();
@@ -74779,7 +74921,7 @@ const BondRowsByChain = ({ bonds, hideTitles }) => {
74779
74921
  const SDKConfig = useSDKConfig();
74780
74922
  const validatedChains = (_a = SDKConfig === null || SDKConfig === void 0 ? void 0 : SDKConfig.chains) === null || _a === void 0 ? void 0 : _a.filter((chain) => MAINNET_CHAINS.includes(chain));
74781
74923
  return (jsx$2(Flex$1, { className: "bondrowsbychain", children: validatedChains === null || validatedChains === void 0 ? void 0 : validatedChains.map((chain) => {
74782
- return (jsx$2(BondRowsWithTitle, { chain: chain, bonds: bonds, hideTitles: hideTitles, showHotBonds: SDKConfig.useHotBonds ? chain === types.ChainId.BASE || chain === types.ChainId.MAINNET : false }, chain));
74924
+ return (jsx$2(BondRowsWithTitle, { chain: chain, bonds: bonds, hideTitles: hideTitles, showHotBonds: hideTitles ? false : SDKConfig.useHotBonds ? chain === types.ChainId.BASE || chain === types.ChainId.MAINNET : false }, chain));
74783
74925
  }) }));
74784
74926
  };
74785
74927
 
@@ -74953,6 +75095,7 @@ const BondsMenu = ({ searchQuery, setSearchQuery, setChainFilterOption, chainFil
74953
75095
  const Bonds = () => {
74954
75096
  // Fetch data
74955
75097
  useHotBonds();
75098
+ useGeoFencing();
74956
75099
  const { favTokens } = useFavoriteTokens();
74957
75100
  const { data: bondData, refetch: refetchBondsData } = useBondsData();
74958
75101
  const { data: allBonds } = useBondsList();
@@ -90721,6 +90864,7 @@ const SalesTable = ({ allSales }) => {
90721
90864
  const receivedUsdAmount = ((_a = sale === null || sale === void 0 ? void 0 : sale.payout) !== null && _a !== void 0 ? _a : 0) * (sale === null || sale === void 0 ? void 0 : sale.payoutTokenPrice);
90722
90865
  const discount = 100 - (sale.dollarValue * 100) / receivedUsdAmount;
90723
90866
  const isUserTheBuyer = (buyer === null || buyer === void 0 ? void 0 : buyer.toLowerCase()) === (account === null || account === void 0 ? void 0 : account.toLowerCase());
90867
+ const payoutToken = sale.payoutToken === 'LL.e' ? 'LL' : sale.payoutToken;
90724
90868
  return (jsxs(Flex, { sx: {
90725
90869
  width: '100%',
90726
90870
  background: 'white3',
@@ -90731,7 +90875,7 @@ const SalesTable = ({ allSales }) => {
90731
90875
  alignItems: 'center',
90732
90876
  justifyContent: 'space-between',
90733
90877
  fontSize: '12px',
90734
- }, children: [jsxs(Flex, { sx: { width: '170px', alignItems: 'center' }, children: [jsx$2(Flex, { sx: { width: '30px', justifyContent: 'center' }, children: index + 4 }), jsx$2(TokenImage, { symbol: sale.payoutToken, chain: sale.chainId, size: 28 }), jsx$2(Flex, { sx: { ml: '10px' }, children: sale.payoutToken })] }), jsx$2(Flex, { sx: { width: '120px', justifyContent: 'center' }, children: formatUTCDate(new Date(sale.createdAt * 1000)) }), jsx$2(Flex, { sx: { width: '160px', justifyContent: 'center', position: 'relative' }, children: jsxs(Flex, { sx: { position: 'relative' }, children: [buyer === null || buyer === void 0 ? void 0 : buyer.slice(0, 4), "...", buyer === null || buyer === void 0 ? void 0 : buyer.slice((buyer === null || buyer === void 0 ? void 0 : buyer.length) - 4, buyer === null || buyer === void 0 ? void 0 : buyer.length), isUserTheBuyer && jsx$2(Flex, { sx: styles$1.youCard, children: "You" })] }) }), jsxs(Flex, { sx: { width: '110px', justifyContent: 'center' }, children: ["$", sale.dollarValue.toFixed(2)] }), jsxs(Flex, { sx: { width: '110px', justifyContent: 'center' }, children: ["$", receivedUsdAmount === null || receivedUsdAmount === void 0 ? void 0 : receivedUsdAmount.toFixed(2)] }), jsxs(Flex, { sx: { width: '85px', justifyContent: 'center', color: discount > 0 ? 'success' : 'error' }, children: [discount.toFixed(2), "%"] })] }, sale.transactionHash));
90878
+ }, children: [jsxs(Flex, { sx: { width: '170px', alignItems: 'center' }, children: [jsx$2(Flex, { sx: { width: '30px', justifyContent: 'center' }, children: index + 4 }), jsx$2(TokenImage, { symbol: payoutToken, chain: sale.chainId, size: 28 }), jsx$2(Flex, { sx: { ml: '10px' }, children: sale.payoutToken })] }), jsx$2(Flex, { sx: { width: '120px', justifyContent: 'center' }, children: formatUTCDate(new Date(sale.createdAt * 1000)) }), jsx$2(Flex, { sx: { width: '160px', justifyContent: 'center', position: 'relative' }, children: jsxs(Flex, { sx: { position: 'relative' }, children: [buyer === null || buyer === void 0 ? void 0 : buyer.slice(0, 4), "...", buyer === null || buyer === void 0 ? void 0 : buyer.slice((buyer === null || buyer === void 0 ? void 0 : buyer.length) - 4, buyer === null || buyer === void 0 ? void 0 : buyer.length), isUserTheBuyer && jsx$2(Flex, { sx: styles$1.youCard, children: "You" })] }) }), jsxs(Flex, { sx: { width: '110px', justifyContent: 'center' }, children: ["$", sale.dollarValue.toFixed(2)] }), jsxs(Flex, { sx: { width: '110px', justifyContent: 'center' }, children: ["$", receivedUsdAmount === null || receivedUsdAmount === void 0 ? void 0 : receivedUsdAmount.toFixed(2)] }), jsxs(Flex, { sx: { width: '85px', justifyContent: 'center', color: discount > 0 ? 'success' : 'error' }, children: [discount.toFixed(2), "%"] })] }, sale.transactionHash));
90735
90879
  }) })] }));
90736
90880
  };
90737
90881
 
@@ -0,0 +1,5 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ export default function useGeoFencing(): UseQueryResult<{
3
+ isRestrictedRegion: boolean;
4
+ countryCode: string;
5
+ }>;
@@ -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.3.2",
6
+ "version": "2.3.4",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",