Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 6 additions & 0 deletions gen/api-ts/eigenlayer/sidecar/v1/protocol/common.pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
*/

import * as GoogleProtobufTimestamp from "../../../../google/protobuf/timestamp.pb"

type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
type OneOf<T> =
| { [k in keyof T]?: undefined }
Expand All @@ -21,6 +23,10 @@ type BaseStakerShare = {

export type StakerShare = BaseStakerShare
& OneOf<{ operatorAddress: string }>
& OneOf<{ blockHeight: string }>
& OneOf<{ blockTime: GoogleProtobufTimestamp.Timestamp }>
& OneOf<{ transactionHash: string }>
& OneOf<{ logIndex: string }>

export type Strategy = {
strategy?: string
Expand Down
3 changes: 3 additions & 0 deletions gen/api-ts/eigenlayer/sidecar/v1/protocol/protocol.pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ type BaseGetStakerSharesRequest = {

export type GetStakerSharesRequest = BaseGetStakerSharesRequest
& OneOf<{ blockHeight: string }>
& OneOf<{ strategy: string }>
& OneOf<{ startBlock: string }>
& OneOf<{ endBlock: string }>

export type GetStakerSharesResponse = {
shares?: EigenlayerSidecarV1ProtocolCommon.StakerShare[]
Expand Down
39 changes: 36 additions & 3 deletions gen/openapi/api.public.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
"/protocol/v1/stakers/{staker_address}/shares": {
"get": {
"summary": "GetStakerShares",
"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.",
"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",
"operationId": "Protocol_GetStakerShares",
"parameters": [
{
Expand Down Expand Up @@ -1929,12 +1929,26 @@
"type": "integer",
"format": "uint64"
},
"endBlock": {
"type": "integer",
"format": "uint64"
},
"stakerAddress": {
"type": "string"
},
"startBlock": {
"type": "integer",
"format": "uint64"
},
"strategy": {
"type": "string"
}
},
"required": [
"block_height"
"block_height",
"strategy",
"start_block",
"end_block"
]
},
"GetStakerSharesResponse": {
Expand Down Expand Up @@ -3257,6 +3271,18 @@
"avsAddresses": {
"type": "string"
},
"blockHeight": {
"type": "integer",
"format": "uint64"
},
"blockTime": {
"type": "string",
"format": "date-time"
},
"logIndex": {
"type": "integer",
"format": "uint64"
},
"operatorAddress": {
"type": "string"
},
Expand All @@ -3265,10 +3291,17 @@
},
"strategy": {
"type": "string"
},
"transactionHash": {
"type": "string"
}
},
"required": [
"operator_address"
"operator_address",
"block_height",
"block_time",
"transaction_hash",
"log_index"
]
},
"StakerShareDelta": {
Expand Down
39 changes: 36 additions & 3 deletions gen/openapi/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@
"/protocol/v1/stakers/{staker_address}/shares": {
"get": {
"summary": "GetStakerShares",
"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.",
"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",
"operationId": "Protocol_GetStakerShares",
"parameters": [
{
Expand Down Expand Up @@ -2940,12 +2940,26 @@
"type": "integer",
"format": "uint64"
},
"endBlock": {
"type": "integer",
"format": "uint64"
},
"stakerAddress": {
"type": "string"
},
"startBlock": {
"type": "integer",
"format": "uint64"
},
"strategy": {
"type": "string"
}
},
"required": [
"block_height"
"block_height",
"strategy",
"start_block",
"end_block"
]
},
"GetStakerSharesResponse": {
Expand Down Expand Up @@ -4268,6 +4282,18 @@
"avsAddresses": {
"type": "string"
},
"blockHeight": {
"type": "integer",
"format": "uint64"
},
"blockTime": {
"type": "string",
"format": "date-time"
},
"logIndex": {
"type": "integer",
"format": "uint64"
},
"operatorAddress": {
"type": "string"
},
Expand All @@ -4276,10 +4302,17 @@
},
"strategy": {
"type": "string"
},
"transactionHash": {
"type": "string"
}
},
"required": [
"operator_address"
"operator_address",
"block_height",
"block_time",
"transaction_hash",
"log_index"
]
},
"StakerShareDelta": {
Expand Down
Loading