Skip to content

Commit

Permalink
update make
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Dec 7, 2024
1 parent e439fca commit af2ac8e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
9 changes: 6 additions & 3 deletions blocks/antelope/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
NETWORK ?= eos
HASH = $(shell substreams info --json | jq -r '.modules[0].hash')

.PHONY: all
all:
make build
Expand All @@ -11,16 +14,16 @@ build:

.PHONY: gui
gui:
substreams gui . -e eos.substreams.pinax.network:443 map_events -s 407431959 -t -1 --network eos --production-mode
substreams gui . -e "$(NETWORK).substreams.pinax.network:443" map_events -s 407300000 -t 0 --network $(NETWORK) --production-mode

.PHONY: protogen
protogen:
substreams protogen

.PHONY: parquet
parquet:
rm -rf out state.yaml && substreams-sink-files run eos.substreams.pinax.network:443 substreams.yaml map_events './out' 386841287:386841288 --encoder parquet --file-block-count 1 --development-mode
rm -rf state.yaml && substreams-sink-files run "$(NETWORK).substreams.pinax.network:443" substreams.yaml map_events "./out" 407300000: --encoder parquet --file-block-count 1000 --parquet-default-column-compression snappy

.PHONY: s3
s3:
substreams-sink-files run eos.substreams.pinax.network:443 substreams.yaml map_events s3://pinax/eos/84951f7ebf3e55a9e1c3a75f095f6a8ba95175b1?region=us-east-1 407431959: --encoder parquet --parquet-default-column-compression snappy
substreams-sink-files run "$(NETWORK).substreams.pinax.network:443" substreams.yaml map_events "s3://pinax/$(NETWORK)/$(HASH)?region=us-east-1" 0: --encoder parquet --parquet-default-column-compression snappy --file-block-count 1000
8 changes: 6 additions & 2 deletions blocks/beacon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ build:
protogen:
substreams protogen

.PHONY: gui
gui:
substreams gui . -e "$(NETWORK).substreams.pinax.network:443" map_events -s 9000000 -t 0 --network $(NETWORK)

.PHONY: parquet
parquet:
substreams-sink-files run "$(NETWORK).substreams.pinax.network:443" substreams.yaml map_events './out' 8626176:8626676 --encoder parquet --file-block-count 100 --development-mode
substreams-sink-files run "$(NETWORK).substreams.pinax.network:443" substreams.yaml map_events './out' 9000000: --encoder parquet --parquet-default-column-compression snappy --file-block-count 100 --state-store state-parquet.yaml

.PHONY: s3
s3:
substreams-sink-files run "$(NETWORK).substreams.pinax.network:443" substreams.yaml map_events "s3://pinax/$(NETWORK)/$(HASH)?region=us-east-1" 0: --encoder parquet --parquet-default-column-compression snappy
substreams-sink-files run "$(NETWORK).substreams.pinax.network:443" substreams.yaml map_events "s3://pinax/$(NETWORK)/$(HASH)?region=us-east-1" 0: --encoder parquet --parquet-default-column-compression snappy --file-block-count 100

0 comments on commit af2ac8e

Please sign in to comment.