@funkit/connect 9.8.0 → 9.10.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.
@@ -34,6 +34,7 @@ interface FunkitCheckoutContextInterface {
34
34
  initNewWithdrawal(initSettings: Partial<UseFunkitCheckoutPropsWithFullConfig>, config: UseFunkitCheckoutPropsWithFullConfig): string;
35
35
  updateWithdrawalSourceAssetAmount(newSourceAmount: string): void;
36
36
  resetForNewWithdrawal(): void;
37
+ resetForNewDeposit(): void;
37
38
  applyDynamicRouting(path: Omit<DynamicRoutePath, 'getCustomRecipient' | 'generateActionsParams'> & {
38
39
  customRecipient?: FunkitCheckoutConfig['customRecipient'];
39
40
  generateActionsParams?: FunkitCheckoutConfig['generateActionsParams'];
@@ -2,6 +2,8 @@ import type { Dnum } from 'dnum';
2
2
  import React, { type Dispatch, type ReactNode } from 'react';
3
3
  import type { FunkitCheckoutQuoteResult } from '../domains/quote';
4
4
  import { type FunkitActiveCheckoutItem } from './FunkitCheckoutContext';
5
+ export type ApprovalMethod = 'approve' | 'sign';
6
+ export declare const APPROVAL_METHOD_DEFAULT: ApprovalMethod;
5
7
  export type CheckoutQuoteError = {
6
8
  maxTargetAssetAmount?: Dnum;
7
9
  minTargetAssetAmount?: Dnum;
@@ -40,6 +42,10 @@ interface FunkitQuoteContextInterface extends CheckoutQuoteState {
40
42
  getCheckoutQuote: (disableInformationStreaming?: boolean) => Promise<GetCheckoutQuoteResponse>;
41
43
  setCheckoutQuote: Dispatch<React.SetStateAction<FunkitCheckoutQuoteResult | null>>;
42
44
  setQuoteProgress: (state: Omit<CheckoutQuoteState, 'latestQuote'>) => void;
45
+ usePermit: boolean | undefined;
46
+ preferredApprovalMethod: ApprovalMethod;
47
+ setPreferredApprovalMethod: (next: ApprovalMethod) => void;
48
+ showApprovalToggle: boolean;
43
49
  }
44
50
  export declare function FunkitQuoteProvider({ children }: {
45
51
  children: ReactNode;
@@ -0,0 +1,6 @@
1
+ import { type Address } from 'viem';
2
+ /**
3
+ * Derives the Polymarket EOA proxy wallet address for a given wallet address
4
+ * using CREATE2 address derivation.
5
+ */
6
+ export declare function derivePolymarketProxyAddress(address: Address): Address;
@@ -6,8 +6,8 @@ import {
6
6
  zerionWallet
7
7
  } from "./chunk-UFYNHHDU.js";
8
8
  import {
9
- tahoWallet
10
- } from "./chunk-KS5MJNGD.js";
9
+ talismanWallet
10
+ } from "./chunk-T3VMQBBI.js";
11
11
  import {
12
12
  tokenPocketWallet
13
13
  } from "./chunk-UYW6MV74.js";
@@ -15,32 +15,32 @@ import {
15
15
  tokenaryWallet
16
16
  } from "./chunk-R7X5RIO7.js";
17
17
  import {
18
- trustWallet
19
- } from "./chunk-FWM4KTOV.js";
18
+ tahoWallet
19
+ } from "./chunk-KS5MJNGD.js";
20
20
  import {
21
- talismanWallet
22
- } from "./chunk-T3VMQBBI.js";
21
+ walletConnectWallet
22
+ } from "./chunk-O7ZCUI2Y.js";
23
23
  import {
24
24
  uniswapWallet
25
25
  } from "./chunk-UKSIXGWC.js";
26
- import {
27
- walletConnectWallet
28
- } from "./chunk-O7ZCUI2Y.js";
29
26
  import {
30
27
  xdefiWallet
31
28
  } from "./chunk-KSNA53EX.js";
32
29
  import {
33
- rabbyWallet
34
- } from "./chunk-7PVUEV4M.js";
30
+ trustWallet
31
+ } from "./chunk-FWM4KTOV.js";
32
+ import {
33
+ phantomWallet
34
+ } from "./chunk-57GN4W23.js";
35
35
  import {
36
36
  rainbowWallet
37
37
  } from "./chunk-AZYMJ4C6.js";
38
- import {
39
- ramperWallet
40
- } from "./chunk-P4E2ZFQB.js";
41
38
  import {
42
39
  roninWallet
43
40
  } from "./chunk-OSOB6QYX.js";
41
+ import {
42
+ ramperWallet
43
+ } from "./chunk-P4E2ZFQB.js";
44
44
  import {
45
45
  safeWallet
46
46
  } from "./chunk-BHAPTB57.js";
@@ -53,45 +53,45 @@ import {
53
53
  import {
54
54
  subWallet
55
55
  } from "./chunk-ZJJWGKB6.js";
56
- import {
57
- metaMaskWallet
58
- } from "./chunk-IRHK6SOW.js";
59
56
  import {
60
57
  mewWallet
61
58
  } from "./chunk-DP5ICBEB.js";
59
+ import {
60
+ metaMaskWallet
61
+ } from "./chunk-IRHK6SOW.js";
62
62
  import {
63
63
  oktoWallet
64
64
  } from "./chunk-BBPTPMH7.js";
65
+ import {
66
+ omniWallet
67
+ } from "./chunk-G3RQSCYR.js";
65
68
  import {
66
69
  okxWallet
67
70
  } from "./chunk-ZL6XCMV5.js";
68
71
  import {
69
72
  oneInchWallet
70
73
  } from "./chunk-EUMOVTRQ.js";
71
- import {
72
- omniWallet
73
- } from "./chunk-G3RQSCYR.js";
74
74
  import {
75
75
  oneKeyWallet
76
76
  } from "./chunk-E3NZE4UP.js";
77
77
  import {
78
- phantomWallet
79
- } from "./chunk-57GN4W23.js";
78
+ rabbyWallet
79
+ } from "./chunk-7PVUEV4M.js";
80
80
  import {
81
81
  foxWallet
82
82
  } from "./chunk-YGMU5VWD.js";
83
- import {
84
- frontierWallet
85
- } from "./chunk-J3PJOMO7.js";
86
83
  import {
87
84
  frameWallet
88
85
  } from "./chunk-MTJIPVYB.js";
89
86
  import {
90
- gateWallet
91
- } from "./chunk-LEAZMT5Y.js";
87
+ frontierWallet
88
+ } from "./chunk-J3PJOMO7.js";
92
89
  import {
93
90
  imTokenWallet
94
91
  } from "./chunk-BWLMNATA.js";
92
+ import {
93
+ gateWallet
94
+ } from "./chunk-LEAZMT5Y.js";
95
95
  import {
96
96
  injectedWallet
97
97
  } from "./chunk-HPUEYLLS.js";
@@ -102,14 +102,14 @@ import {
102
102
  ledgerWallet
103
103
  } from "./chunk-V4EXM3KB.js";
104
104
  import {
105
- bybitWallet
106
- } from "./chunk-7IEUTLHY.js";
107
- import {
108
- coin98Wallet
109
- } from "./chunk-RZQ4B4Z7.js";
105
+ bitskiWallet
106
+ } from "./chunk-Y36HPFB3.js";
110
107
  import {
111
108
  clvWallet
112
109
  } from "./chunk-3ZJN3PXP.js";
