Skip to content

Commit e8dcba0

Browse files
authored
Validators shovel (#14)
* Shovel Validators * use rpc_call * use async substrate interface * properly parsing data * decode strings
1 parent d327841 commit e8dcba0

File tree

8 files changed

+483
-177
lines changed

8 files changed

+483
-177
lines changed

docker-compose.yml

Lines changed: 193 additions & 171 deletions
Original file line numberDiff line numberDiff line change
@@ -45,187 +45,209 @@ services:
4545
- 'host.docker.internal:host-gateway'
4646
tty: true
4747

48-
shovel_extrinsics:
49-
build:
50-
context: ./scraper_service
51-
dockerfile: ./shovel_extrinsics/Dockerfile
52-
container_name: shovel_extrinsics
53-
depends_on:
54-
clickhouse:
55-
condition: service_started
56-
env_file:
57-
- .env
58-
logging:
59-
driver: 'json-file'
60-
options:
61-
max-size: '10m'
62-
max-file: '3'
63-
networks:
64-
- app_network
65-
restart: on-failure
66-
extra_hosts:
67-
- 'host.docker.internal:host-gateway'
68-
tty: true
48+
# shovel_extrinsics:
49+
# build:
50+
# context: ./scraper_service
51+
# dockerfile: ./shovel_extrinsics/Dockerfile
52+
# container_name: shovel_extrinsics
53+
# depends_on:
54+
# clickhouse:
55+
# condition: service_started
56+
# env_file:
57+
# - .env
58+
# logging:
59+
# driver: 'json-file'
60+
# options:
61+
# max-size: '10m'
62+
# max-file: '3'
63+
# networks:
64+
# - app_network
65+
# restart: on-failure
66+
# extra_hosts:
67+
# - 'host.docker.internal:host-gateway'
68+
# tty: true
6969

70-
shovel_events:
71-
build:
72-
context: ./scraper_service
73-
dockerfile: ./shovel_events/Dockerfile
74-
container_name: shovel_events
75-
depends_on:
76-
clickhouse:
77-
condition: service_started
78-
env_file:
79-
- .env
80-
logging:
81-
driver: 'json-file'
82-
options:
83-
max-size: '10m'
84-
max-file: '3'
85-
networks:
86-
- app_network
87-
restart: on-failure
88-
extra_hosts:
89-
- 'host.docker.internal:host-gateway'
90-
tty: true
70+
# shovel_events:
71+
# build:
72+
# context: ./scraper_service
73+
# dockerfile: ./shovel_events/Dockerfile
74+
# container_name: shovel_events
75+
# depends_on:
76+
# clickhouse:
77+
# condition: service_started
78+
# env_file:
79+
# - .env
80+
# logging:
81+
# driver: 'json-file'
82+
# options:
83+
# max-size: '10m'
84+
# max-file: '3'
85+
# networks:
86+
# - app_network
87+
# restart: on-failure
88+
# extra_hosts:
89+
# - 'host.docker.internal:host-gateway'
90+
# tty: true
9191

92-
shovel_stake_map:
93-
build:
94-
context: ./scraper_service
95-
dockerfile: ./shovel_stake_map/Dockerfile
96-
container_name: shovel_stake_map
97-
depends_on:
98-
clickhouse:
99-
condition: service_started
100-
env_file:
101-
- .env
102-
logging:
103-
driver: 'json-file'
104-
options:
105-
max-size: '10m'
106-
max-file: '3'
107-
networks:
108-
- app_network
109-
restart: on-failure
110-
extra_hosts:
111-
- 'host.docker.internal:host-gateway'
112-
tty: true
92+
# shovel_stake_map:
93+
# build:
94+
# context: ./scraper_service
95+
# dockerfile: ./shovel_stake_map/Dockerfile
96+
# container_name: shovel_stake_map
97+
# depends_on:
98+
# clickhouse:
99+
# condition: service_started
100+
# env_file:
101+
# - .env
102+
# logging:
103+
# driver: 'json-file'
104+
# options:
105+
# max-size: '10m'
106+
# max-file: '3'
107+
# networks:
108+
# - app_network
109+
# restart: on-failure
110+
# extra_hosts:
111+
# - 'host.docker.internal:host-gateway'
112+
# tty: true
113113

114-
shovel_hotkey_owner_map:
115-
build:
116-
context: ./scraper_service
117-
dockerfile: ./shovel_hotkey_owner_map/Dockerfile
118-
container_name: shovel_hotkey_owner_map
119-
depends_on:
120-
clickhouse:
121-
condition: service_started
122-
env_file:
123-
- .env
124-
logging:
125-
driver: 'json-file'
126-
options:
127-
max-size: '10m'
128-
max-file: '3'
129-
networks:
130-
- app_network
131-
restart: on-failure
132-
extra_hosts:
133-
- 'host.docker.internal:host-gateway'
134-
tty: true
114+
# shovel_hotkey_owner_map:
115+
# build:
116+
# context: ./scraper_service
117+
# dockerfile: ./shovel_hotkey_owner_map/Dockerfile
118+
# container_name: shovel_hotkey_owner_map
119+
# depends_on:
120+
# clickhouse:
121+
# condition: service_started
122+
# env_file:
123+
# - .env
124+
# logging:
125+
# driver: 'json-file'
126+
# options:
127+
# max-size: '10m'
128+
# max-file: '3'
129+
# networks:
130+
# - app_network
131+
# restart: on-failure
132+
# extra_hosts:
133+
# - 'host.docker.internal:host-gateway'
134+
# tty: true
135135

136-
shovel_subnets:
137-
build:
138-
context: ./scraper_service
139-
dockerfile: ./shovel_subnets/Dockerfile
140-
container_name: shovel_subnets
141-
depends_on:
142-
clickhouse:
143-
condition: service_started
144-
env_file:
145-
- .env
146-
logging:
147-
driver: 'json-file'
148-
options:
149-
max-size: '10m'
150-
max-file: '3'
151-
networks:
152-
- app_network
153-
restart: always
154-
extra_hosts:
155-
- 'host.docker.internal:host-gateway'
156-
tty: true
136+
# shovel_subnets:
137+
# build:
138+
# context: ./scraper_service
139+
# dockerfile: ./shovel_subnets/Dockerfile
140+
# container_name: shovel_subnets
141+
# depends_on:
142+
# clickhouse:
143+
# condition: service_started
144+
# env_file:
145+
# - .env
146+
# logging:
147+
# driver: 'json-file'
148+
# options:
149+
# max-size: '10m'
150+
# max-file: '3'
151+
# networks:
152+
# - app_network
153+
# restart: always
154+
# extra_hosts:
155+
# - 'host.docker.internal:host-gateway'
156+
# tty: true
157157

158-
shovel_daily_stake:
159-
build:
160-
context: ./scraper_service
161-
dockerfile: ./shovel_daily_stake/Dockerfile
162-
container_name: shovel_daily_stake
163-
depends_on:
164-
clickhouse:
165-
condition: service_started
166-
env_file:
167-
- .env
168-
logging:
169-
driver: 'json-file'
170-
options:
171-
max-size: '10m'
172-
max-file: '3'
173-
networks:
174-
- app_network
175-
restart: on-failure
176-
extra_hosts:
177-
- 'host.docker.internal:host-gateway'
178-
tty: true
158+
# shovel_daily_stake:
159+
# build:
160+
# context: ./scraper_service
161+
# dockerfile: ./shovel_daily_stake/Dockerfile
162+
# container_name: shovel_daily_stake
163+
# depends_on:
164+
# clickhouse:
165+
# condition: service_started
166+
# env_file:
167+
# - .env
168+
# logging:
169+
# driver: 'json-file'
170+
# options:
171+
# max-size: '10m'
172+
# max-file: '3'
173+
# networks:
174+
# - app_network
175+
# restart: on-failure
176+
# extra_hosts:
177+
# - 'host.docker.internal:host-gateway'
178+
# tty: true
179179

180-
shovel_daily_balance:
181-
build:
182-
context: ./scraper_service
183-
dockerfile: ./shovel_daily_balance/Dockerfile
184-
container_name: shovel_daily_balance
185-
depends_on:
186-
clickhouse:
187-
condition: service_started
188-
env_file:
189-
- .env
190-
logging:
191-
driver: 'json-file'
192-
options:
193-
max-size: '10m'
194-
max-file: '3'
195-
networks:
196-
- app_network
197-
restart: on-failure
198-
extra_hosts:
199-
- 'host.docker.internal:host-gateway'
200-
tty: true
180+
# shovel_daily_balance:
181+
# build:
182+
# context: ./scraper_service
183+
# dockerfile: ./shovel_daily_balance/Dockerfile
184+
# container_name: shovel_daily_balance
185+
# depends_on:
186+
# clickhouse:
187+
# condition: service_started
188+
# env_file:
189+
# - .env
190+
# logging:
191+
# driver: 'json-file'
192+
# options:
193+
# max-size: '10m'
194+
# max-file: '3'
195+
# networks:
196+
# - app_network
197+
# restart: on-failure
198+
# extra_hosts:
199+
# - 'host.docker.internal:host-gateway'
200+
# tty: true
201201

202-
shovel_tao_price:
203-
build:
204-
context: ./scraper_service
205-
dockerfile: ./shovel_tao_price/Dockerfile
206-
container_name: shovel_tao_price
207-
depends_on:
208-
clickhouse:
209-
condition: service_started
210-
env_file:
211-
- .env
212-
logging:
213-
driver: 'json-file'
214-
options:
215-
max-size: '10m'
216-
max-file: '3'
217-
networks:
218-
- app_network
219-
restart: on-failure
220-
extra_hosts:
221-
- 'host.docker.internal:host-gateway'
222-
tty: true
202+
# shovel_tao_price:
203+
# build:
204+
# context: ./scraper_service
205+
# dockerfile: ./shovel_tao_price/Dockerfile
206+
# container_name: shovel_tao_price
207+
# depends_on:
208+
# clickhouse:
209+
# condition: service_started
210+
# env_file:
211+
# - .env
212+
# logging:
213+
# driver: 'json-file'
214+
# options:
215+
# max-size: '10m'
216+
# max-file: '3'
217+
# networks:
218+
# - app_network
219+
# restart: on-failure
220+
# extra_hosts:
221+
# - 'host.docker.internal:host-gateway'
222+
# tty: true
223+
224+
# shovel_alpha_to_tao:
225+
# build:
226+
# context: ./scraper_service
227+
# dockerfile: ./shovel_alpha_to_tao/Dockerfile
228+
# container_name: shovel_alpha_to_tao
229+
# depends_on:
230+
# clickhouse:
231+
# condition: service_started
232+
# env_file:
233+
# - .env
234+
# logging:
235+
# driver: 'json-file'
236+
# options:
237+
# max-size: '10m'
238+
# max-file: '3'
239+
# networks:
240+
# - app_network
241+
# restart: on-failure
242+
# extra_hosts:
243+
# - 'host.docker.internal:host-gateway'
244+
# tty: true
223245

224-
shovel_alpha_to_tao:
246+
shovel_validators:
225247
build:
226248
context: ./scraper_service
227-
dockerfile: ./shovel_alpha_to_tao/Dockerfile
228-
container_name: shovel_alpha_to_tao
249+
dockerfile: ./shovel_validators/Dockerfile
250+
container_name: shovel_validators
229251
depends_on:
230252
clickhouse:
231253
condition: service_started

0 commit comments

Comments
 (0)