Skip to content

Commit

Permalink
extend proto for support tx set_validator
Browse files Browse the repository at this point in the history
Signed-off-by: p4u <pau@dabax.net>
  • Loading branch information
p4u committed Oct 17, 2023
1 parent 2f4b6ce commit 436a23e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/vochain/vochain.proto
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ enum TxType {
SET_ACCOUNT_SIK = 24;
DEL_ACCOUNT_SIK = 25;
REGISTER_SIK = 26;
SET_ACCOUNT_VALIDATOR = 27;
}

message Tx {
Expand Down Expand Up @@ -276,6 +277,8 @@ message SetAccountTx {
optional FaucetPackage faucetPackage = 5;
repeated bytes delegates = 6;
optional bytes SIK = 7;
optional bytes publicKey = 8;
optional string name = 9;
}

message SIKTx {
Expand Down Expand Up @@ -448,6 +451,11 @@ message Validator {
uint64 power = 3;
string name = 4;
uint32 keyIndex = 5;
uint64 height = 6;
uint64 proposals = 7;
uint64 votes = 8;
bytes validatorAddress = 9;
uint32 score = 10;
}

message TendermintHeader {
Expand Down

0 comments on commit 436a23e

Please sign in to comment.