@ape.swap/bonds-sdk 1.0.13 → 1.0.15
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/utils/connection/index.d.ts +0 -1
- package/dist/cjs/types/utils/index.d.ts +1 -1
- package/dist/cjs/types/wallet/ConnectionOptions.d.ts +10 -0
- package/dist/cjs/types/wallet/Option.d.ts +9 -0
- package/dist/cjs/types/wallet/config.d.ts +13 -0
- package/dist/cjs/types/wallet/connections.d.ts +21 -0
- package/dist/cjs/types/wallet/constants.d.ts +21 -0
- package/dist/cjs/types/wallet/injected.d.ts +2 -0
- package/dist/cjs/types/wallet/network.d.ts +2 -0
- package/dist/cjs/types/wallet/provider.d.ts +4 -0
- package/dist/cjs/types/wallet/wallet-connect.d.ts +2 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/utils/connection/index.d.ts +0 -1
- package/dist/esm/types/utils/index.d.ts +1 -1
- package/dist/esm/types/wallet/ConnectionOptions.d.ts +10 -0
- package/dist/esm/types/wallet/Option.d.ts +9 -0
- package/dist/esm/types/wallet/config.d.ts +13 -0
- package/dist/esm/types/wallet/connections.d.ts +21 -0
- package/dist/esm/types/wallet/constants.d.ts +21 -0
- package/dist/esm/types/wallet/injected.d.ts +2 -0
- package/dist/esm/types/wallet/network.d.ts +2 -0
- package/dist/esm/types/wallet/provider.d.ts +4 -0
- package/dist/esm/types/wallet/wallet-connect.d.ts +2 -0
- package/package.json +6 -11
- package/dist/cjs/types/config/constants/addresses.d.ts +0 -22
- package/dist/cjs/types/config/constants/api.d.ts +0 -6
- package/dist/cjs/types/config/constants/chains.d.ts +0 -45
- package/dist/cjs/types/config/constants/lifiRouting.d.ts +0 -2
- package/dist/cjs/types/config/constants/lists.d.ts +0 -10
- package/dist/cjs/types/config/constants/meta.d.ts +0 -11
- package/dist/cjs/types/config/constants/misc.d.ts +0 -24
- package/dist/cjs/types/config/constants/networks.d.ts +0 -2
- package/dist/cjs/types/config/constants/products.d.ts +0 -21
- package/dist/cjs/types/config/constants/providers.d.ts +0 -14
- package/dist/cjs/types/config/constants/queryKeys.d.ts +0 -18
- package/dist/cjs/types/config/constants/routing.d.ts +0 -31
- package/dist/cjs/types/config/constants/tokens.d.ts +0 -29
- package/dist/cjs/types/config/constants/tutorials.d.ts +0 -7
- package/dist/cjs/types/config/localization/languages.d.ts +0 -11
- package/dist/cjs/types/contexts/GlobalStyles.d.ts +0 -3
- package/dist/cjs/types/contexts/Localization/Provider.d.ts +0 -7
- package/dist/cjs/types/contexts/Localization/helpers.d.ts +0 -3
- package/dist/cjs/types/contexts/Localization/index.d.ts +0 -3
- package/dist/cjs/types/contexts/Localization/types.d.ts +0 -21
- package/dist/cjs/types/contexts/Localization/useTranslation.d.ts +0 -2
- package/dist/cjs/types/contexts/MatchBreakpoints.d.ts +0 -15
- package/dist/cjs/types/contexts/ModalContext.d.ts +0 -14
- package/dist/cjs/types/contexts/RefreshContext.d.ts +0 -10
- package/dist/cjs/types/hooks/useAssetLogoSource.d.ts +0 -1
- package/dist/cjs/types/hooks/useDebounce.d.ts +0 -5
- package/dist/cjs/types/hooks/useHttpLocations.d.ts +0 -1
- package/dist/cjs/types/hooks/useIsAbond.d.ts +0 -3
- package/dist/cjs/types/hooks/useIsWindowVisible.d.ts +0 -4
- package/dist/cjs/types/hooks/useIsomorphicEffect.d.ts +0 -2
- package/dist/cjs/types/hooks/useModal.d.ts +0 -3
- package/dist/cjs/types/hooks/useSelectChain.d.ts +0 -1
- package/dist/cjs/types/lib/hooks/useCurrencyLogoURIs.d.ts +0 -12
- package/dist/cjs/types/lib/utils/contenthashToUri.d.ts +0 -6
- package/dist/cjs/types/lib/utils/formatLocaleNumber.d.ts +0 -10
- package/dist/cjs/types/lib/utils/parseENSAddress.d.ts +0 -4
- package/dist/cjs/types/lib/utils/parseENSAddress.test.d.ts +0 -1
- package/dist/cjs/types/lib/utils/resolveENSContentHash.d.ts +0 -7
- package/dist/cjs/types/lib/utils/tryParseCurrencyAmount.d.ts +0 -6
- package/dist/cjs/types/lib/utils/uriToHttp.d.ts +0 -5
- package/dist/cjs/types/lib/utils/uriToHttp.test.d.ts +0 -1
- package/dist/cjs/types/state/bondsLanding/hooks/useGetBondList.d.ts +0 -3
- package/dist/cjs/types/state/bondsLanding/types.d.ts +0 -29
- package/dist/esm/types/config/constants/addresses.d.ts +0 -22
- package/dist/esm/types/config/constants/api.d.ts +0 -6
- package/dist/esm/types/config/constants/chains.d.ts +0 -45
- package/dist/esm/types/config/constants/lifiRouting.d.ts +0 -2
- package/dist/esm/types/config/constants/lists.d.ts +0 -10
- package/dist/esm/types/config/constants/meta.d.ts +0 -11
- package/dist/esm/types/config/constants/misc.d.ts +0 -24
- package/dist/esm/types/config/constants/networks.d.ts +0 -2
- package/dist/esm/types/config/constants/products.d.ts +0 -21
- package/dist/esm/types/config/constants/providers.d.ts +0 -14
- package/dist/esm/types/config/constants/queryKeys.d.ts +0 -18
- package/dist/esm/types/config/constants/routing.d.ts +0 -31
- package/dist/esm/types/config/constants/tokens.d.ts +0 -29
- package/dist/esm/types/config/constants/tutorials.d.ts +0 -7
- package/dist/esm/types/config/localization/languages.d.ts +0 -11
- package/dist/esm/types/contexts/GlobalStyles.d.ts +0 -3
- package/dist/esm/types/contexts/Localization/Provider.d.ts +0 -7
- package/dist/esm/types/contexts/Localization/helpers.d.ts +0 -3
- package/dist/esm/types/contexts/Localization/index.d.ts +0 -3
- package/dist/esm/types/contexts/Localization/types.d.ts +0 -21
- package/dist/esm/types/contexts/Localization/useTranslation.d.ts +0 -2
- package/dist/esm/types/contexts/MatchBreakpoints.d.ts +0 -15
- package/dist/esm/types/contexts/ModalContext.d.ts +0 -14
- package/dist/esm/types/contexts/RefreshContext.d.ts +0 -10
- package/dist/esm/types/hooks/useAssetLogoSource.d.ts +0 -1
- package/dist/esm/types/hooks/useDebounce.d.ts +0 -5
- package/dist/esm/types/hooks/useHttpLocations.d.ts +0 -1
- package/dist/esm/types/hooks/useIsAbond.d.ts +0 -3
- package/dist/esm/types/hooks/useIsWindowVisible.d.ts +0 -4
- package/dist/esm/types/hooks/useIsomorphicEffect.d.ts +0 -2
- package/dist/esm/types/hooks/useModal.d.ts +0 -3
- package/dist/esm/types/hooks/useSelectChain.d.ts +0 -1
- package/dist/esm/types/lib/hooks/useCurrencyLogoURIs.d.ts +0 -12
- package/dist/esm/types/lib/utils/contenthashToUri.d.ts +0 -6
- package/dist/esm/types/lib/utils/formatLocaleNumber.d.ts +0 -10
- package/dist/esm/types/lib/utils/parseENSAddress.d.ts +0 -4
- package/dist/esm/types/lib/utils/parseENSAddress.test.d.ts +0 -1
- package/dist/esm/types/lib/utils/resolveENSContentHash.d.ts +0 -7
- package/dist/esm/types/lib/utils/tryParseCurrencyAmount.d.ts +0 -6
- package/dist/esm/types/lib/utils/uriToHttp.d.ts +0 -5
- package/dist/esm/types/lib/utils/uriToHttp.test.d.ts +0 -1
- package/dist/esm/types/state/bondsLanding/hooks/useGetBondList.d.ts +0 -3
- package/dist/esm/types/state/bondsLanding/types.d.ts +0 -29
|
@@ -13,4 +13,4 @@ export declare function getEtherscanLink(data: string | number, type: 'transacti
|
|
|
13
13
|
* @param tokenImage
|
|
14
14
|
* @returns {boolean} true if the token has been added, false otherwise
|
|
15
15
|
*/
|
|
16
|
-
export declare const registerToken: (tokenAddress: string, tokenSymbol: string | undefined, tokenDecimals: number, tokenImage: string | undefined) => Promise<
|
|
16
|
+
export declare const registerToken: (tokenAddress: string, tokenSymbol: string | undefined, tokenDecimals: number, tokenImage: string | undefined) => Promise<void | null>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ConnectionType } from './connections';
|
|
3
|
+
type ConnectOptionsParams = {
|
|
4
|
+
activeConnectionType: ConnectionType | null;
|
|
5
|
+
isConnectionActive: boolean;
|
|
6
|
+
onActivate: (connectionType: ConnectionType) => void;
|
|
7
|
+
onDeactivate: (connectionType: null) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const ConnectionOptions: ({ activeConnectionType, isConnectionActive, onActivate, onDeactivate, }: ConnectOptionsParams) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ConnectionType } from './connections';
|
|
3
|
+
export declare const Option: ({ isEnabled, isConnected, connectionType, onActivate, onDeactivate, }: {
|
|
4
|
+
isEnabled: boolean;
|
|
5
|
+
isConnected: boolean;
|
|
6
|
+
connectionType: ConnectionType;
|
|
7
|
+
onActivate: (connectionType: ConnectionType) => void;
|
|
8
|
+
onDeactivate: (connectionType: null) => void;
|
|
9
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Web3ReactHooks } from '@web3-react/core';
|
|
2
|
+
import { Connector } from '@web3-react/types';
|
|
3
|
+
export interface Connection {
|
|
4
|
+
connector: Connector;
|
|
5
|
+
hooks: Web3ReactHooks;
|
|
6
|
+
type: ConnectionType;
|
|
7
|
+
}
|
|
8
|
+
export declare enum ConnectionType {
|
|
9
|
+
INJECTED = "INJECTED",
|
|
10
|
+
NETWORK = "NETWORK",
|
|
11
|
+
WALLET_CONNECT = "WALLET_CONNECT"
|
|
12
|
+
}
|
|
13
|
+
export declare function getHasMetaMaskExtensionInstalled(): boolean;
|
|
14
|
+
export declare function onConnectionError(error: Error): void;
|
|
15
|
+
export declare const PRIORITIZED_CONNECTORS: {
|
|
16
|
+
[key in ConnectionType]: Connection;
|
|
17
|
+
};
|
|
18
|
+
export declare function getConnection(c: Connector | ConnectionType): Connection;
|
|
19
|
+
export declare const switchNetwork: (chainId: number, connectionType: ConnectionType | null) => Promise<void>;
|
|
20
|
+
export declare const tryActivateConnector: (connector: Connector) => Promise<ConnectionType | undefined>;
|
|
21
|
+
export declare const tryDeactivateConnector: (connector: Connector) => Promise<null | undefined>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const INPUT_CHAIN_ID: number;
|
|
2
|
+
export declare const INPUT_CHAIN_URL: string;
|
|
3
|
+
export declare const CHAIN_TO_URL_MAP: {
|
|
4
|
+
137: string;
|
|
5
|
+
1: string;
|
|
6
|
+
};
|
|
7
|
+
type ChainInfo = {
|
|
8
|
+
explorer: string;
|
|
9
|
+
label: string;
|
|
10
|
+
nativeCurrency: {
|
|
11
|
+
name: string;
|
|
12
|
+
symbol: string;
|
|
13
|
+
decimals: 18;
|
|
14
|
+
};
|
|
15
|
+
rpcUrl: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const CHAIN_INFO: {
|
|
18
|
+
[key: string]: ChainInfo;
|
|
19
|
+
};
|
|
20
|
+
export declare const METAMASK_URL = "https://metamask.io/";
|
|
21
|
+
export {};
|
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": "1.0.
|
|
6
|
+
"version": "1.0.15",
|
|
7
7
|
"main": "dist/cjs/index.js",
|
|
8
8
|
"module": "dist/esm/index.js",
|
|
9
9
|
"files": [
|
|
@@ -45,16 +45,11 @@
|
|
|
45
45
|
"@uniswap/redux-multicall": "^1.1.8",
|
|
46
46
|
"@uniswap/token-lists": "^1.0.0-beta.31",
|
|
47
47
|
"@vitejs/plugin-react": "^4.2.1",
|
|
48
|
-
"@web3-react/
|
|
49
|
-
"@web3-react/
|
|
50
|
-
"@web3-react/
|
|
51
|
-
"@web3-react/
|
|
52
|
-
"@web3-react/
|
|
53
|
-
"@web3-react/metamask": "^8.2.1",
|
|
54
|
-
"@web3-react/network": "^8.2.0",
|
|
55
|
-
"@web3-react/types": "^8.2.0",
|
|
56
|
-
"@web3-react/url": "^8.2.0",
|
|
57
|
-
"@web3-react/walletconnect-v2": "^8.3.3",
|
|
48
|
+
"@web3-react/core": "^8.2.3",
|
|
49
|
+
"@web3-react/injected-connector": "^6.0.7",
|
|
50
|
+
"@web3-react/metamask": "^8.2.4",
|
|
51
|
+
"@web3-react/network": "^8.2.3",
|
|
52
|
+
"@web3-react/walletconnect": "^8.2.3",
|
|
58
53
|
"axios": "1.6.8",
|
|
59
54
|
"cids": "^1.1.9",
|
|
60
55
|
"eslint": "8.57.0",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
type AddressMap = {
|
|
2
|
-
[chainId: number]: string;
|
|
3
|
-
};
|
|
4
|
-
export declare const BANANA_ADDRESSES: AddressMap;
|
|
5
|
-
export declare const ABOND_ADDRESSES: AddressMap;
|
|
6
|
-
export declare const veABOND_ADDRESSES: AddressMap;
|
|
7
|
-
export declare const USDC: AddressMap;
|
|
8
|
-
export declare const V2_FACTORY_ADDRESSES: AddressMap;
|
|
9
|
-
export declare const SWAP_ROUTER_ADDRESSES: AddressMap;
|
|
10
|
-
export declare const PRICE_GETTER_ADDRESSES: AddressMap;
|
|
11
|
-
export declare const MULTICALL: AddressMap;
|
|
12
|
-
export declare const MULTICALL_V2: AddressMap;
|
|
13
|
-
export declare const GNANA_ADDRESSES: AddressMap;
|
|
14
|
-
export declare const MASTER_CHEF_V1_ADDRESS: AddressMap;
|
|
15
|
-
export declare const MASTER_CHEF_V2_ADDRESS: AddressMap;
|
|
16
|
-
export declare const MINI_APE_ADDRESS: AddressMap;
|
|
17
|
-
export declare const MASTER_CHEF: AddressMap;
|
|
18
|
-
export declare const MASTER_CHEF_V2: AddressMap;
|
|
19
|
-
export declare const LENS_CONTRACT: AddressMap;
|
|
20
|
-
export declare const LOCK_VEABOND_ADDRESSES: AddressMap;
|
|
21
|
-
export declare const FEVEABOND_CLAIM_ADDRESSES: AddressMap;
|
|
22
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const apiV2BaseUrl: string;
|
|
2
|
-
export declare const bondsRealTimeApi: string;
|
|
3
|
-
export declare const baseUrlStrapi: string;
|
|
4
|
-
export declare const mailChimpUrl: string;
|
|
5
|
-
export declare const LHD_API_TEMP = "https://lhd-temp-api.herokuapp.com";
|
|
6
|
-
export declare const LHD_API = "https://lhd-api.apeswap.finance";
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { icons } from '../../components/uikit/Svg/types';
|
|
2
|
-
export declare const AVERAGE_L1_BLOCK_TIME = 12000;
|
|
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
|
-
}
|
|
25
|
-
export declare const MAINNET_CHAINS: ChainId[];
|
|
26
|
-
export declare const DEX_ONLY_CHAINS: ChainId[];
|
|
27
|
-
export declare const CHAIN_NAMES: Record<ChainId, string>;
|
|
28
|
-
export declare const NETWORK_ICONS: Partial<Record<number, icons>>;
|
|
29
|
-
export declare const NETWORK_LABEL: Record<number, string>;
|
|
30
|
-
export declare const BLOCK_EXPLORER: Record<number, string>;
|
|
31
|
-
interface ChainParamContent {
|
|
32
|
-
chainId: string;
|
|
33
|
-
chainName: string;
|
|
34
|
-
nativeCurrency: {
|
|
35
|
-
name: string;
|
|
36
|
-
symbol: string;
|
|
37
|
-
decimals: number;
|
|
38
|
-
logo: string;
|
|
39
|
-
};
|
|
40
|
-
blockExplorerUrls: string[];
|
|
41
|
-
logoURI: string;
|
|
42
|
-
}
|
|
43
|
-
export declare const CHAIN_PARAMS: Record<ChainId, ChainParamContent>;
|
|
44
|
-
export declare const getChainInfo: (chainId: ChainId) => any;
|
|
45
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const APESWAP_LIST_REPO_BRANCH: string;
|
|
2
|
-
export declare const APESWAP_LISTS_URL: string;
|
|
3
|
-
export declare const APESWAP_LIST_REPO: string;
|
|
4
|
-
export declare const APESWAP: string;
|
|
5
|
-
export declare const LIFI = "https://li.quest/v1/tokens";
|
|
6
|
-
export declare const UNSUPPORTED_LIST_URLS: string[];
|
|
7
|
-
export declare const DEFAULT_ACTIVE_LIST_URLS: string[];
|
|
8
|
-
export declare const DEFAULT_INACTIVE_LIST_URLS: string[];
|
|
9
|
-
export declare const DEFAULT_LIST_OF_LISTS: string[];
|
|
10
|
-
export declare const APE_CHAIN_LISTS: number[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type PageMeta = {
|
|
2
|
-
title: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
image?: string;
|
|
5
|
-
favIco?: string;
|
|
6
|
-
twitterImage?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const ABOND_DEFAULT_META: PageMeta;
|
|
9
|
-
export declare const apebondCustomMeta: {
|
|
10
|
-
[key: string]: PageMeta;
|
|
11
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Percent } from '@ape.swap/sdk-core';
|
|
2
|
-
import JSBI from 'jsbi';
|
|
3
|
-
export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
4
|
-
export declare const DEFAULT_DEADLINE_FROM_NOW: number;
|
|
5
|
-
export declare const DEFAULT_TXN_DISMISS_MS = 10000;
|
|
6
|
-
export declare const BIG_INT_ZERO: JSBI;
|
|
7
|
-
export declare const BIPS_BASE: JSBI;
|
|
8
|
-
export declare const ONE_BIPS: Percent;
|
|
9
|
-
export declare const ALLOWED_PRICE_IMPACT_LOW: Percent;
|
|
10
|
-
export declare const ALLOWED_PRICE_IMPACT_MEDIUM: Percent;
|
|
11
|
-
export declare const ALLOWED_PRICE_IMPACT_HIGH: Percent;
|
|
12
|
-
export declare const PRICE_IMPACT_WITHOUT_FEE_CONFIRM_MIN: Percent;
|
|
13
|
-
export declare const BLOCKED_PRICE_IMPACT_NON_EXPERT: Percent;
|
|
14
|
-
export declare const ZERO_PERCENT: Percent;
|
|
15
|
-
export declare const ONE_HUNDRED_PERCENT: Percent;
|
|
16
|
-
export declare enum PRODUCT {
|
|
17
|
-
FARM = 0,
|
|
18
|
-
JUNGLE_FARM = 1,
|
|
19
|
-
DUAL_FARM = 2
|
|
20
|
-
}
|
|
21
|
-
export declare const BASE_EXCHANGE_URL = "https://apeswap.finance";
|
|
22
|
-
export declare const BASE_ADD_LIQUIDITY_URL = "https://apeswap.finance/add";
|
|
23
|
-
export declare const BASE_LIQUIDITY_POOL_URL = "https://apeswap.finance/pool";
|
|
24
|
-
export declare const WIDO_NATIVE_TOKEN_ID = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ChainId } from './chains';
|
|
2
|
-
export declare enum LIST_VIEW_PRODUCTS {
|
|
3
|
-
BILLS = "treasury-bills",
|
|
4
|
-
MAXIMIZERS = "maximizers",
|
|
5
|
-
JUNGLE_FARMS = "jungle-farms",
|
|
6
|
-
POOLS = "pools",
|
|
7
|
-
FARMS = "farms",
|
|
8
|
-
EARN = "earn"
|
|
9
|
-
}
|
|
10
|
-
export declare enum OTHER_PRODUCTS {
|
|
11
|
-
GNANA = "gnana",
|
|
12
|
-
MIGRATE = "migrate",
|
|
13
|
-
ZAP = "zap",
|
|
14
|
-
IAO = "iao",
|
|
15
|
-
NFA_COLLECTION = "nft",
|
|
16
|
-
NFA_AUCTION = "auction",
|
|
17
|
-
NFA_STAKING = "staking",
|
|
18
|
-
V3 = "v3"
|
|
19
|
-
}
|
|
20
|
-
export declare const AVAILABLE_CHAINS_ON_LIST_VIEW_PRODUCTS: Record<LIST_VIEW_PRODUCTS, ChainId[]>;
|
|
21
|
-
export declare const FULL_PRODUCT_NAMES: Record<LIST_VIEW_PRODUCTS | OTHER_PRODUCTS, string>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { StaticJsonRpcProvider } from '@ethersproject/providers';
|
|
2
|
-
import { ChainId } from './chains';
|
|
3
|
-
declare class AppJsonRpcProvider extends StaticJsonRpcProvider {
|
|
4
|
-
private _blockCache;
|
|
5
|
-
get blockCache(): Map<string, Promise<any>>;
|
|
6
|
-
constructor(chainId: ChainId, useApeRPC?: boolean);
|
|
7
|
-
send(method: string, params: Array<any>): Promise<any>;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* These are the only JsonRpcProviders used directly by the interface.
|
|
11
|
-
*/
|
|
12
|
-
export declare const RPC_PROVIDERS: Record<ChainId, StaticJsonRpcProvider>;
|
|
13
|
-
export declare const getProvider: (chainId: ChainId, useApeRPC?: boolean) => AppJsonRpcProvider;
|
|
14
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const QUERY_KEYS: {
|
|
2
|
-
INDUSTRY_STATS: string;
|
|
3
|
-
HISTORICAL_INDUSTRY_STATS: string;
|
|
4
|
-
LHD_PROFILES: string;
|
|
5
|
-
LHD_PROFILE: string;
|
|
6
|
-
LHD_PASSWORD_VERIFIED: string;
|
|
7
|
-
HOMEPAGE_STATS: string;
|
|
8
|
-
LIVE_AND_UPCOMING: string;
|
|
9
|
-
TVL_STATS: string;
|
|
10
|
-
TOKEN_HISTORIC: string;
|
|
11
|
-
BONDS_LANDING: string;
|
|
12
|
-
BOND_POST_REFERENCE: string;
|
|
13
|
-
BOND_RECOMMENDATIONS: string;
|
|
14
|
-
TOKEN_PRICES: string;
|
|
15
|
-
TIERS: string;
|
|
16
|
-
BOND_STATS: string;
|
|
17
|
-
HOT_BONDS: string;
|
|
18
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Currency, Token } from '@ape.swap/sdk-core';
|
|
2
|
-
type ChainTokenList = {
|
|
3
|
-
readonly [chainId: number]: Token[];
|
|
4
|
-
};
|
|
5
|
-
type ChainCurrencyList = {
|
|
6
|
-
readonly [chainId: number]: Currency[];
|
|
7
|
-
};
|
|
8
|
-
export declare const BASES_TO_CHECK_TRADES_AGAINST: ChainTokenList;
|
|
9
|
-
export declare const ADDITIONAL_BASES: {
|
|
10
|
-
[chainId: number]: {
|
|
11
|
-
[tokenAddress: string]: Token[];
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Some tokens can only be swapped via certain pairs, so we override the list of bases that are considered for these
|
|
16
|
-
* tokens.
|
|
17
|
-
*/
|
|
18
|
-
export declare const CUSTOM_BASES: {
|
|
19
|
-
[chainId: number]: {
|
|
20
|
-
[tokenAddress: string]: Token[];
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Shows up in the currency select for swap and add liquidity
|
|
25
|
-
*/
|
|
26
|
-
export declare const COMMON_BASES: ChainCurrencyList;
|
|
27
|
-
export declare const BASES_TO_TRACK_LIQUIDITY_FOR: ChainTokenList;
|
|
28
|
-
export declare const PINNED_PAIRS: {
|
|
29
|
-
readonly [chainId: number]: [Token, Token][];
|
|
30
|
-
};
|
|
31
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { NativeCurrency, Token } from '@ape.swap/sdk-core';
|
|
2
|
-
export declare const NATIVE_CHAIN_ID = "NATIVE";
|
|
3
|
-
export declare const DEFAULT_ERC20_DECIMALS = 18;
|
|
4
|
-
export declare const USDC_MAINNET: Token;
|
|
5
|
-
export declare const USDC_POLYGON: Token;
|
|
6
|
-
export declare const DAI_POLYGON: Token;
|
|
7
|
-
export declare const USDT_POLYGON: Token;
|
|
8
|
-
export declare const WBTC_POLYGON: Token;
|
|
9
|
-
export declare const AMPL: Token;
|
|
10
|
-
export declare const DAI: Token;
|
|
11
|
-
export declare const USDT: Token;
|
|
12
|
-
export declare const WBTC: Token;
|
|
13
|
-
export declare const FEI: Token;
|
|
14
|
-
export declare const TRIBE: Token;
|
|
15
|
-
export declare const FRAX: Token;
|
|
16
|
-
export declare const FXS: Token;
|
|
17
|
-
export declare const renBTC: Token;
|
|
18
|
-
export declare const ETH2X_FLI: Token;
|
|
19
|
-
export declare const sETH2: Token;
|
|
20
|
-
export declare const rETH2: Token;
|
|
21
|
-
export declare const SWISE: Token;
|
|
22
|
-
export declare const WETH_POLYGON: Token;
|
|
23
|
-
export declare const BANANA: {
|
|
24
|
-
[chainId: number]: Token;
|
|
25
|
-
};
|
|
26
|
-
export declare const WRAPPED_NATIVE_CURRENCY: {
|
|
27
|
-
[chainId: number]: Token | undefined;
|
|
28
|
-
};
|
|
29
|
-
export declare function nativeOnChain(chainId: number): NativeCurrency | Token;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SupportedChainId } from '@ape.swap/sdk-core';
|
|
2
|
-
export declare const getMetamaskLinks: (chainId: SupportedChainId) => "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
|
-
export declare const ROUTE_NAMES: Record<string, string>;
|
|
4
|
-
export declare const FARMS: Record<string, string>;
|
|
5
|
-
export declare const apebond = "https://docs.ape.bond/apebond/";
|
|
6
|
-
export declare const APEBOND_DOC_LINKS: Record<string, string>;
|
|
7
|
-
export declare const HELP_LINK: string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Language } from '../../contexts/Localization/types';
|
|
2
|
-
export declare const EN: Language;
|
|
3
|
-
export declare const ESES: Language;
|
|
4
|
-
export declare const JA: Language;
|
|
5
|
-
export declare const PTBR: Language;
|
|
6
|
-
export declare const RU: Language;
|
|
7
|
-
export declare const TR: Language;
|
|
8
|
-
export declare const ZHCN: Language;
|
|
9
|
-
export declare const ZHTW: Language;
|
|
10
|
-
export declare const languages: Record<string, Language>;
|
|
11
|
-
export declare const languageList: Language[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ContextApi } from './types';
|
|
3
|
-
export declare const languageMap: Map<string, Record<string, string>>;
|
|
4
|
-
export declare const LanguageContext: React.Context<ContextApi | undefined>;
|
|
5
|
-
export declare const LanguageProvider: ({ children }: {
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
}) => React.JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import translations from '../../config/localization/translations.json';
|
|
2
|
-
export interface Language {
|
|
3
|
-
code: string;
|
|
4
|
-
language: string;
|
|
5
|
-
locale: string;
|
|
6
|
-
}
|
|
7
|
-
export type ContextData = {
|
|
8
|
-
[key: string]: string | number;
|
|
9
|
-
};
|
|
10
|
-
export interface ProviderState {
|
|
11
|
-
isFetching: boolean;
|
|
12
|
-
currentLanguage: Language;
|
|
13
|
-
}
|
|
14
|
-
export interface ContextApi extends ProviderState {
|
|
15
|
-
setLanguage: (language: Language) => void;
|
|
16
|
-
t: TranslateFunction;
|
|
17
|
-
}
|
|
18
|
-
type MaybeObject = Record<never, never>;
|
|
19
|
-
export type TranslationKey = keyof typeof translations | (string & MaybeObject);
|
|
20
|
-
export type TranslateFunction = (key: TranslationKey, data?: ContextData) => string;
|
|
21
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type State = {
|
|
3
|
-
[key: string]: boolean;
|
|
4
|
-
};
|
|
5
|
-
export type BreakpointChecks = {
|
|
6
|
-
isMobile: boolean;
|
|
7
|
-
isTablet: boolean;
|
|
8
|
-
isDesktop: boolean;
|
|
9
|
-
} & State;
|
|
10
|
-
export declare const MatchBreakpointsContext: React.Context<BreakpointChecks>;
|
|
11
|
-
export declare const getBreakpointChecks: (state: State) => BreakpointChecks;
|
|
12
|
-
export declare const MatchBreakpointsProvider: ({ children }: {
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
}) => React.JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface ModalsContext {
|
|
3
|
-
nodeId: string[];
|
|
4
|
-
modalNode: React.ReactNode[];
|
|
5
|
-
setModalNode: React.Dispatch<React.SetStateAction<React.ReactNode[]>>;
|
|
6
|
-
onPresent: (node: React.ReactNode, newNodeId: string, clearModalStack: boolean) => void;
|
|
7
|
-
handleClose: () => void;
|
|
8
|
-
setCloseOnOverlayClick: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
-
}
|
|
10
|
-
export declare const Context: React.Context<ModalsContext>;
|
|
11
|
-
declare const ModalProvider: ({ children }: {
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
}) => React.JSX.Element;
|
|
14
|
-
export default ModalProvider;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const RefreshContext: React.Context<{
|
|
3
|
-
slow: number;
|
|
4
|
-
fast: number;
|
|
5
|
-
veryFast: number;
|
|
6
|
-
}>;
|
|
7
|
-
declare const RefreshContextProvider: React.FC<{
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
}>;
|
|
10
|
-
export { RefreshContext, RefreshContextProvider };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useAssetLogoSource(address?: string | null, chainId?: number | null, isNative?: boolean, backupImg?: string | null): [string | undefined, () => void];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useHttpLocations(uri: string | undefined | null): string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useSelectChain(): (targetChain: number) => Promise<void>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SupportedChainId } from '@ape.swap/sdk-core';
|
|
2
|
-
type Network = 'ethereum' | 'arbitrum' | 'optimism' | 'polygon';
|
|
3
|
-
export declare function chainIdToNetworkName(networkId: SupportedChainId): Network;
|
|
4
|
-
export declare function getNativeLogoURI(chainId?: SupportedChainId): string;
|
|
5
|
-
export default function useCurrencyLogoURIs(currency: {
|
|
6
|
-
isNative?: boolean;
|
|
7
|
-
isToken?: boolean;
|
|
8
|
-
address?: string;
|
|
9
|
-
chainId: number;
|
|
10
|
-
logoURI?: string | null;
|
|
11
|
-
} | null | undefined): string[];
|
|
12
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Currency, CurrencyAmount, Price } from '@ape.swap/sdk-core';
|
|
2
|
-
interface FormatLocaleNumberArgs {
|
|
3
|
-
number: CurrencyAmount<Currency> | Price<Currency, Currency> | number;
|
|
4
|
-
locale: string | null | undefined;
|
|
5
|
-
options?: Intl.NumberFormatOptions;
|
|
6
|
-
sigFigs?: number;
|
|
7
|
-
fixedDecimals?: number;
|
|
8
|
-
}
|
|
9
|
-
export default function formatLocaleNumber({ number, locale, sigFigs, fixedDecimals, options, }: FormatLocaleNumberArgs): string;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Provider } from '@ethersproject/abstract-provider';
|
|
2
|
-
/**
|
|
3
|
-
* Fetches and decodes the result of an ENS contenthash lookup on mainnet to a URI
|
|
4
|
-
* @param ensName to resolve
|
|
5
|
-
* @param provider provider to use to fetch the data
|
|
6
|
-
*/
|
|
7
|
-
export default function resolveENSContentHash(ensName: string, provider: Provider): Promise<string>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Currency, CurrencyAmount } from '@ape.swap/sdk-core';
|
|
2
|
-
/**
|
|
3
|
-
* Parses a CurrencyAmount from the passed string.
|
|
4
|
-
* Returns the CurrencyAmount, or undefined if parsing fails.
|
|
5
|
-
*/
|
|
6
|
-
export default function tryParseCurrencyAmount<T extends Currency>(value?: string, currency?: T): CurrencyAmount<T> | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|