@funkit/connect 9.16.0 → 9.18.0
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 +50 -0
- package/dist/__generated__/default_configs.d.ts +42 -0
- package/dist/components/AnimatedDollarValue/AnimatedDollarValue.d.ts +1 -1
- package/dist/components/CopyAddress/CopyAddressButton.d.ts +1 -1
- package/dist/components/CopyAddress/OldCopyAddressButton.d.ts +1 -1
- package/dist/components/FunInfoBanner/ChainInfoBanners.d.ts +1 -1
- package/dist/components/Icons/StatusIcons.d.ts +1 -1
- package/dist/domains/checkoutErrors.d.ts +22 -0
- package/dist/domains/dynamicRouting.d.ts +24 -0
- package/dist/hooks/queries/useLightningQuote.d.ts +13 -3
- package/dist/hooks/useAssetPrice.d.ts +9 -3
- package/dist/index.css +5 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2026 -1610
- package/dist/modals/CheckoutModal/CheckoutModalPrefetchedHooks.d.ts +7 -0
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -22
- package/dist/modals/CheckoutModal/InputAmount/useAaveNativeSupply.d.ts +82 -10
- package/dist/modals/CheckoutModal/LightningInvoice/LightningInvoice.d.ts +0 -1
- package/dist/modals/CheckoutModal/LightningInvoice/LightningInvoiceQrCode.d.ts +8 -0
- package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +4 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChangeLoading.d.ts +1 -1
- package/dist/modals/WithdrawalModal/ErrorMessage.d.ts +1 -1
- package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext/index.d.ts +2 -6
- package/dist/providers/FunkitCheckoutContext/types.d.ts +14 -2
- package/dist/providers/FunkitQuoteContext.d.ts +16 -0
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +14 -0
- package/dist/wagmi/actions.d.ts +1 -1
- package/dist/wagmi/chains.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +20 -20
- package/package.json +11 -11
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized "fire-and-forget" prefetches that run at modal open so
|
|
3
|
+
* downstream screens read from warm React Query cache. Hooks added here
|
|
4
|
+
* must set a `staleTime` long enough to survive modal close/reopen, or
|
|
5
|
+
* the prefetch is wasted on the next session.
|
|
6
|
+
*/
|
|
7
|
+
export declare function CheckoutModalPrefetchedHooks(): null;
|
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
import type { TFunction } from 'i18next';
|
|
2
1
|
import type { Address } from 'viem';
|
|
3
|
-
import { type
|
|
4
|
-
import type { ErrorNotification } from '../../../components/FunNotification/FunNotification';
|
|
5
|
-
export interface CheckoutConfirmationError extends ErrorNotification {
|
|
6
|
-
durationMs?: number;
|
|
7
|
-
code: ConfirmationErrorCode;
|
|
8
|
-
}
|
|
9
|
-
export declare enum ConfirmationErrorCode {
|
|
10
|
-
QUOTE_EXPIRED = "QUOTE_EXPIRED",
|
|
11
|
-
GENERIC_ERROR = "GENERIC_ERROR",
|
|
12
|
-
WITHDRAWAL_RATE_LIMIT_EXCEEDED = "WITHDRAWAL_RATE_LIMIT_EXCEEDED",
|
|
13
|
-
RISK_ERROR = "RISK_ERROR",
|
|
14
|
-
SIGNATURE_DENIED = "SIGNATURE_DENIED",
|
|
15
|
-
SWITCH_CHAIN_ERROR = "SWITCH_CHAIN_ERROR",
|
|
16
|
-
WALLET_CLIENT_UNDEFINED = "WALLET_CLIENT_UNDEFINED",
|
|
17
|
-
INSUFFICIENT_GAS = "INSUFFICIENT_GAS",
|
|
18
|
-
POLYGON_RPC_ERROR = "POLYGON_RPC_ERROR"
|
|
19
|
-
}
|
|
2
|
+
import { type CheckoutConfirmationError } from '../../../domains/checkoutErrors';
|
|
20
3
|
interface UseCheckoutConfirmationOptions {
|
|
21
4
|
onError(error: CheckoutConfirmationError): void;
|
|
22
5
|
onSuccess(depositAddress: Address): void;
|
|
@@ -27,9 +10,5 @@ interface UseCheckoutConfirmationResult {
|
|
|
27
10
|
handleCheckoutConfirmation(): Promise<void>;
|
|
28
11
|
isConfirming: boolean;
|
|
29
12
|
}
|
|
30
|
-
export declare function toCheckoutConfirmationError(t: TFunction, error: unknown, wagmiConfig: Config, options?: {
|
|
31
|
-
fromChainId?: string;
|
|
32
|
-
connector?: Connector;
|
|
33
|
-
}): Promise<CheckoutConfirmationError>;
|
|
34
13
|
export declare function useCheckoutConfirmation({ onError, onSuccess, }: UseCheckoutConfirmationOptions): UseCheckoutConfirmationResult;
|
|
35
14
|
export {};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Native-supply fast-path: same-token same-chain deposits go straight to the
|
|
3
|
+
* Aave Pool, bypassing Relay. `permitSupported` is exposed because the toggle
|
|
4
|
+
* visibility gate is in `InputAmountLoaded`, not here.
|
|
4
5
|
*/
|
|
6
|
+
import { type ERC712Signature, type SupplyRequest } from '@aave/client';
|
|
7
|
+
import type { ApiFunkitCheckoutConfig } from '@funkit/utils';
|
|
5
8
|
import type { Dnum } from 'dnum';
|
|
6
|
-
import type
|
|
7
|
-
import type
|
|
8
|
-
import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
|
|
9
|
+
import { type Address, type Hex, type WalletClient } from 'viem';
|
|
10
|
+
import { type CheckoutConfirmationError } from '../../../domains/checkoutErrors';
|
|
11
|
+
import type { FunkitActiveCheckoutItem, FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
|
|
12
|
+
import { type Config } from '../../../wagmi/hooks';
|
|
9
13
|
interface AaveNativeSupplyContextArgs {
|
|
10
14
|
apiKey: string;
|
|
11
15
|
sourceAsset: {
|
|
@@ -30,15 +34,83 @@ export declare function isAaveNativeSupplyContext({ apiKey, sourceAsset, checkou
|
|
|
30
34
|
* raw JS-number string when the Dnum isn't populated (EXACT_OUT path).
|
|
31
35
|
*/
|
|
32
36
|
export declare function formatSupplyAmount(tokenAmountBaseUnit: Dnum | null, fallbackAssetAmount: number | undefined): string;
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Base-unit string for the DE record's `fromAmountBaseUnit` /
|
|
39
|
+
* `toAmountBaseUnit`. Dnum present → `[0]` exact. Dnum null
|
|
40
|
+
* (EXACT_OUT) → derive from `assetAmount` + `decimals`. Neither →
|
|
41
|
+
* `'0'` + warn (would corrupt volume metrics).
|
|
42
|
+
*/
|
|
43
|
+
export declare function getSupplyAmountBaseUnit(tokenAmountBaseUnit: Dnum | null, fallbackAssetAmount: number | undefined, decimals: number | null): string;
|
|
44
|
+
/**
|
|
45
|
+
* Serializable checkout config persisted on the Aave native DE record.
|
|
46
|
+
* Overrides the init-time `targetAssetAmount` (undefined on this path —
|
|
47
|
+
* no Relay quote populates it) with the fresh input amount so the success
|
|
48
|
+
* screen's "You receive" doesn't read 0, and drops the non-serializable
|
|
49
|
+
* `generateActionsParams`.
|
|
50
|
+
*/
|
|
51
|
+
export declare function buildAaveNativeSupplyConfig(config: FunkitCheckoutConfig, assetAmount: number): ApiFunkitCheckoutConfig;
|
|
52
|
+
/** Upper bound on waiting for the USDT zero-reset to mine before giving up. */
|
|
53
|
+
export declare const USDT_RESET_RECEIPT_TIMEOUT_MS = 90000;
|
|
54
|
+
/**
|
|
55
|
+
* USDT's `approve` reverts on a non-zero → non-zero change — zeroing first
|
|
56
|
+
* lets the SDK's approve(amount) succeed. Same quirk handled by the
|
|
57
|
+
* VaultDepositor path (`createAaveSupplyActions`).
|
|
58
|
+
*/
|
|
59
|
+
export declare function resetUsdtAllowanceIfNeeded(wagmiConfig: Config, walletClient: WalletClient, { owner, market, currency, targetChainNum, }: {
|
|
60
|
+
owner: Address;
|
|
61
|
+
market: Address;
|
|
62
|
+
currency: Address;
|
|
63
|
+
targetChainNum: number;
|
|
64
|
+
}): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* `undefined` user preference (toggle not surfaced) defaults to
|
|
67
|
+
* permit-when-capable — preserves the auto behavior that pre-dated the toggle.
|
|
68
|
+
* An explicit `false` always wins. When `allowanceCoversAmount`, no permit is
|
|
69
|
+
* needed at all (the SDK will return a plain TransactionRequest) — skipping
|
|
70
|
+
* the signature saves the user one popup, matching aave/interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function shouldUsePermitForSupply(userPreference: boolean | undefined, reservePermitSupported: boolean | undefined, allowanceCoversAmount: boolean): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* `permitSig` presence is what drives the SDK to build a single
|
|
75
|
+
* `supplyWithPermit` tx vs an `ApprovalRequired` plan (approve + supply).
|
|
76
|
+
*/
|
|
77
|
+
export declare function buildAaveSupplyRequest({ targetChainNum, market, currency, humanAmount, walletAddress, permitSig, }: {
|
|
78
|
+
targetChainNum: number;
|
|
79
|
+
market: Address;
|
|
80
|
+
currency: Address;
|
|
81
|
+
humanAmount: string;
|
|
82
|
+
walletAddress: Address;
|
|
83
|
+
permitSig?: ERC712Signature;
|
|
84
|
+
}): SupplyRequest;
|
|
85
|
+
/** Amount inputs passed from the call site (not read from
|
|
86
|
+
* `checkoutItem`, to avoid closure staleness after `flushSync`). */
|
|
87
|
+
export interface AaveNativeSupplyAmount {
|
|
88
|
+
/** `null` in EXACT_OUT mode; see `state.ts:373`. */
|
|
89
|
+
tokenAmountBaseUnit: Dnum | null;
|
|
90
|
+
/** Call site guards `assetAmount === undefined` upstream. */
|
|
91
|
+
assetAmount: number;
|
|
92
|
+
decimals: number | null;
|
|
93
|
+
/** USD the user saw at input. `null` → `0` at the API boundary. */
|
|
94
|
+
usdAmount: number | null;
|
|
35
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Pre-fetches the on-chain ERC-20 allowance from the user to the Aave Pool, so
|
|
98
|
+
* `showApprovalMethodToggle` can hide the toggle when an existing approval
|
|
99
|
+
* already covers the supply amount (matches aave/interface's behavior — a
|
|
100
|
+
* supply that needs no approval/permit is a single tx, no toggle).
|
|
101
|
+
*/
|
|
102
|
+
export declare function useAaveTargetPoolAllowance(checkoutItem: FunkitActiveCheckoutItem | null, owner: Address | undefined): bigint | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Pre-fetches reserve permit capability so the InputAmount toggle's
|
|
105
|
+
* visibility is decidable synchronously when the user lands there.
|
|
106
|
+
*/
|
|
107
|
+
export declare function useAaveTargetReservePermit(checkoutItem: FunkitActiveCheckoutItem | null): boolean | undefined;
|
|
36
108
|
interface UseAaveNativeSupplyResult {
|
|
37
|
-
submit: (
|
|
109
|
+
submit: (amount: AaveNativeSupplyAmount) => Promise<{
|
|
38
110
|
txHash: Hex;
|
|
39
111
|
} | null>;
|
|
40
112
|
isPending: boolean;
|
|
41
|
-
error:
|
|
113
|
+
error: CheckoutConfirmationError | null;
|
|
42
114
|
}
|
|
43
|
-
export declare function useAaveNativeSupply(
|
|
115
|
+
export declare function useAaveNativeSupply(): UseAaveNativeSupplyResult;
|
|
44
116
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PaymentMethodBitcoinLightningInfo } from '../../../domains/paymentMethods';
|
|
3
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
|
-
export declare function usdToSats(usd: number | undefined, btcPrice: number | undefined): bigint | undefined;
|
|
5
4
|
export type LightningInvoiceState = CheckoutModalCommonState & {
|
|
6
5
|
paymentMethodInfo: PaymentMethodBitcoinLightningInfo;
|
|
7
6
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type BoxProps } from '../../../components/Box/Box';
|
|
3
|
+
interface LightningInvoiceQrCodeProps {
|
|
4
|
+
qrCodeUri: string | undefined;
|
|
5
|
+
marginY?: BoxProps['marginY'];
|
|
6
|
+
}
|
|
7
|
+
export declare function LightningInvoiceQrCode({ qrCodeUri, marginY, }: LightningInvoiceQrCodeProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { IndexedDynamicRoutingConfig } from '@funkit/fun-relay';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo } from '../../../domains/paymentMethods';
|
|
4
|
+
import type { AssetHoldingsItem } from '../../../domains/wallet';
|
|
3
5
|
import type { TransferTokenDefault } from '../../../hooks/useTokenAndChainDropdown';
|
|
6
|
+
import { type DynamicTargetAssetCandidate } from '../../../providers/FunkitCheckoutContext';
|
|
4
7
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
8
|
export type SelectAssetState = CheckoutModalCommonState & {
|
|
6
9
|
paymentMethodInfo: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
|
|
@@ -12,3 +15,4 @@ export type SelectAssetNext = {
|
|
|
12
15
|
};
|
|
13
16
|
export declare const SelectAssetInfo: ModalStepInfo<FunCheckoutStep.SELECT_ASSET>;
|
|
14
17
|
export declare function SelectAsset({ modalState, onNext, onClose, }: ModalStepComponentProps<FunCheckoutStep.SELECT_ASSET>): React.JSX.Element;
|
|
18
|
+
export declare function isTreatedAsNativeToken(apiKey: string, asset: AssetHoldingsItem, dynamicTargetAssetCandidates: DynamicTargetAssetCandidate[], findDynamicPath: IndexedDynamicRoutingConfig[string]['findPath']): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
2
|
import type { ErrorNotification } from '../../components/FunNotification/FunNotification';
|
|
3
|
-
import type { CheckoutConfirmationError } from '
|
|
3
|
+
import type { CheckoutConfirmationError } from '../../domains/checkoutErrors';
|
|
4
4
|
export declare function getErrorNotification(quoteErrorObject: Error | null, withdrawalError: CheckoutConfirmationError | null, targetAssetFetchError: Error | null, t: TFunction): ErrorNotification | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Address, Hex } from 'viem';
|
|
2
|
+
import { type CheckoutConfirmationError } from '../../domains/checkoutErrors';
|
|
2
3
|
import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
|
|
3
4
|
import { type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
|
|
4
|
-
import { type CheckoutConfirmationError } from '../CheckoutModal/ConfirmationStep/useCheckoutConfirmation';
|
|
5
5
|
interface UseWithdrawalResult {
|
|
6
6
|
handleWithdrawal: (withdrawal: WithdrawalFormData) => Promise<void>;
|
|
7
7
|
isWithdrawing: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { DynamicRoutePath } from '@funkit/fun-relay';
|
|
2
1
|
import React, { type ReactNode } from 'react';
|
|
3
2
|
import type { Address } from 'viem';
|
|
3
|
+
import { type ApplyDynamicRoutingPath } from '../../domains/dynamicRouting';
|
|
4
4
|
import { type PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
5
5
|
import type { AssetHoldingsItem } from '../../utils/assets';
|
|
6
6
|
import type { WithdrawalClient, WithdrawalTransaction } from '../../wallets/Wallet';
|
|
@@ -43,11 +43,7 @@ interface FunkitCheckoutContextInterface {
|
|
|
43
43
|
updateWithdrawalSourceAssetAmount(newSourceAmount: string): void;
|
|
44
44
|
resetForNewWithdrawal(): void;
|
|
45
45
|
resetForNewDeposit(): void;
|
|
46
|
-
applyDynamicRouting(path:
|
|
47
|
-
customRecipient?: FunkitCheckoutConfig['customRecipient'];
|
|
48
|
-
generateActionsParams?: FunkitCheckoutConfig['generateActionsParams'];
|
|
49
|
-
bridgeOverride?: FunkitCheckoutConfig['bridgeOverride'];
|
|
50
|
-
}): void;
|
|
46
|
+
applyDynamicRouting(path: ApplyDynamicRoutingPath): void;
|
|
51
47
|
updateDynamicRoutingId(dynamicRoutingId: string): void;
|
|
52
48
|
}
|
|
53
49
|
export type CheckoutProgressStep = 1 | 2;
|
|
@@ -11,6 +11,16 @@ export interface TokenInfo {
|
|
|
11
11
|
tokenAddress: Address;
|
|
12
12
|
tokenChainId: string;
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Argument passed to a dynamic {@link FunkitCheckoutConfig.modalTitle} resolver.
|
|
16
|
+
* Extends {@link TokenInfo} with the active dynamic routing id so titles can be
|
|
17
|
+
* keyed by route/action — not just token address — which matters when two
|
|
18
|
+
* routes share a target token (e.g. Lighter USDC perps vs spot both deposit
|
|
19
|
+
* mainnet USDC).
|
|
20
|
+
*/
|
|
21
|
+
export interface ModalTitleContext extends TokenInfo {
|
|
22
|
+
dynamicRoutingId?: string;
|
|
23
|
+
}
|
|
14
24
|
export interface DynamicTargetAssetCandidate extends TokenInfo {
|
|
15
25
|
iconSrc: string;
|
|
16
26
|
tokenSymbol: string;
|
|
@@ -63,8 +73,10 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
|
|
|
63
73
|
/** ****************************************
|
|
64
74
|
* Checkout ModalUI-related configurations *
|
|
65
75
|
*******************************************/
|
|
66
|
-
/** Title to show in the checkout modal. Defaults to "Checkout"
|
|
67
|
-
|
|
76
|
+
/** Title to show in the checkout modal. Defaults to "Checkout".
|
|
77
|
+
* The resolver receives the target token plus the active `dynamicRoutingId`,
|
|
78
|
+
* so titles can disambiguate routes that share a target token. **/
|
|
79
|
+
modalTitle?: string | ((asset: ModalTitleContext) => string);
|
|
68
80
|
/** Additional information to show in the title of the checkout modal. Blank by default **/
|
|
69
81
|
modalTitleMeta?: string;
|
|
70
82
|
/**
|
|
@@ -46,6 +46,22 @@ interface FunkitQuoteContextInterface extends CheckoutQuoteState {
|
|
|
46
46
|
preferredApprovalMethod: ApprovalMethod;
|
|
47
47
|
setPreferredApprovalMethod: (next: ApprovalMethod) => void;
|
|
48
48
|
showApprovalMethodToggle: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Per-checkout EIP-2612 permit capability of the target asset. `undefined` =
|
|
51
|
+
* unknown (loading or feature-agnostic — Relay falls back server-side), set
|
|
52
|
+
* by prefetch hooks (e.g., Aave's `useAaveTargetReservePermit`). Folded into
|
|
53
|
+
* `showApprovalMethodToggle` so consumers don't need their own asset gate.
|
|
54
|
+
*/
|
|
55
|
+
targetAssetSupportsPermit: boolean | undefined;
|
|
56
|
+
setTargetAssetSupportsPermit: (value: boolean | undefined) => void;
|
|
57
|
+
/**
|
|
58
|
+
* Current on-chain ERC-20 allowance from the user to the destination spender
|
|
59
|
+
* (e.g. the Aave Pool). When ≥ the supply amount, no approve / permit is
|
|
60
|
+
* needed and the toggle is hidden via `showApprovalMethodToggle`. `undefined`
|
|
61
|
+
* = unknown (loading or not applicable to this flow).
|
|
62
|
+
*/
|
|
63
|
+
targetAssetPoolAllowance: bigint | undefined;
|
|
64
|
+
setTargetAssetPoolAllowance: (value: bigint | undefined) => void;
|
|
49
65
|
}
|
|
50
66
|
export declare function FunkitQuoteProvider({ children }: {
|
|
51
67
|
children: ReactNode;
|
|
@@ -16,6 +16,20 @@ export type PurifiedCheckoutHistoryItem = {
|
|
|
16
16
|
createdTimeMs: number;
|
|
17
17
|
updatedTimeMs: number;
|
|
18
18
|
additionalActions: ApiFunkitCheckoutActionParams[];
|
|
19
|
+
isWithdrawal: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Customer-specific, presentation-only metadata. Kept in its own bag so
|
|
22
|
+
* customer concepts don't leak onto the shared top-level shape. Only present
|
|
23
|
+
* when there's something to surface for the item's customer.
|
|
24
|
+
*/
|
|
25
|
+
customerMetadata?: {
|
|
26
|
+
/**
|
|
27
|
+
* For Lighter withdrawal direct executions: which route was used.
|
|
28
|
+
* `'secure'` is Lighter's native bridge to mainnet (recorded as
|
|
29
|
+
* `EXTERNALLY_FULFILLED`); `'fast'` routes through Fun + Relay.
|
|
30
|
+
*/
|
|
31
|
+
lighterWithdrawalType?: 'fast' | 'secure';
|
|
32
|
+
};
|
|
19
33
|
} & ({
|
|
20
34
|
depositAddr: Address;
|
|
21
35
|
directExecution: false;
|
package/dist/wagmi/actions.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Config } from 'wagmi';
|
|
2
2
|
import { type GetBalanceParameters, type GetBalanceReturnType } from 'wagmi/actions';
|
|
3
|
-
export { estimateGas, getGasPrice, getTransaction, getWalletClient, multicall, readContract, } from 'wagmi/actions';
|
|
3
|
+
export { estimateGas, getGasPrice, getTransaction, getWalletClient, multicall, readContract, waitForTransactionReceipt, } from 'wagmi/actions';
|
|
4
4
|
export type GetBalanceReturnTypeCompat = GetBalanceReturnType & {
|
|
5
5
|
formatted: string;
|
|
6
6
|
};
|
package/dist/wagmi/chains.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { arbitrum, base, mainnet, optimism, polygon, zora
|
|
1
|
+
export { arbitrum, base, mainnet, optimism, polygon, zora } from 'wagmi/chains';
|
|
2
2
|
export type { Chain } from 'wagmi/chains';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
zealWallet
|
|
4
|
+
} from "./chunk-52QXXLDS.js";
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
7
|
} from "./chunk-SWFF3TWJ.js";
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
talismanWallet
|
|
13
13
|
} from "./chunk-4DCO3TGL.js";
|
|
14
|
-
import {
|
|
15
|
-
tokenaryWallet
|
|
16
|
-
} from "./chunk-VH3THHJY.js";
|
|
17
14
|
import {
|
|
18
15
|
tokenPocketWallet
|
|
19
16
|
} from "./chunk-WKNQMP4A.js";
|
|
17
|
+
import {
|
|
18
|
+
tokenaryWallet
|
|
19
|
+
} from "./chunk-VH3THHJY.js";
|
|
20
20
|
import {
|
|
21
21
|
trustWallet
|
|
22
22
|
} from "./chunk-KCRO2AGO.js";
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
xdefiWallet
|
|
28
28
|
} from "./chunk-JN5I3DNC.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
walletConnectWallet
|
|
31
|
+
} from "./chunk-3FCWJRI4.js";
|
|
32
32
|
import {
|
|
33
33
|
rabbyWallet
|
|
34
34
|
} from "./chunk-RB66PKPA.js";
|
|
@@ -78,8 +78,8 @@ import {
|
|
|
78
78
|
phantomWallet
|
|
79
79
|
} from "./chunk-QY53O7WG.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
foxWallet
|
|
82
|
+
} from "./chunk-GUQM4QSL.js";
|
|
83
83
|
import {
|
|
84
84
|
frontierWallet
|
|
85
85
|
} from "./chunk-AVDUNQUW.js";
|
|
@@ -92,12 +92,12 @@ import {
|
|
|
92
92
|
import {
|
|
93
93
|
imTokenWallet
|
|
94
94
|
} from "./chunk-WNAGGFMG.js";
|
|
95
|
-
import {
|
|
96
|
-
kresusWallet
|
|
97
|
-
} from "./chunk-RICTB3FA.js";
|
|
98
95
|
import {
|
|
99
96
|
injectedWallet
|
|
100
97
|
} from "./chunk-T6LGKC3F.js";
|
|
98
|
+
import {
|
|
99
|
+
kresusWallet
|
|
100
|
+
} from "./chunk-RICTB3FA.js";
|
|
101
101
|
import {
|
|
102
102
|
ledgerWallet
|
|
103
103
|
} from "./chunk-RPV27V2Y.js";
|
|
@@ -110,12 +110,12 @@ import {
|
|
|
110
110
|
import {
|
|
111
111
|
coin98Wallet
|
|
112
112
|
} from "./chunk-WAHGI5L7.js";
|
|
113
|
-
import {
|
|
114
|
-
coinbaseWallet
|
|
115
|
-
} from "./chunk-2DLDAZRH.js";
|
|
116
113
|
import {
|
|
117
114
|
coreWallet
|
|
118
115
|
} from "./chunk-4NV5BYRP.js";
|
|
116
|
+
import {
|
|
117
|
+
coinbaseWallet
|
|
118
|
+
} from "./chunk-2DLDAZRH.js";
|
|
119
119
|
import {
|
|
120
120
|
dawnWallet
|
|
121
121
|
} from "./chunk-G2PHTVL6.js";
|
|
@@ -123,14 +123,14 @@ import {
|
|
|
123
123
|
desigWallet
|
|
124
124
|
} from "./chunk-FW3WZETT.js";
|
|
125
125
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
128
|
-
import {
|
|
129
|
-
argentWallet
|
|
130
|
-
} from "./chunk-NTMBEOR2.js";
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-HBQK5RD5.js";
|
|
131
128
|
import {
|
|
132
129
|
bifrostWallet
|
|
133
130
|
} from "./chunk-IULPZP2Q.js";
|
|
131
|
+
import {
|
|
132
|
+
argentWallet
|
|
133
|
+
} from "./chunk-NTMBEOR2.js";
|
|
134
134
|
import {
|
|
135
135
|
bitgetWallet
|
|
136
136
|
} from "./chunk-TKB2OY6G.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.18.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"wagmi": ">=2.0.0 <=3.6.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@aws-sdk/client-cloudfront": "3.
|
|
49
|
-
"@aws-sdk/client-s3": "3.
|
|
48
|
+
"@aws-sdk/client-cloudfront": "3.1060.0",
|
|
49
|
+
"@aws-sdk/client-s3": "3.1057.0",
|
|
50
50
|
"@chromatic-com/storybook": "^5.1.2",
|
|
51
51
|
"@statsig/statsig-node-core": "^0.11.1",
|
|
52
52
|
"@storybook/addon-docs": "^10.3.6",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@vanilla-extract/esbuild-plugin": "^2.3.16",
|
|
62
62
|
"@vanilla-extract/private": "^1.0.7",
|
|
63
63
|
"@vanilla-extract/vite-plugin": "^5.2.2",
|
|
64
|
-
"@vitejs/plugin-react": "^
|
|
64
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
65
65
|
"autoprefixer": "^10.4.27",
|
|
66
66
|
"buffer": "^6.0.3",
|
|
67
67
|
"dotenv": "^17.2.3",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"react": "^19.0.0",
|
|
76
76
|
"storybook": "^10.3.6",
|
|
77
77
|
"stream-browserify": "^3.0.0",
|
|
78
|
-
"tsc-alias": "1.8.
|
|
79
|
-
"tsx": "^4.
|
|
78
|
+
"tsc-alias": "1.8.17",
|
|
79
|
+
"tsx": "^4.22.4",
|
|
80
80
|
"util": "^0.12.5",
|
|
81
81
|
"vite-plugin-node-polyfills": "^0.26.0",
|
|
82
82
|
"vitest": "^4.1.6",
|
|
@@ -110,10 +110,10 @@
|
|
|
110
110
|
"ua-parser-js": "^1.0.37",
|
|
111
111
|
"use-debounce": "^10.0.5",
|
|
112
112
|
"uuid": "^11.1.1",
|
|
113
|
-
"@funkit/api-base": "4.4.
|
|
113
|
+
"@funkit/api-base": "4.4.1",
|
|
114
114
|
"@funkit/chains": "1.2.0",
|
|
115
|
-
"@funkit/fun-relay": "2.
|
|
116
|
-
"@funkit/utils": "3.0.
|
|
115
|
+
"@funkit/fun-relay": "2.8.0",
|
|
116
|
+
"@funkit/utils": "3.0.2"
|
|
117
117
|
},
|
|
118
118
|
"repository": {
|
|
119
119
|
"type": "git",
|
|
@@ -131,8 +131,8 @@
|
|
|
131
131
|
"typecheck": "pnpm tsc --noEmit",
|
|
132
132
|
"typegen": "tsc --project tsconfig.build.json --emitDeclarationOnly && tsc-alias",
|
|
133
133
|
"typegen:watch": "tsc --project tsconfig.build.json --emitDeclarationOnly --watch",
|
|
134
|
-
"lint": "
|
|
135
|
-
"lint:fix": "
|
|
134
|
+
"lint": "oxlint",
|
|
135
|
+
"lint:fix": "oxlint --fix",
|
|
136
136
|
"test": "vitest",
|
|
137
137
|
"test:coverage": "vitest run --coverage",
|
|
138
138
|
"test:ui": "vitest --ui --coverage --watch",
|