Sha256: db3cf1be6d4a25b3f53c60972223d8bb85f40d39df2d95470e6dcccca314345a

Contents?: true

Size: 1.75 KB

Versions: 2

Compression:

Stored size: 1.75 KB

Contents

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: admission_control.proto

require 'google/protobuf'

require 'get_with_proof_pb'
require 'mempool_status_pb'
require 'transaction_pb'
require 'vm_errors_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("admission_control.proto", :syntax => :proto3) do
    add_message "admission_control.SubmitTransactionRequest" do
      optional :signed_txn, :message, 1, "types.SignedTransaction"
    end
    add_message "admission_control.AdmissionControlStatus" do
      optional :code, :enum, 1, "admission_control.AdmissionControlStatusCode"
      optional :message, :string, 2
    end
    add_message "admission_control.SubmitTransactionResponse" do
      optional :validator_id, :bytes, 4
      oneof :status do
        optional :vm_status, :message, 1, "types.VMStatus"
        optional :ac_status, :message, 2, "admission_control.AdmissionControlStatus"
        optional :mempool_status, :message, 3, "mempool.MempoolAddTransactionStatus"
      end
    end
    add_enum "admission_control.AdmissionControlStatusCode" do
      value :Accepted, 0
      value :Blacklisted, 1
      value :Rejected, 2
    end
  end
end

module AdmissionControl
  SubmitTransactionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("admission_control.SubmitTransactionRequest").msgclass
  AdmissionControlStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("admission_control.AdmissionControlStatus").msgclass
  SubmitTransactionResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("admission_control.SubmitTransactionResponse").msgclass
  AdmissionControlStatusCode = Google::Protobuf::DescriptorPool.generated_pool.lookup("admission_control.AdmissionControlStatusCode").enummodule
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
libra_client-0.2.1 proto-lib/admission_control_pb.rb
libra_client-0.1.7 proto-lib/admission_control_pb.rb