Skip to content

Commit e353238

Browse files
committed
add block range
1 parent 5bbac76 commit e353238

File tree

8 files changed

+201
-188
lines changed

8 files changed

+201
-188
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ type BaseGetStakerSharesRequest = {
7979
export type GetStakerSharesRequest = BaseGetStakerSharesRequest
8080
& OneOf<{ blockHeight: string }>
8181
& OneOf<{ strategy: string }>
82-
& OneOf<{ showHistorical: boolean }>
8382
& OneOf<{ startBlock: string }>
8483
& OneOf<{ endBlock: string }>
8584

gen/openapi/api.public.swagger.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@
407407
"/protocol/v1/stakers/{staker_address}/shares": {
408408
"get": {
409409
"summary": "GetStakerShares",
410-
"description": "GetStakerShares returns the shares of a staker, and optionally, the operator operator they've delegated to and\nthe AVS the operator has registered with.",
410+
"description": "GetStakerShares returns the shares of a staker, including the operator they've delegated to and\nthe AVS addresses the operator has registered with.\n\nReturns aggregated current state by default. For historical data, use start_block and end_block parameters.\nThe deprecated block_height parameter is no longer supported - use start_block and end_block instead.\n\nQuery Parameters:\n- strategy: (optional) Filter results by strategy address\n- start_block: (optional) Start block for historical range query - must be used with end_block\n- end_block: (optional) End block for historical range query - must be used with start_block\n- block_height: (deprecated) Use start_block and end_block instead",
411411
"operationId": "Protocol_GetStakerShares",
412412
"parameters": [
413413
{
@@ -1933,9 +1933,6 @@
19331933
"type": "integer",
19341934
"format": "uint64"
19351935
},
1936-
"showHistorical": {
1937-
"type": "boolean"
1938-
},
19391936
"stakerAddress": {
19401937
"type": "string"
19411938
},
@@ -1950,7 +1947,6 @@
19501947
"required": [
19511948
"block_height",
19521949
"strategy",
1953-
"show_historical",
19541950
"start_block",
19551951
"end_block"
19561952
]

gen/openapi/api.swagger.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@
617617
"/protocol/v1/stakers/{staker_address}/shares": {
618618
"get": {
619619
"summary": "GetStakerShares",
620-
"description": "GetStakerShares returns the shares of a staker, and optionally, the operator operator they've delegated to and\nthe AVS the operator has registered with.",
620+
"description": "GetStakerShares returns the shares of a staker, including the operator they've delegated to and\nthe AVS addresses the operator has registered with.\n\nReturns aggregated current state by default. For historical data, use start_block and end_block parameters.\nThe deprecated block_height parameter is no longer supported - use start_block and end_block instead.\n\nQuery Parameters:\n- strategy: (optional) Filter results by strategy address\n- start_block: (optional) Start block for historical range query - must be used with end_block\n- end_block: (optional) End block for historical range query - must be used with start_block\n- block_height: (deprecated) Use start_block and end_block instead",
621621
"operationId": "Protocol_GetStakerShares",
622622
"parameters": [
623623
{
@@ -2944,9 +2944,6 @@
29442944
"type": "integer",
29452945
"format": "uint64"
29462946
},
2947-
"showHistorical": {
2948-
"type": "boolean"
2949-
},
29502947
"stakerAddress": {
29512948
"type": "string"
29522949
},
@@ -2961,7 +2958,6 @@
29612958
"required": [
29622959
"block_height",
29632960
"strategy",
2964-
"show_historical",
29652961
"start_block",
29662962
"end_block"
29672963
]

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

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

gen/protos/eigenlayer/sidecar/v1/protocol/rpc.gw.client.go

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

gen/protos/eigenlayer/sidecar/v1/protocol/rpc_grpc.pb.go

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

protos/eigenlayer/sidecar/v1/protocol/protocol.proto

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,10 @@ message GetDelegatedStakersForOperatorResponse {
5252

5353
message GetStakerSharesRequest {
5454
string staker_address = 1;
55-
optional uint64 block_height = 2;
55+
optional uint64 block_height = 2 [deprecated = true];
5656
optional string strategy = 3;
57-
optional bool show_historical = 4;
58-
optional uint64 start_block = 5;
59-
optional uint64 end_block = 6;
57+
optional uint64 start_block = 4;
58+
optional uint64 end_block = 5;
6059
}
6160
message GetStakerSharesResponse {
6261
repeated StakerShare shares = 1;

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,17 @@ service Protocol {
4747
}
4848

4949

50-
// GetStakerShares returns the shares of a staker, and optionally, the operator operator they've delegated to and
51-
// the AVS the operator has registered with.
50+
// GetStakerShares returns the shares of a staker, including the operator they've delegated to and
51+
// the AVS addresses the operator has registered with.
52+
//
53+
// Returns aggregated current state by default. For historical data, use start_block and end_block parameters.
54+
// The deprecated block_height parameter is no longer supported - use start_block and end_block instead.
55+
//
56+
// Query Parameters:
57+
// - strategy: (optional) Filter results by strategy address
58+
// - start_block: (optional) Start block for historical range query - must be used with end_block
59+
// - end_block: (optional) End block for historical range query - must be used with start_block
60+
// - block_height: (deprecated) Use start_block and end_block instead
5261
rpc GetStakerShares(GetStakerSharesRequest) returns (GetStakerSharesResponse) {
5362
option (eigenlayer.lib.annotations.isPublic) = true;
5463
option (google.api.http) = {

0 commit comments

Comments
 (0)