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
@@ -0,0 +1,39 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: node_debug_interface.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("node_debug_interface.proto", :syntax => :proto3) do
|
8
|
+
add_message "debug.GetNodeDetailsRequest" do
|
9
|
+
end
|
10
|
+
add_message "debug.GetNodeDetailsResponse" do
|
11
|
+
map :stats, :string, :string, 1
|
12
|
+
end
|
13
|
+
add_message "debug.GetEventsRequest" do
|
14
|
+
end
|
15
|
+
add_message "debug.GetEventsResponse" do
|
16
|
+
repeated :events, :message, 1, "debug.Event"
|
17
|
+
end
|
18
|
+
add_message "debug.Event" do
|
19
|
+
optional :name, :string, 1
|
20
|
+
optional :timestamp, :int64, 2
|
21
|
+
optional :json, :string, 3
|
22
|
+
end
|
23
|
+
add_message "debug.DumpJemallocHeapProfileRequest" do
|
24
|
+
end
|
25
|
+
add_message "debug.DumpJemallocHeapProfileResponse" do
|
26
|
+
optional :status_code, :int32, 1
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
module Debug
|
32
|
+
GetNodeDetailsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("debug.GetNodeDetailsRequest").msgclass
|
33
|
+
GetNodeDetailsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("debug.GetNodeDetailsResponse").msgclass
|
34
|
+
GetEventsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("debug.GetEventsRequest").msgclass
|
35
|
+
GetEventsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("debug.GetEventsResponse").msgclass
|
36
|
+
Event = Google::Protobuf::DescriptorPool.generated_pool.lookup("debug.Event").msgclass
|
37
|
+
DumpJemallocHeapProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("debug.DumpJemallocHeapProfileRequest").msgclass
|
38
|
+
DumpJemallocHeapProfileResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("debug.DumpJemallocHeapProfileResponse").msgclass
|
39
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: node_debug_interface.proto for package 'debug'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright (c) The Libra Core Contributors
|
5
|
+
# SPDX-License-Identifier: Apache-2.0
|
6
|
+
#
|
7
|
+
# A Debugging interface to be used to query debug information from a Node
|
8
|
+
|
9
|
+
require 'grpc'
|
10
|
+
require 'node_debug_interface_pb'
|
11
|
+
|
12
|
+
module Debug
|
13
|
+
module NodeDebugInterface
|
14
|
+
class Service
|
15
|
+
|
16
|
+
include GRPC::GenericService
|
17
|
+
|
18
|
+
self.marshal_class_method = :encode
|
19
|
+
self.unmarshal_class_method = :decode
|
20
|
+
self.service_name = 'debug.NodeDebugInterface'
|
21
|
+
|
22
|
+
# Returns debug information about node
|
23
|
+
rpc :GetNodeDetails, GetNodeDetailsRequest, GetNodeDetailsResponse
|
24
|
+
# Returns recent events generated by event! macro
|
25
|
+
rpc :GetEvents, GetEventsRequest, GetEventsResponse
|
26
|
+
# Triggers a dump of heap profile.
|
27
|
+
rpc :DumpJemallocHeapProfile, DumpJemallocHeapProfileRequest, DumpJemallocHeapProfileResponse
|
28
|
+
end
|
29
|
+
|
30
|
+
Stub = Service.rpc_stub_class
|
31
|
+
end
|
32
|
+
end
|
data/proto-lib/proof_pb.rb
CHANGED
@@ -15,6 +15,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
15
15
|
optional :bitmap, :bytes, 2
|
16
16
|
repeated :non_default_siblings, :bytes, 3
|
17
17
|
end
|
18
|
+
add_message "types.AccumulatorConsistencyProof" do
|
19
|
+
repeated :frozen_subtree_roots, :bytes, 1
|
20
|
+
optional :num_siblings, :uint32, 2
|
21
|
+
repeated :non_default_siblings, :bytes, 3
|
22
|
+
end
|
18
23
|
add_message "types.SignedTransactionProof" do
|
19
24
|
optional :ledger_info_to_transaction_info_proof, :message, 1, "types.AccumulatorProof"
|
20
25
|
optional :transaction_info, :message, 2, "types.TransactionInfo"
|
@@ -35,6 +40,7 @@ end
|
|
35
40
|
module Types
|
36
41
|
AccumulatorProof = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.AccumulatorProof").msgclass
|
37
42
|
SparseMerkleProof = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.SparseMerkleProof").msgclass
|
43
|
+
AccumulatorConsistencyProof = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.AccumulatorConsistencyProof").msgclass
|
38
44
|
SignedTransactionProof = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.SignedTransactionProof").msgclass
|
39
45
|
AccountStateProof = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.AccountStateProof").msgclass
|
40
46
|
EventProof = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.EventProof").msgclass
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: secret_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("secret_service.proto", :syntax => :proto3) do
|
8
|
+
add_message "secret_service.GenerateKeyRequest" do
|
9
|
+
optional :spec, :enum, 1, "secret_service.KeyType"
|
10
|
+
end
|
11
|
+
add_message "secret_service.GenerateKeyResponse" do
|
12
|
+
optional :key_id, :bytes, 1
|
13
|
+
optional :code, :enum, 2, "secret_service.ErrorCode"
|
14
|
+
end
|
15
|
+
add_message "secret_service.PublicKeyRequest" do
|
16
|
+
optional :key_id, :bytes, 1
|
17
|
+
end
|
18
|
+
add_message "secret_service.PublicKeyResponse" do
|
19
|
+
optional :public_key, :bytes, 1
|
20
|
+
optional :code, :enum, 2, "secret_service.ErrorCode"
|
21
|
+
end
|
22
|
+
add_message "secret_service.SignRequest" do
|
23
|
+
optional :key_id, :bytes, 1
|
24
|
+
optional :message_hash, :bytes, 2
|
25
|
+
end
|
26
|
+
add_message "secret_service.SignResponse" do
|
27
|
+
optional :signature, :bytes, 1
|
28
|
+
optional :code, :enum, 2, "secret_service.ErrorCode"
|
29
|
+
end
|
30
|
+
add_enum "secret_service.ErrorCode" do
|
31
|
+
value :Success, 0
|
32
|
+
value :KeyIdNotFound, 1
|
33
|
+
value :WrongLength, 2
|
34
|
+
value :InvalidParameters, 3
|
35
|
+
value :AuthenticationFailed, 4
|
36
|
+
value :Unspecified, 5
|
37
|
+
end
|
38
|
+
add_enum "secret_service.KeyType" do
|
39
|
+
value :Ed25519, 0
|
40
|
+
value :BLS12381, 1
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
module SecretService
|
46
|
+
GenerateKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("secret_service.GenerateKeyRequest").msgclass
|
47
|
+
GenerateKeyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("secret_service.GenerateKeyResponse").msgclass
|
48
|
+
PublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("secret_service.PublicKeyRequest").msgclass
|
49
|
+
PublicKeyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("secret_service.PublicKeyResponse").msgclass
|
50
|
+
SignRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("secret_service.SignRequest").msgclass
|
51
|
+
SignResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("secret_service.SignResponse").msgclass
|
52
|
+
ErrorCode = Google::Protobuf::DescriptorPool.generated_pool.lookup("secret_service.ErrorCode").enummodule
|
53
|
+
KeyType = Google::Protobuf::DescriptorPool.generated_pool.lookup("secret_service.KeyType").enummodule
|
54
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: secret_service.proto for package 'secret_service'
|
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 'secret_service_pb'
|
10
|
+
|
11
|
+
module SecretService
|
12
|
+
module SecretService
|
13
|
+
# -----------------------------------------------------------------------------
|
14
|
+
# ---------------- 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 = 'secret_service.SecretService'
|
23
|
+
|
24
|
+
# API to request key generation
|
25
|
+
rpc :GenerateKey, GenerateKeyRequest, GenerateKeyResponse
|
26
|
+
# API to request a public key
|
27
|
+
rpc :GetPublicKey, PublicKeyRequest, PublicKeyResponse
|
28
|
+
# API to request a signature
|
29
|
+
rpc :Sign, SignRequest, SignResponse
|
30
|
+
end
|
31
|
+
|
32
|
+
Stub = Service.rpc_stub_class
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: state_synchronizer.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("state_synchronizer.proto", :syntax => :proto3) do
|
10
|
+
add_message "network.GetChunkRequest" do
|
11
|
+
optional :known_version, :uint64, 1
|
12
|
+
optional :limit, :uint64, 2
|
13
|
+
optional :timeout, :uint64, 3
|
14
|
+
optional :ledger_info_with_sigs, :message, 4, "types.LedgerInfoWithSignatures"
|
15
|
+
end
|
16
|
+
add_message "network.GetChunkResponse" do
|
17
|
+
optional :ledger_info_with_sigs, :message, 1, "types.LedgerInfoWithSignatures"
|
18
|
+
optional :txn_list_with_proof, :message, 2, "types.TransactionListWithProof"
|
19
|
+
end
|
20
|
+
add_message "network.StateSynchronizerMsg" do
|
21
|
+
oneof :message do
|
22
|
+
optional :chunk_request, :message, 1, "network.GetChunkRequest"
|
23
|
+
optional :chunk_response, :message, 2, "network.GetChunkResponse"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
module Network
|
30
|
+
GetChunkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.GetChunkRequest").msgclass
|
31
|
+
GetChunkResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.GetChunkResponse").msgclass
|
32
|
+
StateSynchronizerMsg = Google::Protobuf::DescriptorPool.generated_pool.lookup("network.StateSynchronizerMsg").msgclass
|
33
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: storage.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'get_with_proof_pb'
|
7
|
+
require 'ledger_info_pb'
|
8
|
+
require 'transaction_pb'
|
9
|
+
require 'account_state_blob_pb'
|
10
|
+
require 'proof_pb'
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("storage.proto", :syntax => :proto3) do
|
13
|
+
add_message "storage.SaveTransactionsRequest" do
|
14
|
+
repeated :txns_to_commit, :message, 1, "types.TransactionToCommit"
|
15
|
+
optional :first_version, :uint64, 2
|
16
|
+
optional :ledger_info_with_signatures, :message, 3, "types.LedgerInfoWithSignatures"
|
17
|
+
end
|
18
|
+
add_message "storage.SaveTransactionsResponse" do
|
19
|
+
end
|
20
|
+
add_message "storage.GetTransactionsRequest" do
|
21
|
+
optional :start_version, :uint64, 1
|
22
|
+
optional :batch_size, :uint64, 2
|
23
|
+
optional :ledger_version, :uint64, 3
|
24
|
+
optional :fetch_events, :bool, 4
|
25
|
+
end
|
26
|
+
add_message "storage.GetTransactionsResponse" do
|
27
|
+
optional :txn_list_with_proof, :message, 1, "types.TransactionListWithProof"
|
28
|
+
end
|
29
|
+
add_message "storage.GetAccountStateWithProofByVersionRequest" do
|
30
|
+
optional :address, :bytes, 1
|
31
|
+
optional :version, :uint64, 2
|
32
|
+
end
|
33
|
+
add_message "storage.GetAccountStateWithProofByVersionResponse" do
|
34
|
+
optional :account_state_blob, :message, 1, "types.AccountStateBlob"
|
35
|
+
optional :sparse_merkle_proof, :message, 2, "types.SparseMerkleProof"
|
36
|
+
end
|
37
|
+
add_message "storage.GetStartupInfoRequest" do
|
38
|
+
end
|
39
|
+
add_message "storage.GetStartupInfoResponse" do
|
40
|
+
optional :info, :message, 1, "storage.StartupInfo"
|
41
|
+
end
|
42
|
+
add_message "storage.StartupInfo" do
|
43
|
+
optional :ledger_info, :message, 1, "types.LedgerInfo"
|
44
|
+
optional :latest_version, :uint64, 2
|
45
|
+
optional :account_state_root_hash, :bytes, 3
|
46
|
+
repeated :ledger_frozen_subtree_hashes, :bytes, 4
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
module Storage
|
52
|
+
SaveTransactionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("storage.SaveTransactionsRequest").msgclass
|
53
|
+
SaveTransactionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("storage.SaveTransactionsResponse").msgclass
|
54
|
+
GetTransactionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("storage.GetTransactionsRequest").msgclass
|
55
|
+
GetTransactionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("storage.GetTransactionsResponse").msgclass
|
56
|
+
GetAccountStateWithProofByVersionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("storage.GetAccountStateWithProofByVersionRequest").msgclass
|
57
|
+
GetAccountStateWithProofByVersionResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("storage.GetAccountStateWithProofByVersionResponse").msgclass
|
58
|
+
GetStartupInfoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("storage.GetStartupInfoRequest").msgclass
|
59
|
+
GetStartupInfoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("storage.GetStartupInfoResponse").msgclass
|
60
|
+
StartupInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("storage.StartupInfo").msgclass
|
61
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: storage.proto for package 'storage'
|
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 'storage_pb'
|
10
|
+
|
11
|
+
module Storage
|
12
|
+
module Storage
|
13
|
+
# -----------------------------------------------------------------------------
|
14
|
+
# ---------------- Service definition for storage
|
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 = 'storage.Storage'
|
23
|
+
|
24
|
+
# Persist transactions. Called by Execution when either syncing nodes or
|
25
|
+
# committing blocks during normal operation.
|
26
|
+
rpc :SaveTransactions, SaveTransactionsRequest, SaveTransactionsResponse
|
27
|
+
# Read APIs.
|
28
|
+
#
|
29
|
+
# Used to get a piece of data and return the proof of it. If the client
|
30
|
+
# knows and trusts a ledger info at version v, it should pass v in as the
|
31
|
+
# client_known_version and we will return the latest ledger info together
|
32
|
+
# with the proof that it derives from v.
|
33
|
+
rpc :UpdateToLatestLedger, Types::UpdateToLatestLedgerRequest, Types::UpdateToLatestLedgerResponse
|
34
|
+
# When we receive a request from a peer validator asking a list of
|
35
|
+
# transactions for state synchronization, this API can be used to serve the
|
36
|
+
# request. Note that the peer should specify a ledger version and all proofs
|
37
|
+
# in the response will be relative to this given ledger version.
|
38
|
+
rpc :GetTransactions, GetTransactionsRequest, GetTransactionsResponse
|
39
|
+
rpc :GetAccountStateWithProofByVersion, GetAccountStateWithProofByVersionRequest, GetAccountStateWithProofByVersionResponse
|
40
|
+
# Returns information needed for libra core to start up.
|
41
|
+
rpc :GetStartupInfo, GetStartupInfoRequest, GetStartupInfoResponse
|
42
|
+
end
|
43
|
+
|
44
|
+
Stub = Service.rpc_stub_class
|
45
|
+
end
|
46
|
+
# Write APIs.
|
47
|
+
end
|
data/proto-lib/transaction_pb.rb
CHANGED
@@ -19,6 +19,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
19
19
|
oneof :payload do
|
20
20
|
optional :program, :message, 3, "types.Program"
|
21
21
|
optional :write_set, :message, 4, "types.WriteSet"
|
22
|
+
optional :script, :message, 8, "types.Script"
|
23
|
+
optional :module, :message, 9, "types.Module"
|
22
24
|
end
|
23
25
|
end
|
24
26
|
add_message "types.Program" do
|
@@ -26,6 +28,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
26
28
|
repeated :arguments, :message, 2, "types.TransactionArgument"
|
27
29
|
repeated :modules, :bytes, 3
|
28
30
|
end
|
31
|
+
add_message "types.Script" do
|
32
|
+
optional :code, :bytes, 1
|
33
|
+
repeated :arguments, :message, 2, "types.TransactionArgument"
|
34
|
+
end
|
29
35
|
add_message "types.TransactionArgument" do
|
30
36
|
optional :type, :enum, 1, "types.TransactionArgument.ArgType"
|
31
37
|
optional :data, :bytes, 2
|
@@ -36,6 +42,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
36
42
|
value :STRING, 2
|
37
43
|
value :BYTEARRAY, 3
|
38
44
|
end
|
45
|
+
add_message "types.Module" do
|
46
|
+
optional :code, :bytes, 1
|
47
|
+
end
|
39
48
|
add_message "types.SignedTransaction" do
|
40
49
|
optional :raw_txn_bytes, :bytes, 1
|
41
50
|
optional :sender_public_key, :bytes, 2
|
@@ -88,8 +97,10 @@ end
|
|
88
97
|
module Types
|
89
98
|
RawTransaction = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.RawTransaction").msgclass
|
90
99
|
Program = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.Program").msgclass
|
100
|
+
Script = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.Script").msgclass
|
91
101
|
TransactionArgument = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.TransactionArgument").msgclass
|
92
102
|
TransactionArgument::ArgType = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.TransactionArgument.ArgType").enummodule
|
103
|
+
Module = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.Module").msgclass
|
93
104
|
SignedTransaction = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.SignedTransaction").msgclass
|
94
105
|
SignedTransactionWithProof = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.SignedTransactionWithProof").msgclass
|
95
106
|
SignedTransactionsBlock = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.SignedTransactionsBlock").msgclass
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: validator_public_keys.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("validator_public_keys.proto", :syntax => :proto3) do
|
8
|
+
add_message "types.ValidatorPublicKeys" do
|
9
|
+
optional :account_address, :bytes, 1
|
10
|
+
optional :consensus_public_key, :bytes, 2
|
11
|
+
optional :network_signing_public_key, :bytes, 3
|
12
|
+
optional :network_identity_public_key, :bytes, 4
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Types
|
18
|
+
ValidatorPublicKeys = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.ValidatorPublicKeys").msgclass
|
19
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: validator_set.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'validator_public_keys_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("validator_set.proto", :syntax => :proto3) do
|
9
|
+
add_message "types.ValidatorSet" do
|
10
|
+
repeated :validator_public_keys, :message, 1, "types.ValidatorPublicKeys"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
module Types
|
16
|
+
ValidatorSet = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.ValidatorSet").msgclass
|
17
|
+
end
|
data/proto-lib/vm_errors_pb.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
+
require 'language_storage_pb'
|
6
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
8
|
add_file("vm_errors.proto", :syntax => :proto3) do
|
8
9
|
add_message "types.VMValidationStatus" do
|
@@ -17,13 +18,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
18
|
optional :module_idx, :uint32, 2
|
18
19
|
optional :error_kind, :enum, 3, "types.VMVerificationErrorKind"
|
19
20
|
optional :message, :string, 4
|
21
|
+
optional :dependency_id, :message, 5, "types.ModuleId"
|
20
22
|
end
|
21
23
|
add_enum "types.VMVerificationStatus.StatusKind" do
|
22
24
|
value :SCRIPT, 0
|
23
25
|
value :MODULE, 1
|
26
|
+
value :DEPENDENCY, 2
|
24
27
|
end
|
25
|
-
add_message "types.
|
26
|
-
optional :
|
28
|
+
add_message "types.Aborted" do
|
29
|
+
optional :aborted_error_code, :uint64, 1
|
27
30
|
end
|
28
31
|
add_message "types.ArithmeticError" do
|
29
32
|
optional :error_code, :enum, 1, "types.ArithmeticError.ArithmeticErrorType"
|
@@ -47,7 +50,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
47
50
|
add_message "types.ExecutionStatus" do
|
48
51
|
oneof :execution_status do
|
49
52
|
optional :runtime_status, :enum, 1, "types.RuntimeStatus"
|
50
|
-
optional :
|
53
|
+
optional :aborted, :message, 2, "types.Aborted"
|
51
54
|
optional :arithmetic_error, :message, 3, "types.ArithmeticError"
|
52
55
|
optional :reference_error, :message, 4, "types.DynamicReferenceError"
|
53
56
|
end
|
@@ -83,72 +86,79 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
83
86
|
add_enum "types.VMVerificationErrorKind" do
|
84
87
|
value :UnknownVerificationError, 0
|
85
88
|
value :IndexOutOfBounds, 1
|
86
|
-
value :
|
87
|
-
value :
|
88
|
-
value :
|
89
|
-
value :
|
90
|
-
value :
|
91
|
-
value :
|
92
|
-
value :
|
93
|
-
value :
|
94
|
-
value :
|
95
|
-
value :
|
96
|
-
value :
|
97
|
-
value :
|
98
|
-
value :
|
99
|
-
value :
|
100
|
-
value :
|
101
|
-
value :
|
102
|
-
value :
|
103
|
-
value :
|
104
|
-
value :
|
105
|
-
value :
|
106
|
-
value :
|
107
|
-
value :
|
108
|
-
value :
|
109
|
-
value :
|
110
|
-
value :
|
111
|
-
value :
|
112
|
-
value :
|
113
|
-
value :
|
114
|
-
value :
|
115
|
-
value :
|
116
|
-
value :
|
117
|
-
value :
|
118
|
-
value :
|
119
|
-
value :
|
120
|
-
value :
|
121
|
-
value :
|
122
|
-
value :
|
123
|
-
value :
|
124
|
-
value :
|
125
|
-
value :
|
126
|
-
value :
|
127
|
-
value :
|
128
|
-
value :
|
129
|
-
value :
|
130
|
-
value :
|
131
|
-
value :
|
132
|
-
value :
|
133
|
-
value :
|
134
|
-
value :
|
135
|
-
value :
|
136
|
-
value :
|
137
|
-
value :
|
138
|
-
value :
|
139
|
-
value :
|
140
|
-
value :
|
141
|
-
value :
|
142
|
-
value :
|
143
|
-
value :
|
144
|
-
value :
|
145
|
-
value :
|
146
|
-
value :
|
147
|
-
value :
|
148
|
-
value :
|
149
|
-
value :
|
150
|
-
value :
|
151
|
-
value :
|
89
|
+
value :CodeUnitIndexOutOfBounds, 2
|
90
|
+
value :RangeOutOfBounds, 3
|
91
|
+
value :InvalidSignatureToken, 4
|
92
|
+
value :InvalidFieldDefReference, 5
|
93
|
+
value :RecursiveStructDefinition, 6
|
94
|
+
value :InvalidResourceField, 7
|
95
|
+
value :InvalidFallThrough, 8
|
96
|
+
value :JoinFailure, 9
|
97
|
+
value :NegativeStackSizeWithinBlock, 10
|
98
|
+
value :UnbalancedStack, 11
|
99
|
+
value :InvalidMainFunctionSignature, 12
|
100
|
+
value :DuplicateElement, 13
|
101
|
+
value :InvalidModuleHandle, 14
|
102
|
+
value :UnimplementedHandle, 15
|
103
|
+
value :InconsistentFields, 16
|
104
|
+
value :UnusedFields, 17
|
105
|
+
value :LookupFailed, 18
|
106
|
+
value :VisibilityMismatch, 19
|
107
|
+
value :TypeResolutionFailure, 20
|
108
|
+
value :TypeMismatch, 21
|
109
|
+
value :MissingDependency, 22
|
110
|
+
value :PopReferenceError, 23
|
111
|
+
value :PopResourceError, 24
|
112
|
+
value :ReleaseRefTypeMismatchError, 25
|
113
|
+
value :BrTypeMismatchError, 26
|
114
|
+
value :AbortTypeMismatchError, 27
|
115
|
+
value :StLocTypeMismatchError, 28
|
116
|
+
value :StLocUnsafeToDestroyError, 29
|
117
|
+
value :RetUnsafeToDestroyError, 30
|
118
|
+
value :RetTypeMismatchError, 31
|
119
|
+
value :FreezeRefTypeMismatchError, 32
|
120
|
+
value :FreezeRefExistsMutableBorrowError, 33
|
121
|
+
value :BorrowFieldTypeMismatchError, 34
|
122
|
+
value :BorrowFieldBadFieldError, 35
|
123
|
+
value :BorrowFieldExistsMutableBorrowError, 36
|
124
|
+
value :CopyLocUnavailableError, 37
|
125
|
+
value :CopyLocResourceError, 38
|
126
|
+
value :CopyLocExistsBorrowError, 39
|
127
|
+
value :MoveLocUnavailableError, 40
|
128
|
+
value :MoveLocExistsBorrowError, 41
|
129
|
+
value :BorrowLocReferenceError, 42
|
130
|
+
value :BorrowLocUnavailableError, 43
|
131
|
+
value :BorrowLocExistsBorrowError, 44
|
132
|
+
value :CallTypeMismatchError, 45
|
133
|
+
value :CallBorrowedMutableReferenceError, 46
|
134
|
+
value :PackTypeMismatchError, 47
|
135
|
+
value :UnpackTypeMismatchError, 48
|
136
|
+
value :ReadRefTypeMismatchError, 49
|
137
|
+
value :ReadRefResourceError, 50
|
138
|
+
value :ReadRefExistsMutableBorrowError, 51
|
139
|
+
value :WriteRefTypeMismatchError, 52
|
140
|
+
value :WriteRefResourceError, 53
|
141
|
+
value :WriteRefExistsBorrowError, 54
|
142
|
+
value :WriteRefNoMutableReferenceError, 55
|
143
|
+
value :IntegerOpTypeMismatchError, 56
|
144
|
+
value :BooleanOpTypeMismatchError, 57
|
145
|
+
value :EqualityOpTypeMismatchError, 58
|
146
|
+
value :ExistsResourceTypeMismatchError, 59
|
147
|
+
value :ExistsNoResourceError, 60
|
148
|
+
value :BorrowGlobalTypeMismatchError, 61
|
149
|
+
value :BorrowGlobalNoResourceError, 62
|
150
|
+
value :MoveFromTypeMismatchError, 63
|
151
|
+
value :MoveFromNoResourceError, 64
|
152
|
+
value :MoveToSenderTypeMismatchError, 65
|
153
|
+
value :MoveToSenderNoResourceError, 66
|
154
|
+
value :CreateAccountTypeMismatchError, 67
|
155
|
+
value :GlobalReferenceError, 68
|
156
|
+
value :ModuleAddressDoesNotMatchSender, 69
|
157
|
+
value :NoModuleHandles, 70
|
158
|
+
value :MissingAcquiresResourceAnnotationError, 71
|
159
|
+
value :ExtraneousAcquiresResourceAnnotationError, 72
|
160
|
+
value :DuplicateAcquiresResourceAnnotationError, 73
|
161
|
+
value :InvalidAcquiresResourceAnnotationError, 74
|
152
162
|
end
|
153
163
|
add_enum "types.VMInvariantViolationError" do
|
154
164
|
value :UnknownInvariantViolationError, 0
|
@@ -160,6 +170,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
160
170
|
value :LinkerError, 6
|
161
171
|
value :LocalReferenceError, 7
|
162
172
|
value :StorageError, 8
|
173
|
+
value :InternalTypeError, 9
|
174
|
+
value :EventKeyMismatch, 10
|
163
175
|
end
|
164
176
|
add_enum "types.BinaryError" do
|
165
177
|
value :UnknownBinaryError, 0
|
@@ -191,6 +203,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
191
203
|
value :ValueSerializationError, 13
|
192
204
|
value :ValueDeserializationError, 14
|
193
205
|
value :DuplicateModuleName, 15
|
206
|
+
value :ExecutionStackOverflow, 16
|
207
|
+
value :CallStackOverflow, 17
|
194
208
|
end
|
195
209
|
end
|
196
210
|
end
|
@@ -200,7 +214,7 @@ module Types
|
|
200
214
|
VMVerificationStatusList = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.VMVerificationStatusList").msgclass
|
201
215
|
VMVerificationStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.VMVerificationStatus").msgclass
|
202
216
|
VMVerificationStatus::StatusKind = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.VMVerificationStatus.StatusKind").enummodule
|
203
|
-
|
217
|
+
Aborted = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.Aborted").msgclass
|
204
218
|
ArithmeticError = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.ArithmeticError").msgclass
|
205
219
|
ArithmeticError::ArithmeticErrorType = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.ArithmeticError.ArithmeticErrorType").enummodule
|
206
220
|
DynamicReferenceError = Google::Protobuf::DescriptorPool.generated_pool.lookup("types.DynamicReferenceError").msgclass
|