forked from anoma/namada-trusted-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (32 loc) · 1.31 KB
/
Makefile
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
CARGO := cargo
CARGO_NIGHTLY := $(CARGO) +nightly
CLI_FLAGS := --bin namada-ts --features=cli
build:
$(CARGO) build
check:
$(CARGO) check --workspace --all-targets
check-release:
$(CARGO) check --release --workspace
fmt:
$(CARGO_NIGHTLY) fmt --all
clippy:
$(CARGO_NIGHTLY) clippy --all-targets --all-features -- -D warnings
clippy-fix:
$(CARGO_NIGHTLY) clippy --fix -Z unstable-options --all-targets --allow-dirty --allow-staged
update:
$(CARGO) update
clean:
$(CARGO) clean
# NOTE: The following commands are for debug purposes only
close-ceremony: # Stop local coordinator (0.0.0.0:8080)
RUST_LOG=debug $(CARGO) run $(CLI_FLAGS) close-ceremony
verify: # Verify pending contributions on local coordinator (0.0.0.0:8080)
RUST_LOG=debug $(CARGO) run $(CLI_FLAGS) verify-contributions
update-coordinator: # Manually update the coordinator
RUST_LOG=debug $(CARGO) run $(CLI_FLAGS) update-coordinator
get-contributions: # Get the received contributions on local coordinator (0.0.0.0:8080)
RUST_LOG=debug $(CARGO) run $(CLI_FLAGS) get-contributions
run-coordinator:
aws s3 rm s3://${AWS_S3_BUCKET} --recursive
RUST_LOG=debug $(CARGO) run --features=parallel --bin phase1-coordinator
.PHONY : build check clean clippy clippy-fix close-ceremony fmt get-contributions run-coordinator test-coordinator test-e2e update verify