@ape.swap/bonds-sdk 2.0.0-test.1 → 2.0.0-test.2

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,4 @@
1
+ import React from 'react';
2
+ import { SvgProps } from '../types';
3
+ declare const GRAPHLINQ: React.FC<SvgProps>;
4
+ export default GRAPHLINQ;
@@ -152,7 +152,8 @@ export declare enum icons {
152
152
  AllChains = "AllChains",
153
153
  Star = "Star",
154
154
  StarFilled = "StarFilled",
155
- FirePink = "FirePink"
155
+ FirePink = "FirePink",
156
+ GRAPHLINQ = "GRAPHLINQ"
156
157
  }
157
158
  export declare enum directions {
158
159
  LEFT = "left",
@@ -4,17 +4,3 @@ export declare const MAINNET_CHAINS: ChainId[];
4
4
  export declare const NETWORK_ICONS: Partial<Record<number, icons>>;
5
5
  export declare const NETWORK_LABEL: Record<number, string>;
6
6
  export declare const BLOCK_EXPLORER: Record<number, string>;
7
- interface ChainParamContent {
8
- chainId: string;
9
- chainName: string;
10
- nativeCurrency: {
11
- name: string;
12
- symbol: string;
13
- decimals: number;
14
- logo: string;
15
- };
16
- blockExplorerUrls: string[];
17
- logoURI: string;
18
- }
19
- export declare const CHAIN_PARAMS: Partial<Record<ChainId, ChainParamContent>>;
20
- export {};
package/dist/main.js CHANGED
@@ -4070,6 +4070,7 @@ var icons;
4070
4070
  icons["Star"] = "Star";
4071
4071
  icons["StarFilled"] = "StarFilled";
4072
4072
  icons["FirePink"] = "FirePink";
4073
+ icons["GRAPHLINQ"] = "GRAPHLINQ";
4073
4074
  })(icons || (icons = {}));
4074
4075
  var directions;
