-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
39 lines (29 loc) · 874 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
29
30
31
32
33
34
35
36
37
38
39
-include .env
export $(shell sed 's/=.*//' .env)
indexer:
cd cmd/indexer && go run . -c ../../build/dipdup.yml
tester:
cd cmd/tester && go run . -c dipdup.yml
starknet_id:
cd cmd/rpc_tester && go run . -c ../../cmd/rpc_tester/starknet_id.yml
loot_survivor:
cd cmd/rpc_tester && go run . -c ../../cmd/rpc_tester/loot_survivor.yml
blocks:
cd cmd/rpc_tester && go run . -c ../../cmd/rpc_tester/blocks.yml
build-proto:
protoc \
-I=${GOPATH}/src \
--doc_out=${GOPATH}/src/github.com/dipdup-io/starknet-indexer/pkg/grpc \
--doc_opt=markdown,README.md \
--go-grpc_out=${GOPATH}/src \
--go_out=${GOPATH}/src \
--experimental_allow_proto3_optional \
${GOPATH}/src/github.com/dipdup-io/starknet-indexer/pkg/grpc/proto/*.proto
build:
docker-compose up -d -- build
lint:
golangci-lint run
test:
go test ./...
generate:
go generate -v ./internal/storage