Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataAPI V2 swagger refactor #1062

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test target
Fix ejections cli
  • Loading branch information
pschork committed Jan 3, 2025
commit a86ab685ec1cdb0f39642f78c2cf14858b1a7ce3
9 changes: 7 additions & 2 deletions disperser/dataapi/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
build:
cd .. && go build -o ./bin/dataapi ./cmd/dataapi

test:
go test -v .
test-v1:
go test -v ./v1

test-v2:
go test -v ./v2

test: test-v1 test-v2

generate-swagger-v1:
@echo " > Generating v1 swagger..."
Expand Down
4 changes: 2 additions & 2 deletions tools/ejections/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"github.com/Layr-Labs/eigenda/common/geth"
"github.com/Layr-Labs/eigenda/core"
"github.com/Layr-Labs/eigenda/core/eth"
"github.com/Layr-Labs/eigenda/disperser/dataapi"
"github.com/Layr-Labs/eigenda/disperser/dataapi/subgraph"
v2 "github.com/Layr-Labs/eigenda/disperser/dataapi/v2"
"github.com/Layr-Labs/eigenda/tools/ejections"
"github.com/Layr-Labs/eigenda/tools/ejections/flags"
"github.com/jedib0t/go-pretty/v6/table"
Expand Down Expand Up @@ -78,7 +78,7 @@ func RunScan(ctx *cli.Context) error {
return errors.New("failed to create chain state")
}
subgraphApi := subgraph.NewApi(config.SubgraphEndpoint, config.SubgraphEndpoint)
subgraphClient := dataapi.NewSubgraphClient(subgraphApi, logger)
subgraphClient := v2.NewSubgraphClient(subgraphApi, logger)

ejections, err := subgraphClient.QueryOperatorEjectionsForTimeWindow(context.Background(), int32(config.Days), config.OperatorId, config.First, config.Skip)
if err != nil {
Expand Down
Loading