@ape.swap/bonds-sdk 1.1.0-seedify → 1.1.0-test.108
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/assets/output-2LTDuc8n.css +174 -0
- package/dist/components/AccordionText/index.d.ts +0 -1
- package/dist/components/{BondMenu/BondMenu.d.ts → BondFilters/BondFilters.d.ts} +2 -3
- package/dist/components/ConnectButton/RainbowKitButton.d.ts +3 -0
- package/dist/components/ConnectButton/index.d.ts +3 -0
- package/dist/components/FavIcons/AddFavToken.d.ts +6 -0
- package/dist/components/FavIcons/FavFilter.d.ts +6 -0
- package/dist/components/PlaceholderMonkey/index.d.ts +5 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -1
- package/dist/components/SafeHTMLComponent/index.d.ts +5 -0
- package/dist/components/Toast/index.d.ts +7 -0
- package/dist/components/Toast/styles.d.ts +3 -0
- package/dist/components/TokenInfoAndName/index.d.ts +4 -3
- package/dist/components/TokenSelectorModal/index.d.ts +1 -0
- package/dist/components/TokenSelectorPanel/index.d.ts +4 -3
- package/dist/components/Tooltip/ButtonsRow.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +3 -10
- package/dist/components/uikit-sdk/Input/index.d.ts +0 -1
- package/dist/components/uikit-sdk/LoadingDots/index.d.ts +2 -0
- package/dist/components/uikit-sdk/Svg/Icons/FirePink.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Star.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/StarFilled.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/index.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/types.d.ts +4 -1
- package/dist/components/uikit-sdk/SwiperDots/index.d.ts +6 -0
- package/dist/components/uikit-sdk/Tag/index.d.ts +0 -2
- package/dist/components/uikit-sdk/Tag/types.d.ts +1 -46
- package/dist/components/uikit-sdk/index.d.ts +3 -1
- package/dist/config/constants/addresses.d.ts +1 -3
- package/dist/config/constants/chains.d.ts +2 -30
- package/dist/config/constants/networks.d.ts +2 -2
- package/dist/config/constants/queryKeys.d.ts +8 -4
- package/dist/config/constants/variables.d.ts +5 -0
- package/dist/contexts/Popups.d.ts +5 -0
- package/dist/contexts/SwiperProvider.d.ts +12 -0
- package/dist/hooks/useDebounce.d.ts +1 -0
- package/dist/hooks/useMonitorTxHash.d.ts +25 -0
- package/dist/hooks/useSendReferenceId.d.ts +2 -0
- package/dist/hooks/useSwiper.d.ts +2 -0
- package/dist/main.d.ts +2 -3
- package/dist/main.js +67184 -50466
- package/dist/state/bondApiStats/useGetBondApiStats.d.ts +25 -0
- package/dist/state/bonds/useBondNFTData.d.ts +1 -1
- package/dist/state/bonds/useBondsData.d.ts +1 -1
- package/dist/state/bonds/useBondsList.d.ts +1 -1
- package/dist/state/bonds/useGetBondRecommendations.d.ts +27 -0
- package/dist/state/bonds/useHotBonds.d.ts +5 -2
- package/dist/state/bonds/useUserApiStats.d.ts +22 -0
- package/dist/state/favoriteTokens/useFavoriteTokens.d.ts +4 -0
- package/dist/state/popups/usePopups.d.ts +14 -0
- package/dist/state/tokenPrices/useTokenPrices.d.ts +2 -1
- package/dist/state/useSDKConfig.d.ts +16 -0
- package/dist/state/zap/getChainParam.d.ts +1 -1
- package/dist/state/zap/useSoulZapBondQuote.d.ts +1 -1
- package/dist/state/zap/useSoulZapTokenQuote.d.ts +1 -1
- package/dist/styles.css +1660 -0
- package/dist/types/bonds.d.ts +1 -2
- package/dist/utils/dates/formatDate.d.ts +1 -0
- package/dist/utils/displayHelpers.d.ts +11 -0
- package/dist/utils/formatNumbers.d.ts +0 -3
- package/dist/utils/getDotPos.d.ts +1 -0
- package/dist/utils/getNativeTicker.d.ts +1 -2
- package/dist/utils/index.d.ts +0 -15
- package/dist/views/BondModal/BondModal.d.ts +1 -3
- package/dist/views/BondModal/components/BondCards.d.ts +6 -0
- package/dist/views/BondModal/components/BondModalHeader.d.ts +8 -0
- package/dist/views/BondModal/components/Estimations.d.ts +14 -0
- package/dist/views/BondModal/components/ExpandedViewButton.d.ts +6 -0
- package/dist/views/BondModal/components/ProjectDescription.d.ts +5 -0
- package/dist/views/BondModal/index.d.ts +4 -1
- package/dist/views/Bonds/Bonds.d.ts +0 -2
- package/dist/views/Bonds/components/BondRows/BondRow.d.ts +9 -0
- package/dist/views/Bonds/components/BondRows/BondRowsByChain.d.ts +10 -0
- package/dist/views/Bonds/components/BondRows/BondRowsWithTitle.d.ts +11 -0
- package/dist/views/Bonds/components/BondRows/ModalHandler.d.ts +7 -0
- package/dist/{components/BondRows/BondRowHeader.d.ts → views/Bonds/components/BondsMenu/BondsMenu.d.ts} +2 -4
- package/dist/views/Bonds/components/BuyAgainRow/index.d.ts +3 -0
- package/dist/views/Bonds/components/HotBondCards/HotBondCard.d.ts +6 -0
- package/dist/views/Bonds/components/HotBondCards/index.d.ts +4 -0
- package/dist/views/Bonds/components/HotBondCards/styles.d.ts +2 -0
- package/dist/views/Bonds/components/RecommendationCards/SmallRecommendationCard.d.ts +13 -0
- package/dist/views/Bonds/components/RecommendationCards/index.d.ts +11 -0
- package/dist/views/Bonds/components/RecommendationCards/styles.d.ts +2 -0
- package/dist/views/Bonds/index.d.ts +4 -1
- package/dist/views/Bonds/utils.d.ts +5 -2
- package/dist/views/FullBondsView/index.d.ts +2 -1
- package/dist/views/ProjectView/ProjectView.d.ts +14 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/SalesTable.d.ts +6 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopSaleCard.d.ts +7 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopThreeSalesCards.d.ts +6 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/styles.d.ts +2 -0
- package/dist/views/ProjectView/components/BondLeaderboard/index.d.ts +6 -0
- package/dist/views/ProjectView/components/BondStats/index.d.ts +6 -0
- package/dist/views/ProjectView/components/BondStats/styles.d.ts +2 -0
- package/dist/views/ProjectView/components/BondStats/types.d.ts +43 -0
- package/dist/views/ProjectView/components/BondStats/utils.d.ts +1 -0
- package/dist/views/ProjectView/components/NavPanel/index.d.ts +5 -0
- package/dist/views/ProjectView/components/PriceChart/components/CandleStickChart.d.ts +9 -0
- package/dist/views/ProjectView/components/PriceChart/components/LineChart.d.ts +9 -0
- package/dist/views/ProjectView/components/PriceChart/components/utils.d.ts +1 -0
- package/dist/views/ProjectView/components/PriceChart/index.d.ts +8 -0
- package/dist/views/ProjectView/components/PriceChart/styles.d.ts +2 -0
- package/dist/views/ProjectView/components/ProjectInfo/index.d.ts +6 -0
- package/dist/views/ProjectView/components/ProjectInfo/styles.d.ts +2 -0
- package/dist/views/ProjectView/components/RecommendationCards/index.d.ts +3 -0
- package/dist/views/ProjectView/index.d.ts +7 -0
- package/dist/views/ProjectView/styles.d.ts +2 -0
- package/dist/views/YourBonds/YourBonds.d.ts +1 -2
- package/dist/views/YourBonds/components/YourBondsMenu/YourBondsMenu.d.ts +13 -0
- package/dist/views/YourBonds/fetchBillsUser.d.ts +0 -12
- package/dist/views/YourBonds/getBillNftData.d.ts +2 -2
- package/dist/views/YourBonds/index.d.ts +2 -1
- package/dist/views/YourBondsModal/YourBondsModal.d.ts +0 -2
- package/dist/views/YourBondsModal/components/Recommendations/CardRecommendation.d.ts +7 -0
- package/dist/views/YourBondsModal/components/Recommendations/CardRecommendationsMobile.d.ts +6 -0
- package/dist/views/YourBondsModal/components/Recommendations/Recommendations.d.ts +6 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferAction.d.ts +8 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/index.d.ts +8 -0
- package/dist/views/ZapModal/index.d.ts +0 -1
- package/package.json +22 -35
- package/dist/components/BondRows/BondRow.d.ts +0 -10
- package/dist/components/BondRows/BondRowsByChain.d.ts +0 -9
- package/dist/components/BondRows/BondRowsWithTitle.d.ts +0 -9
- package/dist/components/DisconnectedPlaceholder/index.d.ts +0 -3
- package/dist/components/uikit-sdk/Input/StyledInput.d.ts +0 -11
- package/dist/components/uikit-sdk/Tag/Tag.d.ts +0 -4
- package/dist/components/uikit-sdk/Tag/styles.d.ts +0 -8
- package/dist/config/constants/api.d.ts +0 -6
- package/dist/config/constants/lifiRouting.d.ts +0 -2
- package/dist/config/constants/lists.d.ts +0 -10
- package/dist/config/constants/meta.d.ts +0 -11
- package/dist/config/constants/misc.d.ts +0 -3
- package/dist/config/constants/products.d.ts +0 -21
- package/dist/config/constants/tutorials.d.ts +0 -7
- package/dist/config/localization/languages.d.ts +0 -11
- package/dist/contexts/Localization/Provider.d.ts +0 -7
- package/dist/contexts/Localization/helpers.d.ts +0 -3
- package/dist/contexts/Localization/index.d.ts +0 -3
- package/dist/contexts/Localization/types.d.ts +0 -21
- package/dist/contexts/Localization/useTranslation.d.ts +0 -2
- package/dist/scss/AccordionText.scss +0 -11
- package/dist/scss/BondMenu.scss +0 -29
- package/dist/scss/BondModal.scss +0 -480
- package/dist/scss/BondRow.scss +0 -98
- package/dist/scss/BondRowHeader.scss +0 -124
- package/dist/scss/BondRowsByChain.scss +0 -5
- package/dist/scss/BondRowsWithTitle.scss +0 -4
- package/dist/scss/Bonds.scss +0 -18
- package/dist/scss/ProgressBar.scss +0 -13
- package/dist/scss/TokenInfoName.scss +0 -60
- package/dist/scss/YourBonds.scss +0 -203
- package/dist/scss/YourBondsModal.scss +0 -314
- package/dist/scss/index.scss +0 -12
- package/dist/views/BondModal/helper.d.ts +0 -10
- package/dist/views/YourBondsModal/styles.d.ts +0 -2
- /package/dist/hooks/{useTopThreeTags.d.ts → useTopTags.d.ts} +0 -0
- /package/dist/{components/BondMenu → state/chainFilterOption}/useChainFilterOption.d.ts +0 -0
- /package/dist/{components → views/Bonds/components}/BondRows/ChainTitle.d.ts +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface Sales {
|
|
2
|
+
billNftId: number;
|
|
3
|
+
chainId: number;
|
|
4
|
+
contractAddress: string;
|
|
5
|
+
createdAddressOwner: string;
|
|
6
|
+
createdAt: number;
|
|
7
|
+
deposit: number;
|
|
8
|
+
dollarValue: number;
|
|
9
|
+
lp: string;
|
|
10
|
+
payout: number;
|
|
11
|
+
payoutToken: string;
|
|
12
|
+
payoutTokenPrice: number;
|
|
13
|
+
referenceId: string;
|
|
14
|
+
transactionHash: string;
|
|
15
|
+
vestingTime: number;
|
|
16
|
+
}
|
|
17
|
+
export interface BondApiStats {
|
|
18
|
+
ROE: string;
|
|
19
|
+
percentageSold: number;
|
|
20
|
+
totalDollarValue: number;
|
|
21
|
+
valueRemaining: number;
|
|
22
|
+
Sales: Sales[];
|
|
23
|
+
}
|
|
24
|
+
export declare const getBondApiStats: (contractAddress?: string) => Promise<BondApiStats>;
|
|
25
|
+
export default function useGetBondApiStats(contractAddress?: string): import("@tanstack/react-query").UseQueryResult<BondApiStats, Error>;
|
|
@@ -2,4 +2,4 @@ import { UseQueryResult } from '@tanstack/react-query';
|
|
|
2
2
|
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
3
3
|
import { UserBillNftData } from '../../types/yourbonds';
|
|
4
4
|
export default function useBondNFTData(id?: string, billNftAddress?: string, chainId?: ChainId): UseQueryResult<UserBillNftData>;
|
|
5
|
-
export declare const getBondNFTData: (id: string, billNftAddress: string, chainId: ChainId) => Promise<UserBillNftData | undefined>;
|
|
5
|
+
export declare const getBondNFTData: (apiV2URL: string, id: string, billNftAddress: string, chainId: ChainId) => Promise<UserBillNftData | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { BondsData } from '../../types/bonds';
|
|
3
3
|
export default function useBondsData(): UseQueryResult<BondsData[]>;
|
|
4
|
-
export declare const getBondsData: () => Promise<BondsData[]>;
|
|
4
|
+
export declare const getBondsData: (realTimeApiURL: string) => Promise<BondsData[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { BillsConfig } from '@ape.swap/apeswap-lists';
|
|
3
3
|
export default function useBondsList(): UseQueryResult<BillsConfig[]>;
|
|
4
|
-
export declare const getBondsList: () => Promise<BillsConfig[][]>;
|
|
4
|
+
export declare const getBondsList: (apeswapListsURL: string) => Promise<BillsConfig[][]>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface BondRecommendation {
|
|
2
|
+
chainId: number;
|
|
3
|
+
type: string;
|
|
4
|
+
principalToken: string;
|
|
5
|
+
principalTokenName: string;
|
|
6
|
+
payoutToken: string;
|
|
7
|
+
payoutTokenName: string;
|
|
8
|
+
billAddress: string;
|
|
9
|
+
discount: number;
|
|
10
|
+
link: string;
|
|
11
|
+
billNftAddress: string;
|
|
12
|
+
initTime: number;
|
|
13
|
+
soldOut: boolean;
|
|
14
|
+
inactive: boolean;
|
|
15
|
+
maxTotalPayout: number;
|
|
16
|
+
totalPayoutGiven: number;
|
|
17
|
+
tokensRemaining: number;
|
|
18
|
+
showcaseToken: string;
|
|
19
|
+
showcaseTokenName: string;
|
|
20
|
+
vestingTerm: number;
|
|
21
|
+
earnTokenPrice: number;
|
|
22
|
+
priceUsd: number;
|
|
23
|
+
tags: string[];
|
|
24
|
+
arr: number;
|
|
25
|
+
}
|
|
26
|
+
export declare const getBondRecommendations: (apiV2URL: string, user?: string, contract?: string, limit?: string) => Promise<BondRecommendation[]>;
|
|
27
|
+
export default function useGetBondRecommendations(user?: string, contract?: string, limit?: string): import("@tanstack/react-query").UseQueryResult<BondRecommendation[], Error>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
|
|
3
|
-
export declare
|
|
2
|
+
import { BondsData } from '../../types/bonds';
|
|
3
|
+
export declare function useHotBondContracts(): import("@tanstack/react-query").DefinedUseQueryResult<string[], Error>;
|
|
4
|
+
export default function useHotBonds(): UseQueryResult<BondsData[]>;
|
|
5
|
+
export declare const getHotBondsContracts: () => Promise<string[]>;
|
|
6
|
+
export declare const getHotBonds: (bondData: BondsData[], hotBondContracts: string[]) => Promise<BondsData[]>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface Sales {
|
|
2
|
+
billNftId: number;
|
|
3
|
+
chainId: number;
|
|
4
|
+
contractAddress: string;
|
|
5
|
+
createdAddressOwner: string;
|
|
6
|
+
createdAt: number;
|
|
7
|
+
deposit: number;
|
|
8
|
+
dollarValue: number;
|
|
9
|
+
lp: string;
|
|
10
|
+
payout: number;
|
|
11
|
+
payoutToken: string;
|
|
12
|
+
payoutTokenPrice: number;
|
|
13
|
+
referenceId: string;
|
|
14
|
+
transactionHash: string;
|
|
15
|
+
vestingTime: number;
|
|
16
|
+
}
|
|
17
|
+
export interface UserApiStats {
|
|
18
|
+
totalDollarValue: number;
|
|
19
|
+
Sales: Sales[];
|
|
20
|
+
}
|
|
21
|
+
export declare const getUserApiStats: (account?: string) => Promise<UserApiStats | null>;
|
|
22
|
+
export default function useUserApiStats(): import("@tanstack/react-query").UseQueryResult<UserApiStats | null, Error>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
2
|
+
export interface PopupProps {
|
|
3
|
+
timestamp: number;
|
|
4
|
+
variant: 'success' | 'error';
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const usePopups: () => {
|
|
10
|
+
data: PopupProps[];
|
|
11
|
+
addToastError: (errorMessage: string, txHash?: string, chainId?: ChainId) => void;
|
|
12
|
+
addToastSuccess: (txHash?: string, chainId?: ChainId) => void;
|
|
13
|
+
removePopup: (popupToRemove: PopupProps) => void;
|
|
14
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
3
|
+
export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
3
4
|
export interface TokenPrices {
|
|
4
5
|
symbol: string | undefined;
|
|
5
6
|
address: string | undefined;
|
|
@@ -8,7 +9,7 @@ export interface TokenPrices {
|
|
|
8
9
|
chainId: ChainId | undefined;
|
|
9
10
|
}
|
|
10
11
|
export default function useTokenPrices(): UseQueryResult<TokenPrices[]>;
|
|
11
|
-
export declare const getTokenPrices: () => Promise<TokenPrices[]>;
|
|
12
|
+
export declare const getTokenPrices: (apeswapListsURL: string) => Promise<TokenPrices[]>;
|
|
12
13
|
export declare const getBatchTokenPriceWithDexscreener: (params: {
|
|
13
14
|
chainId: ChainId;
|
|
14
15
|
tokens: {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface SDKProps {
|
|
2
|
+
config: {
|
|
3
|
+
referenceId: string;
|
|
4
|
+
environment: 'main' | 'staging';
|
|
5
|
+
useRainbowKit: boolean;
|
|
6
|
+
modalVariant: 'alt' | 'standard';
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare const useSDKConfig: (config?: SDKProps) => {
|
|
10
|
+
referenceId: string;
|
|
11
|
+
environment: "main" | "staging";
|
|
12
|
+
useRainbowKit: boolean;
|
|
13
|
+
modalVariant: "alt" | "standard";
|
|
14
|
+
} | undefined;
|
|
15
|
+
export type URLKeys = 'apiV2' | 'realTimeApi' | 'apeswap-lists';
|
|
16
|
+
export declare const useURLByEnvironment: (key: URLKeys) => string;
|
|
@@ -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, estimateOutput:
|
|
3
|
+
declare const useSoulZapBondQuote: (typedValue: string, inputCurrency: "NATIVE" | Token | undefined, bond: BondsData | undefined, account?: string) => [loading: boolean, response: any, estimateOutput: number, error: boolean];
|
|
4
4
|
export default useSoulZapBondQuote;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
2
|
-
declare const useSoulZapTokenQuote: (typedValue: string, inputCurrency: "NATIVE" | Token | undefined, outputToken: Token | undefined, chainId: ChainId, account?: string) => [loading: boolean, response: any, estimateOutput:
|
|
2
|
+
declare const useSoulZapTokenQuote: (typedValue: string, inputCurrency: "NATIVE" | Token | undefined, outputToken: Token | undefined, chainId: ChainId, account?: string) => [loading: boolean, response: any, estimateOutput: number, error: boolean];
|
|
3
3
|
export default useSoulZapTokenQuote;
|