-
Notifications
You must be signed in to change notification settings - Fork 1
/
events.proto
54 lines (45 loc) · 1.12 KB
/
events.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
syntax = "proto3";
package waves.events;
option java_package = "com.wavesplatform.events.protobuf";
import "amount.proto";
import "block.proto";
import "transaction.proto";
message BlockchainUpdated {
bytes id = 1;
int32 height = 2;
message Append {
oneof body {
Block block = 1;
SignedMicroBlock micro_block = 2;
}
repeated bytes transaction_ids = 3;
StateUpdate state_update = 11;
repeated StateUpdate transaction_state_updates = 12;
}
enum Rollback {
BLOCK = 0;
MICROBLOCK = 1;
}
oneof update {
Append append = 11;
Rollback rollback = 12;
}
}
message StateUpdate {
message BalanceUpdate {
bytes address = 1;
Amount amount = 2;
}
repeated BalanceUpdate balances = 1;
message LeasingUpdate {
bytes address = 1;
int64 in = 2;
int64 out = 3;
}
repeated LeasingUpdate leases = 2;
message DataEntryUpdate {
bytes address = 1;
DataTransactionData.DataEntry data_entry = 2;
}
repeated DataEntryUpdate data_entries = 3;
}