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

Commit

Permalink
Merge commit '044a39a4666b0428785d0501067bf417ade820c1' into p2p
Browse files Browse the repository at this point in the history
  • Loading branch information
sasaxie committed Mar 20, 2018
2 parents 8d0790f + 044a39a commit faabdc4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ service Wallet {
rpc TransferAsset (TransferAssetContract) returns (Transaction) {

}
rpc TransferTokenToAsset (TransferTokenToAssetContract) returns (Transaction) {
rpc ParticipateAssetIssue (ParticipateAssetIssueContract) returns (Transaction) {

}

Expand Down
6 changes: 3 additions & 3 deletions core/Contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ message AssetIssueContract {
bytes url = 21;
}

message TransferTokenToAssetContract {
message ParticipateAssetIssueContract {
bytes owner_address = 1;
bytes to_address = 2;
bytes name = 3;
int32 trx_num = 4;
bytes asset_name = 3;
int64 amount = 4;
}

message DeployContract {
Expand Down
19 changes: 8 additions & 11 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 @@ -64,16 +64,13 @@ message PongMessage {
}

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;
}
2 changes: 1 addition & 1 deletion core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ message Transaction {
AssetIssueContract = 6;
DeployContract = 7;
WitnessUpdateContract = 8;
TransferTokenToAssetContract = 9;
ParticipateAssetIssueContract = 9;
}
ContractType type = 1;
google.protobuf.Any parameter = 2;
Expand Down

0 comments on commit faabdc4

Please sign in to comment.