Skip to content

Commit

Permalink
upgraded daut
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtmeeseeks committed May 27, 2024
1 parent a83bc79 commit 859271c
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@apollo/client": "^3.9.1",
"@aut-labs/abi-types": "^0.0.75-dev",
"@aut-labs/connector": "^0.0.93",
"@aut-labs/d-aut": "^1.0.161-dev",
"@aut-labs/d-aut": "^1.0.163-dev",
"@aut-labs/sdk": "^0.0.160-dev",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
Expand Down
2 changes: 2 additions & 0 deletions src/api/holder.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export const fetchHolder = createAsyncThunk(
image: autIdMetadata.image,
description: autIdMetadata.description,
properties: {
...autIdMetadata.properties,
avatar,
thumbnailAvatar,
timestamp,
Expand Down Expand Up @@ -300,6 +301,7 @@ export const updateProfile = createAsyncThunk(
autIdData.description = updatedUser.description;
autIdData.properties.avatar = updatedUser.properties.avatar;
autIdData.properties.socials = updatedUser.properties.socials;
autIdData.properties.bio = updatedUser.properties.bio;
window.localStorage.setItem("aut-data", JSON.stringify(autIdData));
} catch (err) {
console.log(err);
Expand Down
1 change: 0 additions & 1 deletion src/components/AutChangeCommitment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export function AutChangeCommitmentDialog(props: CommitmentDialogProps) {
})
);
if (result.meta.requestStatus === "fulfilled") {
console.log("changed", result);
props.onClose();
}
};
Expand Down
2 changes: 0 additions & 2 deletions src/components/AutInteractionsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ export function useBackendJwt() {
domain: "localhost:5001"
};
const signature = await signer.signMessage(JSON.stringify(message));
console.log("signature: ", signature);
console.log(JSON.stringify(message));

const response = await axios.post(
`${environment.interactionsApiUrl}/auth/token`,
Expand Down
2 changes: 0 additions & 2 deletions src/components/InteractionMap/misc/map-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ function generateLinks(
is: calculateIS(node, centralNode, centralNode)
}));

console.log(centralNode, nodes);

const interNodeLinks: LinkObject<MapNode, MapLink>[] = [];
for (let i = 0; i < nodes.length; i++) {
for (let j = i + 1; j < nodes.length; j++) {
Expand Down
1 change: 0 additions & 1 deletion src/components/InteractionMap/misc/pl-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ export const getProximityLevels = (
};
});
const baseSpacing = nodeDiameter * 2.5;
console.log(baseSpacing, plValues);
plValues.forEach((plConfig, index) => {
if (index > 0) {
plConfig.radius += index * baseSpacing;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/AutHolder/AutLeft/AutProfileEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const AutProfileEdit = () => {
const { control, handleSubmit, watch } = useForm({
mode: "onChange",
defaultValues: {
bio: holderData?.properties?.bio,
avatar: holderData?.properties?.avatar,
socials: (holderData?.properties?.socials || []).map((social) => {
return {
Expand Down Expand Up @@ -340,7 +341,6 @@ const AutProfileEdit = () => {
const { prefix, hidePrefix, placeholder } =
socialUrls[Object.keys(socialUrls)[index]];

console.log(prefix, placeholder, index);
return (
<FieldWrapper key={`socials.${index}`}>
<SvgIcon
Expand Down
9 changes: 0 additions & 9 deletions src/pages/AutHolder/AutUserTabs/InteractionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,6 @@ const InteractionListItem = memo(
return !isLoading && !isActive;
}, [status, isLoading, isActive]);

console.log(
isLoading,
isActive,
isIdle,
chosenInteractionForACtion,
interaction
);

return (
<Box
sx={{
Expand Down Expand Up @@ -210,7 +202,6 @@ const InteractionList = ({ isLoading = false, interactions = [] }: any) => {
})
);
await useAuthenticatedAction(async (jwt) => {
console.log(jwt);
setTimeout(() => {
setVerifySuccess(true);
dispatch(
Expand Down
2 changes: 0 additions & 2 deletions src/pages/AutHome/AutSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ const AutSearch = (props: AutSearchProps) => {
event: any,
newValue: UserProfile | null
) => {
console.log(newValue, "NEW VALUE", options);
setOptions(
newValue ? [newValue, ...options] : options
);
Expand Down Expand Up @@ -423,7 +422,6 @@ const AutSearch = (props: AutSearchProps) => {
}}
onInputChange={(event, newInputValue) => {
setInputValue(newInputValue);
console.log(newInputValue, "NEW INPUT VALUE");
}}
renderInput={(params) => (
<AutTextField
Expand Down
1 change: 0 additions & 1 deletion src/pages/Oauth2/Callback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const Callback = () => {
error: decodeURI(error) || "OAuth2 error: An error has occured."
});
} else {
console.log("POST MESSAGE");
window.opener.postMessage({
type: "OAUTH_RESPONSE",
payload
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@
"@web3auth/wallet-services-plugin" "^8.0.1"
"@web3auth/web3auth-wagmi-connector" "^6.0.0"

"@aut-labs/d-aut@^1.0.161-dev":
version "1.0.161-dev"
resolved "https://registry.yarnpkg.com/@aut-labs/d-aut/-/d-aut-1.0.161-dev.tgz#fe5d5182381e9c4a3b6e6ce33ad9afa62784cebc"
integrity sha512-rJLStfY5jQKYLjsQHLDaNzF6PsoBomZm8BPcOCI7pW+5NnXbvJ+fNOLwLll0qt1no01Aim8JWPMuhzH+ey6eUg==
"@aut-labs/d-aut@^1.0.163-dev":
version "1.0.163-dev"
resolved "https://registry.yarnpkg.com/@aut-labs/d-aut/-/d-aut-1.0.163-dev.tgz#ea26d9f51cf8daf88594b4f09fda9a9cea422916"
integrity sha512-C5v/+/W/SqfJqguuWwX8uyt7Dp2SZ2sW7aZfGd2R3/+Kh14M9QRfT8NGrSuBtonFYT75vT+updNuNIK/Ie0zyQ==

"@aut-labs/sdk@^0.0.160-dev":
version "0.0.160-dev"
Expand Down

0 comments on commit 859271c

Please sign in to comment.