-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (23 loc) · 875 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
-include .env
export $(shell sed 's/=.*//' .env)
init:
chmod +x init.dev.sh && ./init.dev.sh
lint:
golangci-lint run
build-proto:
protoc -I=. -I=${GOPATH}/src --go-grpc_out=${GOPATH}/src --go_out=${GOPATH}/src ${GOPATH}/src/github.com/dipdup-net/indexer-sdk/pkg/modules/grpc/proto/*.proto
build-example-proto:
protoc -I=. -I=${GOPATH}/src --go-grpc_out=${GOPATH}/src --go_out=${GOPATH}/src ${GOPATH}/src/github.com/dipdup-net/indexer-sdk/examples/grpc/proto/*.proto
example-grpc:
cd examples/grpc && go run .
generate:
cd cmd/dipdup-gen && go run . abi ${GOPATH}/src/github.com/dipdup-net/indexer-sdk/cmd/dipdup-gen/ \
-o ${GOPATH}/src/github.com/dipdup-io/uniswap \
-c uniswap \
-a 0xb78d5b29d50d0bb1ec8f9143bc64de0f4d1225df \
-p github.com/dipdup-io/uniswap
test:
go test ./...
mockgen:
go generate -v ./pkg/storage
.PHONY: init lint generate test