@funkit/connect 1.0.4 → 1.0.6
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 +42 -0
- package/dist/components/Box/Box.d.ts +7 -7
- package/dist/components/ConnectButton/ConnectButton.d.ts +3 -1
- package/dist/components/FunAssetAvatar/FunAssetAvatar.d.ts +3 -2
- package/dist/components/FunBadge/FunBadge.d.ts +4 -0
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +1 -2
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +2 -1
- package/dist/components/FunCheckoutModal/FunCheckoutModal.d.ts +1 -1
- package/dist/components/FunDivider/FunDivider.d.ts +2 -1
- package/dist/components/FunDot/FunDot.d.ts +2 -0
- package/dist/components/FunNotification/FunNotification.d.ts +2 -2
- package/dist/components/FunSelect/FunSelect.d.ts +1 -0
- package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +2 -1
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +16 -16
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +22 -3
- package/dist/components/FunkitProvider/FunkitMeshProvider.d.ts +20 -0
- package/dist/components/FunkitProvider/ModalContext.d.ts +1 -1
- package/dist/consts/funkit.d.ts +1 -0
- package/dist/consts/quote.d.ts +13 -0
- package/dist/css/sprinkles.css.d.ts +7 -7
- package/dist/hooks/useCheckoutQuoteNotification.d.ts +7 -0
- package/dist/hooks/useCheckoutType.d.ts +4 -2
- package/dist/hooks/useFunListeners.d.ts +1 -1
- package/dist/index.css +1380 -1340
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2833 -2290
- package/dist/utils/checkout.d.ts +1 -1
- package/dist/utils/checkoutFees.d.ts +27 -0
- package/dist/utils/formatNumber.d.ts +1 -0
- package/dist/utils/formatTimestamp.d.ts +11 -0
- package/dist/utils/mesh.d.ts +1 -0
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.js +2 -1
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +80 -80
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/dist/zetachain-WXXDOYLF.js +6 -0
- package/package.json +3 -3
- package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
- package/dist/wallets/walletConnectors/chunk-2XQJ2NQ4.js +0 -178
- package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +0 -95
- package/dist/wallets/walletConnectors/chunk-AJKRYTH2.js +0 -92
- package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +0 -105
- package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
- package/dist/wallets/walletConnectors/chunk-CVGDYGHA.js +0 -60
- package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +0 -96
- package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
- package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +0 -98
- package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
- package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +0 -71
- package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
- package/dist/wallets/walletConnectors/chunk-OKZSWAPF.js +0 -60
- package/dist/wallets/walletConnectors/chunk-OYKWP3N3.js +0 -60
- package/dist/wallets/walletConnectors/chunk-OYW4TIA3.js +0 -81
- package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +0 -73
- package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
- package/dist/wallets/walletConnectors/chunk-RYO26XSK.js +0 -100
- package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
- package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +0 -94
- package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +0 -102
- package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
- package/dist/wallets/walletConnectors/{chunk-PPFSHJTA.js → chunk-2UXZAUWT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-XRMAVTK7.js → chunk-3WZRNEZH.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MU35GKP3.js → chunk-6LTLPR2Q.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MCTPLICE.js → chunk-7CQPABJG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-SPLW3CCH.js → chunk-AM4SSLAP.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2LY3WMXK.js → chunk-NGXIHASN.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-DNOEX5NF.js → chunk-O5NKWWEG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HXYRONSJ.js → chunk-V45EXW7A.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZFXXHGAS.js → chunk-Z2DGDHHZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2B3SPBRY.js → chunk-ZNXQ4V6G.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 1.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9f5f122: feat: quote load order and progress message
|
|
8
|
+
- 04c4172: feat: eoa checkout full support
|
|
9
|
+
- c96f167: feat: customRecipient guardrails
|
|
10
|
+
- e8ae62d: fix: wmatic to matic conversion
|
|
11
|
+
- 978a15c: feat: checkout fees restructuring
|
|
12
|
+
- edb008b: feat: new allowBrokerageUnlinking config in funkitConfig
|
|
13
|
+
- 18737fb: fix: account button bug in mobile
|
|
14
|
+
- c96f167: feat: disable non applicable assets in purchase flows
|
|
15
|
+
- 0c89cb0: feat: more funkit configurations and checkout history fixes
|
|
16
|
+
- f87bc46: feat: better quote errors
|
|
17
|
+
- 2520aaa: feat: show chain on checkout image if iconSrc is defined
|
|
18
|
+
- 3e30577: feat: feat: eoa account balance checkout gas estimations + shows up as a estimated network fee
|
|
19
|
+
- b6b488c: feat: default payment method configuration + support more checkout states
|
|
20
|
+
- c96f167: fix: checkout notification history
|
|
21
|
+
- 0114790: feat: showChainSelector config in ConnectButton
|
|
22
|
+
- 3872961: feat: avoid constructing userOps for eoa checkouts with no actions
|
|
23
|
+
- Updated dependencies [e63e0c3]
|
|
24
|
+
- Updated dependencies [9a3220f]
|
|
25
|
+
- Updated dependencies [b6b488c]
|
|
26
|
+
- @funkit/core@1.0.3
|
|
27
|
+
- @funkit/wagmi-tools@1.0.4
|
|
28
|
+
|
|
29
|
+
## 1.0.5
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- 9197b4f: fix: moonpay modal
|
|
34
|
+
- b388697: feat: unsupported checkout chains tracking
|
|
35
|
+
- 5e6e878: feat: trigger re-quote if checkout confirmation returns expired quote error
|
|
36
|
+
- ec8205e: feat: tx summary borders
|
|
37
|
+
- ec8205e: feat: better checkout time display
|
|
38
|
+
- 11d5350: feat: increase max height of token list
|
|
39
|
+
- cac4e5c: feat: consistent total usd amount with draft value
|
|
40
|
+
- b388697: feat: FunBadge component
|
|
41
|
+
- Updated dependencies [b388697]
|
|
42
|
+
- @funkit/core@1.0.2
|
|
43
|
+
- @funkit/wagmi-tools@1.0.3
|
|
44
|
+
|
|
3
45
|
## 1.0.4
|
|
4
46
|
|
|
5
47
|
### Patch Changes
|
|
@@ -40,24 +40,24 @@ export declare const Box: React.ForwardRefExoticComponent<{
|
|
|
40
40
|
readonly backgroundSize?: "cover" | undefined;
|
|
41
41
|
readonly borderRadius?: "1" | "actionButton" | "connectButton" | "menuButton" | "modal" | "modalMobile" | "6" | "10" | "13" | "16" | "24" | "25%" | "full" | undefined;
|
|
42
42
|
readonly borderStyle?: "dotted" | "hidden" | "solid" | undefined;
|
|
43
|
-
readonly borderWidth?: "0" | "1" | "2" | "4" | undefined;
|
|
43
|
+
readonly borderWidth?: "0" | "1" | "2" | "0.5" | "4" | undefined;
|
|
44
44
|
readonly cursor?: "pointer" | undefined;
|
|
45
45
|
readonly flexDirection?: "column" | "row" | undefined;
|
|
46
46
|
readonly fontFamily?: "body" | undefined;
|
|
47
47
|
readonly fontSize?: "10" | "13" | "16" | "12" | "14" | "18" | "20" | "23" | "57" | undefined;
|
|
48
48
|
readonly fontWeight?: "medium" | "bold" | "regular" | "semibold" | "heavy" | undefined;
|
|
49
49
|
readonly gap?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
50
|
-
readonly height?: "1" | "2" | "10" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
50
|
+
readonly height?: "1" | "2" | "10" | "16" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "50" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
51
51
|
readonly justifyContent?: "center" | "space-around" | "space-between" | "flex-end" | "flex-start" | undefined;
|
|
52
52
|
readonly textAlign?: "inherit" | "left" | "center" | undefined;
|
|
53
53
|
readonly marginBottom?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
54
54
|
readonly marginLeft?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
55
55
|
readonly marginRight?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
56
56
|
readonly marginTop?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
57
|
-
readonly minHeight?: "1" | "2" | "10" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
58
|
-
readonly maxHeight?: "1" | "2" | "10" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
59
|
-
readonly maxWidth?: "1" | "2" | "10" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
60
|
-
readonly minWidth?: "1" | "2" | "10" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
57
|
+
readonly minHeight?: "1" | "2" | "10" | "16" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "50" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
58
|
+
readonly maxHeight?: "1" | "2" | "10" | "16" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "50" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
59
|
+
readonly maxWidth?: "1" | "2" | "10" | "16" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "50" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
60
|
+
readonly minWidth?: "1" | "2" | "10" | "16" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "50" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
61
61
|
readonly overflow?: "hidden" | undefined;
|
|
62
62
|
readonly paddingBottom?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
63
63
|
readonly paddingLeft?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
@@ -67,7 +67,7 @@ export declare const Box: React.ForwardRefExoticComponent<{
|
|
|
67
67
|
readonly right?: "0" | undefined;
|
|
68
68
|
readonly transition?: "transform" | "default" | undefined;
|
|
69
69
|
readonly userSelect?: "none" | undefined;
|
|
70
|
-
readonly width?: "1" | "2" | "10" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
70
|
+
readonly width?: "1" | "2" | "10" | "16" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "50" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
71
71
|
readonly backdropFilter?: "modalOverlay" | undefined;
|
|
72
72
|
margin?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
73
73
|
marginX?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
@@ -8,8 +8,9 @@ export interface ConnectButtonProps {
|
|
|
8
8
|
showBalance?: ResponsiveValue<boolean>;
|
|
9
9
|
chainStatus?: ResponsiveValue<ChainStatus>;
|
|
10
10
|
label?: string;
|
|
11
|
+
showChainSelector?: boolean;
|
|
11
12
|
}
|
|
12
|
-
export declare function ConnectButton({ accountStatus, chainStatus, label, showBalance, }: ConnectButtonProps): React.JSX.Element;
|
|
13
|
+
export declare function ConnectButton({ accountStatus, chainStatus, label, showBalance, showChainSelector, }: ConnectButtonProps): React.JSX.Element;
|
|
13
14
|
export declare namespace ConnectButton {
|
|
14
15
|
var __defaultProps: {
|
|
15
16
|
readonly accountStatus: "full";
|
|
@@ -22,6 +23,7 @@ export declare namespace ConnectButton {
|
|
|
22
23
|
readonly largeScreen: true;
|
|
23
24
|
readonly smallScreen: false;
|
|
24
25
|
};
|
|
26
|
+
readonly showChainSelector: true;
|
|
25
27
|
};
|
|
26
28
|
var Custom: typeof ConnectButtonRenderer;
|
|
27
29
|
}
|
|
@@ -2,11 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import { BoxProps } from '../Box/Box';
|
|
3
3
|
interface FunAssetAvatarProps {
|
|
4
4
|
assetSrc?: string | undefined;
|
|
5
|
-
assetTicker
|
|
5
|
+
assetTicker?: string;
|
|
6
6
|
assetName: string;
|
|
7
7
|
assetIconSize?: BoxProps['height'] | BoxProps['width'];
|
|
8
8
|
chainId: string | number;
|
|
9
9
|
chainIconSize?: BoxProps['height'] | BoxProps['width'];
|
|
10
|
+
prioritizeDefaults?: boolean;
|
|
10
11
|
}
|
|
11
|
-
export declare function FunAssetAvatar({ assetSrc, assetTicker, assetName, assetIconSize, chainId, chainIconSize, }: FunAssetAvatarProps): React.JSX.Element;
|
|
12
|
+
export declare function FunAssetAvatar({ assetSrc, assetTicker, assetName, assetIconSize, chainId, chainIconSize, prioritizeDefaults, }: FunAssetAvatarProps): React.JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -3,7 +3,6 @@ interface FunCheckoutHistoryModalProps {
|
|
|
3
3
|
open: boolean;
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
depositAddress: `0x${string}`;
|
|
6
|
-
isCheckoutSpecialCrFlow: boolean;
|
|
7
6
|
}
|
|
8
|
-
export declare function FunCheckoutHistoryModal({ onClose, open, depositAddress,
|
|
7
|
+
export declare function FunCheckoutHistoryModal({ onClose, open, depositAddress, }: FunCheckoutHistoryModalProps): React.JSX.Element;
|
|
9
8
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FunCheckoutStep } from './FunCheckoutModal';
|
|
3
|
-
export declare function FunCheckoutConfirmationStep({ checkoutId, checkoutStep, onFinish, animateOut, }: {
|
|
3
|
+
export declare function FunCheckoutConfirmationStep({ checkoutId, checkoutStep, regenerateQuoteFn, onFinish, animateOut, }: {
|
|
4
4
|
checkoutId: string | null;
|
|
5
5
|
checkoutStep: FunCheckoutStep;
|
|
6
|
+
regenerateQuoteFn: () => void;
|
|
6
7
|
onFinish: (depositAddress: string) => void;
|
|
7
8
|
animateOut: boolean;
|
|
8
9
|
}): React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BoxProps } from '../Box/Box';
|
|
3
|
-
export declare function FunDivider({ marginTop, marginBottom, transparent, }: {
|
|
3
|
+
export declare function FunDivider({ marginTop, marginBottom, transparent, borderWidth, }: {
|
|
4
4
|
marginTop?: BoxProps['margin'];
|
|
5
5
|
marginBottom?: BoxProps['margin'];
|
|
6
6
|
transparent?: boolean;
|
|
7
|
+
borderWidth?: BoxProps['borderWidth'];
|
|
7
8
|
}): React.JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { Box } from '../Box/Box';
|
|
3
3
|
import { TextProps } from '../Text/Text';
|
|
4
4
|
interface FunNotificationProps {
|
|
5
5
|
type?: FunNotificationType;
|
|
6
|
-
description: string;
|
|
6
|
+
description: string | ReactNode;
|
|
7
7
|
textProps?: Omit<TextProps, 'color'>;
|
|
8
8
|
containerProps?: React.ComponentProps<typeof Box>;
|
|
9
9
|
}
|
|
@@ -3,6 +3,7 @@ import { BoxProps } from '../Box/Box';
|
|
|
3
3
|
export interface FunSelectOption {
|
|
4
4
|
value: string;
|
|
5
5
|
label: ReactNode;
|
|
6
|
+
isDisabled: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare function FunSelectDropdown({ handleSelect, isDropdownOpen, options, selectedValue, containerPaddingY, containerMarginTop, optionItemPadding, showBorder, }: {
|
|
8
9
|
handleSelect: (newValue: FunSelectOption['value']) => void;
|
|
@@ -8,7 +8,7 @@ export type FeesItem = null | {
|
|
|
8
8
|
platformFeesTokenAmount?: string | number | null;
|
|
9
9
|
platformFeesTokenSymbol?: string | null;
|
|
10
10
|
};
|
|
11
|
-
export declare function FunTransactionSummary({ estFees, estTime, isLoading, hasTotal, total, hasPaymentToken, symbol, paymentTokenString, suffixComponent, errorMessage, }: {
|
|
11
|
+
export declare function FunTransactionSummary({ estFees, estTime, isLoading, hasTotal, total, hasPaymentToken, symbol, paymentTokenString, suffixComponent, errorMessage, isEstimatedNetworkFees, }: {
|
|
12
12
|
estFees: FeesItem;
|
|
13
13
|
estTime: string | number | null;
|
|
14
14
|
isLoading?: boolean;
|
|
@@ -19,4 +19,5 @@ export declare function FunTransactionSummary({ estFees, estTime, isLoading, has
|
|
|
19
19
|
total?: string | number | null;
|
|
20
20
|
suffixComponent?: ReactNode;
|
|
21
21
|
errorMessage?: string;
|
|
22
|
+
isEstimatedNetworkFees: boolean;
|
|
22
23
|
}): React.JSX.Element;
|
|
@@ -3,6 +3,7 @@ import React, { ReactNode } from 'react';
|
|
|
3
3
|
import { Abi, Address } from 'viem';
|
|
4
4
|
import { PaymentMethodInfo } from '../../consts/payment';
|
|
5
5
|
import { CheckoutHistoryStateMap } from '../../utils/checkout';
|
|
6
|
+
import { CheckoutFeesBreakdownItem } from '../../utils/checkoutFees';
|
|
6
7
|
export interface FunkitCheckoutActionParams {
|
|
7
8
|
contractAbi: Abi;
|
|
8
9
|
contractAddress: Address;
|
|
@@ -39,27 +40,23 @@ export interface FunkitCheckoutConfig {
|
|
|
39
40
|
checkoutItemDescription?: string;
|
|
40
41
|
/** The quantity of the item being checked out. If not specified (0, null, undefined), it will default to blank. **/
|
|
41
42
|
checkoutItemAmount?: number;
|
|
43
|
+
/** *****************************
|
|
44
|
+
* Miscellaneous configurations *
|
|
45
|
+
********************************/
|
|
46
|
+
/** User identification within customer's app for logging and customer dashboard purposes (future). **/
|
|
47
|
+
externalCheckoutUserId?: string;
|
|
42
48
|
}
|
|
43
|
-
interface FunkitCheckoutValidationResult {
|
|
44
|
-
isValid: boolean;
|
|
45
|
-
message: string;
|
|
46
|
-
}
|
|
47
|
-
export type FeesItem = null | {
|
|
48
|
-
totalUsd: string | number | null;
|
|
49
|
-
transactionFeesUsd: string | number | null;
|
|
50
|
-
transactionFeesTokenAmount?: string | number | null;
|
|
51
|
-
transactionFeesTokenSymbol?: string | null;
|
|
52
|
-
platformFeesUsd: string | number | null;
|
|
53
|
-
platformFeesTokenAmount?: string | number | null;
|
|
54
|
-
platformFeesTokenSymbol?: string | null;
|
|
55
|
-
};
|
|
56
49
|
type FunkitCheckoutQuoteResult = {
|
|
57
50
|
baseQuote: CheckoutCoreQuoteResponse;
|
|
58
51
|
finalTimeEstimationMs: number;
|
|
59
52
|
finalPaymentTokenAmount: string;
|
|
60
53
|
finalTotalUsd: string;
|
|
61
|
-
finalFeesBreakdown:
|
|
54
|
+
finalFeesBreakdown: CheckoutFeesBreakdownItem;
|
|
62
55
|
};
|
|
56
|
+
interface FunkitCheckoutValidationResult {
|
|
57
|
+
isValid: boolean;
|
|
58
|
+
message: string;
|
|
59
|
+
}
|
|
63
60
|
export type FunkitCheckoutResult = {
|
|
64
61
|
type: 'error' | 'success';
|
|
65
62
|
message: string;
|
|
@@ -102,6 +99,8 @@ export interface FunkitActiveCheckoutItem {
|
|
|
102
99
|
isQuoting: boolean;
|
|
103
100
|
/** Latest checkout estimated fees and time **/
|
|
104
101
|
latestQuote: null | FunkitCheckoutQuoteResult;
|
|
102
|
+
/** The quotation step message **/
|
|
103
|
+
quoteStepMessage: string;
|
|
105
104
|
/** Error messages associated with checkout quote **/
|
|
106
105
|
quoteErrorMessage: string;
|
|
107
106
|
/** The deposit address provided by server after the checkout is confirmed. If `null`, it is not confirmed yet. **/
|
|
@@ -130,7 +129,8 @@ interface useFunkitPreCheckoutInternalReturn {
|
|
|
130
129
|
updateSelectedPaymentMethodInfo: (newPaymentMethodInfo: PaymentMethodInfo) => void;
|
|
131
130
|
confirmCheckout: (shouldBatchOpBypassInit: boolean) => Promise<Address>;
|
|
132
131
|
getCheckoutDraftDollarValue: () => Promise<void>;
|
|
133
|
-
|
|
132
|
+
clearCheckoutQuoteMessages: () => void;
|
|
133
|
+
getCheckoutQuote: (sponsorInitialTransferGasLimit: number, newPaymentMethodInfo: PaymentMethodInfo) => Promise<boolean>;
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
136
136
|
* Internal hook to handle frontend pre-checkout operations, PER-CHECKOUT ITEM.
|
|
@@ -139,7 +139,7 @@ export declare const useFunkitPreCheckoutInternal: (checkoutId: string | null) =
|
|
|
139
139
|
/**
|
|
140
140
|
* Internal hook to handle post-checkout, PER-BACKEND-CHECKOUT ITEM.
|
|
141
141
|
*/
|
|
142
|
-
export declare const useFunkitPostCheckoutInternal: (depositAddress: Address
|
|
142
|
+
export declare const useFunkitPostCheckoutInternal: (depositAddress: Address) => {
|
|
143
143
|
isLoading: boolean;
|
|
144
144
|
checkoutHistoryInfo: CheckoutHistoryItem | undefined;
|
|
145
145
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { PaymentMethod } from '../../consts/payment';
|
|
2
3
|
export interface FunkitTextCustomizationsConfig {
|
|
3
4
|
selectPaymentMethod: string;
|
|
4
5
|
brokerageOrExchange: string;
|
|
@@ -13,23 +14,41 @@ export declare const DEFAULT_TEXT_CUSTOMIZATIONS: FunkitTextCustomizationsConfig
|
|
|
13
14
|
interface FunkitLoginOptionsConfig {
|
|
14
15
|
web2: boolean;
|
|
15
16
|
web3: boolean;
|
|
17
|
+
prioritizeWeb2Logins?: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface FunkitAccountOptionsConfig {
|
|
20
|
+
/** Whether end users can deposit usdc/eth from the account modal **/
|
|
21
|
+
enableDepositing?: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface FunkitPaymentsConfig {
|
|
24
|
+
/** If available, the specified payment method will be selected by default during checkout or deposits **/
|
|
25
|
+
defaultPaymentMethod?: PaymentMethod | undefined;
|
|
26
|
+
/** Whether end users are given the option to unlink a previously connected brokerage **/
|
|
27
|
+
allowBrokerageUnlinking?: boolean;
|
|
16
28
|
}
|
|
17
29
|
export type FunkitConfig = {
|
|
18
30
|
/** Funkit api key **/
|
|
19
31
|
apiKey: string;
|
|
20
32
|
/** Privy app id **/
|
|
21
33
|
privyAppId: string;
|
|
22
|
-
/** Login options toggle **/
|
|
23
|
-
enabledLoginOptions: FunkitLoginOptionsConfig;
|
|
24
34
|
/** App name **/
|
|
25
35
|
appName: string;
|
|
26
36
|
/** App logo (rendered as 80px x 80px) **/
|
|
27
37
|
appLogoSrc?: string;
|
|
28
|
-
/** Text
|
|
38
|
+
/** Text customizations across all widgets **/
|
|
29
39
|
textCustomizations?: Partial<FunkitTextCustomizationsConfig>;
|
|
40
|
+
/** Login modal configuration **/
|
|
41
|
+
loginModalConfig: Partial<FunkitLoginOptionsConfig>;
|
|
42
|
+
/** Account modal configuration **/
|
|
43
|
+
accountModalConfig?: Partial<FunkitAccountOptionsConfig>;
|
|
44
|
+
/** Payments configuration **/
|
|
45
|
+
paymentsConfig?: Partial<FunkitPaymentsConfig>;
|
|
30
46
|
};
|
|
31
47
|
interface FinalFunkitConfigInternal extends FunkitConfig {
|
|
32
48
|
textCustomizations: FunkitTextCustomizationsConfig;
|
|
49
|
+
loginModalConfig: FunkitLoginOptionsConfig;
|
|
50
|
+
accountModalConfig: FunkitAccountOptionsConfig;
|
|
51
|
+
paymentsConfig: FunkitPaymentsConfig;
|
|
33
52
|
}
|
|
34
53
|
export declare const FunkitConfigContext: import("react").Context<FunkitConfig>;
|
|
35
54
|
export declare function useFunkitConfig(): FinalFunkitConfigInternal;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LinkPayload } from '@meshconnect/web-link-sdk';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { MeshExchanges } from '../../utils/mesh';
|
|
4
|
+
interface MeshBrokerDataMap {
|
|
5
|
+
[brokerName: string]: LinkPayload & {
|
|
6
|
+
connectionExpiresAtMs: number;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function FunkitMeshProvider({ children }: any): React.JSX.Element;
|
|
10
|
+
export declare function useFunkitMesh({ onBeforeConnect, onConnected, onMeshModalClose, }: {
|
|
11
|
+
onBeforeConnect?: () => void;
|
|
12
|
+
onConnected?: (brokerData: LinkPayload | null) => void;
|
|
13
|
+
onMeshModalClose?: () => void;
|
|
14
|
+
}): {
|
|
15
|
+
meshBrokerDataMap: MeshBrokerDataMap;
|
|
16
|
+
connectToBrokerage: (brokerage: MeshExchanges) => Promise<void>;
|
|
17
|
+
unlinkBrokerage: (exchange: MeshExchanges) => void;
|
|
18
|
+
hasActiveConnectionCheck: (brokerage: MeshExchanges) => boolean;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -30,7 +30,7 @@ export declare function useFunCheckoutModal(): {
|
|
|
30
30
|
};
|
|
31
31
|
export declare function useFunCheckoutHistoryModal(): {
|
|
32
32
|
funCheckoutHistoryModalOpen: boolean;
|
|
33
|
-
openFunCheckoutHistoryModal: ((depositAddress: string
|
|
33
|
+
openFunCheckoutHistoryModal: ((depositAddress: string) => void) | undefined;
|
|
34
34
|
};
|
|
35
35
|
export declare function useFunDevTestModal(): {
|
|
36
36
|
funDevTestModalOpen: boolean;
|
package/dist/consts/funkit.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare const FUNKIT_CONNECTOR_ID = "funkitConnector";
|
|
|
4
4
|
export declare const FUNKIT_CONNECT_WALLET_ID = "funkitConnectWallet";
|
|
5
5
|
export declare const RESERVED_GROUP_NAME = "funkit-web2";
|
|
6
6
|
export declare const DEFAULT_FUNWALLET_INDEX = 0;
|
|
7
|
+
export declare const FUN_WORKER_EOA_ADDR = "0x61d048E5bECBd111c5D1e9BfFa1e284EBcb230Cc";
|
|
7
8
|
export declare const FROM_PROGRESS_CHECKOUT_STATES: CheckoutState[];
|
|
8
9
|
export declare const TO_PROGRESS_CHECKOUT_STATES: CheckoutState[];
|
|
9
10
|
export declare const IN_PROGRESS_CHECKOUT_STATES: CheckoutState[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum PendingQuoteMessage {
|
|
2
|
+
PREPARING = 0,
|
|
3
|
+
VERIFYING_PROVIDER = 1,
|
|
4
|
+
ESTIMATING_GAS = 2,
|
|
5
|
+
FINALIZING = 3
|
|
6
|
+
}
|
|
7
|
+
export declare const PENDING_QUOTE_MESSAGE_GENERATOR: {
|
|
8
|
+
0: () => string;
|
|
9
|
+
1: (provider: string) => string;
|
|
10
|
+
2: () => string;
|
|
11
|
+
3: () => string;
|
|
12
|
+
};
|
|
13
|
+
export declare function generateQuoteApiErrorForDisplay(errorMessage?: string): string;
|
|
@@ -399,24 +399,24 @@ export declare const sprinkles: ((props: {
|
|
|
399
399
|
readonly backgroundSize?: "cover" | undefined;
|
|
400
400
|
readonly borderRadius?: "1" | "actionButton" | "connectButton" | "menuButton" | "modal" | "modalMobile" | "6" | "10" | "13" | "16" | "24" | "25%" | "full" | undefined;
|
|
401
401
|
readonly borderStyle?: "dotted" | "hidden" | "solid" | undefined;
|
|
402
|
-
readonly borderWidth?: "0" | "1" | "2" | "4" | undefined;
|
|
402
|
+
readonly borderWidth?: "0" | "1" | "2" | "0.5" | "4" | undefined;
|
|
403
403
|
readonly cursor?: "pointer" | undefined;
|
|
404
404
|
readonly flexDirection?: "column" | "row" | undefined;
|
|
405
405
|
readonly fontFamily?: "body" | undefined;
|
|
406
406
|
readonly fontSize?: "10" | "13" | "16" | "12" | "14" | "18" | "20" | "23" | "57" | undefined;
|
|
407
407
|
readonly fontWeight?: "medium" | "bold" | "regular" | "semibold" | "heavy" | undefined;
|
|
408
408
|
readonly gap?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
409
|
-
readonly height?: "1" | "2" | "10" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
409
|
+
readonly height?: "1" | "2" | "10" | "16" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "50" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
410
410
|
readonly justifyContent?: "center" | "space-around" | "space-between" | "flex-end" | "flex-start" | undefined;
|
|
411
411
|
readonly textAlign?: "inherit" | "left" | "center" | undefined;
|
|
412
412
|
readonly marginBottom?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
413
413
|
readonly marginLeft?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
414
414
|
readonly marginRight?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
415
415
|
readonly marginTop?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
416
|
-
readonly minHeight?: "1" | "2" | "10" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
417
|
-
readonly maxHeight?: "1" | "2" | "10" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
418
|
-
readonly maxWidth?: "1" | "2" | "10" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
419
|
-
readonly minWidth?: "1" | "2" | "10" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
416
|
+
readonly minHeight?: "1" | "2" | "10" | "16" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "50" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
417
|
+
readonly maxHeight?: "1" | "2" | "10" | "16" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "50" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
418
|
+
readonly maxWidth?: "1" | "2" | "10" | "16" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "50" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
419
|
+
readonly minWidth?: "1" | "2" | "10" | "16" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "50" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
420
420
|
readonly overflow?: "hidden" | undefined;
|
|
421
421
|
readonly paddingBottom?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
422
422
|
readonly paddingLeft?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
@@ -426,7 +426,7 @@ export declare const sprinkles: ((props: {
|
|
|
426
426
|
readonly right?: "0" | undefined;
|
|
427
427
|
readonly transition?: "transform" | "default" | undefined;
|
|
428
428
|
readonly userSelect?: "none" | undefined;
|
|
429
|
-
readonly width?: "1" | "2" | "10" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
429
|
+
readonly width?: "1" | "2" | "10" | "16" | "24" | "full" | "4" | "12" | "14" | "20" | "400" | "8" | "28" | "30" | "32" | "34" | "36" | "40" | "44" | "48" | "50" | "54" | "60" | "93" | "100" | "108" | "162" | "192" | "200" | "210" | "220" | "230" | "240" | "256" | "320" | "440" | "600" | "half" | "max" | undefined;
|
|
430
430
|
readonly backdropFilter?: "modalOverlay" | undefined;
|
|
431
431
|
margin?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
432
432
|
marginX?: "0" | "1" | "2" | "3" | "6" | "10" | "16" | "24" | "4" | "12" | "14" | "18" | "20" | "8" | "28" | "30" | "32" | "36" | "44" | "-1" | "5" | "64" | undefined;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FunkitActiveCheckoutItem } from '../components/FunkitProvider/FunkitCheckoutContext';
|
|
2
2
|
export declare function getCheckoutType(checkoutItem: FunkitActiveCheckoutItem | null): {
|
|
3
3
|
isCheckoutCrFlow: boolean;
|
|
4
|
-
|
|
4
|
+
isCheckoutDirectCrFlow: boolean;
|
|
5
|
+
isCheckoutPostActionRequired: boolean;
|
|
5
6
|
};
|
|
6
7
|
export declare function useCheckoutType(checkoutItem: FunkitActiveCheckoutItem | null): {
|
|
7
8
|
isCheckoutCrFlow: boolean;
|
|
8
|
-
|
|
9
|
+
isCheckoutDirectCrFlow: boolean;
|
|
10
|
+
isCheckoutPostActionRequired: boolean;
|
|
9
11
|
};
|
|
@@ -2,7 +2,7 @@ import { Address } from 'viem';
|
|
|
2
2
|
/**
|
|
3
3
|
* Handles the starting and stopping of checkout history listeners based on the calling component's mount/unmount status
|
|
4
4
|
*/
|
|
5
|
-
export declare function useCheckoutHistoryListener(activate?: boolean,
|
|
5
|
+
export declare function useCheckoutHistoryListener(activate?: boolean, singleDepositAddr?: Address | undefined): void;
|
|
6
6
|
/**
|
|
7
7
|
* Handles the starting and stopping of asset listeners based on the calling component's mount/unmount status
|
|
8
8
|
*/
|