f1r3fly-models 0.1.0

Common data model types for the F1r3fly blockchain, including protobuf definitions and Rust implementations
Documentation
syntax = "proto3";
package casper.v1;

import "ServiceError.proto";
import "ProposeServiceCommon.proto";

// If you are building for other languages "scalapb.proto"
// can be manually obtained here:
// https://raw.githubusercontent.com/scalapb/ScalaPB/master/protobuf/scalapb/scalapb.proto
// make a scalapb directory in this file's location and place it inside

import "scalapb/scalapb.proto";

option (scalapb.options) = {
  package_name: "coop.rchain.casper.protocol.propose.v1"
  flat_package: true
  single_file: true
  preserve_unknown_fields: false
};

service ProposeService {
  rpc propose(ProposeQuery) returns (ProposeResponse) {}
  rpc proposeResult(ProposeResultQuery) returns (ProposeResultResponse) {}
}

message ProposeResponse {
  oneof message {
    servicemodelapi.ServiceError error = 1;
    string result      = 2;
  }
}

message ProposeResultResponse {
  oneof message {
    servicemodelapi.ServiceError error = 1;
    string result      = 2;
  }
}