-
Notifications
You must be signed in to change notification settings - Fork 1
/
blockchain_api.proto
53 lines (44 loc) · 1.25 KB
/
blockchain_api.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
syntax = "proto3";
package waves.node.grpc;
option java_package = "com.wavesplatform.api.grpc";
option csharp_namespace = "Waves.Node.Grpc";
import "google/protobuf/empty.proto";
service BlockchainApi {
rpc GetActivationStatus (ActivationStatusRequest) returns (ActivationStatusResponse);
rpc GetBaseTarget (google.protobuf.Empty) returns (BaseTargetResponse);
rpc GetCumulativeScore (google.protobuf.Empty) returns (ScoreResponse);
}
message ActivationStatusRequest {
int32 height = 1;
}
message ActivationStatusResponse {
int32 height = 1;
int32 voting_interval = 2;
int32 voting_threshold = 3;
int32 next_check = 4;
repeated FeatureActivationStatus features = 5;
}
message FeatureActivationStatus {
enum BlockchainFeatureStatus {
UNDEFINED = 0;
APPROVED = 1;
ACTIVATED = 2;
};
enum NodeFeatureStatus {
NOT_IMPLEMENTED = 0;
IMPLEMENTED = 1;
VOTED = 2;
}
int32 id = 1;
string description = 2;
BlockchainFeatureStatus blockchain_status = 3;
NodeFeatureStatus node_status = 4;
int32 activation_height = 5;
int32 supporting_blocks = 6;
}
message BaseTargetResponse {
int64 base_target = 1;
}
message ScoreResponse {
bytes score = 1; // BigInt
}