@goodaofi/bonds-sdk 3.0.132 → 3.0.134

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 COMINGSOON: React.FC<SvgProps>;
4
+ export default COMINGSOON;
@@ -27,3 +27,4 @@ export { default as SONIC } from './SONIC';
27
27
  export { default as BERA } from './BERA';
28
28
  export { default as KATANA } from './KATANA';
29
29
  export { default as UNICHAIN } from './UNICHAIN';
30
+ export { default as COMINGSOON } from './COMINGSOON';
@@ -58,6 +58,7 @@ export declare enum icons {
58
58
  BERA = "bera",
59
59
  KATANA = "katana",
60
60
  UNICHAIN = "unichain",
61
+ COMINGSOON = "comingSoon",
61
62
  DISCORD = "discord",
62
63
  REDDIT = "reddit",
63
64
  MEDIUM = "medium",
package/dist/main.js CHANGED
@@ -3931,6 +3931,7 @@ var icons;
3931
3931
  icons["BERA"] = "bera";
3932
3932
  icons["KATANA"] = "katana";
3933
3933
  icons["UNICHAIN"] = "unichain";
3934
+ icons["COMINGSOON"] = "comingSoon";
3934
3935
  //Social media icons
3935
3936
  icons["DISCORD"] = "discord";
3936
3937
  icons["REDDIT"] = "reddit";
@@ -6797,6 +6798,10 @@ const UNICHAIN = ({ width }) => {
6797
6798
  return (jsx$2("svg", { width: width || '30', height: width || '30', viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsxs("g", { children: [jsx$2("title", { children: "Layer 1" }), jsx$2("rect", { id: "svg_1", fill: "#f50db4", height: "64", width: "64" }), jsx$2("path", { id: "svg_2", fill: "white", d: "m52.00002,31.61947c-10.8407,0 -19.6195,-8.7876 -19.6195,-19.61945l-0.761,0l0,19.61945l-19.61954,0l0,0.7611c10.84074,0 19.61954,8.7876 19.61954,19.6194l0.761,0l0,-19.6194l19.6195,0l0,-0.7611z" })] }) }));
6798
6799
  };
6799
6800
 
6801
+ const COMINGSOON = ({ width }) => {
6802
+ return (jsxs("svg", { width: width || '888', viewBox: "0 0 888 154", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsx$2("path", { d: "M678.638 105.307C664.102 105.307 652.271 92.5215 652.271 76.8049C652.271 61.0883 664.102 48.3029 678.638 48.3029C684.143 48.3029 689.585 50.0835 694.391 53.4453C701.422 58.3692 709.639 60.9661 718.163 60.9661C726.687 60.9661 734.904 58.3628 741.935 53.4453C746.734 50.0835 752.182 48.3094 757.682 48.3094C772.224 48.3094 784.055 61.0948 784.055 76.8113C784.055 92.5279 772.224 105.313 757.682 105.313C752.182 105.313 746.734 103.539 741.935 100.171C734.904 95.247 726.681 92.6501 718.163 92.6501C709.645 92.6501 701.422 95.2534 694.391 100.171C689.591 103.533 684.143 105.313 678.638 105.313M678.638 116.877C686.719 116.877 694.494 114.203 700.993 109.652C706.171 106.027 712.164 104.214 718.163 104.214C724.161 104.214 730.155 106.027 735.333 109.652C741.831 114.203 749.606 116.877 757.682 116.877C778.62 116.877 795.591 98.9368 795.591 76.8049C795.591 54.6731 778.62 36.7324 757.682 36.7324C749.606 36.7324 741.831 39.4001 735.333 43.9576C730.155 47.583 724.155 49.3957 718.163 49.3957C712.171 49.3957 706.178 47.583 700.993 43.9576C694.487 39.4065 686.713 36.7324 678.638 36.7324C657.705 36.7324 640.734 54.6731 640.734 76.8049C640.734 98.9367 657.705 116.877 678.638 116.877Z", fill: "#FE9E04" }), jsx$2("path", { d: "M643.468 76.8047C643.468 97.5745 659.358 114.145 678.638 114.145C686.113 114.145 693.346 111.671 699.423 107.415C705.068 103.463 711.61 101.482 718.163 101.482C724.715 101.482 731.257 103.463 736.902 107.414C742.979 111.671 750.212 114.145 757.681 114.145C776.968 114.145 792.858 97.5742 792.858 76.8047C792.858 56.035 776.968 39.4643 757.681 39.4642C750.211 39.4642 742.979 41.9329 736.903 46.1936L736.902 46.1942V46.1949C731.257 50.1467 724.708 52.1275 718.163 52.1275C711.718 52.1275 705.279 50.2076 699.691 46.3795L699.426 46.1958L699.425 46.1954L699.139 45.9972C693.113 41.8617 685.99 39.4642 678.638 39.4642C659.358 39.4642 643.468 56.0348 643.468 76.8047ZM786.789 76.8112C786.789 93.8312 773.931 108.045 757.681 108.045C751.584 108.045 745.595 106.077 740.365 102.408L740.056 102.194C733.551 97.7291 725.992 95.3818 718.163 95.3818C710.335 95.3818 702.774 97.7347 696.268 102.195L695.959 102.409C690.732 106.07 684.742 108.045 678.638 108.045V108.039C662.394 108.039 649.537 93.8243 649.537 76.8047C649.537 59.785 662.394 45.5706 678.638 45.5706C684.743 45.5706 690.726 47.547 695.959 51.2068L695.96 51.2077C702.534 55.8116 710.203 58.2338 718.163 58.2338C726.12 58.2338 733.79 55.8063 740.365 51.2079V51.2077C745.595 47.5456 751.584 45.577 757.681 45.577C773.931 45.577 786.789 59.791 786.789 76.8112ZM638 76.8047C638 53.311 656.052 34 678.638 34C687.319 34 695.635 36.8739 702.56 41.7188C707.281 45.0193 712.725 46.6634 718.163 46.6634C723.602 46.6634 729.051 45.0193 733.763 41.721L733.762 41.7209C740.684 36.8666 749.001 34 757.681 34C780.273 34 798.325 53.3106 798.325 76.8047C798.325 100.299 780.273 119.609 757.681 119.609C749 119.609 740.684 116.735 733.764 111.89L733.542 111.736C728.881 108.539 723.523 106.946 718.163 106.946C712.717 106.946 707.275 108.59 702.561 111.89C695.641 116.736 687.325 119.609 678.638 119.609C656.052 119.609 638 100.298 638 76.8047ZM781.322 76.8112C781.322 62.3981 770.516 51.0413 757.681 51.0412C752.781 51.0412 747.875 52.6208 743.503 55.6824L743.502 55.6833L743.327 55.8056C735.879 60.9624 727.182 63.6981 718.163 63.6981C709.074 63.6981 700.312 60.9267 692.824 55.6834C688.443 52.6193 683.542 51.0348 678.638 51.0348C665.809 51.0346 655.004 62.3911 655.004 76.8047C655.004 91.2181 665.809 102.575 678.638 102.575V102.581C683.543 102.581 688.449 100.996 692.822 97.9333L692.824 97.9323C700.309 92.6964 709.079 89.9177 718.163 89.9177C727.245 89.9177 736.015 92.6892 743.503 97.9333L743.504 97.934L743.505 97.9347C747.876 101.001 752.781 102.581 757.681 102.581C770.516 102.581 781.322 91.2241 781.322 76.8112Z", fill: "#FE9E04" }), jsx$2("path", { d: "M48.896 119.664C22.784 119.664 4.352 101.232 4.352 76.144C4.352 51.056 22.784 32.624 48.896 32.624C70.784 32.624 87.296 45.552 92.032 64.624H74.752C70.784 54.512 61.312 47.856 48.896 47.856C32.256 47.856 20.992 59.76 20.992 76.144C20.992 92.528 32.256 104.56 48.896 104.56C61.312 104.56 70.784 97.776 74.752 87.664H92.032C87.296 106.736 70.784 119.664 48.896 119.664ZM145.021 119.664C118.909 119.664 100.477 101.232 100.477 76.144C100.477 51.056 118.909 32.624 145.021 32.624C171.133 32.624 189.565 51.056 189.565 76.144C189.565 101.232 171.133 119.664 145.021 119.664ZM145.021 104.56C161.661 104.56 172.925 92.528 172.925 76.144C172.925 59.76 161.661 47.856 145.021 47.856C128.381 47.856 117.117 59.76 117.117 76.144C117.117 92.528 128.381 104.56 145.021 104.56ZM200.531 118V64.112C200.531 42.608 213.203 32.624 229.715 32.624C240.339 32.624 248.659 37.104 253.523 45.424C258.387 37.104 266.707 32.624 277.331 32.624C293.843 32.624 306.515 42.608 306.515 64.112V118H290.131V64.112C290.131 52.592 283.987 47.856 275.923 47.856C267.859 47.856 261.715 52.72 261.715 64.112V118H245.331V64.112C245.331 52.72 239.187 47.856 231.123 47.856C223.059 47.856 216.915 52.592 216.915 64.112V118H200.531ZM321.829 118V34.288H338.213V118H321.829ZM353.531 118V67.568C353.531 46.064 366.203 32.624 389.115 32.624C412.027 32.624 424.699 46.064 424.699 67.568V118H408.315V67.568C408.315 55.152 401.915 47.856 389.115 47.856C376.315 47.856 369.915 55.152 369.915 67.568V118H353.531ZM480.271 119.664C454.159 119.664 435.727 101.232 435.727 76.144C435.727 51.056 454.159 32.624 480.271 32.624C500.751 32.624 516.495 43.888 522.383 60.912H504.207C499.727 52.848 491.023 47.856 480.271 47.856C463.631 47.856 452.367 59.76 452.367 76.144C452.367 92.528 463.631 104.56 480.271 104.56C493.327 104.56 502.927 98.544 507.023 87.152H475.151V72.56H524.687V80.368C522.767 103.28 504.847 119.664 480.271 119.664ZM597.578 119.664C579.018 119.664 566.858 109.808 566.474 93.808H582.474C582.602 100.464 587.594 104.944 597.578 104.944C607.69 104.944 612.682 100.464 612.682 93.808C612.682 86.512 604.874 85.104 595.786 83.44C583.114 81.136 568.138 78.448 568.138 58.992C568.138 43.504 579.914 32.624 597.706 32.624C614.986 32.624 626.634 42.992 627.274 58.352H611.786C611.658 51.952 606.922 47.344 597.834 47.344C588.618 47.344 584.01 52.336 584.01 58.48C584.01 65.776 591.818 67.184 600.906 68.848C613.578 71.152 628.682 73.84 628.682 93.296C628.682 109.552 616.266 119.664 597.578 119.664ZM809.656 118V67.568C809.656 46.064 822.328 32.624 845.24 32.624C868.152 32.624 880.824 46.064 880.824 67.568V118H864.44V67.568C864.44 55.152 858.04 47.856 845.24 47.856C832.44 47.856 826.04 55.152 826.04 67.568V118H809.656Z", fill: "white" })] }));
6803
+ };
6804
+
6800
6805
  const Icon$a = ({ width }) => {
6801
6806
  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" })] }));
6802
6807
  };
