Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: re-add missing rpc #38

Merged
merged 1 commit into from
Mar 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion gen/api-ts/eigenlayer/sidecar/v1/rewards/rewards.pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,14 @@ export type GenerateRewardsRootResponse = {
rewardsCalcEndDate?: string
}

export type GetRewardsForSnapshotRequest = {

type BaseGetRewardsForSnapshotRequest = {
snapshot?: string
}

export type GetRewardsForSnapshotRequest = BaseGetRewardsForSnapshotRequest
& OneOf<{ earner: string }>

export type GetRewardsForSnapshotResponse = {
rewards?: EigenlayerSidecarV1RewardsCommon.Reward[]
}
Expand Down
8 changes: 7 additions & 1 deletion gen/openapi/api.public.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -852,10 +852,16 @@
"GetRewardsForSnapshotRequest": {
"type": "object",
"properties": {
"earner": {
"type": "string"
},
"snapshot": {
"type": "string"
}
}
},
"required": [
"earner"
]
},
"GetRewardsForSnapshotResponse": {
"type": "object",
Expand Down
8 changes: 7 additions & 1 deletion gen/openapi/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2623,10 +2623,16 @@
"GetRewardsForSnapshotRequest": {
"type": "object",
"properties": {
"earner": {
"type": "string"
},
"snapshot": {
"type": "string"
}
}
},
"required": [
"earner"
]
},
"GetRewardsForSnapshotResponse": {
"type": "object",
Expand Down
6 changes: 6 additions & 0 deletions gen/openapiv2/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1391,6 +1391,12 @@
"in": "path",
"required": true,
"type": "string"
},
{
"name": "earner",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
Expand Down
495 changes: 253 additions & 242 deletions gen/protos/eigenlayer/sidecar/v1/rewards/rewards.pb.go

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions gen/protos/eigenlayer/sidecar/v1/rewards/rpc.gw.client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions gen/protos/eigenlayer/sidecar/v1/rewards/rpc.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions protos/eigenlayer/sidecar/v1/rewards/rewards.proto
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ message GenerateRewardsRootResponse {

message GetRewardsForSnapshotRequest {
string snapshot = 1;
optional string earner = 2;
}
message GetRewardsForSnapshotResponse {
repeated Reward rewards = 1;
Expand Down