4075
4076
  (function (directions) {
@@ -7036,6 +7037,10 @@ const Icon = ({ width }) => {
7036
7037
  return (jsxs("svg", { viewBox: "0 0 64 64", width: width || '128px', children: [jsx$2("circle", { cx: "32", cy: "32", r: "32", fill: "white" }), jsx$2("g", { transform: "translate(0.000000,64.000000) scale(0.100000,-0.100000)", fill: "#000000", stroke: "none", children: jsx$2("path", { d: "M140 440 l0 -60 60 0 60 0 0 -60 0 -60 -60 0 -60 0 0 -60 0 -60 60 0 60 0 0 60 0 60 60 0 60 0 0 -60 0 -60 60 0 60 0 0 60 0 60 -60 0 -60 0 0 60 0 60 60 0 60 0 0 60 0 60 -60 0 -60 0 0 -60 0 -60 -60 0 -60 0 0 60 0 60 -60 0 -60 0 0 -60z" }) })] }));
7037
7038
  };
7038
7039
 
7040
+ const GRAPHLINQ = ({ width }) => {
7041
+ return (jsxs("svg", { width: width || '30', height: width || '30', viewBox: "0 0 30 30", xmlns: "http://www.w3.org/2000/svg", fill: "none", children: [jsxs("defs", { children: [jsx$2("clipPath", { id: "clip0_4264_7938", children: jsx$2("rect", { x: "0", y: "0.16113", width: "37.1613", height: "33.6774", fill: "white" }) }), jsxs("linearGradient", { y2: "1.01287", x2: "0.01129", y1: "0.01082", x1: "1.00361", id: "paint0_linear_4264_7938", children: [jsx$2("stop", { stopColor: "#9747FF" }), jsx$2("stop", { stopColor: "#782AED", offset: "1" })] })] }), jsxs("g", { clipPath: "url(#clip0_4264_7938)", children: [jsx$2("rect", { x: "-3.5", y: "-5.5", width: "55", height: "55", fill: "#000" }), jsx$2("path", { fill: "#DED2FF", d: "M18.22388,23.86074l-6.41484,0c-1.13086,0 -2.18424,-0.61751 -2.74931,-1.61079l-3.20776,-5.63883c-0.56507,-0.99401 -0.56507,-2.22824 0,-3.22226l3.20776,-5.63882c0.56507,-0.9933 1.61845,-1.61078 2.74931,-1.61078l6.41556,0c1.13081,0 2.18419,0.61748 2.74929,1.61078l1.58932,2.7938c0.3319,0.58357 0.13502,1.32943 -0.43997,1.66705c-0.57504,0.33688 -1.30997,0.13703 -1.64264,-0.44654l-1.58932,-2.79378c-0.13718,-0.24093 -0.39304,-0.39098 -0.6674,-0.39098l-6.41484,0c-0.27436,0 -0.53022,0.15004 -0.6674,0.39098l-3.20779,5.63879c-0.13718,0.24095 -0.13718,0.54105 0,0.78195l3.20779,5.63883c0.13718,0.2409 0.39304,0.39098 0.6674,0.39098l6.41556,0c0.27436,0 0.53022,-0.15008 0.6674,-0.39098l2.80544,-4.93192l-5.37423,0c-0.66385,0 -1.2019,-0.54605 -1.2019,-1.21976c0,-0.67376 0.53805,-1.21981 1.2019,-1.21981l6.96572,0c0.693,0 1.26804,0.57131 1.28226,1.27391c0.01205,0.63045 -0.14501,1.25223 -0.45563,1.79759l-3.14027,5.52049c-0.56716,0.99259 -1.62054,1.6101 -2.7514,1.6101z" }), jsx$2("path", { fill: "url(#paint0_linear_4264_7938)", d: "M10.74062,17.03393c-0.20685,0 -0.41724,-0.05409 -0.60844,-0.16876c-0.57218,-0.34193 -0.76338,-1.08926 -0.42647,-1.66993l2.96824,-5.12162c0.33689,-0.58069 1.07327,-0.77473 1.64547,-0.43281c0.57215,0.34192 0.76337,1.08924 0.42647,1.66993l-2.96827,5.12162c-0.22387,0.38592 -0.62475,0.60157 -1.037,0.60157z" })] })] }));
7042
+ };
7043
+
7039
7044
  const Svg = (_a) => {
7040
7045
  var { icon } = _a, props = __rest(_a, ["icon"]);
7041
7046
  const getStyles = ({ degree, color, margin }) => dynamicStyles$1.generic({
@@ -7352,6 +7357,8 @@ const Svg = (_a) => {
7352
7357
  return jsx$2(StarFilled, Object.assign({}, props, { getStyles: getStyles }));
7353
7358
  case icons.FirePink:
7354
7359
  return jsx$2(FirePink, Object.assign({}, props, { getStyles: getStyles }));
7360
+ case icons.GRAPHLINQ:
7361
+ return jsx$2(GRAPHLINQ, Object.assign({}, props, { getStyles: getStyles }));
7355
7362
  default:
7356
7363
  return null;
7357
7364
  }
@@ -18432,22 +18439,10 @@ var types = {};
18432
18439
 
18433
18440
  } (types));
18434
18441
 
18435
- const supportedByLIFI = [
18436
- types.ChainId.MAINNET,
18437
- types.ChainId.MATIC,
18438
- types.ChainId.BSC,
18439
- types.ChainId.ARBITRUM,
18440
- types.ChainId.LINEA,
18441
- types.ChainId.BASE,
18442
- ];
18443
- // we should be good just by using staging on this, as it is only used for token images
18444
- const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging`;
18445
- const STRAPI_URL = `https://apeswap-strapi.herokuapp.com`;
18446
- const SOUL_ZAP_API = `https://soulsolidity-zap-api-902f1d839e8d.herokuapp.com/zap?batch=1`;
18447
-
18448
18442
  // Network chain ids
18449
18443
  // These are the lists we will display to the user
18450
18444
  const MAINNET_CHAINS = [
18445
+ types.ChainId.GRAPHLINQ,
18451
18446
  types.ChainId.MAINNET,
18452
18447
  types.ChainId.BSC,
18453
18448
  types.ChainId.MATIC,
@@ -18470,6 +18465,7 @@ const NETWORK_ICONS = {
18470
18465
  [types.ChainId.LIGHTLINK]: icons.LIGHTLINK,
18471
18466
  [types.ChainId.IOTA]: icons.IOTA,
18472
18467
  [types.ChainId.BASE]: icons.BASE,
18468
+ [types.ChainId.GRAPHLINQ]: icons.GRAPHLINQ,
18473
18469
  };
18474
18470
  // Network labels
18475
18471
  const NETWORK_LABEL = {
@@ -18486,6 +18482,7 @@ const NETWORK_LABEL = {
18486
18482
  [types.ChainId.IOTA]: 'Iota',
18487
18483
  [types.ChainId.IOTA_TESTNET]: 'Iota Testnet',
18488
18484
  [types.ChainId.BASE]: 'Base',
18485
+ [types.ChainId.GRAPHLINQ]: 'GraphLinq',
18489
18486
  };
18490
18487
  // Network block explorers
18491
18488
  const BLOCK_EXPLORER = {
@@ -18502,165 +18499,21 @@ const BLOCK_EXPLORER = {
18502
18499
  [types.ChainId.IOTA]: 'https://explorer.evm.iota.org',
18503
18500
  [types.ChainId.IOTA_TESTNET]: 'https://explorer.evm.testnet.iotaledger.net/',
18504
18501
  [types.ChainId.BASE]: 'https://basescan.org',
18502
+ [types.ChainId.GRAPHLINQ]: 'https://graphlinq.dex.guru',
18505
18503
  };
18506
- ({
18507
- [types.ChainId.BSC]: {
18508
- chainId: '0x38',
18509
- chainName: 'Binance Smart Chain',
18510
- nativeCurrency: {
18511
- name: 'bnb',
18512
- symbol: 'BNB',
18513
- decimals: 18,
18514
- logo: `${APESWAP_LIST_REPO}/assets/BNB.svg`,
18515
- },
18516
- blockExplorerUrls: [BLOCK_EXPLORER[types.ChainId.BSC]],
18517
- logoURI: `${APESWAP_LIST_REPO}/assets/wbnb.png`,
18518
- },
18519
- [types.ChainId.BSC_TESTNET]: {
18520
- chainId: '0x61',
18521
- chainName: 'Binance Smart Chain Testnet',
18522
- nativeCurrency: {
18523
- name: 'bnb',
18524
- symbol: 'BNB',
18525
- decimals: 18,
18526
- logo: `${APESWAP_LIST_REPO}/assets/BNB.svg`,
18527
- },
18528
- blockExplorerUrls: [BLOCK_EXPLORER[types.ChainId.BSC_TESTNET]],
18529
- logoURI: `${APESWAP_LIST_REPO}/assets/wbnb.png`,
18530
- },
18531
- [types.ChainId.MATIC]: {
18532
- chainId: '0x89',
18533
- chainName: 'Matic',
18534
- nativeCurrency: {
18535
- name: 'Matic',
18536
- symbol: 'MATIC',
18537
- decimals: 18,
18538
- logo: `${APESWAP_LIST_REPO}/assets/MATIC.svg`,
18539
- },
18540
- blockExplorerUrls: [BLOCK_EXPLORER[types.ChainId.MATIC]],
18541
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/polygon.svg',
18542
- },
18543
- [types.ChainId.MAINNET]: {
18544
- chainId: '0x1',
18545
- chainName: 'Ethereum',
18546
- nativeCurrency: {
18547
- name: 'Ethereum',
18548
- symbol: 'ETH',
18549
- decimals: 18,
18550
- logo: `${APESWAP_LIST_REPO}/assets/ETH.svg`,
18551
- },
18552
- blockExplorerUrls: [BLOCK_EXPLORER[types.ChainId.MAINNET]],
18553
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg',
18554
- },
18555
- [types.ChainId.TLOS]: {
18556
- chainId: '0x28',
18557
- chainName: 'Telos',
18558
- nativeCurrency: {
18559
- name: 'Telos',
18560
- symbol: 'TLOS',
18561
- decimals: 18,
18562
- logo: `${APESWAP_LIST_REPO}/assets/TLOS.svg`,
18563
- },
18564
- blockExplorerUrls: [BLOCK_EXPLORER[types.ChainId.TLOS]],
18565
- logoURI: `${APESWAP_LIST_REPO}/assets/wtlos.svg`,
18566
- },
18567
- [types.ChainId.ARBITRUM]: {
18568
- chainId: '0xa4b1',
18569
- chainName: 'Arbitrum',
18570
- nativeCurrency: {
18571
- name: 'Ether',
18572
- symbol: 'ETH',
18573
- decimals: 18,
18574
- logo: `${APESWAP_LIST_REPO}/assets/ETH.svg`,
18575
- },
18576
- blockExplorerUrls: [BLOCK_EXPLORER[types.ChainId.ARBITRUM]],
18577
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/arbitrum.svg',
18578
- },
18579
- [types.ChainId.INEVM]: {
18580
- chainId: '0x978',
18581
- chainName: 'InEVM',
18582
- nativeCurrency: {
18583
- name: 'INJ',
18584
- symbol: 'INJ',
18585
- decimals: 18,
18586
- logo: `${APESWAP_LIST_REPO}/assets/INJ.svg`,
18587
- },
18588
- blockExplorerUrls: [BLOCK_EXPLORER[types.ChainId.INEVM]],
18589
- logoURI: 'https://docs.injective.network/img/injective.svg',
18590
- },
18591
- [types.ChainId.SEPOLIA]: {
18592
- chainId: '0xaa36a7',
18593
- chainName: 'Sepolia',
18594
- nativeCurrency: {
18595
- name: 'ETH',
18596
- symbol: 'ETH',
18597
- decimals: 18,
18598
- logo: `${APESWAP_LIST_REPO}/assets/ETH.svg`,
18599
- },
18600
- blockExplorerUrls: [BLOCK_EXPLORER[types.ChainId.SEPOLIA]],
18601
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg',
18602
- },
18603
- [types.ChainId.LINEA]: {
18604
- chainId: '0xe708',
18605
- chainName: 'Linea',
18606
- nativeCurrency: {
18607
- name: 'ETH',
18608
- symbol: 'ETH',
18609
- decimals: 18,
18610
- logo: `${APESWAP_LIST_REPO}/assets/ETH.svg`,
18611
- },
18612
- blockExplorerUrls: [BLOCK_EXPLORER[types.ChainId.LINEA]],
18613
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg',
18614
- },
18615
- [types.ChainId.LIGHTLINK]: {
18616
- chainId: '0x762',
18617
- chainName: 'Lightlink Phoenix',
18618
- nativeCurrency: {
18619
- name: 'ETH',
18620
- symbol: 'ETH',
18621
- decimals: 18,
18622
- logo: `${APESWAP_LIST_REPO}/assets/ETH.svg`,
18623
- },
18624
- blockExplorerUrls: [BLOCK_EXPLORER[types.ChainId.LIGHTLINK]],
18625
- logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg',
18626
- },
18627
- [types.ChainId.IOTA]: {
18628
- chainId: '0x2276',
18629
- chainName: 'IOTA',
18630
- nativeCurrency: {
18631
- name: 'IOTA',
18632
- symbol: 'IOTA',
18633
- decimals: 18,
18634
- logo: `${APESWAP_LIST_REPO}/assets/IOTA.svg`,
18635
- },
18636
- blockExplorerUrls: [BLOCK_EXPLORER[types.ChainId.IOTA]],
18637
- logoURI: `${APESWAP_LIST_REPO}/assets/IOTA.svg`,
18638
- },
18639
- [types.ChainId.IOTA_TESTNET]: {
18640
- chainId: '0x433',
18641
- chainName: 'IOTA',
18642
- nativeCurrency: {
18643
- name: 'IOTA',
18644
- symbol: 'IOTA',
18645
- decimals: 18,
18646
- logo: `${APESWAP_LIST_REPO}/assets/IOTA.svg`,
18647
- },
18648
- blockExplorerUrls: [BLOCK_EXPLORER[types.ChainId.IOTA_TESTNET]],
18649
- logoURI: `${APESWAP_LIST_REPO}/assets/IOTA.svg`,
18650
- },
18651
- [types.ChainId.BASE]: {
18652
- chainId: '0x2105',
18653
- chainName: 'BASE',
18654
- nativeCurrency: {
18655
- name: 'ETH',
18656
- symbol: 'ETH',
18657
- decimals: 18,
18658
- logo: `${APESWAP_LIST_REPO}/assets/ETH.svg`,
18659
- },
18660
- blockExplorerUrls: [BLOCK_EXPLORER[types.ChainId.BASE]],
18661
- logoURI: `${APESWAP_LIST_REPO}/assets/ETH.svg`,
18662
- },
18663
- });
18504
+
18505
+ const supportedByLIFI = [
18506
+ types.ChainId.MAINNET,
18507
+ types.ChainId.MATIC,
18508
+ types.ChainId.BSC,
18509
+ types.ChainId.ARBITRUM,
18510
+ types.ChainId.LINEA,
18511
+ types.ChainId.BASE,
18512
+ ];
18513
+ // we should be good just by using staging on this, as it is only used for token images
18514
+ const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging`;
18515
+ const STRAPI_URL = `https://apeswap-strapi.herokuapp.com`;
18516
+ const SOUL_ZAP_API = `https://soulsolidity-zap-api-902f1d839e8d.herokuapp.com/zap?batch=1`;
18664
18517
 
18665
18518
  const TokenImage = ({ symbol, symbol2, size, chain, }) => {
18666
18519
  var _a, _b;
@@ -18831,6 +18684,7 @@ const NETWORK_COLORS = {
18831
18684
  [types.ChainId.ARBITRUM]: '#289fef',
18832
18685
  [types.ChainId.LINEA]: '#fff',
18833
18686
  [types.ChainId.IOTA]: '#fff',
18687
+ [types.ChainId.GRAPHLINQ]: '#ded2ff',
18834
18688
  };
18835
18689
  const TokenInfoAndName = ({ bill, vestEnds, isHotBond, }) => {
18836
18690
  var _a, _b, _c, _d;
@@ -48863,6 +48717,16 @@ const WNATIVE = {
48863
48717
  },
48864
48718
  active: true,
48865
48719
  },
48720
+ [types.ChainId.GRAPHLINQ]: {
48721
+ symbol: 'wGLQ',
48722
+ address: {
48723
+ [types.ChainId.GRAPHLINQ]: '0xEB567ec41738c2bAb2599A1070FC5B727721b3B6',
48724
+ },
48725
+ decimals: {
48726
+ [types.ChainId.GRAPHLINQ]: 18,
48727
+ },
48728
+ active: true,
48729
+ },
48866
48730
  };
48867
48731
 
48868
48732
  const ABOND_ADDRESSES = {
@@ -48895,6 +48759,7 @@ const MULTICALL_V2 = {
48895
48759
  [types.ChainId.LIGHTLINK]: '0xb9a543d7B7dF05C8845AeA6627dE4a6622Ac863C',
48896
48760
  [types.ChainId.IOTA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
48897
48761
  [types.ChainId.BASE]: '0xDF845ff2dA2325Df9C6CC3DDF7418C54E16bbFDF',
48762
+ [types.ChainId.GRAPHLINQ]: '0xCc88b233BbcE04c064C627ad5627da6e24a8A067',
48898
48763
  };
48899
48764
  const SoulZapTokenManager = {
48900
48765
  [types.ChainId.MAINNET]: '0x2F87f76336A560bbB0d18d357D10646bB96E8802',
@@ -67491,6 +67356,7 @@ const PUBLIC_RPC_URLS = {
67491
67356
  [types.ChainId.IOTA]: ['https://json-rpc.evm.iotaledger.net/'],
67492
67357
  [types.ChainId.IOTA_TESTNET]: ['https://json-rpc.evm.testnet.iotaledger.net/'],
67493
67358
  [types.ChainId.BASE]: ['https://base-rpc.publicnode.com', 'https://mainnet.base.org'],
67359
+ [types.ChainId.GRAPHLINQ]: ['https://glq-dataseed.graphlinq.io'],
67494
67360
  };
67495
67361
 
67496
67362
  // This is the legacy multicall
@@ -70659,7 +70525,7 @@ const getBatchTokenPriceWithDexscreener = (params) => __awaiter$9(void 0, void 0
70659
70525
  const baseURL = 'https://api.dexscreener.com/latest/dex';
70660
70526
  const totalSupplies = [];
70661
70527
  const chains = [];
70662
- const chainName = getDexScreenerChainName(chainId);
70528
+ let chainName = getDexScreenerChainName(chainId);
70663
70529
  const calls = tokensCopy.map((token) => __awaiter$9(void 0, void 0, void 0, function* () {
70664
70530
  const { symbol, lpToken, totalSupply, decimals } = token;
70665
70531
  if (['USDT', 'USDC'].includes(symbol)) {
@@ -70682,6 +70548,14 @@ const getBatchTokenPriceWithDexscreener = (params) => __awaiter$9(void 0, void 0
70682
70548
  if (symbol.toLowerCase() === 'inj' || symbol.toLowerCase() === 'winj') {
70683
70549
  token.address = 'inj';
70684
70550
  }
70551
+ if (token.symbol.toUpperCase() === 'WGLQ') {
70552
+ token.address = '0x9f9c8ec3534c3ce16f928381372bfbfbfb9f4d24';
70553
+ chainName = 'ethereum';
70554
+ }
70555
+ if (token.symbol.toUpperCase() === 'ETH' && chainId === types.ChainId.GRAPHLINQ) {
70556
+ token.address = '0x2170Ed0880ac9A755fd29B2688956BD959F933F8';
70557
+ chainName = 'bsc';
70558
+ }
70685
70559
  if (!chainName) {
70686
70560
  console.log(`Chain ${chainId} is not supported by dexscreener.`);
70687
70561
  return null;
@@ -70736,14 +70610,25 @@ const getBatchTokenPriceWithDexscreener = (params) => __awaiter$9(void 0, void 0
70736
70610
  else {
70737
70611
  const pairs = response.pairs;
70738
70612
  price = (_a = pairs
70739
- .filter((pair) => pair.chainId === chainName && pair.baseToken.address.toLowerCase() === token.address.toLowerCase())
70613
+ .filter((pair) => pair.chainId === chains[index] && pair.baseToken.address.toLowerCase() === token.address.toLowerCase())
70740
70614
  .sort((a, b) => { var _a, _b; return ((_a = b === null || b === void 0 ? void 0 : b.liquidity) === null || _a === void 0 ? void 0 : _a.usd) - ((_b = a === null || a === void 0 ? void 0 : a.liquidity) === null || _b === void 0 ? void 0 : _b.usd); })[0]) === null || _a === void 0 ? void 0 : _a.priceUsd;
70741
70615
  }
70742
70616
  }
70743
70617
  catch (_b) {
70744
70618
  price = undefined;
70745
70619
  }
70746
- return Object.assign(Object.assign({}, tokensCopy === null || tokensCopy === void 0 ? void 0 : tokensCopy[index]), { address: token.address === 'inj' ? '0x4569348D39cc38F4d6a1180573Df73B7b03251d9' : token.address, chainId, price: parseFloat(price !== null && price !== void 0 ? price : '0') });
70620
+ let originalAddress = token.address;
70621
+ if (token.address === 'inj') {
70622
+ originalAddress = '0x4569348D39cc38F4d6a1180573Df73B7b03251d9';
70623
+ }
70624
+ if (token.address === '0x2170Ed0880ac9A755fd29B2688956BD959F933F8' && chainId === types.ChainId.GRAPHLINQ) {
70625
+ originalAddress = '0xbeED106D0f2e6950BFa1Eec74E1253CA0a643442';
70626
+ chainName = 'ethereum';
70627
+ }
70628
+ if (token.address === '0x9f9c8ec3534c3ce16f928381372bfbfbfb9f4d24') {
70629
+ originalAddress = '0xEB567ec41738c2bAb2599A1070FC5B727721b3B6';
70630
+ }
70631
+ return Object.assign(Object.assign({}, tokensCopy === null || tokensCopy === void 0 ? void 0 : tokensCopy[index]), { address: originalAddress, chainId, price: parseFloat(price !== null && price !== void 0 ? price : '0') });
70747
70632
  });
70748
70633
  }
70749
70634
  catch (_a) {
@@ -70762,6 +70647,7 @@ const getDexScreenerChainName = (chainId) => {
70762
70647
  [types.ChainId.ARBITRUM]: 'arbitrum',
70763
70648
  [types.ChainId.INEVM]: 'injective',
70764
70649
  [types.ChainId.LINEA]: 'linea',
70650
+ [types.ChainId.GRAPHLINQ]: 'ethereum',
70765
70651
  };
70766
70652
  //@ts-ignore
70767
70653
  return chainsName[chainId];
@@ -71284,7 +71170,7 @@ const RainbowKitButton = () => {
71284
71170
  wallet: 'rainbow',
71285
71171
  },
71286
71172
  });
71287
- }, sx: { height: '45px', padding: '10px 10px', alignItems: 'center', width: '100%' }, children: "Connect!!!!" }));
71173
+ }, sx: { height: '45px', padding: '10px 10px', alignItems: 'center', width: '100%' }, children: "Connect" }));
71288
71174
  } }));