@@ -7213,6 +7218,8 @@ const Svg = (_a) => {
7213
7218
  return jsx$2(KATANA, Object.assign({}, props, { getStyles: getStyles }));
7214
7219
  case icons.UNICHAIN:
7215
7220
  return jsx$2(UNICHAIN, Object.assign({}, props, { getStyles: getStyles }));
7221
+ case icons.COMINGSOON:
7222
+ return jsx$2(COMINGSOON, Object.assign({}, props, { getStyles: getStyles }));
7216
7223
  default:
7217
7224
  return null;
7218
7225
  }
@@ -94575,7 +94582,7 @@ const ProgressBar = ({ saleInfo }) => {
94575
94582
  currency: 'USD',
94576
94583
  maximumFractionDigits: 0,
94577
94584
  });
94578
- const endTime = useMemo(() => {
94585
+ useMemo(() => {
94579
94586
  const timestamp = stage === null || stage === void 0 ? void 0 : stage.endTime;
94580
94587
  if (!timestamp)
94581
94588
  return 'N/A';
@@ -94589,7 +94596,7 @@ const ProgressBar = ({ saleInfo }) => {
94589
94596
  minute: '2-digit',
94590
94597
  });
94591
94598
  }, [stage]);
94592
- const nextStageStartTime = useMemo(() => {
94599
+ useMemo(() => {
94593
94600
  var _a, _b;
94594
94601
  return ((_a = saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.nextStage) === null || _a === void 0 ? void 0 : _a.startTime)
94595
94602
  ? new Date(((_b = saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.nextStage) === null || _b === void 0 ? void 0 : _b.startTime) * 1000).toLocaleString('en-US', {
@@ -94602,26 +94609,18 @@ const ProgressBar = ({ saleInfo }) => {
94602
94609
  })
94603
94610
  : 'N/A';
94604
94611
  }, [saleInfo]);
94605
- return (jsxs(Fragment$1, { children: [jsxs(Flex$1, { sx: { alignItems: 'end', justifyContent: 'space-between', flexDirection: 'row', mt: '1rem' }, children: [jsxs(Flex$1, { sx: { flexDirection: 'column', width: '200px', alignItems: 'start' }, children: [jsx$2(Text, { sx: {
94606
- fontSize: '14px',
94607
- fontWeight: '700',
94608
- color: 'var(--theme-ui-colors-textDisabledButton)',
94609
- mb: '0.2rem',
94610
- }, children: "Total Raised" }), jsxs(Flex$1, { sx: { flexDirection: 'row', alignItems: 'center' }, children: [jsx$2(Text, { sx: { fontSize: '22px', fontWeight: '700' }, children: `${totalBilledBTC.toFixed(0)} BTC` }), jsx$2(Text, { sx: { fontSize: '14px', fontWeight: '400', ml: '10px' }, children: `(${totalBilledUSD})` })] }), jsx$2(Text, { sx: {
94611
- fontSize: '14px',
94612
- fontWeight: '700',
94613
- color: 'var(--theme-ui-colors-textDisabledButton)',
94614
- mb: '0.2rem',
94615
- mt: '1rem',
94616
- }, children: stageSoldOut ? 'Stage ' + stageNumber + ' Completed!' : 'Stage ' + stageNumber + ' Progress' }), jsx$2(Text, { sx: { fontSize: '22px', fontWeight: '700' }, children: `${billed.toFixed(2)} BTC/ ${hardCap} BTC` })] }), jsx$2(Text, { sx: {
94617
- fontSize: '12px',
94618
- fontWeight: '400',
94619
- textAlign: 'right',
94620
- ml: '10px',
94621
- color: 'var(--theme-ui-colors-textDisabledButton)',
94622
- }, children: (stage === null || stage === void 0 ? void 0 : stage.hasEnded)
94623
- ? 'Stage ' + nextStageNumber + ' starts: ' + nextStageStartTime + ' UTC'
94624
- : 'Stage ' + stageNumber + ' Ends: ' + endTime + ' UTC' })] }), jsx$2(Flex$1, { sx: { width: ['100%'], alignItems: 'center', flexDirection: 'row', my: '1rem' }, children: jsx$2(Box$1, { style: {
94612
+ return (jsxs(Fragment$1, { children: [jsx$2(Flex$1, { sx: { alignItems: 'end', justifyContent: 'space-between', flexDirection: 'row', mt: '1rem' }, children: jsxs(Flex$1, { sx: { flexDirection: 'column', width: '200px', alignItems: 'start' }, children: [jsx$2(Text, { sx: {
94613
+ fontSize: '14px',
94614
+ fontWeight: '700',
94615
+ color: 'var(--theme-ui-colors-textDisabledButton)',
94616
+ mb: '0.2rem',
94617
+ }, children: "Total Raised" }), jsxs(Flex$1, { sx: { flexDirection: 'row', alignItems: 'center' }, children: [jsx$2(Text, { sx: { fontSize: '22px', fontWeight: '700' }, children: `${totalBilledBTC.toFixed(0)} BTC` }), jsx$2(Text, { sx: { fontSize: '14px', fontWeight: '400', ml: '10px' }, children: `(${totalBilledUSD})` })] }), jsx$2(Text, { sx: {
94618
+ fontSize: '14px',
94619
+ fontWeight: '700',
94620
+ color: 'var(--theme-ui-colors-textDisabledButton)',
94621
+ mb: '0.2rem',
94622
+ mt: '1rem',
94623
+ }, children: stageSoldOut ? 'Stage ' + stageNumber + ' Completed!' : 'Stage ' + stageNumber + ' Progress' }), jsx$2(Text, { sx: { fontSize: '22px', fontWeight: '700' }, children: `${billed.toFixed(2)} BTC/ ${hardCap} BTC` })] }) }), jsx$2(Flex$1, { sx: { width: ['100%'], alignItems: 'center', flexDirection: 'row', my: '1rem' }, children: jsx$2(Box$1, { style: {
94625
94624
  width: '100%',
94626
94625
  height: '11px',
94627
94626
  backgroundColor: 'var(--theme-ui-colors-white4)',
@@ -94849,89 +94848,6 @@ const YourGoo = () => {
94849
94848
  }) }))] }));
94850
94849
  };
94851
94850
 
94852
- // eslint-disable-next-line react/prop-types
94853
- const CounterCard = ({ digit, text }) => {
94854
- return (jsxs(Flex, { sx: { flexDirection: 'column', alignItems: 'center', justifyContent: 'center' }, children: [jsx$2(Flex, { sx: {
94855
- background: 'linear-gradient(-45deg, #251c22 0%, #3a2327 100%)',
94856
- borderRadius: 'normal',
94857
- border: '1px solid #FE9E0450',
94858
- justifyContent: 'center',
94859
- alignItems: 'center',
94860
- p: '20px',
94861
- fontSize: ['24px', '24px', '26px', '36px'],
94862
- width: ['55px', '55px', '65px', '85px'],
94863
- height: ['60px', '60px', '70px', '90px'],
94864
- fontWeight: 700,
94865
- }, children: digit.toString().padStart(2, '0') }), jsx$2(Text, { color: "textNavbar", sx: {
94866
- fontSize: ['12px', '12px', '12px', '14px'],
94867
- fontWeight: 400,
94868
- mt: '10px',
94869
- }, children: text })] }));
94870
- };
94871
- const Colon = () => {
94872
- return (jsxs(Flex, { sx: { flexDirection: 'column', alignItems: 'center' }, children: [jsx$2(Text, { sx: {
94873
- fontSize: '34px',
94874
- fontWeight: 700,
94875
- lineHeight: '90px',
94876
- background: 'linear-gradient(to bottom, #fe9e0420 40%, #FE9E04 60%)',
94877
- WebkitBackgroundClip: 'text',
94878
- WebkitTextFillColor: 'transparent',
94879
- backgroundClip: 'text',
94880
- }, children: ":" }), jsx$2(Text, { color: "transparent", sx: { fontSize: '14px', fontWeight: 400, mt: '10px' }, children: "t" })] }));
94881
- };
94882
- const interval = 1000; // 1 sec
94883
- const getCountdownObject = (targetIsoTime) => {
94884
- // Detect if timestamp is in seconds or milliseconds
94885
- // Timestamps in seconds are typically < 10^10, milliseconds are > 10^12
94886
- const isSeconds = targetIsoTime < 10000000000;
94887
- const targetTimeMs = isSeconds ? targetIsoTime * 1000 : targetIsoTime;
94888
- const targetTime = new Date(targetTimeMs);
94889
- const now = new Date();
94890
- let delta = (targetTime.getTime() - now.getTime()) / 1000; // difference in seconds
94891
- // If the target time has passed, return zero countdown
94892
- if (delta <= 0)
94893
- return {
94894
- days: 0,
94895
- hours: 0,
94896
- minutes: 0,
94897
- seconds: 0,
94898
- };
94899
- const days = Math.floor(delta / 86400);
94900
- delta -= days * 86400;
94901
- const hours = Math.floor(delta / 3600) % 24;
94902
- delta -= hours * 3600;
94903
- const minutes = Math.floor(delta / 60) % 60;
94904
- const seconds = Math.floor(delta % 60);
94905
- return {
94906
- days,
94907
- hours,
94908
- minutes,
94909
- seconds,
94910
- };
94911
- };
94912
- const CountdownTimer = ({ targetTime }) => {
94913
- const [show, setShow] = useState(false);
94914
- const [countdown, setCountdown] = useState(getCountdownObject(targetTime));
94915
- useEffect(() => {
94916
- if (!show)
94917
- setShow(true);
94918
- const intervalId = setInterval(() => {
94919
- setCountdown(getCountdownObject(targetTime));
94920
- }, interval);
94921
- return () => {
94922
- clearInterval(intervalId);
94923
- };
94924
- /* eslint-disable react-hooks/exhaustive-deps */
94925
- }, [targetTime]);
94926
- // Render a countdown
94927
- return (show && (jsxs(Flex, { sx: {
94928
- flexDirection: 'row',
94929
- justifyContent: 'center',
94930
- alignItems: 'center',
94931
- gap: ['10px', '10px', '20px', '20px'],
94932
- }, children: [jsx$2(CounterCard, { digit: (countdown === null || countdown === void 0 ? void 0 : countdown.days) || 0, text: "Days" }), jsx$2(Colon, {}), jsx$2(CounterCard, { digit: (countdown === null || countdown === void 0 ? void 0 : countdown.hours) || 0, text: "Hours" }), jsx$2(Colon, {}), jsx$2(CounterCard, { digit: (countdown === null || countdown === void 0 ? void 0 : countdown.minutes) || 0, text: "Minutes" }), jsx$2(Colon, {}), jsx$2(CounterCard, { digit: (countdown === null || countdown === void 0 ? void 0 : countdown.seconds) || 0, text: "Seconds" })] })));
94933
- };
94934
-
94935
94851
  const checkEligibility = (address) => __awaiter$9(void 0, void 0, void 0, function* () {
94936
94852
  var _a;
94937
94853
  if (!address)
@@ -95084,7 +95000,7 @@ var BondsViewOptions;
95084
95000
  BondsViewOptions["YOURBONDS"] = "Your Bonds";
95085
95001
  })(BondsViewOptions || (BondsViewOptions = {}));
95086
95002
  const GooSale = () => {
95087
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
95003
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
95088
95004
  // Fetch data
95089
95005
  const { data: chainFilterOption, setChainFilterOption } = useChainFilterOption();
95090
95006
  const { data: saleInfo, isLoading: isLoadingSaleInfo } = useSaleInfo();
@@ -95147,7 +95063,7 @@ const GooSale = () => {
95147
95063
  ? 'Refund Period '
95148
95064
  : ((_f = saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.nextStage) === null || _f === void 0 ? void 0 : _f.stageNumber) === 5
95149
95065
  ? 'TGE '
95150
- : 'Stage ' + ((_g = saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.nextStage) === null || _g === void 0 ? void 0 : _g.stageNumber) + ' ', "starts in:"] }), jsx$2(CountdownTimer, { targetTime: ((_h = saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.nextStage) === null || _h === void 0 ? void 0 : _h.startTime) || 0 }), !(((_j = saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.nextStage) === null || _j === void 0 ? void 0 : _j.stageNumber) === 4 || ((_k = saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.nextStage) === null || _k === void 0 ? void 0 : _k.stageNumber) === 5) ? (jsxs(Fragment$1, { children: [jsxs(Flex, { sx: { flexDirection: 'column', alignItems: 'center' }, children: [jsxs(Flex, { sx: { flexDirection: 'row', alignItems: 'center', mt: '30px' }, children: [address && (jsxs(Flex, { sx: { mr: '1rem', p: '10px', borderRadius: 'normal', background: 'white3', alignItems: 'center' }, children: [jsx$2(Flex, { sx: { mr: '10px' }, children: jsx$2(Svg, { icon: "wallet" }) }), jsxs(Text, { sx: { fontSize: '14px', fontWeight: 400 }, children: [address === null || address === void 0 ? void 0 : address.slice(0, 4), "...", address === null || address === void 0 ? void 0 : address.slice((address === null || address === void 0 ? void 0 : address.length) - 4, address === null || address === void 0 ? void 0 : address.length)] })] })), jsx$2(Flex, { sx: { fontSize: '18px', fontWeight: 500 }, children: "Are You Eligible?" })] }), !address ? (jsx$2(Flex, { sx: { my: '20px', width: '100%' }, children: jsx$2(ConnectButton, {}) })) : (whitelisted === null ||
95066
+ : 'Stage ' + ((_g = saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.nextStage) === null || _g === void 0 ? void 0 : _g.stageNumber) + ' ', "starts in:"] }), jsx$2(Svg, { icon: "comingSoon", width: "350" }), !(((_h = saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.nextStage) === null || _h === void 0 ? void 0 : _h.stageNumber) === 4 || ((_j = saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.nextStage) === null || _j === void 0 ? void 0 : _j.stageNumber) === 5) ? (jsxs(Fragment$1, { children: [jsxs(Flex, { sx: { flexDirection: 'column', alignItems: 'center' }, children: [jsxs(Flex, { sx: { flexDirection: 'row', alignItems: 'center', mt: '30px' }, children: [address && (jsxs(Flex, { sx: { mr: '1rem', p: '10px', borderRadius: 'normal', background: 'white3', alignItems: 'center' }, children: [jsx$2(Flex, { sx: { mr: '10px' }, children: jsx$2(Svg, { icon: "wallet" }) }), jsxs(Text, { sx: { fontSize: '14px', fontWeight: 400 }, children: [address === null || address === void 0 ? void 0 : address.slice(0, 4), "...", address === null || address === void 0 ? void 0 : address.slice((address === null || address === void 0 ? void 0 : address.length) - 4, address === null || address === void 0 ? void 0 : address.length)] })] })), jsx$2(Flex, { sx: { fontSize: '18px', fontWeight: 500 }, children: "Are You Eligible?" })] }), !address ? (jsx$2(Flex, { sx: { my: '20px', width: '100%' }, children: jsx$2(ConnectButton, {}) })) : (whitelisted === null ||
95151
95067
  (whitelisted === undefined && !cbBTCBalanceChecked && (jsx$2(Button, { sx: { m: '20px', width: '100%' }, onClick: handleCheckEligibility, children: "CHECK ELIGIBILITY" }))))] }), whitelisted !== null && whitelisted !== undefined && (jsxs(Flex, { sx: { flexDirection: 'row', alignItems: 'center', mt: '20px' }, children: [jsxs(Text, { sx: { fontSize: '12px', fontWeight: 400 }, children: ["You are whitelisted for Stage ", whitelisted, " and beyond!"] }), jsxs(Text, { color: "primaryButton", sx: { fontSize: '12px', fontWeight: 400, pl: '1rem' }, children: ["Tier ", whitelisted, " Access"] })] })), whitelisted === null && (jsxs(Flex, { sx: { flexDirection: 'column', alignItems: 'center', gap: '10px' }, children: [cbBTCBalanceChecked && (jsx$2(Flex, { sx: { flexDirection: 'column', alignItems: 'center', gap: '10px', mt: '10px' }, children: isCbBTCBalanceLoading ? (jsx$2(Text, { sx: { fontSize: '12px', fontWeight: 400 }, children: "Checking BTC balance across all chains..." })) : cbBTCBalance ? (jsxs(Fragment$1, { children: [cbBTCBalance.isEligible ? (addToWhitelistSuccess ? (jsx$2(Text, { color: "primaryButton", sx: { fontSize: '12px', fontWeight: 700 }, children: "\u2713 Successfully added to whitelist! Please refresh to see your tier." })) : addToWhitelistError ? (jsx$2(Text, { sx: { fontSize: '12px', fontWeight: 400, color: 'error' }, children: "Failed to add to whitelist. Please try again." })) : (jsx$2(Fragment$1, { children: jsx$2(Flex, { sx: { flexDirection: 'row', alignItems: 'center' }, children: jsxs(Text, { sx: { fontSize: '12px', fontWeight: 400 }, children: ["You ", jsx$2("span", { sx: { fontWeight: 700 }, children: "ARE" }), " eligible for the sale"] }) }) }))) : (jsxs(Flex, { sx: { flexDirection: 'column', alignItems: 'center', gap: '10px' }, children: [jsxs(Text, { sx: { fontSize: '12px', fontWeight: 400 }, children: ["You are ", jsx$2("span", { sx: { fontWeight: 700 }, children: "NOT" }), " eligible for the sale"] }), jsx$2(Text, { sx: { fontSize: '12px', fontWeight: 400, color: 'error' }, children: "You need at least 0.001 BTC to be eligible" })] })), jsxs(Text, { sx: { fontSize: '12px', fontWeight: 400 }, children: ["Total BTC Balance: ", cbBTCBalance.balance] }), cbBTCBalance.chainsWithBalance && cbBTCBalance.chainsWithBalance.length > 0 && (jsx$2(Flex, { sx: { flexDirection: 'column', gap: '5px', mt: '5px' }, children: cbBTCBalance.chainsWithBalance.map((chain) => (jsxs(Flex, { sx: { flexDirection: 'row', alignItems: 'center', gap: '10px' }, children: [jsx$2(TokenImage, { symbol: chain.symbol, size: 25, chain: chain.chainId }), jsxs(Text, { sx: { fontSize: '10px', fontWeight: 400, opacity: 0.7 }, children: [chain.balance, " ", chain.symbol] })] }, chain.chainId))) })), cbBTCBalance.isEligible && (jsx$2(Button, { sx: { width: '100%' }, onClick: () => addToWhitelist(), disabled: isAddingToWhitelist, children: isAddingToWhitelist ? 'ADDING TO WHITELIST...' : 'ADD ME TO WHITELIST' }))] })) : (jsx$2(Text, { sx: { fontSize: '12px', fontWeight: 400 }, children: "Unable to fetch BTC balance. Please try again." })) })), jsxs(Link, { href: "https://gmoney.site/whitelist", target: "_blank", color: "primaryButton", sx: { fontSize: '12px', fontWeight: 400, mt: '10px', mb: '20px' }, children: ["Go to whitelist campaign ", '>'] })] }))] })) : (jsx$2(Fragment$1, {}))] })), !(saleInfo === null || saleInfo === void 0 ? void 0 : saleInfo.isInBreakPeriod) && !currentStageSoldOut && (jsxs(Fragment$1, { children: [jsx$2(BondsMenu, { setChainFilterOption: handleChainFilterChange, chainFilterOption: chainFilterOption, handleToogle: handleToogle }), activeView === BondsViewOptions.BONDSMARKET && filteredContractsByChain && !isLoadingSaleInfo ? (jsx$2(BondRowsByChain, { contractsByChain: filteredContractsByChain })) : activeView === BondsViewOptions.YOURBONDS && !isLoadingSaleInfo ? (jsx$2(YourGoo, {})) : (jsx$2(Fragment$1, {}))] }))] }));
95152
95068
  };
95153
95069
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Goo Money Bond SDK",
4
4
  "author": "Goo Money",
5
5
  "license": "MIT",
6
- "version": "3.0.132",
6
+ "version": "3.0.134",
7
7
  "proxy": "https://realtime-api-pr-99.herokuapp.com",
8
8
  "module": "dist/main.js",
9
9
  "type": "module",