Skip to content

Commit

Permalink
refactor: remove redundant cmds and envs
Browse files Browse the repository at this point in the history
  • Loading branch information
catalyst17 committed Jan 16, 2024
1 parent b995612 commit ec46914
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
6 changes: 1 addition & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ AA_ERC4337_ADDRESSES=
AA_SAFE_ADDRESSES=

ENDPOINT=
SUBSTREAMS_API_TOKEN=

SINK_DB_NAME=
SINK_DB_URL=
SINK_DB_PASS=
SUBSTREAMS_API_TOKEN=
9 changes: 0 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ build:
run: build
substreams run -e $(ENDPOINT) substreams.yaml map_combine_data -s $(START_BLOCK) -t $(STOP_BLOCK)

.PHONY: sink
sink: build
substreams-sink-sql setup "psql://$(SINK_DB_NAME):$(SINK_DB_PASS)@$(SINK_DB_URL)?sslmode=disable" substreams.yaml || true
substreams-sink-sql run "psql://$(SINK_DB_NAME):$(SINK_DB_PASS)@$(SINK_DB_URL)?sslmode=disable" substreams.yaml --on-module-hash-mistmatch=warn

.PHONY: gui
gui: build
substreams gui -e $(ENDPOINT) substreams.yaml map_combine_data -s $(START_BLOCK) -t $(STOP_BLOCK)
Expand All @@ -28,7 +23,3 @@ protogen:
.PHONY: pack
pack: build
substreams pack substreams.yaml

.PHONY: cursor-read
cursor-read:
substreams-sink-sql tools --dsn="psql://$(SINK_DB_NAME):$(SINK_DB_PASS)@$(SINK_DB_URL)?sslmode=disable" cursor read

0 comments on commit ec46914

Please sign in to comment.