@funkit/connect 12.22.1 → 12.24.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 +53 -0
- package/dist/clients/{chunk-HGLDKRSQ.js → chunk-35XAIUH6.js} +80 -0
- package/dist/clients/{chunk-Y2O77SJO.js → chunk-55LEL7SW.js} +1 -1
- package/dist/clients/{chunk-S4SMCBQ4.js → chunk-ENWRWMKF.js} +7 -3
- package/dist/clients/{chunk-5JVG4MS2.js → chunk-GQINBV24.js} +1 -1
- package/dist/clients/{chunk-UBZOARBX.js → chunk-JBJ5FEIA.js} +2 -2
- package/dist/clients/{chunk-R7I5OO6C.js → chunk-QS3S2PXZ.js} +1 -1
- package/dist/clients/{chunk-T4Q43DNC.js → chunk-QYUAS6KD.js} +1 -1
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +5 -5
- package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
- package/dist/clients/lighter.js +5 -5
- package/dist/clients/mallard.js +4 -4
- package/dist/clients/nado.js +3 -3
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +2 -2
- package/dist/clients/polymarket/index.js +2 -2
- package/dist/clients/polymarket/polymarket.d.ts +29 -2
- package/dist/clients/polymarket/polymarket.js +1 -1
- package/dist/components/Dropdown/BaseDropdown.d.ts +3 -1
- package/dist/components/Dropdown/BaseDropdownItem.d.ts +3 -1
- package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +6 -1
- package/dist/components/Icons/AlertCircleIcon.d.ts +4 -0
- package/dist/domains/withdrawalAllowlist.d.ts +55 -0
- package/dist/domains/withdrawalChunking.d.ts +11 -0
- package/dist/hooks/queries/useWithdrawalRisk.d.ts +3 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +2 -1
- package/dist/hooks/useEnforcedAllowedRecipients.d.ts +11 -0
- package/dist/hooks/useIsBlacklistedWithdrawalAddress.d.ts +2 -0
- package/dist/hooks/useIsCashWithdrawalEnabled.d.ts +8 -0
- package/dist/hooks/useIsChunkedWithdrawal.d.ts +6 -0
- package/dist/index.css +103 -103
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4627 -3841
- package/dist/modals/WithdrawalModal/AllowedRecipientDropdown.d.ts +18 -0
- package/dist/modals/WithdrawalModal/ChunkedWithdrawalNotice.d.ts +2 -0
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +1 -0
- package/dist/modals/WithdrawalModal/LockedReceiveDisplay.d.ts +9 -0
- package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +4 -1
- package/dist/modals/WithdrawalModal/useWithdrawalRecipientAllowlist.d.ts +44 -0
- package/dist/modals/WithdrawalModal/withdrawalFormHelpers.d.ts +3 -1
- package/dist/providers/FunkitCheckoutContext/index.d.ts +2 -2
- package/dist/shadow-css.js +1 -1
- package/dist/wallets/Wallet.d.ts +16 -1
- package/dist/wallets/walletConnectors/index.js +43 -43
- package/package.json +4 -4
package/dist/wallets/Wallet.d.ts
CHANGED
|
@@ -107,6 +107,17 @@ export type WithdrawalTransaction = {
|
|
|
107
107
|
data: string;
|
|
108
108
|
value: string;
|
|
109
109
|
};
|
|
110
|
+
/**
|
|
111
|
+
* Withdrawal context sent with the batch so the integrator can check what it
|
|
112
|
+
* signs. `targetChainId` is Fun's chain id: Solana and Tron destinations use
|
|
113
|
+
* Fun's own ids and their native address formats, so a host check must not
|
|
114
|
+
* assume an EVM chain id or run `isAddress` on every destination.
|
|
115
|
+
*/
|
|
116
|
+
export type WithdrawalSignContext = {
|
|
117
|
+
/** The format follows `targetChainId`: 0x hex for EVM, native for Solana and Tron. */
|
|
118
|
+
destinationAddress: string;
|
|
119
|
+
targetChainId: number;
|
|
120
|
+
};
|
|
110
121
|
/** EIP-712 payload passed to {@link WithdrawalClient.signTypedData}. */
|
|
111
122
|
export type WithdrawalTypedData = {
|
|
112
123
|
domain: TypedDataDomain;
|
|
@@ -134,8 +145,12 @@ export interface WithdrawalClient {
|
|
|
134
145
|
* Implementations using `wallet_sendCalls` should map the calls-id back to
|
|
135
146
|
* the underlying tx hash via `waitForCallsStatus` →
|
|
136
147
|
* `receipts[0].transactionHash`.
|
|
148
|
+
*
|
|
149
|
+
* `signContext` is sent with batched sends only. Gasless and
|
|
150
|
+
* single-transaction steps (`sendTransaction`, `signTypedData`,
|
|
151
|
+
* `signMessage`) omit it.
|
|
137
152
|
*/
|
|
138
|
-
sendTransactions?: (chainId: number, transactions: WithdrawalTransaction[]) => Promise<string>;
|
|
153
|
+
sendTransactions?: (chainId: number, transactions: WithdrawalTransaction[], signContext?: WithdrawalSignContext) => Promise<string>;
|
|
139
154
|
confirmTransaction: (txHash: string, chainId: number) => Promise<TransactionReceipt>;
|
|
140
155
|
address: () => string;
|
|
141
156
|
/**
|
|
@@ -9,23 +9,23 @@ import {
|
|
|
9
9
|
zerionWallet
|
|
10
10
|
} from "./chunk-34B7OJNT.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-XODA5ESL.js";
|
|
14
14
|
import {
|
|
15
15
|
tahoWallet
|
|
16
16
|
} from "./chunk-U74RFZOL.js";
|
|
17
17
|
import {
|
|
18
18
|
talismanWallet
|
|
19
19
|
} from "./chunk-IAYYWCVB.js";
|
|
20
|
-
import {
|
|
21
|
-
tokenPocketWallet
|
|
22
|
-
} from "./chunk-NXWG6FG2.js";
|
|
23
20
|
import {
|
|
24
21
|
tokenaryWallet
|
|
25
22
|
} from "./chunk-TPM5PUJD.js";
|
|
26
23
|
import {
|
|
27
24
|
trustWallet
|
|
28
25
|
} from "./chunk-SR5CZR3L.js";
|
|
26
|
+
import {
|
|
27
|
+
tokenPocketWallet
|
|
28
|
+
} from "./chunk-NXWG6FG2.js";
|
|
29
29
|
import {
|
|
30
30
|
uniswapWallet
|
|
31
31
|
} from "./chunk-UNDWHCDH.js";
|
|
@@ -36,32 +36,29 @@ import {
|
|
|
36
36
|
phantomWallet
|
|
37
37
|
} from "./chunk-Q27YVDDH.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
39
|
+
rabbyWallet
|
|
40
|
+
} from "./chunk-RQ2GXOJL.js";
|
|
41
41
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
42
|
+
rainbowWallet
|
|
43
|
+
} from "./chunk-ZSSSLFQF.js";
|
|
44
44
|
import {
|
|
45
45
|
ramperWallet
|
|
46
46
|
} from "./chunk-GPXIBTWN.js";
|
|
47
|
+
import {
|
|
48
|
+
roninWallet
|
|
49
|
+
} from "./chunk-IA5432IR.js";
|
|
47
50
|
import {
|
|
48
51
|
safeWallet
|
|
49
52
|
} from "./chunk-IR3PJMVM.js";
|
|
50
53
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
54
|
+
safeheronWallet
|
|
55
|
+
} from "./chunk-UN3ONVNC.js";
|
|
53
56
|
import {
|
|
54
57
|
safepalWallet
|
|
55
58
|
} from "./chunk-BBB2J3US.js";
|
|
56
59
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import {
|
|
60
|
-
mewWallet
|
|
61
|
-
} from "./chunk-DSPQXAB2.js";
|
|
62
|
-
import {
|
|
63
|
-
ledgerWallet
|
|
64
|
-
} from "./chunk-BL4OC2EJ.js";
|
|
60
|
+
kresusWallet
|
|
61
|
+
} from "./chunk-V77ATGZT.js";
|
|
65
62
|
import {
|
|
66
63
|
metaMaskWallet
|
|
67
64
|
} from "./chunk-RXRYHMRI.js";
|
|
@@ -72,47 +69,50 @@ import {
|
|
|
72
69
|
okxWallet
|
|
73
70
|
} from "./chunk-CU5J53XR.js";
|
|
74
71
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
72
|
+
mewWallet
|
|
73
|
+
} from "./chunk-DSPQXAB2.js";
|
|
77
74
|
import {
|
|
78
75
|
oneInchWallet
|
|
79
76
|
} from "./chunk-GFS2AVAH.js";
|
|
80
77
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
78
|
+
omniWallet
|
|
79
|
+
} from "./chunk-2TAUCVX7.js";
|
|
83
80
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
81
|
+
oneKeyWallet
|
|
82
|
+
} from "./chunk-KN32ITJ7.js";
|
|
86
83
|
import {
|
|
87
84
|
foxWallet
|
|
88
85
|
} from "./chunk-U52QO5HF.js";
|
|
86
|
+
import {
|
|
87
|
+
enkryptWallet
|
|
88
|
+
} from "./chunk-Z6LDN2AN.js";
|
|
89
89
|
import {
|
|
90
90
|
frameWallet
|
|
91
91
|
} from "./chunk-B572YIAQ.js";
|
|
92
92
|
import {
|
|
93
93
|
frontierWallet
|
|
94
94
|
} from "./chunk-IWOMSW64.js";
|
|
95
|
-
import {
|
|
96
|
-
gateWallet
|
|
97
|
-
} from "./chunk-YRMBR6NA.js";
|
|
98
95
|
import {
|
|
99
96
|
imTokenWallet
|
|
100
97
|
} from "./chunk-YY2JA23M.js";
|
|
98
|
+
import {
|
|
99
|
+
gateWallet
|
|
100
|
+
} from "./chunk-YRMBR6NA.js";
|
|
101
101
|
import {
|
|
102
102
|
injectedWallet
|
|
103
103
|
} from "./chunk-M75V7OL3.js";
|
|
104
104
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
105
|
+
ledgerWallet
|
|
106
|
+
} from "./chunk-BL4OC2EJ.js";
|
|
107
107
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
108
|
+
bitgetWallet
|
|
109
|
+
} from "./chunk-HOCKAU5H.js";
|
|
110
110
|
import {
|
|
111
111
|
coin98Wallet
|
|
112
112
|
} from "./chunk-RFCZYLNR.js";
|
|
113
113
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
114
|
+
clvWallet
|
|
115
|
+
} from "./chunk-4FHNLTR3.js";
|
|
116
116
|
import {
|
|
117
117
|
coinbaseWallet
|
|
118
118
|
} from "./chunk-SM2A3OSG.js";
|
|
@@ -126,23 +126,23 @@ import {
|
|
|
126
126
|
dawnWallet
|
|
127
127
|
} from "./chunk-LV6YV3DE.js";
|
|
128
128
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
129
|
+
desigWallet
|
|
130
|
+
} from "./chunk-DFHP75HV.js";
|
|
131
131
|
import {
|
|
132
|
-
|
|
133
|
-
} from "./chunk-
|
|
132
|
+
bitskiWallet
|
|
133
|
+
} from "./chunk-NPITCCJE.js";
|
|
134
|
+
import {
|
|
135
|
+
bitverseWallet
|
|
136
|
+
} from "./chunk-5AEWIKRA.js";
|
|
134
137
|
import {
|
|
135
138
|
bifrostWallet
|
|
136
139
|
} from "./chunk-ALGPGI6V.js";
|
|
137
140
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
141
|
+
bloomWallet
|
|
142
|
+
} from "./chunk-PNHDOC77.js";
|
|
140
143
|
import {
|
|
141
144
|
argentWallet
|
|
142
145
|
} from "./chunk-XSDTNMQY.js";
|
|
143
|
-
import {
|
|
144
|
-
bitskiWallet
|
|
145
|
-
} from "./chunk-NPITCCJE.js";
|
|
146
146
|
import {
|
|
147
147
|
braveWallet
|
|
148
148
|
} from "./chunk-U2XXV45G.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.24.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -104,11 +104,11 @@
|
|
|
104
104
|
"@bluvo/react": "3.0.0-beta.1",
|
|
105
105
|
"@bluvo/sdk-ts": "3.0.0-beta.1",
|
|
106
106
|
"@datadog/browser-logs": "5.22.0",
|
|
107
|
-
"@funkit/api-base": "10.2.
|
|
107
|
+
"@funkit/api-base": "10.2.1",
|
|
108
108
|
"@funkit/chains": "2.6.1",
|
|
109
|
-
"@funkit/connect-core": "
|
|
109
|
+
"@funkit/connect-core": "14.0.1",
|
|
110
110
|
"@funkit/fun-relay": "3.3.1",
|
|
111
|
-
"@funkit/utils": "5.1.
|
|
111
|
+
"@funkit/utils": "5.1.2",
|
|
112
112
|
"@number-flow/react": "^0.5.5",
|
|
113
113
|
"@radix-ui/react-dropdown-menu": "^2.1.7",
|
|
114
114
|
"@radix-ui/react-tooltip": "^1.2.0",
|