Skip to content

Commit 8fed0dc

Browse files
authored
Remove hosted graph settings (#162)
* Remove hosted graph settings Signed-off-by: cyc60 <[email protected]> * Version bump Signed-off-by: cyc60 <[email protected]> * Update flake8 Signed-off-by: cyc60 <[email protected]> --------- Signed-off-by: cyc60 <[email protected]>
1 parent cb24b2f commit 8fed0dc

File tree

8 files changed

+1038
-1002
lines changed

8 files changed

+1038
-1002
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: black
66

77
- repo: https://github.com/PyCQA/flake8
8-
rev: 4.0.1
8+
rev: 7.0.0
99
hooks:
1010
- id: flake8
1111

deploy/gnosis/docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ networks:
2424
services:
2525
oracle:
2626
container_name: oracle_gnosis
27-
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v3.3.0
27+
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v3.3.1
2828
restart: always
2929
entrypoint: ["python"]
3030
command: ["oracle/oracle/main.py"]
@@ -34,7 +34,7 @@ services:
3434

3535
keeper:
3636
container_name: keeper_gnosis
37-
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v3.3.0
37+
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v3.3.1
3838
restart: always
3939
entrypoint: ["python"]
4040
command: ["oracle/keeper/main.py"]

deploy/goerli/docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ networks:
2626
services:
2727
oracle:
2828
container_name: oracle_goerli
29-
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v3.3.0
29+
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v3.3.1
3030
restart: always
3131
entrypoint: ["python"]
3232
command: ["oracle/oracle/main.py"]
@@ -36,7 +36,7 @@ services:
3636

3737
keeper:
3838
container_name: keeper_goerli
39-
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v3.3.0
39+
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v3.3.1
4040
restart: always
4141
entrypoint: ["python"]
4242
command: ["oracle/keeper/main.py"]

deploy/mainnet/docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ networks:
2626
services:
2727
oracle:
2828
container_name: oracle_mainnet
29-
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v3.3.0
29+
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v3.3.1
3030
restart: always
3131
entrypoint: ["python"]
3232
command: ["oracle/oracle/main.py"]
@@ -36,7 +36,7 @@ services:
3636

3737
keeper:
3838
container_name: keeper_mainnet
39-
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v3.3.0
39+
image: europe-west4-docker.pkg.dev/stakewiselabs/public/oracle:v3.3.1
4040
restart: always
4141
entrypoint: ["python"]
4242
command: ["oracle/keeper/main.py"]

oracle/networks.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
MAINNET: dict(
2121
STAKEWISE_SUBGRAPH_URLS=config(
2222
"STAKEWISE_SUBGRAPH_URLS",
23-
default="https://graph.stakewise.io/subgraphs/name/stakewise/stakewise,https://api.thegraph.com/subgraphs/name/stakewise/stakewise-mainnet",
23+
default="https://graph.stakewise.io/subgraphs/name/stakewise/stakewise",
2424
cast=Csv(),
2525
),
2626
ETHEREUM_SUBGRAPH_URLS=config(
2727
"ETHEREUM_SUBGRAPH_URLS",
28-
default="https://graph.stakewise.io/subgraphs/name/stakewise/ethereum,https://api.thegraph.com/subgraphs/name/stakewise/ethereum-mainnet",
28+
default="https://graph.stakewise.io/subgraphs/name/stakewise/ethereum",
2929
cast=Csv(),
3030
),
3131
UNISWAP_V3_SUBGRAPH_URLS=config(
3232
"UNISWAP_V3_SUBGRAPH_URLS",
33-
default="https://graph.stakewise.io/subgraphs/name/stakewise/uniswap-v3,https://api.thegraph.com/subgraphs/name/stakewise/uniswap-v3-mainnet",
33+
default="https://graph.stakewise.io/subgraphs/name/stakewise/uniswap-v3",
3434
cast=Csv(),
3535
),
3636
ETH1_ENDPOINT=config("ETH1_ENDPOINT", default=""),
@@ -84,12 +84,12 @@
8484
HARBOUR_MAINNET: dict(
8585
STAKEWISE_SUBGRAPH_URLS=config(
8686
"STAKEWISE_SUBGRAPH_URLS",
87-
default="https://graph.stakewise.io/subgraphs/name/stakewise/stakewise-harbour-mainnet,https://api.thegraph.com/subgraphs/name/stakewise/stakewise-harbour-mainnet",
87+
default="https://graph.stakewise.io/subgraphs/name/stakewise/stakewise-harbour-mainnet",
8888
cast=Csv(),
8989
),
9090
ETHEREUM_SUBGRAPH_URLS=config(
9191
"ETHEREUM_SUBGRAPH_URLS",
92-
default="https://graph.stakewise.io/subgraphs/name/stakewise/ethereum,https://api.thegraph.com/subgraphs/name/stakewise/ethereum-mainnet",
92+
default="https://graph.stakewise.io/subgraphs/name/stakewise/ethereum",
9393
cast=Csv(),
9494
),
9595
UNISWAP_V3_SUBGRAPH_URLS=config(
@@ -264,12 +264,12 @@
264264
GNOSIS_CHAIN: dict(
265265
STAKEWISE_SUBGRAPH_URLS=config(
266266
"STAKEWISE_SUBGRAPH_URLS",
267-
default="https://api.thegraph.com/subgraphs/name/stakewise/stakewise-gnosis,https://graph-gno.stakewise.io/subgraphs/name/stakewise/stakewise",
267+
default="https://graph-gno.stakewise.io/subgraphs/name/stakewise/stakewise",
268268
cast=Csv(),
269269
),
270270
ETHEREUM_SUBGRAPH_URLS=config(
271271
"ETHEREUM_SUBGRAPH_URLS",
272-
default="https://api.thegraph.com/subgraphs/name/stakewise/ethereum-gnosis,https://graph-gno.stakewise.io/subgraphs/name/stakewise/ethereum",
272+
default="https://graph-gno.stakewise.io/subgraphs/name/stakewise/ethereum",
273273
cast=Csv(),
274274
),
275275
UNISWAP_V3_SUBGRAPH_URLS=config(

oracle/oracle/distributor/common/eth1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async def get_disabled_stakers_reward_token_distributions(
122122
distributed: Wei = Wei(0)
123123
last_staker_index = len(principals) - 1
124124
for i, staker_address in enumerate(principals):
125-
rewards: Wei
125+
reward: Wei
126126
if i == last_staker_index:
127127
reward = Wei(distributor_reward - distributed)
128128
else:

0 commit comments

Comments
 (0)