@funkit/connect 6.11.0 → 6.12.2
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/CHANGELOG.md +30 -0
- package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +5 -1
- package/dist/components/Dropdown/TokenDropdown.d.ts +5 -1
- package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +2 -1
- package/dist/domains/asset.d.ts +4 -0
- package/dist/domains/paymentMethods.d.ts +0 -2
- package/dist/index.js +3411 -4269
- package/dist/providers/FunkitFlagsProvider.d.ts +2 -1
- package/dist/providers/FunkitMoonpayProvider.d.ts +5 -1
- package/dist/utils/flags/config.d.ts +2 -18
- package/dist/utils/flags/impl.d.ts +1 -294
- package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +13 -2
- package/dist/utils/funLogger.d.ts +1 -3
- package/dist/wallets/walletConnectors/index.js +55 -55
- package/package.json +6 -8
- package/dist/components/FunSelectBrokerage/FunBrokerageItem.css.d.ts +0 -1
- package/dist/components/FunSelectBrokerage/FunBrokerageItem.d.ts +0 -9
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +0 -10
- package/dist/consts/mesh.d.ts +0 -77
- package/dist/providers/FunkitMeshProvider.d.ts +0 -11
- package/dist/utils/mesh.d.ts +0 -24
package/dist/consts/mesh.d.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export declare const FUNKIT_MESH_CLIENT_ID = "8132aff4-56c9-4b1d-85b4-08dbdcc6199d";
|
|
2
|
-
/**
|
|
3
|
-
* TODO: This is only useful to map exchange names in existing feature flags to the corresponding exchange types.
|
|
4
|
-
* If/when we decide to fully remove that support, this enum and getExchangeTypeFromName below can be removed.
|
|
5
|
-
* Mesh-provided brokerName
|
|
6
|
-
* @deprecated Use MeshExchangeType instead
|
|
7
|
-
*/
|
|
8
|
-
export declare enum MeshExchangeName {
|
|
9
|
-
Robinhood = "Robinhood",
|
|
10
|
-
ETrade = "ETrade",
|
|
11
|
-
Alpaca = "Alpaca",
|
|
12
|
-
WeBull = "WeBull",
|
|
13
|
-
Stash = "Stash",
|
|
14
|
-
InteractiveBrokers = "InteractiveBrokers",
|
|
15
|
-
Public = "Public",
|
|
16
|
-
Coinbase = "Coinbase",
|
|
17
|
-
Kraken = "Kraken",
|
|
18
|
-
CoinbasePro = "CoinbasePro",
|
|
19
|
-
CryptoCom = "CryptoCom",
|
|
20
|
-
Binance = "Binance",// BinanceInternationalDirect
|
|
21
|
-
BinanceUs = "BinanceUs",
|
|
22
|
-
Gemini = "Gemini",
|
|
23
|
-
OkCoin = "OkCoin",
|
|
24
|
-
KuCoin = "KuCoin",
|
|
25
|
-
Etoro = "Etoro",
|
|
26
|
-
CexIo = "CexIo",
|
|
27
|
-
Bitstamp = "Bitstamp",
|
|
28
|
-
GateIo = "GateIo",
|
|
29
|
-
Acorns = "Acorns",
|
|
30
|
-
Okx = "OKX",
|
|
31
|
-
BitFlyer = "BitFlyer",
|
|
32
|
-
Coinlist = "Coinlist",
|
|
33
|
-
Huobi = "Huobi",
|
|
34
|
-
Bitfinex = "Bitfinex",
|
|
35
|
-
KrakenDirect = "KrakenDirect",
|
|
36
|
-
Vanguard = "Vanguard",
|
|
37
|
-
BitfinexDirect = "Bitfinex (beta)",
|
|
38
|
-
Bybit = "Bybit"
|
|
39
|
-
}
|
|
40
|
-
/** A subset of Mesh-provided brokerType */
|
|
41
|
-
export declare enum MeshExchangeType {
|
|
42
|
-
Robinhood = "robinhood",
|
|
43
|
-
ETrade = "eTrade",
|
|
44
|
-
Alpaca = "alpaca",
|
|
45
|
-
WeBull = "weBull",
|
|
46
|
-
Stash = "stash",
|
|
47
|
-
InteractiveBrokers = "interactiveBrokers",
|
|
48
|
-
Public = "public",
|
|
49
|
-
Coinbase = "coinbase",
|
|
50
|
-
Kraken = "kraken",
|
|
51
|
-
CryptoCom = "cryptoCom",
|
|
52
|
-
CoinbasePro = "coinbasePro",
|
|
53
|
-
Gemini = "gemini",
|
|
54
|
-
Binance = "binanceInternationalDirect",
|
|
55
|
-
BinanceUs = "binanceUs",
|
|
56
|
-
OkCoin = "okCoin",
|
|
57
|
-
Etoro = "etoro",
|
|
58
|
-
KuCoin = "kuCoin",
|
|
59
|
-
CexIo = "cexIo",
|
|
60
|
-
GateIo = "gateIo",
|
|
61
|
-
Bitstamp = "bitstamp",
|
|
62
|
-
Okx = "okxOAuth",// not okx!
|
|
63
|
-
Acorns = "acorns",
|
|
64
|
-
Coinlist = "coinlist",
|
|
65
|
-
BitFlyer = "bitFlyer",
|
|
66
|
-
Bitfinex = "bitfinex",
|
|
67
|
-
Huobi = "huobi",
|
|
68
|
-
KrakenDirect = "krakenDirect",
|
|
69
|
-
Vanguard = "vanguard",
|
|
70
|
-
Bybit = "bybit",
|
|
71
|
-
BitfinexDirect = "bitfinexDirect"
|
|
72
|
-
}
|
|
73
|
-
export declare function getExchangeIcon(brokerType: MeshExchangeType, size: number): JSX.Element | null;
|
|
74
|
-
export declare function getExchangeName(brokerType: MeshExchangeType): string;
|
|
75
|
-
export declare function isMeshExchangeType(value: string): value is MeshExchangeType;
|
|
76
|
-
/** @deprecated */
|
|
77
|
-
export declare function getExchangeTypeFromName(brokerName: string): MeshExchangeType | undefined;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
2
|
-
import type { MeshExchangeType } from '~/consts/mesh';
|
|
3
|
-
export interface MeshConnectionInfo {
|
|
4
|
-
accessToken: string;
|
|
5
|
-
accountId: string;
|
|
6
|
-
brokerType: MeshExchangeType;
|
|
7
|
-
}
|
|
8
|
-
export declare function FunkitMeshProvider({ children }: {
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
}): React.JSX.Element;
|
|
11
|
-
export declare function getMeshDeviceIdFromLocalStorage(): string | null;
|
package/dist/utils/mesh.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type TransferIntegration } from '@funkit/api-base';
|
|
2
|
-
import type { MeshExchangeType } from '../consts/mesh';
|
|
3
|
-
import type { AssetHoldingsMap } from '../utils/assets';
|
|
4
|
-
export { FUNKIT_MESH_CLIENT_ID } from '../consts/mesh';
|
|
5
|
-
export declare const MIN_MESH_TRANSFER_AMOUNT_USD = 10;
|
|
6
|
-
export declare function fetchMeshLinkToken(funkitUserId: string, brokerType: MeshExchangeType, funApiKey: string): Promise<import("@funkit/api-base").GetLinkTokenResponse>;
|
|
7
|
-
export declare function fetchMeshTransferIntegrations(apiKey: string): Promise<TransferIntegration[]>;
|
|
8
|
-
export declare function getMeshSupportedTokensAndIdByChainIdAndBrokerage({ brokerType, chainId, integrations, }: {
|
|
9
|
-
brokerType: MeshExchangeType;
|
|
10
|
-
chainId: string;
|
|
11
|
-
integrations: TransferIntegration[];
|
|
12
|
-
}): {
|
|
13
|
-
meshSupportedTokens: string[];
|
|
14
|
-
meshNetworkId: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
interface MeshAccountInfo {
|
|
17
|
-
apiKey: string;
|
|
18
|
-
deviceId: string;
|
|
19
|
-
brokerType: MeshExchangeType;
|
|
20
|
-
integrations: TransferIntegration[];
|
|
21
|
-
targetChain: string;
|
|
22
|
-
authToken: string;
|
|
23
|
-
}
|
|
24
|
-
export declare function fetchMeshAccountHoldingsMap(info: MeshAccountInfo, enableFrogProxyServer?: boolean): Promise<AssetHoldingsMap>;
|