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

Commit

Permalink
Merge pull request grpc-ecosystem#245 from tronprotocol/feature/updat…
Browse files Browse the repository at this point in the history
…ewitness

Feature/updatewitness
  • Loading branch information
zhaohong committed Mar 17, 2018
2 parents fee98bf + 9df3d33 commit 6b70dfd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ service Wallet {

rpc ListWitnesses (EmptyMessage) returns (WitnessList) {

};

rpc UpdateWitness (WitnessUpdateContract) returns (Transaction) {

};

rpc CreateWitness (WitnessCreateContract) returns (Transaction) {
Expand Down
7 changes: 6 additions & 1 deletion core/Contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ message VoteWitnessContract {

message WitnessCreateContract {
bytes owner_address = 1;
bytes url = 12;
bytes url = 2;
}

message WitnessUpdateContract {
bytes owner_address = 1;
bytes update_url = 12;
}

message AssetIssueContract {
Expand Down
1 change: 1 addition & 0 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ message Transaction {
WitnessCreateContract = 5;
AssetIssueContract = 6;
DeployContract = 7;
WitnessUpdateContract = 8;
}
ContractType type = 1;
google.protobuf.Any parameter = 2;
Expand Down

0 comments on commit 6b70dfd

Please sign in to comment.