-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
50 lines (39 loc) · 1.46 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
50
URL?=http://localhost:8545
install-deps:
@echo " > \033[32mInstalling dependencies... \033[0m "
./scripts/install_deps.sh
.PHONY: test
test:
@echo " > \033[32mTesting contracts... \033[0m "
truffle test --stacktrace
compile:
@echo " > \033[32mCompiling contracts... \033[0m "
truffle compile
start-ganache:
@echo " > \033[32mStarting ganache... \033[0m "
./scripts/start_ganache.sh
start-forkedMainnet:
@echo " > \033[32mStarting forked environment... \033[0m "
ganache -f $(FORKED_TESTS_PROVIDER) & sleep 3
test-forked:
@echo " > \033[32mTesting contracts... \033[0m "
truffle test --stacktrace testUnderForked/*
start-geth:
@echo " > \033[32mStarting geth... \033[0m "
./scripts/geth/start_geth.sh
bindings: compile
@echo " > \033[32mCreating go bindings for ethereum contracts... \033[0m "
./scripts/create_bindings.sh
func-signatures:
@echo " > \033[32mGenerating signature hashes... \033[0m "
node -e "require('./scripts/generateFuncSignatures.js').generateAccessControlFuncSignatures()"
## license: Adds license header to missing files.
license:
@echo " > \033[32mAdding license headers...\033[0m "
GO111MODULE=off go get -u github.com/google/addlicense
addlicense -c "Sygma" -f ./scripts/header.txt -y 2021 .
## license-check: Checks for missing license headers
license-check:
@echo " > \033[Checking for license headers...\033[0m "
GO111MODULE=off go get -u github.com/google/addlicense
addlicense -check -c "SYgma" -f ./scripts/header.txt -y 2021 .