71289
71175
  };
71290
71176
 
@@ -73284,6 +73170,9 @@ accordionTitle = 'What are Bonds?', accordionBody = 'Body', accordionVisible = f
73284
73170
  if ((bondData === null || bondData === void 0 ? void 0 : bondData.chainId) === types.ChainId.LIGHTLINK) {
73285
73171
  window.open('https://bridge.lightlink.io/bridge?from=ETHEREUM&to=LIGHTLINK&token=ETH', '_blank');
73286
73172
  }
73173
+ if ((bondData === null || bondData === void 0 ? void 0 : bondData.chainId) === types.ChainId.GRAPHLINQ) {
73174
+ window.open('https://hub.graphlinq.io/swap', '_blank');
73175
+ }
73287
73176
  else {
73288
73177
  window.open(`https://ape.bond/swap?outputcurrency=${bondData === null || bondData === void 0 ? void 0 : bondData.lpToken.address[bondData === null || bondData === void 0 ? void 0 : bondData.chainId]}&outputChain=${bondData === null || bondData === void 0 ? void 0 : bondData.chainId}`, '_blank');
73289
73178
  }
@@ -90420,6 +90309,9 @@ const ProjectView = ({ bondAddress, bondChain, historicalPrices }) => {
90420
90309
  if ((bondData === null || bondData === void 0 ? void 0 : bondData.chainId) === types.ChainId.LIGHTLINK) {
90421
90310
  window.open('https://bridge.lightlink.io/bridge?from=ETHEREUM&to=LIGHTLINK&token=ETH', '_blank');
90422
90311
  }
90312
+ if ((bondData === null || bondData === void 0 ? void 0 : bondData.chainId) === types.ChainId.GRAPHLINQ) {
90313
+ window.open('https://hub.graphlinq.io/swap', '_blank');
90314
+ }
90423
90315
  else {
90424
90316
  window.open(`https://ape.bond/swap?outputcurrency=${bondData === null || bondData === void 0 ? void 0 : bondData.lpToken.address[bondData === null || bondData === void 0 ? void 0 : bondData.chainId]}&outputChain=${bondData === null || bondData === void 0 ? void 0 : bondData.chainId}`, '_blank');
90425
90317
  }
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.0.0-test.1",
6
+ "version": "2.0.0-test.2",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",