-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor aggregator rpc and upgrade eigenlayer-sdk (#86)
* upgrade eigensdk for fix not collection sucess * refactor rpc server, move to legacy and make exit wait
- Loading branch information
Showing
8 changed files
with
497 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package rpc | ||
|
||
import ( | ||
"errors" | ||
|
||
"github.com/alt-research/avs/core/message" | ||
) | ||
|
||
var ( | ||
TaskNotFoundError400 = errors.New("400. Task not found") | ||
OperatorNotPartOfTaskQuorum400 = errors.New("400. Operator not part of quorum") | ||
TaskResponseDigestNotFoundError500 = errors.New("500. Failed to get task response digest") | ||
UnknownErrorWhileVerifyingSignature400 = errors.New("400. Failed to verify signature") | ||
SignatureVerificationFailed400 = errors.New("400. Signature verification failed") | ||
CallToGetCheckSignaturesIndicesFailed500 = errors.New("500. Failed to get check signatures indices") | ||
) | ||
|
||
type AggregatorRpcHandler interface { | ||
InitOperator(req *message.InitOperatorRequest) (*message.InitOperatorResponse, error) | ||
CreateTask(req *message.CreateTaskRequest) (*message.CreateTaskResponse, error) | ||
ProcessSignedTaskResponse(signedTaskResponse *message.SignedTaskRespRequest) (*message.SignedTaskRespResponse, error) | ||
} |
Oops, something went wrong.