Skip to content

Commit 1fe9cb3

Browse files
committed
chore(web): removal of the hardcoded genesis block
1 parent e0e5719 commit 1fe9cb3

7 files changed

+0
-13
lines changed

web/.env.devnet-neo.public

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ export REACT_APP_DEPLOYMENT=devnet
33
export REACT_APP_CORE_SUBGRAPH=https://api.studio.thegraph.com/query/61738/kleros-v2-coreneo-devnet/version/latest
44
export REACT_APP_DRT_ARBSEPOLIA_SUBGRAPH=https://api.studio.thegraph.com/query/61738/kleros-v2-drt-arbisep-devnet/version/latest
55
export REACT_APP_STATUS_URL=https://kleros-v2-devnet.betteruptime.com/badge
6-
export REACT_APP_GENESIS_BLOCK_ARBSEPOLIA=3084598
76
export REACT_APP_DEVTOOLS_URL=https://dev--kleros-v2-neo-devtools.netlify.app
87
export REACT_APP_ARBITRATOR_TYPE=neo
98
export REACT_APP_ATLAS_URI=http://localhost:3000

web/.env.devnet-university.public

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ export REACT_APP_DEPLOYMENT=devnet
33
export REACT_APP_CORE_SUBGRAPH=https://api.studio.thegraph.com/query/61738/kleros-v2-coreuni-devnet/version/latest
44
export REACT_APP_DRT_ARBSEPOLIA_SUBGRAPH=https://api.studio.thegraph.com/query/61738/kleros-v2-drt-arbisep-devnet/version/latest
55
export REACT_APP_STATUS_URL=https://kleros-v2-devnet.betteruptime.com/badge
6-
export REACT_APP_GENESIS_BLOCK_ARBSEPOLIA=3084598
76
export REACT_APP_ARBITRATOR_TYPE=university
87
export REACT_APP_ATLAS_URI=http://localhost:3000
98
export WALLETCONNECT_PROJECT_ID=

web/.env.devnet.public

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ export REACT_APP_DEPLOYMENT=devnet
33
export REACT_APP_CORE_SUBGRAPH=https://api.studio.thegraph.com/query/61738/kleros-v2-core-devnet/version/latest
44
export REACT_APP_DRT_ARBSEPOLIA_SUBGRAPH=https://api.studio.thegraph.com/query/61738/kleros-v2-drt-arbisep-devnet/version/latest
55
export REACT_APP_STATUS_URL=https://kleros-v2-devnet.betteruptime.com/badge
6-
export REACT_APP_GENESIS_BLOCK_ARBSEPOLIA=3084598
76
export REACT_APP_ATLAS_URI=http://localhost:3000
87
export REACT_APP_DEVTOOLS_URL=https://dev--kleros-v2-testnet-devtools.netlify.app
98
export NODE_OPTIONS='--max-old-space-size=7680'

web/.env.mainnet-neo.public

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ export REACT_APP_DEPLOYMENT=mainnet
33
export REACT_APP_CORE_SUBGRAPH=https://api.studio.thegraph.com/query/61738/kleros-v2-coreneo/version/latest
44
export REACT_APP_DRT_ARBMAINNET_SUBGRAPH=https://api.studio.thegraph.com/query/61738/kleros-v2-drt/version/latest
55
export REACT_APP_STATUS_URL=https://kleros-v2-devnet.betteruptime.com/badge
6-
export REACT_APP_GENESIS_BLOCK_ARBMAINNET=190274403
76
export REACT_APP_DEVTOOLS_URL=https://devtools.v2.kleros.builders
87
export REACT_APP_ARBITRATOR_TYPE=neo
98
export REACT_APP_ATLAS_URI=http://localhost:3000

web/.env.testnet.public

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export REACT_APP_CORE_SUBGRAPH=https://api.studio.thegraph.com/query/61738/klero
44
export REACT_APP_DRT_ARBSEPOLIA_SUBGRAPH=https://api.studio.thegraph.com/query/61738/kleros-v2-drt-arbisep-devnet/version/latest
55
export REACT_APP_STATUS_URL=https://kleros-v2.betteruptime.com/badge
66
export REACT_APP_ATLAS_URI=http://localhost:3000
7-
export REACT_APP_GENESIS_BLOCK_ARBSEPOLIA=3842783
87
export REACT_APP_DEVTOOLS_URL=https://devtools.v2-testnet.kleros.builders
98
export WALLETCONNECT_PROJECT_ID=
109
export ALCHEMY_API_KEY=

web/src/consts/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ export const getArbitratorType = (): ArbitratorTypes =>
3737

3838
export const getDevToolsUrl = () => import.meta.env.REACT_APP_DEVTOOLS_URL || "https://devtools.v2.kleros.builders";
3939

40-
export const GENESIS_BLOCK_ARBSEPOLIA = BigInt(import.meta.env.REACT_APP_GENESIS_BLOCK_ARBSEPOLIA ?? 0);
41-
export const GENESIS_BLOCK_ARBMAINNET = BigInt(import.meta.env.REACT_APP_GENESIS_BLOCK_ARBMAINNET ?? 0);
42-
export const genesisBlock = () => (isProductionDeployment() ? GENESIS_BLOCK_ARBMAINNET : GENESIS_BLOCK_ARBSEPOLIA);
43-
4440
export const INVALID_DISPUTE_DATA_ERROR = `The dispute data is not valid, please vote "Refuse to arbitrate"`;
4541
export const RPC_ERROR = `RPC Error: Unable to fetch dispute data. Please avoid voting.`;
4642

web/src/consts/processEnvConsts.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ export const isKlerosNeo = () => getArbitratorType() === ArbitratorTypes.neo;
2626
export const getArbitratorType = (): ArbitratorTypes =>
2727
_getArbitratorType(process.env.REACT_APP_ARBITRATOR_TYPE?.toLowerCase());
2828

29-
export const GENESIS_BLOCK_ARBSEPOLIA = BigInt(process.env.REACT_APP_GENESIS_BLOCK_ARBSEPOLIA ?? 0);
30-
export const GENESIS_BLOCK_ARBMAINNET = BigInt(process.env.REACT_APP_GENESIS_BLOCK_ARBMAINNET ?? 0);
31-
export const genesisBlock = () => (isProductionDeployment() ? GENESIS_BLOCK_ARBMAINNET : GENESIS_BLOCK_ARBSEPOLIA);
32-
3329
export const INVALID_DISPUTE_DATA_ERROR = `The dispute data is not valid, please vote "Refuse to arbitrate"`;
3430
export const RPC_ERROR = `RPC Error: Unable to fetch dispute data. Please avoid voting.`;
3531

0 commit comments

Comments
 (0)