Update Makefile

This commit is contained in:
Enol Álvarez
2023-07-20 01:53:39 +02:00
parent 8ce2b40d59
commit f701e7a818

View File

@@ -1,26 +1,7 @@
ENDPOINT ?= mainnet.eth.streamingfast.io:443
START_BLOCK ?= 17717997
#17712040
#17717997
STOP_BLOCK ?= +50
.PHONY: build .PHONY: build
build: build:
cargo build --target wasm32-unknown-unknown --release cargo build --target wasm32-unknown-unknown --release
.PHONY: stream
stream: build
substreams run -e $(ENDPOINT) substreams.yaml map_transfers -s $(START_BLOCK) -t $(STOP_BLOCK)
.PHONY: stream1
stream1: build
substreams run -e $(ENDPOINT) substreams.yaml map_events -s $(START_BLOCK) -t $(STOP_BLOCK)
.PHONY: stream2
stream2: build
substreams run -e $(ENDPOINT) substreams.yaml map_block_meta -s $(START_BLOCK) -t $(STOP_BLOCK)
.PHONY: protogen .PHONY: protogen
protogen: protogen:
substreams protogen ./substreams.yaml --exclude-paths="sf/substreams,google" substreams protogen ./substreams.yaml --exclude-paths="sf/substreams,google"