forked from cerc-io/cosmos-explorer
feat: remove debug params
This commit is contained in:
parent
6b05b1ae7f
commit
9f18b65a9d
@ -23,7 +23,6 @@ const walletStore = useWalletStore();
|
|||||||
const format = useFormatter();
|
const format = useFormatter();
|
||||||
const dialog = useTxDialog();
|
const dialog = useTxDialog();
|
||||||
const stakingStore = useStakingStore();
|
const stakingStore = useStakingStore();
|
||||||
|
|
||||||
const coinInfo = computed(() => {
|
const coinInfo = computed(() => {
|
||||||
return store.coinInfo;
|
return store.coinInfo;
|
||||||
});
|
});
|
||||||
@ -32,7 +31,6 @@ onMounted(() => {
|
|||||||
store.loadDashboard();
|
store.loadDashboard();
|
||||||
walletStore.loadMyAsset();
|
walletStore.loadMyAsset();
|
||||||
});
|
});
|
||||||
|
|
||||||
const ticker = computed(() => store.coinInfo.tickers[store.tickerIndex]);
|
const ticker = computed(() => store.coinInfo.tickers[store.tickerIndex]);
|
||||||
|
|
||||||
blockchain.$subscribe((m, s) => {
|
blockchain.$subscribe((m, s) => {
|
||||||
@ -89,12 +87,6 @@ const color = computed(() => {
|
|||||||
return 'text-red-600';
|
return 'text-red-600';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const endpoint = 'https://juno-api.polkachu.com';
|
|
||||||
const params = JSON.stringify({
|
|
||||||
proposal_id: '1',
|
|
||||||
validator_address: 'junovaloper1jxv0u20scum4trha72c7ltfgfqef6nscm9pmg2',
|
|
||||||
chain_name: 'juno',
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@ -363,9 +355,9 @@ const params = JSON.stringify({
|
|||||||
</div>
|
</div>
|
||||||
<Teleport to="body">
|
<Teleport to="body">
|
||||||
<ping-token-convert
|
<ping-token-convert
|
||||||
chain-name="juno"
|
:chain-name="blockchain?.chainName"
|
||||||
:endpoint="endpoint"
|
:endpoint="blockchain?.endpoint?.address"
|
||||||
:params="params"
|
:params="walletStore?.connectedWallet?.hdPath"
|
||||||
></ping-token-convert>
|
></ping-token-convert>
|
||||||
</Teleport>
|
</Teleport>
|
||||||
</div>
|
</div>
|
||||||
|
@ -41,20 +41,15 @@ export const useGovStore = defineStore('govStore', {
|
|||||||
proposals?.proposals?.forEach(async (item) => {
|
proposals?.proposals?.forEach(async (item) => {
|
||||||
await this.fetchTally(item.proposal_id).then((res) => {
|
await this.fetchTally(item.proposal_id).then((res) => {
|
||||||
item.final_tally_result = res?.tally;
|
item.final_tally_result = res?.tally;
|
||||||
//
|
|
||||||
|
|
||||||
});
|
});
|
||||||
if (this.walletstore.connectedWallet?.cosmosAddress) {
|
if (this.walletstore.currentAddress) {
|
||||||
try {
|
try {
|
||||||
await this.fetchProposalVotesVoter(item.proposal_id,this.walletstore.currentAddress).then((res) => {
|
await this.fetchProposalVotesVoter(item.proposal_id,this.walletstore.currentAddress).then((res) => {
|
||||||
console.log(res, 'fdfsds')
|
|
||||||
// VOTE_OPTION_YES VOTE_OPTION_NO VOTE_OPTION_ABSTAIN
|
|
||||||
item.voterStatus = res?.vote?.option || 'No With Veto'
|
item.voterStatus = res?.vote?.option || 'No With Veto'
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
item.voterStatus = 'No With Veto'
|
item.voterStatus = 'No With Veto'
|
||||||
}
|
}
|
||||||
console.log(this.walletstore.connectedWallet, 'this.walletstore.connectedWallet')
|
|
||||||
} else {
|
} else {
|
||||||
item.voterStatus = 'No With Veto'
|
item.voterStatus = 'No With Veto'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user