-
Notifications
You must be signed in to change notification settings - Fork 8
/
makefile
36 lines (24 loc) Β· 1003 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
# useful commands for Honeylemon
# default target
default:
pwd
local-ganache:
docker-compose -f ./docker/docker-compose-local.yml up -d ganache
local-ganache-wait:
waitForGanache () { until printf 'POST /\r\nContent-Length: 26\r\n\r\n{\"method\":\"net_listening\"}' | nc localhost 8545 | grep true; do continue; done }; waitForGanache
local-docker:
docker-compose -f ./docker/docker-compose-local.yml up -d
local-subgraph-deploy:
cd packages/subgraph && npm run prepare:local && npm run build && npm run create:local && npm run deploy:local
local-start: local-docker local-ganache-wait migrate local-subgraph-deploy
local-stop:
docker-compose -f ./docker/docker-compose-local.yml down
local-clean: local-stop
rm -rf docker/.volumes
local-reset: local-clean local-start
compile:
cd ./packages/contracts && npx truffle compile
migrate:
cd packages/contracts; npx truffle migrate --reset
deploy-daily-contract:
cd packages/contracts; npx truffle exec scripts/deploy-daily-contract.js