From e24e507852f72cc26a80dee80c9c1d85f9edca56 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Thu, 16 Nov 2023 20:54:50 +0000 Subject: [PATCH] Cleanup imports --- hooks/queries/governancePower.ts | 44 ++++++++++++++++---------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/hooks/queries/governancePower.ts b/hooks/queries/governancePower.ts index b1b497cc6a..72d63b646d 100644 --- a/hooks/queries/governancePower.ts +++ b/hooks/queries/governancePower.ts @@ -1,4 +1,17 @@ +import { Connection, Keypair, PublicKey } from '@solana/web3.js' +import { + fetchTokenOwnerRecordByPubkey, + useTokenOwnerRecordByPubkeyQuery, + useUserCommunityTokenOwnerRecord, + useUserCouncilTokenOwnerRecord, +} from './tokenOwnerRecord' +import BN from 'bn.js' +import { fetchNftRegistrar } from './plugins/nftVoter' +import { fetchDigitalAssetsByOwner } from './digitalAssets' +import { getNetworkFromEndpoint } from '@utils/connection' import { ON_NFT_VOTER_V2 } from '@constants/flags' +import { fetchRealmByPubkey, useRealmQuery } from './realm' +import { fetchRealmConfigQuery } from './realmConfig' import { GATEWAY_PLUGINS_PKS, HELIUM_VSR_PLUGINS_PKS, @@ -6,36 +19,23 @@ import { PYTH_PLUGIN_PK, VSR_PLUGIN_PKS, } from '@constants/plugins' +import useHeliumVsrStore from 'HeliumVotePlugin/hooks/useHeliumVsrStore' +import useGatewayPluginStore from 'GatewayPlugin/store/gatewayPluginStore' +import { useAsync } from 'react-async-hook' +import { useConnection } from '@solana/wallet-adapter-react' import useSelectedRealmPubkey from '@hooks/selectedRealm/useSelectedRealmPubkey' -import useUserOrDelegator from '@hooks/useUserOrDelegator' +import { + useAddressQuery_CommunityTokenOwner, + useAddressQuery_CouncilTokenOwner, +} from './addresses/tokenOwnerRecord' import { SimpleGatedVoterWeight, VoteNftWeight, VoteRegistryVoterWeight, VoterWeight, } from '@models/voteWeights' -import { useConnection } from '@solana/wallet-adapter-react' -import { Connection, Keypair, PublicKey } from '@solana/web3.js' -import { getNetworkFromEndpoint } from '@utils/connection' -import useGatewayPluginStore from 'GatewayPlugin/store/gatewayPluginStore' -import useHeliumVsrStore from 'HeliumVotePlugin/hooks/useHeliumVsrStore' -import BN from 'bn.js' -import { useAsync } from 'react-async-hook' -import { - useAddressQuery_CommunityTokenOwner, - useAddressQuery_CouncilTokenOwner, -} from './addresses/tokenOwnerRecord' -import { fetchDigitalAssetsByOwner } from './digitalAssets' -import { fetchNftRegistrar } from './plugins/nftVoter' +import useUserOrDelegator from '@hooks/useUserOrDelegator' import { getVsrGovpower } from './plugins/vsr' -import { fetchRealmByPubkey, useRealmQuery } from './realm' -import { fetchRealmConfigQuery } from './realmConfig' -import { - fetchTokenOwnerRecordByPubkey, - useTokenOwnerRecordByPubkeyQuery, - useUserCommunityTokenOwnerRecord, - useUserCouncilTokenOwnerRecord, -} from './tokenOwnerRecord' import { PythClient } from '@pythnetwork/staking' import { AnchorProvider } from '@coral-xyz/anchor' import NodeWallet from '@coral-xyz/anchor/dist/cjs/nodewallet'