@funkit/connect 9.27.0 → 9.27.1
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 +10 -0
- package/dist/clients/{chunk-F4SCUKY6.js → chunk-E36JOYL4.js} +9 -5
- package/dist/clients/{chunk-4IWQ2UT5.js → chunk-UBBBMSKL.js} +5 -2
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +2 -2
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +1 -1
- package/dist/clients/polymarket/index.js +2 -2
- package/dist/hooks/useInjectedAssetHoldings.d.ts +10 -13
- package/dist/hooks/useXstockAssetHoldings.d.ts +3 -1
- package/dist/index.js +57 -50
- package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsTransferScreen.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +44 -44
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 9.27.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2277277: Checksum the Polymarket deposit recipient (predictions/perps) so a lowercased integrator-supplied address can't cause a downstream recipient mismatch.
|
|
8
|
+
- d59ac5d: Fix a layout jump on the checkout asset list for xStock (Nado) targets by resolving the wrapper-token address once at the `useWalletAssetHoldings` seam and awaiting it, so the list paints with the wrapper already recognized. Also bumps the wrapper-address query `staleTime` to 1h.
|
|
9
|
+
- 7604174: fix(polymarket): lower Polymarket Perps minimum deposit from $10 to $5 (matches the updated `ExchangeV1.supportedAssets` on-chain minimum)
|
|
10
|
+
- Updated dependencies [7880a7b]
|
|
11
|
+
- @funkit/fun-relay@2.9.0
|
|
12
|
+
|
|
3
13
|
## 9.27.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-O5CTDT3L.js";
|
|
12
12
|
|
|
13
13
|
// src/clients/polymarket/createPolymarketDepositConfig.ts
|
|
14
|
-
import { encodeFunctionData, erc20Abi, maxUint256 } from "viem";
|
|
14
|
+
import { encodeFunctionData, erc20Abi, getAddress, maxUint256 } from "viem";
|
|
15
15
|
import { polygon } from "viem/chains";
|
|
16
16
|
var POLYMARKET_PREDICTIONS_ROUTING_ID = "POLYMARKET_PREDICTIONS";
|
|
17
17
|
var POLYMARKET_PERPS_ROUTING_ID = "POLYMARKET_PERPS";
|
|
@@ -47,7 +47,7 @@ function createPredictionsGenerateActionParams(config) {
|
|
|
47
47
|
];
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
var PERPS_MIN_DEPOSIT_USD =
|
|
50
|
+
var PERPS_MIN_DEPOSIT_USD = 5;
|
|
51
51
|
function createPolymarketDepositConfig({
|
|
52
52
|
predictions,
|
|
53
53
|
perps,
|
|
@@ -57,6 +57,8 @@ function createPolymarketDepositConfig({
|
|
|
57
57
|
}) {
|
|
58
58
|
const isPerpsRoute = (routingId) => routingId === POLYMARKET_PERPS_ROUTING_ID;
|
|
59
59
|
const defaultsToPerps = defaultAccount === "perps";
|
|
60
|
+
const predictionsRecipient = getAddress(predictions.address);
|
|
61
|
+
const perpsRecipient = getAddress(perps.address);
|
|
60
62
|
return {
|
|
61
63
|
targetChain: polygon.id.toString(),
|
|
62
64
|
targetAsset: POLYGON_USDCE,
|
|
@@ -68,13 +70,15 @@ function createPolymarketDepositConfig({
|
|
|
68
70
|
// The preselected destination (the "Deposit to" dropdown derives its
|
|
69
71
|
// selection from `dynamicRoutingId`, so both fields must agree).
|
|
70
72
|
dynamicRoutingId: defaultsToPerps ? POLYMARKET_PERPS_ROUTING_ID : POLYMARKET_PREDICTIONS_ROUTING_ID,
|
|
71
|
-
customRecipient: defaultsToPerps ?
|
|
73
|
+
customRecipient: defaultsToPerps ? perpsRecipient : predictionsRecipient,
|
|
72
74
|
modalTitle: ({ dynamicRoutingId }) => isPerpsRoute(dynamicRoutingId) ? modalTitles?.perps ?? "Deposit (Perps)" : modalTitles?.predictions ?? "Deposit (Predictions)",
|
|
73
75
|
getMinDepositUSD: ({ dynamicRoutingId }) => isPerpsRoute(dynamicRoutingId) ? PERPS_MIN_DEPOSIT_USD : 0,
|
|
74
76
|
generateActionsParams: (_targetAssetAmount, outputConfig) => isPerpsRoute(
|
|
75
77
|
outputConfig?.dynamicRoutingId
|
|
76
|
-
) ? createPerpsGenerateActionParams({
|
|
77
|
-
recipientAddress:
|
|
78
|
+
) ? createPerpsGenerateActionParams({
|
|
79
|
+
recipientAddress: perpsRecipient
|
|
80
|
+
})() : createPredictionsGenerateActionParams({
|
|
81
|
+
recipientAddress: predictionsRecipient
|
|
78
82
|
})(),
|
|
79
83
|
// Both transfer directions are integrator-owned; the step picks the source
|
|
80
84
|
// account's transfer. The accounts already have exactly the handle shape
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
POLYMARKET_PERPS_ROUTING_ID,
|
|
20
20
|
POLYMARKET_PREDICTIONS_ROUTING_ID
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-E36JOYL4.js";
|
|
22
22
|
import {
|
|
23
23
|
POLYGON_USDCE,
|
|
24
24
|
PUSD_TOKEN
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
|
|
30
30
|
// src/clients/polymarket/PolymarketDepositAccountDropdown.tsx
|
|
31
31
|
import React12 from "react";
|
|
32
|
+
import { getAddress } from "viem";
|
|
32
33
|
import { polygon } from "viem/chains";
|
|
33
34
|
|
|
34
35
|
// src/components/Dropdown/AccountSelectDropdown.tsx
|
|
@@ -1065,7 +1066,9 @@ function PolymarketDepositAccountDropdown({
|
|
|
1065
1066
|
applyDynamicTargetAssetCandidate?.(
|
|
1066
1067
|
accountCandidate(
|
|
1067
1068
|
isPerps ? POLYMARKET_PERPS_ROUTING_ID : POLYMARKET_PREDICTIONS_ROUTING_ID,
|
|
1068
|
-
|
|
1069
|
+
// Checksum so the recipient agrees with createPolymarketDepositConfig's
|
|
1070
|
+
// initial customRecipient (integrator addresses aren't guaranteed EIP-55).
|
|
1071
|
+
isPerps ? getAddress(perps.address) : getAddress(predictions.address)
|
|
1069
1072
|
)
|
|
1070
1073
|
);
|
|
1071
1074
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PolymarketDepositAccountDropdown
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-UBBBMSKL.js";
|
|
5
5
|
import "../chunk-ZEXZQOAO.js";
|
|
6
6
|
import "../chunk-VT3ERWXE.js";
|
|
7
7
|
import "../chunk-LUHEVXPD.js";
|
|
8
8
|
import "../chunk-UPZNKPYU.js";
|
|
9
9
|
import "../chunk-STLOQEN7.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-E36JOYL4.js";
|
|
11
11
|
import "../chunk-O5CTDT3L.js";
|
|
12
12
|
import "../chunk-AHYOV7AV.js";
|
|
13
13
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PolymarketDepositAccountDropdown
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-UBBBMSKL.js";
|
|
5
5
|
import "../chunk-ZEXZQOAO.js";
|
|
6
6
|
import "../chunk-VT3ERWXE.js";
|
|
7
7
|
import "../chunk-LUHEVXPD.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
POLYMARKET_PREDICTIONS_ROUTING_ID,
|
|
13
13
|
createPolymarketDepositConfig,
|
|
14
14
|
createPredictionsGenerateActionParams
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-E36JOYL4.js";
|
|
16
16
|
import {
|
|
17
17
|
AMOUNT_PLACEHOLDER,
|
|
18
18
|
COLLATERAL_ONRAMP_ABI,
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
+
import type { Address } from 'viem';
|
|
2
|
+
import type { AssetHoldingsMap } from '../domains/wallet';
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
+
* Merges payable sources the wallet-assets API doesn't index — an xStock the
|
|
5
|
+
* user holds + its wrapper — into the holdings map.
|
|
4
6
|
*
|
|
5
|
-
*
|
|
6
|
-
* already holds and can deposit directly (an xStock + its wrapper) — into the
|
|
7
|
-
* holdings map.
|
|
7
|
+
* Note: xStock/Nado-only today; possibly deprecate once backend supports these natively.
|
|
8
8
|
*
|
|
9
|
-
* - Gated by
|
|
10
|
-
*
|
|
11
|
-
* -
|
|
12
|
-
* the same map and keys can't drift across call sites.
|
|
13
|
-
* - Injects only what the API doesn't already list, so we never clobber the API's
|
|
14
|
-
* price/USD with our on-chain read. Customer/asset gating lives upstream.
|
|
9
|
+
* - Gated by `enable-rpc-xstock-assets` (off by default) → no RPC reads, nothing injected.
|
|
10
|
+
* - Single seam in `useWalletAssetHoldings` so keys can't drift across consumers.
|
|
11
|
+
* - Injects only what the API omits (never clobbers its price/USD); gating lives upstream.
|
|
15
12
|
*/
|
|
16
|
-
|
|
17
|
-
export declare function useInjectedAssetHoldings({ targetChainId, existingHoldings, }: {
|
|
13
|
+
export declare function useInjectedAssetHoldings({ targetChainId, existingHoldings, xstockWrappedTokenAddress, }: {
|
|
18
14
|
targetChainId: string;
|
|
19
15
|
existingHoldings: AssetHoldingsMap | undefined;
|
|
16
|
+
xstockWrappedTokenAddress?: Address;
|
|
20
17
|
}): {
|
|
21
18
|
holdings: AssetHoldingsMap;
|
|
22
19
|
isLoading: boolean;
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
* - Fetch only. Scoped to xStock targets (`assetClass === 'xstock'`) so we don't
|
|
6
6
|
* fire RPC reads when there's nothing to read.
|
|
7
7
|
*/
|
|
8
|
+
import type { Address } from 'viem';
|
|
8
9
|
import type { AssetHoldingsItem } from '../domains/wallet';
|
|
9
|
-
export declare function useXstockAssetHoldings({ targetChainId, enabled, }: {
|
|
10
|
+
export declare function useXstockAssetHoldings({ targetChainId, wrappedTokenAddress, enabled, }: {
|
|
10
11
|
targetChainId: string;
|
|
12
|
+
wrappedTokenAddress?: Address;
|
|
11
13
|
enabled?: boolean;
|
|
12
14
|
}): {
|
|
13
15
|
data: AssetHoldingsItem[];
|
package/dist/index.js
CHANGED
|
@@ -1683,7 +1683,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
1683
1683
|
localStorage.setItem(storageKey, version);
|
|
1684
1684
|
}
|
|
1685
1685
|
function getCurrentSdkVersion() {
|
|
1686
|
-
return "9.27.
|
|
1686
|
+
return "9.27.1";
|
|
1687
1687
|
}
|
|
1688
1688
|
function useFingerprint() {
|
|
1689
1689
|
const fingerprint = useCallback3(() => {
|
|
@@ -3968,51 +3968,10 @@ function useGetAssetHoldingsFromRpc({
|
|
|
3968
3968
|
});
|
|
3969
3969
|
}
|
|
3970
3970
|
|
|
3971
|
-
// src/hooks/useXstocksWrappedTokenAddress.ts
|
|
3972
|
-
import { getXstocksAsset, xstocksNetworkFromChainId } from "@funkit/api-base";
|
|
3973
|
-
import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
3974
|
-
function useXstocksWrappedTokenAddress({ enabled = true } = {}) {
|
|
3975
|
-
const { checkoutItem } = useCheckoutContext();
|
|
3976
|
-
const { apiKey } = useFunkitConfig();
|
|
3977
|
-
const config = checkoutItem?.initSettings.config;
|
|
3978
|
-
const targetChain = config?.targetChain;
|
|
3979
|
-
const ticker = config?.targetAssetTicker;
|
|
3980
|
-
const isXstockTarget = isXStockTargetAsset(
|
|
3981
|
-
getActiveDynamicTargetAsset(config)
|
|
3982
|
-
);
|
|
3983
|
-
const network = targetChain ? xstocksNetworkFromChainId(targetChain) : void 0;
|
|
3984
|
-
const isEnabled = enabled && isXstockTarget && !!targetChain && !!ticker && !!network;
|
|
3985
|
-
const { data, isLoading } = useQuery7({
|
|
3986
|
-
queryKey: ["nadoTargetWrappedTokenAddress", targetChain, ticker],
|
|
3987
|
-
enabled: isEnabled,
|
|
3988
|
-
// Wrapped token address is effectively immutable; cache aggressively.
|
|
3989
|
-
staleTime: 5 * 60 * 1e3,
|
|
3990
|
-
retry: false,
|
|
3991
|
-
queryFn: async () => {
|
|
3992
|
-
if (!ticker || !network) {
|
|
3993
|
-
return null;
|
|
3994
|
-
}
|
|
3995
|
-
const symbol = parseXstocksSymbolFromTicker(ticker);
|
|
3996
|
-
const asset = await getXstocksAsset({ symbol, network, logger, apiKey });
|
|
3997
|
-
const deployment = asset.deployments?.find(
|
|
3998
|
-
(d) => d.network?.toLowerCase() === network.toLowerCase()
|
|
3999
|
-
);
|
|
4000
|
-
const wrappedTokenAddress = deployment?.wrapperAddressV2;
|
|
4001
|
-
logger.info("nadoTargetWrappedToken:resolved", {
|
|
4002
|
-
ticker,
|
|
4003
|
-
targetChain,
|
|
4004
|
-
network,
|
|
4005
|
-
hasWrappedToken: !!wrappedTokenAddress
|
|
4006
|
-
});
|
|
4007
|
-
return wrappedTokenAddress ? wrappedTokenAddress : null;
|
|
4008
|
-
}
|
|
4009
|
-
});
|
|
4010
|
-
return { data: data ?? void 0, isLoading };
|
|
4011
|
-
}
|
|
4012
|
-
|
|
4013
3971
|
// src/hooks/useXstockAssetHoldings.ts
|
|
4014
3972
|
function useXstockAssetHoldings({
|
|
4015
3973
|
targetChainId,
|
|
3974
|
+
wrappedTokenAddress,
|
|
4016
3975
|
enabled = true
|
|
4017
3976
|
}) {
|
|
4018
3977
|
const { checkoutItem } = useCheckoutContext();
|
|
@@ -4023,7 +3982,6 @@ function useXstockAssetHoldings({
|
|
|
4023
3982
|
const ticker = parseXstocksSymbolFromTicker(config?.targetAssetTicker ?? "");
|
|
4024
3983
|
const dynamicTargetAsset = getActiveDynamicTargetAsset(config);
|
|
4025
3984
|
const isEnabled = enabled && !!walletAddress && !!targetAsset && !!targetChain && targetChain === targetChainId && !!isXStockTargetAsset(dynamicTargetAsset);
|
|
4026
|
-
const { data: wrappedTokenAddress, isLoading: isWrappedTokenAddressLoading } = useXstocksWrappedTokenAddress({ enabled: isEnabled });
|
|
4027
3985
|
const targetTokenQuery = useGetAssetHoldingsFromRpc({
|
|
4028
3986
|
chainId: targetChain,
|
|
4029
3987
|
tokenAddress: targetAsset,
|
|
@@ -4049,7 +4007,7 @@ function useXstockAssetHoldings({
|
|
|
4049
4007
|
);
|
|
4050
4008
|
return {
|
|
4051
4009
|
data,
|
|
4052
|
-
isLoading: targetTokenQuery.isLoading || wrappedTokenQuery.isLoading
|
|
4010
|
+
isLoading: targetTokenQuery.isLoading || wrappedTokenQuery.isLoading
|
|
4053
4011
|
};
|
|
4054
4012
|
}
|
|
4055
4013
|
|
|
@@ -4057,11 +4015,13 @@ function useXstockAssetHoldings({
|
|
|
4057
4015
|
var EMPTY_HOLDINGS = {};
|
|
4058
4016
|
function useInjectedAssetHoldings({
|
|
4059
4017
|
targetChainId,
|
|
4060
|
-
existingHoldings
|
|
4018
|
+
existingHoldings,
|
|
4019
|
+
xstockWrappedTokenAddress
|
|
4061
4020
|
}) {
|
|
4062
4021
|
const isEnabled = useFeatureGate("enable-rpc-xstock-assets");
|
|
4063
4022
|
const { data: injectableHoldings, isLoading } = useXstockAssetHoldings({
|
|
4064
4023
|
targetChainId,
|
|
4024
|
+
wrappedTokenAddress: xstockWrappedTokenAddress,
|
|
4065
4025
|
enabled: isEnabled
|
|
4066
4026
|
});
|
|
4067
4027
|
const holdings = useMemo13(() => {
|
|
@@ -4084,7 +4044,49 @@ function useInjectedAssetHoldings({
|
|
|
4084
4044
|
}
|
|
4085
4045
|
return injected2;
|
|
4086
4046
|
}, [isEnabled, injectableHoldings, existingHoldings]);
|
|
4087
|
-
return { holdings, isLoading
|
|
4047
|
+
return { holdings, isLoading };
|
|
4048
|
+
}
|
|
4049
|
+
|
|
4050
|
+
// src/hooks/useXstocksWrappedTokenAddress.ts
|
|
4051
|
+
import { getXstocksAsset, xstocksNetworkFromChainId } from "@funkit/api-base";
|
|
4052
|
+
import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
4053
|
+
function useXstocksWrappedTokenAddress({ enabled = true } = {}) {
|
|
4054
|
+
const { checkoutItem } = useCheckoutContext();
|
|
4055
|
+
const { apiKey } = useFunkitConfig();
|
|
4056
|
+
const config = checkoutItem?.initSettings.config;
|
|
4057
|
+
const targetChain = config?.targetChain;
|
|
4058
|
+
const ticker = config?.targetAssetTicker;
|
|
4059
|
+
const isXstockTarget = isXStockTargetAsset(
|
|
4060
|
+
getActiveDynamicTargetAsset(config)
|
|
4061
|
+
);
|
|
4062
|
+
const network = targetChain ? xstocksNetworkFromChainId(targetChain) : void 0;
|
|
4063
|
+
const isEnabled = enabled && isXstockTarget && !!targetChain && !!ticker && !!network;
|
|
4064
|
+
const { data, isLoading } = useQuery7({
|
|
4065
|
+
queryKey: ["nadoTargetWrappedTokenAddress", targetChain, ticker],
|
|
4066
|
+
enabled: isEnabled,
|
|
4067
|
+
// Wrapped token address is effectively immutable
|
|
4068
|
+
staleTime: 60 * 60 * 1e3,
|
|
4069
|
+
retry: false,
|
|
4070
|
+
queryFn: async () => {
|
|
4071
|
+
if (!ticker || !network) {
|
|
4072
|
+
return null;
|
|
4073
|
+
}
|
|
4074
|
+
const symbol = parseXstocksSymbolFromTicker(ticker);
|
|
4075
|
+
const asset = await getXstocksAsset({ symbol, network, logger, apiKey });
|
|
4076
|
+
const deployment = asset.deployments?.find(
|
|
4077
|
+
(d) => d.network?.toLowerCase() === network.toLowerCase()
|
|
4078
|
+
);
|
|
4079
|
+
const wrappedTokenAddress = deployment?.wrapperAddressV2;
|
|
4080
|
+
logger.info("nadoTargetWrappedToken:resolved", {
|
|
4081
|
+
ticker,
|
|
4082
|
+
targetChain,
|
|
4083
|
+
network,
|
|
4084
|
+
hasWrappedToken: !!wrappedTokenAddress
|
|
4085
|
+
});
|
|
4086
|
+
return wrappedTokenAddress ? wrappedTokenAddress : null;
|
|
4087
|
+
}
|
|
4088
|
+
});
|
|
4089
|
+
return { data: data ?? void 0, isLoading };
|
|
4088
4090
|
}
|
|
4089
4091
|
|
|
4090
4092
|
// src/hooks/useWalletAssetHoldings.ts
|
|
@@ -4160,9 +4162,14 @@ function useWalletAssetHoldings(targetChain) {
|
|
|
4160
4162
|
() => processWalletAssets(walletAssets, targetChain, isStablecoin),
|
|
4161
4163
|
[targetChain, walletAssets, isStablecoin]
|
|
4162
4164
|
);
|
|
4163
|
-
const {
|
|
4165
|
+
const {
|
|
4166
|
+
data: xstockWrappedTokenAddress,
|
|
4167
|
+
isLoading: isLoadingXstockWrappedTokenAddress
|
|
4168
|
+
} = useXstocksWrappedTokenAddress();
|
|
4169
|
+
const { holdings: injectedHoldings, isLoading: isLoadingInjectedAssets } = useInjectedAssetHoldings({
|
|
4164
4170
|
targetChainId: targetChain,
|
|
4165
|
-
existingHoldings: processedAssets
|
|
4171
|
+
existingHoldings: processedAssets,
|
|
4172
|
+
xstockWrappedTokenAddress
|
|
4166
4173
|
});
|
|
4167
4174
|
const holdings = useMemo14(() => {
|
|
4168
4175
|
const hasInjected = Object.keys(injectedHoldings).length > 0;
|
|
@@ -4213,7 +4220,7 @@ function useWalletAssetHoldings(targetChain) {
|
|
|
4213
4220
|
]);
|
|
4214
4221
|
return {
|
|
4215
4222
|
data: holdings,
|
|
4216
|
-
isLoading: isLoading || isAllowedAssetsLoading ||
|
|
4223
|
+
isLoading: isLoading || isAllowedAssetsLoading || isLoadingInjectedAssets || isLoadingXstockWrappedTokenAddress,
|
|
4217
4224
|
totalBalance: totalWalletAssetsUsd,
|
|
4218
4225
|
hasUsableBalance,
|
|
4219
4226
|
minValueThreshold
|
|
@@ -14,7 +14,7 @@ export interface PolymarketPerpsTransferScreenProps {
|
|
|
14
14
|
* below-minimum notice when the destination is Predictions. */
|
|
15
15
|
predictionsMinTransferUsd?: number;
|
|
16
16
|
/** Minimum pUSD to transfer *into* perps (USD). Drives the below-minimum
|
|
17
|
-
* notice when the destination is Perps (e.g. perps'
|
|
17
|
+
* notice when the destination is Perps (e.g. perps' 5 pUSD minimum). */
|
|
18
18
|
perpsMinTransferUsd?: number;
|
|
19
19
|
/** Initial transfer direction. Defaults to Predictions → Perps. */
|
|
20
20
|
initialDirection?: PerpsTransferDirection;
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
kresusWallet
|
|
7
|
-
} from "./chunk-RICTB3FA.js";
|
|
3
|
+
imTokenWallet
|
|
4
|
+
} from "./chunk-WNAGGFMG.js";
|
|
8
5
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
6
|
+
injectedWallet
|
|
7
|
+
} from "./chunk-T6LGKC3F.js";
|
|
11
8
|
import {
|
|
12
9
|
tokenPocketWallet
|
|
13
10
|
} from "./chunk-WKNQMP4A.js";
|
|
14
|
-
import {
|
|
15
|
-
tokenaryWallet
|
|
16
|
-
} from "./chunk-VH3THHJY.js";
|
|
17
11
|
import {
|
|
18
12
|
trustWallet
|
|
19
13
|
} from "./chunk-KCRO2AGO.js";
|
|
14
|
+
import {
|
|
15
|
+
tokenaryWallet
|
|
16
|
+
} from "./chunk-VH3THHJY.js";
|
|
20
17
|
import {
|
|
21
18
|
uniswapWallet
|
|
22
19
|
} from "./chunk-Z3PPW6NC.js";
|
|
@@ -30,11 +27,8 @@ import {
|
|
|
30
27
|
zealWallet
|
|
31
28
|
} from "./chunk-52QXXLDS.js";
|
|
32
29
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
roninWallet
|
|
37
|
-
} from "./chunk-YQFGVZGR.js";
|
|
30
|
+
zerionWallet
|
|
31
|
+
} from "./chunk-SWFF3TWJ.js";
|
|
38
32
|
import {
|
|
39
33
|
safeWallet
|
|
40
34
|
} from "./chunk-RCY66YHF.js";
|
|
@@ -45,14 +39,20 @@ import {
|
|
|
45
39
|
safepalWallet
|
|
46
40
|
} from "./chunk-XCNHV3HS.js";
|
|
47
41
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-W2LCLDPX.js";
|
|
44
|
+
import {
|
|
45
|
+
ramperWallet
|
|
46
|
+
} from "./chunk-OQB55QXP.js";
|
|
50
47
|
import {
|
|
51
48
|
subWallet
|
|
52
49
|
} from "./chunk-NR2OGDHQ.js";
|
|
53
50
|
import {
|
|
54
51
|
tahoWallet
|
|
55
52
|
} from "./chunk-7ZYCBDQ4.js";
|
|
53
|
+
import {
|
|
54
|
+
talismanWallet
|
|
55
|
+
} from "./chunk-4DCO3TGL.js";
|
|
56
56
|
import {
|
|
57
57
|
oktoWallet
|
|
58
58
|
} from "./chunk-YWOVAU6O.js";
|
|
@@ -75,8 +75,11 @@ import {
|
|
|
75
75
|
rabbyWallet
|
|
76
76
|
} from "./chunk-RB66PKPA.js";
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
roninWallet
|
|
79
|
+
} from "./chunk-YQFGVZGR.js";
|
|
80
|
+
import {
|
|
81
|
+
frameWallet
|
|
82
|
+
} from "./chunk-BU3ZAT5X.js";
|
|
80
83
|
import {
|
|
81
84
|
frontierWallet
|
|
82
85
|
} from "./chunk-AVDUNQUW.js";
|
|
@@ -84,65 +87,62 @@ import {
|
|
|
84
87
|
gateWallet
|
|
85
88
|
} from "./chunk-JPN6TWIT.js";
|
|
86
89
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
90
|
+
enkryptWallet
|
|
91
|
+
} from "./chunk-HBQK5RD5.js";
|
|
89
92
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
93
|
+
kresusWallet
|
|
94
|
+
} from "./chunk-RICTB3FA.js";
|
|
92
95
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
96
|
+
metaMaskWallet
|
|
97
|
+
} from "./chunk-YO2K4MBH.js";
|
|
95
98
|
import {
|
|
96
99
|
ledgerWallet
|
|
97
100
|
} from "./chunk-RPV27V2Y.js";
|
|
98
|
-
import {
|
|
99
|
-
metaMaskWallet
|
|
100
|
-
} from "./chunk-YO2K4MBH.js";
|
|
101
101
|
import {
|
|
102
102
|
mewWallet
|
|
103
103
|
} from "./chunk-MQM45ADF.js";
|
|
104
104
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
105
|
+
clvWallet
|
|
106
|
+
} from "./chunk-OEEGYENV.js";
|
|
107
|
+
import {
|
|
108
|
+
bitskiWallet
|
|
109
|
+
} from "./chunk-7HRFUZFX.js";
|
|
107
110
|
import {
|
|
108
111
|
coinbaseWallet
|
|
109
112
|
} from "./chunk-2DLDAZRH.js";
|
|
113
|
+
import {
|
|
114
|
+
coin98Wallet
|
|
115
|
+
} from "./chunk-WAHGI5L7.js";
|
|
110
116
|
import {
|
|
111
117
|
coreWallet
|
|
112
118
|
} from "./chunk-4NV5BYRP.js";
|
|
113
|
-
import {
|
|
114
|
-
clvWallet
|
|
115
|
-
} from "./chunk-OEEGYENV.js";
|
|
116
119
|
import {
|
|
117
120
|
desigWallet
|
|
118
121
|
} from "./chunk-FW3WZETT.js";
|
|
119
|
-
import {
|
|
120
|
-
foxWallet
|
|
121
|
-
} from "./chunk-GUQM4QSL.js";
|
|
122
122
|
import {
|
|
123
123
|
dawnWallet
|
|
124
124
|
} from "./chunk-G2PHTVL6.js";
|
|
125
125
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
128
|
-
import {
|
|
129
|
-
bifrostWallet
|
|
130
|
-
} from "./chunk-IULPZP2Q.js";
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-GUQM4QSL.js";
|
|
131
128
|
import {
|
|
132
129
|
argentWallet
|
|
133
130
|
} from "./chunk-NTMBEOR2.js";
|
|
131
|
+
import {
|
|
132
|
+
bifrostWallet
|
|
133
|
+
} from "./chunk-IULPZP2Q.js";
|
|
134
134
|
import {
|
|
135
135
|
bitgetWallet
|
|
136
136
|
} from "./chunk-TKB2OY6G.js";
|
|
137
|
-
import {
|
|
138
|
-
bitskiWallet
|
|
139
|
-
} from "./chunk-7HRFUZFX.js";
|
|
140
137
|
import {
|
|
141
138
|
bitverseWallet
|
|
142
139
|
} from "./chunk-NSK6A7TI.js";
|
|
143
140
|
import {
|
|
144
141
|
bloomWallet
|
|
145
142
|
} from "./chunk-PJ7Y57EH.js";
|
|
143
|
+
import {
|
|
144
|
+
bybitWallet
|
|
145
|
+
} from "./chunk-OX37G4YT.js";
|
|
146
146
|
import "./chunk-N4IJLYFY.js";
|
|
147
147
|
import {
|
|
148
148
|
braveWallet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "9.27.
|
|
3
|
+
"version": "9.27.1",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@funkit/api-base": "5.1.0",
|
|
115
115
|
"@funkit/chains": "2.1.1",
|
|
116
116
|
"@funkit/connect-core": "1.4.1",
|
|
117
|
-
"@funkit/fun-relay": "2.
|
|
117
|
+
"@funkit/fun-relay": "2.9.0",
|
|
118
118
|
"@funkit/utils": "3.1.0"
|
|
119
119
|
},
|
|
120
120
|
"repository": {
|