Skip to content

Commit 7051d5b

Browse files
committed
allow multiple strategies
1 parent 7ba8660 commit 7051d5b

File tree

11 files changed

+185
-184
lines changed

11 files changed

+185
-184
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,13 @@ export type ListOperatorStrategyQueuedWithdrawalsResponse = {
161161
}
162162

163163

164-
type BaseListWithdrawalsForStrategyRequest = {
165-
strategyAddress?: string
164+
type BaseListWithdrawalsForStrategiesRequest = {
165+
strategyAddresses?: string[]
166166
}
167167

168-
export type ListWithdrawalsForStrategyRequest = BaseListWithdrawalsForStrategyRequest
168+
export type ListWithdrawalsForStrategiesRequest = BaseListWithdrawalsForStrategiesRequest
169169
& OneOf<{ blockHeight: string }>
170170

171-
export type ListWithdrawalsForStrategyResponse = {
171+
export type ListWithdrawalsForStrategiesResponse = {
172172
withdrawals?: EigenlayerSidecarV1ProtocolCommon.Withdrawal[]
173173
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class Protocol {
4646
static ListOperatorStrategyQueuedWithdrawals(req: EigenlayerSidecarV1ProtocolProtocol.ListOperatorStrategyQueuedWithdrawalsRequest, initReq?: fm.InitReq): Promise<EigenlayerSidecarV1ProtocolProtocol.ListOperatorStrategyQueuedWithdrawalsResponse> {
4747
return fm.fetchReq<EigenlayerSidecarV1ProtocolProtocol.ListOperatorStrategyQueuedWithdrawalsRequest, EigenlayerSidecarV1ProtocolProtocol.ListOperatorStrategyQueuedWithdrawalsResponse>(`/protocol/v1/operators/${req["operatorAddress"]}/strategies/${req["strategyAddress"]}/queued-withdrawals?${fm.renderURLSearchParams(req, ["operatorAddress", "strategyAddress"])}`, {...initReq, method: "GET"})
4848
}
49-
static ListWithdrawalsForStrategy(req: EigenlayerSidecarV1ProtocolProtocol.ListWithdrawalsForStrategyRequest, initReq?: fm.InitReq): Promise<EigenlayerSidecarV1ProtocolProtocol.ListWithdrawalsForStrategyResponse> {
50-
return fm.fetchReq<EigenlayerSidecarV1ProtocolProtocol.ListWithdrawalsForStrategyRequest, EigenlayerSidecarV1ProtocolProtocol.ListWithdrawalsForStrategyResponse>(`/protocol/v1/strategies/${req["strategyAddress"]}/withdrawals?${fm.renderURLSearchParams(req, ["strategyAddress"])}`, {...initReq, method: "GET"})
49+
static ListWithdrawalsForStrategies(req: EigenlayerSidecarV1ProtocolProtocol.ListWithdrawalsForStrategiesRequest, initReq?: fm.InitReq): Promise<EigenlayerSidecarV1ProtocolProtocol.ListWithdrawalsForStrategiesResponse> {
50+
return fm.fetchReq<EigenlayerSidecarV1ProtocolProtocol.ListWithdrawalsForStrategiesRequest, EigenlayerSidecarV1ProtocolProtocol.ListWithdrawalsForStrategiesResponse>(`/protocol/v1/strategies/${req["strategyAddresses"]}/withdrawals?${fm.renderURLSearchParams(req, ["strategyAddresses"])}`, {...initReq, method: "GET"})
5151
}
5252
}

gen/openapi/api.public.swagger.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -467,13 +467,13 @@
467467
]
468468
}
469469
},
470-
"/protocol/v1/strategies/{strategyAddress}/queued-withdrawals": {
470+
"/protocol/v1/strategies/{strategyAddresses}/withdrawals": {
471471
"get": {
472-
"summary": "ListStrategyQueuedWithdrawals",
473-
"operationId": "Protocol_ListStrategyQueuedWithdrawals",
472+
"summary": "ListWithdrawalsForStrategies",
473+
"operationId": "Protocol_ListWithdrawalsForStrategies",
474474
"parameters": [
475475
{
476-
"name": "strategyAddress",
476+
"name": "strategyAddresses",
477477
"in": "path",
478478
"required": true,
479479
"schema": {
@@ -490,7 +490,7 @@
490490
"type": "object",
491491
"properties": {
492492
"withdrawals": {
493-
"$ref": "#/components/schemas/StakerWithdrawal"
493+
"$ref": "#/components/schemas/Withdrawal"
494494
}
495495
}
496496
}
@@ -503,10 +503,10 @@
503503
]
504504
}
505505
},
506-
"/protocol/v1/strategies/{strategyAddress}/withdrawals": {
506+
"/protocol/v1/strategies/{strategyAddress}/queued-withdrawals": {
507507
"get": {
508-
"summary": "ListWithdrawalsForStrategy",
509-
"operationId": "Protocol_ListWithdrawalsForStrategy",
508+
"summary": "ListStrategyQueuedWithdrawals",
509+
"operationId": "Protocol_ListStrategyQueuedWithdrawals",
510510
"parameters": [
511511
{
512512
"name": "strategyAddress",
@@ -526,7 +526,7 @@
526526
"type": "object",
527527
"properties": {
528528
"withdrawals": {
529-
"$ref": "#/components/schemas/Withdrawal"
529+
"$ref": "#/components/schemas/StakerWithdrawal"
530530
}
531531
}
532532
}
@@ -2529,22 +2529,22 @@
25292529
}
25302530
}
25312531
},
2532-
"ListWithdrawalsForStrategyRequest": {
2532+
"ListWithdrawalsForStrategiesRequest": {
25332533
"type": "object",
25342534
"properties": {
25352535
"blockHeight": {
25362536
"type": "integer",
25372537
"format": "uint64"
25382538
},
2539-
"strategyAddress": {
2539+
"strategyAddresses": {
25402540
"type": "string"
25412541
}
25422542
},
25432543
"required": [
25442544
"block_height"
25452545
]
25462546
},
2547-
"ListWithdrawalsForStrategyResponse": {
2547+
"ListWithdrawalsForStrategiesResponse": {
25482548
"type": "object",
25492549
"properties": {
25502550
"withdrawals": {

gen/openapi/api.swagger.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -677,13 +677,13 @@
677677
]
678678
}
679679
},
680-
"/protocol/v1/strategies/{strategyAddress}/queued-withdrawals": {
680+
"/protocol/v1/strategies/{strategyAddresses}/withdrawals": {
681681
"get": {
682-
"summary": "ListStrategyQueuedWithdrawals",
683-
"operationId": "Protocol_ListStrategyQueuedWithdrawals",
682+
"summary": "ListWithdrawalsForStrategies",
683+
"operationId": "Protocol_ListWithdrawalsForStrategies",
684684
"parameters": [
685685
{
686-
"name": "strategyAddress",
686+
"name": "strategyAddresses",
687687
"in": "path",
688688
"required": true,
689689
"schema": {
@@ -700,7 +700,7 @@
700700
"type": "object",
701701
"properties": {
702702
"withdrawals": {
703-
"$ref": "#/components/schemas/StakerWithdrawal"
703+
"$ref": "#/components/schemas/Withdrawal"
704704
}
705705
}
706706
}
@@ -713,10 +713,10 @@
713713
]
714714
}
715715
},
716-
"/protocol/v1/strategies/{strategyAddress}/withdrawals": {
716+
"/protocol/v1/strategies/{strategyAddress}/queued-withdrawals": {
717717
"get": {
718-
"summary": "ListWithdrawalsForStrategy",
719-
"operationId": "Protocol_ListWithdrawalsForStrategy",
718+
"summary": "ListStrategyQueuedWithdrawals",
719+
"operationId": "Protocol_ListStrategyQueuedWithdrawals",
720720
"parameters": [
721721
{
722722
"name": "strategyAddress",
@@ -736,7 +736,7 @@
736736
"type": "object",
737737
"properties": {
738738
"withdrawals": {
739-
"$ref": "#/components/schemas/Withdrawal"
739+
"$ref": "#/components/schemas/StakerWithdrawal"
740740
}
741741
}
742742
}
@@ -3584,22 +3584,22 @@
35843584
}
35853585
}
35863586
},
3587-
"ListWithdrawalsForStrategyRequest": {
3587+
"ListWithdrawalsForStrategiesRequest": {
35883588
"type": "object",
35893589
"properties": {
35903590
"blockHeight": {
35913591
"type": "integer",
35923592
"format": "uint64"
35933593
},
3594-
"strategyAddress": {
3594+
"strategyAddresses": {
35953595
"type": "string"
35963596
}
35973597
},
35983598
"required": [
35993599
"block_height"
36003600
]
36013601
},
3602-
"ListWithdrawalsForStrategyResponse": {
3602+
"ListWithdrawalsForStrategiesResponse": {
36033603
"type": "object",
36043604
"properties": {
36053605
"withdrawals": {

0 commit comments

Comments
 (0)