Skip to content

Commit 02e09fc

Browse files
authored
feat: add optional block_height to ListStrategyQueuedWithdrawals (#59)
Add an optional block_height input parameter for ListStrategyQueuedWithdrawals
2 parents 695aa0f + 79be711 commit 02e09fc

File tree

7 files changed

+109
-58
lines changed

7 files changed

+109
-58
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,14 @@ export type ListStakerQueuedWithdrawalsResponse = {
131131
queuedWithdrawals?: EigenlayerSidecarV1ProtocolCommon.QueuedStrategyWithdrawal[]
132132
}
133133

134-
export type ListStrategyQueuedWithdrawalsRequest = {
134+
135+
type BaseListStrategyQueuedWithdrawalsRequest = {
135136
strategyAddress?: string
136137
}
137138

139+
export type ListStrategyQueuedWithdrawalsRequest = BaseListStrategyQueuedWithdrawalsRequest
140+
& OneOf<{ blockHeight: string }>
141+
138142
export type ListStrategyQueuedWithdrawalsResponse = {
139143
withdrawals?: EigenlayerSidecarV1ProtocolCommon.StakerWithdrawal[]
140144
}

gen/openapi/api.public.swagger.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2473,10 +2473,17 @@
24732473
"ListStrategyQueuedWithdrawalsRequest": {
24742474
"type": "object",
24752475
"properties": {
2476+
"blockHeight": {
2477+
"type": "integer",
2478+
"format": "uint64"
2479+
},
24762480
"strategyAddress": {
24772481
"type": "string"
24782482
}
2479-
}
2483+
},
2484+
"required": [
2485+
"block_height"
2486+
]
24802487
},
24812488
"ListStrategyQueuedWithdrawalsResponse": {
24822489
"type": "object",

gen/openapi/api.swagger.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3528,10 +3528,17 @@
35283528
"ListStrategyQueuedWithdrawalsRequest": {
35293529
"type": "object",
35303530
"properties": {
3531+
"blockHeight": {
3532+
"type": "integer",
3533+
"format": "uint64"
3534+
},
35313535
"strategyAddress": {
35323536
"type": "string"
35333537
}
3534-
}
3538+
},
3539+
"required": [
3540+
"block_height"
3541+
]
35353542
},
35363543
"ListStrategyQueuedWithdrawalsResponse": {
35373544
"type": "object",

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

Lines changed: 68 additions & 55 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: 5 additions & 0 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.pb.gw.go

Lines changed: 14 additions & 0 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ message ListStakerQueuedWithdrawalsResponse {
102102

103103
message ListStrategyQueuedWithdrawalsRequest {
104104
string strategyAddress = 1;
105+
optional uint64 block_height = 2;
105106
}
106107
message ListStrategyQueuedWithdrawalsResponse {
107108
repeated StakerWithdrawal withdrawals = 1;

0 commit comments

Comments
 (0)