Skip to content

Commit

Permalink
Merge pull request #457 from kleros/chore/goerli-removal
Browse files Browse the repository at this point in the history
Goerli removal
  • Loading branch information
jaybuidl authored Feb 7, 2025
2 parents 5041de9 + e3c142d commit 482cfb0
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 41 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg" alt="Styled with Prettier"></a>
</p>

The Kleros Court user interface.
The Kleros Court user interface.

## Get Started

1. Clone this repo.
2. Install and set up the [MetaMask](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=en) chrome extension.
3. Configure MetaMask on the Goerli Test Network.
4. Run `yarn` to install dependencies and then `yarn start` to start the dev server.
2. Run `yarn` to install dependencies and then `yarn start` to start the dev server.

> To allow view-only mode, you can the REACT_APP_WEB3_FALLBACK_URL variable to a provider of your choice. Example: REACT_APP_WEB3_FALLBACK_URL=wss://mainnet.infura.io/ws/v3/<api-key>
Expand Down
9 changes: 0 additions & 9 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@
REACT_APP_WEB3_FALLBACK_URL='wss://mainnet.infura.io/ws/v3/54fb3d87cd07464591ad2be29a1db32f'
REACT_APP_WEB3_FALLBACK_HTTPS_URL='https://mainnet.infura.io/v3/54fb3d87cd07464591ad2be29a1db32f'

REACT_APP_KLEROS_LIQUID_GOERLI_ADDRESS='0x1128eD55ab2d796fa92D2F8E1f336d745354a77A'
REACT_APP_KLEROS_LIQUID_EXTRA_VIEWS_GOERLI_ADDRESS='0x36780f8011f07683aacA36d5faC42AeBeAA96Cfe'
REACT_APP_PINAKION_GOERLI_ADDRESS='0xA3B02bA6E10F55fb177637917B1b472da0110CcC'
REACT_APP_POLICY_REGISTRY_GOERLI_ADDRESS='0x28c8A3A2E3c8Cd3F795DB83764316a1129a069bA'
REACT_APP_TOKEN_BRIDGE_GOERLI_ADDRESS='0x00147c84f13764dCDAbAF1cbAe622fa6f6839085'
REACT_APP_KLEROS_LIQUID_GOERLI_BLOCK_NUMBER='5893969'
REACT_APP_WEB3_FALLBACK_GOERLI_URL='wss://goerli.infura.io/ws/v3/f1c9535b961648f7bd18209b00e11163'
REACT_APP_WEB3_FALLBACK_GOERLI_HTTPS_URL='https://rpc.ankr.com/eth_goerli'

