From 98f6a30f357a95b3dcd54c40ac2f5d5a978c4e26 Mon Sep 17 00:00:00 2001 From: RcleydsonR Date: Wed, 18 Jan 2023 23:40:52 -0300 Subject: [PATCH] Remove localhost network implementation and only use goerli and mumbai networks Co-authored-by: brunoedcf --- src/blockchain/addresses.ts | 5 ----- src/components/TopBar.vue | 14 -------------- src/model/NetworkEnum.ts | 1 - 3 files changed, 20 deletions(-) diff --git a/src/blockchain/addresses.ts b/src/blockchain/addresses.ts index f6d2dc2..8fc74fe 100644 --- a/src/blockchain/addresses.ts +++ b/src/blockchain/addresses.ts @@ -7,7 +7,6 @@ const getTokenAddress = (): string => { const possibleTokenAddresses: { [key: string]: string } = { Ethereum: "0x294003F602c321627152c6b7DED3EAb5bEa853Ee", Polygon: "0x294003F602c321627152c6b7DED3EAb5bEa853Ee", - Localhost: "0x5FbDB2315678afecb367f032d93F642f64180aa3", }; return possibleTokenAddresses[etherStore.networkName]; @@ -19,7 +18,6 @@ const getP2PixAddress = (): string => { const possibleP2PixAddresses: { [key: string]: string } = { Ethereum: "0x5f3EFA9A90532914545CEf527C530658af87e196", Polygon: "0x5f3EFA9A90532914545CEf527C530658af87e196", - Localhost: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0", }; return possibleP2PixAddresses[etherStore.networkName]; @@ -31,7 +29,6 @@ const getProviderUrl = (): string => { const possibleProvidersUrls: { [key: string]: string } = { Ethereum: import.meta.env.VITE_GOERLI_API_URL, Polygon: import.meta.env.VITE_MUMBAI_API_URL, - Localhost: import.meta.env.VITE_GOERLI_API_URL, }; return possibleProvidersUrls[etherStore.networkName]; @@ -42,8 +39,6 @@ const possibleChains: { [key: string]: NetworkEnum } = { "5": NetworkEnum.ethereum, "0x13881": NetworkEnum.polygon, "80001": NetworkEnum.polygon, - "0x7a69": NetworkEnum.localhost, - "31337": NetworkEnum.localhost, }; const network2Chain: { [key: string]: string } = { diff --git a/src/components/TopBar.vue b/src/components/TopBar.vue index d6f0a06..37ffbf5 100644 --- a/src/components/TopBar.vue +++ b/src/components/TopBar.vue @@ -170,20 +170,6 @@ const getNetworkImage = (networkName: NetworkEnum): string => {

- diff --git a/src/model/NetworkEnum.ts b/src/model/NetworkEnum.ts index 0304338..47a1f2a 100644 --- a/src/model/NetworkEnum.ts +++ b/src/model/NetworkEnum.ts @@ -1,5 +1,4 @@ export enum NetworkEnum { ethereum = "Ethereum", polygon = "Polygon", - localhost = "Localhost", }