Skip to content

Commit dbfdcde

Browse files
committed
feat: add tx hash and log_index to ListClaimedRewardsByBlockRange
1 parent 61d2423 commit dbfdcde

File tree

8 files changed

+190
-106
lines changed

8 files changed

+190
-106
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ export type ClaimedReward = {
100100
distributionRoot?: string
101101
blockNumber?: string
102102
recipient?: string
103+
transactionHash?: string
104+
logIndex?: string
103105
}
104106

105107
export type RewardAmount = {

gen/openapi/api.public.swagger.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,43 @@
705705
]
706706
}
707707
},
708+
"/rewards/v1/earners/{earner_address}/claimed-rewards": {
709+
"get": {
710+
"summary": "ListClaimedRewardsByBlockRange",
711+
"description": "ListClaimedRewardsByBlockRange returns the claimed rewards for the given earner address and block range,\ninclusive of the start and end block heights",
712+
"operationId": "Rewards_ListClaimedRewardsByBlockRange",
713+
"parameters": [
714+
{
715+
"name": "earner_address",
716+
"in": "path",
717+
"required": true,
718+
"schema": {
719+
"type": "string"
720+
}
721+
}
722+
],
723+
"responses": {
724+
"200": {
725+
"description": "Successful response",
726+
"content": {
727+
"application/json": {
728+
"schema": {
729+
"type": "object",
730+
"properties": {
731+
"rewards": {
732+
"$ref": "#/components/schemas/ClaimedReward"
733+
}
734+
}
735+
}
736+
}
737+
}
738+
}
739+
},
740+
"tags": [
741+
"rewards"
742+
]
743+
}
744+
},
708745
"/rewards/v1/earners/{earner_address}/summarized-rewards": {
709746
"get": {
710747
"summary": "GetSummarizedRewardsForEarner",
@@ -1084,11 +1121,18 @@
10841121
"earner": {
10851122
"type": "string"
10861123
},
1124+
"logIndex": {
1125+
"type": "integer",
1126+
"format": "uint64"
1127+
},
10871128
"recipient": {
10881129
"type": "string"
10891130
},
10901131
"token": {
10911132
"type": "string"
1133+
},
1134+
"transactionHash": {
1135+
"type": "string"
10921136
}
10931137
}
10941138
},

gen/openapi/api.swagger.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2204,11 +2204,18 @@
22042204
"earner": {
22052205
"type": "string"
22062206
},
2207+
"logIndex": {
2208+
"type": "integer",
2209+
"format": "uint64"
2210+
},
22072211
"recipient": {
22082212
"type": "string"
22092213
},
22102214
"token": {
22112215
"type": "string"
2216+
},
2217+
"transactionHash": {
2218+
"type": "string"
22122219
}
22132220
}
22142221
},

gen/openapiv2/apidocs.swagger.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2693,6 +2693,13 @@
26932693
},
26942694
"recipient": {
26952695
"type": "string"
2696+
},
2697+
"transactionHash": {
2698+
"type": "string"
2699+
},
2700+
"logIndex": {
2701+
"type": "string",
2702+
"format": "uint64"
26962703
}
26972704
}
26982705
},

gen/protos/eigenlayer/sidecar/v1/rewards/common.pb.go

Lines changed: 64 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)