Skip to content

Commit

Permalink
Merge pull request #336 from tronprotocol/protocol
Browse files Browse the repository at this point in the history
add protocol
  • Loading branch information
sasaxie authored Mar 31, 2018
2 parents bd698b6 + 1329496 commit 144b868
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/protos/api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ service Wallet {

};

rpc UpdateAccount (AccountUpdateContract) returns (Transaction) {

};

rpc CreateAccount (AccountCreateContract) returns (Transaction) {

};
Expand Down
6 changes: 6 additions & 0 deletions src/main/protos/core/Contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ message AccountCreateContract {
bytes owner_address = 3;
}

// update account name if the account has no name.
message AccountUpdateContract{
bytes account_name = 1;
bytes owner_address = 2;
}

message TransferContract {
bytes owner_address = 1;
bytes to_address = 2;
Expand Down
1 change: 1 addition & 0 deletions src/main/protos/core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ enum ReasonCode {
LOCAL_IDENTITY = 10;
PING_TIMEOUT = 11;
USER_REASON = 12;
RESET = 16;
UNKNOWN = 255;
}

Expand Down

0 comments on commit 144b868

Please sign in to comment.