@@ -188,3 +188,42 @@ test-all: build_release build-test-utils
188
188
- -committee test-configs/ local/ committee.toml \
189
189
- -committee-id 0 \
190
190
- -blocks 1000
191
+
192
+ test-dyn-comm : build_release build-test-utils
193
+ env RUST_LOG=info target/ release/ run \
194
+ - -verbose \
195
+ - -timeout 120 \
196
+ - -spawn " 1:anvil --port 8545" \
197
+ - -run " 2:sleep 2" \
198
+ - -run " 3:scripts/deploy-test-contract" \
199
+ - -spawn " 4:target/release/yapper --keyset-file test-configs/c0/committee.toml" \
200
+ - -spawn " 5:target/release/run-committee --configs test-configs/c0/ --committee 0" \
201
+ - -run " 6:target/release/mkconfig -n 6 \
202
+ --public-addr '127.0.0.1:9000' \
203
+ --internal-addr '127.0.0.1:9003' \
204
+ --http-api '127.0.0.1:9004' \
205
+ --chain-namespace 10101 \
206
+ --parent-rpc-url 'http://127.0.0.1:8545' \
207
+ --parent-ws-url 'ws://127.0.0.1:8545' \
208
+ --parent-chain-id 31337 \
209
+ --parent-ibox-contract " 0xa0f3a1a4e2b2bcb7b48 c8527 c28098 f207572 ec1" \
210
+ --key-manager-contract " 0x2bbf15 bc655 c4cc157 b769 cfcb1ea9924 b9e1a35 " \
211
+ --timestamp '`just now-plus-20s`' \
212
+ --stamp-dir '/tmp' \
213
+ --output 'test-configs/c1'" \
214
+ - -run " 7:target/release/register -m 'attend year erase basket blind adapt stove broccoli isolate unveil acquire category' \
215
+ -i 0 \
216
+ -u 'http://localhost:8545' \
217
+ -k '0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35' \
218
+ -c 'test-configs/c1/committee.toml'" \
219
+ - -run " 8:pkill -9 yapper && target/release/yapper --keyset-file test-configs/c1/committee.toml" \
220
+ target/ release/ run-committee --configs test-configs/ c1 \
221
+ - -committee 1 \
222
+ - -until 800 \
223
+ - -required-decrypt-rounds 3 && rm -rf test-configs/ c1
224
+
225
+
226
+ # portable calculation of now() + 20s in "%Y-%m-%dT%H:%M:%SZ" format
227
+ [private ]
228
+ now-plus-20s :
229
+ @ python3 -c ' from datetime import datetime, timedelta, timezone; print((datetime.now(timezone.utc)+timedelta(seconds=20)).strftime("%Y-%m-%dT%H:%M:%SZ"))'
0 commit comments