Files
indexer/Makefile
T
zeekayandHanzo Dev e616aa286e chore: migrate luxd HTTP routes /ext -> /v1
Drop the Avalanche-heritage /ext prefix; /v1 is the single canonical route
surface (one way, no backward compat). The node's baseURL is the source of
truth; clients, SDKs, CLI, indexer, maker, genesis, netrunner, and the
k8s/compose/gateway/explorer configs are updated to match.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-01 11:40:21 -07:00

41 lines
872 B
Makefile

.PHONY: build test test-coverage clean docker lint fmt vet dev deps
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
LDFLAGS := -ldflags "-X main.version=$(VERSION)"
build:
go build $(LDFLAGS) -o bin/indexerd ./cmd/indexerd
test:
go test -v ./...
test-coverage:
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
docker:
docker build -t ghcr.io/luxfi/indexer:$(VERSION) .
docker tag ghcr.io/luxfi/indexer:$(VERSION) ghcr.io/luxfi/indexer:latest
lint:
golangci-lint run ./...
fmt:
go fmt ./...
vet:
go vet ./...
dev:
go run ./cmd/indexerd --rpc=http://localhost:9630/v1/bc/C/rpc --chain-name="C-Chain" --coin=LUX --chain-id=96369
dev-config:
go run ./cmd/indexerd --config=chains.example.yaml
clean:
rm -rf bin/ coverage.out coverage.html
deps:
go mod download
go mod tidy