-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (33 loc) · 1.11 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
48
49
.DEFAULT_GOAL := all
GOBUILD=go build
.PHONY: all test clean wrappers build keys
npm:
@if [ -d truffle/node_modules ]; then \
echo "installed"; \
else \
cd truffle;npm i;fi
wrappers: npm
cd truffle;npx truffle build;
go run wrappers-builder/main.go --json truffle/build/contracts --pkg wrappers --out wrappers
clean:
rm ./wrappers/*.go || rm ./truffle/build/contracts/*.json || rm ./bridge ./wrappers-builder/wrappers-builder || rm keys/*.key || rm logs/*.log
build: keys
go build -o bridge cmd/node.go
start: build
./bridge
testbls:
#go test -v ./p2p/pub_sub_bls/libp2p_pubsub -run ^TestWithMinorFailure$
#go test -v ./p2p/pub_sub_bls/libp2p_pubsub -run ^TestWithThreeGroups$
go test -v ./p2p/pub_sub_bls/libp2p_pubsub -run ^TestBLS$
test:
go test ./test -v
all: deps wrappers build
CONTRACTSRC=$(shell find truffle/contracts -name '*.sol' || true)
SOLCURL=https://github.com/ethereum/solidity/releases/download/v0.6.9
solc:
mkdir -p compilers/solc
wget -O compilers/solc/solc-static-linux $(SOLCURL)/solc-static-linux
keys:
go run key/keygen.go --prefix srv3
deps:
go mod download