File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 10
10
],
11
11
"words" : [
12
12
" arbitrum" ,
13
+ " ARBMAINNET" ,
14
+ " ARBSEPOLIA" ,
13
15
" autorestart" ,
16
+ " CHAINID" ,
14
17
" codegen" ,
15
18
" commify" ,
16
19
" commitlint" ,
Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ export const TELEGRAM_REGEX = /^@\w{5,32}$/;
26
26
export const ETH_ADDRESS_REGEX = / ^ 0 x [ a - f A - F 0 - 9 ] { 40 } $ / ;
27
27
export const ETH_SIGNATURE_REGEX = / ^ 0 x [ a - f A - F 0 - 9 ] { 130 } $ / ;
28
28
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
-
33
29
export const isProductionDeployment = ( ) => process . env . REACT_APP_DEPLOYMENT === "mainnet" ;
34
30
export const isUniversityCourt = ( ) => process . env . REACT_APP_UNIVERSITY_COURT ?. toLowerCase ( ) === "true" ;
35
31
export const isNeoCourt = ( ) => process . env . REACT_APP_NEO_COURT ?. toLowerCase ( ) === "true" ;
36
32
export const whichCourt = ( ) => ( isUniversityCourt ( ) ? COURTS . university : isNeoCourt ( ) ? COURTS . neo : COURTS . vanilla ) ;
37
33
34
+ export const GENESIS_BLOCK_ARBSEPOLIA = BigInt ( process . env . REACT_APP_GENESIS_BLOCK_ARBSEPOLIA ?? 0 ) ;
35
+ export const GENESIS_BLOCK_ARBMAINNET = BigInt ( process . env . REACT_APP_GENESIS_BLOCK_ARBMAINNET ?? 0 ) ;
36
+ export const genesisBlock = ( ) => ( isProductionDeployment ( ) ? GENESIS_BLOCK_ARBMAINNET : GENESIS_BLOCK_ARBSEPOLIA ) ;
37
+
38
38
export const INVALID_DISPUTE_DATA_ERROR = `The dispute data is not valid, please vote "Refuse to arbitrate"` ;
39
39
export const RPC_ERROR = `RPC Error: Unable to fetch dispute data. Please avoid voting.` ;
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import { DEFAULT_CHAIN } from "src/consts/chains";
3
3
4
4
const CHAINID_TO_DISPUTE_TEMPLATE_SUBGRAPH = {
5
5
[ arbitrumSepolia . id ] :
6
- process . env . REACT_APP_DRT_ARBSEPOLIA_SUBGRAPH ?? "Wrong Subgraph URL. Please check the environment variables ." ,
6
+ process . env . REACT_APP_DRT_ARBSEPOLIA_SUBGRAPH ?? "Environment variables REACT_APP_DRT_ARBSEPOLIA_SUBGRAPH not set ." ,
7
7
[ arbitrum . id ] :
8
- process . env . REACT_APP_DRT_ARBMAINNET_SUBGRAPH ?? "Wrong Subgraph URL. Please check the environment variables ." ,
8
+ process . env . REACT_APP_DRT_ARBMAINNET_SUBGRAPH ?? "Environment variables REACT_APP_DRT_ARBMAINNET_SUBGRAPH not set ." ,
9
9
} ;
10
10
11
11
export const getGraphqlUrl = ( isDisputeTemplate = false , chainId : number = DEFAULT_CHAIN ) => {
12
- const coreUrl = process . env . REACT_APP_CORE_SUBGRAPH ?? "Wrong Subgraph URL. Please check the environment variables ." ;
12
+ const coreUrl = process . env . REACT_APP_CORE_SUBGRAPH ?? "Environment variables REACT_APP_CORE_SUBGRAPH not set ." ;
13
13
return isDisputeTemplate ? CHAINID_TO_DISPUTE_TEMPLATE_SUBGRAPH [ chainId ] : coreUrl ;
14
14
} ;
You can’t perform that action at this time.
0 commit comments