Skip to content

Commit

Permalink
Merge pull request #296 from Dapp-Learning-DAO/dev
Browse files Browse the repository at this point in the history
fix: update zksync redpacket graph url
  • Loading branch information
cheng521521 committed Aug 31, 2024
2 parents f42d4be + 41d9818 commit 4e842c7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 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/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");
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 4e842c7

Please sign in to comment.