libra_client 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/Gemfile.lock +8 -6
- data/lib/libra/version.rb +1 -1
- data/libra_client.gemspec +1 -0
- data/proto-lib/admission_control_pb.rb +10 -7
- data/proto-lib/consensus_pb.rb +105 -0
- data/proto-lib/events_pb.rb +1 -1
- data/proto-lib/execution_pb.rb +51 -0
- data/proto-lib/execution_services_pb.rb +37 -0
- data/proto-lib/language_storage_pb.rb +17 -0
- data/proto-lib/mempool_pb.rb +18 -0
- data/proto-lib/mempool_status_pb.rb +7 -2
- data/proto-lib/network_pb.rb +59 -0
- data/proto-lib/node_debug_interface_pb.rb +39 -0
- data/proto-lib/node_debug_interface_services_pb.rb +32 -0
- data/proto-lib/proof_pb.rb +6 -0
- data/proto-lib/secret_service_pb.rb +54 -0
- data/proto-lib/secret_service_services_pb.rb +34 -0
- data/proto-lib/state_synchronizer_pb.rb +33 -0
- data/proto-lib/storage_pb.rb +61 -0
- data/proto-lib/storage_services_pb.rb +47 -0
- data/proto-lib/transaction_pb.rb +11 -0
- data/proto-lib/validator_public_keys_pb.rb +19 -0
- data/proto-lib/validator_set_pb.rb +17 -0
- data/proto-lib/vm_errors_pb.rb +84 -70
- data/protos/admission_control.proto +11 -4
- data/protos/consensus.proto +147 -0
- data/protos/events.proto +1 -1
- data/protos/execution.proto +92 -0
- data/protos/language_storage.proto +12 -0
- data/protos/mempool.proto +18 -0
- data/protos/mempool_status.proto +6 -1
- data/protos/network.proto +81 -0
- data/protos/node_debug_interface.proto +40 -0
- data/protos/proof.proto +15 -0
- data/protos/secret_service.proto +64 -0
- data/protos/state_synchronizer.proto +29 -0
- data/protos/storage.proto +115 -0
- data/protos/transaction.proto +16 -1
- data/protos/validator_public_keys.proto +18 -0
- data/protos/validator_set.proto +13 -0
- data/protos/vm_errors.proto +87 -71
- metadata +42 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6d2899596c8f7bcd0a4f7112da1aea8241de7188df53d2918121ace426c195f
|
4
|
+
data.tar.gz: 2a4066d7ec6dee969cfe07850f3d34e02ac3fe1da4563b7dd0a791e211af555c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7f05163ce7c6f9ddc36f66ffd30c2edcad322aa93c77f601a9e0ad75fd64541ca461cf07745e8656ce57769ab1b196df0ece2f0b145e26840fda66abf03d506
|
7
|
+
data.tar.gz: e0a8d00ec26b64042a38e3b44e1ca067eed95bdcb66da3cf331e8d687f9eaa4807e4b61ae42fd8429da29657868968dce8054c85f990157c5a294b42fab314d9
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
libra_client (0.1.
|
4
|
+
libra_client (0.1.7)
|
5
5
|
canoser (~> 0.1.2)
|
6
6
|
grpc (~> 1.23)
|
7
7
|
rest-client (~> 2.0)
|
@@ -10,21 +10,22 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
byebug (11.0.1)
|
13
|
-
canoser (0.1.
|
13
|
+
canoser (0.1.3)
|
14
14
|
domain_name (0.5.20190701)
|
15
15
|
unf (>= 0.0.5, < 1.0.0)
|
16
|
-
google-protobuf (3.9.1
|
16
|
+
google-protobuf (3.9.1)
|
17
17
|
googleapis-common-protos-types (1.0.4)
|
18
18
|
google-protobuf (~> 3.0)
|
19
|
-
grpc (1.23.0
|
19
|
+
grpc (1.23.0)
|
20
20
|
google-protobuf (~> 3.8)
|
21
21
|
googleapis-common-protos-types (~> 1.0)
|
22
|
+
grpc-tools (1.23.0)
|
22
23
|
http-accept (1.7.0)
|
23
24
|
http-cookie (1.0.3)
|
24
25
|
domain_name (~> 0.5)
|
25
|
-
mime-types (3.
|
26
|
+
mime-types (3.3)
|
26
27
|
mime-types-data (~> 3.2015)
|
27
|
-
mime-types-data (3.2019.
|
28
|
+
mime-types-data (3.2019.0904)
|
28
29
|
minitest (5.11.3)
|
29
30
|
netrc (0.11.0)
|
30
31
|
rake (10.5.0)
|
@@ -43,6 +44,7 @@ PLATFORMS
|
|
43
44
|
DEPENDENCIES
|
44
45
|
bundler (~> 2.0)
|
45
46
|
byebug (~> 11.0)
|
47
|
+
grpc-tools (~> 1.23)
|
46
48
|
libra_client!
|
47
49
|
minitest (~> 5.0)
|
48
50
|
rake (~> 10.0)
|
data/lib/libra/version.rb
CHANGED
data/libra_client.gemspec
CHANGED
@@ -40,6 +40,7 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.add_development_dependency "rake", "~> 10.0"
|
41
41
|
spec.add_development_dependency "minitest", "~> 5.0"
|
42
42
|
spec.add_development_dependency "byebug", "~> 11.0"
|
43
|
+
spec.add_development_dependency "grpc-tools", "~> 1.23"
|
43
44
|
|
44
45
|
spec.add_dependency "grpc", "~> 1.23"
|
45
46
|
spec.add_dependency "canoser", "~> 0.1.2"
|
@@ -4,25 +4,27 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'get_with_proof_pb'
|
7
|
+
require 'mempool_status_pb'
|
7
8
|
require 'transaction_pb'
|
8
|
-
require 'proof_pb'
|
9
|
-
require 'ledger_info_pb'
|
10
9
|
require 'vm_errors_pb'
|
11
|
-
require 'mempool_status_pb'
|
12
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
11
|
add_file("admission_control.proto", :syntax => :proto3) do
|
14
12
|
add_message "admission_control.SubmitTransactionRequest" do
|
15
13
|
optional :signed_txn, :message, 1, "types.SignedTransaction"
|
16
14
|
end
|
15
|
+
add_message "admission_control.AdmissionControlStatus" do
|
16
|
+
optional :code, :enum, 1, "admission_control.AdmissionControlStatusCode"
|
17
|
+
optional :message, :string, 2
|
18
|
+
end
|
17
19
|
add_message "admission_control.SubmitTransactionResponse" do
|
18
20
|
optional :validator_id, :bytes, 4
|
19
21
|
oneof :status do
|
20
22
|
optional :vm_status, :message, 1, "types.VMStatus"
|
21
|
-
optional :ac_status, :
|
22
|
-
optional :mempool_status, :
|
23
|
+
optional :ac_status, :message, 2, "admission_control.AdmissionControlStatus"
|
24
|
+
optional :mempool_status, :message, 3, "mempool.MempoolAddTransactionStatus"
|
23
25
|
end
|
24
26
|
end
|
25
|
-
add_enum "admission_control.
|
27
|
+
add_enum "admission_control.AdmissionControlStatusCode" do
|
26
28
|
value :Accepted, 0
|
27
29
|
value :Blacklisted, 1
|
28
30
|
value :Rejected, 2
|
@@ -32,6 +34,7 @@ end
|
|
32
34
|
|
33
35
|
module AdmissionControl
|
34
36
|
SubmitTransactionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("admission_control.SubmitTransactionRequest").msgclass
|
37
|
+
AdmissionControlStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("admission_control.AdmissionControlStatus").msgclass
|
35
38
|
SubmitTransactionResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("admission_control.SubmitTransactionResponse").msgclass
|
36
|
-
|
39
|
+
AdmissionControlStatusCode = Google::Protobuf::DescriptorPool.generated_pool.lookup("admission_control.AdmissionControlStatusCode").enummodule
|
37
40
|
end
|
@@ -0,0 +1,105 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: consensus.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'ledger_info_pb'
|
7
|
+
require 'transaction_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("consensus.proto", :syntax => :proto3) do
|
10
|
+
add_message "network.ConsensusMsg" do
|
11
|
+
oneof :message do
|
12
|
+
optional :proposal, :message, 1, "network.Proposal"
|
13
|
+
optional :vote, :message, 2, "network.Vote"
|
14
|
+
optional :request_block, :message, 3, "network.RequestBlock"
|
15
|
+
optional :respond_block, :message, 4, "network.RespondBlock"
|
16
|
+
optional :timeout_msg, :message, 5, "network.TimeoutMsg"
|
17
|
+
optional :sync_info, :message, 6, "network.SyncInfo"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
add_message "network.Proposal" do
|
21
|
+
optional :proposed_block, :message, 1, "network.Block"
|
22
|
+
optional :sync_info, :message, 2, "network.SyncInfo"
|
23
|
+
end
|
24
|
+
add_message "network.PacemakerTimeout" do
|
25
|
+
optional :round, :uint64, 1
|
26
|
+
optional :author, :bytes, 2
|
27
|
+
optional :signature, :bytes, 3
|
28
|
+
optional :vote, :message, 4, "network.Vote"
|
29
|
+
end
|
30
|
+
add_message "network.TimeoutMsg" do
|
31
|
+
optional :sync_info, :message, 1, "network.SyncInfo"
|
32
|
+
optional :pacemaker_timeout, :message, 2, "network.PacemakerTimeout"
|
33
|
+
optional :signature, :bytes, 3
|
34
|
+
end
|
35
|
+
add_message "network.SyncInfo" do
|
36
|
+
optional :highest_quorum_cert, :message, 1, "network.QuorumCert"
|
37
|
+
optional :highest_ledger_info, :message, 2, "network.QuorumCert"
|
38
|
+
optional :highest_timeout_cert, :message, 3, "network.PacemakerTimeoutCertificate"
|
39
|
+
end
|
40
|
+
add_message "network.PacemakerTimeoutCertificate" do
|
41
|
+
optional :round, :uint64, 1
|
42
|
+
repeated :timeouts, :message, 2, "network.PacemakerTimeout"
|
43
|
+
end
|
44
|
+
add_message "network.Block" do
|
45
|
+
optional :id, :bytes, 1
|
46
|
+
optional :parent_id, :bytes, 2
|
47
|
+
optional :payload, :bytes, 3
|
48
|
+
optional :round, :uint64, 4
|
49
|
+
optional :height, :uint64, 5
|
50
|
+
optional :timestamp_usecs, :uint64, 6
|
51
|
+
optional :quorum_cert, :message, 7, "network.QuorumCert"
|
52
|
+
optional :author, :bytes, 8
|
53
|
+
optional :signature, :bytes, 9
|
54
|
+
end
|
55
|
+
add_message "network.QuorumCert" do
|
56
|
+
optional :vote_data, :message, 1, "network.VoteData"
|
57
|
+
optional :signed_ledger_info, :message, 2, "types.LedgerInfoWithSignatures"
|
58
|
+
end
|
59
|
+
add_message "network.VoteData" do
|
60
|
+
optional :block_id, :bytes, 1
|
61
|
+
optional :round, :uint64, 2
|
62
|
+
optional :executed_state_id, :bytes, 3
|
63
|
+
optional :version, :uint64, 4
|
64
|
+
optional :parent_block_id, :bytes, 5
|
65
|
+
optional :parent_block_round, :uint64, 6
|
66
|
+
optional :grandparent_block_id, :bytes, 7
|
67
|
+
optional :grandparent_block_round, :uint64, 8
|
68
|
+
end
|
69
|
+
add_message "network.Vote" do
|
70
|
+
optional :vote_data, :message, 1, "network.VoteData"
|
71
|
+
optional :author, :bytes, 2
|
72
|
+
optional :ledger_info, :message, 3, "types.LedgerInfo"
|
73
|
+
optional :signature, :bytes, 4
|
74
|
+
end
|
75
|
+
add_message "network.RequestBlock" do
|
76
|
+
optional :block_id, :bytes, 1
|
77
|
+
optional :num_blocks, :uint64, 2
|
78
|
+
end
|
79
|
+
add_message "network.RespondBlock" do
|
80
|
+
optional :status, :enum, 1, "network.BlockRetrievalStatus"
|
81
|
+
repeated :blocks, :message, 2, "network.Block"
|
82
|
+
end
|
83
|
+
add_enum "network.BlockRetrievalStatus" do
|
84
|
+
value :SUCCEEDED, 0
|
85
|
+
value :ID_NOT_FOUND, 1
|
86
|
+
value :NOT_ENOUGH_BLOCKS, 2
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
module Network
|
92
|
+
ConsensusMsg = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.ConsensusMsg").msgclass
|
93
|
+
Proposal = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.Proposal").msgclass
|
94
|
+
PacemakerTimeout = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.PacemakerTimeout").msgclass
|
95
|
+
TimeoutMsg = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.TimeoutMsg").msgclass
|
96
|
+
SyncInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.SyncInfo").msgclass
|
97
|
+
PacemakerTimeoutCertificate = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.PacemakerTimeoutCertificate").msgclass
|
98
|
+
Block = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.Block").msgclass
|
99
|
+
QuorumCert = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.QuorumCert").msgclass
|
100
|
+
VoteData = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.VoteData").msgclass
|
101
|
+
Vote = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.Vote").msgclass
|
102
|
+
RequestBlock = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.RequestBlock").msgclass
|
103
|
+
RespondBlock = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.RespondBlock").msgclass
|
104
|
+
BlockRetrievalStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.BlockRetrievalStatus").enummodule
|
105
|
+
end
|
data/proto-lib/events_pb.rb
CHANGED
@@ -8,7 +8,7 @@ require 'proof_pb'
|
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("events.proto", :syntax => :proto3) do
|
10
10
|
add_message "types.Event" do
|
11
|
-
optional :
|
11
|
+
optional :key, :bytes, 1
|
12
12
|
optional :sequence_number, :uint64, 2
|
13
13
|
optional :event_data, :bytes, 3
|
14
14
|
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: execution.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'get_with_proof_pb'
|
7
|
+
require 'ledger_info_pb'
|
8
|
+
require 'transaction_pb'
|
9
|
+
require 'validator_set_pb'
|
10
|
+
require 'vm_errors_pb'
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("execution.proto", :syntax => :proto3) do
|
13
|
+
add_message "execution.ExecuteBlockRequest" do
|
14
|
+
repeated :transactions, :message, 1, "types.SignedTransaction"
|
15
|
+
optional :parent_block_id, :bytes, 2
|
16
|
+
optional :block_id, :bytes, 3
|
17
|
+
end
|
18
|
+
add_message "execution.ExecuteBlockResponse" do
|
19
|
+
optional :root_hash, :bytes, 1
|
20
|
+
repeated :status, :message, 2, "types.VMStatus"
|
21
|
+
optional :version, :uint64, 3
|
22
|
+
optional :validators, :message, 4, "types.ValidatorSet"
|
23
|
+
end
|
24
|
+
add_message "execution.CommitBlockRequest" do
|
25
|
+
optional :ledger_info_with_sigs, :message, 1, "types.LedgerInfoWithSignatures"
|
26
|
+
end
|
27
|
+
add_message "execution.CommitBlockResponse" do
|
28
|
+
optional :status, :enum, 1, "execution.CommitBlockStatus"
|
29
|
+
end
|
30
|
+
add_message "execution.ExecuteChunkRequest" do
|
31
|
+
optional :txn_list_with_proof, :message, 1, "types.TransactionListWithProof"
|
32
|
+
optional :ledger_info_with_sigs, :message, 2, "types.LedgerInfoWithSignatures"
|
33
|
+
end
|
34
|
+
add_message "execution.ExecuteChunkResponse" do
|
35
|
+
end
|
36
|
+
add_enum "execution.CommitBlockStatus" do
|
37
|
+
value :SUCCEEDED, 0
|
38
|
+
value :FAILED, 1
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
module Execution
|
44
|
+
ExecuteBlockRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("execution.ExecuteBlockRequest").msgclass
|
45
|
+
ExecuteBlockResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("execution.ExecuteBlockResponse").msgclass
|
46
|
+
CommitBlockRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("execution.CommitBlockRequest").msgclass
|
47
|
+
CommitBlockResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("execution.CommitBlockResponse").msgclass
|
48
|
+
ExecuteChunkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("execution.ExecuteChunkRequest").msgclass
|
49
|
+
ExecuteChunkResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("execution.ExecuteChunkResponse").msgclass
|
50
|
+
CommitBlockStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("execution.CommitBlockStatus").enummodule
|
51
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: execution.proto for package 'execution'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright (c) The Libra Core Contributors
|
5
|
+
# SPDX-License-Identifier: Apache-2.0
|
6
|
+
#
|
7
|
+
|
8
|
+
require 'grpc'
|
9
|
+
require 'execution_pb'
|
10
|
+
|
11
|
+
module Execution
|
12
|
+
module Execution
|
13
|
+
# -----------------------------------------------------------------------------
|
14
|
+
# ---------------- Execution Service Definition
|
15
|
+
# -----------------------------------------------------------------------------
|
16
|
+
class Service
|
17
|
+
|
18
|
+
include GRPC::GenericService
|
19
|
+
|
20
|
+
self.marshal_class_method = :encode
|
21
|
+
self.unmarshal_class_method = :decode
|
22
|
+
self.service_name = 'execution.Execution'
|
23
|
+
|
24
|
+
# Execute a list of signed transactions given by consensus. Return the id
|
25
|
+
# of the block and the root hash of the ledger after applying transactions
|
26
|
+
# in this block.
|
27
|
+
rpc :ExecuteBlock, ExecuteBlockRequest, ExecuteBlockResponse
|
28
|
+
# Commit a previously executed block that has been agreed by consensus.
|
29
|
+
rpc :CommitBlock, CommitBlockRequest, CommitBlockResponse
|
30
|
+
# Execute and commit a list of signed transactions received from peer
|
31
|
+
# during synchronization. Return the id of the block
|
32
|
+
rpc :ExecuteChunk, ExecuteChunkRequest, ExecuteChunkResponse
|
33
|
+
end
|
34
|
+
|
35
|
+
Stub = Service.rpc_stub_class
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: language_storage.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("language_storage.proto", :syntax => :proto3) do
|
8
|
+
add_message "types.ModuleId" do
|
9
|
+
optional :address, :bytes, 1
|
10
|
+
optional :name, :string, 2
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
module Types
|
16
|
+
ModuleId = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.ModuleId").msgclass
|
17
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: mempool.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'transaction_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("mempool.proto", :syntax => :proto3) do
|
9
|
+
add_message "network.MempoolSyncMsg" do
|
10
|
+
optional :peer_id, :bytes, 1
|
11
|
+
repeated :transactions, :message, 2, "types.SignedTransaction"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Network
|
17
|
+
MempoolSyncMsg = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.MempoolSyncMsg").msgclass
|
18
|
+
end
|
@@ -5,7 +5,11 @@ require 'google/protobuf'
|
|
5
5
|
|
6
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
7
|
add_file("mempool_status.proto", :syntax => :proto3) do
|
8
|
-
|
8
|
+
add_message "mempool.MempoolAddTransactionStatus" do
|
9
|
+
optional :code, :enum, 1, "mempool.MempoolAddTransactionStatusCode"
|
10
|
+
optional :message, :string, 2
|
11
|
+
end
|
12
|
+
add_enum "mempool.MempoolAddTransactionStatusCode" do
|
9
13
|
value :Valid, 0
|
10
14
|
value :InsufficientBalance, 1
|
11
15
|
value :InvalidSeqNumber, 2
|
@@ -17,5 +21,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
21
|
end
|
18
22
|
|
19
23
|
module Mempool
|
20
|
-
MempoolAddTransactionStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("mempool.MempoolAddTransactionStatus").
|
24
|
+
MempoolAddTransactionStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("mempool.MempoolAddTransactionStatus").msgclass
|
25
|
+
MempoolAddTransactionStatusCode = Google::Protobuf::DescriptorPool.generated_pool.lookup("mempool.MempoolAddTransactionStatusCode").enummodule
|
21
26
|
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: network.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("network.proto", :syntax => :proto3) do
|
8
|
+
add_message "network.PeerInfo" do
|
9
|
+
optional :epoch, :uint64, 1
|
10
|
+
repeated :addrs, :bytes, 2
|
11
|
+
end
|
12
|
+
add_message "network.SignedPeerInfo" do
|
13
|
+
optional :peer_info, :bytes, 1
|
14
|
+
optional :signature, :bytes, 2
|
15
|
+
end
|
16
|
+
add_message "network.FullNodePayload" do
|
17
|
+
optional :epoch, :uint64, 1
|
18
|
+
optional :dns_seed_addr, :bytes, 2
|
19
|
+
end
|
20
|
+
add_message "network.SignedFullNodePayload" do
|
21
|
+
optional :payload, :bytes, 1
|
22
|
+
optional :signature, :bytes, 2
|
23
|
+
end
|
24
|
+
add_message "network.Note" do
|
25
|
+
optional :peer_id, :bytes, 1
|
26
|
+
optional :signed_peer_info, :message, 2, "network.SignedPeerInfo"
|
27
|
+
optional :signed_full_node_payload, :message, 3, "network.SignedFullNodePayload"
|
28
|
+
end
|
29
|
+
add_message "network.DiscoveryMsg" do
|
30
|
+
repeated :notes, :message, 1, "network.Note"
|
31
|
+
end
|
32
|
+
add_message "network.IdentityMsg" do
|
33
|
+
optional :peer_id, :bytes, 1
|
34
|
+
repeated :supported_protocols, :bytes, 2
|
35
|
+
optional :role, :enum, 3, "network.IdentityMsg.Role"
|
36
|
+
end
|
37
|
+
add_enum "network.IdentityMsg.Role" do
|
38
|
+
value :VALIDATOR, 0
|
39
|
+
value :FULL_NODE, 1
|
40
|
+
end
|
41
|
+
add_message "network.Ping" do
|
42
|
+
end
|
43
|
+
add_message "network.Pong" do
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
module Network
|
49
|
+
PeerInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.PeerInfo").msgclass
|
50
|
+
SignedPeerInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.SignedPeerInfo").msgclass
|
51
|
+
FullNodePayload = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.FullNodePayload").msgclass
|
52
|
+
SignedFullNodePayload = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.SignedFullNodePayload").msgclass
|
53
|
+
Note = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.Note").msgclass
|
54
|
+
DiscoveryMsg = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.DiscoveryMsg").msgclass
|
55
|
+
IdentityMsg = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.IdentityMsg").msgclass
|
56
|
+
IdentityMsg::Role = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.IdentityMsg.Role").enummodule
|
57
|
+
Ping = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.Ping").msgclass
|
58
|
+
Pong = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.Pong").msgclass
|
59
|
+
end
|