110
+ import {
111
+ coin98Wallet
112
+ } from "./chunk-RZQ4B4Z7.js";
113
113
  import {
114
114
  coinbaseWallet
115
115
  } from "./chunk-OUM6H3WU.js";
@@ -140,13 +140,13 @@ import {
140
140
  import {
141
141
  bloomWallet
142
142
  } from "./chunk-S6R4B763.js";
143
- import "./chunk-FMVNQKZL.js";
144
143
  import {
145
144
  braveWallet
146
145
  } from "./chunk-XVH4JIXB.js";
147
146
  import {
148
- bitskiWallet
149
- } from "./chunk-Y36HPFB3.js";
147
+ bybitWallet
148
+ } from "./chunk-7IEUTLHY.js";
149
+ import "./chunk-FMVNQKZL.js";
150
150
  import "./chunk-YYYRPQHB.js";
151
151
  import "./chunk-3K2MFXCO.js";
152
152
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "9.8.0",
3
+ "version": "9.10.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -105,9 +105,9 @@
105
105
  "ua-parser-js": "^1.0.37",
106
106
  "use-debounce": "^10.0.5",
107
107
  "uuid": "^9.0.1",
108
- "@funkit/api-base": "4.1.2",
108
+ "@funkit/api-base": "4.2.0",
109
109
  "@funkit/chains": "1.1.2",
110
- "@funkit/fun-relay": "2.6.7",
110
+ "@funkit/fun-relay": "2.7.0",
111
111
  "@funkit/utils": "3.0.0"
112
112
  },
113
113
  "repository": {