@talken/talkenkit 2.4.8 → 2.4.10
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-OQWH4ES2.js +184 -0
- package/dist/abcWallet-PP2WTSDI.js +184 -0
- package/dist/chunk-7FKWLUOV.js +6883 -0
- package/dist/chunk-JZQXBVCJ.js +6883 -0
- package/dist/index.js +165 -129
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/themes/midnightTheme.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/index.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/walletGeneration.js +1 -1
- package/dist/wallets/walletConnectors/chunk-IL4WOWNJ.js +327 -0
- package/dist/wallets/walletConnectors/index.js +56 -56
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
isTestnet,
|
|
31
31
|
networkToChainId,
|
|
32
32
|
networks_exports
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-JZQXBVCJ.js";
|
|
34
34
|
import "./chunk-DFWCI4QG.js";
|
|
35
35
|
import {
|
|
36
36
|
darkTheme
|
|
@@ -46,8 +46,9 @@ import {
|
|
|
46
46
|
en_US_default
|
|
47
47
|
} from "./chunk-X4GSACNW.js";
|
|
48
48
|
import {
|
|
49
|
+
__require,
|
|
49
50
|
__toCommonJS
|
|
50
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-AIBVBASK.js";
|
|
51
52
|
|
|
52
53
|
// src/components/ConnectButton/ConnectButton.tsx
|
|
53
54
|
import React76, { useContext as useContext27, useEffect as useEffect25, useState as useState30 } from "react";
|
|
@@ -739,63 +740,63 @@ var fetchTranslations = async (locale) => {
|
|
|
739
740
|
switch (locale) {
|
|
740
741
|
case "ar":
|
|
741
742
|
case "ar-AR":
|
|
742
|
-
return (await import("./ar_AR-
|
|
743
|
+
return (await import("./ar_AR-MAB4J7H2.js")).default;
|
|
743
744
|
case "de":
|
|
744
745
|
case "de-DE":
|
|
745
|
-
return (await import("./de_DE-
|
|
746
|
+
return (await import("./de_DE-EG7KMNLA.js")).default;
|
|
746
747
|
case "en":
|
|
747
748
|
case "en-US":
|
|
748
|
-
return (await import("./en_US-
|
|
749
|
+
return (await import("./en_US-FB5NGCIS.js")).default;
|
|
749
750
|
case "es":
|
|
750
751
|
case "es-419":
|
|
751
|
-
return (await import("./es_419-
|
|
752
|
+
return (await import("./es_419-3B34TR7B.js")).default;
|
|
752
753
|
case "fr":
|
|
753
754
|
case "fr-FR":
|
|
754
|
-
return (await import("./fr_FR-
|
|
755
|
+
return (await import("./fr_FR-R75UI3J6.js")).default;
|
|
755
756
|
case "hi":
|
|
756
757
|
case "hi-IN":
|
|
757
|
-
return (await import("./hi_IN-
|
|
758
|
+
return (await import("./hi_IN-UE2ZBDLM.js")).default;
|
|
758
759
|
case "id":
|
|
759
760
|
case "id-ID":
|
|
760
|
-
return (await import("./id_ID-
|
|
761
|
+
return (await import("./id_ID-WQSMTXEJ.js")).default;
|
|
761
762
|
case "ja":
|
|
762
763
|
case "ja-JP":
|
|
763
|
-
return (await import("./ja_JP-
|
|
764
|
+
return (await import("./ja_JP-O4XT7PNY.js")).default;
|
|
764
765
|
case "ko":
|
|
765
766
|
case "ko-KR":
|
|
766
|
-
return (await import("./ko_KR-
|
|
767
|
+
return (await import("./ko_KR-7DRM32ZL.js")).default;
|
|
767
768
|
case "ms":
|
|
768
769
|
case "ms-MY":
|
|
769
|
-
return (await import("./ms_MY-
|
|
770
|
+
return (await import("./ms_MY-QJAJAMMS.js")).default;
|
|
770
771
|
case "pt":
|
|
771
772
|
case "pt-BR":
|
|
772
|
-
return (await import("./pt_BR-
|
|
773
|
+
return (await import("./pt_BR-CUVZKVMO.js")).default;
|
|
773
774
|
case "ru":
|
|
774
775
|
case "ru-RU":
|
|
775
|
-
return (await import("./ru_RU-
|
|
776
|
+
return (await import("./ru_RU-DLZ46RWL.js")).default;
|
|
776
777
|
case "th":
|
|
777
778
|
case "th-TH":
|
|
778
|
-
return (await import("./th_TH-
|
|
779
|
+
return (await import("./th_TH-AXZSCUYS.js")).default;
|
|
779
780
|
case "tr":
|
|
780
781
|
case "tr-TR":
|
|
781
|
-
return (await import("./tr_TR-
|
|
782
|
+
return (await import("./tr_TR-WUMEEWNJ.js")).default;
|
|
782
783
|
case "ua":
|
|
783
784
|
case "uk-UA":
|
|
784
|
-
return (await import("./uk_UA-
|
|
785
|
+
return (await import("./uk_UA-BVWUMQ6Z.js")).default;
|
|
785
786
|
case "vi":
|
|
786
787
|
case "vi-VN":
|
|
787
|
-
return (await import("./vi_VN-
|
|
788
|
+
return (await import("./vi_VN-AI2OTA4F.js")).default;
|
|
788
789
|
case "zh":
|
|
789
790
|
case "zh-CN":
|
|
790
791
|
case "zh-Hans":
|
|
791
|
-
return (await import("./zh_CN-
|
|
792
|
+
return (await import("./zh_CN-HBK3E2T5.js")).default;
|
|
792
793
|
case "zh-HK":
|
|
793
|
-
return (await import("./zh_HK-
|
|
794
|
+
return (await import("./zh_HK-ZQP4TGHU.js")).default;
|
|
794
795
|
case "zh-Hant":
|
|
795
796
|
case "zh-TW":
|
|
796
|
-
return (await import("./zh_TW-
|
|
797
|
+
return (await import("./zh_TW-DSHZXVLV.js")).default;
|
|
797
798
|
default:
|
|
798
|
-
return (await import("./en_US-
|
|
799
|
+
return (await import("./en_US-FB5NGCIS.js")).default;
|
|
799
800
|
}
|
|
800
801
|
};
|
|
801
802
|
async function setLocale(locale) {
|
|
@@ -864,91 +865,91 @@ function isNotNullish(value) {
|
|
|
864
865
|
// src/components/RainbowKitProvider/provideRainbowKitChains.ts
|
|
865
866
|
var arbitrumIcon = {
|
|
866
867
|
iconBackground: "#96bedc",
|
|
867
|
-
iconUrl: async () => (await import("./arbitrum-
|
|
868
|
+
iconUrl: async () => (await import("./arbitrum-27LBECSN.js")).default
|
|
868
869
|
};
|
|
869
870
|
var avalancheIcon = {
|
|
870
871
|
iconBackground: "#e84141",
|
|
871
|
-
iconUrl: async () => (await import("./avalanche-
|
|
872
|
+
iconUrl: async () => (await import("./avalanche-KSIA64PC.js")).default
|
|
872
873
|
};
|
|
873
874
|
var baseIcon = {
|
|
874
875
|
iconBackground: "#0052ff",
|
|
875
|
-
iconUrl: async () => (await import("./base-
|
|
876
|
+
iconUrl: async () => (await import("./base-SIBF7BBU.js")).default
|
|
876
877
|
};
|
|
877
878
|
var blastIcon = {
|
|
878
879
|
iconBackground: "#000000",
|
|
879
|
-
iconUrl: async () => (await import("./blast-
|
|
880
|
+
iconUrl: async () => (await import("./blast-RE46OGNS.js")).default
|
|
880
881
|
};
|
|
881
882
|
var bscIcon = {
|
|
882
883
|
iconBackground: "#ebac0e",
|
|
883
|
-
iconUrl: async () => (await import("./bsc-
|
|
884
|
+
iconUrl: async () => (await import("./bsc-LKNCKWB7.js")).default
|
|
884
885
|
};
|
|
885
886
|
var celoIcon = {
|
|
886
887
|
iconBackground: "#FCFF52",
|
|
887
|
-
iconUrl: async () => (await import("./celo-
|
|
888
|
+
iconUrl: async () => (await import("./celo-3UGAQ3FA.js")).default
|
|
888
889
|
};
|
|
889
890
|
var cronosIcon = {
|
|
890
891
|
iconBackground: "#002D74",
|
|
891
|
-
iconUrl: async () => (await import("./cronos-
|
|
892
|
+
iconUrl: async () => (await import("./cronos-ZQWFYR7X.js")).default
|
|
892
893
|
};
|
|
893
894
|
var ethereumIcon = {
|
|
894
895
|
iconBackground: "#484c50",
|
|
895
|
-
iconUrl: async () => (await import("./ethereum-
|
|
896
|
+
iconUrl: async () => (await import("./ethereum-EQ5JF37Q.js")).default
|
|
896
897
|
};
|
|
897
898
|
var flowIcon = {
|
|
898
899
|
iconBackground: "transparent",
|
|
899
|
-
iconUrl: async () => (await import("./flow-
|
|
900
|
+
iconUrl: async () => (await import("./flow-SZDAO7RI.js")).default
|
|
900
901
|
};
|
|
901
902
|
var gnosisIcon = {
|
|
902
903
|
iconBackground: "#04795c",
|
|
903
|
-
iconUrl: async () => (await import("./gnosis-
|
|
904
|
+
iconUrl: async () => (await import("./gnosis-JNLUBWJA.js")).default
|
|
904
905
|
};
|
|
905
906
|
var hardhatIcon = {
|
|
906
907
|
iconBackground: "#f9f7ec",
|
|
907
|
-
iconUrl: async () => (await import("./hardhat-
|
|
908
|
+
iconUrl: async () => (await import("./hardhat-ZXHXXZ4F.js")).default
|
|
908
909
|
};
|
|
909
910
|
var kaiaIcon = {
|
|
910
911
|
iconBackground: "transparent",
|
|
911
|
-
iconUrl: async () => (await import("./kaia-
|
|
912
|
+
iconUrl: async () => (await import("./kaia-LDZMGDTS.js")).default
|
|
912
913
|
};
|
|
913
914
|
var optimismIcon = {
|
|
914
915
|
iconBackground: "#ff5a57",
|
|
915
|
-
iconUrl: async () => (await import("./optimism-
|
|
916
|
+
iconUrl: async () => (await import("./optimism-7KW4YXCD.js")).default
|
|
916
917
|
};
|
|
917
918
|
var mantaIcon = {
|
|
918
919
|
iconBackground: "#ffffff",
|
|
919
|
-
iconUrl: async () => (await import("./manta-
|
|
920
|
+
iconUrl: async () => (await import("./manta-AXWSHRGV.js")).default
|
|
920
921
|
};
|
|
921
922
|
var mantleIcon = {
|
|
922
923
|
iconBackground: "#000000",
|
|
923
|
-
iconUrl: async () => (await import("./mantle-
|
|
924
|
+
iconUrl: async () => (await import("./mantle-I27DZFXF.js")).default
|
|
924
925
|
};
|
|
925
926
|
var polygonIcon = {
|
|
926
927
|
iconBackground: "#9f71ec",
|
|
927
|
-
iconUrl: async () => (await import("./polygon-
|
|
928
|
+
iconUrl: async () => (await import("./polygon-O6VNIW2F.js")).default
|
|
928
929
|
};
|
|
929
930
|
var xdcIcon = {
|
|
930
931
|
iconBackground: "#f9f7ec",
|
|
931
|
-
iconUrl: async () => (await import("./xdc-
|
|
932
|
+
iconUrl: async () => (await import("./xdc-KO37AHY2.js")).default
|
|
932
933
|
};
|
|
933
934
|
var zetachainIcon = {
|
|
934
935
|
iconBackground: "#000000",
|
|
935
|
-
iconUrl: async () => (await import("./zetachain-
|
|
936
|
+
iconUrl: async () => (await import("./zetachain-CULDO7MF.js")).default
|
|
936
937
|
};
|
|
937
938
|
var zkSyncIcon = {
|
|
938
939
|
iconBackground: "#f9f7ec",
|
|
939
|
-
iconUrl: async () => (await import("./zkSync-
|
|
940
|
+
iconUrl: async () => (await import("./zkSync-VZ5E5WP6.js")).default
|
|
940
941
|
};
|
|
941
942
|
var zoraIcon = {
|
|
942
943
|
iconBackground: "#000000",
|
|
943
|
-
iconUrl: async () => (await import("./zora-
|
|
944
|
+
iconUrl: async () => (await import("./zora-GXTHZKII.js")).default
|
|
944
945
|
};
|
|
945
946
|
var roninIcon = {
|
|
946
947
|
iconBackground: "#1273EA",
|
|
947
|
-
iconUrl: async () => (await import("./ronin-
|
|
948
|
+
iconUrl: async () => (await import("./ronin-NIBR3M4Q.js")).default
|
|
948
949
|
};
|
|
949
950
|
var scrollIcon = {
|
|
950
951
|
iconBackground: "#000000",
|
|
951
|
-
iconUrl: async () => (await import("./scroll-
|
|
952
|
+
iconUrl: async () => (await import("./scroll-7LCBO5E3.js")).default
|
|
952
953
|
};
|
|
953
954
|
var chainMetadataByName = {
|
|
954
955
|
arbitrum: { chainId: 42161, name: "Arbitrum", ...arbitrumIcon },
|
|
@@ -2719,7 +2720,6 @@ import { createContext as createContext8 } from "react";
|
|
|
2719
2720
|
var CoolModeContext = createContext8(false);
|
|
2720
2721
|
|
|
2721
2722
|
// src/components/RainbowKitProvider/InternalPinProvider.tsx
|
|
2722
|
-
import { useWallet as useWallet3 } from "@solana/wallet-adapter-react";
|
|
2723
2723
|
import React15, { useState as useState9, useCallback as useCallback3, useEffect as useEffect10 } from "react";
|
|
2724
2724
|
import { useAccount as useAccount7 } from "wagmi";
|
|
2725
2725
|
|
|
@@ -2959,6 +2959,14 @@ function PinInputModal({
|
|
|
2959
2959
|
}
|
|
2960
2960
|
|
|
2961
2961
|
// src/components/RainbowKitProvider/InternalPinProvider.tsx
|
|
2962
|
+
function useSolanaWalletSafe() {
|
|
2963
|
+
try {
|
|
2964
|
+
const { useWallet: useWallet6 } = __require("@solana/wallet-adapter-react");
|
|
2965
|
+
return useWallet6();
|
|
2966
|
+
} catch (_error) {
|
|
2967
|
+
return { wallet: null };
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2962
2970
|
function InternalPinProvider({
|
|
2963
2971
|
children,
|
|
2964
2972
|
disabled = false
|
|
@@ -2969,7 +2977,7 @@ function InternalPinProvider({
|
|
|
2969
2977
|
const [pinRejecter, setPinRejecter] = useState9(null);
|
|
2970
2978
|
const [error2, setError] = useState9("");
|
|
2971
2979
|
const { connector, isConnected } = useAccount7();
|
|
2972
|
-
const { wallet: solanaWallet } =
|
|
2980
|
+
const { wallet: solanaWallet } = useSolanaWalletSafe();
|
|
2973
2981
|
const requestPin = useCallback3(
|
|
2974
2982
|
(requestPurpose = "transaction") => {
|
|
2975
2983
|
return new Promise((resolve, reject) => {
|
|
@@ -3207,7 +3215,7 @@ function setRainbowKitVersion({ version }) {
|
|
|
3207
3215
|
}
|
|
3208
3216
|
function useFingerprint() {
|
|
3209
3217
|
const fingerprint = useCallback4(() => {
|
|
3210
|
-
setRainbowKitVersion({ version: "2.4.
|
|
3218
|
+
setRainbowKitVersion({ version: "2.4.10" });
|
|
3211
3219
|
}, []);
|
|
3212
3220
|
useEffect12(() => {
|
|
3213
3221
|
fingerprint();
|
|
@@ -3492,7 +3500,7 @@ function useWalletConnectors(mergeEIP6963WithRkConnectors = false) {
|
|
|
3492
3500
|
|
|
3493
3501
|
// src/components/Icons/Assets.tsx
|
|
3494
3502
|
import React19 from "react";
|
|
3495
|
-
var src = async () => (await import("./assets-
|
|
3503
|
+
var src = async () => (await import("./assets-GIFIMHMU.js")).default;
|
|
3496
3504
|
var preloadAssetsIcon = () => loadImages(src);
|
|
3497
3505
|
var AssetsIcon = () => /* @__PURE__ */ React19.createElement(
|
|
3498
3506
|
AsyncImage,
|
|
@@ -3507,7 +3515,7 @@ var AssetsIcon = () => /* @__PURE__ */ React19.createElement(
|
|
|
3507
3515
|
|
|
3508
3516
|
// src/components/Icons/Login.tsx
|
|
3509
3517
|
import React20 from "react";
|
|
3510
|
-
var src2 = async () => (await import("./login-
|
|
3518
|
+
var src2 = async () => (await import("./login-L2V76XPP.js")).default;
|
|
3511
3519
|
var preloadLoginIcon = () => loadImages(src2);
|
|
3512
3520
|
var LoginIcon = () => /* @__PURE__ */ React20.createElement(
|
|
3513
3521
|
AsyncImage,
|
|
@@ -3717,7 +3725,7 @@ var CloseButton = ({
|
|
|
3717
3725
|
};
|
|
3718
3726
|
|
|
3719
3727
|
// src/components/SignIn/SignIn.tsx
|
|
3720
|
-
var signInIcon = async () => (await import("./sign-
|
|
3728
|
+
var signInIcon = async () => (await import("./sign-TGZ6C3LW.js")).default;
|
|
3721
3729
|
function SignIn({
|
|
3722
3730
|
onClose,
|
|
3723
3731
|
onCloseModal
|
|
@@ -5975,16 +5983,12 @@ async function googleLogin() {
|
|
|
5975
5983
|
}
|
|
5976
5984
|
|
|
5977
5985
|
// src/services/AbcAuthService.ts
|
|
5978
|
-
var DEBUG = true;
|
|
5979
5986
|
async function registerUser(params, config2) {
|
|
5980
5987
|
const client = createAbcWaasClient({
|
|
5981
5988
|
waasUrl: config2?.waasUrl || process.env.NEXT_PUBLIC_ABC_WAAS_URL || "",
|
|
5982
5989
|
plain: "",
|
|
5983
5990
|
environment: config2?.environment || "development"
|
|
5984
5991
|
});
|
|
5985
|
-
if (DEBUG) {
|
|
5986
|
-
console.log("[AbcAuthService] \u{1F4DD} Registering user");
|
|
5987
|
-
}
|
|
5988
5992
|
return await client.registerUser(params);
|
|
5989
5993
|
}
|
|
5990
5994
|
async function registerSnsUser(params, config2) {
|
|
@@ -5993,9 +5997,6 @@ async function registerSnsUser(params, config2) {
|
|
|
5993
5997
|
plain: "",
|
|
5994
5998
|
environment: config2?.environment || "development"
|
|
5995
5999
|
});
|
|
5996
|
-
if (DEBUG) {
|
|
5997
|
-
console.log("[AbcAuthService] \u{1F4DD} Registering SNS user");
|
|
5998
|
-
}
|
|
5999
6000
|
return await client.registerSnsUser(params);
|
|
6000
6001
|
}
|
|
6001
6002
|
async function resetPassword(params, config2) {
|
|
@@ -6004,9 +6005,6 @@ async function resetPassword(params, config2) {
|
|
|
6004
6005
|
plain: "",
|
|
6005
6006
|
environment: config2?.environment || "development"
|
|
6006
6007
|
});
|
|
6007
|
-
if (DEBUG) {
|
|
6008
|
-
console.log("[AbcAuthService] \u{1F510} Setting password for user");
|
|
6009
|
-
}
|
|
6010
6008
|
return await client.resetPassword(params);
|
|
6011
6009
|
}
|
|
6012
6010
|
async function emailCheck(email, config2) {
|
|
@@ -6023,9 +6021,6 @@ async function sendOtpCode(email, config2) {
|
|
|
6023
6021
|
plain: "",
|
|
6024
6022
|
environment: config2?.environment || "development"
|
|
6025
6023
|
});
|
|
6026
|
-
if (DEBUG) {
|
|
6027
|
-
console.log("[AbcAuthService] \u{1F4E7} Sending OTP");
|
|
6028
|
-
}
|
|
6029
6024
|
return await client.sendOtpCode(email);
|
|
6030
6025
|
}
|
|
6031
6026
|
async function verifyOtpCode(email, code, config2) {
|
|
@@ -6034,16 +6029,10 @@ async function verifyOtpCode(email, code, config2) {
|
|
|
6034
6029
|
plain: "",
|
|
6035
6030
|
environment: config2?.environment || "development"
|
|
6036
6031
|
});
|
|
6037
|
-
if (DEBUG) {
|
|
6038
|
-
console.log("[AbcAuthService] \u{1F510} Verifying OTP");
|
|
6039
|
-
}
|
|
6040
6032
|
return await client.verifyOtpCodeSignup(email, code);
|
|
6041
6033
|
}
|
|
6042
6034
|
async function loginWithPassword(params, apiServer) {
|
|
6043
6035
|
const talkenApiUrl = apiServer || process.env.NEXT_PUBLIC_API_SERVER || "https://dev.walletapi.talken.io";
|
|
6044
|
-
if (DEBUG) {
|
|
6045
|
-
console.log("[AbcAuthService] \u{1F510} Logging in");
|
|
6046
|
-
}
|
|
6047
6036
|
const response = await fetch(`${talkenApiUrl}/abc/login`, {
|
|
6048
6037
|
method: "POST",
|
|
6049
6038
|
headers: {
|
|
@@ -6063,28 +6052,16 @@ async function loginWithPassword(params, apiServer) {
|
|
|
6063
6052
|
return text ? JSON.parse(text) : {};
|
|
6064
6053
|
}
|
|
6065
6054
|
async function googleLogin2(config2) {
|
|
6066
|
-
if (DEBUG) {
|
|
6067
|
-
console.log("[AbcAuthService] \u{1F510} Starting Google login flow");
|
|
6068
|
-
}
|
|
6069
6055
|
initializeFirebase();
|
|
6070
6056
|
const googleAuth = await googleLogin();
|
|
6071
6057
|
if (!googleAuth) {
|
|
6072
|
-
if (DEBUG) {
|
|
6073
|
-
console.log("[AbcAuthService] \u2139\uFE0F Google login cancelled by user");
|
|
6074
|
-
}
|
|
6075
6058
|
return null;
|
|
6076
6059
|
}
|
|
6077
|
-
if (DEBUG) {
|
|
6078
|
-
console.log("[AbcAuthService] \u2705 Google OAuth successful");
|
|
6079
|
-
}
|
|
6080
6060
|
const client = createAbcWaasClient({
|
|
6081
6061
|
waasUrl: config2?.waasUrl || process.env.NEXT_PUBLIC_ABC_WAAS_URL || "",
|
|
6082
6062
|
plain: "",
|
|
6083
6063
|
environment: config2?.environment || "development"
|
|
6084
6064
|
});
|
|
6085
|
-
if (DEBUG) {
|
|
6086
|
-
console.log("[AbcAuthService] \u{1F510} Calling snsLogin API");
|
|
6087
|
-
}
|
|
6088
6065
|
const isIframe = typeof window !== "undefined" && window.self !== window.top;
|
|
6089
6066
|
const response = await client.snsLogin({
|
|
6090
6067
|
token: googleAuth.idToken,
|
|
@@ -6094,9 +6071,6 @@ async function googleLogin2(config2) {
|
|
|
6094
6071
|
// Fixed audience URL from reference
|
|
6095
6072
|
isIframe
|
|
6096
6073
|
});
|
|
6097
|
-
if (DEBUG) {
|
|
6098
|
-
console.log("[AbcAuthService] \u2705 Google login complete");
|
|
6099
|
-
}
|
|
6100
6074
|
return response;
|
|
6101
6075
|
}
|
|
6102
6076
|
|
|
@@ -6827,7 +6801,7 @@ var isHexString = (color) => {
|
|
|
6827
6801
|
|
|
6828
6802
|
// src/components/Icons/Connect.tsx
|
|
6829
6803
|
import React55 from "react";
|
|
6830
|
-
var src3 = async () => (await import("./connect-
|
|
6804
|
+
var src3 = async () => (await import("./connect-CICKFS4L.js")).default;
|
|
6831
6805
|
var preloadConnectIcon = () => loadImages(src3);
|
|
6832
6806
|
var ConnectIcon = () => /* @__PURE__ */ React55.createElement(
|
|
6833
6807
|
AsyncImage,
|
|
@@ -6843,7 +6817,7 @@ var ConnectIcon = () => /* @__PURE__ */ React55.createElement(
|
|
|
6843
6817
|
|
|
6844
6818
|
// src/components/Icons/Create.tsx
|
|
6845
6819
|
import React56 from "react";
|
|
6846
|
-
var src4 = async () => (await import("./create-
|
|
6820
|
+
var src4 = async () => (await import("./create-5SJIEM24.js")).default;
|
|
6847
6821
|
var preloadCreateIcon = () => loadImages(src4);
|
|
6848
6822
|
var CreateIcon = () => /* @__PURE__ */ React56.createElement(
|
|
6849
6823
|
AsyncImage,
|
|
@@ -6859,7 +6833,7 @@ var CreateIcon = () => /* @__PURE__ */ React56.createElement(
|
|
|
6859
6833
|
|
|
6860
6834
|
// src/components/Icons/Refresh.tsx
|
|
6861
6835
|
import React57 from "react";
|
|
6862
|
-
var src5 = async () => (await import("./refresh-
|
|
6836
|
+
var src5 = async () => (await import("./refresh-HBSYGKAX.js")).default;
|
|
6863
6837
|
var preloadRefreshIcon = () => loadImages(src5);
|
|
6864
6838
|
var RefreshIcon = () => /* @__PURE__ */ React57.createElement(
|
|
6865
6839
|
AsyncImage,
|
|
@@ -6875,7 +6849,7 @@ var RefreshIcon = () => /* @__PURE__ */ React57.createElement(
|
|
|
6875
6849
|
|
|
6876
6850
|
// src/components/Icons/Scan.tsx
|
|
6877
6851
|
import React58 from "react";
|
|
6878
|
-
var src6 = async () => (await import("./scan-
|
|
6852
|
+
var src6 = async () => (await import("./scan-QFKMQ54Z.js")).default;
|
|
6879
6853
|
var preloadScanIcon = () => loadImages(src6);
|
|
6880
6854
|
var ScanIcon = () => /* @__PURE__ */ React58.createElement(
|
|
6881
6855
|
AsyncImage,
|
|
@@ -7037,21 +7011,21 @@ var getBrowserSrc = async () => {
|
|
|
7037
7011
|
const browser = getBrowser();
|
|
7038
7012
|
switch (browser) {
|
|
7039
7013
|
case "Arc" /* Arc */:
|
|
7040
|
-
return (await import("./Arc-
|
|
7014
|
+
return (await import("./Arc-YV22FANA.js")).default;
|
|
7041
7015
|
case "Brave" /* Brave */:
|
|
7042
|
-
return (await import("./Brave-
|
|
7016
|
+
return (await import("./Brave-VWDHFYI5.js")).default;
|
|
7043
7017
|
case "Chrome" /* Chrome */:
|
|
7044
|
-
return (await import("./Chrome-
|
|
7018
|
+
return (await import("./Chrome-VL7CYHGL.js")).default;
|
|
7045
7019
|
case "Edge" /* Edge */:
|
|
7046
|
-
return (await import("./Edge-
|
|
7020
|
+
return (await import("./Edge-6GQGEL5X.js")).default;
|
|
7047
7021
|
case "Firefox" /* Firefox */:
|
|
7048
|
-
return (await import("./Firefox-
|
|
7022
|
+
return (await import("./Firefox-SY6PCZK3.js")).default;
|
|
7049
7023
|
case "Opera" /* Opera */:
|
|
7050
|
-
return (await import("./Opera-
|
|
7024
|
+
return (await import("./Opera-H2VDEHSS.js")).default;
|
|
7051
7025
|
case "Safari" /* Safari */:
|
|
7052
|
-
return (await import("./Safari-
|
|
7026
|
+
return (await import("./Safari-5BYQNFM3.js")).default;
|
|
7053
7027
|
default:
|
|
7054
|
-
return (await import("./Browser-
|
|
7028
|
+
return (await import("./Browser-2ZOVSFMK.js")).default;
|
|
7055
7029
|
}
|
|
7056
7030
|
};
|
|
7057
7031
|
var preloadBrowserIcon = () => loadImages(getBrowserSrc);
|
|
@@ -7059,13 +7033,13 @@ var getPlatformSrc = async () => {
|
|
|
7059
7033
|
const platform = getPlatform();
|
|
7060
7034
|
switch (platform) {
|
|
7061
7035
|
case "Windows" /* Windows */:
|
|
7062
|
-
return (await import("./Windows-
|
|
7036
|
+
return (await import("./Windows-PHGTMIC7.js")).default;
|
|
7063
7037
|
case "macOS" /* MacOS */:
|
|
7064
|
-
return (await import("./Macos-
|
|
7038
|
+
return (await import("./Macos-ZENZDYKP.js")).default;
|
|
7065
7039
|
case "Linux" /* Linux */:
|
|
7066
|
-
return (await import("./Linux-
|
|
7040
|
+
return (await import("./Linux-OP3H6PHU.js")).default;
|
|
7067
7041
|
default:
|
|
7068
|
-
return (await import("./Linux-
|
|
7042
|
+
return (await import("./Linux-OP3H6PHU.js")).default;
|
|
7069
7043
|
}
|
|
7070
7044
|
};
|
|
7071
7045
|
var preloadPlatformIcon = () => loadImages(getPlatformSrc);
|
|
@@ -10387,7 +10361,7 @@ function ConnectOptions({ onClose }) {
|
|
|
10387
10361
|
}
|
|
10388
10362
|
|
|
10389
10363
|
// src/components/ConnectOptions/MultiChainConnectOptions.tsx
|
|
10390
|
-
import { useWallet as
|
|
10364
|
+
import { useWallet as useWallet4 } from "@solana/wallet-adapter-react";
|
|
10391
10365
|
import React72, { useContext as useContext23, useCallback as useCallback14, useState as useState28 } from "react";
|
|
10392
10366
|
|
|
10393
10367
|
// src/components/ChainSelector/ChainSelector.tsx
|
|
@@ -10453,7 +10427,7 @@ function ChainSelector({
|
|
|
10453
10427
|
}
|
|
10454
10428
|
|
|
10455
10429
|
// src/components/SolanaWalletList/SolanaWalletList.tsx
|
|
10456
|
-
import { useWallet as
|
|
10430
|
+
import { useWallet as useWallet3 } from "@solana/wallet-adapter-react";
|
|
10457
10431
|
import React71, { useCallback as useCallback13, useState as useState27 } from "react";
|
|
10458
10432
|
|
|
10459
10433
|
// src/components/SolanaWalletList/SolanaWalletList.css.ts
|
|
@@ -10470,7 +10444,7 @@ function SolanaWalletList2({
|
|
|
10470
10444
|
onConnect,
|
|
10471
10445
|
onError
|
|
10472
10446
|
}) {
|
|
10473
|
-
const { wallets, select, connect, connecting } =
|
|
10447
|
+
const { wallets, select, connect, connecting } = useWallet3();
|
|
10474
10448
|
const [connectingWallet, setConnectingWallet] = useState27(null);
|
|
10475
10449
|
const handleWalletClick = useCallback13(
|
|
10476
10450
|
async (walletName2) => {
|
|
@@ -10565,7 +10539,7 @@ function MultiChainConnectOptions({
|
|
|
10565
10539
|
return /* @__PURE__ */ React72.createElement(UnifiedWalletList, { onClose });
|
|
10566
10540
|
}
|
|
10567
10541
|
function UnifiedWalletList({ onClose }) {
|
|
10568
|
-
const { wallets: solanaWallets, select, connecting } =
|
|
10542
|
+
const { wallets: solanaWallets, select, connecting } = useWallet4();
|
|
10569
10543
|
const _multiChainContext = useContext23(MultiChainContext);
|
|
10570
10544
|
const [connectingWallet, setConnectingWallet] = useState28(null);
|
|
10571
10545
|
const handleSolanaWalletClick = useCallback14(
|
|
@@ -11645,7 +11619,7 @@ var coinbaseWallet = ({ appName, appIcon }) => {
|
|
|
11645
11619
|
name: "Coinbase Wallet",
|
|
11646
11620
|
shortName: "Coinbase",
|
|
11647
11621
|
rdns: "com.coinbase.wallet",
|
|
11648
|
-
iconUrl: async () => (await import("./coinbaseWallet-
|
|
11622
|
+
iconUrl: async () => (await import("./coinbaseWallet-LVQLZHBK.js")).default,
|
|
11649
11623
|
iconAccent: "#2c5ff6",
|
|
11650
11624
|
iconBackground: "#2c5ff6",
|
|
11651
11625
|
// If the coinbase wallet browser extension is not installed, a popup will appear
|
|
@@ -11817,7 +11791,7 @@ var metaMaskWallet = ({
|
|
|
11817
11791
|
id: "metaMask",
|
|
11818
11792
|
name: "MetaMask",
|
|
11819
11793
|
rdns: "io.metamask",
|
|
11820
|
-
iconUrl: async () => (await import("./metaMaskWallet-
|
|
11794
|
+
iconUrl: async () => (await import("./metaMaskWallet-ZOW7SFN3.js")).default,
|
|
11821
11795
|
iconAccent: "#f6851a",
|
|
11822
11796
|
iconBackground: "#fff",
|
|
11823
11797
|
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
@@ -11907,7 +11881,7 @@ var rainbowWallet = ({
|
|
|
11907
11881
|
id: "rainbow",
|
|
11908
11882
|
name: "Rainbow",
|
|
11909
11883
|
rdns: "me.rainbow",
|
|
11910
|
-
iconUrl: async () => (await import("./rainbowWallet-
|
|
11884
|
+
iconUrl: async () => (await import("./rainbowWallet-3H5RIOTG.js")).default,
|
|
11911
11885
|
iconBackground: "#0c2f78",
|
|
11912
11886
|
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
11913
11887
|
downloadUrls: {
|
|
@@ -11956,7 +11930,7 @@ var safeWallet = () => ({
|
|
|
11956
11930
|
name: "Safe",
|
|
11957
11931
|
iconAccent: "#12ff80",
|
|
11958
11932
|
iconBackground: "#fff",
|
|
11959
|
-
iconUrl: async () => (await import("./safeWallet-
|
|
11933
|
+
iconUrl: async () => (await import("./safeWallet-5S6VLRXL.js")).default,
|
|
11960
11934
|
installed: (
|
|
11961
11935
|
// Only allowed in iframe context
|
|
11962
11936
|
// borrowed from wagmi safe connector
|
|
@@ -11985,7 +11959,7 @@ var walletConnectWallet = ({
|
|
|
11985
11959
|
id: "walletConnect",
|
|
11986
11960
|
name: "WalletConnect",
|
|
11987
11961
|
installed: void 0,
|
|
11988
|
-
iconUrl: async () => (await import("./walletConnectWallet-
|
|
11962
|
+
iconUrl: async () => (await import("./walletConnectWallet-NRHPTNNN.js")).default,
|
|
11989
11963
|
iconBackground: "#3b99fc",
|
|
11990
11964
|
qrCode: { getUri },
|
|
11991
11965
|
createConnector: getWalletConnectConnector({
|
|
@@ -12225,7 +12199,7 @@ import React80, {
|
|
|
12225
12199
|
useEffect as useEffect28,
|
|
12226
12200
|
useCallback as useCallback17
|
|
12227
12201
|
} from "react";
|
|
12228
|
-
var
|
|
12202
|
+
var DEBUG = true;
|
|
12229
12203
|
var STORAGE_PREFIX = "talkenkit_abc_";
|
|
12230
12204
|
var AbcAuthContext = createContext15(null);
|
|
12231
12205
|
function useAbcAuth() {
|
|
@@ -12260,7 +12234,7 @@ function AbcAuthProvider({ children }) {
|
|
|
12260
12234
|
}, [state.tokens.expiresAt]);
|
|
12261
12235
|
const refreshToken = useCallback17(async () => {
|
|
12262
12236
|
if (!state.tokens.refreshToken) {
|
|
12263
|
-
if (
|
|
12237
|
+
if (DEBUG)
|
|
12264
12238
|
console.log("[AbcAuthProvider] No refresh token available");
|
|
12265
12239
|
return false;
|
|
12266
12240
|
}
|
|
@@ -12307,7 +12281,7 @@ function AbcAuthProvider({ children }) {
|
|
|
12307
12281
|
);
|
|
12308
12282
|
}
|
|
12309
12283
|
localStorage.setItem(`${STORAGE_PREFIX}expires_at`, String(expiresAt));
|
|
12310
|
-
if (
|
|
12284
|
+
if (DEBUG)
|
|
12311
12285
|
console.log("[AbcAuthProvider] \u2705 Token refreshed");
|
|
12312
12286
|
return true;
|
|
12313
12287
|
}
|
|
@@ -12354,7 +12328,7 @@ function AbcAuthProvider({ children }) {
|
|
|
12354
12328
|
},
|
|
12355
12329
|
pinHash: hashedPin
|
|
12356
12330
|
}));
|
|
12357
|
-
if (
|
|
12331
|
+
if (DEBUG)
|
|
12358
12332
|
console.log("[AbcAuthProvider] \u2705 Unlocked with PIN");
|
|
12359
12333
|
return true;
|
|
12360
12334
|
} catch (error2) {
|
|
@@ -12376,7 +12350,7 @@ function AbcAuthProvider({ children }) {
|
|
|
12376
12350
|
for (const key of keys) {
|
|
12377
12351
|
localStorage.removeItem(key);
|
|
12378
12352
|
}
|
|
12379
|
-
if (
|
|
12353
|
+
if (DEBUG)
|
|
12380
12354
|
console.log("[AbcAuthProvider] \u2705 Logged out");
|
|
12381
12355
|
}, []);
|
|
12382
12356
|
const setAuthState = useCallback17((partial) => {
|
|
@@ -12418,7 +12392,7 @@ function AbcAuthProvider({ children }) {
|
|
|
12418
12392
|
},
|
|
12419
12393
|
pinHash
|
|
12420
12394
|
});
|
|
12421
|
-
if (
|
|
12395
|
+
if (DEBUG)
|
|
12422
12396
|
console.log("[AbcAuthProvider] \u2705 Session restored", {
|
|
12423
12397
|
hasEvm: !!authState.evmWallet || !!authState.wallet,
|
|
12424
12398
|
hasSolana: !!authState.solanaWallet
|
|
@@ -12430,7 +12404,7 @@ function AbcAuthProvider({ children }) {
|
|
|
12430
12404
|
};
|
|
12431
12405
|
restoreSession();
|
|
12432
12406
|
const handleStorageUpdate = () => {
|
|
12433
|
-
if (
|
|
12407
|
+
if (DEBUG)
|
|
12434
12408
|
console.log("[AbcAuthProvider] \u{1F504} Storage updated, restoring session");
|
|
12435
12409
|
restoreSession();
|
|
12436
12410
|
};
|
|
@@ -12448,7 +12422,7 @@ function AbcAuthProvider({ children }) {
|
|
|
12448
12422
|
const checkAndRefresh = () => {
|
|
12449
12423
|
const timeUntilExpiry = state.tokens.expiresAt - Date.now();
|
|
12450
12424
|
if (timeUntilExpiry < 3e4 && timeUntilExpiry > 0) {
|
|
12451
|
-
if (
|
|
12425
|
+
if (DEBUG)
|
|
12452
12426
|
console.log("[AbcAuthProvider] Auto-refreshing token...");
|
|
12453
12427
|
refreshToken();
|
|
12454
12428
|
}
|
|
@@ -12540,7 +12514,7 @@ function PinProvider({ children }) {
|
|
|
12540
12514
|
if (provider && typeof provider.setRequestPinCallback === "function") {
|
|
12541
12515
|
provider.setRequestPinCallback(() => requestPin("transaction"));
|
|
12542
12516
|
}
|
|
12543
|
-
} catch (
|
|
12517
|
+
} catch (_error) {
|
|
12544
12518
|
}
|
|
12545
12519
|
};
|
|
12546
12520
|
getProvider();
|
|
@@ -12551,7 +12525,7 @@ function PinProvider({ children }) {
|
|
|
12551
12525
|
if (provider && typeof provider.setRequestPinCallback === "function") {
|
|
12552
12526
|
provider.setRequestPinCallback(void 0);
|
|
12553
12527
|
}
|
|
12554
|
-
} catch (
|
|
12528
|
+
} catch (_error) {
|
|
12555
12529
|
}
|
|
12556
12530
|
};
|
|
12557
12531
|
cleanup();
|
|
@@ -12576,14 +12550,14 @@ function PinProvider({ children }) {
|
|
|
12576
12550
|
function usePin() {
|
|
12577
12551
|
const context = useContext31(PinContext);
|
|
12578
12552
|
if (!context) {
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12553
|
+
return {
|
|
12554
|
+
requestPin: async () => {
|
|
12555
|
+
if (typeof window === "undefined") {
|
|
12582
12556
|
throw new Error("PIN requests are only available on the client side");
|
|
12583
12557
|
}
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
12558
|
+
throw new Error("PIN provider not available");
|
|
12559
|
+
}
|
|
12560
|
+
};
|
|
12587
12561
|
}
|
|
12588
12562
|
return context;
|
|
12589
12563
|
}
|
|
@@ -12644,7 +12618,7 @@ function useBitcoinWallet() {
|
|
|
12644
12618
|
});
|
|
12645
12619
|
return;
|
|
12646
12620
|
}
|
|
12647
|
-
const { AbcBitcoinProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-
|
|
12621
|
+
const { AbcBitcoinProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-OQWH4ES2.js");
|
|
12648
12622
|
const client = createAbcWaasApiClient2({
|
|
12649
12623
|
waasUrl: process.env.NEXT_PUBLIC_ABC_WAAS_URL || "",
|
|
12650
12624
|
plain: "",
|
|
@@ -12704,13 +12678,18 @@ function useBitcoinWallet() {
|
|
|
12704
12678
|
}
|
|
12705
12679
|
|
|
12706
12680
|
// src/hooks/useSolanaWallet.ts
|
|
12707
|
-
import { useWallet as
|
|
12681
|
+
import { useWallet as useWallet5 } from "@solana/wallet-adapter-react";
|
|
12708
12682
|
import { useEffect as useEffect31, useState as useState35 } from "react";
|
|
12709
12683
|
import { useAccount as useAccount22 } from "wagmi";
|
|
12710
12684
|
function useSolanaWallet() {
|
|
12711
12685
|
const { isConnected: evmConnected, connector } = useAccount22();
|
|
12712
12686
|
const { requestPin } = usePin();
|
|
12713
|
-
const externalWallet =
|
|
12687
|
+
const externalWallet = useWallet5();
|
|
12688
|
+
const [windowSolanaState, setWindowSolanaState] = useState35({
|
|
12689
|
+
connected: false,
|
|
12690
|
+
publicKey: null,
|
|
12691
|
+
walletName: null
|
|
12692
|
+
});
|
|
12714
12693
|
const [abcWallet, setAbcWallet] = useState35({
|
|
12715
12694
|
address: null,
|
|
12716
12695
|
publicKey: null,
|
|
@@ -12757,7 +12736,7 @@ function useSolanaWallet() {
|
|
|
12757
12736
|
});
|
|
12758
12737
|
return;
|
|
12759
12738
|
}
|
|
12760
|
-
const { AbcSolanaProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-
|
|
12739
|
+
const { AbcSolanaProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-OQWH4ES2.js");
|
|
12761
12740
|
const client = createAbcWaasApiClient2({
|
|
12762
12741
|
waasUrl: process.env.NEXT_PUBLIC_ABC_WAAS_URL || "",
|
|
12763
12742
|
plain: "",
|
|
@@ -12790,6 +12769,54 @@ function useSolanaWallet() {
|
|
|
12790
12769
|
useEffect31(() => {
|
|
12791
12770
|
refreshAbcWallet();
|
|
12792
12771
|
}, [evmConnected, connector?.id]);
|
|
12772
|
+
useEffect31(() => {
|
|
12773
|
+
if (typeof window === "undefined")
|
|
12774
|
+
return;
|
|
12775
|
+
const checkWindowSolana = () => {
|
|
12776
|
+
const solana2 = window.solana;
|
|
12777
|
+
if (solana2) {
|
|
12778
|
+
const connected = solana2.isConnected === true;
|
|
12779
|
+
const publicKey = solana2.publicKey?.toString() || null;
|
|
12780
|
+
const walletName2 = solana2.isPhantom ? "Phantom" : solana2.isSolflare ? "Solflare" : solana2.isBackpack ? "Backpack" : "External Wallet";
|
|
12781
|
+
setWindowSolanaState((prev) => {
|
|
12782
|
+
if (prev.connected !== connected || prev.publicKey !== publicKey || prev.walletName !== walletName2) {
|
|
12783
|
+
if (connected && !externalWallet.connected) {
|
|
12784
|
+
console.warn(
|
|
12785
|
+
"[TalkenKit] Detected external Solana wallet via window.solana but wallet-adapter context is not connected.",
|
|
12786
|
+
"This usually means you have duplicate WalletProvider wrappers.",
|
|
12787
|
+
"Remove manual ConnectionProvider/WalletProvider when using TalkenKitProvider with solanaConfig."
|
|
12788
|
+
);
|
|
12789
|
+
}
|
|
12790
|
+
return { connected, publicKey, walletName: walletName2 };
|
|
12791
|
+
}
|
|
12792
|
+
return prev;
|
|
12793
|
+
});
|
|
12794
|
+
} else {
|
|
12795
|
+
setWindowSolanaState({
|
|
12796
|
+
connected: false,
|
|
12797
|
+
publicKey: null,
|
|
12798
|
+
walletName: null
|
|
12799
|
+
});
|
|
12800
|
+
}
|
|
12801
|
+
};
|
|
12802
|
+
checkWindowSolana();
|
|
12803
|
+
const interval = setInterval(checkWindowSolana, 500);
|
|
12804
|
+
const solana = window.solana;
|
|
12805
|
+
if (solana) {
|
|
12806
|
+
solana.on?.("connect", checkWindowSolana);
|
|
12807
|
+
solana.on?.("disconnect", checkWindowSolana);
|
|
12808
|
+
solana.on?.("accountChanged", checkWindowSolana);
|
|
12809
|
+
}
|
|
12810
|
+
return () => {
|
|
12811
|
+
clearInterval(interval);
|
|
12812
|
+
const solana2 = window.solana;
|
|
12813
|
+
if (solana2) {
|
|
12814
|
+
solana2.off?.("connect", checkWindowSolana);
|
|
12815
|
+
solana2.off?.("disconnect", checkWindowSolana);
|
|
12816
|
+
solana2.off?.("accountChanged", checkWindowSolana);
|
|
12817
|
+
}
|
|
12818
|
+
};
|
|
12819
|
+
}, [externalWallet.connected]);
|
|
12793
12820
|
const activeWallet = abcWallet.isConnected ? {
|
|
12794
12821
|
...abcWallet,
|
|
12795
12822
|
type: "abc",
|
|
@@ -12802,6 +12829,15 @@ function useSolanaWallet() {
|
|
|
12802
12829
|
type: "external",
|
|
12803
12830
|
walletName: externalWallet.wallet?.adapter.name || "External Wallet",
|
|
12804
12831
|
provider: null
|
|
12832
|
+
} : windowSolanaState.connected ? {
|
|
12833
|
+
// Fallback to window.solana (for misconfigured providers)
|
|
12834
|
+
address: windowSolanaState.publicKey,
|
|
12835
|
+
publicKey: windowSolanaState.publicKey,
|
|
12836
|
+
network: process.env.NEXT_PUBLIC_ENVIRONMENT === "production" ? "solana" : "solana_devnet",
|
|
12837
|
+
isConnected: true,
|
|
12838
|
+
type: "external",
|
|
12839
|
+
walletName: windowSolanaState.walletName || "External Wallet",
|
|
12840
|
+
provider: null
|
|
12805
12841
|
} : {
|
|
12806
12842
|
address: null,
|
|
12807
12843
|
publicKey: null,
|