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

Commit

Permalink
refactor the transaction structure
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohong committed Apr 24, 2018
1 parent 7308a22 commit 7fc51a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/Tron.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ message Account {
bytes code = 13;
}

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


message permision {
AccountId account = 1;
Expand Down Expand Up @@ -116,18 +121,21 @@ message Transaction {
int64 fee = 1;
code ret = 2;
}

message raw {
TransactionType type = 1;
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;
}

raw raw_data = 1;
repeated bytes signature = 2;
repeated Result ret = 5;
Expand Down

0 comments on commit 7fc51a7

Please sign in to comment.