@ape.swap/bonds-sdk 1.1.0-test.62 → 1.1.0-test.63
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 +6 -0
- package/dist/components/FavIcons/FavFilter.d.ts +6 -0
- package/dist/components/TokenInfoAndName/index.d.ts +4 -2
- 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/index.d.ts +1 -0
- package/dist/config/constants/addresses.d.ts +1 -1
- package/dist/config/constants/chains.d.ts +3 -29
- package/dist/config/constants/networks.d.ts +2 -2
- package/dist/config/constants/products.d.ts +1 -1
- package/dist/config/constants/queryKeys.d.ts +3 -1
- package/dist/config/constants/tutorials.d.ts +2 -2
- package/dist/contexts/SwiperProvider.d.ts +12 -0
- package/dist/hooks/useSwiper.d.ts +2 -0
- package/dist/main.js +6716 -1165
- package/dist/scss/BondRow.scss +1 -8
- package/dist/scss/BondRowHeader.scss +2 -8
- package/dist/scss/TokenInfoName.scss +2 -18
- package/dist/state/bonds/useHotBonds.d.ts +4 -2
- package/dist/state/favoriteTokens/useFavoriteTokens.d.ts +4 -0
- package/dist/types/bonds.d.ts +1 -2
- package/dist/utils/formatNumbers.d.ts +0 -3
- package/dist/utils/getDotPos.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/views/Bonds/components/BondRows/BondRow.d.ts +2 -2
- package/dist/views/Bonds/components/BondRows/BondRowsByChain.d.ts +3 -2
- package/dist/views/Bonds/components/BondRows/BondRowsWithTitle.d.ts +3 -2
- package/dist/views/Bonds/components/HotBondCards/HotBondCard.d.ts +7 -0
- package/dist/views/Bonds/components/HotBondCards/index.d.ts +6 -0
- package/dist/views/Bonds/components/HotBondCards/styles.d.ts +2 -0
- package/dist/views/Bonds/utils.d.ts +5 -2
- package/package.json +2 -3
- /package/dist/{components/BondMenu → state/chainFilterOption}/useChainFilterOption.d.ts +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BondsData } from '../../types/bonds';
|
|
3
3
|
import '../../scss/TokenInfoName.scss';
|
|
4
|
+
import { BillsConfig } from '@ape.swap/apeswap-lists';
|
|
4
5
|
export declare const NETWORK_COLORS: Partial<Record<number, string>>;
|
|
5
|
-
declare const TokenInfoAndName: ({ bill, vestEnds }: {
|
|
6
|
-
bill: BondsData;
|
|
6
|
+
declare const TokenInfoAndName: ({ bill, vestEnds, isHotBond, }: {
|
|
7
|
+
bill: BondsData | BillsConfig;
|
|
7
8
|
vestEnds?: string;
|
|
9
|
+
isHotBond?: boolean;
|
|
8
10
|
}) => React.JSX.Element;
|
|
9
11
|
export default TokenInfoAndName;
|
|
@@ -108,3 +108,6 @@ export { default as Expand } from './Expand';
|
|
|
108
108
|
export { default as LineChart } from './LineChart';
|
|
109
109
|
export { default as Sort } from './Sort';
|
|
110
110
|
export { default as AllChains } from './AllChains';
|
|
111
|
+
export { default as Star } from './Star';
|
|
112
|
+
export { default as StarFilled } from './StarFilled';
|
|
113
|
+
export { default as FirePink } from './FirePink';
|
|
@@ -149,7 +149,10 @@ export declare enum icons {
|
|
|
149
149
|
CALENDAR = "calendar",
|
|
150
150
|
QuestionFill = "questionFill",
|
|
151
151
|
SORT = "sort",
|
|
152
|
-
AllChains = "AllChains"
|
|
152
|
+
AllChains = "AllChains",
|
|
153
|
+
Star = "Star",
|
|
154
|
+
StarFilled = "StarFilled",
|
|
155
|
+
FirePink = "FirePink"
|
|
153
156
|
}
|
|
154
157
|
export declare enum directions {
|
|
155
158
|
LEFT = "left",
|
|
@@ -6,6 +6,7 @@ export { default as Skeleton } from './Skeleton';
|
|
|
6
6
|
export { default as TooltipBubble } from './TooltipBubble';
|
|
7
7
|
export { default as Modal } from './Modal';
|
|
8
8
|
export { default as Toggle } from './Toggle';
|
|
9
|
+
export { default as SwiperDots } from './SwiperDots';
|
|
9
10
|
export { Button, IconButton } from './Button';
|
|
10
11
|
export { Select, SelectItem } from './Select';
|
|
11
12
|
export { Tag, ListTag } from './Tag';
|
|
@@ -1,33 +1,7 @@
|
|
|
1
1
|
import { icons } from '../../components/uikit-sdk/Svg/types';
|
|
2
|
-
|
|
3
|
-
export declare enum ChainId {
|
|
4
|
-
MAINNET = 1,
|
|
5
|
-
ARBITRUM_ONE = 42161,
|
|
6
|
-
POLYGON = 137,
|
|
7
|
-
POLYGON_MUMBAI = 80001,
|
|
8
|
-
BSC = 56,
|
|
9
|
-
BSC_TESTNET = 97,
|
|
10
|
-
TLOS = 40,
|
|
11
|
-
AVALANCHE = 43114,
|
|
12
|
-
OPTIMISM = 10,
|
|
13
|
-
FANTOM = 250,
|
|
14
|
-
CRONOS = 25,
|
|
15
|
-
POLYGON_ZK = 1101,
|
|
16
|
-
CELO = 42220,
|
|
17
|
-
GNOSIS = 100,
|
|
18
|
-
OKX = 66,
|
|
19
|
-
INJECTED_EVM_TESTNET = 2424,
|
|
20
|
-
INEVM = 2525,
|
|
21
|
-
SEPOLIA = 11155111,
|
|
22
|
-
LINEA = 59144,
|
|
23
|
-
LIGHTLINK = 1890,
|
|
24
|
-
IOTA = 8822,
|
|
25
|
-
IOTA_TESTNET = 1075,
|
|
26
|
-
BASE = 8453
|
|
27
|
-
}
|
|
2
|
+
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
28
3
|
export declare const MAINNET_CHAINS: ChainId[];
|
|
29
|
-
export declare const
|
|
30
|
-
export declare const CHAIN_NAMES: Record<ChainId, string>;
|
|
4
|
+
export declare const CHAIN_NAMES: Partial<Record<ChainId, string>>;
|
|
31
5
|
export declare const NETWORK_ICONS: Partial<Record<number, icons>>;
|
|
32
6
|
export declare const NETWORK_LABEL: Record<number, string>;
|
|
33
7
|
export declare const BLOCK_EXPLORER: Record<number, string>;
|
|
@@ -43,6 +17,6 @@ interface ChainParamContent {
|
|
|
43
17
|
blockExplorerUrls: string[];
|
|
44
18
|
logoURI: string;
|
|
45
19
|
}
|
|
46
|
-
export declare const CHAIN_PARAMS: Record<ChainId, ChainParamContent
|
|
20
|
+
export declare const CHAIN_PARAMS: Partial<Record<ChainId, ChainParamContent>>;
|
|
47
21
|
export declare const getChainInfo: (chainId: ChainId) => any;
|
|
48
22
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ChainId } from '
|
|
2
|
-
export declare const PUBLIC_RPC_URLS: Record<ChainId, string[]
|
|
1
|
+
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
2
|
+
export declare const PUBLIC_RPC_URLS: Partial<Record<ChainId, string[]>>;
|
|
@@ -15,7 +15,6 @@ export declare const QUERY_KEYS: {
|
|
|
15
15
|
TIERS: string;
|
|
16
16
|
BOND_STATS: string;
|
|
17
17
|
USER_STATS: string;
|
|
18
|
-
CHAIN_FILTER_OPTION: string;
|
|
19
18
|
AB_TEST_VALUE: string;
|
|
20
19
|
USE_CURRENCY_NEW: string;
|
|
21
20
|
BONDS_DATA: string;
|
|
@@ -24,9 +23,12 @@ export declare const QUERY_KEYS: {
|
|
|
24
23
|
BOND_NFT_DATA: string;
|
|
25
24
|
TOKEN_PRICES: string;
|
|
26
25
|
HOT_BONDS: string;
|
|
26
|
+
HOT_BONDS_CONTRACTS: string;
|
|
27
27
|
CURRENCY_BALANCE: string;
|
|
28
28
|
ALLOWANCE: string;
|
|
29
29
|
SLIPPAGE: string;
|
|
30
30
|
ZAP_TOKEN_QUOTE: string;
|
|
31
31
|
ZAP_BOND_QUOTE: string;
|
|
32
|
+
CHAIN_FILTER_OPTION: string;
|
|
33
|
+
FAVORITE_TOKENS: string;
|
|
32
34
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getMetamaskLinks: (chainId:
|
|
1
|
+
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
2
|
+
export declare const getMetamaskLinks: (chainId: ChainId) => "https://docs.bnbchain.org/docs/wallet/metamask/" | "https://wiki.polygon.technology/docs/tools/wallets/metamask/config-polygon-on-metamask/" | "https://metamask.io/faqs/" | "https://decentralizedcreator.com/add-telos-evm-network-to-metamask/" | "https://academy.binance.com/en/articles/how-to-add-arbitrum-to-metamask";
|
|
3
3
|
export declare const ROUTE_NAMES: Record<string, string>;
|
|
4
4
|
export declare const FARMS: Record<string, string>;
|
|
5
5
|
export declare const apebond = "https://docs.ape.bond/apebond/";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { Dispatch } from 'react';
|
|
2
|
+
import SwiperCore from 'swiper';
|
|
3
|
+
export interface Context {
|
|
4
|
+
swiper: SwiperCore | undefined;
|
|
5
|
+
setSwiper: Dispatch<React.SetStateAction<SwiperCore | undefined>>;
|
|
6
|
+
destroySwiper: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SwiperContext: React.Context<Context>;
|
|
9
|
+
declare const SwiperProvider: React.FC<{
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}>;
|
|
12
|
+
export default SwiperProvider;
|