Skip to content

Commit 42cfa03

Browse files
committed
feat: update GetRewardsByAvsForDistributionRoot (#51)
…t and make the API public
2 parents 5b3cadc + 47cfad8 commit 42cfa03

File tree

30 files changed

+1879
-4107
lines changed

30 files changed

+1879
-4107
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export type GetAttributableRewardsForDistributionRootResponse = {
104104
export type GetRewardsByAvsForDistributionRootRequest = {
105105
rootIndex?: string
106106
pagination?: EigenlayerSidecarV1CommonTypes.Pagination
107+
earnerAddress?: string[]
107108
}
108109

109110
export type GetRewardsByAvsForDistributionRootResponse = {

gen/openapi/api.public.swagger.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,48 @@
503503
]
504504
}
505505
},
506+
"/rewards/v1/avs-rewards-by-root/{root_index}": {
507+
"get": {
508+
"summary": "GetRewardsByAvsForDistributionRoot",
509+
"operationId": "Rewards_GetRewardsByAvsForDistributionRoot",
510+
"parameters": [
511+
{
512+
"name": "root_index",
513+
"in": "path",
514+
"required": true,
515+
"schema": {
516+
"type": "string"
517+
}
518+
}
519+
],
520+
"responses": {
521+
"200": {
522+
"description": "Successful response",
523+
"content": {
524+
"application/json": {
525+
"schema": {
526+
"type": "object",
527+
"properties": {
528+
"nextPage": {
529+
"$ref": "#/components/schemas/Pagination"
530+
},
531+
"rewards": {
532+
"$ref": "#/components/schemas/AvsReward"
533+
}
534+
},
535+
"required": [
536+
"next_page"
537+
]
538+
}
539+
}
540+
}
541+
}
542+
},
543+
"tags": [
544+
"rewards"
545+
]
546+
}
547+
},
506548
"/rewards/v1/claim-proof": {
507549
"post": {
508550
"summary": "GenerateClaimProof",
@@ -1668,6 +1710,9 @@
16681710
"GetRewardsByAvsForDistributionRootRequest": {
16691711
"type": "object",
16701712
"properties": {
1713+
"earnerAddress": {
1714+
"type": "string"
1715+
},
16711716
"pagination": {
16721717
"$ref": "#/components/schemas/Pagination"
16731718
},

gen/openapi/api.swagger.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2721,6 +2721,9 @@
27212721
"GetRewardsByAvsForDistributionRootRequest": {
27222722
"type": "object",
27232723
"properties": {
2724+
"earnerAddress": {
2725+
"type": "string"
2726+
},
27242727
"pagination": {
27252728
"$ref": "#/components/schemas/Pagination"
27262729
},

0 commit comments

Comments
 (0)