Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
align
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerLamTd committed Oct 19, 2023
1 parent f82f495 commit 4925e8c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions prover/server/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,18 @@ type ProposeBlockResponse struct {
// handle this block, and if so, returns a signed payload the proposer
// can submit onchain.
//
// @Summary Try to accept a block proof assignment
// @Param body body CreateAssignmentRequestBody true "assignment request body"
// @Accept json
// @Produce json
// @Success 200 {object} ProposeBlockResponse
// @Failure 422 {string} string "invalid txList hash"
// @Failure 422 {string} string "only receive ETH"
// @Failure 422 {string} string "insufficient prover balance"
// @Failure 422 {string} string "proof fee too low"
// @Failure 422 {string} string "expiry too long"
// @Failure 422 {string} string "prover does not have capacity"
// @Router /assignment [post]
// @Summary Try to accept a block proof assignment
// @Param body body CreateAssignmentRequestBody true "assignment request body"
// @Accept json
// @Produce json
// @Success 200 {object} ProposeBlockResponse
// @Failure 422 {string} string "invalid txList hash"
// @Failure 422 {string} string "only receive ETH"
// @Failure 422 {string} string "insufficient prover balance"
// @Failure 422 {string} string "proof fee too low"
// @Failure 422 {string} string "expiry too long"
// @Failure 422 {string} string "prover does not have capacity"
// @Router /assignment [post]
func (srv *ProverServer) CreateAssignment(c echo.Context) error {
req := new(CreateAssignmentRequestBody)
if err := c.Bind(req); err != nil {
Expand Down

0 comments on commit 4925e8c

Please sign in to comment.