@ape.swap/bonds-sdk 3.0.57 → 3.0.59
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/FavIcons/AddFavToken.d.ts +1 -2
- package/dist/components/TokenInfoAndName/index.d.ts +5 -5
- package/dist/components/TokenSelectorModal/TokenRow.d.ts +2 -1
- package/dist/components/TokenSelectorModal/index.d.ts +0 -1
- package/dist/components/TokenSelectorPanel/index.d.ts +1 -3
- package/dist/config/constants/queryKeys.d.ts +3 -0
- package/dist/hooks/useSortedZapList.d.ts +9 -0
- package/dist/main.js +3650 -634
- package/dist/state/bonds/useUserTokensBalance.d.ts +10 -0
- package/dist/state/preTGEBonds/usePreTGEBondsData.d.ts +19 -0
- package/dist/state/preTGEBonds/usePreTGEList.d.ts +4 -0
- package/dist/state/preTGEBonds/usePreTGEUserBonds.d.ts +33 -0
- package/dist/state/useSDKConfig.d.ts +2 -0
- package/dist/types/bonds.d.ts +12 -12
- package/dist/types/yourbonds.d.ts +1 -1
- package/dist/utils/displayHelpers.d.ts +0 -1
- package/dist/views/Bonds/components/BondRows/BondRow.d.ts +14 -5
- package/dist/views/Bonds/components/BondRows/BondRowsWithTitle.d.ts +0 -1
- package/dist/views/Bonds/components/BonusComponents/BonusComponent.d.ts +6 -3
- package/dist/views/Bonds/components/BonusComponents/BonusContainer.d.ts +6 -4
- package/dist/views/Bonds/components/BonusComponents/BonusTable.d.ts +5 -3
- package/dist/views/BuyBond/findHighestTrueBondPrice.d.ts +1 -0
- package/dist/views/PreTGEBonds/components/BuyComponent/BondCards.d.ts +6 -0
- package/dist/views/PreTGEBonds/components/BuyComponent/BuyAction.d.ts +10 -0
- package/dist/views/PreTGEBonds/components/BuyComponent/BuyComponent.d.ts +7 -0
- package/dist/views/PreTGEBonds/components/BuyComponent/ParticipationSuccessful.d.ts +8 -0
- package/dist/views/PreTGEBonds/components/BuyComponent/PreTGEModalHandler.d.ts +7 -0
- package/dist/views/PreTGEBonds/components/BuyComponent/styles.d.ts +22 -0
- package/dist/views/PreTGEBonds/components/PreTGERows/BonusTable.d.ts +6 -0
- package/dist/views/PreTGEBonds/components/PreTGERows/PreTGERows.d.ts +3 -0
- package/dist/views/PreTGEBonds/components/PreTGEUserRows/PreTGEActions.d.ts +6 -0
- package/dist/views/PreTGEBonds/components/PreTGEUserRows/PreTGEUserRow.d.ts +6 -0
- package/package.json +2 -2
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const AddFavToken: ({ tokenSymbol, hotBond
|
|
2
|
+
declare const AddFavToken: ({ tokenSymbol, hotBond }: {
|
|
3
3
|
tokenSymbol: string;
|
|
4
4
|
hotBond?: boolean;
|
|
5
|
-
isGoldBond: boolean;
|
|
6
5
|
}) => React.JSX.Element;
|
|
7
6
|
export default AddFavToken;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export declare const NETWORK_COLORS: Partial<Record<number, string>>;
|
|
3
|
+
declare const TokenInfoAndName: ({ tokenSymbol, chain, tag, vestEnds, isHotBond, }: {
|
|
4
|
+
tokenSymbol: string;
|
|
5
|
+
chain: number;
|
|
6
|
+
tag?: string;
|
|
6
7
|
vestEnds?: string;
|
|
7
8
|
isHotBond?: boolean;
|
|
8
|
-
isGoldBond?: boolean;
|
|
9
9
|
}) => React.JSX.Element;
|
|
10
10
|
export default TokenInfoAndName;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
3
|
-
declare const TokenRow: ({ token, chainId, handleTokenSelect, }: {
|
|
3
|
+
declare const TokenRow: ({ token, chainId, handleTokenSelect, tokenBalance, }: {
|
|
4
4
|
token: "NATIVE" | Token;
|
|
5
5
|
chainId: ChainId;
|
|
6
6
|
handleTokenSelect: (currency: string) => void;
|
|
7
|
+
tokenBalance: string;
|
|
7
8
|
}) => React.JSX.Element;
|
|
8
9
|
export default TokenRow;
|
|
@@ -3,7 +3,6 @@ import { ChainId } from '@ape.swap/apeswap-lists';
|
|
|
3
3
|
import { Token } from '@ape.swap/apeswap-lists';
|
|
4
4
|
interface TokenSelectorModalProps {
|
|
5
5
|
bondPrincipalToken?: Token;
|
|
6
|
-
bondEarnToken?: Token;
|
|
7
6
|
handleCurrencySelect: (currency: string) => void;
|
|
8
7
|
chainId: ChainId;
|
|
9
8
|
onDismiss?: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
3
|
-
declare const TokenSelectorPanel: ({ typedValue, setTypedValue, selectedToken, chainId, handleValueBtn, handleCurrencySelect, enableZap, tokenBalance, selectedTokenPrice, bondPrincipalToken,
|
|
3
|
+
declare const TokenSelectorPanel: ({ typedValue, setTypedValue, selectedToken, chainId, handleValueBtn, handleCurrencySelect, enableZap, tokenBalance, selectedTokenPrice, bondPrincipalToken, inputDisabled, }: {
|
|
4
4
|
typedValue: string;
|
|
5
5
|
setTypedValue: (value: React.SetStateAction<string>) => void;
|
|
6
6
|
selectedToken?: "NATIVE" | Token;
|
|
@@ -11,8 +11,6 @@ declare const TokenSelectorPanel: ({ typedValue, setTypedValue, selectedToken, c
|
|
|
11
11
|
tokenBalance?: string;
|
|
12
12
|
selectedTokenPrice?: number;
|
|
13
13
|
bondPrincipalToken?: Token;
|
|
14
|
-
bondEarnToken?: Token;
|
|
15
|
-
modalVariant?: "alt" | "standard";
|
|
16
14
|
inputDisabled?: boolean;
|
|
17
15
|
}) => React.JSX.Element;
|
|
18
16
|
export default TokenSelectorPanel;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
2
|
+
export interface SortedZapList {
|
|
3
|
+
token: 'NATIVE' | Token;
|
|
4
|
+
price: number;
|
|
5
|
+
balance?: string;
|
|
6
|
+
usdValue: number;
|
|
7
|
+
}
|
|
8
|
+
declare const useSortedZapList: (chainId?: ChainId, principalToken?: Token) => SortedZapList[];
|
|
9
|
+
export default useSortedZapList;
|