Sha256: 2d9295f251daf15a41b5e01093ed062148a449ff08ee10f2bc81214d5c435ab9

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

syntax = "proto3";
package waves.node.grpc;
option java_package = "com.wavesplatform.api.grpc";
option csharp_namespace = "Waves.Node.Grpc";
option go_package = "github.com/wavesplatform/gowaves/pkg/grpc/generated/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
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
waves_lib-0.1.0 js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/blockchain_api.proto