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#528 from tronprotocol/refactor_tran…
Browse files Browse the repository at this point in the history
…saction

refactor the transaction structure
  • Loading branch information
zhaohong committed Apr 24, 2018
2 parents 221cf70 + 7fc51a7 commit 6cb5e8c
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 6cb5e8c

Please sign in to comment.