Skip to content

Commit

Permalink
Merge pull request #293 from cheng521521/main
Browse files Browse the repository at this point in the history
fix: redPacket
  • Loading branch information
cheng521521 authored Aug 31, 2024
2 parents e5a3065 + 418f0fa commit dd3ab90
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/main/java/com/dl/officialsite/redpacket/RedPacketService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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/8689fa6/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");
Expand Down

0 comments on commit dd3ab90

Please sign in to comment.