@funkit/connect 5.3.5 → 5.3.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 +11 -0
- package/dist/components/Dropdown/ChainDropdown.d.ts +6 -3
- package/dist/components/Dropdown/TokenDropdown.d.ts +7 -3
- package/dist/components/FunFeatureList/FunFeatureList.d.ts +3 -1
- package/dist/index.js +190 -122
- package/dist/providers/FunkitHistoryContext.d.ts +9 -5
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +24 -3
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +65 -65
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.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/package.json +4 -4
|
@@ -19,18 +19,22 @@ export declare function FunkitCheckoutHistoryProvider({ children, }: {
|
|
|
19
19
|
export declare function useCheckoutHistoryContext(): FunkitCheckoutHistoryContextInterface;
|
|
20
20
|
/**
|
|
21
21
|
* External hook to listen for checkout history every 5000ms
|
|
22
|
-
*
|
|
23
22
|
* @param userId ID of the user (wallet address)
|
|
24
23
|
* @returns PurifiedCheckoutHistoryItem[]
|
|
25
24
|
*/
|
|
26
|
-
export declare function useCheckoutsListenerByUserId(userId: string):
|
|
25
|
+
export declare function useCheckoutsListenerByUserId(userId: string | undefined): {
|
|
26
|
+
data?: PurifiedCheckoutHistoryItem[];
|
|
27
|
+
isLoading: boolean;
|
|
28
|
+
};
|
|
27
29
|
/**
|
|
28
30
|
* External hook to listen for checkout history every 5000ms
|
|
29
|
-
*
|
|
30
31
|
* @param checkoutId ID of the checkout
|
|
31
|
-
* @returns PurifiedCheckoutHistoryItem |
|
|
32
|
+
* @returns PurifiedCheckoutHistoryItem | null
|
|
32
33
|
*/
|
|
33
|
-
export declare function useCheckoutListenerByCheckoutId(checkoutId:
|
|
34
|
+
export declare function useCheckoutListenerByCheckoutId(checkoutId: Hex | undefined): {
|
|
35
|
+
data?: PurifiedCheckoutHistoryItem | null;
|
|
36
|
+
isLoading: boolean;
|
|
37
|
+
};
|
|
34
38
|
/**
|
|
35
39
|
* Internal hook to handle post-checkout, PER-BACKEND-CHECKOUT ITEM.
|
|
36
40
|
*/
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { type CheckoutHistoryItem, CheckoutState, type DirectExecution } from '@funkit/api-base';
|
|
2
|
+
import type { Address, Hex } from 'viem';
|
|
3
|
+
export type PurifiedCheckoutHistoryItem = {
|
|
4
|
+
depositAddr?: Address;
|
|
5
|
+
directExecution: boolean;
|
|
6
|
+
id: Hex;
|
|
7
|
+
fromAmountBaseUnit: string;
|
|
8
|
+
fromChainId: string;
|
|
9
|
+
fromTokenAddress: Address;
|
|
10
|
+
state: CheckoutState;
|
|
11
|
+
toAmountBaseUnit: string;
|
|
12
|
+
toChainId: string;
|
|
13
|
+
toTokenAddress: Address;
|
|
14
|
+
txHash?: Hex;
|
|
15
|
+
} & ({
|
|
16
|
+
depositAddr: Address;
|
|
17
|
+
directExecution: false;
|
|
18
|
+
txHash?: never;
|
|
19
|
+
} | {
|
|
20
|
+
depositAddr?: never;
|
|
21
|
+
directExecution: true;
|
|
22
|
+
txHash: Hex;
|
|
23
|
+
});
|
|
24
|
+
export declare const purifyCheckoutHistoryItem: (item: CheckoutHistoryItem | DirectExecution) => PurifiedCheckoutHistoryItem;
|
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
zealWallet
|
|
7
|
-
} from "./chunk-JROWU5BP.js";
|
|
3
|
+
walletConnectWallet
|
|
4
|
+
} from "./chunk-NP5QGWNL.js";
|
|
8
5
|
import {
|
|
9
6
|
zerionWallet
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AXWP3GD4.js";
|
|
11
8
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
xdefiWallet
|
|
10
|
+
} from "./chunk-NO7XMBB5.js";
|
|
14
11
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-AD2KIJB6.js";
|
|
17
14
|
import {
|
|
18
15
|
tahoWallet
|
|
19
16
|
} from "./chunk-6P2EMPZI.js";
|
|
20
17
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
trustWallet
|
|
25
|
-
} from "./chunk-IPOC2VJX.js";
|
|
18
|
+
talismanWallet
|
|
19
|
+
} from "./chunk-ABFSXBE6.js";
|
|
26
20
|
import {
|
|
27
21
|
tokenaryWallet
|
|
28
22
|
} from "./chunk-SLOIIJGP.js";
|
|
@@ -30,124 +24,130 @@ import {
|
|
|
30
24
|
uniswapWallet
|
|
31
25
|
} from "./chunk-LH7BMNFZ.js";
|
|
32
26
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
27
|
+
trustWallet
|
|
28
|
+
} from "./chunk-ISIBREBO.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
30
|
+
tokenPocketWallet
|
|
31
|
+
} from "./chunk-IDKVN5CF.js";
|
|
32
|
+
import {
|
|
33
|
+
zealWallet
|
|
34
|
+
} from "./chunk-JROWU5BP.js";
|
|
35
|
+
import {
|
|
36
|
+
oneKeyWallet
|
|
37
|
+
} from "./chunk-4AD7VI2P.js";
|
|
38
38
|
import {
|
|
39
39
|
rainbowWallet
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-2UCNRD7H.js";
|
|
41
41
|
import {
|
|
42
42
|
ramperWallet
|
|
43
43
|
} from "./chunk-PIUNLQJG.js";
|
|
44
44
|
import {
|
|
45
45
|
roninWallet
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-63YLN6R5.js";
|
|
47
|
+
import {
|
|
48
|
+
safeheronWallet
|
|
49
|
+
} from "./chunk-R6RWZRFF.js";
|
|
47
50
|
import {
|
|
48
51
|
safepalWallet
|
|
49
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-MSFKSQBY.js";
|
|
50
53
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
54
|
+
oneInchWallet
|
|
55
|
+
} from "./chunk-OESTDX6I.js";
|
|
53
56
|
import {
|
|
54
57
|
safeWallet
|
|
55
58
|
} from "./chunk-BQQQL6UD.js";
|
|
56
59
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
ledgerWallet
|
|
61
|
+
} from "./chunk-BRBKM4PW.js";
|
|
59
62
|
import {
|
|
60
63
|
metaMaskWallet
|
|
61
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-G73C6P5P.js";
|
|
62
65
|
import {
|
|
63
66
|
oktoWallet
|
|
64
67
|
} from "./chunk-ADIXAKUL.js";
|
|
68
|
+
import {
|
|
69
|
+
okxWallet
|
|
70
|
+
} from "./chunk-4WEHDI4Y.js";
|
|
65
71
|
import {
|
|
66
72
|
mewWallet
|
|
67
73
|
} from "./chunk-V57WLZEE.js";
|
|
68
74
|
import {
|
|
69
75
|
omniWallet
|
|
70
76
|
} from "./chunk-7CUY5G6R.js";
|
|
71
|
-
import {
|
|
72
|
-
okxWallet
|
|
73
|
-
} from "./chunk-3U3BMEH5.js";
|
|
74
|
-
import {
|
|
75
|
-
oneInchWallet
|
|
76
|
-
} from "./chunk-OESTDX6I.js";
|
|
77
|
-
import {
|
|
78
|
-
oneKeyWallet
|
|
79
|
-
} from "./chunk-4AD7VI2P.js";
|
|
80
77
|
import {
|
|
81
78
|
phantomWallet
|
|
82
79
|
} from "./chunk-ZSVTX6EK.js";
|
|
83
80
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
81
|
+
rabbyWallet
|
|
82
|
+
} from "./chunk-BVX4XGNP.js";
|
|
83
|
+
import {
|
|
84
|
+
foxWallet
|
|
85
|
+
} from "./chunk-LMZMXEXL.js";
|
|
86
86
|
import {
|
|
87
87
|
frontierWallet
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-3S2U24BJ.js";
|
|
89
89
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
90
|
+
frameWallet
|
|
91
|
+
} from "./chunk-ZMYVTWDF.js";
|
|
92
|
+
import {
|
|
93
|
+
gateWallet
|
|
94
|
+
} from "./chunk-GSOYKKIS.js";
|
|
92
95
|
import {
|
|
93
96
|
imTokenWallet
|
|
94
97
|
} from "./chunk-COZ7MIQS.js";
|
|
98
|
+
import {
|
|
99
|
+
injectedWallet
|
|
100
|
+
} from "./chunk-VCVVV2K7.js";
|
|
95
101
|
import {
|
|
96
102
|
kresusWallet
|
|
97
103
|
} from "./chunk-MJXPRJZT.js";
|
|
98
104
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import {
|
|
102
|
-
frameWallet
|
|
103
|
-
} from "./chunk-ZMYVTWDF.js";
|
|
104
|
-
import {
|
|
105
|
-
braveWallet
|
|
106
|
-
} from "./chunk-PB254NQ4.js";
|
|
105
|
+
clvWallet
|
|
106
|
+
} from "./chunk-KR6JBW5E.js";
|
|
107
107
|
import {
|
|
108
108
|
coin98Wallet
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-DTRYS3MO.js";
|
|
110
110
|
import {
|
|
111
111
|
coinbaseWallet
|
|
112
112
|
} from "./chunk-H4IRCEZN.js";
|
|
113
113
|
import {
|
|
114
114
|
coreWallet
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-HBA36GW3.js";
|
|
116
116
|
import {
|
|
117
117
|
dawnWallet
|
|
118
118
|
} from "./chunk-LN7OD5EC.js";
|
|
119
|
+
import {
|
|
120
|
+
bloomWallet
|
|
121
|
+
} from "./chunk-S27IADFU.js";
|
|
119
122
|
import {
|
|
120
123
|
desigWallet
|
|
121
124
|
} from "./chunk-CTU6JCOK.js";
|
|
122
125
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
125
|
-
import {
|
|
126
|
-
bybitWallet
|
|
127
|
-
} from "./chunk-W5O4YSZN.js";
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-SJTXS4ZW.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
131
|
import {
|
|
132
132
|
bifrostWallet
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-W6N74MS3.js";
|
|
134
|
+
import {
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-A5APNTGL.js";
|
|
134
137
|
import {
|
|
135
138
|
bitskiWallet
|
|
136
139
|
} from "./chunk-P74YPRF6.js";
|
|
137
|
-
import {
|
|
138
|
-
bitgetWallet
|
|
139
|
-
} from "./chunk-7GSNBOD3.js";
|
|
140
140
|
import {
|
|
141
141
|
bitverseWallet
|
|
142
142
|
} from "./chunk-3HZRRP4Y.js";
|
|
143
143
|
import {
|
|
144
|
-
|
|
145
|
-
} from "./chunk-
|
|
144
|
+
braveWallet
|
|
145
|
+
} from "./chunk-PB254NQ4.js";
|
|
146
146
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import "./chunk-WRA2DVJ7.js";
|
|
147
|
+
bybitWallet
|
|
148
|
+
} from "./chunk-6ONTSPEY.js";
|
|
150
149
|
import "./chunk-23WIEY36.js";
|
|
150
|
+
import "./chunk-WRA2DVJ7.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
|
153
153
|
bifrostWallet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.6",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
"react-virtuoso": "4.10.1",
|
|
92
92
|
"ua-parser-js": "^1.0.37",
|
|
93
93
|
"uuid": "^9.0.1",
|
|
94
|
-
"@funkit/
|
|
94
|
+
"@funkit/core": "2.3.19",
|
|
95
|
+
"@funkit/fun-relay": "0.1.2",
|
|
95
96
|
"@funkit/chains": "0.2.3",
|
|
96
|
-
"@funkit/
|
|
97
|
+
"@funkit/api-base": "1.8.2",
|
|
97
98
|
"@funkit/utils": "1.0.13",
|
|
98
|
-
"@funkit/core": "2.3.19",
|
|
99
99
|
"@funkit/wagmi-tools": "3.0.41"
|
|
100
100
|
},
|
|
101
101
|
"repository": {
|