Skip to content

Commit b3fb133

Browse files
committed
add pagination
1 parent 7051d5b commit b3fb133

File tree

6 files changed

+116
-42
lines changed

6 files changed

+116
-42
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,12 @@ type BaseListWithdrawalsForStrategiesRequest = {
167167

168168
export type ListWithdrawalsForStrategiesRequest = BaseListWithdrawalsForStrategiesRequest
169169
& OneOf<{ blockHeight: string }>
170+
& OneOf<{ pagination: EigenlayerSidecarV1CommonTypes.Pagination }>
171+
170172

171-
export type ListWithdrawalsForStrategiesResponse = {
173+
type BaseListWithdrawalsForStrategiesResponse = {
172174
withdrawals?: EigenlayerSidecarV1ProtocolCommon.Withdrawal[]
173-
}
175+
}
176+
177+
export type ListWithdrawalsForStrategiesResponse = BaseListWithdrawalsForStrategiesResponse
178+
& OneOf<{ nextPage: EigenlayerSidecarV1CommonTypes.Pagination }>

gen/openapi/api.public.swagger.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,16 @@
489489
"schema": {
490490
"type": "object",
491491
"properties": {
492+
"nextPage": {
493+
"$ref": "#/components/schemas/Pagination"
494+
},
492495
"withdrawals": {
493496
"$ref": "#/components/schemas/Withdrawal"
494497
}
495-
}
498+
},
499+
"required": [
500+
"next_page"
501+
]
496502
}
497503
}
498504
}
@@ -2536,21 +2542,31 @@
25362542
"type": "integer",
25372543
"format": "uint64"
25382544
},
2545+
"pagination": {
2546+
"$ref": "#/components/schemas/Pagination"
2547+
},
25392548
"strategyAddresses": {
25402549
"type": "string"
25412550
}
25422551
},
25432552
"required": [
2544-
"block_height"
2553+
"block_height",
2554+
"pagination"
25452555
]
25462556
},
25472557
"ListWithdrawalsForStrategiesResponse": {
25482558
"type": "object",
25492559
"properties": {
2560+
"nextPage": {
2561+
"$ref": "#/components/schemas/Pagination"
2562+
},
25502563
"withdrawals": {
25512564
"$ref": "#/components/schemas/Withdrawal"
25522565
}
2553-
}
2566+
},
2567+
"required": [
2568+
"next_page"
2569+
]
25542570
},
25552571
"LoadContractRequest": {
25562572
"type": "object",

gen/openapi/api.swagger.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -699,10 +699,16 @@
699699
"schema": {
700700
"type": "object",
701701
"properties": {
702+
"nextPage": {
703+
"$ref": "#/components/schemas/Pagination"
704+
},
702705
"withdrawals": {
703706
"$ref": "#/components/schemas/Withdrawal"
704707
}
705-
}
708+
},
709+
"required": [
710+
"next_page"
711+
]
706712
}
707713
}
708714
}
@@ -3591,21 +3597,31 @@
35913597
"type": "integer",
35923598
"format": "uint64"
35933599
},
3600+
"pagination": {
3601+
"$ref": "#/components/schemas/Pagination"
3602+
},
35943603
"strategyAddresses": {
35953604
"type": "string"
35963605
}
35973606
},
35983607
"required": [
3599-
"block_height"
3608+
"block_height",
3609+
"pagination"
36003610
]
36013611
},
36023612
"ListWithdrawalsForStrategiesResponse": {
36033613
"type": "object",
36043614
"properties": {
3615+
"nextPage": {
3616+
"$ref": "#/components/schemas/Pagination"
3617+
},
36053618
"withdrawals": {
36063619
"$ref": "#/components/schemas/Withdrawal"
36073620
}
3608-
}
3621+
},
3622+
"required": [
3623+
"next_page"
3624+
]
36093625
},
36103626
"LoadContractRequest": {
36113627
"type": "object",

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

Lines changed: 65 additions & 34 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: 4 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ message ListOperatorStrategyQueuedWithdrawalsResponse {
128128
message ListWithdrawalsForStrategiesRequest {
129129
repeated string strategyAddresses = 1;
130130
optional uint64 block_height = 2;
131+
optional eigenlayer.sidecar.v1.common.Pagination pagination = 3;
131132
}
132133
message ListWithdrawalsForStrategiesResponse {
133134
repeated Withdrawal withdrawals = 1;
135+
optional eigenlayer.sidecar.v1.common.Pagination next_page = 2;
134136
}

0 commit comments

Comments
 (0)