@@ -19,6 +19,9 @@ update-submodules:
19
19
build_release * ARGS :
20
20
cargo build --release --workspace --all-targets {{ ARGS}}
21
21
22
+ build_release_until :
23
+ cargo build --release --workspace --all-targets --features " until"
24
+
22
25
build_docker :
23
26
docker build . -f ./ docker/ timeboost.Dockerfile -t timeboost:latest
24
27
docker build . -f ./ docker/ yapper.Dockerfile -t yapper:latest
@@ -103,6 +106,7 @@ mkconfig NUM_NODES DATETIME *ARGS:
103
106
- -http-api " 127.0.0.1:8004" \
104
107
- -chain-namespace 10101 \
105
108
- -parent-rpc-url " http://127.0.0.1:8545" \
109
+ - -parent-ws-url " ws://127.0.0.1:8545" \
106
110
- -parent-chain-id 31337 \
107
111
- -parent-ibox-contract " 0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1" \
108
112
- -key-manager-contract " 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35" \
@@ -118,6 +122,7 @@ mkconfig_docker DATETIME *ARGS:
118
122
- -mode " increment-address" \
119
123
- -chain-namespace 10101 \
120
124
- -parent-rpc-url " http://127.0.0.1:8545" \
125
+ - -parent-ws-url " ws://127.0.0.1:8545" \
121
126
- -parent-chain-id 31337 \
122
127
- -parent-ibox-contract " 0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1" \
123
128
- -key-manager-contract " 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35" \
@@ -133,6 +138,7 @@ mkconfig_nitro DATETIME *ARGS:
133
138
- -nitro-addr " localhost:55000" \
134
139
- -chain-namespace 412346 \
135
140
- -parent-rpc-url " http://127.0.0.1:8545" \
141
+ - -parent-ws-url " ws://127.0.0.1:8546" \
136
142
- -parent-chain-id 1337 \
137
143
- -parent-ibox-contract " 0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1" \
138
144
- -key-manager-contract " 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35" \
@@ -179,9 +185,53 @@ test-all: build_release build-test-utils
179
185
- -run " 3:scripts/deploy-test-contract" \
180
186
- -spawn " 4:target/release/block-maker --port 55000 --committee test-configs/local/committee.toml" \
181
187
- -spawn " 4:target/release/yapper --keyset-file test-configs/local/committee.toml" \
182
- - -spawn " 5:target/release/run-committee --configs test-configs/local/ --committee 0 --timeboost target/release/timeboost" \
188
+ - -spawn " 5:target/release/run-committee --configs test-configs/local/ --committee-id 0 --timeboost target/release/timeboost" \
183
189
target/ release/ block-checker -- \
184
190
- -config test-configs/ local/ node_0.toml \
185
191
- -committee test-configs/ local/ committee.toml \
186
192
- -committee-id 0 \
187
193
- -blocks 1000
194
+
195
+ test-dyn-comm : build_release_until build-test-utils
196
+ env RUST_LOG=sailfish=warn,yapper=error ,timeboost=info,info target/ release/ run \
197
+ - -verbose \
198
+ - -timeout 120 \
199
+ - -spawn " 1:anvil --port 8545" \
200
+ - -run " 2:sleep 2" \
201
+ - -run " 3:scripts/deploy-test-contract" \
202
+ - -spawn " 4:target/release/run-committee --configs test-configs/c0/ --committee-id 0 --until 2000" \
203
+ - -run " 5:target/release/mkconfig -n 4 \
204
+ --public-addr 127.0.0.1:9000 \
205
+ --internal-addr 127.0.0.1:9003 \
206
+ --http-api 127.0.0.1:9004 \
207
+ --chain-namespace 10101 \
208
+ --parent-rpc-url http://127.0.0.1:8545 \
209
+ --parent-ws-url ws://127.0.0.1:8545 \
210
+ --parent-chain-id 31337 \
211
+ --parent-ibox-contract 0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1 \
212
+ --key-manager-contract 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35 \
213
+ --timestamp +16s \
214
+ --stamp-dir /tmp \
215
+ --output test-configs/c1" \
216
+ - -run " 6:sleep 6" \
217
+ - -run " 7:target/release/register \
218
+ -a threshold-enc-key \
219
+ -m 'attend year erase basket blind adapt stove broccoli isolate unveil acquire category' \
220
+ -u http://localhost:8545 \
221
+ -k 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35 \
222
+ -c test-configs/c0/committee.toml" \
223
+ - -run " 8:target/release/register \
224
+ -a new-committee \
225
+ -m 'attend year erase basket blind adapt stove broccoli isolate unveil acquire category' \
226
+ -u http://localhost:8545 \
227
+ -k 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35 \
228
+ -c test-configs/c1/committee.toml" \
229
+ - -spawn " 9:target/release/yapper \
230
+ --keyset-file test-configs/c1/committee.toml \
231
+ --parent-url http://localhost:8545 \
232
+ --key-manager-contract 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35" \
233
+ target/ release/ run-committee -- \
234
+ - -configs test-configs/ c1/ \
235
+ - -committee-id 1 \
236
+ - -until 800 \
237
+ - -required-decrypt-rounds 3 && rm -rf test-configs/ c1
0 commit comments