forked from streamingfast/substreams-uniswap-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 1.05 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
ENDPOINT ?= api-unstable.streamingfast.io:443
GRAPH_CONFIG ?= ../graph-node-dev/config/graphman.toml
.PHONY: build
build:
cargo build --target wasm32-unknown-unknown --release
.PHONY: stream
stream: build
substreams run -e $(ENDPOINT) substreams.yaml map_extract_data_types -s 12369621 -t +1000
.PHONY: graph_out
graph_out: build
substreams run -e $(ENDPOINT) substreams.yaml graph_out -s 12369621 -t +1000
.PHONY: protogen
protogen:
substreams protogen ./substreams.yaml --exclude-paths="sf/substreams,google"
.PHONE: package
package: build
substreams pack -o substreams.spkg substreams.yaml
.PHONE: deploy_local
deploy_local: package
mkdir build 2> /dev/null || true
graph build --ipfs http://localhost:5001 subgraph.yaml
graph create uniswap_v3 --node http://127.0.0.1:8020
graph deploy --node http://127.0.0.1:8020 --ipfs http://127.0.0.1:5001 --version-label v0.0.1 uniswap_v3 subgraph.yaml
.PHONE: undeploy_local
undeploy_local:
graphman --config "$(GRAPH_CONFIG)" drop --force uniswap_v3
.PHONE: test
test:
cargo test --target aarch64-apple-darwin