Skip to content

Commit

Permalink
remove zKyoto refs
Browse files Browse the repository at this point in the history
  • Loading branch information
codespool committed Dec 23, 2024
1 parent 6b8dc74 commit a268cd0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 27 deletions.
23 changes: 6 additions & 17 deletions src/components/assets/EvmNativeToken.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,6 @@
</q-tooltip>
</a>

<a v-if="isZkyoto" :href="faucetSethLink" target="_blank" rel="noopener noreferrer">
<button class="btn btn--icon">
<astar-icon-faucet />
</button>
<span class="text--mobile-menu">{{ $t('assets.faucet') }}</span>
<q-tooltip>
<span class="text--tooltip">{{ $t('assets.faucet') }}</span>
</q-tooltip>
</a>

<div v-else-if="isFaucet">
<button class="btn btn--icon" @click="handleModalFaucet({ isOpen: true })">
<astar-icon-faucet />
Expand All @@ -152,21 +142,21 @@ import { ethers } from 'ethers';
import { $web3 } from 'src/boot/api';
import { cbridgeAppLink } from 'src/c-bridge';
import ModalFaucet from 'src/components/assets/modals/ModalFaucet.vue';
import Balloon from 'src/components/common/Balloon.vue';
import { LOCAL_STORAGE } from 'src/config/localStorage';
import { ccipMinatoBridgeEnabled, layerZeroBridgeEnabled, nativeBridgeEnabled } from 'src/features';
import { useAccount, useBreakpoints, useFaucet, useNetworkInfo } from 'src/hooks';
import { faucetSethLink } from 'src/links';
import { getTokenImage } from 'src/modules/token';
import {
buildCcipBridgePageLink,
buildEthereumBridgePageLink,
buildTransferPageLink,
buildLzBridgePageLink,
buildCcipBridgePageLink,
buildTransferPageLink,
} from 'src/router/routes';
import { useStore } from 'src/store';
import { computed, defineComponent, ref, watch, watchEffect } from 'vue';
import { nativeBridgeEnabled, layerZeroBridgeEnabled, ccipMinatoBridgeEnabled } from 'src/features';
import CustomRouterLink from '../common/CustomRouterLink.vue';
import Balloon from 'src/components/common/Balloon.vue';
import { LOCAL_STORAGE } from 'src/config/localStorage';
export default defineComponent({
components: { ModalFaucet, CustomRouterLink, Balloon },
Expand All @@ -188,7 +178,7 @@ export default defineComponent({
const isCcipBalloon = ref<boolean>(false);
const isBalloonClosing = ref<boolean>(false);
const { currentNetworkName, nativeTokenSymbol, isZkEvm, isZkyoto, isAstar, isShibuyaEvm } =
const { currentNetworkName, nativeTokenSymbol, isZkEvm, isAstar, isShibuyaEvm } =
useNetworkInfo();
const closeCcipBalloon = () => {
Expand Down Expand Up @@ -263,7 +253,6 @@ export default defineComponent({
isFaucet,
isModalFaucet,
isZkEvm,
isZkyoto,
faucetSethLink,
width,
screenSize,
Expand Down
6 changes: 2 additions & 4 deletions src/components/bridge/BridgeSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,19 +220,18 @@ export default defineComponent({
isZkEvm,
networkNameSubstrate,
isMainnet,
isZkyoto,
isAstarZkEvm,
isAstar,
isH160,
isShibuyaEvm,
} = useNetworkInfo();
const l1Name = computed<string>(() => {
return isZkyoto.value ? EthBridgeNetworkName.Sepolia : EthBridgeNetworkName.Ethereum;
return EthBridgeNetworkName.Ethereum;
});
const l2Name = computed<string>(() => {
return isZkyoto.value ? EthBridgeNetworkName.Zkyoto : EthBridgeNetworkName.AstarZk;
return EthBridgeNetworkName.AstarZk;
});
const cbridgeNetworkName = computed<string>(() => {
Expand Down Expand Up @@ -260,7 +259,6 @@ export default defineComponent({
cbridgeNetworkName,
layerSwapLink,
zKatanaBridgeUrl,
isZkyoto,
isEnableLzBridge,
celerBridgeEnabled,
layerSwapBridgeEnabled,
Expand Down
2 changes: 0 additions & 2 deletions src/components/header/mobile/MobileNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export default defineComponent({
const showNav = ref<boolean>(false);
const router = useRouter();
const path = computed(() => router.currentRoute.value.path.split('/')[2]);
const { isZkyoto } = useNetworkInfo();
const { isGovernanceEnabled, governanceUrl } = useGovernance();
const store = useStore();
Expand All @@ -128,7 +127,6 @@ export default defineComponent({
path,
RoutePath,
network,
isZkyoto,
surgeUrl,
socialUrl,
isGovernanceEnabled,
Expand Down
3 changes: 1 addition & 2 deletions src/components/sidenav/SidebarDesktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default defineComponent({
},
setup() {
const { isOpen } = useSidebar();
const { isZkEvm, isZkyoto } = useNetworkInfo();
const { isZkEvm } = useNetworkInfo();
const { isGovernanceEnabled, governanceUrl } = useGovernance();
const store = useStore();
Expand Down Expand Up @@ -162,7 +162,6 @@ export default defineComponent({
path,
RoutePath,
socialUrl,
isZkyoto,
surgeUrl,
isGovernanceEnabled,
governanceUrl,
Expand Down
2 changes: 0 additions & 2 deletions src/hooks/useNetworkInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export function useNetworkInfo() {
currentNetworkIdx.value === endpointKey.ASTAR_ZKEVM
);

const isZkyoto = computed<boolean>(() => currentNetworkIdx.value === endpointKey.ZKYOTO);
const isAstarZkEvm = computed<boolean>(() => currentNetworkIdx.value === endpointKey.ASTAR_ZKEVM);
const isAstar = computed<boolean>(() => currentNetworkIdx.value === endpointKey.ASTAR);
const isShibuya = computed<boolean>(() => currentNetworkIdx.value === endpointKey.SHIBUYA);
Expand Down Expand Up @@ -127,7 +126,6 @@ export function useNetworkInfo() {
polkadotJsLink,
isZkEvm,
networkNameSubstrate,
isZkyoto,
isAstarZkEvm,
isAstar,
dappStakingCurrency,
Expand Down

0 comments on commit a268cd0

Please sign in to comment.