-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fix all linters and add ci to check linters
- Loading branch information
1 parent
0d804d0
commit 96b823a
Showing
36 changed files
with
654 additions
and
693 deletions.
There are no files selected for viewing
Empty file.
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
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
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,18 @@ | ||
package constants | ||
|
||
import "errors" | ||
|
||
var ( | ||
ErrInvalidPacket = errors.New("packet.invalid") | ||
ErrCantSendPacket = errors.New("socket.unreachable") | ||
ErrInvalidKosk = errors.New("kosk.invalid") | ||
ErrInvalidConfig = errors.New("conf.invalid") | ||
ErrKosk = errors.New("kosk.error") | ||
ErrMissingHello = errors.New("hello.missing") | ||
ErrMissingKosk = errors.New("kosk.missing") | ||
ErrInternalError = errors.New("internal_error") | ||
ErrCantVerifyBls = errors.New("cant_verify_bls") | ||
ErrInvalidSignature = errors.New("signature.invalid") | ||
ErrNotSupportedDataset = errors.New("dataset not supported") | ||
ErrNotSupportedInstruction = errors.New("instruction not supported") | ||
) |
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 |
---|---|---|
@@ -1,22 +1,25 @@ | ||
package opcodes | ||
|
||
// TODO: Should we have a Data opcode instead of PriceReport & EventLog? | ||
|
||
type OpCode byte | ||
|
||
const ( | ||
Hello = iota | ||
KoskChallenge | ||
KoskResult | ||
Hello OpCode = iota | ||
KoskChallenge OpCode = 1 | ||
KoskResult OpCode = 2 | ||
|
||
RegisterConsumer | ||
RegisterConsumer OpCode = 3 | ||
|
||
Feedback | ||
Error | ||
Feedback OpCode = 4 | ||
Error OpCode = 5 | ||
|
||
PriceReport | ||
PriceReportBroadcast | ||
PriceReport OpCode = 6 | ||
PriceReportBroadcast OpCode = 7 | ||
|
||
EventLog | ||
EventLogBroadcast | ||
EventLog OpCode = 8 | ||
EventLogBroadcast OpCode = 9 | ||
|
||
CorrectnessReport | ||
CorrectnessReportBroadcast | ||
CorrectnessReport OpCode = 10 | ||
CorrectnessReportBroadcast OpCode = 11 | ||
) |
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
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
Oops, something went wrong.