From 45a7d0474838e1dc0bee57f6c3e22a02cc347009 Mon Sep 17 00:00:00 2001 From: "Alisa | Side.one" Date: Wed, 17 May 2023 00:02:59 +0800 Subject: [PATCH] feat: add teleport --- src/layouts/components/NavBarWallet.vue | 20 ++++++++++++++++++++ src/layouts/components/NavFooter.vue | 18 +----------------- src/modules/[chain]/index.vue | 17 ++++++++++++++++- 3 files changed, 37 insertions(+), 18 deletions(-) diff --git a/src/layouts/components/NavBarWallet.vue b/src/layouts/components/NavBarWallet.vue index 558ab460..8e1d331e 100644 --- a/src/layouts/components/NavBarWallet.vue +++ b/src/layouts/components/NavBarWallet.vue @@ -5,6 +5,9 @@ const walletStore = useWalletStore(); walletStore.$subscribe((m, s) => { console.log(m, s); }); +function walletStateChange(res: any) { + walletStore.setConnectedWallet(res.detail?.value); +} let showCopyToast = ref(0); async function copyAdress(address: string) { try { @@ -89,6 +92,7 @@ const addressChange = computed(() => { + + + + \ No newline at end of file diff --git a/src/layouts/components/NavFooter.vue b/src/layouts/components/NavFooter.vue index c88fecc6..13c5fc33 100644 --- a/src/layouts/components/NavFooter.vue +++ b/src/layouts/components/NavFooter.vue @@ -1,11 +1,3 @@ - - diff --git a/src/modules/[chain]/index.vue b/src/modules/[chain]/index.vue index d7ae3484..d49bd627 100644 --- a/src/modules/[chain]/index.vue +++ b/src/modules/[chain]/index.vue @@ -89,6 +89,12 @@ const color = computed(() => { return 'text-red-600'; } }); +const endpoint = 'https://juno-api.polkachu.com'; +const params = JSON.stringify({ + proposal_id: '1', + validator_address: 'junovaloper1jxv0u20scum4trha72c7ltfgfqef6nscm9pmg2', + chain_name: 'juno', +});