Skip to content

Commit

Permalink
Merge branch 'master' into qos-dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenttaglia committed Oct 27, 2024
2 parents 8c77f8d + 0b66af0 commit ee5b0ec
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ VITE_DEFAULT_SUBGRAPH_ARBITRUM="https://gateway.thegraph.com/api/[api-key]/subgr
VITE_DEFAULT_SUBGRAPH_SEPOLIA="https://gateway.thegraph.com/api/[api-key]/subgraphs/id/8pVKDwHniAz87CHEQsiz2wgFXGZXrbMDkrxgauVVfMJC"
VITE_DEFAULT_SUBGRAPH_ARBITRUM_SEPOLIA="https://gateway.thegraph.com/api/[api-key]/subgraphs/id/3xQHhMudr1oh69ut36G2mbzpYmYxwqCeU6wwqyCDCnqV"
VITE_DEFAULT_QOS_SUBGRAPH="https://gateway.thegraph.com/api/[api-key]/subgraphs/id/Dtr9rETvwokot4BSXaD5tECanXfqfJKcvHuaaEgPDD2D"
VITE_GRAPH_API_KEY="146d8cd439901e24257f3c19d82359da"
VITE_GRAPH_API_KEY="3bab348a7c385b1870039eb890fd0a5f"
39 changes: 39 additions & 0 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Publish Docker Image

on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches: [master]

jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
packages: write

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/vincenttaglia/indexer-tools
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{steps.docker_meta.outputs.tags}}
labels: ${{steps.docker_meta.outputs.labels}}

2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ JSON_STRING="{
\"DEFAULT_SUBGRAPH_ARBITRUM\": \"${DEFAULT_SUBGRAPH_ARBITRUM}\",
\"DEFAULT_SUBGRAPH_SEPOLIA\": \"${DEFAULT_SUBGRAPH_SEPOLIA}\",
\"DEFAULT_SUBGRAPH_ARBITRUM_SEPOLIA\": \"${DEFAULT_SUBGRAPH_ARBITRUM_SEPOLIA}\",
\"DEFAULT_QOS_SUBGRAPH\": \"${DEFAULT_QOS_SUBGRAPH}\",
\"DEFAULT_QOS_SUBGRAPH\": \"${DEFAULT_SUBGRAPH_ARBITRUM_SEPOLIA}\",
\"GRAPH_API_KEY\": \"${GRAPH_API_KEY}\"
}"

