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

Commit

Permalink
Merge branch 'master' into update_account
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohong committed Apr 24, 2018
2 parents 3868626 + 6cb5e8c commit 80c5fd4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,40 @@ enum AccountType {
Contract = 2;
}

// AccountId, (name, address) use name, (null, address) use address, (name, null) use name,
message AccountId {
bytes name = 1;
bytes address = 2;
}

// Account
message Account {
message Vote {
bytes vote_address = 1;
int64 vote_count = 2;
}

bytes account_name = 1;
AccountType type = 2;
// the create adress
bytes address = 3;
int64 balance = 4;
repeated Vote votes = 5;
map<string, int64> asset = 6;
int64 create_time = 9;
int64 latest_opration_time = 10;
bytes code = 13;
}

message acuthrity {
AccountId account = 1;
bytes permission_name = 2;
}


message permision {
AccountId account = 1;

}

// Witness
Expand Down Expand Up @@ -65,6 +86,7 @@ message TXOutputs {
repeated TXOutput outputs = 1;
}


message Transaction {
enum TransactionType {
UtxoType = 0;
Expand All @@ -83,9 +105,13 @@ message Transaction {
WitnessUpdateContract = 8;
ParticipateAssetIssueContract = 9;
AccountUpdateContract = 10;
CustomContract = 20;
}
ContractType type = 1;
google.protobuf.Any parameter = 2;
bytes provider = 3;
bytes ContractName = 4;

}

message Result {
Expand All @@ -102,8 +128,11 @@ message Transaction {
int64 ref_block_num = 3;
bytes ref_block_hash = 4;
int64 expiration = 8;
repeated acuthrity auths = 9;
// data not used
bytes data = 10;
repeated Contract contract = 11;
// scripts not used
bytes scripts = 12;
int64 timestamp = 14;
}
Expand Down

0 comments on commit 80c5fd4

Please sign in to comment.