-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 786 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 786 Bytes
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
RPC_URL= localhost:8545
PROJECT_ID= thinkchain
TMP_DIRS= broadcast cache completionIds deployments models out requests results
.PHONY: deploy
deploy:
@contracts/deploy.sh --fork-url $(RPC_URL)
.PHONY: request
request: deploy
@contracts/request.sh --fork-url $(RPC_URL)
.PHONY: clean
clean:
@cd contracts && rm -rfv $(TMP_DIRS)
.PHONY: setup-frontend
setup-frontend:
@cd frontend && npm install
.PHONY: run-frontend-dev
run-frontend-dev: setup-frontend frontend/.env
@cd frontend && npm run dev
frontend/.env: deploy
@echo "VITE_WALLET_CONNECT_PROJECT_ID=$(PROJECT_ID)" > $@
@echo "VITE_COMPLETION_CONTRACT_ADDRESS=$(shell cat contracts/deployments/CoprocessorCompleter)" >> $@
@echo "VITE_CALLBACK_CONTRACT_ADDRESS=$(shell cat contracts/deployments/SimpleCallback)" >> $@