@funkit/connect 11.4.0 → 11.4.1
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 +35 -0
- package/dist/clients/{chunk-XJTRLB7W.js → chunk-BB5FHA47.js} +5 -4
- package/dist/clients/chunk-MSLPLXR2.js +30 -0
- package/dist/clients/{chunk-EQFVPSR2.js → chunk-TYG42JRZ.js} +3 -3
- package/dist/clients/{chunk-3Y5EIONT.js → chunk-UMU5S2WF.js} +30 -39
- package/dist/clients/internal/nado/withdrawalCallback.js +2 -9
- package/dist/clients/internal/nado/withdrawalConfig.d.ts +1 -1
- package/dist/clients/internal/nado/withdrawalConfig.js +1 -2
- package/dist/clients/internal/nado/withdrawalErrors.d.ts +6 -10
- package/dist/clients/internal/nado/withdrawalErrors.js +1 -2
- package/dist/clients/internal/nado/withdrawalForm.css +44 -36
- package/dist/clients/internal/nado/withdrawalForm.d.ts +1 -1
- package/dist/clients/internal/nado/withdrawalForm.js +11 -19
- package/dist/clients/internal/nado/withdrawalStatus.js +4 -8
- package/dist/clients/lighter.css +44 -36
- package/dist/clients/lighter.js +5 -9
- package/dist/clients/nado.d.ts +1 -1
- package/dist/clients/nado.js +4 -12
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +47 -39
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +1 -1
- package/dist/clients/polymarket/index.css +47 -39
- package/dist/clients/polymarket/index.js +1 -1
- package/dist/components/Dropdown/BaseDropdown.css.d.ts +1 -0
- package/dist/components/Dropdown/BaseDropdown.d.ts +0 -1
- package/dist/hooks/track/analytics/events.d.ts +14 -3
- package/dist/hooks/track/analytics/resolveExecutionProgressContext.d.ts +1 -0
- package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +11 -3
- package/dist/hooks/track/analytics/useTrackExecutionProgressEvents.d.ts +1 -0
- package/dist/hooks/useBluvo.d.ts +7 -2
- package/dist/index.css +44 -36
- package/dist/index.js +715 -838
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +5 -11
- package/dist/providers/FunkitCheckoutContext/types.d.ts +1 -1
- 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 +38 -38
- 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 +6 -6
- package/dist/clients/chunk-2576N7PQ.js +0 -44
- package/dist/clients/chunk-3P2C436B.js +0 -20
- package/dist/clients/chunk-63XTVHO3.js +0 -19
- package/dist/clients/chunk-6T6URLBM.js +0 -33
- package/dist/clients/chunk-FM7SFGAV.js +0 -106
- package/dist/clients/chunk-JFDRLSYM.js +0 -42
- package/dist/clients/chunk-TZGKB6WY.js +0 -160
- package/dist/clients/chunk-VIAEAD75.js +0 -61
- package/dist/clients/chunk-WZRW6WUM.js +0 -112
- package/dist/clients/chunk-Z7HTQFEO.js +0 -69
- package/dist/clients/internal/nado/consts.d.ts +0 -22
- package/dist/clients/internal/nado/consts.js +0 -15
- package/dist/clients/internal/nado/encoding.d.ts +0 -25
- package/dist/clients/internal/nado/encoding.js +0 -11
- package/dist/clients/internal/nado/errors.d.ts +0 -68
- package/dist/clients/internal/nado/errors.js +0 -19
- package/dist/clients/internal/nado/fetch.d.ts +0 -15
- package/dist/clients/internal/nado/fetch.js +0 -9
- package/dist/clients/internal/nado/gateway.d.ts +0 -61
- package/dist/clients/internal/nado/gateway.js +0 -17
- package/dist/clients/internal/nado/hooks.d.ts +0 -208
- package/dist/clients/internal/nado/hooks.js +0 -21
- package/dist/clients/internal/nado/indexer.d.ts +0 -43
- package/dist/clients/internal/nado/indexer.js +0 -13
- package/dist/clients/internal/nado/typedData.d.ts +0 -80
- package/dist/clients/internal/nado/typedData.js +0 -10
- package/dist/clients/internal/nado/withdrawalTypes.d.ts +0 -49
- package/dist/clients/internal/nado/withdrawalTypes.js +0 -1
- package/dist/utils/safeBigInt.d.ts +0 -5
- package/dist/wallets/walletConnectors/{chunk-RB3HR4R2.js → chunk-4NV5BYRP.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YEZM4CK4.js → chunk-AVDUNQUW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MIQTHJ6X.js → chunk-GUQM4QSL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-4T6ZSRJF.js → chunk-IULPZP2Q.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HNRB7KJU.js → chunk-JPN6TWIT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZNX4EMPB.js → chunk-KCRO2AGO.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-STVVP43G.js → chunk-KI5Y2BBF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-X6CGV36L.js → chunk-NR2OGDHQ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UK7C2JXW.js → chunk-OEEGYENV.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-F5XEEVG6.js → chunk-OX37G4YT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RVOY537T.js → chunk-SWFF3TWJ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CPI4TD43.js → chunk-TKB2OY6G.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2VP2F6EK.js → chunk-W2LCLDPX.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-6BW3HLBG.js → chunk-WAHGI5L7.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HTHAK6XB.js → chunk-WKNQMP4A.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VTM6EECM.js → chunk-XCNHV3HS.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CCQV2ZET.js → chunk-YO2K4MBH.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VAPGUPHO.js → chunk-YQFGVZGR.js} +3 -3
|
@@ -11,7 +11,7 @@ import type { CustomWithdrawalConfig, LighterRouteType, TokenInfo, WalletWithdra
|
|
|
11
11
|
/** Stable method ids for the Fast / Secure options (used for tracking + switching). */
|
|
12
12
|
export declare const LIGHTER_FAST_METHOD_ID = "lighter-fast";
|
|
13
13
|
export declare const LIGHTER_SECURE_METHOD_ID = "lighter-secure";
|
|
14
|
-
export { LIGHTER_DEFAULT_SECURE_MIN_WITHDRAWAL_AMOUNTS, LIGHTER_FAST_MAX_WITHDRAWAL_USD, LIGHTER_ROUTE_TYPE, LIGHTER_SECURE_ASSETS_BY_INDEX, LIGHTER_STAKING_POOL_INDEX, LIGHTER_STAKING_THRESHOLD_LIT, LIGHTER_UNSTAKED_FEE_TOKENS, LIGHTER_USDC_SPOT_SYMBOL, getLighterBaseSymbol, getLighterSecureMainnetAddress, resolveLighterAssetIndex, resolveLighterSecureRouteType,
|
|
14
|
+
export { LIGHTER_DEFAULT_SECURE_MIN_WITHDRAWAL_AMOUNTS, LIGHTER_FAST_MAX_WITHDRAWAL_USD, LIGHTER_ROUTE_TYPE, LIGHTER_SECURE_ASSETS_BY_INDEX, LIGHTER_STAKING_POOL_INDEX, LIGHTER_STAKING_THRESHOLD_LIT, LIGHTER_UNSTAKED_FEE_TOKENS, LIGHTER_USDC_SPOT_SYMBOL, getLighterBaseSymbol, getLighterSecureMainnetAddress, resolveLighterAssetIndex, resolveLighterSecureRouteType, } from '@funkit/connect-core/clients/lighter';
|
|
15
15
|
/**
|
|
16
16
|
* The selected source token as identified on Lighter's own L2, rather than by
|
|
17
17
|
* its mainnet bridge address — two Secure selections can share one mainnet
|
|
@@ -45,23 +45,16 @@ export declare function resolveLighterConfirmedTarget({ isLighterSecure, mainnet
|
|
|
45
45
|
export declare function LighterFastMaxExceededMessage({ onSwitchToSecure, }: {
|
|
46
46
|
onSwitchToSecure: () => void;
|
|
47
47
|
}): React.JSX.Element;
|
|
48
|
-
/**
|
|
49
|
-
* Share price for the staking pool, read off the pool's own account. Kept a
|
|
50
|
-
* separate query from the user's account: a user's `shares[]` carries entry
|
|
51
|
-
* state only, so current value is unobtainable without the pool's NAV.
|
|
52
|
-
*/
|
|
53
|
-
export declare function useLighterStakingSharePrice(enabled: boolean): number | undefined;
|
|
54
48
|
/**
|
|
55
49
|
* Fetches the Lighter account for the data the SDK still derives itself:
|
|
56
|
-
* `
|
|
57
|
-
*
|
|
58
|
-
*
|
|
50
|
+
* `assets`, to resolve the L2 asset index of a Secure selection. Withdrawable
|
|
51
|
+
* balances are the integrator's to supply (`withdrawalSourceTokenBalance`), so
|
|
52
|
+
* nothing here computes them.
|
|
59
53
|
*/
|
|
60
54
|
export declare function useLighterWithdrawalBalances({ accountIndex, }: {
|
|
61
55
|
accountIndex: LighterAccountIndex | undefined;
|
|
62
56
|
}): {
|
|
63
57
|
assets: import("@funkit/connect-core").LighterAsset[];
|
|
64
|
-
shares: import("@funkit/connect-core").LighterShare[];
|
|
65
58
|
isLoading: boolean;
|
|
66
59
|
};
|
|
67
60
|
type FunkitWithdrawalConfig = WalletWithdrawalConfig | CustomWithdrawalConfig;
|
|
@@ -77,6 +70,7 @@ export declare function useLighterWithdrawal(config: FunkitWithdrawalConfig, set
|
|
|
77
70
|
connectedAddress: `0x${string}` | undefined;
|
|
78
71
|
lighterAssets: import("@funkit/connect-core").LighterAsset[];
|
|
79
72
|
lighterFastUnstakedFee: number;
|
|
73
|
+
isLighterFastUnstakedFeeFetched: boolean;
|
|
80
74
|
invalidateLighterAccount: () => void;
|
|
81
75
|
};
|
|
82
76
|
/**
|
|
@@ -3,7 +3,7 @@ import type { LighterRouteType } from '@funkit/connect-core/clients/lighter';
|
|
|
3
3
|
import type { ApiCheckoutClientMetadata, ApiFunkitCheckoutActionParams, ApiFunkitCheckoutConfig } from '@funkit/utils';
|
|
4
4
|
import type { ReactNode } from 'react';
|
|
5
5
|
import type { Address } from 'viem';
|
|
6
|
-
import type { NadoWithdrawalCustomerConfig, NadoWithdrawalCustomerData } from '
|
|
6
|
+
import type { NadoWithdrawalCustomerConfig, NadoWithdrawalCustomerData } from '@funkit/connect-core/clients/nado';
|
|
7
7
|
import type { PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
8
8
|
import type { CheckoutBlockedReason } from '../../modals/CheckoutModal/CheckoutBlockedReason';
|
|
9
9
|
import type { WithdrawalClient, WithdrawalTransaction } from '../../wallets/Wallet';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-IULPZP2Q.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
bifrostWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bitgetWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-TKB2OY6G.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bybitWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-OX37G4YT.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
bybitWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
coin98Wallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-WAHGI5L7.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
coin98Wallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
frontierWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-AVDUNQUW.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-52QXXLDS.js";
|
|
5
5
|
import {
|
|
6
6
|
zerionWallet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SWFF3TWJ.js";
|
|
8
8
|
import {
|
|
9
9
|
tahoWallet
|
|
10
10
|
} from "./chunk-7ZYCBDQ4.js";
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
} from "./chunk-4DCO3TGL.js";
|
|
14
14
|
import {
|
|
15
15
|
tokenPocketWallet
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WKNQMP4A.js";
|
|
17
17
|
import {
|
|
18
18
|
tokenaryWallet
|
|
19
19
|
} from "./chunk-VH3THHJY.js";
|
|
20
20
|
import {
|
|
21
21
|
trustWallet
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KCRO2AGO.js";
|
|
23
23
|
import {
|
|
24
24
|
uniswapWallet
|
|
25
25
|
} from "./chunk-Z3PPW6NC.js";
|
|
@@ -34,13 +34,13 @@ import {
|
|
|
34
34
|
} from "./chunk-RB66PKPA.js";
|
|
35
35
|
import {
|
|
36
36
|
rainbowWallet
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-W2LCLDPX.js";
|
|
38
38
|
import {
|
|
39
39
|
ramperWallet
|
|
40
40
|
} from "./chunk-OQB55QXP.js";
|
|
41
41
|
import {
|
|
42
42
|
roninWallet
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-YQFGVZGR.js";
|
|
44
44
|
import {
|
|
45
45
|
safeWallet
|
|
46
46
|
} from "./chunk-RCY66YHF.js";
|
|
@@ -49,73 +49,70 @@ import {
|
|
|
49
49
|
} from "./chunk-76S7R2ND.js";
|
|
50
50
|
import {
|
|
51
51
|
safepalWallet
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-XCNHV3HS.js";
|
|
53
53
|
import {
|
|
54
54
|
subWallet
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-NR2OGDHQ.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
ledgerWallet
|
|
58
|
+
} from "./chunk-RPV27V2Y.js";
|
|
59
59
|
import {
|
|
60
60
|
mewWallet
|
|
61
61
|
} from "./chunk-MQM45ADF.js";
|
|
62
62
|
import {
|
|
63
63
|
oktoWallet
|
|
64
64
|
} from "./chunk-YWOVAU6O.js";
|
|
65
|
-
import {
|
|
66
|
-
okxWallet
|
|
67
|
-
} from "./chunk-STVVP43G.js";
|
|
68
65
|
import {
|
|
69
66
|
omniWallet
|
|
70
67
|
} from "./chunk-2CX7LX4J.js";
|
|
68
|
+
import {
|
|
69
|
+
okxWallet
|
|
70
|
+
} from "./chunk-KI5Y2BBF.js";
|
|
71
71
|
import {
|
|
72
72
|
oneInchWallet
|
|
73
73
|
} from "./chunk-QG6ZHI7B.js";
|
|
74
|
-
import {
|
|
75
|
-
oneKeyWallet
|
|
76
|
-
} from "./chunk-WVT6BBJH.js";
|
|
77
74
|
import {
|
|
78
75
|
phantomWallet
|
|
79
76
|
} from "./chunk-QY53O7WG.js";
|
|
80
77
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
78
|
+
oneKeyWallet
|
|
79
|
+
} from "./chunk-WVT6BBJH.js";
|
|
83
80
|
import {
|
|
84
81
|
frameWallet
|
|
85
82
|
} from "./chunk-BU3ZAT5X.js";
|
|
86
83
|
import {
|
|
87
84
|
frontierWallet
|
|
88
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-AVDUNQUW.js";
|
|
89
86
|
import {
|
|
90
87
|
gateWallet
|
|
91
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-JPN6TWIT.js";
|
|
92
89
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
90
|
+
coinbaseWallet
|
|
91
|
+
} from "./chunk-2DLDAZRH.js";
|
|
95
92
|
import {
|
|
96
93
|
injectedWallet
|
|
97
94
|
} from "./chunk-T6LGKC3F.js";
|
|
95
|
+
import {
|
|
96
|
+
imTokenWallet
|
|
97
|
+
} from "./chunk-WNAGGFMG.js";
|
|
98
98
|
import {
|
|
99
99
|
kresusWallet
|
|
100
100
|
} from "./chunk-RICTB3FA.js";
|
|
101
101
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
104
|
-
import {
|
|
105
|
-
braveWallet
|
|
106
|
-
} from "./chunk-DS73TZ6O.js";
|
|
102
|
+
metaMaskWallet
|
|
103
|
+
} from "./chunk-YO2K4MBH.js";
|
|
107
104
|
import {
|
|
108
105
|
clvWallet
|
|
109
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-OEEGYENV.js";
|
|
110
107
|
import {
|
|
111
108
|
coin98Wallet
|
|
112
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-WAHGI5L7.js";
|
|
113
110
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
111
|
+
bybitWallet
|
|
112
|
+
} from "./chunk-OX37G4YT.js";
|
|
116
113
|
import {
|
|
117
114
|
coreWallet
|
|
118
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-4NV5BYRP.js";
|
|
119
116
|
import {
|
|
120
117
|
dawnWallet
|
|
121
118
|
} from "./chunk-G2PHTVL6.js";
|
|
@@ -126,28 +123,31 @@ import {
|
|
|
126
123
|
enkryptWallet
|
|
127
124
|
} from "./chunk-HBQK5RD5.js";
|
|
128
125
|
import {
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
126
|
+
foxWallet
|
|
127
|
+
} from "./chunk-GUQM4QSL.js";
|
|
131
128
|
import {
|
|
132
129
|
bitgetWallet
|
|
133
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-TKB2OY6G.js";
|
|
131
|
+
import {
|
|
132
|
+
argentWallet
|
|
133
|
+
} from "./chunk-NTMBEOR2.js";
|
|
134
134
|
import {
|
|
135
135
|
bitskiWallet
|
|
136
136
|
} from "./chunk-7HRFUZFX.js";
|
|
137
137
|
import {
|
|
138
138
|
bifrostWallet
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-IULPZP2Q.js";
|
|
140
140
|
import {
|
|
141
141
|
bitverseWallet
|
|
142
142
|
} from "./chunk-NSK6A7TI.js";
|
|
143
143
|
import {
|
|
144
144
|
bloomWallet
|
|
145
145
|
} from "./chunk-PJ7Y57EH.js";
|
|
146
|
+
import "./chunk-N4IJLYFY.js";
|
|
146
147
|
import {
|
|
147
|
-
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
braveWallet
|
|
149
|
+
} from "./chunk-DS73TZ6O.js";
|
|
149
150
|
import "./chunk-OLZ7626J.js";
|
|
150
|
-
import "./chunk-N4IJLYFY.js";
|
|
151
151
|
import "./chunk-IGKXZBTA.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
metaMaskWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-YO2K4MBH.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
metaMaskWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
rainbowWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-W2LCLDPX.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
rainbowWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
roninWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-YQFGVZGR.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
roninWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
safepalWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-XCNHV3HS.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
safepalWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tokenPocketWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-WKNQMP4A.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
tokenPocketWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
trustWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-KCRO2AGO.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
trustWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
zerionWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-OLZ7626J.js";
|
|
4
|
+
} from "../chunk-SWFF3TWJ.js";
|
|
6
5
|
import "../chunk-N4IJLYFY.js";
|
|
6
|
+
import "../chunk-OLZ7626J.js";
|
|
7
7
|
import "../chunk-IGKXZBTA.js";
|
|
8
8
|
export {
|
|
9
9
|
zerionWallet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "11.4.
|
|
3
|
+
"version": "11.4.1",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -101,16 +101,16 @@
|
|
|
101
101
|
"motion": "^12.0.11",
|
|
102
102
|
"qrcode": "1.5.3",
|
|
103
103
|
"react-i18next": "16.3.3",
|
|
104
|
-
"react-remove-scroll": "2.
|
|
104
|
+
"react-remove-scroll": "^2.7.2",
|
|
105
105
|
"react-virtuoso": "4.10.1",
|
|
106
106
|
"ua-parser-js": "^1.0.37",
|
|
107
107
|
"use-debounce": "^10.0.5",
|
|
108
108
|
"uuid": "^11.1.1",
|
|
109
|
-
"@funkit/api-base": "7.1.
|
|
109
|
+
"@funkit/api-base": "7.1.1",
|
|
110
110
|
"@funkit/chains": "2.2.0",
|
|
111
|
-
"@funkit/
|
|
112
|
-
"@funkit/
|
|
113
|
-
"@funkit/utils": "4.0.
|
|
111
|
+
"@funkit/connect-core": "4.0.0",
|
|
112
|
+
"@funkit/fun-relay": "2.13.0",
|
|
113
|
+
"@funkit/utils": "4.0.1"
|
|
114
114
|
},
|
|
115
115
|
"repository": {
|
|
116
116
|
"type": "git",
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
INK_CHAIN_ID,
|
|
4
|
-
NADO_EIP712_VERIFYING_CONTRACT_ADDRESS
|
|
5
|
-
} from "./chunk-3P2C436B.js";
|
|
6
|
-
|
|
7
|
-
// src/clients/internal/nado/typedData.ts
|
|
8
|
-
var WITHDRAW_COLLATERAL_V2_TYPES = {
|
|
9
|
-
WithdrawCollateralV2: [
|
|
10
|
-
{ name: "sender", type: "bytes32" },
|
|
11
|
-
{ name: "productId", type: "uint32" },
|
|
12
|
-
{ name: "amount", type: "uint128" },
|
|
13
|
-
{ name: "nonce", type: "uint64" },
|
|
14
|
-
{ name: "sendTo", type: "address" },
|
|
15
|
-
// Reserved by Nado — must be signed as 0
|
|
16
|
-
{ name: "appendix", type: "uint128" }
|
|
17
|
-
]
|
|
18
|
-
};
|
|
19
|
-
function buildWithdrawCollateralV2TypedData(params) {
|
|
20
|
-
return {
|
|
21
|
-
domain: {
|
|
22
|
-
name: "Nado",
|
|
23
|
-
version: "0.0.1",
|
|
24
|
-
chainId: INK_CHAIN_ID,
|
|
25
|
-
verifyingContract: NADO_EIP712_VERIFYING_CONTRACT_ADDRESS
|
|
26
|
-
},
|
|
27
|
-
types: WITHDRAW_COLLATERAL_V2_TYPES,
|
|
28
|
-
primaryType: "WithdrawCollateralV2",
|
|
29
|
-
message: {
|
|
30
|
-
sender: params.sender,
|
|
31
|
-
productId: params.productId,
|
|
32
|
-
amount: params.amount,
|
|
33
|
-
nonce: params.nonce,
|
|
34
|
-
sendTo: params.sendTo,
|
|
35
|
-
appendix: 0n
|
|
36
|
-
// set to 0, Nado reserved
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export {
|
|
42
|
-
WITHDRAW_COLLATERAL_V2_TYPES,
|
|
43
|
-
buildWithdrawCollateralV2TypedData
|
|
44
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/clients/internal/nado/consts.ts
|
|
4
|
-
import { getAddress } from "viem";
|
|
5
|
-
import { ink } from "viem/chains";
|
|
6
|
-
var INK_CHAIN_ID = ink.id;
|
|
7
|
-
var NADO_GATEWAY_URL = "https://gateway.prod.nado.xyz/v1";
|
|
8
|
-
var NADO_INDEXER_URL = "https://archive.prod.nado.xyz/v1";
|
|
9
|
-
var NADO_EIP712_VERIFYING_CONTRACT_ADDRESS = getAddress(
|
|
10
|
-
"0x05ec92D78ED421f3D3Ada77FFdE167106565974E"
|
|
11
|
-
);
|
|
12
|
-
var NADO_WITHDRAWAL_ACTION_TYPE = "NADO_WITHDRAWAL";
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
INK_CHAIN_ID,
|
|
16
|
-
NADO_GATEWAY_URL,
|
|
17
|
-
NADO_INDEXER_URL,
|
|
18
|
-
NADO_EIP712_VERIFYING_CONTRACT_ADDRESS,
|
|
19
|
-
NADO_WITHDRAWAL_ACTION_TYPE
|
|
20
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/utils/safeBigInt.ts
|
|
4
|
-
function safeBigInt(value, fallback) {
|
|
5
|
-
if (typeof value === "bigint") {
|
|
6
|
-
return value;
|
|
7
|
-
}
|
|
8
|
-
if (typeof value === "number") {
|
|
9
|
-
return Number.isFinite(value) && Number.isInteger(value) ? BigInt(value) : fallback;
|
|
10
|
-
}
|
|
11
|
-
if (typeof value === "string" && /^-?\d+$/.test(value)) {
|
|
12
|
-
return BigInt(value);
|
|
13
|
-
}
|
|
14
|
-
return fallback;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
safeBigInt
|
|
19
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/clients/internal/nado/encoding.ts
|
|
4
|
-
import {
|
|
5
|
-
concatHex,
|
|
6
|
-
formatUnits,
|
|
7
|
-
pad,
|
|
8
|
-
stringToHex
|
|
9
|
-
} from "viem";
|
|
10
|
-
var SUBACCOUNT_NAME_BYTES = 12;
|
|
11
|
-
var X18_DECIMALS = 18;
|
|
12
|
-
function buildNadoSubaccountId(owner, name = "default") {
|
|
13
|
-
const nameHex = stringToHex(name);
|
|
14
|
-
if ((nameHex.length - 2) / 2 > SUBACCOUNT_NAME_BYTES) {
|
|
15
|
-
throw new Error("Nado subaccount name must be 12 bytes or fewer");
|
|
16
|
-
}
|
|
17
|
-
return concatHex([
|
|
18
|
-
owner,
|
|
19
|
-
pad(nameHex, { dir: "right", size: SUBACCOUNT_NAME_BYTES })
|
|
20
|
-
]);
|
|
21
|
-
}
|
|
22
|
-
function x18ToRawBaseUnit(x18Amount, decimals) {
|
|
23
|
-
return x18Amount * 10n ** BigInt(decimals) / 10n ** BigInt(X18_DECIMALS);
|
|
24
|
-
}
|
|
25
|
-
function x18ToTokenUnits(x18Amount, decimals) {
|
|
26
|
-
return formatUnits(x18ToRawBaseUnit(x18Amount, decimals), decimals);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export {
|
|
30
|
-
buildNadoSubaccountId,
|
|
31
|
-
x18ToRawBaseUnit,
|
|
32
|
-
x18ToTokenUnits
|
|
33
|
-
};
|