-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ec-555 #294
Merged
Merged
ec-555 #294
Changes from 53 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
25c0600
initial
GusevTimofey fbfa370
proto files
GusevTimofey 588bc5d
added full block-header-payload protobuf schema
GusevTimofey cf7c881
added to/from proto to header
GusevTimofey 70c068c
added transactions proto serializers
GusevTimofey 3f1db55
some additions
GusevTimofey 4e0dd37
added tests for all added modifiers
GusevTimofey 9e77a89
added boxes proto + test for it
GusevTimofey bbcf8ce
benches, tests, improvements
GusevTimofey 9a5e9d3
added proto classes for the network message
GusevTimofey f84a73e
some additions
GusevTimofey 629dfe6
some additions
GusevTimofey 17bc010
reworked all network messages
GusevTimofey 79c4153
some additions
GusevTimofey 9ae326b
some additions
GusevTimofey d01c416
some additions
GusevTimofey af3632f
added completed tests for all proto serializers
GusevTimofey 58dbada
fixed twice compilation error
GusevTimofey 6ecc660
fixed twice compilation error
GusevTimofey 887290e
some additions
GusevTimofey 0acfd11
some additions
GusevTimofey 1abbceb
loggers
GusevTimofey 1844efe
loggers
GusevTimofey e002eef
loggers
GusevTimofey b69320e
loggers
GusevTimofey a6b8e11
loggers
GusevTimofey d181170
loggers
GusevTimofey ae8ee75
loggers
GusevTimofey 87cf78a
loggers
GusevTimofey 9aac38d
loggers
GusevTimofey 567b2be
loggers
GusevTimofey 2b93add
fix
GusevTimofey a03be3c
some additions
GusevTimofey 0c87442
logging
GusevTimofey 320b634
logging
GusevTimofey 4df3294
fix docker
GusevTimofey 571fc87
fix docker
GusevTimofey 692ca30
code cleanup
GusevTimofey 88da3a9
code cleanup
GusevTimofey 70d1451
code cleanup
GusevTimofey 302a56d
code cleanup
GusevTimofey 695f24f
removed EQUIHASH from header's proto
GusevTimofey 50df7e1
jenkins
GusevTimofey 8f37e8d
jenkins!
GusevTimofey bd1b80e
JENKINS!!!!!!!!!!!!
GusevTimofey e630587
JENKINS
GusevTimofey f987db6
JENKINS
GusevTimofey d09b7bd
docker
GusevTimofey d75bef8
removed EQUIHASH from header's proto
GusevTimofey f5cb281
jenkins
GusevTimofey 584e0fb
fix
GusevTimofey 322d3a8
fix
GusevTimofey 241f790
fix sync
GusevTimofey cc46d9e
code cleanup
GusevTimofey bc3e613
minor update
GusevTimofey 622b3f8
cleanup tests
GusevTimofey File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.1.1 | ||
sbt.version=1.1.2 |
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,3 @@ | ||
addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.19") | ||
|
||
libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.8.2" |
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,15 @@ | ||
syntax = "proto3"; | ||
import "HeaderProto.proto"; | ||
import "PayloadProto.proto"; | ||
|
||
message BlockProtoMessage { | ||
|
||
message AdProofsProtoMessage { | ||
bytes headerId = 1; | ||
bytes proofBytes = 2; | ||
} | ||
|
||
HeaderProtoMessage header = 1; | ||
PayloadProtoMessage payload = 2; | ||
AdProofsProtoMessage adProofsOpt = 3; | ||
} |
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,34 @@ | ||
syntax = "proto3"; | ||
|
||
message BoxProtoMessage { | ||
|
||
message TokenIdProto { | ||
bytes tokenId = 1; | ||
} | ||
|
||
message AssetBoxProtoMessage { | ||
bytes propositionProtoMessage = 1; | ||
uint64 nonce = 2; | ||
uint64 amount = 3; | ||
TokenIdProto tokenId = 4; | ||
} | ||
|
||
message DataBoxProtoMessage { | ||
bytes propositionProtoMessage = 1; | ||
uint64 nonce = 2; | ||
bytes data = 3; | ||
} | ||
|
||
message TokenIssuingBoxProtoMessage { | ||
bytes propositionProtoMessage = 1; | ||
uint64 nonce = 2; | ||
uint64 amount = 3; | ||
bytes tokenId = 4; | ||
} | ||
|
||
oneof box { | ||
AssetBoxProtoMessage assetBox = 1; | ||
DataBoxProtoMessage dataBox = 2; | ||
TokenIssuingBoxProtoMessage tokenIssuingBox = 3; | ||
} | ||
} |
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,15 @@ | ||
syntax = "proto3"; | ||
|
||
message HeaderProtoMessage { | ||
|
||
bytes version = 1; | ||
bytes parentId = 2; | ||
bytes adProofsRoot = 3; | ||
bytes stateRoot = 4; | ||
bytes transactionsRoot = 5; | ||
uint64 timestamp = 6; | ||
uint32 height = 7; | ||
uint64 nonce = 8; | ||
uint64 difficulty = 9; | ||
repeated uint32 ints = 10; | ||
} |
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,55 @@ | ||
syntax = "proto3"; | ||
import "SyntaxMessageProto.proto"; | ||
|
||
message GeneralizedNetworkProtoMessage { | ||
|
||
message SyncInfoProtoMessage { | ||
repeated bytes lastHeaderIds = 1; | ||
} | ||
|
||
message InvProtoMessage { | ||
bytes modifierTypeId = 1; | ||
repeated bytes modifiers = 2; | ||
} | ||
|
||
message RequestModifiersProtoMessage { | ||
bytes modifierTypeId = 1; | ||
repeated bytes modifiers = 2; | ||
} | ||
|
||
message ModifiersProtoMessage { | ||
|
||
message MapFieldEntry { | ||
bytes key = 1; | ||
bytes value = 2; | ||
} | ||
|
||
bytes modifierTypeId = 1; | ||
repeated MapFieldEntry map = 2; | ||
} | ||
|
||
message GetPeersProtoMessage { } | ||
|
||
message PeersProtoMessage { | ||
repeated InetSocketAddressProtoMessage peers = 1; | ||
} | ||
|
||
message HandshakeProtoMessage { | ||
bytes protocolVersion = 1; | ||
string nodeName = 2; | ||
InetSocketAddressProtoMessage declaredAddress = 3; | ||
uint64 time = 4; | ||
} | ||
|
||
bytes magic = 1; | ||
bytes checksum = 2; | ||
oneof innerMessage { | ||
SyncInfoProtoMessage syncInfoProtoMessage = 3; | ||
InvProtoMessage invProtoMessage = 4; | ||
RequestModifiersProtoMessage requestModifiersProtoMessage = 5; | ||
ModifiersProtoMessage modifiersProtoMessage = 6; | ||
GetPeersProtoMessage getPeersProtoMessage = 7; | ||
PeersProtoMessage peersProtoMessage = 8; | ||
HandshakeProtoMessage handshakeProtoMessage = 9; | ||
} | ||
} |
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,7 @@ | ||
syntax = "proto3"; | ||
import "TransactionProto.proto"; | ||
|
||
message PayloadProtoMessage { | ||
bytes headerId = 1; | ||
repeated TransactionProtoMessage txs = 2; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This val is not used anywhere (same as one above)