Skip to content

Commit 97c1494

Browse files
committed
feat: allow staker shares to show historical values
1 parent adb520a commit 97c1494

File tree

32 files changed

+2078
-4438
lines changed

32 files changed

+2078
-4438
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
55
*/
66

7+
import * as GoogleProtobufTimestamp from "../../../../google/protobuf/timestamp.pb"
8+
79
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
810
type OneOf<T> =
911
| { [k in keyof T]?: undefined }
@@ -21,6 +23,10 @@ type BaseStakerShare = {
2123

2224
export type StakerShare = BaseStakerShare
2325
& OneOf<{ operatorAddress: string }>
26+
& OneOf<{ blockHeight: string }>
27+
& OneOf<{ blockTime: GoogleProtobufTimestamp.Timestamp }>
28+
& OneOf<{ transactionHash: string }>
29+
& OneOf<{ logIndex: string }>
2430

2531
export type Strategy = {
2632
strategy?: string

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ type BaseGetStakerSharesRequest = {
7878

7979
export type GetStakerSharesRequest = BaseGetStakerSharesRequest
8080
& OneOf<{ blockHeight: string }>
81+
& OneOf<{ strategy: string }>
82+
& OneOf<{ showHistorical: boolean }>
8183

8284
export type GetStakerSharesResponse = {
8385
shares?: EigenlayerSidecarV1ProtocolCommon.StakerShare[]

gen/openapi/api.public.swagger.json

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,12 +1929,20 @@
19291929
"type": "integer",
19301930
"format": "uint64"
19311931
},
1932+
"showHistorical": {
1933+
"type": "boolean"
1934+
},
19321935
"stakerAddress": {
19331936
"type": "string"
1937+
},
1938+
"strategy": {
1939+
"type": "string"
19341940
}
19351941
},
19361942
"required": [
1937-
"block_height"
1943+
"block_height",
1944+
"strategy",
1945+
"show_historical"
19381946
]
19391947
},
19401948
"GetStakerSharesResponse": {
@@ -3257,6 +3265,18 @@
32573265
"avsAddresses": {
32583266
"type": "string"
32593267
},
3268+
"blockHeight": {
3269+
"type": "integer",
3270+
"format": "uint64"
3271+
},
3272+
"blockTime": {
3273+
"type": "string",
3274+
"format": "date-time"
3275+
},
3276+
"logIndex": {
3277+
"type": "integer",
3278+
"format": "uint64"
3279+
},
32603280
"operatorAddress": {
32613281
"type": "string"
32623282
},
@@ -3265,10 +3285,17 @@
32653285
},
32663286
"strategy": {
32673287
"type": "string"
3288+
},
3289+
"transactionHash": {
3290+
"type": "string"
32683291
}
32693292
},
32703293
"required": [
3271-
"operator_address"
3294+
"operator_address",
3295+
"block_height",
3296+
"block_time",
3297+
"transaction_hash",
3298+
"log_index"
32723299
]
32733300
},
32743301
"StakerShareDelta": {

gen/openapi/api.swagger.json

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2940,12 +2940,20 @@
29402940
"type": "integer",
29412941
"format": "uint64"
29422942
},
2943+
"showHistorical": {
2944+
"type": "boolean"
2945+
},
29432946
"stakerAddress": {
29442947
"type": "string"
2948+
},
2949+
"strategy": {
2950+
"type": "string"
29452951
}
29462952
},
29472953
"required": [
2948-
"block_height"
2954+
"block_height",
2955+
"strategy",
2956+
"show_historical"
29492957
]
29502958
},
29512959
"GetStakerSharesResponse": {
@@ -4268,6 +4276,18 @@
42684276
"avsAddresses": {
42694277
"type": "string"
42704278
},
4279+
"blockHeight": {
4280+
"type": "integer",
4281+
"format": "uint64"
4282+
},
4283+
"blockTime": {
4284+
"type": "string",
4285+
"format": "date-time"
4286+
},
4287+
"logIndex": {
4288+
"type": "integer",
4289+
"format": "uint64"
4290+
},
42714291
"operatorAddress": {
42724292
"type": "string"
42734293
},
@@ -4276,10 +4296,17 @@
42764296
},
42774297
"strategy": {
42784298
"type": "string"
4299+
},
4300+
"transactionHash": {
4301+
"type": "string"
42794302
}
42804303
},
42814304
"required": [
4282-
"operator_address"
4305+
"operator_address",
4306+
"block_height",
4307+
"block_time",
4308+
"transaction_hash",
4309+
"log_index"
42834310
]
42844311
},
42854312
"StakerShareDelta": {

0 commit comments

Comments
 (0)