-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
28 lines (21 loc) · 860 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
.PHONY: build
build:
cargo build --target wasm32-unknown-unknown --release
.PHONY: stream
stream:
substreams run -e api-dev.streamingfast.io:443 substreams.yaml map_transfers -s 12292922 -t +10
.PHONY: codegen
codegen:
substreams protogen ./substreams.yaml --exclude-paths="sf/ethereum,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 graph-network-substreams --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 graph-network-substreams subgraph.yaml
.PHONE: undeploy_local
undeploy_local:
graphman --config "../data/config/config.toml" drop --force graph-network-substreams