-
Notifications
You must be signed in to change notification settings - Fork 0
/
cosmos-devnet.nix
184 lines (174 loc) · 6.34 KB
/
cosmos-devnet.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{
networksLib,
packages,
log_directory,
}: {
log_level = "debug";
log_location = "${log_directory}/cosmos-devnet.log";
processes = {
centauri-init = {
command = packages.centauri-init;
log_location = "${log_directory}/centauri-init.log";
availability = {restart = "on_failure";};
};
centauri-start = {
command = packages.centauri-start;
depends_on."centauri-init".condition = "process_completed_successfully";
log_location = "${log_directory}/centauri-start.log";
readiness_probe.http_get = {
host = "127.0.0.1";
port = networksLib.networks.pica.devnet.CONSENSUS_RPC_PORT;
};
availability = {restart = "always";};
};
osmosis-init = {
command = packages.osmosis-init;
log_location = "${log_directory}/osmosis-init.log";
availability = {restart = "on_failure";};
};
osmosis-start = {
command = packages.osmosis-start;
depends_on."osmosis-init".condition = "process_completed_successfully";
log_location = "${log_directory}/osmosis-start.log";
readiness_probe.http_get = {
host = "127.0.0.1";
port = networksLib.networks.osmosis.devnet.CONSENSUS_RPC_PORT;
};
availability = {restart = "always";};
};
osmosis-centauri-init = {
command = packages.osmosis-centauri-init;
log_location = "${log_directory}/osmosis-centauri-init.log";
availability = {restart = "on_failure";};
depends_on = {
"osmosis-start".condition = "process_healthy";
"centauri-start".condition = "process_healthy";
};
namespace = "bridge";
};
osmosis-centauri-start = {
command = packages.osmosis-centauri-start;
log_location = "${log_directory}/osmosis-centauri-start.log";
availability = {restart = "always";};
readiness_probe = {
http_get = {
host = "0.0.0.0";
port = networksLib.networks.osmosis-centauri.devnet.REST_PORT;
path = "/version";
};
};
depends_on = {
"osmosis-centauri-init".condition = "process_completed_successfully";
};
namespace = "bridge";
};
osmosis-cvm-init = {
command = packages.osmosis-cvm-init;
log_location = "${log_directory}/osmosis-cvm-init.log";
availability = {restart = "no";};
depends_on = {
"osmosis-centauri-init".condition = "process_completed_successfully";
};
namespace = "cvm";
};
centauri-cvm-init = {
command = packages.centauri-cvm-init;
log_location = "${log_directory}/centauri-cvm-init.log";
availability = {restart = "no";};
depends_on = {
"osmosis-centauri-init".condition = "process_completed_successfully";
};
namespace = "cvm";
};
cvm-config = {
command = packages.cvm-config;
log_location = "${log_directory}/cvm-config.log";
availability = {restart = "on_failure";};
depends_on = {
"centauri-cvm-init".condition = "process_completed_successfully";
"osmosis-cvm-init".condition = "process_completed_successfully";
};
namespace = "cvm";
};
centauri-cvm-config = {
command = packages.centauri-cvm-config;
log_location = "${log_directory}/centauri-cvm-config.log";
availability = {restart = "on_failure";};
depends_on = {
"cvm-config".condition = "process_completed_successfully";
};
namespace = "cvm";
};
osmosis-cvm-config = {
command = packages.osmosis-cvm-config;
log_location = "${log_directory}/osmosis-cvm-config.log";
availability = {restart = "on_failure";};
depends_on = {
"cvm-config".condition = "process_completed_successfully";
};
namespace = "cvm";
};
osmosis-to-centauri-transfer = {
command = packages.osmosis-to-centauri-transfer;
log_location = "${log_directory}/osmosis-to-centauri-transfer.log";
availability = {restart = "on_failure";};
depends_on = {
"osmosis-centauri-start".condition = "process_healthy";
};
namespace = "app";
};
centauri-to-osmosis-transfer = {
command = packages.centauri-to-osmosis-transfer;
log_location = "${log_directory}/centauri-to-osmosis-transfer.log";
availability = {restart = "on_failure";};
depends_on = {
"osmosis-centauri-start".condition = "process_healthy";
};
namespace = "app";
};
osmosis-pools-init = {
command = packages.osmosis-pools-init;
log_location = "${log_directory}/osmosis-pools-init.log";
availability = {restart = "on_failure";};
depends_on = {
"centauri-to-osmosis-transfer".condition = "process_completed_successfully";
"osmosis-to-centauri-transfer".condition = "process_completed_successfully";
};
namespace = "app";
};
mantis-order-simulate = {
command = packages.mantis-order-simulate;
log_location = "${log_directory}/mantis-order-simulate.log";
availability = {restart = "on_failure";};
depends_on = {
"centauri-to-osmosis-transfer".condition = "process_completed_successfully";
"osmosis-to-centauri-transfer".condition = "process_completed_successfully";
"centauri-cvm-config".condition = "process_completed_successfully";
};
namespace = "app";
};
# mantis-solver-cow = {
# command = packages.mantis-solver-cow;
# log_location = "${log_directory}/mantis-solver-cow.log";
# availability = {restart = "on_failure";};
# depends_on = {
# "centauri-to-osmosis-transfer".condition = "process_completed_successfully";
# "osmosis-to-centauri-transfer".condition = "process_completed_successfully";
# "centauri-cvm-config".condition = "process_completed_successfully";
# };
# namespace = "app";
# };
mantis-solver-cvm = {
command = packages.mantis-solver-cvm;
log_location = "${log_directory}/mantis-solver-cvm.log";
availability = {restart = "on_failure";};
depends_on = {
"osmosis-pools-init".condition = "process_completed_successfully";
"centauri-to-osmosis-transfer".condition = "process_completed_successfully";
"osmosis-to-centauri-transfer".condition = "process_completed_successfully";
"centauri-cvm-config".condition = "process_completed_successfully";
};
namespace = "app";
};
};
}