Skip to content

Commit 85280c9

Browse files
committed
#6 update transaction proto
1 parent 7356c86 commit 85280c9

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

model/transaction.proto

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ message Transaction {
99
bytes ID = 1;
1010
int64 BlockID = 2;
1111
uint32 Height = 3;
12-
string SenderAccountID = 4;
13-
string RecipientAccountID = 5;
12+
bytes SenderAccountID = 4;
13+
bytes RecipientAccountID = 5;
1414
uint32 TransactionType = 6;
1515
int64 Fee = 7;
1616
int64 Timestamp = 8;
@@ -19,7 +19,18 @@ message Transaction {
1919
bytes TransactionBodyBytes = 11;
2020
bytes Signature = 12;
2121
//TODO: protobuf only (not reflected in db)
22+
2223
// TransactionBody
24+
oneof TransactionBody {
25+
EmptyTransactionBody emptyTransactionBody = 13;
26+
SendMoneyTransactionBody sendMoneyTransactionBody = 14;
27+
}
28+
}
29+
30+
message EmptyTransactionBody {}
31+
32+
message SendMoneyTransactionBody {
33+
int64 Amount = 1;
2334
}
2435

2536
message GetTransactionRequest {

0 commit comments

Comments
 (0)