@ape.swap/bonds-sdk 3.0.15 → 3.0.18
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/components/Tooltip/ButtonsRow.d.ts +2 -0
- package/dist/components/YouTooltip/YouTooltip.d.ts +3 -0
- package/dist/config/constants/queryKeys.d.ts +1 -0
- package/dist/config/constants/tooltips.d.ts +1 -0
- package/dist/hooks/useIsMobile.d.ts +1 -0
- package/dist/hooks/useMonitorTxHash.d.ts +2 -19
- package/dist/main.js +48224 -45537
- package/dist/state/bonds/useBondsData.d.ts +4 -1
- package/dist/state/bonds/useGetBondRecommendations.d.ts +1 -1
- package/dist/state/bonds/useTierProofSignature.d.ts +4 -0
- package/dist/state/bonds/useUserApiStats.d.ts +1 -1
- package/dist/state/price/useCurrencyPrice.d.ts +1 -1
- package/dist/state/tiers/useTierPoints.d.ts +32 -0
- package/dist/state/tokenPrices/useTokenPrices.d.ts +1 -1
- package/dist/state/useSDKConfig.d.ts +7 -7
- package/dist/state/zap/useSoulZapBondQuote.d.ts +1 -1
- package/dist/styles.css +18 -12
- package/dist/theme/base.d.ts +10 -1
- package/dist/theme/components.d.ts +0 -8
- package/dist/types/bonds.d.ts +9 -5
- package/dist/utils/displayHelpers.d.ts +4 -6
- package/dist/utils/getNativeTicker.d.ts +1 -1
- package/dist/utils/remove0xPrefix.d.ts +1 -1
- package/dist/views/Bonds/Bonds.d.ts +1 -1
- package/dist/views/Bonds/components/BondsMenu/BondsMenu.d.ts +1 -1
- package/dist/views/Bonds/components/BonusComponents/BonusComponent.d.ts +7 -0
- package/dist/views/Bonds/components/BonusComponents/BonusTable.d.ts +7 -0
- package/dist/views/Bonds/components/BuyAgainRow/index.d.ts +1 -1
- package/dist/views/Bonds/components/CheckURL/index.d.ts +1 -1
- package/dist/views/Bonds/components/RecommendationCards/SmallRecommendationCard.d.ts +0 -1
- package/dist/views/Bonds/components/RecommendationCards/index.d.ts +0 -1
- package/dist/views/Bonds/utils.d.ts +1 -1
- package/dist/views/BuyBond/BuyBond.d.ts +1 -0
- package/dist/views/BuyBond/components/GetUpToComponent/GetUpToComponent.d.ts +8 -0
- package/dist/views/BuyBond/components/ProjectDescription.d.ts +2 -1
- package/dist/views/BuyBond/findHighestTrueBondPrice.d.ts +8 -0
- package/package.json +2 -2
- package/dist/components/TagMinTierFlashBond/TagMinTierFlashBond.d.ts +0 -8
- package/dist/components/TokenInfoAndName/MinTierRow.d.ts +0 -5
- package/dist/hooks/useIsAbond.d.ts +0 -3
- package/dist/state/bonds/useGetUserEscrowWeight.d.ts +0 -11
- package/dist/theme/display.d.ts +0 -2
- package/dist/theme/types.d.ts +0 -10
|
@@ -2,5 +2,8 @@ import { UseQueryResult } from '@tanstack/react-query';
|
|
|
2
2
|
import { BondsData } from '../../types/bonds';
|
|
3
3
|
import { TokenPrices } from '../tokenPrices/useTokenPrices';
|
|
4
4
|
import { BillsConfig } from '@ape.swap/apeswap-lists';
|
|
5
|
+
import BigNumber from 'bignumber.js';
|
|
5
6
|
export default function useBondsData(): UseQueryResult<BondsData[]>;
|
|
6
|
-
export declare const getBondsData: (realTimeApiURL: string, tokenPrices?: TokenPrices[], bondList?: BillsConfig[]) => Promise<BondsData[]>;
|
|
7
|
+
export declare const getBondsData: (chains: number[], realTimeApiURL: string, tokenPrices?: TokenPrices[], bondList?: BillsConfig[]) => Promise<BondsData[]>;
|
|
8
|
+
export declare const getBonusWithFee: (feeInPayout: number, trueBillPrice: BigNumber, lpPrice: number, earnTokenPrice: number) => number;
|
|
9
|
+
export declare const getRawBonus: (trueBillPrice: any, lpPrice: number, earnTokenPrice: number) => number;
|
|
@@ -24,5 +24,5 @@ export interface BondRecommendation {
|
|
|
24
24
|
tags: string[];
|
|
25
25
|
arr: number;
|
|
26
26
|
}
|
|
27
|
-
export declare const getBondRecommendations: (apiV2URL: string, user?: string, contract?: string, limit?: string) => Promise<BondRecommendation[]>;
|
|
27
|
+
export declare const getBondRecommendations: (apiV2URL: string, user?: string, contract?: string, limit?: string, chains?: number[]) => Promise<BondRecommendation[]>;
|
|
28
28
|
export default function useGetBondRecommendations(user?: string, contract?: string, limit?: string): import("@tanstack/react-query").UseQueryResult<BondRecommendation[], Error>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
3
|
+
export default function useTierProofSignature(bondAddress?: string, chainId?: ChainId, isUserRestricted?: boolean): UseQueryResult<string>;
|
|
4
|
+
export declare const getTierProofSig: (apiAddress: string, account: string, bondAddress: string, chainId: ChainId) => Promise<string | null>;
|
|
@@ -19,4 +19,4 @@ export interface UserApiStats {
|
|
|
19
19
|
Sales: Sales[];
|
|
20
20
|
}
|
|
21
21
|
export declare const getUserApiStats: (account?: string) => Promise<UserApiStats | null>;
|
|
22
|
-
export default function useUserApiStats(): import("@tanstack/react-query").UseQueryResult<UserApiStats
|
|
22
|
+
export default function useUserApiStats(): import("@tanstack/react-query").UseQueryResult<UserApiStats, Error>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
2
2
|
import { Token } from '@ape.swap/apeswap-lists';
|
|
3
|
-
export default function useCurrencyPrice(currency: 'NATIVE' | Token | null, chainId: ChainId | null): import("../tokenPrices/useTokenPrices").TokenPrices
|
|
3
|
+
export default function useCurrencyPrice(currency: 'NATIVE' | Token | null, chainId: ChainId | null): import("../tokenPrices/useTokenPrices").TokenPrices;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LaunchBondTiers } from '@ape.swap/apeswap-lists';
|
|
2
|
+
export declare const boostMap: {
|
|
3
|
+
0: string;
|
|
4
|
+
1: string;
|
|
5
|
+
2: string;
|
|
6
|
+
3: string;
|
|
7
|
+
4: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const TIERS_COLORS: {
|
|
10
|
+
0: string;
|
|
11
|
+
1: string;
|
|
12
|
+
2: string;
|
|
13
|
+
3: string;
|
|
14
|
+
4: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const TIERS_WEIGHT: {
|
|
17
|
+
0: string;
|
|
18
|
+
1: string;
|
|
19
|
+
2: string;
|
|
20
|
+
3: string;
|
|
21
|
+
4: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const TIERS_NAMES: {
|
|
24
|
+
0: string;
|
|
25
|
+
1: string;
|
|
26
|
+
2: string;
|
|
27
|
+
3: string;
|
|
28
|
+
4: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const getUserTier: (weight: string) => LaunchBondTiers | null;
|
|
31
|
+
export declare const fetchUserPoints: (account?: string, useTiers?: boolean) => Promise<string | null>;
|
|
32
|
+
export default function useTierPoints(): import("@tanstack/react-query").UseQueryResult<string, Error>;
|
|
@@ -8,6 +8,6 @@ export interface TokenPrices {
|
|
|
8
8
|
chainId: ChainId | undefined;
|
|
9
9
|
}
|
|
10
10
|
export default function useTokenPrices(): UseQueryResult<TokenPrices[]>;
|
|
11
|
-
export declare const getTokenPrices: (apeswapListsURL: string) => Promise<TokenPrices[]>;
|
|
11
|
+
export declare const getTokenPrices: (apeswapListsURL: string, chains: number[]) => Promise<TokenPrices[]>;
|
|
12
12
|
export declare const getDexScreenerChainName: (chainId: ChainId) => string | undefined;
|
|
13
13
|
export declare function getTokenPricesV3FromPriceGetter(tokensToCall: Record<string, Token>, chain: ChainId): Promise<any>;
|
|
@@ -2,13 +2,12 @@ export interface SDKProps {
|
|
|
2
2
|
referenceId: string;
|
|
3
3
|
chains: number[];
|
|
4
4
|
useRainbowKit: boolean;
|
|
5
|
-
useHotBonds
|
|
6
|
-
|
|
5
|
+
useHotBonds?: boolean;
|
|
6
|
+
useTiers?: boolean;
|
|
7
7
|
urls?: Partial<Record<URLKeys, string>>;
|
|
8
8
|
theme?: any;
|
|
9
9
|
}
|
|
10
10
|
export declare const useSDKConfig: (config?: SDKProps) => {
|
|
11
|
-
modalVariant: string;
|
|
12
11
|
urls: {
|
|
13
12
|
apiV2: string;
|
|
14
13
|
realTimeApi: string;
|
|
@@ -16,10 +15,11 @@ export declare const useSDKConfig: (config?: SDKProps) => {
|
|
|
16
15
|
mainUrl: string;
|
|
17
16
|
};
|
|
18
17
|
highestCompatibleVersion: string;
|
|
19
|
-
referenceId
|
|
20
|
-
chains
|
|
21
|
-
useRainbowKit
|
|
22
|
-
useHotBonds
|
|
18
|
+
referenceId: string;
|
|
19
|
+
chains: number[];
|
|
20
|
+
useRainbowKit: boolean;
|
|
21
|
+
useHotBonds: boolean;
|
|
22
|
+
useTiers: boolean;
|
|
23
23
|
theme?: any;
|
|
24
24
|
};
|
|
25
25
|
export type URLKeys = 'apiV2' | 'realTimeApi' | 'apeswapLists' | 'mainUrl';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Token } from '@ape.swap/apeswap-lists';
|
|
2
2
|
import { BondsData } from '../../types/bonds';
|
|
3
|
-
declare const useSoulZapBondQuote: (typedValue: string, inputCurrency: "NATIVE" | Token | undefined, bond: BondsData | undefined, account?: string) => [loading: boolean, response: any, depositAmount: string, error: boolean, trueBondPrice: string | undefined];
|
|
3
|
+
declare const useSoulZapBondQuote: (typedValue: string, inputCurrency: "NATIVE" | Token | undefined, bond: BondsData | undefined, account?: string, tierProofSig?: string) => [loading: boolean, response: any, depositAmount: string, error: boolean, trueBondPrice: string | undefined];
|
|
4
4
|
export default useSoulZapBondQuote;
|
package/dist/styles.css
CHANGED
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
|
|
63
63
|
.bonds-cards {
|
|
64
64
|
display: flex;
|
|
65
|
+
width: 100%;
|
|
65
66
|
flex-direction: column;
|
|
66
67
|
}
|
|
67
68
|
@media screen and (min-width: 800px) {
|
|
@@ -222,8 +223,9 @@
|
|
|
222
223
|
|
|
223
224
|
.price-container.price {
|
|
224
225
|
font-size: 14px;
|
|
225
|
-
color: var(--theme-ui-colors-gray);
|
|
226
226
|
text-decoration: line-through;
|
|
227
|
+
opacity: 0.5;
|
|
228
|
+
font-weight: 600;
|
|
227
229
|
}
|
|
228
230
|
|
|
229
231
|
.price-container.discounted {
|
|
@@ -271,7 +273,6 @@
|
|
|
271
273
|
color: white;
|
|
272
274
|
font-weight: 400;
|
|
273
275
|
font-size: 12px;
|
|
274
|
-
padding-bottom: 5px;
|
|
275
276
|
}
|
|
276
277
|
|
|
277
278
|
.header-icon {
|
|
@@ -331,6 +332,7 @@
|
|
|
331
332
|
.row-container {
|
|
332
333
|
display: flex;
|
|
333
334
|
font-weight: 400;
|
|
335
|
+
align-items: center;
|
|
334
336
|
}
|
|
335
337
|
|
|
336
338
|
.row-container.spend {
|
|
@@ -389,6 +391,7 @@
|
|
|
389
391
|
align-items: center;
|
|
390
392
|
justify-content: space-between;
|
|
391
393
|
opacity: 0.8;
|
|
394
|
+
padding-left: 6px;
|
|
392
395
|
}
|
|
393
396
|
|
|
394
397
|
.balancerow.text {
|
|
@@ -426,7 +429,6 @@
|
|
|
426
429
|
border: medium;
|
|
427
430
|
padding-right: 10px;
|
|
428
431
|
width: 100%;
|
|
429
|
-
height: 50px;
|
|
430
432
|
font-size: 22px;
|
|
431
433
|
}
|
|
432
434
|
.input-container.input Input {
|
|
@@ -465,11 +467,12 @@
|
|
|
465
467
|
justify-content: center;
|
|
466
468
|
align-items: center;
|
|
467
469
|
cursor: pointer;
|
|
468
|
-
width:
|
|
470
|
+
width: 45%;
|
|
469
471
|
min-width: 130px;
|
|
470
472
|
}
|
|
471
473
|
.button-container.get .action-button {
|
|
472
474
|
margin-right: 10px;
|
|
475
|
+
padding: 9px 5px;
|
|
473
476
|
}
|
|
474
477
|
|
|
475
478
|
.button-container.buy {
|
|
@@ -614,6 +617,7 @@ span.flex-inline {
|
|
|
614
617
|
background-color: var(--theme-ui-colors-white2);
|
|
615
618
|
cursor: pointer;
|
|
616
619
|
margin-bottom: 5px;
|
|
620
|
+
justify-content: space-between;
|
|
617
621
|
}
|
|
618
622
|
.bond-row:hover {
|
|
619
623
|
background-color: var(--theme-ui-colors-white3);
|
|
@@ -636,13 +640,13 @@ span.flex-inline {
|
|
|
636
640
|
}
|
|
637
641
|
.bond-row .bond-info-columns .discount-column {
|
|
638
642
|
display: flex;
|
|
639
|
-
width:
|
|
643
|
+
width: 170px;
|
|
640
644
|
align-items: flex-end;
|
|
641
645
|
justify-content: center;
|
|
642
646
|
}
|
|
643
647
|
.bond-row .bond-info-columns .arr-column {
|
|
644
648
|
display: none;
|
|
645
|
-
width:
|
|
649
|
+
width: 170px;
|
|
646
650
|
align-items: flex-end;
|
|
647
651
|
justify-content: center;
|
|
648
652
|
}
|
|
@@ -790,14 +794,14 @@ span.flex-inline {
|
|
|
790
794
|
}
|
|
791
795
|
.bonds-menu .discount-header {
|
|
792
796
|
display: flex;
|
|
793
|
-
width:
|
|
797
|
+
width: 170px;
|
|
794
798
|
align-items: flex-end;
|
|
795
799
|
justify-content: center;
|
|
796
800
|
cursor: pointer;
|
|
797
801
|
}
|
|
798
802
|
.bonds-menu .arr-header {
|
|
799
803
|
display: none;
|
|
800
|
-
width:
|
|
804
|
+
width: 170px;
|
|
801
805
|
align-items: flex-end;
|
|
802
806
|
justify-content: center;
|
|
803
807
|
cursor: pointer;
|
|
@@ -1459,12 +1463,13 @@ span.flex-inline {
|
|
|
1459
1463
|
width: 50%;
|
|
1460
1464
|
font-size: 12px;
|
|
1461
1465
|
font-weight: 400;
|
|
1462
|
-
opacity: 0.6;
|
|
1463
1466
|
line-height: 14px;
|
|
1464
1467
|
}
|
|
1465
1468
|
|
|
1466
1469
|
.yourbondinfo-block.header-title {
|
|
1467
1470
|
align-items: center;
|
|
1471
|
+
display: flex;
|
|
1472
|
+
opacity: 0.6;
|
|
1468
1473
|
}
|
|
1469
1474
|
|
|
1470
1475
|
.yourbondinfo-block.header-tooltip {
|
|
@@ -1475,6 +1480,7 @@ span.flex-inline {
|
|
|
1475
1480
|
padding-left: 5px;
|
|
1476
1481
|
align-items: flex-start;
|
|
1477
1482
|
cursor: pointer;
|
|
1483
|
+
opacity: 0.6;
|
|
1478
1484
|
}
|
|
1479
1485
|
|
|
1480
1486
|
.yourbondinfo-block.info {
|
|
@@ -1527,7 +1533,7 @@ span.flex-inline {
|
|
|
1527
1533
|
}
|
|
1528
1534
|
@media screen and (min-width: 1000px) {
|
|
1529
1535
|
.yourbondinfo-block.row-vested {
|
|
1530
|
-
margin-bottom:
|
|
1536
|
+
margin-bottom: 8px;
|
|
1531
1537
|
border-radius: 10px;
|
|
1532
1538
|
height: 40px;
|
|
1533
1539
|
}
|
|
@@ -1548,7 +1554,7 @@ span.flex-inline {
|
|
|
1548
1554
|
}
|
|
1549
1555
|
@media screen and (min-width: 1000px) {
|
|
1550
1556
|
.yourbondinfo-block.row-pending {
|
|
1551
|
-
margin-bottom:
|
|
1557
|
+
margin-bottom: 8px;
|
|
1552
1558
|
border-radius: 10px;
|
|
1553
1559
|
height: 40px;
|
|
1554
1560
|
}
|
|
@@ -1570,7 +1576,7 @@ span.flex-inline {
|
|
|
1570
1576
|
}
|
|
1571
1577
|
@media screen and (min-width: 1000px) {
|
|
1572
1578
|
.yourbondinfo-block.row-claimable {
|
|
1573
|
-
margin-bottom:
|
|
1579
|
+
margin-bottom: 8px;
|
|
1574
1580
|
border-radius: 10px;
|
|
1575
1581
|
height: 40px;
|
|
1576
1582
|
}
|
package/dist/theme/base.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
export type MediaQueries = {
|
|
2
|
+
xs: string;
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
lg: string;
|
|
6
|
+
xl: string;
|
|
7
|
+
xxl: string;
|
|
8
|
+
xxxl: string;
|
|
9
|
+
nav: string;
|
|
10
|
+
};
|
|
2
11
|
export declare const breakpointMap: {
|
|
3
12
|
[key: string]: number;
|
|
4
13
|
};
|
package/dist/types/bonds.d.ts
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { ChainId, LaunchBondTiers, Token } from '@ape.swap/apeswap-lists';
|
|
1
|
+
import { BillVersion, ChainId, LaunchBondTiers, Token } from '@ape.swap/apeswap-lists';
|
|
2
|
+
export interface TrueBondPrices {
|
|
3
|
+
points: string;
|
|
4
|
+
trueBondPrice: string;
|
|
5
|
+
bonus: number;
|
|
6
|
+
bonusWithFee: number;
|
|
7
|
+
}
|
|
2
8
|
export interface BondsData {
|
|
3
9
|
index?: number;
|
|
4
10
|
cmcId?: number;
|
|
5
11
|
chainId: ChainId;
|
|
6
12
|
type: string;
|
|
7
|
-
|
|
8
|
-
bonus: number;
|
|
13
|
+
trueBondPrices: TrueBondPrices[];
|
|
9
14
|
version: string;
|
|
10
|
-
bonusWithFee: number;
|
|
11
15
|
feeInPayout?: number;
|
|
12
16
|
billAddress?: string;
|
|
13
17
|
billNftAddress: string;
|
|
14
18
|
soldOut?: boolean;
|
|
15
19
|
inactive?: boolean;
|
|
16
|
-
trueBillPrice: string;
|
|
17
20
|
maxTotalPayout: string;
|
|
18
21
|
totalPayoutGiven: string;
|
|
19
22
|
maxPayout: string;
|
|
@@ -32,4 +35,5 @@ export interface BondsData {
|
|
|
32
35
|
earnToken: Token;
|
|
33
36
|
lpToken: Token;
|
|
34
37
|
minTier?: LaunchBondTiers;
|
|
38
|
+
billVersion?: BillVersion;
|
|
35
39
|
}
|
|
@@ -23,11 +23,9 @@ export declare const discountEarnTokenPrice: (bond: BondsData) => string;
|
|
|
23
23
|
export declare const maxBuy: (bond: BondsData) => 0 | BigNumber;
|
|
24
24
|
export declare function formatNumber(input: string): string;
|
|
25
25
|
export declare function formatUSDNumber(input: string): string;
|
|
26
|
-
export declare const youSpend: (inputValue: string) => string;
|
|
27
26
|
export declare const youSpendUSD: (bond: BondsData, inputValue: string) => string;
|
|
28
|
-
export declare const
|
|
29
|
-
export declare const
|
|
30
|
-
export declare const
|
|
31
|
-
export declare const
|
|
32
|
-
export declare const getFeeAmount: (bond?: BondsData, inputValue?: string) => number;
|
|
27
|
+
export declare const getPayoutAmount: (bond?: BondsData, inputValue?: string, userPoints?: string) => number;
|
|
28
|
+
export declare const youGetUSD: (bond: BondsData, inputValue: string, userPoints: string) => string;
|
|
29
|
+
export declare const getRawBonus: (bond?: BondsData, inputValue?: string, userPoints?: string) => string;
|
|
30
|
+
export declare const getFeeAmount: (bond?: BondsData, inputValue?: string, userPoints?: string) => number;
|
|
33
31
|
export declare const getBonusColor: (premiumString: string) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
2
|
-
export declare const getSymbol: (token?: Token | "NATIVE", chainId?: ChainId) => string
|
|
2
|
+
export declare const getSymbol: (token?: Token | "NATIVE", chainId?: ChainId) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const remove0xPrefix: (str?: string) => string
|
|
1
|
+
export declare const remove0xPrefix: (str?: string) => string;
|
|
@@ -7,7 +7,7 @@ interface BondRowHeaderProps {
|
|
|
7
7
|
filterOptions: string[];
|
|
8
8
|
filterOption: string;
|
|
9
9
|
setFilterOption: (newOption: string) => void;
|
|
10
|
-
onSort: (key: '
|
|
10
|
+
onSort: (key: 'bonus' | 'arr' | 'terms' | 'tokensRemaining') => void;
|
|
11
11
|
}
|
|
12
12
|
declare const BondsMenu: React.FC<BondRowHeaderProps>;
|
|
13
13
|
export default BondsMenu;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BondsData } from '../../../../types/bonds';
|
|
3
|
+
declare const BonusComponent: ({ bond, tooltipPosition, }: {
|
|
4
|
+
bond: BondsData;
|
|
5
|
+
tooltipPosition: "bottomRight" | "bottomLeft";
|
|
6
|
+
}) => React.JSX.Element;
|
|
7
|
+
export default BonusComponent;
|
|
@@ -13,5 +13,5 @@ export declare const vestingTime: (vestingTerm?: number) => {
|
|
|
13
13
|
};
|
|
14
14
|
export declare const remainingPercentage: (bond: BondsData) => number;
|
|
15
15
|
export declare const getDiscountColor: (discount?: number) => string;
|
|
16
|
-
export declare const calculateARR: (bond: BondsData | BillsConfig) => string;
|
|
16
|
+
export declare const calculateARR: (bond: BondsData | BillsConfig, useTiers: boolean) => string;
|
|
17
17
|
export declare const isBondSupported: (SDKVersion: string, bondVersion: string) => boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BondsData } from '../../../../types/bonds';
|
|
3
|
+
interface GetUpToComponentProps {
|
|
4
|
+
bond: BondsData;
|
|
5
|
+
depositAmount: string;
|
|
6
|
+
}
|
|
7
|
+
declare const GetUpToComponent: React.FC<GetUpToComponentProps>;
|
|
8
|
+
export default GetUpToComponent;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const ProjectDescription: ({ description }: {
|
|
2
|
+
declare const ProjectDescription: ({ description, isProjectView }: {
|
|
3
3
|
description?: string;
|
|
4
|
+
isProjectView?: boolean;
|
|
4
5
|
}) => React.JSX.Element;
|
|
5
6
|
export default ProjectDescription;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BondsData } from '../../types/bonds';
|
|
2
|
+
/**
|
|
3
|
+
* Finds the highest TrueBondPrices element where userPoints is higher than points in the array.
|
|
4
|
+
* @param userPoints - The user's points as a string representing a BigNumber.
|
|
5
|
+
* @param bondData - Bond Data containing an array of TrueBondPrices to analyze.
|
|
6
|
+
* @returns The highest TrueBondPrices element where userPoints is higher than the item's points, or `undefined` if none matches.
|
|
7
|
+
*/
|
|
8
|
+
export declare const findHighestTrueBondPrice: (userPoints?: string | null, bondData?: BondsData) => import("../../types/bonds").TrueBondPrices;
|
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": "3.0.
|
|
6
|
+
"version": "3.0.18",
|
|
7
7
|
"module": "dist/main.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "dist/main.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"yalc": "^1.0.0-pre.53"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@ape.swap/apeswap-lists": "4.2.
|
|
60
|
+
"@ape.swap/apeswap-lists": "4.2.3",
|
|
61
61
|
"@emotion/react": "11.11.4",
|
|
62
62
|
"bignumber.js": "^9.1.2",
|
|
63
63
|
"chart.js": "4.2.0",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LaunchBondTiers } from '@ape.swap/apeswap-lists';
|
|
3
|
-
interface MinTierBondProps {
|
|
4
|
-
userTier: LaunchBondTiers | null;
|
|
5
|
-
minTier: number | undefined;
|
|
6
|
-
}
|
|
7
|
-
declare const TagMinTierBond: React.FC<MinTierBondProps>;
|
|
8
|
-
export default TagMinTierBond;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { LaunchBondTiers } from '@ape.swap/apeswap-lists';
|
|
2
|
-
export declare const TIERS_NAMES: {
|
|
3
|
-
0: string;
|
|
4
|
-
1: string;
|
|
5
|
-
2: string;
|
|
6
|
-
3: string;
|
|
7
|
-
4: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const getUserTier: (weight: string) => LaunchBondTiers | null;
|
|
10
|
-
export declare const fetchEscrowWeight: (account?: string) => Promise<string | null>;
|
|
11
|
-
export default function useGetUserEscrowWeight(account?: string): import("@tanstack/react-query").UseQueryResult<string | null, Error>;
|
package/dist/theme/display.d.ts
DELETED