64
64
ci_local :
65
65
just build && just lint && just test_ci --release && \
66
66
just run_demo --ignore-stamp --yapper -c test-configs/ c0 && \
67
- just run_sailfish_demo && just build_docker
67
+ just run-sailfish-demo && just build_docker
68
68
69
69
bacon : clippy check fmt
70
70
@@ -88,8 +88,17 @@ stop_monitoring:
88
88
run_demo * ARGS :
89
89
scripts/ run-timeboost-demo {{ ARGS}}
90
90
91
- run_sailfish_demo * ARGS :
92
- scripts/ run-sailfish-demo {{ ARGS}}
91
+ run-sailfish-demo : build-test-utils build_release
92
+ env RUST_LOG=sailfish=info,warn \
93
+ target/ release/ run --verbose \
94
+ - -spawn " 1:anvil --port 8545" \
95
+ - -run " 2:sleep 3" \
96
+ - -run " 3:scripts/deploy-contract -c test-configs/c0/committee.toml -u http://localhost:8545" \
97
+ - -spawn " 4:target/release/sailfish -c test-configs/c0/node_0.toml --stamp /tmp/stamp-0.sf --ignore-stamp" \
98
+ - -spawn " 4:target/release/sailfish -c test-configs/c0/node_1.toml --stamp /tmp/stamp-1.sf --ignore-stamp" \
99
+ - -spawn " 4:target/release/sailfish -c test-configs/c0/node_2.toml --stamp /tmp/stamp-2.sf --ignore-stamp" \
100
+ - -spawn " 4:target/release/sailfish -c test-configs/c0/node_3.toml --stamp /tmp/stamp-3.sf --ignore-stamp" \
101
+ target/ release/ sailfish -- -c test-configs/ c0/ node_4.toml --stamp / tmp/ stamp-4.sf --ignore-stamp --until 300
93
102
94
103
run * ARGS :
95
104
cargo run {{ ARGS}}
@@ -99,6 +108,7 @@ bench *ARGS:
99
108
100
109
mkconfig NUM_NODES DATETIME * ARGS :
101
110
cargo run --release --bin mkconfig -- -n {{ NUM_NODES}} \
111
+ - -committee-id 0 \
102
112
- -public-addr " 127.0.0.1:8000" \
103
113
- -internal-addr " 127.0.0.1:8003" \
104
114
- -http-api " 127.0.0.1:8004" \
@@ -114,22 +124,27 @@ mkconfig NUM_NODES DATETIME *ARGS:
114
124
115
125
mkconfig_docker DATETIME * ARGS :
116
126
cargo run --release --bin mkconfig -- -n 5 \
127
+ - -committee-id 0 \
117
128
- -public-addr " 172.20.0.2:8000" \
118
129
- -internal-addr " 172.20.0.2:8003" \
119
130
- -http-api " 172.20.0.2:8004" \
131
+ - -nitro-addr " 172.20.0.12:55000" \
120
132
- -mode " increment-address" \
121
133
- -chain-namespace 10101 \
122
- - -parent-rpc-url " http://172.20.0.12 :8545" \
123
- - -parent-ws-url " ws://172.20.0.12:8545 " \
134
+ - -parent-rpc-url " http://172.20.0.11 :8545" \
135
+ - -parent-ws-url " ws://172.20.0.11:8546 " \
124
136
- -parent-chain-id 31337 \
125
137
- -parent-ibox-contract " 0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1" \
126
138
- -key-manager-contract " 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35" \
127
139
- -timestamp {{ DATETIME}} \
128
140
- -stamp-dir " /tmp" \
141
+ - -espresso-base-url " http://172.20.0.14:41000/v1/" \
142
+ - -espresso-websocket-url " ws://172.20.0.14:41000/v1/" \
129
143
- -output " test-configs/docker" {{ ARGS}}
130
144
131
145
mkconfig_nitro DATETIME * ARGS :
132
146
cargo run --release --bin mkconfig -- -n 2 \
147
+ - -committee-id 0 \
133
148
- -public-addr " 127.0.0.1:8000" \
134
149
- -internal-addr " 0.0.0.0:8003" \
135
150
- -http-api " 127.0.0.1:8004" \
@@ -181,7 +196,7 @@ test-all: build_release build-test-utils
181
196
- -timeout 120 \
182
197
- -spawn " 1:anvil --port 8545" \
183
198
- -run " 2:sleep 3" \
184
- - -run " 3:scripts/deploy-contract-local test-configs/local/committee.toml http://localhost:8545" \
199
+ - -run " 3:scripts/deploy-contract -c test-configs/local/committee.toml -u http://localhost:8545" \
185
200
- -spawn " 4:target/release/block-maker --bind 127.0.0.1:55000 -c test-configs/local/committee.toml" \
186
201
- -spawn " 4:target/release/yapper -c test-configs/local/committee.toml" \
187
202
- -spawn " 5:target/release/run-committee -c test-configs/local/" \
@@ -193,7 +208,7 @@ test-dyn-comm: build_release_until build-test-utils
193
208
- -timeout 120 \
194
209
- -spawn " 1:anvil --port 8545" \
195
210
- -run " 2:sleep 2" \
196
- - -run " 3:scripts/deploy-contract-local test-configs/local/committee.toml http://localhost:8545" \
211
+ - -run " 3:scripts/deploy-contract -c test-configs/local/committee.toml -u http://localhost:8545" \
197
212
- -spawn " 4:target/release/run-committee -c test-configs/c0/ --until 2000" \
198
213
- -run " 5:target/release/mkconfig -n 4 \
199
214
--committee-id 1 \
@@ -266,7 +281,7 @@ netsim: build_release build-test-utils
266
281
- -gid $(id -g) \
267
282
- -spawn " 1:anvil --host 11.0.1.0 --port 8545" \
268
283
- -run " 2:sleep 3" \
269
- - -run " 3:scripts/deploy-contract-local test-configs/linux/committee.toml http://11.0.1.0:8545" \
284
+ - -run " 3:scripts/deploy-contract -c test-configs/linux/committee.toml -u http://11.0.1.0:8545" \
270
285
- -spawn " 4:target/release/block-maker --bind 11.0.1.0:55000 -c test-configs/linux/committee.toml" \
271
286
- -spawn " 4:target/release/yapper -c test-configs/linux/committee.toml" \
272
287
- -spawn-as-root " 5:target/release/run-committee -u $(id -u) -g $(id -g) -c test-configs/linux/" \
0 commit comments