diff --git a/package.json b/package.json index c04d2323..2d5a32ae 100644 --- a/package.json +++ b/package.json @@ -22,12 +22,12 @@ "@codemirror/language": "6.6.0", "@codemirror/state": "6.2.0", "@codemirror/view": "6.9.2", - "@crossbell/connect-kit": "0.0.50", - "@crossbell/contract": "0.0.50", - "@crossbell/indexer": "0.0.50", - "@crossbell/notification": "0.0.50", - "@crossbell/ui": "0.0.50", - "@crossbell/util-hooks": "0.0.50", + "@crossbell/connect-kit": "0.0.51", + "@crossbell/contract": "0.0.51", + "@crossbell/indexer": "0.0.51", + "@crossbell/notification": "0.0.51", + "@crossbell/ui": "0.0.51", + "@crossbell/util-hooks": "0.0.51", "@emoji-mart/data": "1.1.2", "@emoji-mart/react": "1.1.1", "@floating-ui/react": "^0.21.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 130338f4..8a68d424 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,12 +6,12 @@ specifiers: '@codemirror/language': 6.6.0 '@codemirror/state': 6.2.0 '@codemirror/view': 6.9.2 - '@crossbell/connect-kit': 0.0.50 - '@crossbell/contract': 0.0.50 - '@crossbell/indexer': 0.0.50 - '@crossbell/notification': 0.0.50 - '@crossbell/ui': 0.0.50 - '@crossbell/util-hooks': 0.0.50 + '@crossbell/connect-kit': 0.0.51 + '@crossbell/contract': 0.0.51 + '@crossbell/indexer': 0.0.51 + '@crossbell/notification': 0.0.51 + '@crossbell/ui': 0.0.51 + '@crossbell/util-hooks': 0.0.51 '@emoji-mart/data': 1.1.2 '@emoji-mart/react': 1.1.1 '@floating-ui/react': ^0.21.1 @@ -135,12 +135,12 @@ dependencies: '@codemirror/language': 6.6.0 '@codemirror/state': 6.2.0 '@codemirror/view': 6.9.2 - '@crossbell/connect-kit': 0.0.50_3mawfxo4bhm63hy2gqstj5zvmy - '@crossbell/contract': 0.0.50_ip3dyncbtg2zwubc6lso5zswte - '@crossbell/indexer': 0.0.50_ip3dyncbtg2zwubc6lso5zswte - '@crossbell/notification': 0.0.50_jkphkn4kf3gyduluxdubbn7sui - '@crossbell/ui': 0.0.50_5tmzefys5522sjqed32itiltvq - '@crossbell/util-hooks': 0.0.50_biqbaboplfbrettd7655fr4n2y + '@crossbell/connect-kit': 0.0.51_3mawfxo4bhm63hy2gqstj5zvmy + '@crossbell/contract': 0.0.51_ip3dyncbtg2zwubc6lso5zswte + '@crossbell/indexer': 0.0.51_ip3dyncbtg2zwubc6lso5zswte + '@crossbell/notification': 0.0.51_jkphkn4kf3gyduluxdubbn7sui + '@crossbell/ui': 0.0.51_5tmzefys5522sjqed32itiltvq + '@crossbell/util-hooks': 0.0.51_biqbaboplfbrettd7655fr4n2y '@emoji-mart/data': 1.1.2 '@emoji-mart/react': 1.1.1_kyrnz3vmphzqyjjk2ivrm6bcsu '@floating-ui/react': 0.21.1_biqbaboplfbrettd7655fr4n2y @@ -1647,19 +1647,19 @@ packages: - utf-8-validate dev: false - /@crossbell/connect-kit/0.0.50_3mawfxo4bhm63hy2gqstj5zvmy: - resolution: {integrity: sha512-9ET8FnP1yV68Uz+L3PY6r4S4F25TQbzYdAYstoFO415n7zsWVzPHxm4q/iyJjC6WKOJ5STMfsdihJQrc2mQJcQ==} + /@crossbell/connect-kit/0.0.51_3mawfxo4bhm63hy2gqstj5zvmy: + resolution: {integrity: sha512-9KExEnrJ3P7rp3jkGd521BgpV3A/W3mA9v0BRLyxSd1uBpWKQQeSvPlo+6Zq7IcOCCB+gP2ClV7KuE8O2DGdDA==} peerDependencies: '@tanstack/react-query': ^4 ethers: ^5 wagmi: ^0.12 dependencies: - '@crossbell/contract': 0.0.50_ip3dyncbtg2zwubc6lso5zswte - '@crossbell/indexer': 0.0.50_ip3dyncbtg2zwubc6lso5zswte - '@crossbell/ui': 0.0.50_5tmzefys5522sjqed32itiltvq - '@crossbell/util-ethers': 0.0.50 - '@crossbell/util-hooks': 0.0.50_biqbaboplfbrettd7655fr4n2y - '@crossbell/util-metadata': 0.0.50 + '@crossbell/contract': 0.0.51_ip3dyncbtg2zwubc6lso5zswte + '@crossbell/indexer': 0.0.51_ip3dyncbtg2zwubc6lso5zswte + '@crossbell/ui': 0.0.51_5tmzefys5522sjqed32itiltvq + '@crossbell/util-ethers': 0.0.51 + '@crossbell/util-hooks': 0.0.51_biqbaboplfbrettd7655fr4n2y + '@crossbell/util-metadata': 0.0.51 '@emotion/react': 11.10.6_pmekkgnqduwlme35zpnqhenc34 '@mantine/core': 6.0.2_md2nfwiomeeos7ogkicwnxcafa '@mantine/hooks': 6.0.2_react@18.2.0 @@ -1690,15 +1690,15 @@ packages: - utf-8-validate dev: false - /@crossbell/contract/0.0.50_ip3dyncbtg2zwubc6lso5zswte: - resolution: {integrity: sha512-0clQ/832MysGIUIb8w7RBKbs0iIRpYRcv2QLEthfuL+cZVHe+WQFJ1I0hMG3SPdGH748EOpsi5sHv14UaET0CQ==} + /@crossbell/contract/0.0.51_ip3dyncbtg2zwubc6lso5zswte: + resolution: {integrity: sha512-yfuUiqh0v+/v0aTfRTv5HZTDeXmCa4mZqtaSbCije8cCPonr+f8Q8DYyt7kwU4YOrJZOf7+vxjo0WraDe+L1Nw==} peerDependencies: ethers: ^5 react: ^18 wagmi: ^0.12 dependencies: - '@crossbell/indexer': 0.0.50_ip3dyncbtg2zwubc6lso5zswte - '@crossbell/util-hooks': 0.0.50_biqbaboplfbrettd7655fr4n2y + '@crossbell/indexer': 0.0.51_ip3dyncbtg2zwubc6lso5zswte + '@crossbell/util-hooks': 0.0.51_biqbaboplfbrettd7655fr4n2y crossbell.js: 0.18.1 react: 18.2.0 wagmi: 0.12.1_5wtqk74u2lns4asc27cr7nh2k4 @@ -1710,8 +1710,8 @@ packages: - utf-8-validate dev: false - /@crossbell/indexer/0.0.50_ip3dyncbtg2zwubc6lso5zswte: - resolution: {integrity: sha512-Ir+j49Hqkt1VXdkyfnwWAsy6AVgy1NGmt3w80B6YJvTjhD5L256jIARf59+Qpfti8+EzowcbqmMrSNf8XRwsAQ==} + /@crossbell/indexer/0.0.51_ip3dyncbtg2zwubc6lso5zswte: + resolution: {integrity: sha512-u8YANI4d2rFeMyVLXGOAcvdlBm8QTI6TXOCWy7wjW62+M8oJhP7fGZk2Gy53p1l1BdXjhLjudzMc2wQDDz2k1w==} peerDependencies: ethers: ^5 wagmi: ^0.12 @@ -1735,19 +1735,19 @@ packages: resolution: {integrity: sha512-AYGDrwiSKqCGNDi0mEPP1k+96loWik+Pd40xH0MzRNM4RtCutPbwm4o+Sj5iWu0tlHoQC2bTs1XcufsLiv+WYw==} dev: false - /@crossbell/notification/0.0.50_jkphkn4kf3gyduluxdubbn7sui: - resolution: {integrity: sha512-dowuU8BYwvOAG0/CvZyMtZa+L+z0WCA4C5/R+invlFowID45Qw+Ca1fYw7FbAqF/A456DnGTaUXm1jmSb1IS9A==} + /@crossbell/notification/0.0.51_jkphkn4kf3gyduluxdubbn7sui: + resolution: {integrity: sha512-CG3TfiRmuueC42p6TEi9dx21qo/efd7cltgSfv3mBWcYtP8pREus5FgYxLb3uScNZ/1QkveOlxZMraAYtgbC2w==} peerDependencies: '@tanstack/react-query': ^4 ethers: ^5 react: ^18 wagmi: ^0.12 dependencies: - '@crossbell/connect-kit': 0.0.50_3mawfxo4bhm63hy2gqstj5zvmy - '@crossbell/indexer': 0.0.50_ip3dyncbtg2zwubc6lso5zswte - '@crossbell/ui': 0.0.50_5tmzefys5522sjqed32itiltvq - '@crossbell/util-hooks': 0.0.50_biqbaboplfbrettd7655fr4n2y - '@crossbell/util-metadata': 0.0.50 + '@crossbell/connect-kit': 0.0.51_3mawfxo4bhm63hy2gqstj5zvmy + '@crossbell/indexer': 0.0.51_ip3dyncbtg2zwubc6lso5zswte + '@crossbell/ui': 0.0.51_5tmzefys5522sjqed32itiltvq + '@crossbell/util-hooks': 0.0.51_biqbaboplfbrettd7655fr4n2y + '@crossbell/util-metadata': 0.0.51 '@mantine/core': 6.0.2_zula6vjvt3wdocc4mwcxqa6nzi '@tanstack/react-query': 4.26.1_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 @@ -1769,15 +1769,15 @@ packages: - utf-8-validate dev: false - /@crossbell/ui/0.0.50_5tmzefys5522sjqed32itiltvq: - resolution: {integrity: sha512-0MCg2BIc8mcP7erR0RnLuRmyKXxLWa9NLWu6h24XvzipX0V/i41023Bvszsc5ry8WviSmoTNmTZTSqtu0W9jww==} + /@crossbell/ui/0.0.51_5tmzefys5522sjqed32itiltvq: + resolution: {integrity: sha512-KF3GVh100SZ6FqcDTUbSMlw8wyn0dhqV2vrbMdmhjUYuQrfLccR/1wsz0ubbQFqFnOBhUG9HOh14jRWpf4q71g==} peerDependencies: react: ^18 react-dom: ^18 dependencies: - '@crossbell/indexer': 0.0.50_ip3dyncbtg2zwubc6lso5zswte - '@crossbell/util-hooks': 0.0.50_biqbaboplfbrettd7655fr4n2y - '@crossbell/util-metadata': 0.0.50 + '@crossbell/indexer': 0.0.51_ip3dyncbtg2zwubc6lso5zswte + '@crossbell/util-hooks': 0.0.51_biqbaboplfbrettd7655fr4n2y + '@crossbell/util-metadata': 0.0.51 '@tanstack/react-query': 4.26.1_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 crossbell.js: 0.18.1 @@ -1799,12 +1799,12 @@ packages: - wagmi dev: false - /@crossbell/util-ethers/0.0.50: - resolution: {integrity: sha512-h7ZnMUU56VwxKqyHsDTY6noXFbTGHk1S0DVjKQy95AtfLi75VGwgRPDDqJ13LEL8xSkrrt9wMLPotgV7qqTruQ==} + /@crossbell/util-ethers/0.0.51: + resolution: {integrity: sha512-sXvSSCCDKuxepHiPk3Y28uRmbxA2mdKaZnHu3/gxTt/7V+n+N7O7/4VMH+y0jpcjsM6oY5w3lIFXHQI/wNvtvg==} dev: false - /@crossbell/util-hooks/0.0.50_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-UEijtsLifIURK9RIKD24SiB2NChbCtltwbRGrem4EKavCgzcOsS+706Z4xomW5Y5znP2xx5uS5RN5z8K+iUFSQ==} + /@crossbell/util-hooks/0.0.51_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-rP8zR0FmKXCxJN6OM92hk1A7QqGI7UqRLYc/i6W9XqQaps/e9p9X+PiYGESsUy7pJkIu2qnao0IozEC3j4uA6Q==} peerDependencies: react: ^18 dependencies: @@ -1819,10 +1819,10 @@ packages: - utf-8-validate dev: false - /@crossbell/util-metadata/0.0.50: - resolution: {integrity: sha512-vhlc7wUj4KctJxcSs5pSXSjzZkpQ7bTvp5ULfUtJuECiz4nYz41LMDei28sP6EPykI0k2dF619gJivgc9dIZoA==} + /@crossbell/util-metadata/0.0.51: + resolution: {integrity: sha512-dX3EDwNWVvl1S6+fBCLpdw3DXMzC/coSNltDw7EDfQhrOd0e79c185BdAC6BUSOx1uwiL5oe3MAjOOFxt7ro/w==} dependencies: - '@crossbell/util-ethers': 0.0.50 + '@crossbell/util-ethers': 0.0.51 '@fastify/deepmerge': 1.3.0 crossbell.js: 0.18.1 transitivePeerDependencies: diff --git a/src/pages/dashboard/[subdomain]/tokens.tsx b/src/pages/dashboard/[subdomain]/tokens.tsx index 21c3881e..f207de94 100644 --- a/src/pages/dashboard/[subdomain]/tokens.tsx +++ b/src/pages/dashboard/[subdomain]/tokens.tsx @@ -12,7 +12,7 @@ import { useWalletClaimCSBModal, useClaimCSBStatus, } from "@crossbell/connect-kit" -import { useGetMiraBalance } from "~/queries/site" +import { useGetMiraBalance, useGetSite } from "~/queries/site" import { Button } from "~/components/ui/Button" import { MIRA_LINK } from "~/lib/env" import { UniLink } from "~/components/ui/UniLink" @@ -36,9 +36,9 @@ export default function TokensPage() { const router = useRouter() const { t } = useTranslation(["dashboard", "index"]) const subdomain = router.query.subdomain as string + const site = useGetSite(subdomain) - const address = useAccountState((s) => s.wallet?.address) - const miraBalance = useGetMiraBalance(address) + const miraBalance = useGetMiraBalance(site.data?.metadata?.owner) const csbBalance = useAccountBalance() const claimCSBStatus = useClaimCSBStatus() const claimCSBModal = useWalletClaimCSBModal()