Skip to content

Commit da0d50f

Browse files
committed
add pagination
1 parent 741f372 commit da0d50f

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
}
@@ -2617,21 +2623,31 @@
26172623
"type": "integer",
26182624
"format": "uint64"
26192625
},
2626+
"pagination": {
2627+
"$ref": "#/components/schemas/Pagination"
2628+
},
26202629
"strategyAddresses": {
26212630
"type": "string"
26222631
}
26232632
},
26242633
"required": [
2625-
"block_height"
2634+
"block_height",
2635+
"pagination"
26262636
]
26272637
},
26282638
"ListWithdrawalsForStrategiesResponse": {
26292639
"type": "object",
26302640
"properties": {
2641+
"nextPage": {
2642+
"$ref": "#/components/schemas/Pagination"
2643+
},
26312644
"withdrawals": {
26322645
"$ref": "#/components/schemas/Withdrawal"
26332646
}
2634-
}
2647+
},
2648+
"required": [
2649+
"next_page"
2650+
]
26352651
},
26362652
"LoadContractRequest": {
26372653
"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
}
@@ -3672,21 +3678,31 @@
36723678
"type": "integer",
36733679
"format": "uint64"
36743680
},
3681+
"pagination": {
3682+
"$ref": "#/components/schemas/Pagination"
3683+
},
36753684
"strategyAddresses": {
36763685
"type": "string"
36773686
}
36783687
},
36793688
"required": [
3680-
"block_height"
3689+
"block_height",
3690+
"pagination"
36813691
]
36823692
},
36833693
"ListWithdrawalsForStrategiesResponse": {
36843694
"type": "object",
36853695
"properties": {
3696+
"nextPage": {
3697+
"$ref": "#/components/schemas/Pagination"
3698+
},
36863699
"withdrawals": {
36873700
"$ref": "#/components/schemas/Withdrawal"
36883701
}
3689-
}
3702+
},
3703+
"required": [
3704+
"next_page"
3705+
]
36903706
},
36913707
"LoadContractRequest": {
36923708
"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)