@@ -96,7 +96,7 @@ export type Payout = {
9696 createdAt : string ;
9797} ;
9898
99- const graphQlEndpoints : Record < ChainId , string > = {
99+ export const graphQlEndpoints : Record < ChainId , string > = {
100100 [ ChainId . PGN ] : process . env . REACT_APP_SUBGRAPH_PGN_API ! ,
101101 [ ChainId . GOERLI_CHAIN_ID ] : process . env . REACT_APP_SUBGRAPH_GOERLI_API ! ,
102102 [ ChainId . PGN_TESTNET ] : process . env . REACT_APP_SUBGRAPH_PGN_TESTNET_API ! ,
@@ -110,6 +110,8 @@ const graphQlEndpoints: Record<ChainId, string> = {
110110 [ ChainId . ARBITRUM_GOERLI ] :
111111 process . env . REACT_APP_SUBGRAPH_ARBITRUM_GOERLI_API ! ,
112112 [ ChainId . ARBITRUM ] : process . env . REACT_APP_SUBGRAPH_ARBITRUM_API ! ,
113+ [ ChainId . POLYGON ] : process . env . REACT_APP_SUBGRAPH_POLYGON_API ! ,
114+ [ ChainId . POLYGON_MUMBAI ] : process . env . REACT_APP_SUBGRAPH_POLYGON_MUMBAI_API ! ,
113115} ;
114116
115117/**
@@ -267,7 +269,7 @@ export const convertStatusToText = (
267269} ;
268270
269271/** Returns true if the current javascript context is running inside a Jest test */
270- export const isJestRunning = ( ) => process . env . JEST_WORKER_ID !== undefined ;
272+ export const isJestRunning = ( ) => process . env [ " JEST_WORKER_ID" ] !== undefined ;
271273
272274export const padSingleDigitNumberWithZero = ( i : number ) : string =>
273275 i < 10 ? "0" + i : i . toString ( ) ;
@@ -308,6 +310,7 @@ export const RedstoneTokenIds = {
308310 ARB : "ARB" ,
309311 BUSD : "BUSD" ,
310312 GTC : "GTC" ,
313+ MATIC : "MATIC" ,
311314} as const ;
312315
313316export const useTokenPrice = ( tokenId : string | undefined ) => {
0 commit comments