@pear-protocol/symmio-client 0.2.37 → 0.2.38
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/react/index.js +39 -0
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +39 -0
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -826,6 +826,12 @@ function useSymmAuth(params) {
|
|
|
826
826
|
clearToken(address, chainId);
|
|
827
827
|
}
|
|
828
828
|
}, [address, chainId, clearToken]);
|
|
829
|
+
console.log("symm auth", {
|
|
830
|
+
address,
|
|
831
|
+
chainId,
|
|
832
|
+
walletClient,
|
|
833
|
+
symmCoreClient
|
|
834
|
+
});
|
|
829
835
|
react.useEffect(() => {
|
|
830
836
|
const previousAddress = previousAddressRef.current;
|
|
831
837
|
const previousChainId = previousChainIdRef.current;
|
|
@@ -845,12 +851,28 @@ function useSymmAuth(params) {
|
|
|
845
851
|
previousAddress,
|
|
846
852
|
previousChainId
|
|
847
853
|
});
|
|
854
|
+
console.log("bootstrap:dependencies", {
|
|
855
|
+
address,
|
|
856
|
+
chainId,
|
|
857
|
+
hasWalletClient: !!walletClient,
|
|
858
|
+
hasSymmCoreClient: !!symmCoreClient,
|
|
859
|
+
hasRefreshAuth: !!refreshAuthRef.current,
|
|
860
|
+
addressChanged,
|
|
861
|
+
chainChanged,
|
|
862
|
+
previousAddress,
|
|
863
|
+
previousChainId
|
|
864
|
+
});
|
|
848
865
|
if (!address) {
|
|
849
866
|
logSymmAuth("bootstrap:skip-no-address", {
|
|
850
867
|
chainId,
|
|
851
868
|
hasWalletClient: !!walletClient,
|
|
852
869
|
hasSymmCoreClient: !!symmCoreClient
|
|
853
870
|
});
|
|
871
|
+
console.log("bootstrap:skip-no-address", {
|
|
872
|
+
chainId,
|
|
873
|
+
hasWalletClient: !!walletClient,
|
|
874
|
+
hasSymmCoreClient: !!symmCoreClient
|
|
875
|
+
});
|
|
854
876
|
return;
|
|
855
877
|
}
|
|
856
878
|
const userAddress = address;
|
|
@@ -866,6 +888,13 @@ function useSymmAuth(params) {
|
|
|
866
888
|
hasSymmCoreClient: !!symmCoreClient,
|
|
867
889
|
hasRefreshAuth: !!refreshAuthRef.current
|
|
868
890
|
});
|
|
891
|
+
console.log("bootstrap:run", {
|
|
892
|
+
userAddress,
|
|
893
|
+
chainId,
|
|
894
|
+
hasWalletClient: !!walletClient,
|
|
895
|
+
hasSymmCoreClient: !!symmCoreClient,
|
|
896
|
+
hasRefreshAuth: !!refreshAuthRef.current
|
|
897
|
+
});
|
|
869
898
|
let targets = [userAddress];
|
|
870
899
|
if (symmCoreClient) {
|
|
871
900
|
try {
|
|
@@ -882,12 +911,22 @@ function useSymmAuth(params) {
|
|
|
882
911
|
chainId,
|
|
883
912
|
subaccounts
|
|
884
913
|
});
|
|
914
|
+
console.log("bootstrap:subaccounts-resolved", {
|
|
915
|
+
userAddress,
|
|
916
|
+
chainId,
|
|
917
|
+
subaccounts
|
|
918
|
+
});
|
|
885
919
|
} catch (error) {
|
|
886
920
|
logSymmAuth("bootstrap:subaccounts-failed", {
|
|
887
921
|
userAddress,
|
|
888
922
|
chainId,
|
|
889
923
|
error: error instanceof Error ? error.message : String(error)
|
|
890
924
|
});
|
|
925
|
+
console.log("bootstrap:subaccounts-failed", {
|
|
926
|
+
userAddress,
|
|
927
|
+
chainId,
|
|
928
|
+
error: error instanceof Error ? error.message : String(error)
|
|
929
|
+
});
|
|
891
930
|
}
|
|
892
931
|
}
|
|
893
932
|
const uniqueTargets = [...new Set(targets)].filter(
|