-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
36 lines (25 loc) · 942 Bytes
/
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
.PHONY: clean-protoc build-protoc proto sol-lint js-lint sol-format import-ibc test demo
clean-protoc:
rm -rf ./solidity-protobuf 2>/dev/null
build-protoc: | clean-protoc
git clone https://github.com/mkaczanowski/solidity-protobuf
proto:
./scripts/protobuf_compile.sh
sol-lint:
solhint 'contracts/{utils,mocks}/**/*.sol'
js-lint:
eslint test/utlis *.js
sol-format:
npx prettier --write 'contracts/{utils,mocks}/*.sol' 'contracts/proto/{Encoder.sol,TendermintHelper.sol}'
import-ibc:
./scripts/import_ibc.sh
config:
export CONF_TPL="./test/demo/src/consts.rs:./scripts/template/contract.rs.tpl" && truffle exec ./scripts/confgen.js --network=$(NETWORK)
test:
truffle test --network tests
demo:
# gas-price: 0.5 gwei = 500000000 wei
cd test/demo && cargo run -- --max-headers 3 --celo-gas-price 500000000 --celo-usd-price 5.20
deploy:
# gas-price: 0.5 gwei = 500000000 wei
./scripts/deploy_with_stats.sh 500000000 5.20