Expand Down
6 changes: 3 additions & 3 deletions indexer-tools-config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"DEFAULT_ACCOUNTS": [ { "address": "0x1b92e4cba0f82c85c1298af861247849988c788c", "name": "vincenttaglia-indexer.eth", "active": true, "chain": "arbitrum-one", "agentConnect": false, "agentEndpoint": "", "poiQuery": false, "poiQueryEndpoint": "" } ],
"DEFAULT_RPC_MAINNET": "https://mainnet.infura.io/v3/659344f230804542a4e653f875172105",
"DEFAULT_RPC_ARBITRUM": "https://arb-mainnet.g.alchemy.com/v2/er8LBcXpoFwlV8xJee-WXFbFG_M8L4JK",
"DEFAULT_RPC_SEPOLIA": "https://eth-sepolia.g.alchemy.com/v2/eKJ8_13LMaVi2bSITYWTMqskgsGiey8K",
"DEFAULT_RPC_ARBITRUM_SEPOLIA": "https://arbitrum-sepolia.infura.io/v3/db92de7c459f4d83a2c2c21931a6bdf0",
"DEFAULT_RPC_SEPOLIA": "https://eth-sepolia.g.alchemy.com/v2/eKJ8_13LMaVi2bSITYWTMqskgsGiey8K"
"DEFAULT_RPC_ARBITRUM_SEPOLIA": "https://arbitrum-sepolia.infura.io/v3/db92de7c459f4d83a2c2c21931a6bdf0"
"DEFAULT_SUBGRAPH_MAINNET": "https://gateway.thegraph.com/api/[api-key]/subgraphs/id/9Co7EQe5PgW3ugCUJrJgRv4u9zdEuDJf8NvMWftNsBH8",
"DEFAULT_SUBGRAPH_ARBITRUM": "https://gateway.thegraph.com/api/[api-key]/subgraphs/id/DZz4kDTdmzWLWsV373w2bSmoar3umKKH9y82SUKr5qmp",
"DEFAULT_SUBGRAPH_SEPOLIA": "https://gateway.thegraph.com/api/[api-key]/subgraphs/id/8pVKDwHniAz87CHEQsiz2wgFXGZXrbMDkrxgauVVfMJC",
"DEFAULT_SUBGRAPH_ARBITRUM_SEPOLIA": "https://gateway.thegraph.com/api/[api-key]/subgraphs/id/3xQHhMudr1oh69ut36G2mbzpYmYxwqCeU6wwqyCDCnqV",
"DEFAULT_QOS_SUBGRAPH": "https://gateway.thegraph.com/api/[api-key]/subgraphs/id/Dtr9rETvwokot4BSXaD5tECanXfqfJKcvHuaaEgPDD2D",
"DEFAULT_GRAPH_API_KEY": "146d8cd439901e24257f3c19d82359da"
"DEFAULT_GRAPH_API_KEY": "3bab348a7c385b1870039eb890fd0a5f"
}
2 changes: 1 addition & 1 deletion src/plugins/defaultsConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const loadDefaultsConfig = async () => {
subgraphSepolia: value.DEFAULT_SUBGRAPH_SEPOLIA || import.meta.env.VITE_DEFAULT_SUBGRAPH_SEPOLIA || "https://gateway.thegraph.com/api/[api-key]/subgraphs/id/8pVKDwHniAz87CHEQsiz2wgFXGZXrbMDkrxgauVVfMJC",
subgraphArbitrumSepolia: value.DEFAULT_SUBGRAPH_ARBITRUM_SEPOLIA || import.meta.env.VITE_DEFAULT_SUBGRAPH_ARBITRUM_SEPOLIA || "https://gateway.thegraph.com/api/[api-key]/subgraphs/id/3xQHhMudr1oh69ut36G2mbzpYmYxwqCeU6wwqyCDCnqV",
qosSubgraph: value.DEFAULT_QOS_SUBGRAPH || import.meta.env.VITE_DEFAULT_QOS_SUBGRAPH || "https://gateway.thegraph.com/api/[api-key]/subgraphs/id/Dtr9rETvwokot4BSXaD5tECanXfqfJKcvHuaaEgPDD2D",
apiKey: value.GRAPH_API_KEY || import.meta.env.VITE_GRAPH_API_KEY || "146d8cd439901e24257f3c19d82359da",
apiKey: value.GRAPH_API_KEY || import.meta.env.VITE_GRAPH_API_KEY || "3bab348a7c385b1870039eb890fd0a5f",
}
}

Expand Down
1 change: 1 addition & 0 deletions src/store/allocations.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ export const useAllocationStore = defineStore('allocationStore', {
return data;
}).catch((err) => {
if(err.graphQLErrors){
this.loading = false;
alert(`API Error: ${err.graphQLErrors[0].message}`);
}
});
Expand Down
1 change: 1 addition & 0 deletions src/store/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const useNetworkStore = defineStore('network', {
this.networks[chain.id].totalTokensAllocated = data.data.graphNetwork.totalTokensAllocated;
}).catch((err) => {
if(err.graphQLErrors){
this.loading = false;
alert(`API Error: ${err.graphQLErrors[0].message}`);
}
}));
Expand Down
1 change: 1 addition & 0 deletions src/store/subgraphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ export const useSubgraphsStore = defineStore({
return data;
}).catch((err) => {
if(err.graphQLErrors){
this.loading = false;
alert(`API Error: ${err.graphQLErrors[0].message}`);
}
});
Expand Down

0 comments on commit ee5b0ec

Please sign in to comment.