Skip to content

Commit a4b2668

Browse files
authored
fix: update incorrect http verbs on routes (#30)
2 parents 3e5a079 + 6bf3a7c commit a4b2668

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+122
-10086
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ proto:
2626
rm -rf gen/python || true
2727
rm -rf gen/pre-python || true
2828
buf generate protos
29-
./scripts/generatePipModule.sh
30-
mkdir gen/openapiv3 || true
31-
./node_modules/.bin/swagger2openapi --outfile gen/openapiv3/openapi.yaml gen/openapiv2/apidocs.swagger.json
29+
# ./scripts/generatePipModule.sh
30+
# mkdir gen/openapiv3 || true
31+
# ./node_modules/.bin/swagger2openapi --outfile gen/openapiv3/openapi.yaml gen/openapiv2/apidocs.swagger.json
3232

buf.gen.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@ plugins:
1818
# https://grpc-ecosystem.github.io/grpc-gateway/docs/mapping/customizing_openapi_output/#merging-output
1919
- plugin: grpc-gateway-ts
2020
out: gen/api-ts
21-
- plugin: buf.build/protocolbuffers/python
22-
out: gen/pre-python
23-
- plugin: buf.build/grpc/python
24-
out: gen/pre-python
2521
- name: gateway-client
2622
path: protoc-gen-grpc-gateway-client
2723
out: gen/protos
2824
opt:
2925
- paths=source_relative
30-
- plugin: buf.build/community/google-gnostic-openapi
31-
out: gen/openapi
26+
###############################################################################
27+
# Unused
28+
###############################################################################
29+
# - plugin: buf.build/protocolbuffers/python
30+
# out: gen/pre-python
31+
# - plugin: buf.build/grpc/python
32+
# out: gen/pre-python
33+
# - plugin: buf.build/community/google-gnostic-openapi
34+
# out: gen/openapi

gen/api-ts/eigenlayer/sidecar/v1/eventTypes/eigenState.pb.ts

Lines changed: 0 additions & 106 deletions
This file was deleted.

gen/api-ts/eigenlayer/sidecar/v1/eventTypes/ethereumTypes.pb.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

gen/api-ts/eigenlayer/sidecar/v1/protocol/protocol.pb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,6 @@ export class Protocol {
118118
return fm.fetchReq<GetStakerSharesRequest, GetStakerSharesResponse>(`/protocol/v1/stakers/${req["stakerAddress"]}/shares?${fm.renderURLSearchParams(req, ["stakerAddress"])}`, {...initReq, method: "GET"})
119119
}
120120
static GetEigenStateChanges(req: GetEigenStateChangesRequest, initReq?: fm.InitReq): Promise<GetEigenStateChangesResponse> {
121-
return fm.fetchReq<GetEigenStateChangesRequest, GetEigenStateChangesResponse>(`/protocol/v1/eigen-state-changes`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
121+
return fm.fetchReq<GetEigenStateChangesRequest, GetEigenStateChangesResponse>(`/protocol/v1/eigen-state-changes?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
122122
}
123123
}

gen/api-ts/eigenlayer/sidecar/v1/sidecar/sidecar.pb.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ export type AboutResponse = {
3535

3636
export class Rpc {
3737
static GetBlockHeight(req: GetBlockHeightRequest, initReq?: fm.InitReq): Promise<GetBlockHeightResponse> {
38-
return fm.fetchReq<GetBlockHeightRequest, GetBlockHeightResponse>(`/rpc/v1/latest-block`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
38+
return fm.fetchReq<GetBlockHeightRequest, GetBlockHeightResponse>(`/rpc/v1/latest-block?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
3939
}
4040
static GetStateRoot(req: GetStateRootRequest, initReq?: fm.InitReq): Promise<GetStateRootResponse> {
41-
return fm.fetchReq<GetStateRootRequest, GetStateRootResponse>(`/rpc/v1/state-roots/${req["blockNumber"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
41+
return fm.fetchReq<GetStateRootRequest, GetStateRootResponse>(`/rpc/v1/state-roots/${req["blockNumber"]}?${fm.renderURLSearchParams(req, ["blockNumber"])}`, {...initReq, method: "GET"})
4242
}
4343
static About(req: AboutRequest, initReq?: fm.InitReq): Promise<AboutResponse> {
4444
return fm.fetchReq<AboutRequest, AboutResponse>(`/rpc/v1/about?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})

0 commit comments

Comments
 (0)