From 670b930565c4758955be558cb3fea331ef930a51 Mon Sep 17 00:00:00 2001 From: Alex Pakalniskis <43630382+alex-pakalniskis@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:05:30 -0700 Subject: [PATCH 1/3] Update config.toml with API keys Add API key template for network subgraph endpoint querying --- config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 5a71fbc..498ffbb 100644 --- a/config.toml +++ b/config.toml @@ -13,6 +13,6 @@ verbose = true num_reported_options = 2 execution_mode = "none" opt_mode = "optimal" -network_subgraph_endpoint = "https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum" +network_subgraph_endpoint = "https://gateway.thegraph.com/api/{api-key}/subgraphs/id/DZz4kDTdmzWLWsV373w2bSmoar3umKKH9y82SUKr5qmp" protocol_network = "arbitrum" syncing_networks = ["mainnet", "gnosis", "arbitrum-one", "arbitrum"] From 50f942eb861dac574ca4cd7e7a2e397f543722ae Mon Sep 17 00:00:00 2001 From: Alex Pakalniskis <43630382+alex-pakalniskis@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:08:21 -0700 Subject: [PATCH 2/3] Update README.md with API keys Add required API keys for querying network subgraph endpoint --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6bbece0..6892ae3 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ verbose = true num_reported_options = 2 execution_mode = "none" opt_mode = "optimal" -network_subgraph_endpoint = "https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum" +network_subgraph_endpoint = "https://gateway.thegraph.com/api/{api-key}/subgraphs/id/DZz4kDTdmzWLWsV373w2bSmoar3umKKH9y82SUKr5qmp" protocol_network = "arbitrum" syncing_networks = ["mainnet", "gnosis", "arbitrum-one", "arbitrum"] ``` @@ -179,7 +179,7 @@ min_signal = 100 verbose = true num_reported_options = 2 execution_mode = "none" -network_subgraph_endpoint = "https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum" +network_subgraph_endpoint = "https://gateway.thegraph.com/api/{api-key}/subgraphs/id/DZz4kDTdmzWLWsV373w2bSmoar3umKKH9y82SUKr5qmp" protocol_network = "arbitrum" syncing_networks = ["mainnet", "gnosis", "arbitrum-one", "arbitrum"] ``` From 824b4ef960fcf3e78dd57ba978fd69647776f170 Mon Sep 17 00:00:00 2001 From: Alex Pakalniskis <43630382+alex-pakalniskis@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:14:46 -0700 Subject: [PATCH 3/3] Update configuration.md with API keys Add required API keys template for querying network subgraph endpoints --- docs/src/configuration.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/src/configuration.md b/docs/src/configuration.md index a85895f..c8baa07 100644 --- a/docs/src/configuration.md +++ b/docs/src/configuration.md @@ -22,7 +22,7 @@ verbose = true num_reported_options = 2 execution_mode = "none" opt_mode = "optimal" -network_subgraph_endpoint = "https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum" +network_subgraph_endpoint = "https://gateway.thegraph.com/api/{api-key}/subgraphs/id/DZz4kDTdmzWLWsV373w2bSmoar3umKKH9y82SUKr5qmp" protocol_network = "arbitrum" syncing_networks = ["mainnet", "gnosis", "arbitrum-one", "arbitrum"] ``` @@ -151,7 +151,7 @@ min_signal = 100 verbose = true num_reported_options = 2 execution_mode = "none" -network_subgraph_endpoint = "https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum" +network_subgraph_endpoint = "https://gateway.thegraph.com/api/{api-key}/subgraphs/id/DZz4kDTdmzWLWsV373w2bSmoar3umKKH9y82SUKr5qmp" protocol_network = "arbitrum" syncing_networks = ["mainnet", "gnosis", "arbitrum-one", "arbitrum"] ``` @@ -183,7 +183,7 @@ verbose = true num_reported_options = 2 execution_mode = "none" opt_mode = "optimal" -network_subgraph_endpoint = "https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum" +network_subgraph_endpoint = "https://gateway.thegraph.com/api/{api-key}/subgraphs/id/DZz4kDTdmzWLWsV373w2bSmoar3umKKH9y82SUKr5qmp" protocol_network = "arbitrum" syncing_networks = ["mainnet", "gnosis", "arbitrum-one", "arbitrum"] ``` @@ -319,17 +319,17 @@ execution_mode = "none" #### Query data for specified networks -Specify the network subgraph endpoint for networks other than The Graph network on Ethereum mainnet. Here we use the endpoint to goerli network subgraph. +Specify the network subgraph endpoint for networks other than The Graph network on Ethereum mainnet. Here we use the endpoint to Ethereum Sepolia network subgraph. ``` toml id = "0xE9a1CABd57700B17945Fd81feeFba82340D9568F" -network_subgraph_endpoint = "https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-goerli" +network_subgraph_endpoint = "https://gateway.thegraph.com/api/{api-key}/subgraphs/id/8pVKDwHniAz87CHEQsiz2wgFXGZXrbMDkrxgauVVfMJC" ``` Other available endpoints examples are -- Mainnet (default): https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-mainnet -- Arbitrum-One: https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum -- Arbitrum-Goerli: https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum-goerli +- Mainnet (default): https://gateway.thegraph.com/api/{api-key}/subgraphs/id/9Co7EQe5PgW3ugCUJrJgRv4u9zdEuDJf8NvMWftNsBH8 +- Arbitrum-One: https://gateway.thegraph.com/api/{api-key}/subgraphs/id/DZz4kDTdmzWLWsV373w2bSmoar3umKKH9y82SUKr5qmp +- Arbitrum-Sepolia: https://gateway.thegraph.com/api/{api-key}/subgraphs/id/3xQHhMudr1oh69ut36G2mbzpYmYxwqCeU6wwqyCDCnqV #### Quiet Mode @@ -413,4 +413,4 @@ min_signal = 100 verbose = false num_reported_options = 2 execution_mode = "none" -``` \ No newline at end of file +```