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

Commit

Permalink
Merge commit 'f63eda3db1b4386128cbc6235c3b95a72fbf0ba0' into p2p
Browse files Browse the repository at this point in the history
  • Loading branch information
sasaxie committed Mar 20, 2018
2 parents 8901f2c + f63eda3 commit cf487bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
6 changes: 3 additions & 3 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ service Wallet {

};

rpc TransferAssert (TransferAssertContract) returns (Transaction) {
rpc TransferAsset (TransferAssetContract) returns (Transaction) {

}
rpc TransferTokenToAssert (TransferTokenToAssetContract) returns (Transaction) {
rpc TransferTokenToAsset (TransferTokenToAssetContract) returns (Transaction) {

}

Expand Down Expand Up @@ -82,7 +82,7 @@ message WitnessList {
}

message AssetIssueList {
repeated AssetIssueContract witnesses = 1;
repeated AssetIssueContract assetIssue = 1;
}

// Gossip node list
Expand Down
4 changes: 2 additions & 2 deletions core/Contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ message TransferContract {
int64 amount = 3;
}

message TransferAssertContract {
bytes assert_name = 1;
message TransferAssetContract {
bytes asset_name = 1;
bytes owner_address = 2;
bytes to_address = 3;
int64 amount = 4;
Expand Down
7 changes: 0 additions & 7 deletions core/Message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ package protocol;
option java_package = "org.tron.protos"; //Specify the name of the package that generated the Java file
option java_outer_classname = "Message"; //Specify the class name of the generated Java file

message Capability {
string name = 1;
int32 version = 2;
}

enum ReasonCode {
REQUESTED = 0;
TCP_ERROR = 1;
Expand All @@ -32,7 +27,6 @@ message Peer {
bytes address = 1;
int32 port = 2;
string peerId = 3;
repeated Capability capabilities = 4;
}

message DisconnectMessage {
Expand All @@ -42,7 +36,6 @@ message DisconnectMessage {
message HelloMessage {
int32 p2pVersion = 1;
string clientId = 2;
repeated Capability capabilities = 3;
int32 listenPort = 4;
string peerId = 5;
}
Expand Down
2 changes: 1 addition & 1 deletion core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ message Transaction {
enum ContractType {
AccountCreateContract = 0;
TransferContract = 1;
TransferAssertContract = 2;
TransferAssetContract = 2;
VoteAssetContract = 3;
VoteWitnessContract = 4;
WitnessCreateContract = 5;
Expand Down

0 comments on commit cf487bb

Please sign in to comment.