Skip to content

Commit a63112f

Browse files
committed
chore: keeper bot compose for mainnet-neo
1 parent f733224 commit a63112f

File tree

4 files changed

+92
-0
lines changed

4 files changed

+92
-0
lines changed

services/bots/mainnet-neo/.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
DEPLOYMENT=mainnet-neo
2+
COMPOSE_PROJECT_NAME=bots-$DEPLOYMENT
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Bot account
2+
PRIVATE_KEY=0x000000.....00000
3+
4+
# Bot subgraph
5+
SUBGRAPH_URL=https://api.thegraph.com/subgraphs/name/alcercu/kleroscoretest
6+
7+
# Logging
8+
LOG_LEVEL=debug
9+
LOGTAIL_TOKEN_KEEPER_BOT=<optional token>
10+
LOGTAIL_TOKEN_RELAYER_BOT=<optional token>
11+
LOGTAIL_TOKEN_DISPUTOR_BOT=<optional token>
12+
13+
# Heartbeat
14+
HEARTBEAT_URL_KEEPER_BOT=<optional url>
15+
HEARTBEAT_URL_RELAYER_BOT=<optional url>
16+
HEARTBEAT_URL_DISPUTOR_BOT=<optional url>
17+
18+
DISPUTES_TO_SKIP=

services/bots/mainnet-neo/compose.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
version: '3'
2+
services:
3+
keeper-bot:
4+
container_name: keeper-bot-${DEPLOYMENT:?error}
5+
extends:
6+
file: ../base/bot-pm2.yml
7+
service: bot-pm2
8+
volumes:
9+
- type: bind
10+
source: ./pm2.config.keeper-bot.${DEPLOYMENT}.js
11+
target: /usr/src/app/contracts/ecosystem.config.js
12+
13+
disputor-bot:
14+
container_name: disputor-bot-${DEPLOYMENT:?error}
15+
extends:
16+
file: ../base/bot-pm2.yml
17+
service: bot-pm2
18+
volumes:
19+
- type: bind
20+
source: ./pm2.config.disputor-bot.${DEPLOYMENT}.js
21+
target: /usr/src/app/contracts/ecosystem.config.js
22+
23+
relayer-bot-from-chiado:
24+
container_name: relayer-bot-from-chiado-${DEPLOYMENT:?error}
25+
extends:
26+
file: ../base/bot-pm2.yml
27+
service: bot-pm2
28+
volumes:
29+
- type: bind
30+
source: ./pm2.config.relayer-bot-from-chiado.${DEPLOYMENT}.js
31+
target: /usr/src/app/contracts/ecosystem.config.js
32+
profiles:
33+
- chiado
34+
35+
relayer-bot-from-sepolia:
36+
container_name: relayer-bot-from-sepolia-${DEPLOYMENT:?error}
37+
extends:
38+
file: ../base/bot-pm2.yml
39+
service: bot-pm2
40+
volumes:
41+
- type: bind
42+
source: ./pm2.config.relayer-bot-from-sepolia.${DEPLOYMENT}.js
43+
target: /usr/src/app/contracts/ecosystem.config.js
44+
profiles:
45+
- sepolia
46+
47+
relayer-bot-from-hardhat-host:
48+
container_name: relayer-bot-from-hardhat-host-${DEPLOYMENT:?error}
49+
extends:
50+
file: ../base/bot.yml
51+
service: bot
52+
command: bot:relayer-from-hardhat --network dockerhost
53+
extra_hosts:
54+
- host.docker.internal:host-gateway
55+
volumes:
56+
- type: bind
57+
source: ../../contracts/deployments/localhost
58+
target: /usr/src/app/contracts/deployments/localhost
59+
profiles:
60+
- hardhat
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
apps: [
3+
{
4+
name: "keeper-bot-mainnet-neo",
5+
interpreter: "sh",
6+
script: "yarn",
7+
args: "bot:keeper --network arbitrum",
8+
restart_delay: 600000, // 10 minutes
9+
autorestart: true,
10+
},
11+
],
12+
};

0 commit comments

Comments
 (0)