diff --git a/infra/rooch-portal-v2/package.json b/infra/rooch-portal-v2/package.json index 9083ec8d19..3b8193847f 100644 --- a/infra/rooch-portal-v2/package.json +++ b/infra/rooch-portal-v2/package.json @@ -41,8 +41,8 @@ "@mui/x-data-grid": "^7.7.0", "@mui/x-date-pickers": "^7.7.0", "@mui/x-tree-view": "^7.7.0", - "@roochnetwork/rooch-sdk": "0.2.7", - "@roochnetwork/rooch-sdk-kit": "0.2.7", + "@roochnetwork/rooch-sdk": "0.2.8", + "@roochnetwork/rooch-sdk-kit": "0.2.8", "@tanstack/react-query": "^5.51.11", "@types/react-copy-to-clipboard": "^5.0.7", "@types/react-syntax-highlighter": "^15.5.13", diff --git a/infra/rooch-portal-v2/src/sections/settings/components/session-key-row-item.tsx b/infra/rooch-portal-v2/src/sections/settings/components/session-key-row-item.tsx index b3db2e5f18..a40936d63f 100644 --- a/infra/rooch-portal-v2/src/sections/settings/components/session-key-row-item.tsx +++ b/infra/rooch-portal-v2/src/sections/settings/components/session-key-row-item.tsx @@ -9,6 +9,7 @@ import { Chip, Stack, Button, TableRow, Collapse, TableCell } from '@mui/materia import { isSessionExpired } from 'src/utils/common'; import { toast } from 'src/components/snackbar'; +import { useCurrentSession } from "@roochnetwork/rooch-sdk-kit"; export default function SessionKeyRowItem({ item, @@ -19,6 +20,7 @@ export default function SessionKeyRowItem({ }) { const [openCollapse, setOpenCollapse] = useState(false); const [removing, setRemoving] = useState(false); + const curSession = useCurrentSession() const expired = useMemo( () => isSessionExpired(Number(item.lastActiveTime), item.maxInactiveInterval), @@ -49,6 +51,7 @@ export default function SessionKeyRowItem({ { setRemoving(true); try { diff --git a/infra/rooch-portal-v2/src/sections/settings/view.tsx b/infra/rooch-portal-v2/src/sections/settings/view.tsx index cbf6fd9802..56eaff1d18 100644 --- a/infra/rooch-portal-v2/src/sections/settings/view.tsx +++ b/infra/rooch-portal-v2/src/sections/settings/view.tsx @@ -40,10 +40,13 @@ export function SettingsView() { isPending: isLoadingSessionKeys, refetch: refetchSessionKeys, } = useRoochClientQuery('getSessionKeys', { - address: address?.genRoochAddress().toHexAddress() || '' + address: address!.genRoochAddress().toHexAddress() } ) + console.log(isLoadingSessionKeys) + console.log(sessionKeys) + useEffect(() => { if (address !== undefined) { setIsAddressLoaded(true) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 446976eb0e..e5dc95a8ca 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -204,7 +204,7 @@ importers: version: 5.16.7(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@mui/material-nextjs': specifier: ^5.15.11 - version: 5.16.6(@emotion/cache@11.13.1)(@mui/material@5.16.7(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@types/react@18.3.5)(next@14.2.11(@babel/core@7.25.2)(@playwright/test@1.47.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + version: 5.16.6(@emotion/cache@11.13.1)(@mui/material@5.16.7(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@types/react@18.3.5)(next@14.2.11(@babel/core@7.25.2)(@playwright/test@1.47.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) '@mui/x-data-grid': specifier: ^7.7.0 version: 7.16.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@mui/material@5.16.7(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@mui/system@5.16.7(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -215,11 +215,11 @@ importers: specifier: ^7.7.0 version: 7.16.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@mui/material@5.16.7(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@mui/system@5.16.7(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@roochnetwork/rooch-sdk': - specifier: 0.2.7 - version: 0.2.7(typescript@5.6.2) + specifier: 0.2.8 + version: 0.2.8(typescript@5.6.2) '@roochnetwork/rooch-sdk-kit': - specifier: 0.2.7 - version: 0.2.7(@tanstack/react-query@5.56.2(react@18.3.1))(@types/react@18.3.5)(react@18.3.1)(typescript@5.6.2) + specifier: 0.2.8 + version: 0.2.8(@tanstack/react-query@5.56.2(react@18.3.1))(@types/react@18.3.5)(babel-plugin-macros@3.1.0)(react@18.3.1)(typescript@5.6.2) '@tanstack/react-query': specifier: ^5.51.11 version: 5.56.2(react@18.3.1) @@ -255,7 +255,7 @@ importers: version: 11.5.4(@emotion/is-prop-valid@1.3.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) next: specifier: ^14.2.4 - version: 14.2.11(@babel/core@7.25.2)(@playwright/test@1.47.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 14.2.11(@babel/core@7.25.2)(@playwright/test@1.47.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) nprogress: specifier: ^0.2.0 version: 0.2.0 @@ -4165,15 +4165,15 @@ packages: cpu: [x64] os: [win32] - '@roochnetwork/rooch-sdk-kit@0.2.7': - resolution: {integrity: sha512-4RP41/3aAMxPHlMef9f8V45HRwXWW0M5fkWFCf12L5O1v0iaBxbL0O3pw8Lsu8ESd7BKdvk1ho5Qz7L+J/bcOg==} + '@roochnetwork/rooch-sdk-kit@0.2.8': + resolution: {integrity: sha512-5llBaYp98n3VUKTlKS3VaGyRl1BPzsk5ETOVQXizeKPbikUOOhgPocoNS7+CWkD7ef4CgGVSTNCq+ie+ofsHjQ==} engines: {node: '>=18.0.0'} peerDependencies: '@tanstack/react-query': ^5.0.0 react: '*' - '@roochnetwork/rooch-sdk@0.2.7': - resolution: {integrity: sha512-iQdoN06ijFLmdyPfOxgQGhcgl62vkhRKWUQ1fZO0+V2Kpu8wF4qN2Xg7nqZ8VCC5Kr1g9St2CmS60PXPjpCgPw==} + '@roochnetwork/rooch-sdk@0.2.8': + resolution: {integrity: sha512-XEdCOYKuTDYNAblRK7LrvoZF4vGCu/13FbajAGnIW0ooHTTN/usrrEMg0l9rfr79N9l8G3k9m/P89mWbNPf0hg==} engines: {node: '>=18.0.0'} '@rtsao/scc@1.1.0': @@ -13249,11 +13249,11 @@ snapshots: '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1) '@types/react': 18.3.5 - '@mui/material-nextjs@5.16.6(@emotion/cache@11.13.1)(@mui/material@5.16.7(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@types/react@18.3.5)(next@14.2.11(@babel/core@7.25.2)(@playwright/test@1.47.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': + '@mui/material-nextjs@5.16.6(@emotion/cache@11.13.1)(@mui/material@5.16.7(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@types/react@18.3.5)(next@14.2.11(@babel/core@7.25.2)(@playwright/test@1.47.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 '@mui/material': 5.16.7(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react@18.3.1))(@types/react@18.3.5)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - next: 14.2.11(@babel/core@7.25.2)(@playwright/test@1.47.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 14.2.11(@babel/core@7.25.2)(@playwright/test@1.47.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 optionalDependencies: '@emotion/cache': 11.13.1 @@ -14949,9 +14949,9 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.21.3': optional: true - '@roochnetwork/rooch-sdk-kit@0.2.7(@tanstack/react-query@5.56.2(react@18.3.1))(@types/react@18.3.5)(react@18.3.1)(typescript@5.6.2)': + '@roochnetwork/rooch-sdk-kit@0.2.8(@tanstack/react-query@5.56.2(react@18.3.1))(@types/react@18.3.5)(babel-plugin-macros@3.1.0)(react@18.3.1)(typescript@5.6.2)': dependencies: - '@roochnetwork/rooch-sdk': 0.2.7(typescript@5.6.2) + '@roochnetwork/rooch-sdk': 0.2.8(typescript@5.6.2) '@tanstack/react-query': 5.56.2(react@18.3.1) '@vanilla-extract/css': 1.15.5(babel-plugin-macros@3.1.0) '@vanilla-extract/dynamic': 2.1.2 @@ -14965,7 +14965,7 @@ snapshots: - immer - typescript - '@roochnetwork/rooch-sdk@0.2.7(typescript@5.6.2)': + '@roochnetwork/rooch-sdk@0.2.8(typescript@5.6.2)': dependencies: '@mysten/bcs': 1.0.4 '@noble/curves': 1.6.0 @@ -21159,7 +21159,7 @@ snapshots: postcss: 8.4.14 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - styled-jsx: 5.1.1(@babel/core@7.25.2)(react@18.3.1) + styled-jsx: 5.1.1(@babel/core@7.25.2)(babel-plugin-macros@3.1.0)(react@18.3.1) watchpack: 2.4.0 zod: 3.21.4 optionalDependencies: @@ -21176,7 +21176,7 @@ snapshots: - '@babel/core' - babel-plugin-macros - next@14.2.11(@babel/core@7.25.2)(@playwright/test@1.47.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + next@14.2.11(@babel/core@7.25.2)(@playwright/test@1.47.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@next/env': 14.2.11 '@swc/helpers': 0.5.5 @@ -21186,7 +21186,7 @@ snapshots: postcss: 8.4.31 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - styled-jsx: 5.1.1(@babel/core@7.25.2)(react@18.3.1) + styled-jsx: 5.1.1(@babel/core@7.25.2)(babel-plugin-macros@3.1.0)(react@18.3.1) optionalDependencies: '@next/swc-darwin-arm64': 14.2.11 '@next/swc-darwin-x64': 14.2.11 @@ -22925,12 +22925,13 @@ snapshots: dependencies: inline-style-parser: 0.1.1 - styled-jsx@5.1.1(@babel/core@7.25.2)(react@18.3.1): + styled-jsx@5.1.1(@babel/core@7.25.2)(babel-plugin-macros@3.1.0)(react@18.3.1): dependencies: client-only: 0.0.1 react: 18.3.1 optionalDependencies: '@babel/core': 7.25.2 + babel-plugin-macros: 3.1.0 stylis-plugin-rtl@2.1.1(stylis@4.3.4): dependencies: