diff --git a/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java b/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java index 9219727..89072c9 100644 --- a/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java +++ b/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java @@ -133,30 +133,30 @@ private HttpEntity getHttpEntityFromChain(String chainId) throws IOException { case Constants.CHAIN_ID_OP: // op request = new HttpPost("https://indexer.bigdevenergy.link/f9489a8/v1/graphql"); break; -// case Constants.CHAIN_ID_SEPOLIA: //sepolia -// request = new HttpPost( -// "https://gateway-arbitrum.network.thegraph.com/api/" + redPacketConfig.getGraphConfig().getKey() +"/subgraphs/id/84hUXdB1qCmn8Du8bDmpLxxFSHjsgFCUKcrbtM4j5tp6"); -// break; -// case Constants.CHAIN_ID_SCROLL: //scrool -// request = new HttpPost( -// "https://gateway-arbitrum.network.thegraph.com/api/" + redPacketConfig.getGraphConfig().getKey() +"/subgraphs/id/6Ln5DVxZuYiY4VZzDQ2hzweBMRBpwW1SKRjeUy2YouRC"); -// break; + case Constants.CHAIN_ID_SEPOLIA: //sepolia + request = new HttpPost( + "https://indexer.bigdevenergy.link/83930ab/v1/graphql"); + break; + case Constants.CHAIN_ID_SCROLL: //scrool + request = new HttpPost( + "https://indexer.bigdevenergy.link/d3f3a96/v1/graphql"); + break; case Constants.CHAIN_ID_ARBITRUM: //arbitrum request = new HttpPost( "https://indexer.bigdevenergy.link/40a09e1/v1/graphql"); break; -// case Constants.CHAIN_ID_ZKSYNC: //zksync -// request = new HttpPost( -// "https://gateway-arbitrum.network.thegraph.com/api/" + redPacketConfig.getGraphConfig().getKey() +"/subgraphs/id/ERTqnTVeQKH8CVYwfGnqqZjtNDzgdnJRYQCgD4TY1gUX"); -// break; -// case Constants.CHAIN_ID_POLYGON_ZKEVM: //polygon zkevm -// request = new HttpPost( -// "https://gateway-arbitrum.network.thegraph.com/api/" + redPacketConfig.getGraphConfig().getKey() +"/subgraphs/id/5DsufFHE6P7tK7QT1mGCPrQEKURD2E1SSHAyCSzf5CAg"); -// break; -// case Constants.CHAIN_ID_LINEA: //linea -// request = new HttpPost( -// "https://gateway-arbitrum.network.thegraph.com/api/" + redPacketConfig.getGraphConfig().getKey() +"/subgraphs/id/958YHrTJturbhR6uwRyPu1wmBNiXivNkLMPY7tUiL4wD"); -// break; + case Constants.CHAIN_ID_ZKSYNC: //zksync + request = new HttpPost( + "https://indexer.bigdevenergy.link/93a81ef/v1/graphql"); + break; +/* case Constants.CHAIN_ID_POLYGON_ZKEVM: //polygon zkevm + request = new HttpPost( + "https://gateway-arbitrum.network.thegraph.com/api/" + redPacketConfig.getGraphConfig().getKey() +"/subgraphs/id/5DsufFHE6P7tK7QT1mGCPrQEKURD2E1SSHAyCSzf5CAg"); + break; + case Constants.CHAIN_ID_LINEA: //linea + request = new HttpPost( + "https://gateway-arbitrum.network.thegraph.com/api/" + redPacketConfig.getGraphConfig().getKey() +"/subgraphs/id/958YHrTJturbhR6uwRyPu1wmBNiXivNkLMPY7tUiL4wD"); + break;*/ } request.setHeader("Content-Type", "application/json"); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index d37ed32..398c51b 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -107,8 +107,8 @@ qcloud: regionName: ${REGION_NAME} chain: - #ids: [ "11155111", "10", "534352", "42161", "324", "1101", "59144" ] - ids: [ "10", "42161" ] + ids: [ "11155111", "10", "534352", "42161", "324" ] + #ids: [ "10", "42161" ] login: filter: ${LOGIN_FILTER:true}