Skip to content

Commit

Permalink
Add proto for requesting rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed Sep 12, 2024
1 parent d0ad414 commit 244c629
Show file tree
Hide file tree
Showing 5 changed files with 501 additions and 53 deletions.
73 changes: 73 additions & 0 deletions gen/openapiv2/eigenlayer/sidecar/v1/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,38 @@
]
}
},
"/v1/reward-amounts": {
"post": {
"operationId": "Rpc_GenerateRewardAmounts",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1GenerateRewardAmountsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1GenerateRewardAmountsRequest"
}
}
],
"tags": [
"Rpc"
]
}
},
"/v1/state-roots/{blockNumber}": {
"post": {
"operationId": "Rpc_GetStateRoot",
Expand Down Expand Up @@ -120,6 +152,28 @@
}
}
},
"v1GenerateRewardAmountsRequest": {
"type": "object",
"properties": {
"snapshot": {
"type": "string",
"format": "int64",
"title": "unix timestamp representation of the snapshot"
}
}
},
"v1GenerateRewardAmountsResponse": {
"type": "object",
"properties": {
"rewards": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1RewardAmount"
}
}
}
},
"v1GetBlockHeightRequest": {
"type": "object"
},
Expand Down Expand Up @@ -149,6 +203,25 @@
"type": "string"
}
}
},
"v1RewardAmount": {
"type": "object",
"properties": {
"earner": {
"type": "string"
},
"token": {
"type": "string"
},
"snapshot": {
"type": "string",
"format": "int64",
"title": "unix timestamp representation of the snapshot"
},
"cumulativeAmount": {
"type": "string"
}
}
}
}
}
Loading

0 comments on commit 244c629

Please sign in to comment.