REACT_APP_KLEROS_LIQUID_CHIADO_ADDRESS='0xD8798DfaE8194D6B4CD6e2Da6187ae4209d06f27'
REACT_APP_KLEROS_LIQUID_EXTRA_VIEWS_CHIADO_ADDRESS='0xfDD698D6c9393d08c5DaD8488AF6d08c151e4860'
REACT_APP_PINAKION_CHIADO_ADDRESS='0xA353A70c8B3C7d38A869436d4CDeBe8e5611681a'
Expand Down
9 changes: 0 additions & 9 deletions src/bootstrap/drizzle.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import UniswapV2Router02 from "../assets/contracts/uniswap-v2-router-02.json";
const defaultOptions = {
networkWhitelist: [
1, // Mainnet
5, // Görli
100, // xDAI
10200, // Chiado
11155111, // Sepolia
Expand All @@ -21,7 +20,6 @@ const defaultOptions = {
...Kleros,
networks: {
1: { address: process.env.REACT_APP_KLEROS_ADDRESS },
5: { address: "0x00000000219ab540356cbb839cbe05303d7705fa" }, // Dummy address for coping with Drizzle errors.
100: { address: process.env.REACT_APP_KLEROS_XDAI_ADDRESS },
10200: { address: "0x00000000219ab540356cbb839cbe05303d7705fa" }, // Dummy address for coping with Drizzle errors.
11155111: { address: "0x00000000219ab540356cbb839cbe05303d7705fa" }, // Dummy address for coping with Drizzle errors.
Expand All @@ -31,7 +29,6 @@ const defaultOptions = {
...KlerosLiquid,
networks: {
1: { address: process.env.REACT_APP_KLEROS_LIQUID_ADDRESS },
5: { address: process.env.REACT_APP_KLEROS_LIQUID_GOERLI_ADDRESS },
100: { address: process.env.REACT_APP_KLEROS_LIQUID_XDAI_ADDRESS },
10200: { address: process.env.REACT_APP_KLEROS_LIQUID_CHIADO_ADDRESS },
11155111: { address: process.env.REACT_APP_KLEROS_LIQUID_SEPOLIA_ADDRESS },
Expand All @@ -41,7 +38,6 @@ const defaultOptions = {
...KlerosLiquidExtraViews,
networks: {
1: { address: process.env.REACT_APP_KLEROS_LIQUID_EXTRA_VIEWS_ADDRESS },
5: { address: process.env.REACT_APP_KLEROS_LIQUID_EXTRA_VIEWS_GOERLI_ADDRESS },
100: { address: process.env.REACT_APP_KLEROS_LIQUID_EXTRA_VIEWS_XDAI_ADDRESS },
10200: { address: process.env.REACT_APP_KLEROS_LIQUID_EXTRA_VIEWS_CHIADO_ADDRESS },
11155111: { address: process.env.REACT_APP_KLEROS_LIQUID_EXTRA_VIEWS_SEPOLIA_ADDRESS },
Expand All @@ -51,7 +47,6 @@ const defaultOptions = {
...Pinakion,
networks: {
1: { address: process.env.REACT_APP_PINAKION_ADDRESS },
5: { address: process.env.REACT_APP_PINAKION_GOERLI_ADDRESS },
100: { address: process.env.REACT_APP_PINAKION_XDAI_ADDRESS },
10200: { address: process.env.REACT_APP_PINAKION_CHIADO_ADDRESS },
11155111: { address: process.env.REACT_APP_PINAKION_SEPOLIA_ADDRESS },
Expand All @@ -61,7 +56,6 @@ const defaultOptions = {
...PolicyRegistry,
networks: {
1: { address: process.env.REACT_APP_POLICY_REGISTRY_ADDRESS },
5: { address: process.env.REACT_APP_POLICY_REGISTRY_GOERLI_ADDRESS },
100: { address: process.env.REACT_APP_POLICY_REGISTRY_XDAI_ADDRESS },
10200: { address: process.env.REACT_APP_POLICY_REGISTRY_CHIADO_ADDRESS },
11155111: { address: process.env.REACT_APP_POLICY_REGISTRY_SEPOLIA_ADDRESS },
Expand All @@ -71,7 +65,6 @@ const defaultOptions = {
...UniswapV2Factory,
networks: {
1: { address: process.env.REACT_APP_UNISWAP_V2_FACTORY_ADDRESS },
5: { address: "0x00000000219ab540356cbb839cbe05303d7705fa" }, // Dummy address for coping with Drizzle errors.
100: { address: process.env.REACT_APP_UNISWAP_V2_FACTORY_XDAI_ADDRESS },
10200: { address: "0x00000000219ab540356cbb839cbe05303d7705fa" }, // Dummy address for coping with Drizzle errors.
11155111: { address: "0x00000000219ab540356cbb839cbe05303d7705fa" }, // Dummy address for coping with Drizzle errors.
Expand All @@ -81,7 +74,6 @@ const defaultOptions = {
...UniswapV2Router02,
networks: {
1: { address: process.env.REACT_APP_UNISWAP_V2_ROUTER_02_ADDRESS },
5: { address: "0x00000000219ab540356cbb839cbe05303d7705fa" }, // Dummy address for coping with Drizzle errors.
100: { address: process.env.REACT_APP_UNISWAP_V2_ROUTER_02_XDAI_ADDRESS },
10200: { address: "0x00000000219ab540356cbb839cbe05303d7705fa" }, // Dummy address for coping with Drizzle errors.
11155111: { address: "0x00000000219ab540356cbb839cbe05303d7705fa" }, // Dummy address for coping with Drizzle errors.
Expand All @@ -96,7 +88,6 @@ const defaultOptions = {

const chainIdToFallbackUrl = {
1: process.env.REACT_APP_WEB3_FALLBACK_URL,
5: process.env.REACT_APP_WEB3_FALLBACK_GOERLI_URL,
100: process.env.REACT_APP_WEB3_FALLBACK_XDAI_URL,
10200: process.env.REACT_APP_WEB3_FALLBACK_CHIADO_URL,
11155111: process.env.REACT_APP_WEB3_FALLBACK_SEPOLIA_URL,
Expand Down
1 change: 0 additions & 1 deletion src/bootstrap/subgraph.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const displaySubgraph = {
1: process.env.REACT_APP_SUBGRAPH_MAINNET_DISPLAY,
5: "https://api.thegraph.com/subgraphs/name/andreimvp/kleros-display-goerli",
100: process.env.REACT_APP_SUBGRAPH_GNOSIS_DISPLAY,
10200: "https://api.studio.thegraph.com/query/61738/kleros-display-chiado/version/latest",
11155111: "https://api.studio.thegraph.com/query/61738/kleros-display-sepolia/version/latest",
Expand Down
9 changes: 0 additions & 9 deletions src/bootstrap/use-notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ const networkIDData = {
? Number(process.env.REACT_APP_KLEROS_LIQUID_BLOCK_NUMBER)
: 0,
},
5: {
name: "_GOERLI",
provider: "https://goerli.infura.io/v3/261bdc527a49430b9b31d28ba9fecfde",
nativeToken: "ETH",
pnkToken: "PNK",
fromBlock: process.env.REACT_APP_KLEROS_LIQUID_GOERLI_BLOCK_NUMBER
? Number(process.env.REACT_APP_KLEROS_LIQUID_GOERLI_BLOCK_NUMBER)
: 0,
},
100: {
name: "_XDAI",
provider: "https://rpc.gnosischain.com",
Expand Down
1 change: 0 additions & 1 deletion src/bootstrap/web3.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default web3;

const chainIdToRpcEndpoint = {
1: process.env.REACT_APP_WEB3_FALLBACK_HTTPS_URL,
5: process.env.REACT_APP_WEB3_FALLBACK_GOERLI_HTTPS_URL,
10: process.env.REACT_APP_WEB3_FALLBACK_OPTIMISM_HTTPS_URL,
100: process.env.REACT_APP_WEB3_FALLBACK_XDAI_HTTPS_URL,
130: process.env.REACT_APP_WEB3_FALLBACK_UNICHAIN_HTTPS_URL,
Expand Down
2 changes: 1 addition & 1 deletion src/containers/404.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function C404({ Web3 }) {
{Web3 && <Spin spinning={true}></Spin>}
<StyledMessageLine3 className="ternary-color theme-color">
{Web3
? "Please make sure you have your wallet unlocked on Mainnet, Gnosis Chain, Goerli or Chiado. If you don't have a wallet, we recommend you install MetaMask on desktop and Trust on mobile."
? "Please make sure you have your wallet unlocked on Mainnet, Gnosis Chain, Sepolia or Chiado. If you don't have a wallet, we recommend you install MetaMask on desktop and Trust on mobile."
: "The greek gods are not available at the moment."}
</StyledMessageLine3>
</StyledInfoDiv>
Expand Down
3 changes: 1 addition & 2 deletions src/helpers/block-explorer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const chainIdToBaseUrl = {
1: "https://etherscan.io",
5: "https://goerli.etherscan.io",
100: "https://blockscout.com/poa/xdai",
100: "https://gnosisscan.io",
10200: "https://blockscout.chiadochain.net",
11155111: "https://sepolia.etherscan.io",
};
Expand Down
1 change: 0 additions & 1 deletion src/helpers/block-numbers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const KlerosLiquidBlockNumbers = {
1: process.env.REACT_APP_KLEROS_LIQUID_BLOCK_NUMBER,
5: process.env.REACT_APP_KLEROS_LIQUID_GOERLI_BLOCK_NUMBER,
100: process.env.REACT_APP_KLEROS_LIQUID_XDAI_BLOCK_NUMBER,
10200: process.env.REACT_APP_KLEROS_LIQUID_CHIADO_BLOCK_NUMBER,
11155111: process.env.REACT_APP_KLEROS_LIQUID_SEPOLIA_BLOCK_NUMBER,
Expand Down
2 changes: 0 additions & 2 deletions src/helpers/get-token-symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ getTokenSymbol.propTypes = {

const chainIdToSuffix = {
1: "ETH",
5: "gETH",
100: "xDAI",
10200: "xDAI",
11155111: "sETH",
};

const chainIdToTokenSuffix = {
1: { PNK: "PNK", xPNK: "<<Invalid>>" },
5: { PNK: "PNK", xPNK: "<<Invalid>>" },
100: { PNK: "stPNK", xPNK: "PNK" },
10200: { PNK: "stPNK", xPNK: "PNK" },
11155111: { PNK: "PNK", xPNK: "<<Invalid>>" },
Expand Down
2 changes: 0 additions & 2 deletions src/helpers/networks.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
export const chainIdToNetworkName = {
1: "Ethereum Mainnet",
5: "Ethereum Testnet Görli",
100: "Gnosis Chain",
10200: "Gnosis Testnet Chiado",
11155111: "Ethereum Testnet Sepolia",
};

export const chainIdToNetworkShortName = {
1: "Mainnet",
5: "Görli",
100: "Gnosis Chain",
10200: "Chiado",
11155111: "Sepolia",
Expand Down

0 comments on commit 482cfb0

Please sign in to comment.