@talken/talkenkit 2.7.5-beta.6 → 2.8.1-beta.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/dist/abcWallet-2G4SD53F.js +184 -0
- package/dist/chunk-OKPWBIAD.js +7869 -0
- package/dist/components/ConfirmationModal/modalTheme.css.d.ts +2 -0
- package/dist/index.css +15 -9
- package/dist/index.js +57 -29
- package/dist/wallets/walletConnectors/abcWallet/AbcEvmAutoConnector.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.js +6 -6
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +3 -2
- package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +14 -14
- package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +8 -8
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +14 -14
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.js +3 -2
- package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +15 -15
- package/dist/wallets/walletConnectors/abcWallet/abcXrplProvider.js +3 -2
- package/dist/wallets/walletConnectors/abcWallet/api/GasApi.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.js +8 -8
- package/dist/wallets/walletConnectors/abcWallet/api/WalletscanApi.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/api/index.js +12 -12
- package/dist/wallets/walletConnectors/abcWallet/api/modules/auth.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/firebase.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/googleAuth.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/index.d.ts +5 -0
- package/dist/wallets/walletConnectors/abcWallet/index.js +48 -48
- package/dist/wallets/walletConnectors/abcWallet/kakaoAuth.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/sessionUtils.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/types/config.types.d.ts +1 -1
- package/dist/wallets/walletConnectors/abcWallet/types/wallet.types.d.ts +1 -1
- package/dist/wallets/walletConnectors/abcWallet/types.js +5 -5
- package/dist/wallets/walletConnectors/abcWallet/utils.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/walletGeneration.js +6 -6
- package/dist/wallets/walletConnectors/berasigWallet/berasigWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/binanceWallet/binanceWallet.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/chunk-2DFJ6LEN.js +116 -0
- package/dist/wallets/walletConnectors/chunk-2OA2LHCW.js +370 -0
- package/dist/wallets/walletConnectors/chunk-2OHHFQQ7.js +104 -0
- package/dist/wallets/walletConnectors/chunk-5Z3IHVCD.js +3056 -0
- package/dist/wallets/walletConnectors/chunk-D67HHSCD.js +277 -0
- package/dist/wallets/walletConnectors/chunk-FDEERRKT.js +340 -0
- package/dist/wallets/walletConnectors/chunk-K2OWJP7L.js +58 -0
- package/dist/wallets/walletConnectors/chunk-OSTBVN45.js +22 -0
- package/dist/wallets/walletConnectors/chunk-RHVWGVES.js +492 -0
- package/dist/wallets/walletConnectors/chunk-S6XEM7RM.js +240 -0
- package/dist/wallets/walletConnectors/chunk-T7M46J3E.js +345 -0
- package/dist/wallets/walletConnectors/chunk-TBONY4NF.js +218 -0
- package/dist/wallets/walletConnectors/chunk-TGKOIGEC.js +64 -0
- package/dist/wallets/walletConnectors/chunk-VXWOVSDK.js +341 -0
- package/dist/wallets/walletConnectors/chunk-XXRIIOJU.js +378 -0
- package/dist/wallets/walletConnectors/chunk-ZXG3X6PV.js +148 -0
- 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 +97 -97
- package/dist/wallets/walletConnectors/iopayWallet/iopayWallet.js +2 -2
- package/dist/wallets/walletConnectors/kaiaWallet/kaiaWallet.js +2 -2
- package/dist/wallets/walletConnectors/kaikasWallet/kaikasWallet.js +2 -2
- 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/zealWallet/zealWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +1 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-JGXJY3SB.js";
|
|
3
|
-
import {
|
|
4
|
-
GasApi
|
|
5
|
-
} from "../../chunk-AN6V3GJ2.js";
|
|
6
3
|
import {
|
|
7
4
|
ConfigApi
|
|
8
5
|
} from "../../chunk-L3EPZ4NZ.js";
|
|
6
|
+
import {
|
|
7
|
+
GasApi
|
|
8
|
+
} from "../../chunk-2OHHFQQ7.js";
|
|
9
9
|
import {
|
|
10
10
|
SolanaApi
|
|
11
11
|
} from "../../chunk-OTLZVWY7.js";
|
|
12
12
|
import {
|
|
13
13
|
WalletscanApi
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-S6XEM7RM.js";
|
|
15
15
|
import {
|
|
16
16
|
TokenApi
|
|
17
17
|
} from "../../chunk-FWX2HD26.js";
|
|
18
18
|
import {
|
|
19
19
|
TalkenApiClient,
|
|
20
20
|
createTalkenApiClient
|
|
21
|
-
} from "../../chunk-
|
|
21
|
+
} from "../../chunk-2OA2LHCW.js";
|
|
22
22
|
import "../../chunk-XDNFWX2X.js";
|
|
23
|
-
import "../../chunk-TYJR3KGY.js";
|
|
24
23
|
import "../../chunk-4Y7YP4IR.js";
|
|
25
|
-
import "../../chunk-ICGK5DGY.js";
|
|
26
24
|
import "../../chunk-3NWM24MH.js";
|
|
25
|
+
import "../../chunk-TYJR3KGY.js";
|
|
26
|
+
import "../../chunk-ICGK5DGY.js";
|
|
27
27
|
import "../../chunk-2LH53QET.js";
|
|
28
|
-
import "../../chunk-2LOET2LX.js";
|
|
29
28
|
import "../../chunk-ZOBSRU6L.js";
|
|
30
|
-
import "../../chunk-
|
|
29
|
+
import "../../chunk-2LOET2LX.js";
|
|
31
30
|
import "../../chunk-3IYXGND5.js";
|
|
32
31
|
import "../../chunk-YTIJR6EJ.js";
|
|
33
|
-
import "../../chunk-RKQS3OQG.js";
|
|
34
|
-
import "../../chunk-JU6AJBYS.js";
|
|
35
|
-
import "../../chunk-BUAWEYGV.js";
|
|
36
32
|
import "../../chunk-PR5O3NNO.js";
|
|
33
|
+
import "../../chunk-BUAWEYGV.js";
|
|
34
|
+
import "../../chunk-JU6AJBYS.js";
|
|
35
|
+
import "../../chunk-RKQS3OQG.js";
|
|
36
|
+
import "../../chunk-2DFJ6LEN.js";
|
|
37
37
|
import "../../chunk-YNE2UX2Z.js";
|
|
38
38
|
import "../../chunk-NEMEHJ72.js";
|
|
39
39
|
import "../../chunk-3Z5DO42M.js";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "../../../chunk-XDNFWX2X.js";
|
|
6
6
|
import "../../../chunk-3IYXGND5.js";
|
|
7
7
|
import "../../../chunk-YTIJR6EJ.js";
|
|
8
|
-
import "../../../chunk-RKQS3OQG.js";
|
|
9
|
-
import "../../../chunk-JU6AJBYS.js";
|
|
10
|
-
import "../../../chunk-BUAWEYGV.js";
|
|
11
8
|
import "../../../chunk-PR5O3NNO.js";
|
|
9
|
+
import "../../../chunk-BUAWEYGV.js";
|
|
10
|
+
import "../../../chunk-JU6AJBYS.js";
|
|
11
|
+
import "../../../chunk-RKQS3OQG.js";
|
|
12
12
|
import "../../../chunk-3Z5DO42M.js";
|
|
13
13
|
export {
|
|
14
14
|
TalkenAuthModule,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
decodeJWT,
|
|
4
4
|
getFirebaseAuth
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-TGKOIGEC.js";
|
|
6
6
|
import {
|
|
7
7
|
createLogger
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-2DFJ6LEN.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/abcWallet/googleAuth.ts
|
|
11
11
|
import {
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
export { abcWallet } from './abcWallet';
|
|
10
10
|
export type { AbcWalletSpecificOptions } from './abcWallet';
|
|
11
11
|
export type { AbcWalletConfig, AbcAuthProviderName, AbcUser, AbcWallet, AbcEvmWallet, AbcSolanaWallet, AbcBitcoinWallet, AbcTronWallet, AbcAuthStorageState, AbcLoginParams, AbcWalletParams, AbcSignParams, AbcSignSolanaTransactionParams, AbcSignSolanaMessageParams, AbcSendSolanaTransactionParams, AbcSignBitcoinTransactionParams, AbcSignBitcoinMessageParams, AbcSendBitcoinTransactionParams, AbcSignMessageParams, AbcApiResponse, AbcLoginResponse, AbcWalletResponse, AbcSignatureResponse, AbcOtpResponse, AbcRefreshTokenResponse, AbcPinConfig, AbcChainConfig, AbcConnectorOptions, AbcModalState, AbcEventType, AbcEventListener, BitcoinUtxo, TalkenTxReceipt, } from './types';
|
|
12
|
+
import type { AbcAuthProviderName as _AbcAuthProviderName, AbcAuthStorageState as _AbcAuthStorageState } from './types';
|
|
13
|
+
/** @deprecated Use `AbcAuthProviderName` instead. */
|
|
14
|
+
export type AbcAuthProvider = _AbcAuthProviderName;
|
|
15
|
+
/** @deprecated Use `AbcAuthStorageState` instead. */
|
|
16
|
+
export type AbcAuthState = _AbcAuthStorageState;
|
|
12
17
|
export { AbcStorageKey, AbcErrorCode, AbcError } from './types';
|
|
13
18
|
export { TalkenApiClient, createTalkenApiClient } from './api';
|
|
14
19
|
export { WalletscanApi, GasApi, ConfigApi, TokenApi, SolanaApi } from './api';
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
generateMpcWallets,
|
|
4
4
|
recoverMpcWallets,
|
|
5
5
|
validateMpcWallets
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-TBONY4NF.js";
|
|
7
7
|
import {
|
|
8
8
|
SESSION_EXPIRED_EVENT,
|
|
9
9
|
SessionExpiredError,
|
|
@@ -15,69 +15,57 @@ import {
|
|
|
15
15
|
refreshAccessToken,
|
|
16
16
|
scheduleProactiveRefresh,
|
|
17
17
|
setupVisibilityRefresh
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-ZXG3X6PV.js";
|
|
19
19
|
import {
|
|
20
20
|
hashPin
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-OSTBVN45.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "../chunk-
|
|
23
|
+
AbcBitcoinConnector,
|
|
24
|
+
createAbcBitcoinConnector
|
|
25
|
+
} from "../chunk-D67HHSCD.js";
|
|
26
26
|
import {
|
|
27
27
|
AbcXrplProvider,
|
|
28
28
|
XRPL_NETWORKS
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import {
|
|
31
|
-
AbcBitcoinConnector,
|
|
32
|
-
createAbcBitcoinConnector
|
|
33
|
-
} from "../chunk-AJ2YNYCD.js";
|
|
29
|
+
} from "../chunk-T7M46J3E.js";
|
|
34
30
|
import {
|
|
35
31
|
AbcBitcoinProvider,
|
|
36
32
|
BITCOIN_NETWORKS
|
|
37
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-RHVWGVES.js";
|
|
38
34
|
import {
|
|
39
35
|
AbcSolanaProvider
|
|
40
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-XXRIIOJU.js";
|
|
41
37
|
import "../chunk-JGXJY3SB.js";
|
|
42
|
-
import {
|
|
43
|
-
GasApi
|
|
44
|
-
} from "../chunk-AN6V3GJ2.js";
|
|
45
38
|
import {
|
|
46
39
|
ConfigApi
|
|
47
40
|
} from "../chunk-L3EPZ4NZ.js";
|
|
41
|
+
import {
|
|
42
|
+
GasApi
|
|
43
|
+
} from "../chunk-2OHHFQQ7.js";
|
|
48
44
|
import {
|
|
49
45
|
SolanaApi
|
|
50
46
|
} from "../chunk-OTLZVWY7.js";
|
|
51
47
|
import {
|
|
52
48
|
WalletscanApi
|
|
53
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-S6XEM7RM.js";
|
|
54
50
|
import {
|
|
55
51
|
TokenApi
|
|
56
52
|
} from "../chunk-FWX2HD26.js";
|
|
53
|
+
import {
|
|
54
|
+
AbcTronProvider,
|
|
55
|
+
TRON_NETWORKS
|
|
56
|
+
} from "../chunk-FDEERRKT.js";
|
|
57
57
|
import {
|
|
58
58
|
abcWallet
|
|
59
|
-
} from "../chunk-
|
|
59
|
+
} from "../chunk-K2OWJP7L.js";
|
|
60
60
|
import {
|
|
61
61
|
abcConnector
|
|
62
|
-
} from "../chunk-
|
|
62
|
+
} from "../chunk-VXWOVSDK.js";
|
|
63
63
|
import "../chunk-GFWUFYT2.js";
|
|
64
|
-
import {
|
|
65
|
-
BitcoinNetwork,
|
|
66
|
-
SolanaNetwork,
|
|
67
|
-
TronNetwork,
|
|
68
|
-
XrplNetwork,
|
|
69
|
-
getBitcoinNetwork,
|
|
70
|
-
getEvmNetwork,
|
|
71
|
-
getSolanaNetwork,
|
|
72
|
-
getTronNetwork,
|
|
73
|
-
getXrplNetwork,
|
|
74
|
-
isXrplNetwork
|
|
75
|
-
} from "../chunk-KXPCOVNY.js";
|
|
76
64
|
import {
|
|
77
65
|
AbcEvmProvider,
|
|
78
66
|
createAbcEvmProvider,
|
|
79
67
|
createAbcProvider
|
|
80
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-5Z3IHVCD.js";
|
|
81
69
|
import {
|
|
82
70
|
calculateExpiryTimestamp,
|
|
83
71
|
clearAuthState,
|
|
@@ -98,15 +86,38 @@ import {
|
|
|
98
86
|
import {
|
|
99
87
|
TalkenApiClient,
|
|
100
88
|
createTalkenApiClient
|
|
101
|
-
} from "../chunk-
|
|
89
|
+
} from "../chunk-2OA2LHCW.js";
|
|
102
90
|
import "../chunk-XDNFWX2X.js";
|
|
103
|
-
import "../chunk-TYJR3KGY.js";
|
|
104
91
|
import "../chunk-4Y7YP4IR.js";
|
|
105
|
-
import "../chunk-ICGK5DGY.js";
|
|
106
92
|
import "../chunk-3NWM24MH.js";
|
|
93
|
+
import "../chunk-TYJR3KGY.js";
|
|
94
|
+
import "../chunk-ICGK5DGY.js";
|
|
107
95
|
import "../chunk-2LH53QET.js";
|
|
108
|
-
import "../chunk-2LOET2LX.js";
|
|
109
96
|
import "../chunk-ZOBSRU6L.js";
|
|
97
|
+
import "../chunk-2LOET2LX.js";
|
|
98
|
+
import "../chunk-3IYXGND5.js";
|
|
99
|
+
import "../chunk-YTIJR6EJ.js";
|
|
100
|
+
import "../chunk-PR5O3NNO.js";
|
|
101
|
+
import {
|
|
102
|
+
AbcError,
|
|
103
|
+
AbcErrorCode
|
|
104
|
+
} from "../chunk-BUAWEYGV.js";
|
|
105
|
+
import {
|
|
106
|
+
AbcStorageKey
|
|
107
|
+
} from "../chunk-JU6AJBYS.js";
|
|
108
|
+
import "../chunk-RKQS3OQG.js";
|
|
109
|
+
import {
|
|
110
|
+
BitcoinNetwork,
|
|
111
|
+
SolanaNetwork,
|
|
112
|
+
TronNetwork,
|
|
113
|
+
XrplNetwork,
|
|
114
|
+
getBitcoinNetwork,
|
|
115
|
+
getEvmNetwork,
|
|
116
|
+
getSolanaNetwork,
|
|
117
|
+
getTronNetwork,
|
|
118
|
+
getXrplNetwork,
|
|
119
|
+
isXrplNetwork
|
|
120
|
+
} from "../chunk-KXPCOVNY.js";
|
|
110
121
|
import "../chunk-TLRR3FFT.js";
|
|
111
122
|
import {
|
|
112
123
|
BitcoinProviderError,
|
|
@@ -116,18 +127,7 @@ import {
|
|
|
116
127
|
} from "../chunk-YXWHHI4S.js";
|
|
117
128
|
import "../chunk-R6ZE7JAZ.js";
|
|
118
129
|
import "../chunk-CBKU2ERC.js";
|
|
119
|
-
import "../chunk-
|
|
120
|
-
import "../chunk-3IYXGND5.js";
|
|
121
|
-
import "../chunk-YTIJR6EJ.js";
|
|
122
|
-
import "../chunk-RKQS3OQG.js";
|
|
123
|
-
import {
|
|
124
|
-
AbcStorageKey
|
|
125
|
-
} from "../chunk-JU6AJBYS.js";
|
|
126
|
-
import {
|
|
127
|
-
AbcError,
|
|
128
|
-
AbcErrorCode
|
|
129
|
-
} from "../chunk-BUAWEYGV.js";
|
|
130
|
-
import "../chunk-PR5O3NNO.js";
|
|
130
|
+
import "../chunk-2DFJ6LEN.js";
|
|
131
131
|
import {
|
|
132
132
|
getCredentialManager
|
|
133
133
|
} from "../chunk-YNE2UX2Z.js";
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
refreshAccessToken,
|
|
11
11
|
scheduleProactiveRefresh,
|
|
12
12
|
setupVisibilityRefresh
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-ZXG3X6PV.js";
|
|
14
|
+
import "../chunk-2DFJ6LEN.js";
|
|
15
15
|
import "../chunk-NEMEHJ72.js";
|
|
16
16
|
import "../chunk-3Z5DO42M.js";
|
|
17
17
|
export {
|
|
@@ -63,7 +63,7 @@ export interface AbcChainConfig {
|
|
|
63
63
|
/** Chain name */
|
|
64
64
|
name: string;
|
|
65
65
|
/** Network type */
|
|
66
|
-
network: 'evm' | 'solana' | 'bitcoin' | 'tron';
|
|
66
|
+
network: 'evm' | 'solana' | 'bitcoin' | 'tron' | 'xrpl';
|
|
67
67
|
/** RPC URL */
|
|
68
68
|
rpcUrl?: string;
|
|
69
69
|
/** Block explorer URL */
|
|
@@ -40,7 +40,7 @@ export interface AbcEvmWallet extends BaseWallet {
|
|
|
40
40
|
/** @deprecated Use sessionId instead */
|
|
41
41
|
sid: string;
|
|
42
42
|
/** Wallet type */
|
|
43
|
-
type: 'evm'
|
|
43
|
+
type: 'evm';
|
|
44
44
|
/** User email (needed for wallet operations) */
|
|
45
45
|
email: string;
|
|
46
46
|
/** Public key (optional, from accounts array) */
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../chunk-3IYXGND5.js";
|
|
3
3
|
import "../chunk-YTIJR6EJ.js";
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import {
|
|
6
|
-
AbcStorageKey
|
|
7
|
-
} from "../chunk-JU6AJBYS.js";
|
|
4
|
+
import "../chunk-PR5O3NNO.js";
|
|
8
5
|
import {
|
|
9
6
|
AbcError,
|
|
10
7
|
AbcErrorCode,
|
|
11
8
|
TalkenApiError
|
|
12
9
|
} from "../chunk-BUAWEYGV.js";
|
|
13
|
-
import
|
|
10
|
+
import {
|
|
11
|
+
AbcStorageKey
|
|
12
|
+
} from "../chunk-JU6AJBYS.js";
|
|
13
|
+
import "../chunk-RKQS3OQG.js";
|
|
14
14
|
export {
|
|
15
15
|
AbcError,
|
|
16
16
|
AbcErrorCode,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
} from "../chunk-VVXSRRXI.js";
|
|
19
19
|
import "../chunk-3IYXGND5.js";
|
|
20
20
|
import "../chunk-YTIJR6EJ.js";
|
|
21
|
-
import "../chunk-RKQS3OQG.js";
|
|
22
|
-
import "../chunk-JU6AJBYS.js";
|
|
23
|
-
import "../chunk-BUAWEYGV.js";
|
|
24
21
|
import "../chunk-PR5O3NNO.js";
|
|
22
|
+
import "../chunk-BUAWEYGV.js";
|
|
23
|
+
import "../chunk-JU6AJBYS.js";
|
|
24
|
+
import "../chunk-RKQS3OQG.js";
|
|
25
25
|
import "../chunk-NEMEHJ72.js";
|
|
26
26
|
import "../chunk-3Z5DO42M.js";
|
|
27
27
|
export {
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
generateMpcWallets,
|
|
4
4
|
recoverMpcWallets,
|
|
5
5
|
validateMpcWallets
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-KXPCOVNY.js";
|
|
8
|
-
import "../chunk-762I67R6.js";
|
|
6
|
+
} from "../chunk-TBONY4NF.js";
|
|
9
7
|
import "../chunk-3IYXGND5.js";
|
|
10
8
|
import "../chunk-YTIJR6EJ.js";
|
|
11
|
-
import "../chunk-RKQS3OQG.js";
|
|
12
|
-
import "../chunk-JU6AJBYS.js";
|
|
13
|
-
import "../chunk-BUAWEYGV.js";
|
|
14
9
|
import "../chunk-PR5O3NNO.js";
|
|
10
|
+
import "../chunk-BUAWEYGV.js";
|
|
11
|
+
import "../chunk-JU6AJBYS.js";
|
|
12
|
+
import "../chunk-RKQS3OQG.js";
|
|
13
|
+
import "../chunk-KXPCOVNY.js";
|
|
14
|
+
import "../chunk-2DFJ6LEN.js";
|
|
15
15
|
import "../chunk-YNE2UX2Z.js";
|
|
16
16
|
import "../chunk-NEMEHJ72.js";
|
|
17
17
|
import "../chunk-3Z5DO42M.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KLCVXROA.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-PODFK4OS.js";
|
|
7
6
|
import "../chunk-PONHGUSY.js";
|
|
7
|
+
import "../chunk-PODFK4OS.js";
|
|
8
8
|
export {
|
|
9
9
|
bifrostWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
binanceWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-QB3QLNSL.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-PODFK4OS.js";
|
|
7
6
|
import "../chunk-PONHGUSY.js";
|
|
7
|
+
import "../chunk-PODFK4OS.js";
|
|
8
8
|
export {
|
|
9
9
|
binanceWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bitgetWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-EJALZNAR.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-PODFK4OS.js";
|
|
7
6
|
import "../chunk-PONHGUSY.js";
|
|
7
|
+
import "../chunk-PODFK4OS.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
10
10
|
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/utils/logger.ts
|
|
4
|
+
function getLogLevel() {
|
|
5
|
+
if (typeof process !== "undefined") {
|
|
6
|
+
const env = "development";
|
|
7
|
+
const customLevel = process.env.TALKENKIT_LOG_LEVEL;
|
|
8
|
+
if (customLevel) {
|
|
9
|
+
return customLevel;
|
|
10
|
+
}
|
|
11
|
+
if (env === "production") {
|
|
12
|
+
return "error";
|
|
13
|
+
}
|
|
14
|
+
return "debug";
|
|
15
|
+
}
|
|
16
|
+
return "info";
|
|
17
|
+
}
|
|
18
|
+
var config = {
|
|
19
|
+
level: getLogLevel(),
|
|
20
|
+
enableConsole: typeof process !== "undefined" ? true : true,
|
|
21
|
+
maskSensitiveData: typeof process !== "undefined" ? false : false
|
|
22
|
+
};
|
|
23
|
+
var SENSITIVE_PATTERNS = {
|
|
24
|
+
pin: /\b\d{6}\b/g,
|
|
25
|
+
privateKey: /0x[a-fA-F0-9]{64}/g,
|
|
26
|
+
token: /Bearer\s+[A-Za-z0-9\-._~+/]+=*/g,
|
|
27
|
+
email: /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,
|
|
28
|
+
accessToken: /(access_token|accessToken)["']?\s*[:=]\s*["']?([^"'\s,}]+)/gi,
|
|
29
|
+
refreshToken: /(refresh_token|refreshToken)["']?\s*[:=]\s*["']?([^"'\s,}]+)/gi
|
|
30
|
+
};
|
|
31
|
+
function maskSensitiveData(message) {
|
|
32
|
+
if (!config.maskSensitiveData) {
|
|
33
|
+
return message;
|
|
34
|
+
}
|
|
35
|
+
let masked = message;
|
|
36
|
+
masked = masked.replace(SENSITIVE_PATTERNS.pin, "******");
|
|
37
|
+
masked = masked.replace(SENSITIVE_PATTERNS.privateKey, "0x****...****");
|
|
38
|
+
masked = masked.replace(SENSITIVE_PATTERNS.token, "Bearer ****");
|
|
39
|
+
masked = masked.replace(SENSITIVE_PATTERNS.email, (match) => {
|
|
40
|
+
const [local, domain] = match.split("@");
|
|
41
|
+
return `${local.substring(0, 2)}***@${domain}`;
|
|
42
|
+
});
|
|
43
|
+
masked = masked.replace(SENSITIVE_PATTERNS.accessToken, '$1: "****"');
|
|
44
|
+
masked = masked.replace(SENSITIVE_PATTERNS.refreshToken, '$1: "****"');
|
|
45
|
+
return masked;
|
|
46
|
+
}
|
|
47
|
+
var LOG_PRIORITY = {
|
|
48
|
+
debug: 0,
|
|
49
|
+
info: 1,
|
|
50
|
+
warn: 2,
|
|
51
|
+
error: 3,
|
|
52
|
+
none: 999
|
|
53
|
+
};
|
|
54
|
+
function shouldLog(level) {
|
|
55
|
+
return LOG_PRIORITY[level] >= LOG_PRIORITY[config.level];
|
|
56
|
+
}
|
|
57
|
+
function formatMessage(component, level, message, ...args) {
|
|
58
|
+
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
59
|
+
const emoji = {
|
|
60
|
+
debug: "\u{1F41B}",
|
|
61
|
+
info: "\u2139\uFE0F",
|
|
62
|
+
warn: "\u26A0\uFE0F",
|
|
63
|
+
error: "\u274C",
|
|
64
|
+
none: ""
|
|
65
|
+
}[level];
|
|
66
|
+
const formattedArgs = args.map((arg) => {
|
|
67
|
+
if (typeof arg === "object") {
|
|
68
|
+
return JSON.stringify(arg, null, 2);
|
|
69
|
+
}
|
|
70
|
+
return String(arg);
|
|
71
|
+
}).join(" ");
|
|
72
|
+
const fullMessage = `${message} ${formattedArgs}`.trim();
|
|
73
|
+
const maskedMessage = maskSensitiveData(fullMessage);
|
|
74
|
+
return `[${timestamp}] ${emoji} [${component}] ${maskedMessage}`;
|
|
75
|
+
}
|
|
76
|
+
var Logger = class {
|
|
77
|
+
constructor(component) {
|
|
78
|
+
this.component = component;
|
|
79
|
+
}
|
|
80
|
+
debug(message, ...args) {
|
|
81
|
+
if (!shouldLog("debug") || !config.enableConsole)
|
|
82
|
+
return;
|
|
83
|
+
console.debug(formatMessage(this.component, "debug", message, ...args));
|
|
84
|
+
}
|
|
85
|
+
info(message, ...args) {
|
|
86
|
+
if (!shouldLog("info") || !config.enableConsole)
|
|
87
|
+
return;
|
|
88
|
+
console.info(formatMessage(this.component, "info", message, ...args));
|
|
89
|
+
}
|
|
90
|
+
warn(message, ...args) {
|
|
91
|
+
if (!shouldLog("warn") || !config.enableConsole)
|
|
92
|
+
return;
|
|
93
|
+
console.warn(formatMessage(this.component, "warn", message, ...args));
|
|
94
|
+
}
|
|
95
|
+
error(message, ...args) {
|
|
96
|
+
if (!shouldLog("error") || !config.enableConsole)
|
|
97
|
+
return;
|
|
98
|
+
console.error(formatMessage(this.component, "error", message, ...args));
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Log with custom emoji
|
|
102
|
+
*/
|
|
103
|
+
log(emoji, message, ...args) {
|
|
104
|
+
if (!config.enableConsole)
|
|
105
|
+
return;
|
|
106
|
+
const maskedMessage = maskSensitiveData(`${message} ${args.join(" ")}`);
|
|
107
|
+
console.log(`${emoji} [${this.component}] ${maskedMessage}`);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
function createLogger(component) {
|
|
111
|
+
return new Logger(component);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export {
|
|
115
|
+
createLogger
|
|
116
|
+
};
|