Skip to content

Commit 7b586d4

Browse files
committed
feat: make GetBlockHeight public
1 parent 903121c commit 7b586d4

File tree

3 files changed

+105
-65
lines changed

3 files changed

+105
-65
lines changed

gen/openapi/api.public.swagger.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,36 @@
779779
]
780780
}
781781
},
782+
"/rpc/v1/latest-block": {
783+
"get": {
784+
"summary": "GetBlockHeight",
785+
"operationId": "Rpc_GetBlockHeight",
786+
"responses": {
787+
"200": {
788+
"description": "Successful response",
789+
"content": {
790+
"application/json": {
791+
"schema": {
792+
"type": "object",
793+
"properties": {
794+
"blockHash": {
795+
"type": "string"
796+
},
797+
"blockNumber": {
798+
"type": "integer",
799+
"format": "uint64"
800+
}
801+
}
802+
}
803+
}
804+
}
805+
}
806+
},
807+
"tags": [
808+
"sidecar"
809+
]
810+
}
811+
},
782812
"/v1/health": {
783813
"get": {
784814
"summary": "HealthCheck",
@@ -3034,6 +3064,10 @@
30343064
"name": "rewards",
30353065
"description": "Operations from package rewards"
30363066
},
3067+
{
3068+
"name": "sidecar",
3069+
"description": "Operations from package sidecar"
3070+
},
30373071
{
30383072
"name": "slashing",
30393073
"description": "Operations from package slashing"

gen/protos/eigenlayer/sidecar/v1/sidecar/rpc.pb.go

Lines changed: 69 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/eigenlayer/sidecar/v1/sidecar/rpc.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ option go_package = "github.com/Layr-Labs/protocol-apis/gen/protos/eigenlayer/si
66

77
import "google/api/annotations.proto";
88
import "eigenlayer/sidecar/v1/sidecar/sidecar.proto";
9+
import "eigenlayer/lib/annotations/annotations.proto";
910

1011
service Rpc {
1112
rpc GetBlockHeight(GetBlockHeightRequest) returns (GetBlockHeightResponse) {
13+
option (eigenlayer.lib.annotations.isPublic) = true;
1214
option (google.api.http) = {
1315
get: "/rpc/v1/latest-block"
1416
};

0 commit comments

Comments
 (0)