Skip to content

Commit 695bd14

Browse files
committed
re-add rpc that was somehow removed
1 parent 420a5c1 commit 695bd14

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

protos/eigenlayer/sidecar/v1/rewards/rewards.proto

+8
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ message GetRewardsForSnapshotResponse {
6969
}
7070

7171

72+
message GetRewardsForDistributionRootRequest {
73+
uint64 root_index = 1;
74+
}
75+
message GetRewardsForDistributionRootResponse {
76+
repeated Reward rewards = 1;
77+
}
78+
79+
7280
message GetAttributableRewardsForSnapshotRequest {
7381
string snapshot = 1;
7482
}

protos/eigenlayer/sidecar/v1/rewards/rpc.proto

+6
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ service Rewards {
6060
};
6161
}
6262

63+
rpc GetRewardsForDistributionRoot(GetRewardsForDistributionRootRequest) returns (GetRewardsForDistributionRootResponse) {
64+
option (google.api.http) = {
65+
get: "/rewards/v1/distribution-roots/{root_index}/rewards"
66+
};
67+
}
68+
6369
// GetAttributableRewardsForSnapshot returns the attributable rewards for the provided snapshot.
6470
// This takes the cumulative rewards amounts and breaks them down across operators, avss, strategies, etc
6571
rpc GetAttributableRewardsForSnapshot(GetAttributableRewardsForSnapshotRequest) returns (GetAttributableRewardsForSnapshotResponse) {

0 commit comments

Comments
 (0)