Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
merage proto
Browse files Browse the repository at this point in the history
  • Loading branch information
zergweak committed Mar 21, 2018
2 parents b74432d + 01ca399 commit 473587b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
7 changes: 7 additions & 0 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ service Wallet {

};

rpc GetAccountByAddress (BytesMessage) returns (Account) {

};

rpc ListAccounts (EmptyMessage) returns (AccountList) {

};
Expand Down Expand Up @@ -106,3 +110,6 @@ message EmptyMessage {
message NumberMessage {
int64 num = 1;
}
message BytesMessage {
bytes num = 1;
}
2 changes: 1 addition & 1 deletion core/Contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ message ParticipateAssetIssueContract {
bytes owner_address = 1;
bytes to_address = 2;
bytes asset_name = 3;
int32 amount = 4;
int64 amount = 4;
}

message DeployContract {
Expand Down
21 changes: 9 additions & 12 deletions core/Discover.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ message PeersMessage {

message Endpoint {
bytes address = 1;
int32 udpPort = 2;
int32 tcpPort = 3;
int32 port = 2;
bytes nodeId = 3;
}

message PingMessage {
Expand All @@ -58,22 +58,19 @@ message PingMessage {
}

message PongMessage {
Endpoint to = 1;
Endpoint from = 1;
int32 echo = 2;
int64 timestamp = 3;
}

message FindNeighbours {
bytes target = 1;
int64 timestamp = 2;
}

message Neighbour {
Endpoint endpoint = 1;
bytes nodeId = 2;
Endpoint from = 1;
bytes targetId = 2;
int64 timestamp = 3;
}

message Neighbours {
repeated Neighbour neighbours = 1;
int64 timestamp = 2;
Endpoint from = 1;
repeated Endpoint neighbours = 2;
int64 timestamp = 3;
}

0 comments on commit 473587b

Please sign in to comment.